@gooddata/sdk-backend-base 11.62.0-alpha.0 → 11.62.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/customBackend/workspace.d.ts +3 -2
- package/esm/customBackend/workspace.d.ts.map +1 -1
- package/esm/customBackend/workspace.js +4 -1
- package/esm/decoratedBackend/analyticalWorkspace.d.ts +3 -2
- package/esm/decoratedBackend/analyticalWorkspace.d.ts.map +1 -1
- package/esm/decoratedBackend/analyticalWorkspace.js +8 -5
- package/esm/decoratedBackend/organization.d.ts +2 -1
- package/esm/decoratedBackend/organization.d.ts.map +1 -1
- package/esm/decoratedBackend/organization.js +3 -0
- package/esm/decoratedBackend/types.d.ts +3 -3
- package/esm/decoratedBackend/types.d.ts.map +1 -1
- package/esm/decoratedBackend/workspacePublisher.d.ts +29 -0
- package/esm/decoratedBackend/workspacePublisher.d.ts.map +1 -0
- package/esm/decoratedBackend/workspacePublisher.js +61 -0
- package/esm/dummyBackend/InMemoryWorkspacePublisherService.d.ts +39 -0
- package/esm/dummyBackend/InMemoryWorkspacePublisherService.d.ts.map +1 -0
- package/esm/dummyBackend/{InMemoryWorkspaceReportsService.js → InMemoryWorkspacePublisherService.js} +48 -45
- package/esm/dummyBackend/index.d.ts.map +1 -1
- package/esm/dummyBackend/index.js +30 -10
- package/esm/index.d.ts +3 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/sdk-backend-base.d.ts +51 -51
- package/package.json +7 -7
- package/esm/decoratedBackend/workspaceReports.d.ts +0 -29
- package/esm/decoratedBackend/workspaceReports.d.ts.map +0 -1
- package/esm/decoratedBackend/workspaceReports.js +0 -61
- package/esm/dummyBackend/InMemoryWorkspaceReportsService.d.ts +0 -39
- package/esm/dummyBackend/InMemoryWorkspaceReportsService.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IAnalyticalWorkspace, type IAttributeHierarchiesService, type IDataFiltersService, type IDateFilterConfigsQuery, type IExecutionFactory, type IGenAIService, type IReferencesService, type IWorkspaceAccessControlService, type IWorkspaceAgentsService, type IWorkspaceAttributesService, type IWorkspaceAutomationService, type IWorkspaceCatalogFactory, type IWorkspaceComputedAttributesService, type IWorkspaceDashboardsService, type IWorkspaceDatasetsService, type IWorkspaceDescriptor, type IWorkspaceExportDefinitionsService, type IWorkspaceExportTemplatesService, type IWorkspaceFactsService, type IWorkspaceInsightsService, type IWorkspaceKeyDriverAnalysisService, type IWorkspaceLogicalModelService, type IWorkspaceMeasuresService, type IWorkspaceObjectPermissionsService, type IWorkspaceParametersService, type IWorkspacePermissionsService, type
|
|
1
|
+
import { type IAnalyticalWorkspace, type IAttributeHierarchiesService, type IDataFiltersService, type IDateFilterConfigsQuery, type IExecutionFactory, type IGenAIService, type IReferencesService, type IWorkspaceAccessControlService, type IWorkspaceAgentsService, type IWorkspaceAttributesService, type IWorkspaceAutomationService, type IWorkspaceCatalogFactory, type IWorkspaceComputedAttributesService, type IWorkspaceDashboardsService, type IWorkspaceDatasetsService, type IWorkspaceDescriptor, type IWorkspaceExportDefinitionsService, type IWorkspaceExportTemplatesService, type IWorkspaceFactsService, type IWorkspaceInsightsService, type IWorkspaceKeyDriverAnalysisService, type IWorkspaceLocalizationService, type IWorkspaceLogicalModelService, type IWorkspaceMeasuresService, type IWorkspaceObjectPermissionsService, type IWorkspaceParametersService, type IWorkspacePermissionsService, type IWorkspacePublisherService, type IWorkspaceSettingsService, type IWorkspaceStylingService, type IWorkspaceUserGroupsQuery, type IWorkspaceUsersQuery } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { type CustomBackendConfig, type CustomBackendState } from "./config.js";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
@@ -39,6 +39,7 @@ export declare class CustomWorkspace implements IAnalyticalWorkspace {
|
|
|
39
39
|
genAI(): IGenAIService;
|
|
40
40
|
references(): IReferencesService;
|
|
41
41
|
exportTemplates(): IWorkspaceExportTemplatesService;
|
|
42
|
-
|
|
42
|
+
publisher(): IWorkspacePublisherService;
|
|
43
|
+
localization(): IWorkspaceLocalizationService;
|
|
43
44
|
}
|
|
44
45
|
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/customBackend/workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/customBackend/workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,oBAAo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IAEM,QAAQ,IAAI,yBAAyB,CAE3C;IAEM,QAAQ,IAAI,yBAAyB,CAE3C;IAEM,UAAU,IAAI,2BAA2B,CAE/C;IAEM,KAAK,IAAI,oBAAoB,CAEnC;IAEM,iBAAiB,IAAI,uBAAuB,CAElD;IAEM,UAAU,IAAI,yBAAyB,CAE7C;IAEM,aAAa,IAAI,8BAA8B,CAErD;IAEM,iBAAiB,IAAI,kCAAkC,CAE7D;IAEM,oBAAoB,IAAI,4BAA4B,CAE1D;IAEM,MAAM,IAAI,uBAAuB,CAEvC;IAEM,iBAAiB,IAAI,kCAAkC,CAE7D;IAEM,WAAW,IAAI,mBAAmB,CAExC;IAEM,YAAY,IAAI,6BAA6B,CAEnD;IAEM,WAAW,IAAI,2BAA2B,CAEhD;IAEM,KAAK,IAAI,aAAa,CAE5B;IAEM,UAAU,IAAI,kBAAkB,CAEtC;IAEM,eAAe,IAAI,gCAAgC,CAEzD;IAEM,SAAS,IAAI,0BAA0B,CAE7C;IAEM,YAAY,IAAI,6BAA6B,CAEnD;CACJ"}
|
|
@@ -115,7 +115,10 @@ export class CustomWorkspace {
|
|
|
115
115
|
exportTemplates() {
|
|
116
116
|
throw new NotSupported("export templates are not supported");
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
publisher() {
|
|
119
119
|
throw new NotSupported("reports are not supported");
|
|
120
120
|
}
|
|
121
|
+
localization() {
|
|
122
|
+
throw new NotSupported("localization is not supported");
|
|
123
|
+
}
|
|
121
124
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IAnalyticalWorkspace, type IAttributeHierarchiesService, type IDataFiltersService, type IDateFilterConfigsQuery, type IExecutionFactory, type IGenAIService, type IReferencesService, type IWorkspaceAccessControlService, type IWorkspaceAgentsService, type IWorkspaceAttributesService, type IWorkspaceAutomationService, type IWorkspaceCatalogFactory, type IWorkspaceComputedAttributesService, type IWorkspaceDashboardsService, type IWorkspaceDatasetsService, type IWorkspaceDescriptor, type IWorkspaceDescriptorUpdate, type IWorkspaceExportDefinitionsService, type IWorkspaceExportTemplatesService, type IWorkspaceFactsService, type IWorkspaceInsightsService, type IWorkspaceKeyDriverAnalysisService, type IWorkspaceLogicalModelService, type IWorkspaceMeasuresService, type IWorkspaceObjectPermissionsService, type IWorkspaceParametersService, type IWorkspacePermissionsService, type
|
|
1
|
+
import { type IAnalyticalWorkspace, type IAttributeHierarchiesService, type IDataFiltersService, type IDateFilterConfigsQuery, type IExecutionFactory, type IGenAIService, type IReferencesService, type IWorkspaceAccessControlService, type IWorkspaceAgentsService, type IWorkspaceAttributesService, type IWorkspaceAutomationService, type IWorkspaceCatalogFactory, type IWorkspaceComputedAttributesService, type IWorkspaceDashboardsService, type IWorkspaceDatasetsService, type IWorkspaceDescriptor, type IWorkspaceDescriptorUpdate, type IWorkspaceExportDefinitionsService, type IWorkspaceExportTemplatesService, type IWorkspaceFactsService, type IWorkspaceInsightsService, type IWorkspaceKeyDriverAnalysisService, type IWorkspaceLocalizationService, type IWorkspaceLogicalModelService, type IWorkspaceMeasuresService, type IWorkspaceObjectPermissionsService, type IWorkspaceParametersService, type IWorkspacePermissionsService, type IWorkspacePublisherService, type IWorkspaceSettingsService, type IWorkspaceStylingService, type IWorkspaceUserGroupsQuery, type IWorkspaceUsersQuery } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { type DecoratorFactories } from "./types.js";
|
|
3
3
|
export declare class AnalyticalWorkspaceDecorator implements IAnalyticalWorkspace {
|
|
4
4
|
workspace: string;
|
|
@@ -36,6 +36,7 @@ export declare class AnalyticalWorkspaceDecorator implements IAnalyticalWorkspac
|
|
|
36
36
|
genAI(): IGenAIService;
|
|
37
37
|
references(): IReferencesService;
|
|
38
38
|
exportTemplates(): IWorkspaceExportTemplatesService;
|
|
39
|
-
|
|
39
|
+
publisher(): IWorkspacePublisherService;
|
|
40
|
+
localization(): IWorkspaceLocalizationService;
|
|
40
41
|
}
|
|
41
42
|
//# sourceMappingURL=analyticalWorkspace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyticalWorkspace.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/analyticalWorkspace.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,
|
|
1
|
+
{"version":3,"file":"analyticalWorkspace.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/analyticalWorkspace.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,sBAAs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Q,IAAI,yBAAyB,CAQ3C;IAEM,WAAW,IAAI,4BAA4B,CAEjD;IAEM,KAAK,IAAI,oBAAoB,CAEnC;IAEM,iBAAiB,IAAI,uBAAuB,CAElD;IAEM,UAAU,IAAI,yBAAyB,CAE7C;IAEM,aAAa,IAAI,8BAA8B,CAErD;IAEM,iBAAiB,IAAI,kCAAkC,CAQ7D;IAEM,oBAAoB,IAAI,4BAA4B,CAE1D;IAEM,MAAM,IAAI,uBAAuB,CAEvC;IAEM,iBAAiB,IAAI,kCAAkC,CAE7D;IAEM,WAAW,IAAI,mBAAmB,CAExC;IAEM,YAAY,IAAI,6BAA6B,CAEnD;IAEM,WAAW,IAAI,2BAA2B,CAQhD;IAEM,KAAK,IAAI,aAAa,CAE5B;IAEM,UAAU,IAAI,kBAAkB,CAEtC;IAEM,eAAe,IAAI,gCAAgC,CAQzD;IAEM,SAAS,IAAI,0BAA0B,CAQ7C;IAEM,YAAY,IAAI,6BAA6B,CAEnD;CACJ"}
|
|
@@ -153,11 +153,14 @@ export class AnalyticalWorkspaceDecorator {
|
|
|
153
153
|
}
|
|
154
154
|
return this.decorated.exportTemplates();
|
|
155
155
|
}
|
|
156
|
-
|
|
157
|
-
const {
|
|
158
|
-
if (
|
|
159
|
-
return
|
|
156
|
+
publisher() {
|
|
157
|
+
const { workspacePublisher } = this.factories;
|
|
158
|
+
if (workspacePublisher) {
|
|
159
|
+
return workspacePublisher(this.decorated.publisher(), this.workspace);
|
|
160
160
|
}
|
|
161
|
-
return this.decorated.
|
|
161
|
+
return this.decorated.publisher();
|
|
162
|
+
}
|
|
163
|
+
localization() {
|
|
164
|
+
return this.decorated.localization();
|
|
162
165
|
}
|
|
163
166
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IOrganization, type IOrganizationAgentsService, type IOrganizationAutomationService, type IOrganizationExportTemplatesService, type IOrganizationGenAIService, type IOrganizationIpAllowlistService, type IOrganizationLlmProvidersService, type IOrganizationNotificationChannelService, type IOrganizationNotificationService, type IOrganizationPermissionService, type IOrganizationSettingsService, type IOrganizationStylingService, type IOrganizationUserService, type ISecuritySettingsService } from "@gooddata/sdk-backend-spi";
|
|
1
|
+
import { type IOrganization, type IOrganizationAgentsService, type IOrganizationAutomationService, type IOrganizationExportTemplatesService, type IOrganizationGenAIService, type IOrganizationIpAllowlistService, type IOrganizationLlmProvidersService, type IOrganizationLocalizationService, type IOrganizationNotificationChannelService, type IOrganizationNotificationService, type IOrganizationPermissionService, type IOrganizationSettingsService, type IOrganizationStylingService, type IOrganizationUserService, type ISecuritySettingsService } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { type IOrganizationDescriptor, type IOrganizationDescriptorUpdate } from "@gooddata/sdk-model";
|
|
3
3
|
import { type DecoratorFactories } from "./types.js";
|
|
4
4
|
export declare class OrganizationDecorator implements IOrganization {
|
|
@@ -21,5 +21,6 @@ export declare class OrganizationDecorator implements IOrganization {
|
|
|
21
21
|
genAI(): IOrganizationGenAIService;
|
|
22
22
|
exportTemplates(): IOrganizationExportTemplatesService;
|
|
23
23
|
ipAllowlists(): IOrganizationIpAllowlistService;
|
|
24
|
+
localization(): IOrganizationLocalizationService;
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,EAC5C,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,K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Service, type ISecuritySettingsService, type IWorkspaceAttributesService, type IWorkspaceAutomationService, type IWorkspaceCatalogFactory, type IWorkspaceComputedAttributesService, type IWorkspaceDashboardsService, type IWorkspaceDatasetsService, type IWorkspaceExportTemplatesService, type IWorkspaceFactsService, type IWorkspaceInsightsService, type IWorkspaceMeasuresService, type IWorkspaceObjectPermissionsService, type
|
|
1
|
+
import { type IExecutionFactory, type IGeoService, type IOrganizationExportTemplatesService, type ISecuritySettingsService, type IWorkspaceAttributesService, type IWorkspaceAutomationService, type IWorkspaceCatalogFactory, type IWorkspaceComputedAttributesService, type IWorkspaceDashboardsService, type IWorkspaceDatasetsService, type IWorkspaceExportTemplatesService, type IWorkspaceFactsService, type IWorkspaceInsightsService, type IWorkspaceMeasuresService, type IWorkspaceObjectPermissionsService, type IWorkspacePublisherService, type IWorkspaceSettingsService } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
/**
|
|
3
3
|
* @alpha
|
|
4
4
|
*/
|
|
@@ -62,7 +62,7 @@ export type WorkspaceExportTemplatesDecoratorFactory = (exportTemplates: IWorksp
|
|
|
62
62
|
/**
|
|
63
63
|
* @alpha
|
|
64
64
|
*/
|
|
65
|
-
export type
|
|
65
|
+
export type WorkspacePublisherDecoratorFactory = (publisher: IWorkspacePublisherService, workspace: string) => IWorkspacePublisherService;
|
|
66
66
|
/**
|
|
67
67
|
* @alpha
|
|
68
68
|
*/
|
|
@@ -90,7 +90,7 @@ export type DecoratorFactories = {
|
|
|
90
90
|
geo?: GeoDecoratorFactory;
|
|
91
91
|
organizationExportTemplates?: OrganizationExportTemplatesDecoratorFactory;
|
|
92
92
|
workspaceExportTemplates?: WorkspaceExportTemplatesDecoratorFactory;
|
|
93
|
-
|
|
93
|
+
workspacePublisher?: WorkspacePublisherDecoratorFactory;
|
|
94
94
|
objectPermissions?: ObjectPermissionsDecoratorFactory;
|
|
95
95
|
};
|
|
96
96
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/types.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/types.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EACjC,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,gBAAgB,EAAE,iBAAiB,KAAK,iBAAiB,CAAC;AAEnG;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,wBAAwB,KAAK,wBAAwB,CAAC;AAEtG;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAC3C,gBAAgB,EAAE,wBAAwB,KACzC,wBAAwB,CAAC;AAE9B;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC5C,QAAQ,EAAE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wCAAwC,GAAG,CACnD,eAAe,EAAE,gCAAgC,EACjD,SAAS,EAAE,MAAM,KAChB,gCAAgC,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,CAC7C,SAAS,EAAE,0BAA0B,EACrC,SAAS,EAAE,MAAM,KAChB,0BAA0B,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC5C,iBAAiB,EAAE,kCAAkC,EACrD,SAAS,EAAE,MAAM,KAChB,kCAAkC,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,gBAAgB,CAAC,EAAE,gCAAgC,CAAC;IACpD,iBAAiB,CAAC,EAAE,iCAAiC,CAAC;IACtD,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,kBAAkB,CAAC,EAAE,kCAAkC,CAAC;IACxD,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,GAAG,CAAC,EAAE,mBAAmB,CAAC;IAC1B,2BAA2B,CAAC,EAAE,2CAA2C,CAAC;IAC1E,wBAAwB,CAAC,EAAE,wCAAwC,CAAC;IACpE,kBAAkB,CAAC,EAAE,kCAAkC,CAAC;IACxD,iBAAiB,CAAC,EAAE,iCAAiC,CAAC;CACzD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IWorkspacePublisherService } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { type IPublisherDocument, type IPublisherDocumentDefinition, type IPublisherDocumentTemplate, type IPublisherDocumentTemplateDefinition, type IPublisherPageLayout, type IPublisherPageLayoutDefinition, type ObjRef } from "@gooddata/sdk-model";
|
|
3
|
+
/**
|
|
4
|
+
* Base class for publisher-service decorators. Delegates every method of the decorated
|
|
5
|
+
* `IWorkspacePublisherService`; subclasses override the methods they customize.
|
|
6
|
+
*
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class DecoratedWorkspacePublisherService implements IWorkspacePublisherService {
|
|
10
|
+
protected readonly decorated: IWorkspacePublisherService;
|
|
11
|
+
protected constructor(decorated: IWorkspacePublisherService);
|
|
12
|
+
getPageLayouts(): Promise<IPublisherPageLayout[]>;
|
|
13
|
+
getPageLayout(ref: ObjRef): Promise<IPublisherPageLayout>;
|
|
14
|
+
createPageLayout(page: IPublisherPageLayoutDefinition): Promise<IPublisherPageLayout>;
|
|
15
|
+
updatePageLayout(page: IPublisherPageLayout): Promise<IPublisherPageLayout>;
|
|
16
|
+
deletePageLayout(ref: ObjRef): Promise<void>;
|
|
17
|
+
getDocumentTemplates(): Promise<IPublisherDocumentTemplate[]>;
|
|
18
|
+
getDocumentTemplate(ref: ObjRef): Promise<IPublisherDocumentTemplate>;
|
|
19
|
+
createDocumentTemplate(template: IPublisherDocumentTemplateDefinition): Promise<IPublisherDocumentTemplate>;
|
|
20
|
+
updateDocumentTemplate(template: IPublisherDocumentTemplate): Promise<IPublisherDocumentTemplate>;
|
|
21
|
+
deleteDocumentTemplate(ref: ObjRef): Promise<void>;
|
|
22
|
+
getDocuments(): Promise<IPublisherDocument[]>;
|
|
23
|
+
getDocument(ref: ObjRef): Promise<IPublisherDocument>;
|
|
24
|
+
createDocument(publisherDocument: IPublisherDocumentDefinition): Promise<IPublisherDocument>;
|
|
25
|
+
updateDocument(publisherDocument: IPublisherDocument): Promise<IPublisherDocument>;
|
|
26
|
+
deleteDocument(ref: ObjRef): Promise<void>;
|
|
27
|
+
exportDocumentToPdf(ref: ObjRef, options?: IPublisherDocumentExportPdfOptions): Promise<IExportResult>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=workspacePublisher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspacePublisher.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/workspacePublisher.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,kCAAkC,EACvC,KAAK,0BAA0B,EAClC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,EACzC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAE7B;;;;;GAKG;AACH,8BAAsB,kCAAmC,YAAW,0BAA0B;IACpE,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,0BAA0B;IAA9E,SAAS,aAAgC,SAAS,EAAE,0BAA0B,EAAI;IAE3E,cAAc,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAEvD;IAEM,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAE/D;IAEM,gBAAgB,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAE3F;IAEM,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAEjF;IAEM,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAElD;IAEM,oBAAoB,IAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAEnE;IAEM,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAE3E;IAEM,sBAAsB,CACzB,QAAQ,EAAE,oCAAoC,GAC/C,OAAO,CAAC,0BAA0B,CAAC,CAErC;IAEM,sBAAsB,CAAC,QAAQ,EAAE,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAEvG;IAEM,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAExD;IAEM,YAAY,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAEnD;IAEM,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAE3D;IAEM,cAAc,CAAC,iBAAiB,EAAE,4BAA4B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAElG;IAEM,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAExF;IAEM,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhD;IAEM,mBAAmB,CACtB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,kCAAkC,GAC7C,OAAO,CAAC,aAAa,CAAC,CAExB;CACJ"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
/**
|
|
3
|
+
* Base class for publisher-service decorators. Delegates every method of the decorated
|
|
4
|
+
* `IWorkspacePublisherService`; subclasses override the methods they customize.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export class DecoratedWorkspacePublisherService {
|
|
9
|
+
decorated;
|
|
10
|
+
constructor(decorated) {
|
|
11
|
+
this.decorated = decorated;
|
|
12
|
+
}
|
|
13
|
+
getPageLayouts() {
|
|
14
|
+
return this.decorated.getPageLayouts();
|
|
15
|
+
}
|
|
16
|
+
getPageLayout(ref) {
|
|
17
|
+
return this.decorated.getPageLayout(ref);
|
|
18
|
+
}
|
|
19
|
+
createPageLayout(page) {
|
|
20
|
+
return this.decorated.createPageLayout(page);
|
|
21
|
+
}
|
|
22
|
+
updatePageLayout(page) {
|
|
23
|
+
return this.decorated.updatePageLayout(page);
|
|
24
|
+
}
|
|
25
|
+
deletePageLayout(ref) {
|
|
26
|
+
return this.decorated.deletePageLayout(ref);
|
|
27
|
+
}
|
|
28
|
+
getDocumentTemplates() {
|
|
29
|
+
return this.decorated.getDocumentTemplates();
|
|
30
|
+
}
|
|
31
|
+
getDocumentTemplate(ref) {
|
|
32
|
+
return this.decorated.getDocumentTemplate(ref);
|
|
33
|
+
}
|
|
34
|
+
createDocumentTemplate(template) {
|
|
35
|
+
return this.decorated.createDocumentTemplate(template);
|
|
36
|
+
}
|
|
37
|
+
updateDocumentTemplate(template) {
|
|
38
|
+
return this.decorated.updateDocumentTemplate(template);
|
|
39
|
+
}
|
|
40
|
+
deleteDocumentTemplate(ref) {
|
|
41
|
+
return this.decorated.deleteDocumentTemplate(ref);
|
|
42
|
+
}
|
|
43
|
+
getDocuments() {
|
|
44
|
+
return this.decorated.getDocuments();
|
|
45
|
+
}
|
|
46
|
+
getDocument(ref) {
|
|
47
|
+
return this.decorated.getDocument(ref);
|
|
48
|
+
}
|
|
49
|
+
createDocument(publisherDocument) {
|
|
50
|
+
return this.decorated.createDocument(publisherDocument);
|
|
51
|
+
}
|
|
52
|
+
updateDocument(publisherDocument) {
|
|
53
|
+
return this.decorated.updateDocument(publisherDocument);
|
|
54
|
+
}
|
|
55
|
+
deleteDocument(ref) {
|
|
56
|
+
return this.decorated.deleteDocument(ref);
|
|
57
|
+
}
|
|
58
|
+
exportDocumentToPdf(ref, options) {
|
|
59
|
+
return this.decorated.exportDocumentToPdf(ref, options);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type IExportResult, type IPublisherDocumentExportPdfOptions, type IWorkspacePublisherService } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { type IPublisherDocument, type IPublisherDocumentDefinition, type IPublisherDocumentTemplate, type IPublisherDocumentTemplateDefinition, type IPublisherPageLayout, type IPublisherPageLayoutDefinition, type ObjRef } from "@gooddata/sdk-model";
|
|
3
|
+
/**
|
|
4
|
+
* In-memory implementation of the publisher service.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Serves the built-in page layouts and stores created layouts, templates and documents in
|
|
8
|
+
* memory for the lifetime of the instance (dummy backend, tests).
|
|
9
|
+
*
|
|
10
|
+
* @alpha
|
|
11
|
+
*/
|
|
12
|
+
export declare class InMemoryWorkspacePublisherService implements IWorkspacePublisherService {
|
|
13
|
+
private readonly pageLayouts;
|
|
14
|
+
private readonly templates;
|
|
15
|
+
private readonly documents;
|
|
16
|
+
private sequence;
|
|
17
|
+
private newRef;
|
|
18
|
+
private findBuiltInPageLayout;
|
|
19
|
+
getPageLayouts(): Promise<IPublisherPageLayout[]>;
|
|
20
|
+
getPageLayout(ref: ObjRef): Promise<IPublisherPageLayout>;
|
|
21
|
+
createPageLayout(layout: IPublisherPageLayoutDefinition): Promise<IPublisherPageLayout>;
|
|
22
|
+
updatePageLayout(layout: IPublisherPageLayout): Promise<IPublisherPageLayout>;
|
|
23
|
+
deletePageLayout(ref: ObjRef): Promise<void>;
|
|
24
|
+
private assertPageLayoutEditable;
|
|
25
|
+
getDocumentTemplates(): Promise<IPublisherDocumentTemplate[]>;
|
|
26
|
+
getDocumentTemplate(ref: ObjRef): Promise<IPublisherDocumentTemplate>;
|
|
27
|
+
createDocumentTemplate(template: IPublisherDocumentTemplateDefinition): Promise<IPublisherDocumentTemplate>;
|
|
28
|
+
updateDocumentTemplate(template: IPublisherDocumentTemplate): Promise<IPublisherDocumentTemplate>;
|
|
29
|
+
deleteDocumentTemplate(ref: ObjRef): Promise<void>;
|
|
30
|
+
getDocuments(): Promise<IPublisherDocument[]>;
|
|
31
|
+
getDocument(ref: ObjRef): Promise<IPublisherDocument>;
|
|
32
|
+
createDocument(publisherDocument: IPublisherDocumentDefinition): Promise<IPublisherDocument>;
|
|
33
|
+
updateDocument(publisherDocument: IPublisherDocument): Promise<IPublisherDocument>;
|
|
34
|
+
deleteDocument(ref: ObjRef): Promise<void>;
|
|
35
|
+
exportDocumentToPdf(_ref: ObjRef, _options?: IPublisherDocumentExportPdfOptions): Promise<IExportResult>;
|
|
36
|
+
private store;
|
|
37
|
+
private assertExistsAndUnlocked;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=InMemoryWorkspacePublisherService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InMemoryWorkspacePublisherService.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/InMemoryWorkspacePublisherService.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,kCAAkC,EACvC,KAAK,0BAA0B,EAGlC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,EACzC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,MAAM,EAKd,MAAM,qBAAqB,CAAC;AAe7B;;;;;;;;GAQG;AACH,qBAAa,iCAAkC,YAAW,0BAA0B;IAChF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA2C;IACvE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiD;IAC3E,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyC;IACnE,OAAO,CAAC,QAAQ,CAAK;IAErB,OAAO,CAAC,MAAM;IAYd,OAAO,CAAC,qBAAqB;IAItB,cAAc,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAKvD;IAEM,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAU/D;IAEM,gBAAgB,CAAC,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAY7F;IAEM,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAKnF;IAEM,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIlD;IAED,OAAO,CAAC,wBAAwB;IASzB,oBAAoB,IAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAEnE;IAEM,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAM3E;IAEM,sBAAsB,CACzB,QAAQ,EAAE,oCAAoC,GAC/C,OAAO,CAAC,0BAA0B,CAAC,CAOrC;IAEM,sBAAsB,CAAC,QAAQ,EAAE,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAKvG;IAEM,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIxD;IAEM,YAAY,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAEnD;IAEM,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAM3D;IAEM,cAAc,CAAC,iBAAiB,EAAE,4BAA4B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAOlG;IAEM,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAKxF;IAEM,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIhD;IAEM,mBAAmB,CACtB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,kCAAkC,GAC9C,OAAO,CAAC,aAAa,CAAC,CAExB;IAED,OAAO,CAAC,KAAK;IAQb,OAAO,CAAC,uBAAuB;CAalC"}
|
package/esm/dummyBackend/{InMemoryWorkspaceReportsService.js → InMemoryWorkspacePublisherService.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { NotSupported, UnexpectedError, } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import {
|
|
3
|
+
import { BuiltInPublisherPageLayouts, areObjRefsEqual, idRef, isIdentifierRef, objRefToString, } from "@gooddata/sdk-model";
|
|
4
4
|
// Key ignores the identifier ref's optional object type (typed and untyped identifier
|
|
5
5
|
// refs are equivalent under areObjRefsEqual) but keeps the ref kind, so an identifier
|
|
6
6
|
// and a URI with the same string stay distinct.
|
|
@@ -13,18 +13,18 @@ function deepClone(value) {
|
|
|
13
13
|
return JSON.parse(JSON.stringify(value));
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* In-memory implementation of the
|
|
16
|
+
* In-memory implementation of the publisher service.
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Serves the built-in
|
|
19
|
+
* Serves the built-in page layouts and stores created layouts, templates and documents in
|
|
20
20
|
* memory for the lifetime of the instance (dummy backend, tests).
|
|
21
21
|
*
|
|
22
22
|
* @alpha
|
|
23
23
|
*/
|
|
24
|
-
export class
|
|
24
|
+
export class InMemoryWorkspacePublisherService {
|
|
25
25
|
pageLayouts = new Map();
|
|
26
26
|
templates = new Map();
|
|
27
|
-
|
|
27
|
+
documents = new Map();
|
|
28
28
|
sequence = 0;
|
|
29
29
|
newRef(type, store) {
|
|
30
30
|
let ref;
|
|
@@ -35,109 +35,112 @@ export class InMemoryWorkspaceReportsService {
|
|
|
35
35
|
return ref;
|
|
36
36
|
}
|
|
37
37
|
findBuiltInPageLayout(ref) {
|
|
38
|
-
return
|
|
38
|
+
return BuiltInPublisherPageLayouts.find((layout) => areObjRefsEqual(layout.ref, ref));
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
return Promise.resolve([
|
|
40
|
+
getPageLayouts() {
|
|
41
|
+
return Promise.resolve([
|
|
42
|
+
...BuiltInPublisherPageLayouts,
|
|
43
|
+
...deepClone([...this.pageLayouts.values()]),
|
|
44
|
+
]);
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
getPageLayout(ref) {
|
|
44
47
|
const builtIn = this.findBuiltInPageLayout(ref);
|
|
45
48
|
if (builtIn) {
|
|
46
49
|
return Promise.resolve(builtIn);
|
|
47
50
|
}
|
|
48
51
|
const layout = this.pageLayouts.get(refKey(ref));
|
|
49
52
|
if (!layout) {
|
|
50
|
-
throw new UnexpectedError(`
|
|
53
|
+
throw new UnexpectedError(`Page layout "${objRefToString(ref)}" does not exist.`);
|
|
51
54
|
}
|
|
52
55
|
return Promise.resolve(deepClone(layout));
|
|
53
56
|
}
|
|
54
|
-
|
|
57
|
+
createPageLayout(layout) {
|
|
55
58
|
if (layout.ref && this.findBuiltInPageLayout(layout.ref)) {
|
|
56
|
-
throw new UnexpectedError(`
|
|
59
|
+
throw new UnexpectedError(`Page layout "${objRefToString(layout.ref)}" is built-in and cannot be replaced.`);
|
|
57
60
|
}
|
|
58
61
|
const created = {
|
|
59
62
|
...deepClone(layout),
|
|
60
63
|
ref: layout.ref ?? this.newRef("reportPageLayout", this.pageLayouts),
|
|
61
64
|
};
|
|
62
|
-
this.store(this.pageLayouts, created, "
|
|
65
|
+
this.store(this.pageLayouts, created, "Page layout");
|
|
63
66
|
return Promise.resolve(deepClone(created));
|
|
64
67
|
}
|
|
65
|
-
|
|
68
|
+
updatePageLayout(layout) {
|
|
66
69
|
this.assertPageLayoutEditable(layout.ref);
|
|
67
70
|
const updated = { ...deepClone(layout), isBuiltIn: undefined };
|
|
68
71
|
this.pageLayouts.set(refKey(layout.ref), updated);
|
|
69
72
|
return Promise.resolve(deepClone(updated));
|
|
70
73
|
}
|
|
71
|
-
|
|
74
|
+
deletePageLayout(ref) {
|
|
72
75
|
this.assertPageLayoutEditable(ref);
|
|
73
76
|
this.pageLayouts.delete(refKey(ref));
|
|
74
77
|
return Promise.resolve();
|
|
75
78
|
}
|
|
76
79
|
assertPageLayoutEditable(ref) {
|
|
77
80
|
if (this.findBuiltInPageLayout(ref)) {
|
|
78
|
-
throw new UnexpectedError(`
|
|
81
|
+
throw new UnexpectedError(`Page layout "${objRefToString(ref)}" is built-in and cannot be changed.`);
|
|
79
82
|
}
|
|
80
|
-
this.assertExistsAndUnlocked(this.pageLayouts, ref, "
|
|
83
|
+
this.assertExistsAndUnlocked(this.pageLayouts, ref, "Page layout");
|
|
81
84
|
}
|
|
82
|
-
|
|
85
|
+
getDocumentTemplates() {
|
|
83
86
|
return Promise.resolve(deepClone([...this.templates.values()]));
|
|
84
87
|
}
|
|
85
|
-
|
|
88
|
+
getDocumentTemplate(ref) {
|
|
86
89
|
const template = this.templates.get(refKey(ref));
|
|
87
90
|
if (!template) {
|
|
88
|
-
throw new UnexpectedError(`
|
|
91
|
+
throw new UnexpectedError(`Document template "${objRefToString(ref)}" does not exist.`);
|
|
89
92
|
}
|
|
90
93
|
return Promise.resolve(deepClone(template));
|
|
91
94
|
}
|
|
92
|
-
|
|
95
|
+
createDocumentTemplate(template) {
|
|
93
96
|
const created = {
|
|
94
97
|
...deepClone(template),
|
|
95
98
|
ref: template.ref ?? this.newRef("reportTemplate", this.templates),
|
|
96
99
|
};
|
|
97
|
-
this.store(this.templates, created, "
|
|
100
|
+
this.store(this.templates, created, "Document template");
|
|
98
101
|
return Promise.resolve(deepClone(created));
|
|
99
102
|
}
|
|
100
|
-
|
|
101
|
-
this.assertExistsAndUnlocked(this.templates, template.ref, "
|
|
103
|
+
updateDocumentTemplate(template) {
|
|
104
|
+
this.assertExistsAndUnlocked(this.templates, template.ref, "Document template");
|
|
102
105
|
const updated = deepClone(template);
|
|
103
106
|
this.templates.set(refKey(template.ref), updated);
|
|
104
107
|
return Promise.resolve(deepClone(updated));
|
|
105
108
|
}
|
|
106
|
-
|
|
107
|
-
this.assertExistsAndUnlocked(this.templates, ref, "
|
|
109
|
+
deleteDocumentTemplate(ref) {
|
|
110
|
+
this.assertExistsAndUnlocked(this.templates, ref, "Document template");
|
|
108
111
|
this.templates.delete(refKey(ref));
|
|
109
112
|
return Promise.resolve();
|
|
110
113
|
}
|
|
111
|
-
|
|
112
|
-
return Promise.resolve(deepClone([...this.
|
|
114
|
+
getDocuments() {
|
|
115
|
+
return Promise.resolve(deepClone([...this.documents.values()]));
|
|
113
116
|
}
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
if (!
|
|
117
|
-
throw new UnexpectedError(`
|
|
117
|
+
getDocument(ref) {
|
|
118
|
+
const publisherDocument = this.documents.get(refKey(ref));
|
|
119
|
+
if (!publisherDocument) {
|
|
120
|
+
throw new UnexpectedError(`Document "${objRefToString(ref)}" does not exist.`);
|
|
118
121
|
}
|
|
119
|
-
return Promise.resolve(deepClone(
|
|
122
|
+
return Promise.resolve(deepClone(publisherDocument));
|
|
120
123
|
}
|
|
121
|
-
|
|
124
|
+
createDocument(publisherDocument) {
|
|
122
125
|
const created = {
|
|
123
|
-
...deepClone(
|
|
124
|
-
ref:
|
|
126
|
+
...deepClone(publisherDocument),
|
|
127
|
+
ref: publisherDocument.ref ?? this.newRef("report", this.documents),
|
|
125
128
|
};
|
|
126
|
-
this.store(this.
|
|
129
|
+
this.store(this.documents, created, "Document");
|
|
127
130
|
return Promise.resolve(deepClone(created));
|
|
128
131
|
}
|
|
129
|
-
|
|
130
|
-
this.assertExistsAndUnlocked(this.
|
|
131
|
-
const updated = deepClone(
|
|
132
|
-
this.
|
|
132
|
+
updateDocument(publisherDocument) {
|
|
133
|
+
this.assertExistsAndUnlocked(this.documents, publisherDocument.ref, "Document");
|
|
134
|
+
const updated = deepClone(publisherDocument);
|
|
135
|
+
this.documents.set(refKey(publisherDocument.ref), updated);
|
|
133
136
|
return Promise.resolve(deepClone(updated));
|
|
134
137
|
}
|
|
135
|
-
|
|
136
|
-
this.assertExistsAndUnlocked(this.
|
|
137
|
-
this.
|
|
138
|
+
deleteDocument(ref) {
|
|
139
|
+
this.assertExistsAndUnlocked(this.documents, ref, "Document");
|
|
140
|
+
this.documents.delete(refKey(ref));
|
|
138
141
|
return Promise.resolve();
|
|
139
142
|
}
|
|
140
|
-
|
|
143
|
+
exportDocumentToPdf(_ref, _options) {
|
|
141
144
|
throw new NotSupported("not supported");
|
|
142
145
|
}
|
|
143
146
|
store(store, object, what) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAMH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EA2B7B,KAAK,SAAS,EAYd,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAMH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EA2B7B,KAAK,SAAS,EAYd,KAAK,gBAAgB,EAiGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EA0CH,KAAK,oBAAoB,EA4C5B,MAAM,qBAAqB,CAAC;AAU7B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IACxD;;;;;;;;;;OAUG;IACH,qBAAqB,EAAE,KAAK,GAAG,mBAAmB,GAAG,gBAAgB,CAAC;CACzE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,kBAGvC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,MAAM,GAAE,kBAA8C,GAAG,kBAAkB,CA8FvG;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,IAAI,kBAAkB,CAE1D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CACzB,UAAU,EAAE,oBAAoB,EAChC,MAAM,CAAC,EAAE,gBAAgB,EACzB,MAAM,GAAE,kBAA8C,GACvD,SAAS,CAwDX"}
|
|
@@ -7,7 +7,7 @@ import { DummyAnalyticsCatalogService } from "./DummyAnalyticsCatalogService.js"
|
|
|
7
7
|
import { DummyChatConversations } from "./DummyGenAIChatThread.js";
|
|
8
8
|
import { DummySemanticQualityService } from "./DummySemanticQualityService.js";
|
|
9
9
|
import { DummySemanticSearchQueryBuilder } from "./DummySemanticSearch.js";
|
|
10
|
-
import {
|
|
10
|
+
import { InMemoryWorkspacePublisherService } from "./InMemoryWorkspacePublisherService.js";
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
@@ -28,7 +28,7 @@ export const defaultDummyBackendConfig = {
|
|
|
28
28
|
* @internal
|
|
29
29
|
*/
|
|
30
30
|
export function dummyBackend(config = defaultDummyBackendConfig) {
|
|
31
|
-
const
|
|
31
|
+
const publisherServices = new Map();
|
|
32
32
|
const noopBackend = {
|
|
33
33
|
capabilities: {
|
|
34
34
|
canCalculateTotals: true,
|
|
@@ -63,12 +63,12 @@ export function dummyBackend(config = defaultDummyBackendConfig) {
|
|
|
63
63
|
throw new NotSupported("not supported");
|
|
64
64
|
},
|
|
65
65
|
workspace(id) {
|
|
66
|
-
let
|
|
67
|
-
if (!
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
let publisherService = publisherServices.get(id);
|
|
67
|
+
if (!publisherService) {
|
|
68
|
+
publisherService = new InMemoryWorkspacePublisherService();
|
|
69
|
+
publisherServices.set(id, publisherService);
|
|
70
70
|
}
|
|
71
|
-
return dummyWorkspace(id, config,
|
|
71
|
+
return dummyWorkspace(id, config, publisherService);
|
|
72
72
|
},
|
|
73
73
|
entitlements() {
|
|
74
74
|
throw new NotSupported("not supported");
|
|
@@ -204,7 +204,7 @@ export function dummyDataView(definition, result, config = defaultDummyBackendCo
|
|
|
204
204
|
//
|
|
205
205
|
// Internals
|
|
206
206
|
//
|
|
207
|
-
function dummyWorkspace(workspace, config,
|
|
207
|
+
function dummyWorkspace(workspace, config, publisherService) {
|
|
208
208
|
return {
|
|
209
209
|
workspace,
|
|
210
210
|
async getDescriptor() {
|
|
@@ -341,11 +341,26 @@ function dummyWorkspace(workspace, config, reportsService) {
|
|
|
341
341
|
deleteExportTemplate: () => Promise.resolve(),
|
|
342
342
|
};
|
|
343
343
|
},
|
|
344
|
-
|
|
345
|
-
return
|
|
344
|
+
publisher() {
|
|
345
|
+
return publisherService;
|
|
346
|
+
},
|
|
347
|
+
localization() {
|
|
348
|
+
return dummyLocalizationService();
|
|
346
349
|
},
|
|
347
350
|
};
|
|
348
351
|
}
|
|
352
|
+
function dummyLocalizationService() {
|
|
353
|
+
return {
|
|
354
|
+
getUsage: () => Promise.resolve({
|
|
355
|
+
defaults: { LOCALE: null, METADATA_LOCALE: null, DATA_LOCALE: null },
|
|
356
|
+
values: [],
|
|
357
|
+
}),
|
|
358
|
+
getUsageWorkspaces: () => Promise.resolve({ workspaces: [], totalCount: 0 }),
|
|
359
|
+
getUsageUsers: () => Promise.resolve({ users: [], totalCount: 0 }),
|
|
360
|
+
getStatistics: () => Promise.resolve({ metadata: { locales: [] }, data: { locales: [] } }),
|
|
361
|
+
getStatisticsWorkspaces: () => Promise.resolve({ workspaces: [], totalCount: 0 }),
|
|
362
|
+
};
|
|
363
|
+
}
|
|
349
364
|
function dummyDescriptor(workspaceId) {
|
|
350
365
|
return {
|
|
351
366
|
id: workspaceId,
|
|
@@ -803,6 +818,8 @@ class DummyOrganization {
|
|
|
803
818
|
setAiRateLimit: () => Promise.resolve(),
|
|
804
819
|
deleteAiRateLimit: () => Promise.resolve(),
|
|
805
820
|
getAiRateLimit: () => Promise.resolve(undefined),
|
|
821
|
+
getMetadataLocale: () => Promise.resolve(undefined),
|
|
822
|
+
getDataLocale: () => Promise.resolve(undefined),
|
|
806
823
|
setEnableDrillToUrlByDefault: () => Promise.resolve(),
|
|
807
824
|
setEnablePartialDataResults: () => Promise.resolve(),
|
|
808
825
|
setEnableNullJoins: () => Promise.resolve(),
|
|
@@ -981,6 +998,9 @@ class DummyOrganization {
|
|
|
981
998
|
delete: () => Promise.resolve(),
|
|
982
999
|
};
|
|
983
1000
|
}
|
|
1001
|
+
localization() {
|
|
1002
|
+
return dummyLocalizationService();
|
|
1003
|
+
}
|
|
984
1004
|
}
|
|
985
1005
|
class DummyWorkspaceSettingsService {
|
|
986
1006
|
workspace;
|
package/esm/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { type DummyBackendConfig, dummyBackend, dummyBackendEmptyData, dummyData
|
|
|
12
12
|
export { DummySemanticSearchQueryBuilder } from "./dummyBackend/DummySemanticSearch.js";
|
|
13
13
|
export { DummyChatConversations } from "./dummyBackend/DummyGenAIChatThread.js";
|
|
14
14
|
export { decoratedBackend } from "./decoratedBackend/index.js";
|
|
15
|
-
export type { DecoratorFactories, CatalogDecoratorFactory, ExecutionDecoratorFactory, SecuritySettingsDecoratorFactory, WorkspaceSettingsDecoratorFactory, AutomationsDecoratorFactory, AttributesDecoratorFactory, ComputedAttributesDecoratorFactory, InsightsDecoratorFactory, MeasuresDecoratorFactory, DatasetsDecoratorFactory, DashboardsDecoratorFactory, FactsDecoratorFactory, GeoDecoratorFactory, OrganizationExportTemplatesDecoratorFactory, WorkspaceExportTemplatesDecoratorFactory,
|
|
15
|
+
export type { DecoratorFactories, CatalogDecoratorFactory, ExecutionDecoratorFactory, SecuritySettingsDecoratorFactory, WorkspaceSettingsDecoratorFactory, AutomationsDecoratorFactory, AttributesDecoratorFactory, ComputedAttributesDecoratorFactory, InsightsDecoratorFactory, MeasuresDecoratorFactory, DatasetsDecoratorFactory, DashboardsDecoratorFactory, FactsDecoratorFactory, GeoDecoratorFactory, OrganizationExportTemplatesDecoratorFactory, WorkspaceExportTemplatesDecoratorFactory, WorkspacePublisherDecoratorFactory, ObjectPermissionsDecoratorFactory, } from "./decoratedBackend/types.js";
|
|
16
16
|
export { type PreparedExecutionWrapper, DecoratedExecutionFactory, DecoratedPreparedExecution, DecoratedExecutionResult, } from "./decoratedBackend/execution.js";
|
|
17
17
|
export { DecoratedWorkspaceDashboardsService } from "./decoratedBackend/dashboards.js";
|
|
18
18
|
export { DecoratedWorkspaceInsightsService } from "./decoratedBackend/insights.js";
|
|
@@ -21,8 +21,8 @@ export { type WorkspaceCatalogWrapper, DecoratedWorkspaceCatalogFactory, Decorat
|
|
|
21
21
|
export { DecoratedSecuritySettingsService } from "./decoratedBackend/securitySettings.js";
|
|
22
22
|
export { DecoratedOrganizationExportTemplatesService } from "./decoratedBackend/organizationExportTemplates.js";
|
|
23
23
|
export { DecoratedWorkspaceExportTemplatesService } from "./decoratedBackend/workspaceExportTemplates.js";
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
24
|
+
export { DecoratedWorkspacePublisherService } from "./decoratedBackend/workspacePublisher.js";
|
|
25
|
+
export { InMemoryWorkspacePublisherService } from "./dummyBackend/InMemoryWorkspacePublisherService.js";
|
|
26
26
|
export { DecoratedWorkspaceSettingsService } from "./decoratedBackend/workspaceSettings.js";
|
|
27
27
|
export { type AnalyticalBackendCallbacks, withEventing } from "./eventingBackend/index.js";
|
|
28
28
|
export { type CachingConfiguration, type CacheControl, withCaching, RecommendedCachingConfiguration, } from "./cachingBackend/index.js";
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,OAAO,EACH,KAAK,kBAAkB,EACvB,YAAY,EACZ,qBAAqB,EACrB,aAAa,GAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,YAAY,EACR,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,kCAAkC,EAClC,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,mBAAmB,EACnB,2CAA2C,EAC3C,wCAAwC,EACxC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,OAAO,EACH,KAAK,kBAAkB,EACvB,YAAY,EACZ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AAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAC1G,OAAO,EACH,4BAA4B,EAC5B,wBAAwB,GAC3B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACH,yBAAyB,EACzB,6BAA6B,GAChC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACH,0BAA0B,EAC1B,8BAA8B,GACjC,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,KAAK,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAE9G,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -22,8 +22,8 @@ export { DecoratedWorkspaceCatalogFactory, DecoratedWorkspaceCatalog, } from "./
|
|
|
22
22
|
export { DecoratedSecuritySettingsService } from "./decoratedBackend/securitySettings.js";
|
|
23
23
|
export { DecoratedOrganizationExportTemplatesService } from "./decoratedBackend/organizationExportTemplates.js";
|
|
24
24
|
export { DecoratedWorkspaceExportTemplatesService } from "./decoratedBackend/workspaceExportTemplates.js";
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
25
|
+
export { DecoratedWorkspacePublisherService } from "./decoratedBackend/workspacePublisher.js";
|
|
26
|
+
export { InMemoryWorkspacePublisherService } from "./dummyBackend/InMemoryWorkspacePublisherService.js";
|
|
27
27
|
export { DecoratedWorkspaceSettingsService } from "./decoratedBackend/workspaceSettings.js";
|
|
28
28
|
export { withEventing } from "./eventingBackend/index.js";
|
|
29
29
|
export { withCaching, RecommendedCachingConfiguration, } from "./cachingBackend/index.js";
|
|
@@ -142,14 +142,14 @@ import { IPagedResource } from '@gooddata/sdk-backend-spi';
|
|
|
142
142
|
import { IPostProcessing } from '@gooddata/sdk-model';
|
|
143
143
|
import { IPreparedExecution } from '@gooddata/sdk-backend-spi';
|
|
144
144
|
import { IPreparedExecutionOptions } from '@gooddata/sdk-backend-spi';
|
|
145
|
+
import { IPublisherDocument } from '@gooddata/sdk-model';
|
|
146
|
+
import { IPublisherDocumentDefinition } from '@gooddata/sdk-model';
|
|
147
|
+
import { IPublisherDocumentExportPdfOptions } from '@gooddata/sdk-backend-spi';
|
|
148
|
+
import { IPublisherDocumentTemplate } from '@gooddata/sdk-model';
|
|
149
|
+
import { IPublisherDocumentTemplateDefinition } from '@gooddata/sdk-model';
|
|
150
|
+
import { IPublisherPageLayout } from '@gooddata/sdk-model';
|
|
151
|
+
import { IPublisherPageLayoutDefinition } from '@gooddata/sdk-model';
|
|
145
152
|
import { IRawExportCustomOverrides } from '@gooddata/sdk-backend-spi';
|
|
146
|
-
import { IReport } from '@gooddata/sdk-model';
|
|
147
|
-
import { IReportDefinition } from '@gooddata/sdk-model';
|
|
148
|
-
import { IReportExportPdfOptions } from '@gooddata/sdk-backend-spi';
|
|
149
|
-
import { IReportPageLayout } from '@gooddata/sdk-model';
|
|
150
|
-
import { IReportPageLayoutDefinition } from '@gooddata/sdk-model';
|
|
151
|
-
import { IReportTemplate } from '@gooddata/sdk-model';
|
|
152
|
-
import { IReportTemplateDefinition } from '@gooddata/sdk-model';
|
|
153
153
|
import { IRequestCorrelationMetadata } from '@gooddata/sdk-backend-spi';
|
|
154
154
|
import { IResultHeader } from '@gooddata/sdk-model';
|
|
155
155
|
import { IScheduledMail } from '@gooddata/sdk-model';
|
|
@@ -184,7 +184,7 @@ import { IWorkspaceFactsService } from '@gooddata/sdk-backend-spi';
|
|
|
184
184
|
import { IWorkspaceInsightsService } from '@gooddata/sdk-backend-spi';
|
|
185
185
|
import { IWorkspaceMeasuresService } from '@gooddata/sdk-backend-spi';
|
|
186
186
|
import { IWorkspaceObjectPermissionsService } from '@gooddata/sdk-backend-spi';
|
|
187
|
-
import {
|
|
187
|
+
import { IWorkspacePublisherService } from '@gooddata/sdk-backend-spi';
|
|
188
188
|
import { IWorkspaceSettings } from '@gooddata/sdk-backend-spi';
|
|
189
189
|
import { IWorkspaceSettingsService } from '@gooddata/sdk-backend-spi';
|
|
190
190
|
import { KpiDrillDefinition } from '@gooddata/sdk-model';
|
|
@@ -1482,30 +1482,30 @@ export declare abstract class DecoratedWorkspaceObjectPermissionsService impleme
|
|
|
1482
1482
|
}
|
|
1483
1483
|
|
|
1484
1484
|
/**
|
|
1485
|
-
* Base class for
|
|
1486
|
-
* `
|
|
1485
|
+
* Base class for publisher-service decorators. Delegates every method of the decorated
|
|
1486
|
+
* `IWorkspacePublisherService`; subclasses override the methods they customize.
|
|
1487
1487
|
*
|
|
1488
1488
|
* @alpha
|
|
1489
1489
|
*/
|
|
1490
|
-
export declare abstract class
|
|
1491
|
-
protected readonly decorated:
|
|
1492
|
-
protected constructor(decorated:
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1490
|
+
export declare abstract class DecoratedWorkspacePublisherService implements IWorkspacePublisherService {
|
|
1491
|
+
protected readonly decorated: IWorkspacePublisherService;
|
|
1492
|
+
protected constructor(decorated: IWorkspacePublisherService);
|
|
1493
|
+
getPageLayouts(): Promise<IPublisherPageLayout[]>;
|
|
1494
|
+
getPageLayout(ref: ObjRef): Promise<IPublisherPageLayout>;
|
|
1495
|
+
createPageLayout(page: IPublisherPageLayoutDefinition): Promise<IPublisherPageLayout>;
|
|
1496
|
+
updatePageLayout(page: IPublisherPageLayout): Promise<IPublisherPageLayout>;
|
|
1497
|
+
deletePageLayout(ref: ObjRef): Promise<void>;
|
|
1498
|
+
getDocumentTemplates(): Promise<IPublisherDocumentTemplate[]>;
|
|
1499
|
+
getDocumentTemplate(ref: ObjRef): Promise<IPublisherDocumentTemplate>;
|
|
1500
|
+
createDocumentTemplate(template: IPublisherDocumentTemplateDefinition): Promise<IPublisherDocumentTemplate>;
|
|
1501
|
+
updateDocumentTemplate(template: IPublisherDocumentTemplate): Promise<IPublisherDocumentTemplate>;
|
|
1502
|
+
deleteDocumentTemplate(ref: ObjRef): Promise<void>;
|
|
1503
|
+
getDocuments(): Promise<IPublisherDocument[]>;
|
|
1504
|
+
getDocument(ref: ObjRef): Promise<IPublisherDocument>;
|
|
1505
|
+
createDocument(publisherDocument: IPublisherDocumentDefinition): Promise<IPublisherDocument>;
|
|
1506
|
+
updateDocument(publisherDocument: IPublisherDocument): Promise<IPublisherDocument>;
|
|
1507
|
+
deleteDocument(ref: ObjRef): Promise<void>;
|
|
1508
|
+
exportDocumentToPdf(ref: ObjRef, options?: IPublisherDocumentExportPdfOptions): Promise<IExportResult>;
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
1511
|
/**
|
|
@@ -1577,7 +1577,7 @@ export declare type DecoratorFactories = {
|
|
|
1577
1577
|
geo?: GeoDecoratorFactory;
|
|
1578
1578
|
organizationExportTemplates?: OrganizationExportTemplatesDecoratorFactory;
|
|
1579
1579
|
workspaceExportTemplates?: WorkspaceExportTemplatesDecoratorFactory;
|
|
1580
|
-
|
|
1580
|
+
workspacePublisher?: WorkspacePublisherDecoratorFactory;
|
|
1581
1581
|
objectPermissions?: ObjectPermissionsDecoratorFactory;
|
|
1582
1582
|
};
|
|
1583
1583
|
|
|
@@ -1989,38 +1989,38 @@ export declare class InMemoryPaging<T> implements IPagedResource<T> {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
1991
|
/**
|
|
1992
|
-
* In-memory implementation of the
|
|
1992
|
+
* In-memory implementation of the publisher service.
|
|
1993
1993
|
*
|
|
1994
1994
|
* @remarks
|
|
1995
|
-
* Serves the built-in
|
|
1995
|
+
* Serves the built-in page layouts and stores created layouts, templates and documents in
|
|
1996
1996
|
* memory for the lifetime of the instance (dummy backend, tests).
|
|
1997
1997
|
*
|
|
1998
1998
|
* @alpha
|
|
1999
1999
|
*/
|
|
2000
|
-
export declare class
|
|
2000
|
+
export declare class InMemoryWorkspacePublisherService implements IWorkspacePublisherService {
|
|
2001
2001
|
private readonly pageLayouts;
|
|
2002
2002
|
private readonly templates;
|
|
2003
|
-
private readonly
|
|
2003
|
+
private readonly documents;
|
|
2004
2004
|
private sequence;
|
|
2005
2005
|
private newRef;
|
|
2006
2006
|
private findBuiltInPageLayout;
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2007
|
+
getPageLayouts(): Promise<IPublisherPageLayout[]>;
|
|
2008
|
+
getPageLayout(ref: ObjRef): Promise<IPublisherPageLayout>;
|
|
2009
|
+
createPageLayout(layout: IPublisherPageLayoutDefinition): Promise<IPublisherPageLayout>;
|
|
2010
|
+
updatePageLayout(layout: IPublisherPageLayout): Promise<IPublisherPageLayout>;
|
|
2011
|
+
deletePageLayout(ref: ObjRef): Promise<void>;
|
|
2012
2012
|
private assertPageLayoutEditable;
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2013
|
+
getDocumentTemplates(): Promise<IPublisherDocumentTemplate[]>;
|
|
2014
|
+
getDocumentTemplate(ref: ObjRef): Promise<IPublisherDocumentTemplate>;
|
|
2015
|
+
createDocumentTemplate(template: IPublisherDocumentTemplateDefinition): Promise<IPublisherDocumentTemplate>;
|
|
2016
|
+
updateDocumentTemplate(template: IPublisherDocumentTemplate): Promise<IPublisherDocumentTemplate>;
|
|
2017
|
+
deleteDocumentTemplate(ref: ObjRef): Promise<void>;
|
|
2018
|
+
getDocuments(): Promise<IPublisherDocument[]>;
|
|
2019
|
+
getDocument(ref: ObjRef): Promise<IPublisherDocument>;
|
|
2020
|
+
createDocument(publisherDocument: IPublisherDocumentDefinition): Promise<IPublisherDocument>;
|
|
2021
|
+
updateDocument(publisherDocument: IPublisherDocument): Promise<IPublisherDocument>;
|
|
2022
|
+
deleteDocument(ref: ObjRef): Promise<void>;
|
|
2023
|
+
exportDocumentToPdf(_ref: ObjRef, _options?: IPublisherDocumentExportPdfOptions): Promise<IExportResult>;
|
|
2024
2024
|
private store;
|
|
2025
2025
|
private assertExistsAndUnlocked;
|
|
2026
2026
|
}
|
|
@@ -2704,7 +2704,7 @@ export declare type WorkspaceExportTemplatesDecoratorFactory = (exportTemplates:
|
|
|
2704
2704
|
/**
|
|
2705
2705
|
* @alpha
|
|
2706
2706
|
*/
|
|
2707
|
-
export declare type
|
|
2707
|
+
export declare type WorkspacePublisherDecoratorFactory = (publisher: IWorkspacePublisherService, workspace: string) => IWorkspacePublisherService;
|
|
2708
2708
|
|
|
2709
2709
|
/**
|
|
2710
2710
|
* @alpha
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-base",
|
|
3
|
-
"version": "11.62.0-alpha.
|
|
3
|
+
"version": "11.62.0-alpha.2",
|
|
4
4
|
"description": "GoodData.UI SDK - Base for backend implementations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"ts-invariant": "0.10.3",
|
|
30
30
|
"tslib": "2.8.1",
|
|
31
31
|
"uuid": "11.1.1",
|
|
32
|
-
"@gooddata/sdk-backend-spi": "11.62.0-alpha.
|
|
33
|
-
"@gooddata/sdk-model": "11.62.0-alpha.
|
|
34
|
-
"@gooddata/util": "11.62.0-alpha.
|
|
32
|
+
"@gooddata/sdk-backend-spi": "11.62.0-alpha.2",
|
|
33
|
+
"@gooddata/sdk-model": "11.62.0-alpha.2",
|
|
34
|
+
"@gooddata/util": "11.62.0-alpha.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@microsoft/api-documenter": "7.30.16",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"oxlint-tsgolint": "7.0.2001",
|
|
55
55
|
"typescript": "7.0.2",
|
|
56
56
|
"vitest": "4.1.11",
|
|
57
|
-
"@gooddata/oxlint-config": "11.62.0-alpha.
|
|
58
|
-
"@gooddata/eslint-config": "11.62.0-alpha.
|
|
59
|
-
"@gooddata/reference-workspace": "11.62.0-alpha.
|
|
57
|
+
"@gooddata/oxlint-config": "11.62.0-alpha.2",
|
|
58
|
+
"@gooddata/eslint-config": "11.62.0-alpha.2",
|
|
59
|
+
"@gooddata/reference-workspace": "11.62.0-alpha.2"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"_phase:build": "npm run build",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type IExportResult, type IReportExportPdfOptions, type IWorkspaceReportsService } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import { type IReport, type IReportDefinition, type IReportPageLayout, type IReportPageLayoutDefinition, type IReportTemplate, type IReportTemplateDefinition, type ObjRef } from "@gooddata/sdk-model";
|
|
3
|
-
/**
|
|
4
|
-
* Base class for report-service decorators. Delegates every method of the decorated
|
|
5
|
-
* `IWorkspaceReportsService`; subclasses override the methods they customize.
|
|
6
|
-
*
|
|
7
|
-
* @alpha
|
|
8
|
-
*/
|
|
9
|
-
export declare abstract class DecoratedWorkspaceReportsService implements IWorkspaceReportsService {
|
|
10
|
-
protected readonly decorated: IWorkspaceReportsService;
|
|
11
|
-
protected constructor(decorated: IWorkspaceReportsService);
|
|
12
|
-
getReportPageLayouts(): Promise<IReportPageLayout[]>;
|
|
13
|
-
getReportPageLayout(ref: ObjRef): Promise<IReportPageLayout>;
|
|
14
|
-
createReportPageLayout(page: IReportPageLayoutDefinition): Promise<IReportPageLayout>;
|
|
15
|
-
updateReportPageLayout(page: IReportPageLayout): Promise<IReportPageLayout>;
|
|
16
|
-
deleteReportPageLayout(ref: ObjRef): Promise<void>;
|
|
17
|
-
getReportTemplates(): Promise<IReportTemplate[]>;
|
|
18
|
-
getReportTemplate(ref: ObjRef): Promise<IReportTemplate>;
|
|
19
|
-
createReportTemplate(template: IReportTemplateDefinition): Promise<IReportTemplate>;
|
|
20
|
-
updateReportTemplate(template: IReportTemplate): Promise<IReportTemplate>;
|
|
21
|
-
deleteReportTemplate(ref: ObjRef): Promise<void>;
|
|
22
|
-
getReports(): Promise<IReport[]>;
|
|
23
|
-
getReport(ref: ObjRef): Promise<IReport>;
|
|
24
|
-
createReport(report: IReportDefinition): Promise<IReport>;
|
|
25
|
-
updateReport(report: IReport): Promise<IReport>;
|
|
26
|
-
deleteReport(ref: ObjRef): Promise<void>;
|
|
27
|
-
exportReportToPdf(ref: ObjRef, options?: IReportExportPdfOptions): Promise<IExportResult>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=workspaceReports.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceReports.d.ts","sourceRoot":"","sources":["../../src/decoratedBackend/workspaceReports.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAE7B;;;;;GAKG;AACH,8BAAsB,gCAAiC,YAAW,wBAAwB;IAChE,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,wBAAwB;IAA5E,SAAS,aAAgC,SAAS,EAAE,wBAAwB,EAAI;IAEzE,oBAAoB,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAE1D;IAEM,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAElE;IAEM,sBAAsB,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAE3F;IAEM,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAEjF;IAEM,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAExD;IAEM,kBAAkB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC,CAEtD;IAEM,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAE9D;IAEM,oBAAoB,CAAC,QAAQ,EAAE,yBAAyB,GAAG,OAAO,CAAC,eAAe,CAAC,CAEzF;IAEM,oBAAoB,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAE/E;IAEM,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtD;IAEM,UAAU,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,CAEtC;IAEM,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE9C;IAEM,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAE/D;IAEM,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAErD;IAEM,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9C;IAEM,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,CAAC,CAE/F;CACJ"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
/**
|
|
3
|
-
* Base class for report-service decorators. Delegates every method of the decorated
|
|
4
|
-
* `IWorkspaceReportsService`; subclasses override the methods they customize.
|
|
5
|
-
*
|
|
6
|
-
* @alpha
|
|
7
|
-
*/
|
|
8
|
-
export class DecoratedWorkspaceReportsService {
|
|
9
|
-
decorated;
|
|
10
|
-
constructor(decorated) {
|
|
11
|
-
this.decorated = decorated;
|
|
12
|
-
}
|
|
13
|
-
getReportPageLayouts() {
|
|
14
|
-
return this.decorated.getReportPageLayouts();
|
|
15
|
-
}
|
|
16
|
-
getReportPageLayout(ref) {
|
|
17
|
-
return this.decorated.getReportPageLayout(ref);
|
|
18
|
-
}
|
|
19
|
-
createReportPageLayout(page) {
|
|
20
|
-
return this.decorated.createReportPageLayout(page);
|
|
21
|
-
}
|
|
22
|
-
updateReportPageLayout(page) {
|
|
23
|
-
return this.decorated.updateReportPageLayout(page);
|
|
24
|
-
}
|
|
25
|
-
deleteReportPageLayout(ref) {
|
|
26
|
-
return this.decorated.deleteReportPageLayout(ref);
|
|
27
|
-
}
|
|
28
|
-
getReportTemplates() {
|
|
29
|
-
return this.decorated.getReportTemplates();
|
|
30
|
-
}
|
|
31
|
-
getReportTemplate(ref) {
|
|
32
|
-
return this.decorated.getReportTemplate(ref);
|
|
33
|
-
}
|
|
34
|
-
createReportTemplate(template) {
|
|
35
|
-
return this.decorated.createReportTemplate(template);
|
|
36
|
-
}
|
|
37
|
-
updateReportTemplate(template) {
|
|
38
|
-
return this.decorated.updateReportTemplate(template);
|
|
39
|
-
}
|
|
40
|
-
deleteReportTemplate(ref) {
|
|
41
|
-
return this.decorated.deleteReportTemplate(ref);
|
|
42
|
-
}
|
|
43
|
-
getReports() {
|
|
44
|
-
return this.decorated.getReports();
|
|
45
|
-
}
|
|
46
|
-
getReport(ref) {
|
|
47
|
-
return this.decorated.getReport(ref);
|
|
48
|
-
}
|
|
49
|
-
createReport(report) {
|
|
50
|
-
return this.decorated.createReport(report);
|
|
51
|
-
}
|
|
52
|
-
updateReport(report) {
|
|
53
|
-
return this.decorated.updateReport(report);
|
|
54
|
-
}
|
|
55
|
-
deleteReport(ref) {
|
|
56
|
-
return this.decorated.deleteReport(ref);
|
|
57
|
-
}
|
|
58
|
-
exportReportToPdf(ref, options) {
|
|
59
|
-
return this.decorated.exportReportToPdf(ref, options);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type IExportResult, type IReportExportPdfOptions, type IWorkspaceReportsService } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import { type IReport, type IReportDefinition, type IReportPageLayout, type IReportPageLayoutDefinition, type IReportTemplate, type IReportTemplateDefinition, type ObjRef } from "@gooddata/sdk-model";
|
|
3
|
-
/**
|
|
4
|
-
* In-memory implementation of the reports service.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* Serves the built-in report page layouts and stores created layouts, templates and reports in
|
|
8
|
-
* memory for the lifetime of the instance (dummy backend, tests).
|
|
9
|
-
*
|
|
10
|
-
* @alpha
|
|
11
|
-
*/
|
|
12
|
-
export declare class InMemoryWorkspaceReportsService implements IWorkspaceReportsService {
|
|
13
|
-
private readonly pageLayouts;
|
|
14
|
-
private readonly templates;
|
|
15
|
-
private readonly reports;
|
|
16
|
-
private sequence;
|
|
17
|
-
private newRef;
|
|
18
|
-
private findBuiltInPageLayout;
|
|
19
|
-
getReportPageLayouts(): Promise<IReportPageLayout[]>;
|
|
20
|
-
getReportPageLayout(ref: ObjRef): Promise<IReportPageLayout>;
|
|
21
|
-
createReportPageLayout(layout: IReportPageLayoutDefinition): Promise<IReportPageLayout>;
|
|
22
|
-
updateReportPageLayout(layout: IReportPageLayout): Promise<IReportPageLayout>;
|
|
23
|
-
deleteReportPageLayout(ref: ObjRef): Promise<void>;
|
|
24
|
-
private assertPageLayoutEditable;
|
|
25
|
-
getReportTemplates(): Promise<IReportTemplate[]>;
|
|
26
|
-
getReportTemplate(ref: ObjRef): Promise<IReportTemplate>;
|
|
27
|
-
createReportTemplate(template: IReportTemplateDefinition): Promise<IReportTemplate>;
|
|
28
|
-
updateReportTemplate(template: IReportTemplate): Promise<IReportTemplate>;
|
|
29
|
-
deleteReportTemplate(ref: ObjRef): Promise<void>;
|
|
30
|
-
getReports(): Promise<IReport[]>;
|
|
31
|
-
getReport(ref: ObjRef): Promise<IReport>;
|
|
32
|
-
createReport(report: IReportDefinition): Promise<IReport>;
|
|
33
|
-
updateReport(report: IReport): Promise<IReport>;
|
|
34
|
-
deleteReport(ref: ObjRef): Promise<void>;
|
|
35
|
-
exportReportToPdf(_ref: ObjRef, _options?: IReportExportPdfOptions): Promise<IExportResult>;
|
|
36
|
-
private store;
|
|
37
|
-
private assertExistsAndUnlocked;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=InMemoryWorkspaceReportsService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryWorkspaceReportsService.d.ts","sourceRoot":"","sources":["../../src/dummyBackend/InMemoryWorkspaceReportsService.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAGhC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,MAAM,EAKd,MAAM,qBAAqB,CAAC;AAe7B;;;;;;;;GAQG;AACH,qBAAa,+BAAgC,YAAW,wBAAwB;IAC5E,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwC;IACpE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsC;IAChE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8B;IACtD,OAAO,CAAC,QAAQ,CAAK;IAErB,OAAO,CAAC,MAAM;IAYd,OAAO,CAAC,qBAAqB;IAItB,oBAAoB,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAE1D;IAEM,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAUlE;IAEM,sBAAsB,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC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