feat: 日报新增模板市场,支持社区模板安装与使用

This commit is contained in:
Wxw-Gu committed 2026-09-08 11:37:38 +08:00
1 parent 1156362c3c
commit 976aac32c5
35 files changed
+2957 -82

No files matched your search

+16
View File
@@ -5,6 +5,11 @@ import {
GroupReportExportResult,
GroupReportRenderSnapshotExportRequest
} from '../shared/group-report'
import type { InstalledReportTemplate, ReportTemplateOperationResult } from '../shared/report-template-package'
import type {
ReportTemplateCatalogInstallResult,
ReportTemplateCatalogResult
} from '../shared/report-template-market'
import { LocalApiTestRequest, LocalApiTestResponse } from '../shared/local-api-test'
import {
DeleteGeneratedReportResult,
@@ -400,6 +405,17 @@ declare global {
exportGroupReportSnapshot: (
request: GroupReportRenderSnapshotExportRequest
) => Promise<GroupReportExportResult>
listReportTemplates: () => Promise<InstalledReportTemplate[]>
installReportTemplate: (packagePath: string) => Promise<ReportTemplateOperationResult>
uninstallReportTemplate: (
id: string,
version: string
) => Promise<ReportTemplateOperationResult>
listReportTemplateCatalog: () => Promise<ReportTemplateCatalogResult>
installReportTemplateFromCatalog: (
id: string,
version: string
) => Promise<ReportTemplateCatalogInstallResult>
prepareGeneratedReportTemplateSwitch: (
reportId: string
) => Promise<PrepareGeneratedReportTemplateSwitchResult>