@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
package/contracts/src/entities/report-generation-request/report-generation-request.entity.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-generation-request.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report-generation-request/report-generation-request.entity.ts"],"names":[],"mappings":";;AAuBA,oFAqLC;;AA5MD,iEAA2F;AAC3F,qEAAgH;AAChH,mDAA+C;AAC/C,2EAAsF;AAEtF,4DAA4D;AAE5D,MAAM,IAAI,GAAG,uDAAuD,CAAC;AAErE,MAAM,YAAY,GAAG;IACnB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,kBAAkB,EAAE;IACpD,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,mBAAmB,EAAE;IACtD,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,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AAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;qBAC/E;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CAAA;AAED,YAAY"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';
|
|
2
|
+
/**
|
|
3
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
4
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
5
|
+
* consume this catalog explicitly.
|
|
6
|
+
*/
|
|
7
|
+
export declare const reportManagementLocalEntityCatalog: AXPLocalEntityCatalog;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ----- Imports -----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.reportManagementLocalEntityCatalog = void 0;
|
|
5
|
+
const root_config_1 = require("./root-config");
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ----- Local entity catalog -----
|
|
8
|
+
/**
|
|
9
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
10
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
11
|
+
* consume this catalog explicitly.
|
|
12
|
+
*/
|
|
13
|
+
exports.reportManagementLocalEntityCatalog = {
|
|
14
|
+
moduleName: root_config_1.RootConfig.module.name,
|
|
15
|
+
loaders: {
|
|
16
|
+
[root_config_1.RootConfig.entities.report.name]: () => import('./entities/report/report.entity.js').then((m) => m.reportEntityFactory()),
|
|
17
|
+
[root_config_1.RootConfig.entities.category.name]: () => import('./entities/report-category/report-category.entity.js').then((m) => m.reportCategoryEntityFactory()),
|
|
18
|
+
[root_config_1.RootConfig.entities.reportGenerationRequest.name]: () => import('./entities/report-generation-request/report-generation-request.entity.js').then((m) => m.reportGenerationRequestEntityFactory()),
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
//# sourceMappingURL=entity-catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-catalog.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-catalog.ts"],"names":[],"mappings":";AAAA,6BAA6B;;;AAI7B,+CAA2C;AAE3C,YAAY;AAEZ,0CAA0C;AAE1C;;;;GAIG;AACU,QAAA,kCAAkC,GAA0B;IACvE,UAAU,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAClC,OAAO,EAAE;QACP,CAAC,wBAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,oCAAoC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC;QAC1H,CAAC,wBAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,sDAAsD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,2BAA2B,EAAE,CAAC;QACtJ,CAAC,wBAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,0EAA0E,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,oCAAoC,EAAE,CAAC;KACnM;CACF,CAAC;AAEF,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { reportCategoryEntityFactory } from './entities/report-category/report-category.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportCategoryEntityFactory = void 0;
|
|
4
|
+
var report_category_entity_1 = require("./entities/report-category/report-category.entity");
|
|
5
|
+
Object.defineProperty(exports, "reportCategoryEntityFactory", { enumerable: true, get: function () { return report_category_entity_1.reportCategoryEntityFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.report-category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.report-category.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.report-category.ts"],"names":[],"mappings":";;;AAAA,4FAAgG;AAAvF,qIAAA,2BAA2B,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { reportGenerationRequestEntityFactory } from './entities/report-generation-request/report-generation-request.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportGenerationRequestEntityFactory = void 0;
|
|
4
|
+
var report_generation_request_entity_1 = require("./entities/report-generation-request/report-generation-request.entity");
|
|
5
|
+
Object.defineProperty(exports, "reportGenerationRequestEntityFactory", { enumerable: true, get: function () { return report_generation_request_entity_1.reportGenerationRequestEntityFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.report-generation-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.report-generation-request.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.report-generation-request.ts"],"names":[],"mappings":";;;AAAA,0HAA6H;AAApH,wJAAA,oCAAoC,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { reportEntityFactory } from './entities/report/report.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportEntityFactory = void 0;
|
|
4
|
+
var report_entity_1 = require("./entities/report/report.entity");
|
|
5
|
+
Object.defineProperty(exports, "reportEntityFactory", { enumerable: true, get: function () { return report_entity_1.reportEntityFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.report.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.report.ts"],"names":[],"mappings":";;;AAAA,iEAAsE;AAA7D,oHAAA,mBAAmB,OAAA"}
|
package/contracts/src/index.d.ts
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
|
+
export * from './commands.keys';
|
|
1
2
|
export * from './features.keys';
|
|
2
3
|
export * from './menu.keys';
|
|
3
4
|
export * from './permission.keys';
|
|
4
|
-
export * from './
|
|
5
|
+
export * from './settings.keys';
|
|
6
|
+
export * from './manifest';
|
|
7
|
+
export * from './report-filter-form.util';
|
|
8
|
+
export * from './report-generation.types';
|
|
9
|
+
export * from './report-interchange.projection';
|
|
10
|
+
export * from './report-interchange.snapshot';
|
|
11
|
+
export * from './report-interchange.types';
|
|
12
|
+
export * from './report-layout-field-schema';
|
|
13
|
+
export * from './report-layout-form.util';
|
|
14
|
+
export * from './report-layout-json-sections';
|
|
15
|
+
export * from './report-layout-sections.mapper';
|
|
16
|
+
export * from './report-layout-starter';
|
|
17
|
+
export * from './report-layout.presets';
|
|
18
|
+
export * from './report-parameter-binding.util';
|
|
5
19
|
export * from './report.types';
|
|
20
|
+
export * from './root-config';
|
|
21
|
+
export * from './runtime.keys';
|
|
6
22
|
export * from './entities';
|
|
23
|
+
export * from './query-cache-targets';
|
package/contracts/src/index.js
CHANGED
|
@@ -2,11 +2,28 @@
|
|
|
2
2
|
//#region ---- Contracts barrel ----
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./commands.keys"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./features.keys"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./menu.keys"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./permission.keys"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
+
tslib_1.__exportStar(require("./settings.keys"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./manifest"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./report-filter-form.util"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./report-generation.types"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./report-interchange.projection"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./report-interchange.snapshot"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./report-interchange.types"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./report-layout-field-schema"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./report-layout-form.util"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./report-layout-json-sections"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./report-layout-sections.mapper"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./report-layout-starter"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./report-layout.presets"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./report-parameter-binding.util"), exports);
|
|
9
23
|
tslib_1.__exportStar(require("./report.types"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./root-config"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./runtime.keys"), exports);
|
|
10
26
|
//#endregion
|
|
11
27
|
tslib_1.__exportStar(require("./entities"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./query-cache-targets"), exports);
|
|
12
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEpC,0DAAgC;AAChC,sDAA4B;AAC5B,4DAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEpC,0DAAgC;AAChC,0DAAgC;AAChC,sDAA4B;AAC5B,4DAAkC;AAClC,0DAAgC;AAEhC,qDAA2B;AAC3B,oEAA0C;AAC1C,oEAA0C;AAC1C,0EAAgD;AAChD,wEAA8C;AAC9C,qEAA2C;AAC3C,uEAA6C;AAC7C,oEAA0C;AAC1C,wEAA8C;AAC9C,0EAAgD;AAChD,kEAAwC;AACxC,kEAAwC;AACxC,0EAAgD;AAChD,yDAA+B;AAC/B,wDAA8B;AAC9B,yDAA+B;AAE/B,YAAY;AAEZ,qDAA2B;AAE3B,gEAAsC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Imports ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ReportManagementManifest = void 0;
|
|
5
|
+
const root_config_1 = require("./root-config");
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ---- Manifest Definition ----
|
|
8
|
+
/**
|
|
9
|
+
* Report Management Module Manifest.
|
|
10
|
+
* Defines module metadata, features, and provider references.
|
|
11
|
+
*/
|
|
12
|
+
exports.ReportManagementManifest = {
|
|
13
|
+
name: root_config_1.RootConfig.module.name,
|
|
14
|
+
version: '1.0.0',
|
|
15
|
+
title: root_config_1.RootConfig.module.title,
|
|
16
|
+
icon: root_config_1.RootConfig.module.icon,
|
|
17
|
+
i18n: root_config_1.RootConfig.config.i18n,
|
|
18
|
+
type: 'platform',
|
|
19
|
+
domain: 'data',
|
|
20
|
+
required: true,
|
|
21
|
+
// Module dependencies (optional)
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/manifest.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;AAG/B,+CAA2C;AAE3C,YAAY;AAEZ,2CAA2C;AAE3C;;;GAGG;AACU,QAAA,wBAAwB,GAAsB;IACzD,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,wBAAU,CAAC,MAAM,CAAC,KAAK;IAC9B,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAG,IAAI;IAEf,iCAAiC;CAClC,CAAC;AAEF,YAAY"}
|
|
@@ -1,19 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Insights & Reporting capabilities used by this module.
|
|
3
|
+
* Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
|
|
4
|
+
*/
|
|
5
|
+
export declare const AXPInsightsReportingPermissionKeys: {
|
|
6
|
+
readonly Access: "InsightsReporting:Permission:Access";
|
|
7
|
+
readonly MaintainReports: "InsightsReporting:Permission:MaintainReports";
|
|
8
|
+
readonly MaintainData: "InsightsReporting:Permission:MaintainData";
|
|
9
|
+
readonly ViewActivityInsight: "InsightsReporting:Permission:ViewActivityInsight";
|
|
10
|
+
readonly ManageActivityInsight: "InsightsReporting:Permission:ManageActivityInsight";
|
|
11
|
+
readonly Setup: "InsightsReporting:Permission:Setup";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Prefer {@link AXPInsightsReportingPermissionKeys}.
|
|
15
|
+
* Legacy nested shape kept so existing imports compile during migration.
|
|
16
|
+
*/
|
|
1
17
|
export declare const AXMPermissionsKeys: {
|
|
2
|
-
ReportManagement: {
|
|
3
|
-
Management:
|
|
4
|
-
Report: {
|
|
5
|
-
Management:
|
|
6
|
-
View:
|
|
7
|
-
Create:
|
|
8
|
-
Update:
|
|
9
|
-
Delete:
|
|
18
|
+
readonly ReportManagement: {
|
|
19
|
+
readonly Management: "InsightsReporting:Permission:MaintainReports";
|
|
20
|
+
readonly Report: {
|
|
21
|
+
readonly Management: "InsightsReporting:Permission:MaintainReports";
|
|
22
|
+
readonly View: "InsightsReporting:Permission:MaintainReports";
|
|
23
|
+
readonly Create: "InsightsReporting:Permission:MaintainReports";
|
|
24
|
+
readonly Update: "InsightsReporting:Permission:MaintainReports";
|
|
25
|
+
readonly Delete: "InsightsReporting:Permission:MaintainReports";
|
|
10
26
|
};
|
|
11
|
-
Category: {
|
|
12
|
-
Management:
|
|
13
|
-
View:
|
|
14
|
-
Create:
|
|
15
|
-
Update:
|
|
16
|
-
Delete:
|
|
27
|
+
readonly Category: {
|
|
28
|
+
readonly Management: "InsightsReporting:Permission:Setup";
|
|
29
|
+
readonly View: "InsightsReporting:Permission:Setup";
|
|
30
|
+
readonly Create: "InsightsReporting:Permission:Setup";
|
|
31
|
+
readonly Update: "InsightsReporting:Permission:Setup";
|
|
32
|
+
readonly Delete: "InsightsReporting:Permission:Setup";
|
|
17
33
|
};
|
|
18
34
|
};
|
|
19
35
|
};
|
|
@@ -1,22 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AXMPermissionsKeys = void 0;
|
|
3
|
+
exports.AXMPermissionsKeys = exports.AXPInsightsReportingPermissionKeys = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Insights & Reporting capabilities used by this module.
|
|
6
|
+
* Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
|
|
7
|
+
*/
|
|
8
|
+
exports.AXPInsightsReportingPermissionKeys = {
|
|
9
|
+
Access: 'InsightsReporting:Permission:Access',
|
|
10
|
+
MaintainReports: 'InsightsReporting:Permission:MaintainReports',
|
|
11
|
+
MaintainData: 'InsightsReporting:Permission:MaintainData',
|
|
12
|
+
ViewActivityInsight: 'InsightsReporting:Permission:ViewActivityInsight',
|
|
13
|
+
ManageActivityInsight: 'InsightsReporting:Permission:ManageActivityInsight',
|
|
14
|
+
Setup: 'InsightsReporting:Permission:Setup',
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Prefer {@link AXPInsightsReportingPermissionKeys}.
|
|
18
|
+
* Legacy nested shape kept so existing imports compile during migration.
|
|
19
|
+
*/
|
|
4
20
|
exports.AXMPermissionsKeys = {
|
|
5
21
|
ReportManagement: {
|
|
6
|
-
Management:
|
|
22
|
+
Management: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
7
23
|
Report: {
|
|
8
|
-
Management:
|
|
9
|
-
View:
|
|
10
|
-
Create:
|
|
11
|
-
Update:
|
|
12
|
-
Delete:
|
|
24
|
+
Management: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
25
|
+
View: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
26
|
+
Create: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
27
|
+
Update: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
28
|
+
Delete: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
13
29
|
},
|
|
14
30
|
Category: {
|
|
15
|
-
Management:
|
|
16
|
-
View:
|
|
17
|
-
Create:
|
|
18
|
-
Update:
|
|
19
|
-
Delete:
|
|
31
|
+
Management: exports.AXPInsightsReportingPermissionKeys.Setup,
|
|
32
|
+
View: exports.AXPInsightsReportingPermissionKeys.Setup,
|
|
33
|
+
Create: exports.AXPInsightsReportingPermissionKeys.Setup,
|
|
34
|
+
Update: exports.AXPInsightsReportingPermissionKeys.Setup,
|
|
35
|
+
Delete: exports.AXPInsightsReportingPermissionKeys.Setup,
|
|
20
36
|
},
|
|
21
37
|
},
|
|
22
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/permission.keys.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/permission.keys.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,kCAAkC,GAAG;IAChD,MAAM,EAAE,qCAAqC;IAC7C,eAAe,EAAE,8CAA8C;IAC/D,YAAY,EAAE,2CAA2C;IACzD,mBAAmB,EAAE,kDAAkD;IACvE,qBAAqB,EAAE,oDAAoD;IAC3E,KAAK,EAAE,oCAAoC;CACnC,CAAC;AAEX;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAChC,gBAAgB,EAAE;QAChB,UAAU,EAAE,0CAAkC,CAAC,eAAe;QAC9D,MAAM,EAAE;YACN,UAAU,EAAE,0CAAkC,CAAC,eAAe;YAC9D,IAAI,EAAE,0CAAkC,CAAC,eAAe;YACxD,MAAM,EAAE,0CAAkC,CAAC,eAAe;YAC1D,MAAM,EAAE,0CAAkC,CAAC,eAAe;YAC1D,MAAM,EAAE,0CAAkC,CAAC,eAAe;SAC3D;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,0CAAkC,CAAC,KAAK;YACpD,IAAI,EAAE,0CAAkC,CAAC,KAAK;YAC9C,MAAM,EAAE,0CAAkC,CAAC,KAAK;YAChD,MAAM,EAAE,0CAAkC,CAAC,KAAK;YAChD,MAAM,EAAE,0CAAkC,CAAC,KAAK;SACjD;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Trusted dependencies for coded reports, not administrator execution policies. */
|
|
2
|
+
export declare const AXP_REPORT_QUERY_TARGETS: readonly [readonly ["HumanCapitalManagement:Reports:GetHeadcountByDepartment", "HumanCapitalManagement.Employee", false], readonly ["HumanCapitalManagement:Reports:GetLeaveUsageByType", "HumanCapitalManagement.LeaveRequest", false], readonly ["ProjectManagement:Reports:GetProjectsByStatus", "ProjectManagement.Project", false], readonly ["TenantManagement:Dashboard:ActiveUsersKpi", "TenantManagement.TenantUser", false], readonly ["HumanCapitalManagement:Dashboard:EmployeesKpi", "HumanCapitalManagement.Employee", false], readonly ["TaskManagement:Dashboard:OpenTasksKpi", "TaskManagement.Task", false], readonly ["ProjectManagement:Dashboard:ActiveProjectsKpi", "ProjectManagement.Project", false], readonly ["WorkplaceSafetyManagement:Dashboard:OpenHazardsKpi", "WorkplaceSafetyManagement.Hazard", false], readonly ["DocumentManagement:Dashboard:DocumentsKpi", "DocumentManagement.Document", false], readonly ["WorkflowManagement:Dashboard:WorkflowDefinitionsKpi", "WorkflowManagement.WorkflowDefinition", false], readonly ["SubscriptionManagement:Dashboard:SubscriptionKpi", "SubscriptionManagement.Subscription", false], readonly ["WorkplaceSafetyManagement:Dashboard:HighRisksKpi", "WorkplaceSafetyManagement.HazardRisk", false], readonly ["WorkplaceSafetyManagement:Dashboard:ActiveSafetyPlansKpi", "WorkplaceSafetyManagement.SafetyPlan", false], readonly ["WorkplaceSafetyManagement:Dashboard:Take5ChecklistsKpi", "WorkplaceSafetyManagement.SafetyPlan", false], readonly ["WorkplaceSafetyManagement:Dashboard:Take5CompletedKpi", "WorkplaceSafetyManagement.SafetyPlan", false], readonly ["AssessmentManagement:Dashboard:OverdueAssessmentsKpi", "AssessmentManagement.AssessmentCase", true], readonly ["AssessmentManagement:Dashboard:PendingAssessmentsKpi", "AssessmentManagement.AssessmentCase", false], readonly ["AssessmentManagement:Dashboard:MyAssessmentsKpi", "AssessmentManagement.AssessmentCase", false], readonly ["TaskManagement:Dashboard:OverdueTasksKpi", "TaskManagement.Task", true], readonly ["TaskManagement:Dashboard:MyOpenTasksKpi", "TaskManagement.Task", false], readonly ["LearningManagement:Dashboard:TrainingDueKpi", "LearningManagement.Enrollment", true], readonly ["PlatformManagement:Dashboard:OnlineUsersKpi", "PlatformManagement.UserPresenceSegment", false], readonly ["PlatformManagement:Dashboard:TodayLoggedInUsersKpi", "SecurityManagement.DeviceSessions", true], readonly ["WorkflowManagement:Dashboard:RunningInstancesKpi", "WorkflowManagement.WorkflowInstance", false], readonly ["WorkflowManagement:Dashboard:FaultedInstancesKpi", "WorkflowManagement.WorkflowInstance", false], readonly ["WorkflowManagement:Dashboard:AwaitingActionInstancesKpi", "WorkflowManagement.WorkflowInstance", false]];
|
|
3
|
+
export declare const AXP_DASHBOARD_ADDITIONAL_KPI_TARGETS: readonly [readonly ["TenantManagement:Dashboard:TmApplicationUsersKpi", readonly ["TenantManagement.TenantUserAppAccess"]], readonly ["WorkflowManagement:Dashboard:StartedTodayInstancesKpi", readonly ["WorkflowManagement.WorkflowInstance"]], readonly ["WorkflowManagement:Dashboard:CompletedTodayInstancesKpi", readonly ["WorkflowManagement.WorkflowInstance"]], readonly ["WorkflowManagement:Dashboard:AvgRunningAgeHoursKpi", readonly ["WorkflowManagement.WorkflowInstance"]]];
|
|
4
|
+
/** Public chart result contracts, including every entity consulted by the handler. */
|
|
5
|
+
export declare const AXP_DASHBOARD_CHART_TARGETS: readonly [readonly ["AssessmentManagement:Dashboard:AssessmentsWeekLine", readonly ["AssessmentManagement.AssessmentSession"], "series"], readonly ["BackgroundJobManagement:Dashboard:JobsByStatusBar", readonly ["BackgroundJobManagement.BackgroundJob"], "items"], readonly ["BackgroundJobManagement:Dashboard:JobSchedulesByStatusBar", readonly ["BackgroundJobManagement.BackgroundJobSchedule"], "items"], readonly ["CommunicationManagement:Dashboard:DeliveryStatusDonut", readonly ["CommunicationManagement.CommunicationDeliveries"], "items"], readonly ["HealthCore:Dashboard:HealthEventsTrendLine", readonly ["HealthCore.HealthEvent"], "series"], readonly ["IntegrationManagement:Dashboard:IntegrationsDonut", readonly ["IntegrationManagement.IntegrationConnection"], "items"], readonly ["LearningManagement:Dashboard:TrainingComplianceGauge", readonly ["LearningManagement.Enrollment"], "value"], readonly ["LearningManagement:Dashboard:TrainingStatusDonut", readonly ["LearningManagement.Enrollment"], "items"], readonly ["OrganizationManagement:Dashboard:TeamsBar", readonly ["OrganizationManagement.Team"], "items"], readonly ["PlatformManagement:Dashboard:TodayOnlineByHourLine", readonly ["PlatformManagement.UserPresenceSegment"], "series"], readonly ["ProjectManagement:Dashboard:ProjectsByStatusBar", readonly ["ProjectManagement.Project"], "items"], readonly ["ProjectManagement:Dashboard:ProjectsTasksCountBar", readonly ["ProjectManagement.Project", "TaskManagement.Task"], "items"], readonly ["ProjectManagement:Dashboard:CustomersProjectsCountBar", readonly ["ProjectManagement.Project", "CustomerManagement.Customer", "BusinessCore.Party"], "items"], readonly ["TaskManagement:Dashboard:TaskStatusDonut", readonly ["TaskManagement.Task"], "items"], readonly ["TenantManagement:Dashboard:UsersByRoleDonut", readonly ["TenantManagement.TenantUser", "SecurityManagement.Role"], "items"], readonly ["WorkflowManagement:Dashboard:WorkflowsByStatusBar", readonly ["WorkflowManagement.WorkflowDefinition"], "items"], readonly ["WorkflowManagement:Dashboard:InstancesBySubStatusDonut", readonly ["WorkflowManagement.WorkflowInstance"], "items"], readonly ["WorkflowManagement:Dashboard:InstancesByDefinitionBar", readonly ["WorkflowManagement.WorkflowInstance", "WorkflowManagement.WorkflowDefinition"], "items"], readonly ["WorkflowManagement:Dashboard:InstancesThroughputLine", readonly ["WorkflowManagement.WorkflowInstance"], "series"], readonly ["WorkflowManagement:Dashboard:InstancesByCurrentActivityBar", readonly ["WorkflowManagement.WorkflowInstance", "WorkflowManagement.WorkflowDefinition"], "items"], readonly ["WorkflowManagement:Dashboard:InstancesFaultHeatmap", readonly ["WorkflowManagement.WorkflowInstance"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:HazardsByCategoryDonut", readonly ["WorkplaceSafetyManagement.Hazard"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:RisksByRatingBar", readonly ["WorkplaceSafetyManagement.HazardRisk"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:PlansByTypeBar", readonly ["WorkplaceSafetyManagement.SafetyPlan"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:HazardsByStatusBar", readonly ["WorkplaceSafetyManagement.Hazard"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:PpeCoverageDonut", readonly ["WorkplaceSafetyManagement.Hazard", "WorkplaceSafetyManagement.HazardPpeRule"], "items"]];
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AXP_DASHBOARD_CHART_TARGETS = exports.AXP_DASHBOARD_ADDITIONAL_KPI_TARGETS = exports.AXP_REPORT_QUERY_TARGETS = void 0;
|
|
4
|
+
const runtime_1 = require("@acorex-platform/framework-shared/runtime");
|
|
5
|
+
/** Trusted dependencies for coded reports, not administrator execution policies. */
|
|
6
|
+
exports.AXP_REPORT_QUERY_TARGETS = [
|
|
7
|
+
['HumanCapitalManagement:Reports:GetHeadcountByDepartment', 'HumanCapitalManagement.Employee', false],
|
|
8
|
+
['HumanCapitalManagement:Reports:GetLeaveUsageByType', 'HumanCapitalManagement.LeaveRequest', false],
|
|
9
|
+
['ProjectManagement:Reports:GetProjectsByStatus', 'ProjectManagement.Project', false],
|
|
10
|
+
['TenantManagement:Dashboard:ActiveUsersKpi', 'TenantManagement.TenantUser', false],
|
|
11
|
+
['HumanCapitalManagement:Dashboard:EmployeesKpi', 'HumanCapitalManagement.Employee', false],
|
|
12
|
+
['TaskManagement:Dashboard:OpenTasksKpi', 'TaskManagement.Task', false],
|
|
13
|
+
['ProjectManagement:Dashboard:ActiveProjectsKpi', 'ProjectManagement.Project', false],
|
|
14
|
+
['WorkplaceSafetyManagement:Dashboard:OpenHazardsKpi', 'WorkplaceSafetyManagement.Hazard', false],
|
|
15
|
+
['DocumentManagement:Dashboard:DocumentsKpi', 'DocumentManagement.Document', false],
|
|
16
|
+
['WorkflowManagement:Dashboard:WorkflowDefinitionsKpi', 'WorkflowManagement.WorkflowDefinition', false],
|
|
17
|
+
['SubscriptionManagement:Dashboard:SubscriptionKpi', 'SubscriptionManagement.Subscription', false],
|
|
18
|
+
['WorkplaceSafetyManagement:Dashboard:HighRisksKpi', 'WorkplaceSafetyManagement.HazardRisk', false],
|
|
19
|
+
['WorkplaceSafetyManagement:Dashboard:ActiveSafetyPlansKpi', 'WorkplaceSafetyManagement.SafetyPlan', false],
|
|
20
|
+
['WorkplaceSafetyManagement:Dashboard:Take5ChecklistsKpi', 'WorkplaceSafetyManagement.SafetyPlan', false],
|
|
21
|
+
['WorkplaceSafetyManagement:Dashboard:Take5CompletedKpi', 'WorkplaceSafetyManagement.SafetyPlan', false],
|
|
22
|
+
['AssessmentManagement:Dashboard:OverdueAssessmentsKpi', 'AssessmentManagement.AssessmentCase', true],
|
|
23
|
+
['AssessmentManagement:Dashboard:PendingAssessmentsKpi', 'AssessmentManagement.AssessmentCase', false],
|
|
24
|
+
['AssessmentManagement:Dashboard:MyAssessmentsKpi', 'AssessmentManagement.AssessmentCase', false],
|
|
25
|
+
['TaskManagement:Dashboard:OverdueTasksKpi', 'TaskManagement.Task', true],
|
|
26
|
+
['TaskManagement:Dashboard:MyOpenTasksKpi', 'TaskManagement.Task', false],
|
|
27
|
+
['LearningManagement:Dashboard:TrainingDueKpi', 'LearningManagement.Enrollment', true],
|
|
28
|
+
['PlatformManagement:Dashboard:OnlineUsersKpi', 'PlatformManagement.UserPresenceSegment', false],
|
|
29
|
+
['PlatformManagement:Dashboard:TodayLoggedInUsersKpi', 'SecurityManagement.DeviceSessions', true],
|
|
30
|
+
['WorkflowManagement:Dashboard:RunningInstancesKpi', 'WorkflowManagement.WorkflowInstance', false],
|
|
31
|
+
['WorkflowManagement:Dashboard:FaultedInstancesKpi', 'WorkflowManagement.WorkflowInstance', false],
|
|
32
|
+
['WorkflowManagement:Dashboard:AwaitingActionInstancesKpi', 'WorkflowManagement.WorkflowInstance', false],
|
|
33
|
+
];
|
|
34
|
+
const KPI_CACHE_FIELDS = [
|
|
35
|
+
'title',
|
|
36
|
+
'titleBadgeText',
|
|
37
|
+
'titleBadgeTone',
|
|
38
|
+
'value',
|
|
39
|
+
'valuePrefix',
|
|
40
|
+
'valueSuffix',
|
|
41
|
+
'format',
|
|
42
|
+
'icon',
|
|
43
|
+
'iconTone',
|
|
44
|
+
'trendValue',
|
|
45
|
+
'trendLabel',
|
|
46
|
+
'trendStatus',
|
|
47
|
+
'subtitle',
|
|
48
|
+
'segments',
|
|
49
|
+
'details',
|
|
50
|
+
'targetValue',
|
|
51
|
+
'progressValue',
|
|
52
|
+
'progressPercent',
|
|
53
|
+
];
|
|
54
|
+
exports.AXP_DASHBOARD_ADDITIONAL_KPI_TARGETS = [
|
|
55
|
+
['TenantManagement:Dashboard:TmApplicationUsersKpi', ['TenantManagement.TenantUserAppAccess']],
|
|
56
|
+
['WorkflowManagement:Dashboard:StartedTodayInstancesKpi', ['WorkflowManagement.WorkflowInstance']],
|
|
57
|
+
['WorkflowManagement:Dashboard:CompletedTodayInstancesKpi', ['WorkflowManagement.WorkflowInstance']],
|
|
58
|
+
['WorkflowManagement:Dashboard:AvgRunningAgeHoursKpi', ['WorkflowManagement.WorkflowInstance']],
|
|
59
|
+
];
|
|
60
|
+
for (const [key, entity] of exports.AXP_REPORT_QUERY_TARGETS)
|
|
61
|
+
(0, runtime_1.axpRegisterDataExecutionCapabilities)(Object.assign(Object.assign({ targetKind: 'Query', targetKey: key, revision: 'report-result-contract-v3', operations: ['read'], dataDependencies: key === 'PlatformManagement:Dashboard:OnlineUsersKpi' ? [entity, 'TenantManagement.TenantUser'] : [entity] }, (key.includes(':Dashboard:') ? { clientCache: { storageKinds: ['indexed-db'], allowedFields: KPI_CACHE_FIELDS, maxItems: 10000, maxBytes: 5 * 1024 * 1024, maxAgeMs: 5400000, allowOfflineRead: true } } : {})), { serverCache: { supported: true, scope: 'session', maxRowsPerEntry: 10000, maxEntryBytes: 5 * 1024 * 1024, maxAgeMs: 5400000 } }));
|
|
62
|
+
/** Public chart result contracts, including every entity consulted by the handler. */
|
|
63
|
+
exports.AXP_DASHBOARD_CHART_TARGETS = [
|
|
64
|
+
['AssessmentManagement:Dashboard:AssessmentsWeekLine', ['AssessmentManagement.AssessmentSession'], 'series'],
|
|
65
|
+
['BackgroundJobManagement:Dashboard:JobsByStatusBar', ['BackgroundJobManagement.BackgroundJob'], 'items'],
|
|
66
|
+
['BackgroundJobManagement:Dashboard:JobSchedulesByStatusBar', ['BackgroundJobManagement.BackgroundJobSchedule'], 'items'],
|
|
67
|
+
['CommunicationManagement:Dashboard:DeliveryStatusDonut', ['CommunicationManagement.CommunicationDeliveries'], 'items'],
|
|
68
|
+
['HealthCore:Dashboard:HealthEventsTrendLine', ['HealthCore.HealthEvent'], 'series'],
|
|
69
|
+
['IntegrationManagement:Dashboard:IntegrationsDonut', ['IntegrationManagement.IntegrationConnection'], 'items'],
|
|
70
|
+
['LearningManagement:Dashboard:TrainingComplianceGauge', ['LearningManagement.Enrollment'], 'value'],
|
|
71
|
+
['LearningManagement:Dashboard:TrainingStatusDonut', ['LearningManagement.Enrollment'], 'items'],
|
|
72
|
+
['OrganizationManagement:Dashboard:TeamsBar', ['OrganizationManagement.Team'], 'items'],
|
|
73
|
+
['PlatformManagement:Dashboard:TodayOnlineByHourLine', ['PlatformManagement.UserPresenceSegment'], 'series'],
|
|
74
|
+
['ProjectManagement:Dashboard:ProjectsByStatusBar', ['ProjectManagement.Project'], 'items'],
|
|
75
|
+
['ProjectManagement:Dashboard:ProjectsTasksCountBar', ['ProjectManagement.Project', 'TaskManagement.Task'], 'items'],
|
|
76
|
+
['ProjectManagement:Dashboard:CustomersProjectsCountBar', ['ProjectManagement.Project', 'CustomerManagement.Customer', 'BusinessCore.Party'], 'items'],
|
|
77
|
+
['TaskManagement:Dashboard:TaskStatusDonut', ['TaskManagement.Task'], 'items'],
|
|
78
|
+
['TenantManagement:Dashboard:UsersByRoleDonut', ['TenantManagement.TenantUser', 'SecurityManagement.Role'], 'items'],
|
|
79
|
+
['WorkflowManagement:Dashboard:WorkflowsByStatusBar', ['WorkflowManagement.WorkflowDefinition'], 'items'],
|
|
80
|
+
['WorkflowManagement:Dashboard:InstancesBySubStatusDonut', ['WorkflowManagement.WorkflowInstance'], 'items'],
|
|
81
|
+
['WorkflowManagement:Dashboard:InstancesByDefinitionBar', ['WorkflowManagement.WorkflowInstance', 'WorkflowManagement.WorkflowDefinition'], 'items'],
|
|
82
|
+
['WorkflowManagement:Dashboard:InstancesThroughputLine', ['WorkflowManagement.WorkflowInstance'], 'series'],
|
|
83
|
+
['WorkflowManagement:Dashboard:InstancesByCurrentActivityBar', ['WorkflowManagement.WorkflowInstance', 'WorkflowManagement.WorkflowDefinition'], 'items'],
|
|
84
|
+
['WorkflowManagement:Dashboard:InstancesFaultHeatmap', ['WorkflowManagement.WorkflowInstance'], 'items'],
|
|
85
|
+
['WorkplaceSafetyManagement:Dashboard:HazardsByCategoryDonut', ['WorkplaceSafetyManagement.Hazard'], 'items'],
|
|
86
|
+
['WorkplaceSafetyManagement:Dashboard:RisksByRatingBar', ['WorkplaceSafetyManagement.HazardRisk'], 'items'],
|
|
87
|
+
['WorkplaceSafetyManagement:Dashboard:PlansByTypeBar', ['WorkplaceSafetyManagement.SafetyPlan'], 'items'],
|
|
88
|
+
['WorkplaceSafetyManagement:Dashboard:HazardsByStatusBar', ['WorkplaceSafetyManagement.Hazard'], 'items'],
|
|
89
|
+
['WorkplaceSafetyManagement:Dashboard:PpeCoverageDonut', ['WorkplaceSafetyManagement.Hazard', 'WorkplaceSafetyManagement.HazardPpeRule'], 'items'],
|
|
90
|
+
];
|
|
91
|
+
for (const [key, dependencies, field] of exports.AXP_DASHBOARD_CHART_TARGETS) {
|
|
92
|
+
(0, runtime_1.axpRegisterDataExecutionCapabilities)({
|
|
93
|
+
targetKind: 'Query',
|
|
94
|
+
targetKey: key,
|
|
95
|
+
revision: 'dashboard-chart-cache-v2',
|
|
96
|
+
operations: ['read'],
|
|
97
|
+
dataDependencies: [...dependencies],
|
|
98
|
+
clientCache: { storageKinds: ['indexed-db'], allowedFields: [field], maxItems: 10000, maxBytes: 5 * 1024 * 1024, maxAgeMs: 86400000, allowOfflineRead: true },
|
|
99
|
+
serverCache: { supported: true, scope: 'session', maxRowsPerEntry: 10000, maxEntryBytes: 5 * 1024 * 1024, maxAgeMs: 86400000 },
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
for (const [key, dependencies] of exports.AXP_DASHBOARD_ADDITIONAL_KPI_TARGETS) {
|
|
103
|
+
(0, runtime_1.axpRegisterDataExecutionCapabilities)({
|
|
104
|
+
targetKind: 'Query',
|
|
105
|
+
targetKey: key,
|
|
106
|
+
revision: 'dashboard-kpi-cache-v2',
|
|
107
|
+
operations: ['read'],
|
|
108
|
+
dataDependencies: [...dependencies],
|
|
109
|
+
clientCache: { storageKinds: ['indexed-db'], allowedFields: KPI_CACHE_FIELDS, maxItems: 10000, maxBytes: 5 * 1024 * 1024, maxAgeMs: 86400000, allowOfflineRead: true },
|
|
110
|
+
serverCache: { supported: true, scope: 'session', maxRowsPerEntry: 10000, maxEntryBytes: 5 * 1024 * 1024, maxAgeMs: 86400000 },
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=query-cache-targets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-cache-targets.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/query-cache-targets.ts"],"names":[],"mappings":";;;AAAA,uEAAiG;AAEjG,oFAAoF;AACvE,QAAA,wBAAwB,GAAG;IACtC,CAAC,yDAAyD,EAAE,iCAAiC,EAAE,KAAK,CAAC;IACrG,CAAC,oDAAoD,EAAE,qCAAqC,EAAE,KAAK,CAAC;IACpG,CAAC,+CAA+C,EAAE,2BAA2B,EAAE,KAAK,CAAC;IACrF,CAAC,2CAA2C,EAAE,6BAA6B,EAAE,KAAK,CAAC;IACnF,CAAC,+CAA+C,EAAE,iCAAiC,EAAE,KAAK,CAAC;IAC3F,CAAC,uCAAuC,EAAE,qBAAqB,EAAE,KAAK,CAAC;IACvE,CAAC,+CAA+C,EAAE,2BAA2B,EAAE,KAAK,CAAC;IACrF,CAAC,oDAAoD,EAAE,kCAAkC,EAAE,KAAK,CAAC;IACjG,CAAC,2CAA2C,EAAE,6BAA6B,EAAE,KAAK,CAAC;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,EAAE,GAAG;QACd,QAAQ,EAAE,wBAAwB;QAClC,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,gBAAgB,EAAE,CAAC,GAAG,YAAY,CAAC;QACnC,WAAW,EAAE,EAAE,YAAY,EAAE,CAAC,YAAY,CAAC,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE;QACtK,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE;KAC/H,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';
|
|
2
|
+
import type { AXPReportParameterGroup } from './report.types';
|
|
3
|
+
/**
|
|
4
|
+
* What the filter tab edits: the report filters as metadata sections and fields.
|
|
5
|
+
* It is a view of `parameterGroups`, so nothing else is stored.
|
|
6
|
+
*/
|
|
7
|
+
export interface ReportFilterFormModel {
|
|
8
|
+
metaDataList: AXMMetaDataBuilderValue;
|
|
9
|
+
}
|
|
10
|
+
/** Every parameter group becomes a metadata section and every parameter a field, in stored order. */
|
|
11
|
+
export declare function readReportFilterForm(report: {
|
|
12
|
+
parameterGroups?: AXPReportParameterGroup[];
|
|
13
|
+
} | null | undefined): ReportFilterFormModel;
|
|
14
|
+
/** Writes the metadata sections back as `parameterGroups`, the only filter structure the report uses. */
|
|
15
|
+
export declare function applyReportFilterForm(form: ReportFilterFormModel | null | undefined): {
|
|
16
|
+
parameterGroups: AXPReportParameterGroup[];
|
|
17
|
+
};
|
|
18
|
+
/** Two forms are the same when they store the same filters. Field ids and order numbers do not count. */
|
|
19
|
+
export declare function sameReportFilterForm(left: ReportFilterFormModel, right: ReportFilterFormModel): boolean;
|
|
20
|
+
export declare function pickReportFilterForm(value: Record<string, unknown>, fallback: ReportFilterFormModel): ReportFilterFormModel;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readReportFilterForm = readReportFilterForm;
|
|
4
|
+
exports.applyReportFilterForm = applyReportFilterForm;
|
|
5
|
+
exports.sameReportFilterForm = sameReportFilterForm;
|
|
6
|
+
exports.pickReportFilterForm = pickReportFilterForm;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ---- Constants ----
|
|
9
|
+
const DEFAULT_WIDGET_TYPE = 'text-editor';
|
|
10
|
+
const INTERFACE_KEYS = new Set(['type', 'options', 'defaultValue', 'triggers', 'path', 'name']);
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region ---- Parameter groups to metadata ----
|
|
13
|
+
/** Every parameter group becomes a metadata section and every parameter a field, in stored order. */
|
|
14
|
+
function readReportFilterForm(report) {
|
|
15
|
+
var _a;
|
|
16
|
+
const groups = ((_a = report === null || report === void 0 ? void 0 : report.parameterGroups) !== null && _a !== void 0 ? _a : []).map((group, groupIndex) => {
|
|
17
|
+
var _a;
|
|
18
|
+
return (Object.assign(Object.assign({ name: group.name, title: group.title }, (isBlank(group.description) ? {} : { description: group.description })), { order: groupIndex, fields: ((_a = group.parameters) !== null && _a !== void 0 ? _a : []).map((parameter, fieldIndex) => parameterToField(parameter, fieldIndex)) }));
|
|
19
|
+
});
|
|
20
|
+
return { metaDataList: { groups } };
|
|
21
|
+
}
|
|
22
|
+
function parameterToField(parameter, order) {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
const widget = (_a = parameter.widget) !== null && _a !== void 0 ? _a : { type: DEFAULT_WIDGET_TYPE };
|
|
25
|
+
const stored = Object.assign(Object.assign({ type: widget.type || DEFAULT_WIDGET_TYPE, options: Object.assign({}, ((_b = widget.options) !== null && _b !== void 0 ? _b : {})) }, (widget.defaultValue !== undefined ? { defaultValue: widget.defaultValue } : {})), (widget.triggers !== undefined ? { triggers: widget.triggers } : {}));
|
|
26
|
+
const extras = Object.fromEntries(Object.entries(widget).filter(([key]) => !INTERFACE_KEYS.has(key)));
|
|
27
|
+
const configuration = {};
|
|
28
|
+
if (parameter.visible !== undefined) {
|
|
29
|
+
configuration['visible'] = parameter.visible;
|
|
30
|
+
}
|
|
31
|
+
if (Object.keys(extras).length > 0) {
|
|
32
|
+
configuration['widget'] = extras;
|
|
33
|
+
}
|
|
34
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({ id: parameter.path, name: parameter.path, title: parameter.title }, (isBlank(parameter.description) ? {} : { description: parameter.description })), { interface: JSON.stringify(stored) }), (Object.keys(configuration).length > 0 ? { configuration } : {})), { order });
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ---- Metadata to parameter groups ----
|
|
38
|
+
/** Writes the metadata sections back as `parameterGroups`, the only filter structure the report uses. */
|
|
39
|
+
function applyReportFilterForm(form) {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
const groups = [...((_b = (_a = form === null || form === void 0 ? void 0 : form.metaDataList) === null || _a === void 0 ? void 0 : _a.groups) !== null && _b !== void 0 ? _b : [])].sort((left, right) => { var _a, _b; return ((_a = left.order) !== null && _a !== void 0 ? _a : 0) - ((_b = right.order) !== null && _b !== void 0 ? _b : 0); });
|
|
42
|
+
return {
|
|
43
|
+
parameterGroups: groups.map((group) => {
|
|
44
|
+
var _a;
|
|
45
|
+
const fields = [...((_a = group.fields) !== null && _a !== void 0 ? _a : [])].sort((left, right) => { var _a, _b; return ((_a = left.order) !== null && _a !== void 0 ? _a : 0) - ((_b = right.order) !== null && _b !== void 0 ? _b : 0); });
|
|
46
|
+
return Object.assign(Object.assign({ name: group.name, title: textOr(group.title, group.name) }, (isBlank(group.description) ? {} : { description: group.description })), { parameters: fields.flatMap((field) => fieldToParameter(field)) });
|
|
47
|
+
}),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function fieldToParameter(field) {
|
|
51
|
+
var _a;
|
|
52
|
+
const path = typeof (field === null || field === void 0 ? void 0 : field.name) === 'string' ? field.name.trim() : '';
|
|
53
|
+
// A field that is not named yet cannot be a filter: the viewer keys its values by path.
|
|
54
|
+
if (!path) {
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
57
|
+
const configuration = ((_a = field.configuration) !== null && _a !== void 0 ? _a : {});
|
|
58
|
+
const visible = configuration['visible'];
|
|
59
|
+
return [
|
|
60
|
+
Object.assign(Object.assign(Object.assign({ path, title: textOr(field.title, path) }, (isBlank(field.description) ? {} : { description: field.description })), (typeof visible === 'boolean' || typeof visible === 'string' ? { visible } : {})), { widget: interfaceToWidget(field.interface, configuration['widget']) }),
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
function interfaceToWidget(value, extras) {
|
|
64
|
+
var _a;
|
|
65
|
+
const stored = parseInterface(value);
|
|
66
|
+
const widget = Object.assign(Object.assign({}, (isRecord(extras) ? extras : {})), { type: typeof stored.type === 'string' && stored.type.trim() ? stored.type.trim() : DEFAULT_WIDGET_TYPE, options: Object.assign({}, ((_a = stored.options) !== null && _a !== void 0 ? _a : {})) });
|
|
67
|
+
if (stored.defaultValue !== undefined) {
|
|
68
|
+
widget.defaultValue = stored.defaultValue;
|
|
69
|
+
}
|
|
70
|
+
if (stored.triggers !== undefined) {
|
|
71
|
+
widget.triggers = stored.triggers;
|
|
72
|
+
}
|
|
73
|
+
return widget;
|
|
74
|
+
}
|
|
75
|
+
/** The builder stores the picked widget as a JSON string (or an object) of `{ type, options, defaultValue }`. */
|
|
76
|
+
function parseInterface(value) {
|
|
77
|
+
if (typeof value === 'string') {
|
|
78
|
+
try {
|
|
79
|
+
const parsed = JSON.parse(value || '{}');
|
|
80
|
+
return isRecord(parsed) ? parsed : {};
|
|
81
|
+
}
|
|
82
|
+
catch (_a) {
|
|
83
|
+
// A plain widget name (not JSON) is the widget type itself.
|
|
84
|
+
return value.trim() ? { type: value.trim() } : {};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return isRecord(value) ? value : {};
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region ---- Compare and pick ----
|
|
91
|
+
/** Two forms are the same when they store the same filters. Field ids and order numbers do not count. */
|
|
92
|
+
function sameReportFilterForm(left, right) {
|
|
93
|
+
return JSON.stringify(applyReportFilterForm(left)) === JSON.stringify(applyReportFilterForm(right));
|
|
94
|
+
}
|
|
95
|
+
function pickReportFilterForm(value, fallback) {
|
|
96
|
+
const list = value['metaDataList'];
|
|
97
|
+
return isRecord(list) && Array.isArray(list['groups']) ? { metaDataList: list } : fallback;
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region ---- Helpers ----
|
|
101
|
+
/** The value when it has any text, otherwise the fallback. Typed so callers get a definite string / locale map. */
|
|
102
|
+
function textOr(value, fallback) {
|
|
103
|
+
return value !== undefined && !isBlank(value) ? value : fallback;
|
|
104
|
+
}
|
|
105
|
+
function isBlank(value) {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
if (typeof value === 'string') {
|
|
110
|
+
return value.trim() === '';
|
|
111
|
+
}
|
|
112
|
+
if (typeof value === 'object') {
|
|
113
|
+
return !Object.values(value).some((item) => typeof item === 'string' && item.trim() !== '');
|
|
114
|
+
}
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
function isRecord(value) {
|
|
118
|
+
return value != null && typeof value === 'object' && !Array.isArray(value);
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
//# sourceMappingURL=report-filter-form.util.js.map
|