@acorex-platform/module-report-management-server 0.0.18 → 2.0.0-beta.1
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/contracts/src/commands.keys.d.ts +13 -0
- package/contracts/src/commands.keys.js +19 -0
- package/contracts/src/commands.keys.js.map +1 -0
- package/contracts/src/entities/index.d.ts +1 -0
- package/contracts/src/entities/index.js +1 -0
- package/contracts/src/entities/index.js.map +1 -1
- package/contracts/src/entities/report/index.d.ts +1 -1
- package/contracts/src/entities/report/index.js +1 -1
- package/contracts/src/entities/report/index.js.map +1 -1
- package/contracts/src/entities/report/report.entity.js +180 -12
- package/contracts/src/entities/report/report.entity.js.map +1 -1
- package/contracts/src/entities/report-category/index.d.ts +1 -1
- package/contracts/src/entities/report-category/index.js +0 -2
- package/contracts/src/entities/report-category/index.js.map +1 -1
- package/contracts/src/entities/report-category/report-category.entity.js +14 -1
- package/contracts/src/entities/report-category/report-category.entity.js.map +1 -1
- package/contracts/src/entities/report-generation-request/index.d.ts +1 -0
- package/contracts/src/entities/report-generation-request/index.js +5 -0
- package/contracts/src/entities/report-generation-request/index.js.map +1 -0
- package/contracts/src/entities/report-generation-request/report-generation-request.entity.d.ts +2 -0
- package/contracts/src/entities/report-generation-request/report-generation-request.entity.js +208 -0
- package/contracts/src/entities/report-generation-request/report-generation-request.entity.js.map +1 -0
- package/contracts/src/entity-catalog.d.ts +7 -0
- package/contracts/src/entity-catalog.js +22 -0
- package/contracts/src/entity-catalog.js.map +1 -0
- package/contracts/src/entity-entry.report-category.d.ts +1 -0
- package/contracts/src/entity-entry.report-category.js +6 -0
- package/contracts/src/entity-entry.report-category.js.map +1 -0
- package/contracts/src/entity-entry.report-generation-request.d.ts +1 -0
- package/contracts/src/entity-entry.report-generation-request.js +6 -0
- package/contracts/src/entity-entry.report-generation-request.js.map +1 -0
- package/contracts/src/entity-entry.report.d.ts +1 -0
- package/contracts/src/entity-entry.report.js +6 -0
- package/contracts/src/entity-entry.report.js.map +1 -0
- package/contracts/src/index.d.ts +18 -1
- package/contracts/src/index.js +18 -1
- package/contracts/src/index.js.map +1 -1
- package/contracts/src/manifest.d.ts +6 -0
- package/contracts/src/manifest.js +24 -0
- package/contracts/src/manifest.js.map +1 -0
- package/contracts/src/permission.keys.d.ts +30 -14
- package/contracts/src/permission.keys.js +28 -12
- package/contracts/src/permission.keys.js.map +1 -1
- package/contracts/src/query-cache-targets.d.ts +5 -0
- package/contracts/src/query-cache-targets.js +113 -0
- package/contracts/src/query-cache-targets.js.map +1 -0
- package/contracts/src/report-filter-form.util.d.ts +20 -0
- package/contracts/src/report-filter-form.util.js +121 -0
- package/contracts/src/report-filter-form.util.js.map +1 -0
- package/contracts/src/report-generation.types.d.ts +97 -0
- package/contracts/src/report-generation.types.js +14 -0
- package/contracts/src/report-generation.types.js.map +1 -0
- package/contracts/src/report-interchange.projection.d.ts +22 -0
- package/contracts/src/report-interchange.projection.js +171 -0
- package/contracts/src/report-interchange.projection.js.map +1 -0
- package/contracts/src/report-interchange.snapshot.d.ts +12 -0
- package/contracts/src/report-interchange.snapshot.js +34 -0
- package/contracts/src/report-interchange.snapshot.js.map +1 -0
- package/contracts/src/report-interchange.types.d.ts +38 -0
- package/contracts/src/report-interchange.types.js +4 -0
- package/contracts/src/report-interchange.types.js.map +1 -0
- package/contracts/src/report-layout-field-schema.d.ts +64 -0
- package/contracts/src/report-layout-field-schema.js +294 -0
- package/contracts/src/report-layout-field-schema.js.map +1 -0
- package/contracts/src/report-layout-form.util.d.ts +67 -0
- package/contracts/src/report-layout-form.util.js +578 -0
- package/contracts/src/report-layout-form.util.js.map +1 -0
- package/contracts/src/report-layout-json-sections.d.ts +15 -0
- package/contracts/src/report-layout-json-sections.js +38 -0
- package/contracts/src/report-layout-json-sections.js.map +1 -0
- package/contracts/src/report-layout-sections.mapper.d.ts +37 -0
- package/contracts/src/report-layout-sections.mapper.js +306 -0
- package/contracts/src/report-layout-sections.mapper.js.map +1 -0
- package/contracts/src/report-layout-starter.d.ts +15 -0
- package/contracts/src/report-layout-starter.js +93 -0
- package/contracts/src/report-layout-starter.js.map +1 -0
- package/contracts/src/report-layout.presets.d.ts +17 -0
- package/contracts/src/report-layout.presets.js +72 -0
- package/contracts/src/report-layout.presets.js.map +1 -0
- package/contracts/src/report-parameter-binding.util.d.ts +8 -0
- package/contracts/src/report-parameter-binding.util.js +29 -0
- package/contracts/src/report-parameter-binding.util.js.map +1 -0
- package/contracts/src/report.types.d.ts +125 -107
- package/contracts/src/report.types.js.map +1 -1
- package/contracts/src/root-config.d.ts +9 -2
- package/contracts/src/root-config.js +9 -2
- package/contracts/src/root-config.js.map +1 -1
- package/contracts/src/runtime.keys.d.ts +14 -0
- package/contracts/src/runtime.keys.js +20 -0
- package/contracts/src/runtime.keys.js.map +1 -0
- package/contracts/src/settings.keys.d.ts +11 -0
- package/contracts/src/settings.keys.js +17 -0
- package/contracts/src/settings.keys.js.map +1 -0
- package/package.json +9 -7
- package/server/src/index.d.ts +4 -4
- package/server/src/index.js +9 -8
- package/server/src/index.js.map +1 -1
- package/server/src/lib/entities/index.d.ts +1 -0
- package/server/src/lib/entities/index.js +5 -0
- package/server/src/lib/entities/index.js.map +1 -0
- package/server/src/lib/entities/report-management.entity-catalog.d.ts +1 -0
- package/server/src/lib/entities/report-management.entity-catalog.js +12 -0
- package/server/src/lib/entities/report-management.entity-catalog.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-definition.service.d.ts +18 -0
- package/server/src/lib/interchange/report-interchange-definition.service.js +94 -0
- package/server/src/lib/interchange/report-interchange-definition.service.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-export-data-source.d.ts +16 -0
- package/server/src/lib/interchange/report-interchange-export-data-source.js +72 -0
- package/server/src/lib/interchange/report-interchange-export-data-source.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-export-query.util.d.ts +10 -0
- package/server/src/lib/interchange/report-interchange-export-query.util.js +22 -0
- package/server/src/lib/interchange/report-interchange-export-query.util.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-export.command.d.ts +31 -0
- package/server/src/lib/interchange/report-interchange-export.command.js +268 -0
- package/server/src/lib/interchange/report-interchange-export.command.js.map +1 -0
- package/server/src/lib/report-browse.service.js +32 -13
- package/server/src/lib/report-browse.service.js.map +1 -1
- package/server/src/lib/report-browse.types.d.ts +27 -12
- package/server/src/lib/report-browse.types.js +0 -1
- package/server/src/lib/report-browse.types.js.map +1 -1
- package/server/src/lib/report-definition.seed-provider.d.ts +15 -0
- package/server/src/lib/report-definition.seed-provider.js +63 -0
- package/server/src/lib/report-definition.seed-provider.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-create.command.d.ts +17 -0
- package/server/src/lib/report-generation/report-generation-create.command.js +177 -0
- package/server/src/lib/report-generation/report-generation-create.command.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-enqueue.service.d.ts +21 -0
- package/server/src/lib/report-generation/report-generation-enqueue.service.js +58 -0
- package/server/src/lib/report-generation/report-generation-enqueue.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-execute.command.d.ts +10 -0
- package/server/src/lib/report-generation/report-generation-execute.command.js +49 -0
- package/server/src/lib/report-generation/report-generation-execute.command.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-execute.service.d.ts +23 -0
- package/server/src/lib/report-generation/report-generation-execute.service.js +226 -0
- package/server/src/lib/report-generation/report-generation-execute.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-job-presentation.util.d.ts +8 -0
- package/server/src/lib/report-generation/report-generation-job-presentation.util.js +43 -0
- package/server/src/lib/report-generation/report-generation-job-presentation.util.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-notify.service.d.ts +23 -0
- package/server/src/lib/report-generation/report-generation-notify.service.js +159 -0
- package/server/src/lib/report-generation/report-generation-notify.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-policy.util.d.ts +39 -0
- package/server/src/lib/report-generation/report-generation-policy.util.js +95 -0
- package/server/src/lib/report-generation/report-generation-policy.util.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-progress.util.d.ts +14 -0
- package/server/src/lib/report-generation/report-generation-progress.util.js +51 -0
- package/server/src/lib/report-generation/report-generation-progress.util.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-release-inline-watch.command.d.ts +10 -0
- package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js +55 -0
- package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-runtime.handlers.d.ts +27 -0
- package/server/src/lib/report-generation/report-generation-runtime.handlers.js +136 -0
- package/server/src/lib/report-generation/report-generation-runtime.handlers.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-settings.service.d.ts +12 -0
- package/server/src/lib/report-generation/report-generation-settings.service.js +49 -0
- package/server/src/lib/report-generation/report-generation-settings.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation.constants.d.ts +16 -0
- package/server/src/lib/report-generation/report-generation.constants.js +24 -0
- package/server/src/lib/report-generation/report-generation.constants.js.map +1 -0
- package/server/src/lib/report-generation/report-generation.store.d.ts +25 -0
- package/server/src/lib/report-generation/report-generation.store.js +145 -0
- package/server/src/lib/report-generation/report-generation.store.js.map +1 -0
- package/server/src/lib/report-generation/report-generation.util.d.ts +8 -0
- package/server/src/lib/report-generation/report-generation.util.js +131 -0
- package/server/src/lib/report-generation/report-generation.util.js.map +1 -0
- package/server/src/lib/report-management-runtime.handlers.d.ts +32 -0
- package/server/src/lib/report-management-runtime.handlers.js +78 -0
- package/server/src/lib/report-management-runtime.handlers.js.map +1 -0
- package/server/src/lib/report-management-server.module.js +55 -9
- package/server/src/lib/report-management-server.module.js.map +1 -1
- package/server/src/lib/report-management.controller.d.ts +1 -4
- package/server/src/lib/report-management.controller.js +2 -16
- package/server/src/lib/report-management.controller.js.map +1 -1
- package/server/src/lib/seed/index.d.ts +0 -19
- package/server/src/lib/seed/index.js +0 -21
- package/server/src/lib/seed/index.js.map +0 -1
- package/server/src/lib/seed/report-management-seed.provider.d.ts +0 -4
- package/server/src/lib/seed/report-management-seed.provider.js +0 -18
- package/server/src/lib/seed/report-management-seed.provider.js.map +0 -1
- package/server/src/lib/seed/report-management-seed.tokens.d.ts +0 -1
- package/server/src/lib/seed/report-management-seed.tokens.js +0 -7
- package/server/src/lib/seed/report-management-seed.tokens.js.map +0 -1
- package/server/src/lib/seed/report-management.seed-catalog.d.ts +0 -2
- package/server/src/lib/seed/report-management.seed-catalog.js +0 -10
- package/server/src/lib/seed/report-management.seed-catalog.js.map +0 -1
- package/server/src/lib/seed/samples/employee-report.mock.d.ts +0 -9
- package/server/src/lib/seed/samples/employee-report.mock.js +0 -322
- package/server/src/lib/seed/samples/employee-report.mock.js.map +0 -1
- package/server/src/lib/seed/samples/index.d.ts +0 -2
- package/server/src/lib/seed/samples/index.js +0 -6
- package/server/src/lib/seed/samples/index.js.map +0 -1
- package/server/src/lib/seed/samples/location-report.mock.d.ts +0 -9
- package/server/src/lib/seed/samples/location-report.mock.js +0 -339
- package/server/src/lib/seed/samples/location-report.mock.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.applyReportParameterBindings = applyReportParameterBindings;
|
|
4
|
+
//#region ---- Filter mapping ----
|
|
5
|
+
/**
|
|
6
|
+
* Applies the filter mapping of a view's data source to the conditions built from the report filters.
|
|
7
|
+
* A condition on a filter that the view maps to a query field runs on that field instead.
|
|
8
|
+
* Filters without a mapping keep their own name, which is the field of the query rows with the same name.
|
|
9
|
+
*/
|
|
10
|
+
function applyReportParameterBindings(clause, inputs) {
|
|
11
|
+
const targets = new Map();
|
|
12
|
+
for (const input of inputs !== null && inputs !== void 0 ? inputs : []) {
|
|
13
|
+
const parameterKey = typeof (input === null || input === void 0 ? void 0 : input.parameterKey) === 'string' ? input.parameterKey.trim() : '';
|
|
14
|
+
const bindTo = typeof (input === null || input === void 0 ? void 0 : input.bindTo) === 'string' ? input.bindTo.trim() : '';
|
|
15
|
+
if (parameterKey && bindTo && parameterKey !== bindTo) {
|
|
16
|
+
targets.set(parameterKey, bindTo);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return targets.size === 0 ? clause : remap(clause, targets);
|
|
20
|
+
}
|
|
21
|
+
function remap(clause, targets) {
|
|
22
|
+
if (Array.isArray(clause.filters)) {
|
|
23
|
+
return Object.assign(Object.assign({}, clause), { filters: clause.filters.map((child) => remap(child, targets)) });
|
|
24
|
+
}
|
|
25
|
+
const target = typeof clause.field === 'string' ? targets.get(clause.field) : undefined;
|
|
26
|
+
return target ? Object.assign(Object.assign({}, clause), { field: target }) : clause;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//# sourceMappingURL=report-parameter-binding.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-parameter-binding.util.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/report-parameter-binding.util.ts"],"names":[],"mappings":";;AAUA,oEAaC;AApBD,kCAAkC;AAElC;;;;GAIG;AACH,SAAgB,4BAA4B,CAC1C,MAAuB,EACvB,MAA+D;IAE/D,MAAM,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC1C,KAAK,MAAM,KAAK,IAAI,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,EAAE,CAAC;QACjC,MAAM,YAAY,GAAG,OAAO,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,CAAA,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9F,MAAM,MAAM,GAAG,OAAO,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAA,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5E,IAAI,YAAY,IAAI,MAAM,IAAI,YAAY,KAAK,MAAM,EAAE,CAAC;YACtD,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,KAAK,CAAC,MAAuB,EAAE,OAAoC;IAC1E,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QAClC,uCAAY,MAAM,KAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAG;IACtF,CAAC;IACD,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACxF,OAAO,MAAM,CAAC,CAAC,iCAAM,MAAM,KAAE,KAAK,EAAE,MAAM,IAAG,CAAC,CAAC,MAAM,CAAC;AACxD,CAAC;AAED,YAAY"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetColumnNode } from '@acorex-platform/framework-shared/widget-core';
|
|
2
|
-
import { AXPCommand } from '@acorex-platform/framework-shared/runtime';
|
|
3
2
|
import { AXPQuerySort } from '@acorex-platform/framework-shared/entity';
|
|
4
|
-
import { AXPActionMenuItem, AXPCategoryEntity, AXPExportOptions,
|
|
3
|
+
import { AXPActionMenuItem, AXPCategoryEntity, AXPExportOptions, AXPFilterDefinition, AXPSystemActionType, type AXPMultiLanguageString, type AXPWidgetNode } from '@acorex-platform/framework-shared/core';
|
|
5
4
|
export type AXPReportLayoutType = 'table' | 'chart' | 'cards' | 'custom' | 'pdf';
|
|
6
5
|
/**
|
|
7
6
|
* Report Category - Extends AXPCategoryEntity for consistency and performance
|
|
@@ -23,15 +22,98 @@ export type AXPReportLayoutType = 'table' | 'chart' | 'cards' | 'custom' | 'pdf'
|
|
|
23
22
|
*/
|
|
24
23
|
export interface AXPReportCategory extends AXPCategoryEntity {
|
|
25
24
|
}
|
|
25
|
+
/** How an entity-bound report is surfaced on the host entity UI. */
|
|
26
|
+
export type AXPReportEntityDisplay = 'action' | 'page' | 'popup';
|
|
27
|
+
/**
|
|
28
|
+
* Parameter value on an entity binding:
|
|
29
|
+
* - field path / expression string (e.g. `id`)
|
|
30
|
+
* - `'today'` → local calendar day `{ from, to }`
|
|
31
|
+
* - explicit `{ from, to }` date range
|
|
32
|
+
*/
|
|
33
|
+
export type AXPReportEntityParameterValue = string | {
|
|
34
|
+
from: string;
|
|
35
|
+
to: string;
|
|
36
|
+
};
|
|
37
|
+
/** Binds a report to a host entity type for Reports page discovery. */
|
|
38
|
+
export interface AXPReportEntityBinding {
|
|
39
|
+
/** Fully qualified entity type, e.g. `SecurityManagement.User`. */
|
|
40
|
+
entity: string;
|
|
41
|
+
/** Optional list title (i18n key or plain text). Falls back to report title. */
|
|
42
|
+
title?: string;
|
|
43
|
+
/** Optional list description (i18n key or plain text). Falls back to report description. */
|
|
44
|
+
description?: string;
|
|
45
|
+
layoutId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Where to surface the report. Defaults to `['page']` (Reports side-menu page).
|
|
48
|
+
* `action` / `popup` are retained for data compatibility but are not contributed as entity Actions.
|
|
49
|
+
*/
|
|
50
|
+
display?: AXPReportEntityDisplay | AXPReportEntityDisplay[];
|
|
51
|
+
/**
|
|
52
|
+
* Map report parameter path → entity field / expression / date token.
|
|
53
|
+
* Example: `{ userId: 'id', dateRange: 'today' }`
|
|
54
|
+
*/
|
|
55
|
+
parameters?: Record<string, AXPReportEntityParameterValue>;
|
|
56
|
+
order?: number;
|
|
57
|
+
}
|
|
58
|
+
/** Query-builder value stored on a report definition. The where tree is the filter. */
|
|
59
|
+
export interface ReportFilterQuery {
|
|
60
|
+
dataSource?: string;
|
|
61
|
+
columns: string[];
|
|
62
|
+
where: AXPFilterDefinition;
|
|
63
|
+
sort: Array<{
|
|
64
|
+
field: string;
|
|
65
|
+
dir: 'asc' | 'desc';
|
|
66
|
+
}>;
|
|
67
|
+
groupBy: string[];
|
|
68
|
+
aggregates: unknown[];
|
|
69
|
+
}
|
|
26
70
|
export interface AXPReportDefinition {
|
|
27
71
|
id: string;
|
|
28
|
-
title:
|
|
29
|
-
description?:
|
|
72
|
+
title: AXPMultiLanguageString;
|
|
73
|
+
description?: AXPMultiLanguageString;
|
|
30
74
|
categoryIds: string[];
|
|
31
75
|
parameterGroups: AXPReportParameterGroup[];
|
|
76
|
+
/** Query-builder where-clause authored on the report definition filter page. */
|
|
77
|
+
filterQuery?: ReportFilterQuery;
|
|
32
78
|
permissions?: string[];
|
|
33
79
|
layouts: AXPReportLayoutDefinition[];
|
|
34
80
|
defaultLayoutId: string;
|
|
81
|
+
/** Optional host-entity bindings for the entity `reports` plugin. */
|
|
82
|
+
entities?: AXPReportEntityBinding[];
|
|
83
|
+
/** Background / choose / interactive generation options. Omitted = interactive. */
|
|
84
|
+
generation?: AXPReportGenerationOptions;
|
|
85
|
+
}
|
|
86
|
+
export type AXPReportGenerationMode = 'interactive' | 'background' | 'choose';
|
|
87
|
+
export type AXPReportArtifactKind = 'viewer' | 'pdf' | 'excel' | 'csv';
|
|
88
|
+
export type AXPReportFreezeLayouts = 'current' | 'all';
|
|
89
|
+
export type AXPReportGenerationDedupePolicy = 'none' | 'in-flight' | 'in-flight-or-cooldown';
|
|
90
|
+
export interface AXPReportGenerationDedupeOptions {
|
|
91
|
+
/** Omitted → inherit platform `ReportManagement:Setting:Generation.Dedupe.Policy`. */
|
|
92
|
+
policy?: AXPReportGenerationDedupePolicy;
|
|
93
|
+
/** Omitted → inherit platform `ReportManagement:Setting:Generation.Dedupe.CooldownMinutes`. */
|
|
94
|
+
cooldownMs?: number;
|
|
95
|
+
}
|
|
96
|
+
export interface AXPReportGenerationOptions {
|
|
97
|
+
/** Omitted = interactive (today’s viewer). */
|
|
98
|
+
mode?: AXPReportGenerationMode;
|
|
99
|
+
/** Default `['viewer']` when mode is background or choose. */
|
|
100
|
+
formats?: AXPReportArtifactKind[];
|
|
101
|
+
executionTimeoutMs?: number;
|
|
102
|
+
/** Default 30. Used to set `expiresAt` when the run finishes. */
|
|
103
|
+
retentionDays?: number;
|
|
104
|
+
/** Default `'all'` query layouts. `'current'` freezes only the layout the user ran. */
|
|
105
|
+
freezeLayouts?: AXPReportFreezeLayouts;
|
|
106
|
+
/** Default true. Store layout/title/parameter snapshot in the viewer freeze file. */
|
|
107
|
+
pinDefinition?: boolean;
|
|
108
|
+
/** Demo/local only. Worker waits this long after marking the run running. */
|
|
109
|
+
simulateDelayMs?: number;
|
|
110
|
+
/** Omitted → dedupe behavior comes from platform settings. */
|
|
111
|
+
dedupe?: AXPReportGenerationDedupeOptions;
|
|
112
|
+
/**
|
|
113
|
+
* When true (default for background/choose), completed jobs stay in the footer tray until dismissed.
|
|
114
|
+
* Set false to remove from tray as soon as the job completes.
|
|
115
|
+
*/
|
|
116
|
+
keepInTray?: boolean;
|
|
35
117
|
}
|
|
36
118
|
export type AXPReportLayoutAction = AXPActionMenuItem & {
|
|
37
119
|
priority: 'primary' | 'secondary';
|
|
@@ -41,8 +123,8 @@ export type AXPReportLayoutAction = AXPActionMenuItem & {
|
|
|
41
123
|
*/
|
|
42
124
|
export interface AXPReportLayoutDefinition {
|
|
43
125
|
id: string;
|
|
44
|
-
title:
|
|
45
|
-
description?:
|
|
126
|
+
title: AXPMultiLanguageString;
|
|
127
|
+
description?: AXPMultiLanguageString;
|
|
46
128
|
icon?: string;
|
|
47
129
|
layout: AXPReportLayout;
|
|
48
130
|
dataSource?: AXPReportDataSource;
|
|
@@ -52,14 +134,19 @@ export interface AXPReportLayoutDefinition {
|
|
|
52
134
|
}
|
|
53
135
|
export interface AXPReportParameterGroup {
|
|
54
136
|
name: string;
|
|
55
|
-
title:
|
|
56
|
-
description?:
|
|
137
|
+
title: AXPMultiLanguageString;
|
|
138
|
+
description?: AXPMultiLanguageString;
|
|
57
139
|
parameters: AXPReportParameter[];
|
|
58
140
|
}
|
|
59
141
|
export interface AXPReportParameter {
|
|
60
142
|
path: string;
|
|
61
|
-
title:
|
|
62
|
-
description?:
|
|
143
|
+
title: AXPMultiLanguageString;
|
|
144
|
+
description?: AXPMultiLanguageString;
|
|
145
|
+
/**
|
|
146
|
+
* Boolean or expression (e.g. `{{ permission.check("…") }}` / `{{ feature.check("…") }}`).
|
|
147
|
+
* Omitted / `true` means visible. Evaluated by the Report Viewer layout renderer.
|
|
148
|
+
*/
|
|
149
|
+
visible?: boolean | string;
|
|
63
150
|
widget: AXPWidgetNode;
|
|
64
151
|
}
|
|
65
152
|
export type AXPReportDataSource = AXPQueryDataSource | AXPCustomDataSource | AXPAggregatedDataSource | AXPTransformedDataSource;
|
|
@@ -173,6 +260,13 @@ export interface AXPReportTableLayout {
|
|
|
173
260
|
header?: AXPReportHeaderFooter;
|
|
174
261
|
footer?: AXPReportHeaderFooter;
|
|
175
262
|
}
|
|
263
|
+
/** Result-grid hierarchy. Omitted reports stay a flat table. */
|
|
264
|
+
export interface AXPReportTableHierarchy {
|
|
265
|
+
/** Row field that points at the parent row, for example `parentId`. */
|
|
266
|
+
parentField: string;
|
|
267
|
+
/** Row field used as the node id. Defaults to `id`. */
|
|
268
|
+
keyField?: string;
|
|
269
|
+
}
|
|
176
270
|
export interface AXPTableOptions {
|
|
177
271
|
pagination?: boolean;
|
|
178
272
|
stickyHeader?: boolean;
|
|
@@ -181,6 +275,11 @@ export interface AXPTableOptions {
|
|
|
181
275
|
selectable?: {
|
|
182
276
|
mode: 'single' | 'multiple' | 'none';
|
|
183
277
|
};
|
|
278
|
+
/**
|
|
279
|
+
* When set, the result grid expands rows whose `parentField` links them.
|
|
280
|
+
* Rows with an empty parent are the roots. Other reports leave this unset.
|
|
281
|
+
*/
|
|
282
|
+
hierarchy?: AXPReportTableHierarchy;
|
|
184
283
|
}
|
|
185
284
|
/**
|
|
186
285
|
* Chart Layout - Displays data in various chart formats
|
|
@@ -218,7 +317,13 @@ export interface AXPChartDataMapping {
|
|
|
218
317
|
*/
|
|
219
318
|
export interface AXPChartStyling {
|
|
220
319
|
colorScheme?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'custom';
|
|
320
|
+
/** Palette applied by series index when `seriesColors` is not set. */
|
|
221
321
|
customColors?: string[];
|
|
322
|
+
/**
|
|
323
|
+
* Per-series fill colors keyed by chart category id/label
|
|
324
|
+
* (e.g. Online → success, Away → warning, Busy → danger).
|
|
325
|
+
*/
|
|
326
|
+
seriesColors?: Record<string, string>;
|
|
222
327
|
gridLines?: boolean;
|
|
223
328
|
legend?: {
|
|
224
329
|
show: boolean;
|
|
@@ -299,6 +404,10 @@ export interface AXPReportPdfLayout {
|
|
|
299
404
|
options?: AXPReportPdfOptions;
|
|
300
405
|
header?: AXPReportHeaderFooter;
|
|
301
406
|
footer?: AXPReportHeaderFooter;
|
|
407
|
+
/** DocumentOutput.StimulsoftTemplate row designed for this layout. */
|
|
408
|
+
stimulsoftTemplateId?: string;
|
|
409
|
+
/** Dictionary data source the designer bound, filled with this layout's query rows at view time. */
|
|
410
|
+
stimulsoftDataSourceName?: string;
|
|
302
411
|
}
|
|
303
412
|
/**
|
|
304
413
|
* PDF Layout Options
|
|
@@ -314,7 +423,11 @@ export interface AXPReportPdfOptions {
|
|
|
314
423
|
export interface AXPReportColumn {
|
|
315
424
|
field: string;
|
|
316
425
|
title?: string;
|
|
317
|
-
|
|
426
|
+
/**
|
|
427
|
+
* Boolean or expression (e.g. `{{ permission.check("…") }}`).
|
|
428
|
+
* Omitted / `true` means visible. Evaluated when building the table view.
|
|
429
|
+
*/
|
|
430
|
+
visible?: boolean | string;
|
|
318
431
|
width?: number | 'auto';
|
|
319
432
|
align?: 'left' | 'center' | 'right';
|
|
320
433
|
/** When true, column header supports interactive sort (opt-in). */
|
|
@@ -368,7 +481,7 @@ export interface AXPReportHeaderFooter {
|
|
|
368
481
|
*/
|
|
369
482
|
export interface AXPLayoutSwitcherOption {
|
|
370
483
|
id: string;
|
|
371
|
-
title:
|
|
484
|
+
title: AXPMultiLanguageString;
|
|
372
485
|
icon?: string;
|
|
373
486
|
type: AXPReportLayoutType;
|
|
374
487
|
}
|
|
@@ -380,98 +493,3 @@ export interface AXPReportLayoutState {
|
|
|
380
493
|
activeLayoutId: string;
|
|
381
494
|
availableLayouts: AXPLayoutSwitcherOption[];
|
|
382
495
|
}
|
|
383
|
-
/**
|
|
384
|
-
* Layout validation result
|
|
385
|
-
*/
|
|
386
|
-
export interface AXPLayoutValidationResult {
|
|
387
|
-
isValid: boolean;
|
|
388
|
-
errors: string[];
|
|
389
|
-
layoutId: string;
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* Data source resolution result for a specific layout
|
|
393
|
-
*/
|
|
394
|
-
export interface AXPLayoutDataSourceResolution {
|
|
395
|
-
layoutId: string;
|
|
396
|
-
dataSource: AXPReportDataSource;
|
|
397
|
-
source: 'layout' | 'report' | 'none';
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* Layout execution context with resolved data source
|
|
401
|
-
*/
|
|
402
|
-
export interface AXPLayoutExecutionContext {
|
|
403
|
-
reportId: string;
|
|
404
|
-
layoutId: string;
|
|
405
|
-
dataSource: AXPReportDataSource;
|
|
406
|
-
filters: AXPFilterClause;
|
|
407
|
-
skip?: number;
|
|
408
|
-
take?: number;
|
|
409
|
-
/** Runtime/user sort — platform shape `{ name, dir }`. */
|
|
410
|
-
sort?: AXPQuerySort[];
|
|
411
|
-
}
|
|
412
|
-
export type AXPExecutionReportResult = {
|
|
413
|
-
type: 'table';
|
|
414
|
-
items: Record<string, unknown>[];
|
|
415
|
-
total: number;
|
|
416
|
-
summary?: AXPReportTableSummaryResult;
|
|
417
|
-
} | {
|
|
418
|
-
type: 'chart';
|
|
419
|
-
data: Record<string, unknown>;
|
|
420
|
-
} | {
|
|
421
|
-
type: 'cards';
|
|
422
|
-
items: Record<string, unknown>[];
|
|
423
|
-
} | {
|
|
424
|
-
type: 'custom';
|
|
425
|
-
data: unknown;
|
|
426
|
-
} | {
|
|
427
|
-
type: 'pdf';
|
|
428
|
-
url?: string;
|
|
429
|
-
base64?: string;
|
|
430
|
-
blob?: Blob;
|
|
431
|
-
filename?: string;
|
|
432
|
-
};
|
|
433
|
-
export type AXPExecutionReportCommandResult = AXPReportLayout & {
|
|
434
|
-
data: AXPExecutionReportResult;
|
|
435
|
-
};
|
|
436
|
-
export interface AXPExecutionReportCommand extends AXPCommand<AXPLayoutExecutionContext, AXPExecutionReportCommandResult> {
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* Report execution status and metadata
|
|
440
|
-
*/
|
|
441
|
-
export interface AXPReportExecutionStatus {
|
|
442
|
-
reportId: string;
|
|
443
|
-
layoutId: string;
|
|
444
|
-
status: 'pending' | 'executing' | 'completed' | 'failed' | 'cancelled';
|
|
445
|
-
startTime: Date;
|
|
446
|
-
endTime?: Date;
|
|
447
|
-
duration?: number;
|
|
448
|
-
recordCount?: number;
|
|
449
|
-
error?: AXPReportExecutionError;
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* Detailed error information for report execution
|
|
453
|
-
*/
|
|
454
|
-
export interface AXPReportExecutionError {
|
|
455
|
-
code: string;
|
|
456
|
-
message: string;
|
|
457
|
-
details?: Record<string, unknown>;
|
|
458
|
-
stack?: string;
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* Report execution request with options
|
|
462
|
-
*/
|
|
463
|
-
export interface AXPReportExecutionRequest {
|
|
464
|
-
reportId: string;
|
|
465
|
-
layoutId: string;
|
|
466
|
-
parameters: Record<string, unknown>;
|
|
467
|
-
options?: AXPReportExecutionOptions;
|
|
468
|
-
}
|
|
469
|
-
/**
|
|
470
|
-
* Options for report execution
|
|
471
|
-
*/
|
|
472
|
-
export interface AXPReportExecutionOptions {
|
|
473
|
-
timeout?: number;
|
|
474
|
-
priority?: 'low' | 'normal' | 'high';
|
|
475
|
-
cache?: boolean;
|
|
476
|
-
cacheTimeout?: number;
|
|
477
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.types.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/report.types.ts"],"names":[],"mappings":";AAAA,+BAA+B;;
|
|
1
|
+
{"version":3,"file":"report.types.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/report.types.ts"],"names":[],"mappings":";AAAA,+BAA+B;;AA2lB/B,YAAY"}
|
|
@@ -17,8 +17,8 @@ export declare const RootConfig: {
|
|
|
17
17
|
readonly icon: "fa-light fa-default";
|
|
18
18
|
};
|
|
19
19
|
readonly category: {
|
|
20
|
-
readonly name: "
|
|
21
|
-
readonly fullName: `${string}.
|
|
20
|
+
readonly name: "ReportCategory";
|
|
21
|
+
readonly fullName: `${string}.ReportCategory`;
|
|
22
22
|
readonly title: `@${string}:reports.entities.category.title`;
|
|
23
23
|
readonly titlePlural: `@${string}:reports.entities.category.plural`;
|
|
24
24
|
readonly icon: "fa-light fa-folder";
|
|
@@ -30,5 +30,12 @@ export declare const RootConfig: {
|
|
|
30
30
|
readonly titlePlural: `@${string}:reports.entities.report.plural`;
|
|
31
31
|
readonly icon: "fa-light fa-file-chart-pie";
|
|
32
32
|
};
|
|
33
|
+
readonly reportGenerationRequest: {
|
|
34
|
+
readonly name: "ReportGenerationRequest";
|
|
35
|
+
readonly fullName: `${string}.ReportGenerationRequest`;
|
|
36
|
+
readonly title: `@${string}:report-generation.entities.request.title`;
|
|
37
|
+
readonly titlePlural: `@${string}:report-generation.entities.request.plural`;
|
|
38
|
+
readonly icon: "fa-light fa-file-export";
|
|
39
|
+
};
|
|
33
40
|
};
|
|
34
41
|
};
|
|
@@ -21,8 +21,8 @@ exports.RootConfig = {
|
|
|
21
21
|
icon: 'fa-light fa-default',
|
|
22
22
|
},
|
|
23
23
|
category: {
|
|
24
|
-
name: '
|
|
25
|
-
fullName: `${config.module}.
|
|
24
|
+
name: 'ReportCategory',
|
|
25
|
+
fullName: `${config.module}.ReportCategory`,
|
|
26
26
|
title: `@${config.i18n}:reports.entities.category.title`,
|
|
27
27
|
titlePlural: `@${config.i18n}:reports.entities.category.plural`,
|
|
28
28
|
icon: 'fa-light fa-folder',
|
|
@@ -34,6 +34,13 @@ exports.RootConfig = {
|
|
|
34
34
|
titlePlural: `@${config.i18n}:reports.entities.report.plural`,
|
|
35
35
|
icon: 'fa-light fa-file-chart-pie',
|
|
36
36
|
},
|
|
37
|
+
reportGenerationRequest: {
|
|
38
|
+
name: 'ReportGenerationRequest',
|
|
39
|
+
fullName: `${config.module}.ReportGenerationRequest`,
|
|
40
|
+
title: `@${config.i18n}:report-generation.entities.request.title`,
|
|
41
|
+
titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,
|
|
42
|
+
icon: 'fa-light fa-file-export',
|
|
43
|
+
},
|
|
37
44
|
},
|
|
38
45
|
};
|
|
39
46
|
//# sourceMappingURL=root-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/root-config.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,mBAAmB;IACzB,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,MAAM;IACN,MAAM,EAAE;QACN,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,eAAe;QACrC,IAAI,EAAE,uBAAuB;KAC9B;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,0BAA0B,MAAM,CAAC,IAAI,MAAM;YAClD,WAAW,EAAE,gCAAgC,MAAM,CAAC,IAAI,MAAM;YAC9D,IAAI,EAAE,qBAAqB;SAC5B;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/root-config.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,mBAAmB;IACzB,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,MAAM;IACN,MAAM,EAAE;QACN,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,eAAe;QACrC,IAAI,EAAE,uBAAuB;KAC9B;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,0BAA0B,MAAM,CAAC,IAAI,MAAM;YAClD,WAAW,EAAE,gCAAgC,MAAM,CAAC,IAAI,MAAM;YAC9D,IAAI,EAAE,qBAAqB;SAC5B;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,gBAAgB;YACtB,QAAQ,EAAE,GAAG,MAAM,CAAC,MAAM,iBAAiB;YAC3C,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,kCAAkC;YACxD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,mCAAmC;YAC/D,IAAI,EAAE,oBAAoB;SAC3B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,GAAG,MAAM,CAAC,MAAM,SAAS;YACnC,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,gCAAgC;YACtD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,iCAAiC;YAC7D,IAAI,EAAE,4BAA4B;SACnC;QACD,uBAAuB,EAAE;YACvB,IAAI,EAAE,yBAAyB;YAC/B,QAAQ,EAAE,GAAG,MAAM,CAAC,MAAM,0BAA0B;YACpD,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,2CAA2C;YACjE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,4CAA4C;YACxE,IAAI,EAAE,yBAAyB;SAChC;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const AXMReportManagementQueryKeys: {
|
|
2
|
+
readonly Category: {
|
|
3
|
+
readonly ListRoot: "ReportManagement:Category:ListRoot";
|
|
4
|
+
readonly GetById: "ReportManagement:Category:GetById";
|
|
5
|
+
};
|
|
6
|
+
readonly Report: {
|
|
7
|
+
readonly GetDefinition: "ReportManagement:Report:GetDefinition";
|
|
8
|
+
};
|
|
9
|
+
readonly ReportGeneration: {
|
|
10
|
+
readonly Get: "ReportManagement:ReportGeneration:Get";
|
|
11
|
+
readonly ListMine: "ReportManagement:ReportGeneration:ListMine";
|
|
12
|
+
readonly GetViewerFreeze: "ReportManagement:ReportGeneration:GetViewerFreeze";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Report management runtime keys ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AXMReportManagementQueryKeys = void 0;
|
|
5
|
+
exports.AXMReportManagementQueryKeys = {
|
|
6
|
+
Category: {
|
|
7
|
+
ListRoot: 'ReportManagement:Category:ListRoot',
|
|
8
|
+
GetById: 'ReportManagement:Category:GetById',
|
|
9
|
+
},
|
|
10
|
+
Report: {
|
|
11
|
+
GetDefinition: 'ReportManagement:Report:GetDefinition',
|
|
12
|
+
},
|
|
13
|
+
ReportGeneration: {
|
|
14
|
+
Get: 'ReportManagement:ReportGeneration:Get',
|
|
15
|
+
ListMine: 'ReportManagement:ReportGeneration:ListMine',
|
|
16
|
+
GetViewerFreeze: 'ReportManagement:ReportGeneration:GetViewerFreeze',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
//# sourceMappingURL=runtime.keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/runtime.keys.ts"],"names":[],"mappings":";AAAA,kDAAkD;;;AAErC,QAAA,4BAA4B,GAAG;IAC1C,QAAQ,EAAE;QACR,QAAQ,EAAE,oCAAoC;QAC9C,OAAO,EAAE,mCAAmC;KAC7C;IACD,MAAM,EAAE;QACN,aAAa,EAAE,uCAAuC;KACvD;IACD,gBAAgB,EAAE;QAChB,GAAG,EAAE,uCAAuC;QAC5C,QAAQ,EAAE,4CAA4C;QACtD,eAAe,EAAE,mDAAmD;KACrE;CACO,CAAC;AAEX,YAAY"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AXPReportGenerationDedupePolicy } from './report.types';
|
|
2
|
+
export declare enum AXPReportManagementSettings {
|
|
3
|
+
GenerationDedupePolicy = "ReportManagement:Setting:Generation.Dedupe.Policy",
|
|
4
|
+
GenerationDedupeCooldownMinutes = "ReportManagement:Setting:Generation.Dedupe.CooldownMinutes",
|
|
5
|
+
GenerationMaxConcurrentPerUser = "ReportManagement:Setting:Generation.MaxConcurrentPerUser"
|
|
6
|
+
}
|
|
7
|
+
export declare const AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS: {
|
|
8
|
+
readonly "ReportManagement:Setting:Generation.Dedupe.Policy": AXPReportGenerationDedupePolicy;
|
|
9
|
+
readonly "ReportManagement:Setting:Generation.Dedupe.CooldownMinutes": 0;
|
|
10
|
+
readonly "ReportManagement:Setting:Generation.MaxConcurrentPerUser": 3;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ----- Report management settings -----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS = exports.AXPReportManagementSettings = void 0;
|
|
5
|
+
var AXPReportManagementSettings;
|
|
6
|
+
(function (AXPReportManagementSettings) {
|
|
7
|
+
AXPReportManagementSettings["GenerationDedupePolicy"] = "ReportManagement:Setting:Generation.Dedupe.Policy";
|
|
8
|
+
AXPReportManagementSettings["GenerationDedupeCooldownMinutes"] = "ReportManagement:Setting:Generation.Dedupe.CooldownMinutes";
|
|
9
|
+
AXPReportManagementSettings["GenerationMaxConcurrentPerUser"] = "ReportManagement:Setting:Generation.MaxConcurrentPerUser";
|
|
10
|
+
})(AXPReportManagementSettings || (exports.AXPReportManagementSettings = AXPReportManagementSettings = {}));
|
|
11
|
+
exports.AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS = {
|
|
12
|
+
[AXPReportManagementSettings.GenerationDedupePolicy]: 'in-flight',
|
|
13
|
+
[AXPReportManagementSettings.GenerationDedupeCooldownMinutes]: 0,
|
|
14
|
+
[AXPReportManagementSettings.GenerationMaxConcurrentPerUser]: 3,
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=settings.keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/settings.keys.ts"],"names":[],"mappings":";AAAA,gDAAgD;;;AAIhD,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACrC,2GAA4E,CAAA;IAC5E,6HAA8F,CAAA;IAC9F,0HAA2F,CAAA;AAC7F,CAAC,EAJW,2BAA2B,2CAA3B,2BAA2B,QAItC;AAEY,QAAA,iDAAiD,GAAG;IAC/D,CAAC,2BAA2B,CAAC,sBAAsB,CAAC,EAAE,WAA8C;IACpG,CAAC,2BAA2B,CAAC,+BAA+B,CAAC,EAAE,CAAC;IAChE,CAAC,2BAA2B,CAAC,8BAA8B,CAAC,EAAE,CAAC;CACvD,CAAC;AAEX,YAAY"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-report-management-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./server/src/index.js",
|
|
6
6
|
"types": "./server/src/index.d.ts",
|
|
7
7
|
"peerDependencies": {
|
|
8
|
+
"@acorex-platform/framework-server": "2.0.0-beta.1",
|
|
9
|
+
"@acorex-platform/framework-shared": "2.0.0-beta.1",
|
|
10
|
+
"@acorex-platform/module-common-server": "2.0.0-beta.1",
|
|
11
|
+
"@acorex-platform/module-communication-management-client": "2.0.0-beta.1",
|
|
12
|
+
"@acorex-platform/module-data-management-client": "2.0.0-beta.1",
|
|
13
|
+
"@acorex-platform/module-report-management-client": "2.0.0-beta.1",
|
|
14
|
+
"@acorex-platform/module-settings-management-client": "2.0.0-beta.1",
|
|
8
15
|
"@nestjs/common": "^11.0.0",
|
|
9
|
-
"
|
|
10
|
-
"@acorex-platform/module-common-server": "0.0.18"
|
|
16
|
+
"cron-parser": "^4.9.0"
|
|
11
17
|
},
|
|
12
18
|
"exports": {
|
|
13
19
|
"./package.json": "./package.json",
|
|
@@ -18,10 +24,6 @@
|
|
|
18
24
|
"./contracts": {
|
|
19
25
|
"types": "./contracts/src/index.d.ts",
|
|
20
26
|
"default": "./contracts/src/index.js"
|
|
21
|
-
},
|
|
22
|
-
"./seed": {
|
|
23
|
-
"types": "./server/src/lib/seed/index.d.ts",
|
|
24
|
-
"default": "./server/src/lib/seed/index.js"
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
}
|
package/server/src/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './lib/report-management-server.module';
|
|
2
|
+
export { ReportDefinitionSeedProvider } from './lib/report-definition.seed-provider';
|
|
2
3
|
export * from './lib/report-management.controller';
|
|
3
4
|
export * from './lib/report-browse.service';
|
|
4
5
|
export * from './lib/report-browse.types';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export * from './lib/seed';
|
|
6
|
+
export { reportManagementEntityCatalog } from './lib/entities';
|
|
7
|
+
export { ReportInterchangeExportDataSource } from './lib/interchange/report-interchange-export-data-source';
|
|
8
|
+
export { ReportInterchangeDefinitionService } from './lib/interchange/report-interchange-definition.service';
|
package/server/src/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ReportInterchangeDefinitionService = exports.ReportInterchangeExportDataSource = exports.reportManagementEntityCatalog = exports.ReportDefinitionSeedProvider = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("./lib/report-management-server.module"), exports);
|
|
6
|
+
var report_definition_seed_provider_1 = require("./lib/report-definition.seed-provider");
|
|
7
|
+
Object.defineProperty(exports, "ReportDefinitionSeedProvider", { enumerable: true, get: function () { return report_definition_seed_provider_1.ReportDefinitionSeedProvider; } });
|
|
6
8
|
tslib_1.__exportStar(require("./lib/report-management.controller"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./lib/report-browse.service"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./lib/report-browse.types"), exports);
|
|
9
|
-
var
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
-
var
|
|
12
|
-
Object.defineProperty(exports, "
|
|
13
|
-
var
|
|
14
|
-
Object.defineProperty(exports, "
|
|
15
|
-
tslib_1.__exportStar(require("./lib/seed"), exports);
|
|
11
|
+
var entities_1 = require("./lib/entities");
|
|
12
|
+
Object.defineProperty(exports, "reportManagementEntityCatalog", { enumerable: true, get: function () { return entities_1.reportManagementEntityCatalog; } });
|
|
13
|
+
var report_interchange_export_data_source_1 = require("./lib/interchange/report-interchange-export-data-source");
|
|
14
|
+
Object.defineProperty(exports, "ReportInterchangeExportDataSource", { enumerable: true, get: function () { return report_interchange_export_data_source_1.ReportInterchangeExportDataSource; } });
|
|
15
|
+
var report_interchange_definition_service_1 = require("./lib/interchange/report-interchange-definition.service");
|
|
16
|
+
Object.defineProperty(exports, "ReportInterchangeDefinitionService", { enumerable: true, get: function () { return report_interchange_definition_service_1.ReportInterchangeDefinitionService; } });
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
package/server/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/server/src/index.ts"],"names":[],"mappings":";;;;AAAA,gFAAsD;AACtD,6EAAmD;AACnD,sEAA4C;AAC5C,oEAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/server/src/index.ts"],"names":[],"mappings":";;;;AAAA,gFAAsD;AACtD,yFAAqF;AAA5E,+IAAA,4BAA4B,OAAA;AACrC,6EAAmD;AACnD,sEAA4C;AAC5C,oEAA0C;AAC1C,2CAA+D;AAAtD,yHAAA,6BAA6B,OAAA;AACtC,iHAA4G;AAAnG,0JAAA,iCAAiC,OAAA;AAC1C,iHAA6G;AAApG,2JAAA,kCAAkC,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './report-management.entity-catalog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/server/src/lib/entities/index.ts"],"names":[],"mappings":";;;AAAA,6EAAmD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const reportManagementEntityCatalog: import("@acorex-platform/framework-server/domain/seed").AXPDomainEntityCatalog;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportManagementEntityCatalog = void 0;
|
|
4
|
+
const seed_1 = require("@acorex-platform/framework-server/domain/seed");
|
|
5
|
+
const entity_catalog_1 = require("../../../../contracts/src/entity-catalog");
|
|
6
|
+
//#region ---- report-management entity catalog ----
|
|
7
|
+
exports.reportManagementEntityCatalog = (0, seed_1.defineEntityCatalog)({
|
|
8
|
+
moduleName: 'report-management',
|
|
9
|
+
factories: Object.values(entity_catalog_1.reportManagementLocalEntityCatalog.loaders),
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
//# sourceMappingURL=report-management.entity-catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-management.entity-catalog.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/server/src/lib/entities/report-management.entity-catalog.ts"],"names":[],"mappings":";;;AAAA,wEAAoF;AACpF,6EAA8F;AAE9F,oDAAoD;AAEvC,QAAA,6BAA6B,GAAG,IAAA,0BAAmB,EAAC;IAC/D,UAAU,EAAE,mBAAmB;IAC/B,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,mDAAkC,CAAC,OAAO,CAAC;CACrE,CAAC,CAAC;AAEH,YAAY"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type InterchangeCloneContext, type InterchangeExportDefinition, type InterchangeFormat } from '@acorex-platform/framework-shared/interchange';
|
|
2
|
+
import { InterchangeDefinitionCatalogService } from '@acorex-platform/framework-server/interchange';
|
|
3
|
+
import { EntityStorageMiddlewareService } from '@acorex-platform/framework-server/core';
|
|
4
|
+
import type { AXPReportDefinition } from '@acorex-platform/module-report-management-client/contracts';
|
|
5
|
+
export declare class ReportInterchangeDefinitionService {
|
|
6
|
+
private readonly catalog;
|
|
7
|
+
private readonly storage;
|
|
8
|
+
constructor(catalog: InterchangeDefinitionCatalogService, storage: EntityStorageMiddlewareService);
|
|
9
|
+
loadReport(reportId: string): Promise<AXPReportDefinition | null>;
|
|
10
|
+
virtualDefinition(reportId: string, format?: InterchangeFormat): Promise<InterchangeExportDefinition>;
|
|
11
|
+
listDefinitions(reportId: string, scope: InterchangeCloneContext): Promise<InterchangeExportDefinition[]>;
|
|
12
|
+
resolveDefinition(reportId: string, templateId: string | undefined, format: InterchangeFormat, scope: InterchangeCloneContext): Promise<{
|
|
13
|
+
definition: InterchangeExportDefinition;
|
|
14
|
+
virtual: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
cloneDefinition(reportId: string, templateId: string | undefined, format: InterchangeFormat, scope: InterchangeCloneContext, title?: string): Promise<InterchangeExportDefinition>;
|
|
17
|
+
saveDefinition(reportId: string, definition: InterchangeExportDefinition, scope: InterchangeCloneContext): Promise<InterchangeExportDefinition>;
|
|
18
|
+
}
|