@acorex-platform/module-report-management-server 0.0.15 → 2.0.0-next.42
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 +11 -0
- package/contracts/src/commands.keys.js +17 -0
- package/contracts/src/commands.keys.js.map +1 -0
- package/contracts/src/entities/index.d.ts +3 -0
- package/contracts/src/entities/index.js +3 -0
- package/contracts/src/entities/index.js.map +1 -1
- package/contracts/src/entities/query-snapshot/index.d.ts +1 -0
- package/contracts/src/entities/query-snapshot/index.js +5 -0
- package/contracts/src/entities/query-snapshot/index.js.map +1 -0
- package/contracts/src/entities/query-snapshot/query-snapshot.entity.d.ts +2 -0
- package/contracts/src/entities/query-snapshot/query-snapshot.entity.js +127 -0
- package/contracts/src/entities/query-snapshot/query-snapshot.entity.js.map +1 -0
- package/contracts/src/entities/query-snapshot/query-snapshot.types.d.ts +34 -0
- package/contracts/src/entities/query-snapshot/query-snapshot.types.js +5 -0
- package/contracts/src/entities/query-snapshot/query-snapshot.types.js.map +1 -0
- package/contracts/src/entities/query-snapshot-policy/index.d.ts +1 -0
- package/contracts/src/entities/query-snapshot-policy/index.js +5 -0
- package/contracts/src/entities/query-snapshot-policy/index.js.map +1 -0
- package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.entity.d.ts +2 -0
- package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.entity.js +100 -0
- package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.entity.js.map +1 -0
- package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.types.d.ts +14 -0
- package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.types.js +5 -0
- package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.types.js.map +1 -0
- 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 +51 -7
- 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 +24 -0
- package/contracts/src/entity-catalog.js.map +1 -0
- package/contracts/src/entity-entry.query-snapshot-policy.d.ts +1 -0
- package/contracts/src/entity-entry.query-snapshot-policy.js +6 -0
- package/contracts/src/entity-entry.query-snapshot-policy.js.map +1 -0
- package/contracts/src/entity-entry.query-snapshot.d.ts +1 -0
- package/contracts/src/entity-entry.query-snapshot.js +6 -0
- package/contracts/src/entity-entry.query-snapshot.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 +5 -0
- package/contracts/src/index.js +5 -0
- 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/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.types.d.ts +107 -107
- package/contracts/src/report.types.js.map +1 -1
- package/contracts/src/root-config.d.ts +23 -2
- package/contracts/src/root-config.js +23 -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 +8 -8
- package/server/src/index.d.ts +2 -4
- package/server/src/index.js +5 -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/query-snapshots/query-snapshot-bypass.util.d.ts +3 -0
- package/server/src/lib/query-snapshots/query-snapshot-bypass.util.js +16 -0
- package/server/src/lib/query-snapshots/query-snapshot-bypass.util.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot-debounce.service.d.ts +19 -0
- package/server/src/lib/query-snapshots/query-snapshot-debounce.service.js +118 -0
- package/server/src/lib/query-snapshots/query-snapshot-debounce.service.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot-enqueue.service.d.ts +24 -0
- package/server/src/lib/query-snapshots/query-snapshot-enqueue.service.js +61 -0
- package/server/src/lib/query-snapshots/query-snapshot-enqueue.service.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot-entity-change.middleware.d.ts +12 -0
- package/server/src/lib/query-snapshots/query-snapshot-entity-change.middleware.js +90 -0
- package/server/src/lib/query-snapshots/query-snapshot-entity-change.middleware.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot-entity-storage.bootstrap.d.ts +9 -0
- package/server/src/lib/query-snapshots/query-snapshot-entity-storage.bootstrap.js +25 -0
- package/server/src/lib/query-snapshots/query-snapshot-entity-storage.bootstrap.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot-payload.util.d.ts +22 -0
- package/server/src/lib/query-snapshots/query-snapshot-payload.util.js +282 -0
- package/server/src/lib/query-snapshots/query-snapshot-payload.util.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot-recalc.service.d.ts +23 -0
- package/server/src/lib/query-snapshots/query-snapshot-recalc.service.js +122 -0
- package/server/src/lib/query-snapshots/query-snapshot-recalc.service.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot-schedule.setup.d.ts +2 -0
- package/server/src/lib/query-snapshots/query-snapshot-schedule.setup.js +79 -0
- package/server/src/lib/query-snapshots/query-snapshot-schedule.setup.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot.constants.d.ts +17 -0
- package/server/src/lib/query-snapshots/query-snapshot.constants.js +46 -0
- package/server/src/lib/query-snapshots/query-snapshot.constants.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot.middleware.d.ts +21 -0
- package/server/src/lib/query-snapshots/query-snapshot.middleware.js +135 -0
- package/server/src/lib/query-snapshots/query-snapshot.middleware.js.map +1 -0
- package/server/src/lib/query-snapshots/query-snapshot.store.d.ts +34 -0
- package/server/src/lib/query-snapshots/query-snapshot.store.js +137 -0
- package/server/src/lib/query-snapshots/query-snapshot.store.js.map +1 -0
- package/server/src/lib/query-snapshots/recalculate-query-snapshots.command.d.ts +8 -0
- package/server/src/lib/query-snapshots/recalculate-query-snapshots.command.js +74 -0
- package/server/src/lib/query-snapshots/recalculate-query-snapshots.command.js.map +1 -0
- package/server/src/lib/query-snapshots/refresh-query-snapshots.command.d.ts +16 -0
- package/server/src/lib/query-snapshots/refresh-query-snapshots.command.js +56 -0
- package/server/src/lib/query-snapshots/refresh-query-snapshots.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 +225 -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 +64 -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,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportGenerationRequestEntityFactory = reportGenerationRequestEntityFactory;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
6
|
+
const entity_1 = require("@acorex-platform/framework-shared/entity");
|
|
7
|
+
const root_config_1 = require("../../root-config");
|
|
8
|
+
const report_generation_types_1 = require("../../report-generation.types");
|
|
9
|
+
//#region ---- Report generation request entity factory ----
|
|
10
|
+
const I18N = '@report-management:report-generation.entities.request';
|
|
11
|
+
const STATUS_ITEMS = [
|
|
12
|
+
{ name: 'queued', title: `${I18N}.statuses.queued` },
|
|
13
|
+
{ name: 'running', title: `${I18N}.statuses.running` },
|
|
14
|
+
{ name: 'completed', title: `${I18N}.statuses.completed` },
|
|
15
|
+
{ name: 'failed', title: `${I18N}.statuses.failed` },
|
|
16
|
+
{ name: 'cancelled', title: `${I18N}.statuses.cancelled` },
|
|
17
|
+
];
|
|
18
|
+
const TRIGGER_ITEMS = [
|
|
19
|
+
{ name: 'manual', title: `${I18N}.triggers.manual` },
|
|
20
|
+
{ name: 'schedule', title: `${I18N}.triggers.schedule` },
|
|
21
|
+
{ name: 'export', title: `${I18N}.triggers.export` },
|
|
22
|
+
];
|
|
23
|
+
function reportGenerationRequestEntityFactory() {
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
return {
|
|
26
|
+
module: root_config_1.RootConfig.module.name,
|
|
27
|
+
name: root_config_1.RootConfig.entities.reportGenerationRequest.name,
|
|
28
|
+
title: root_config_1.RootConfig.entities.reportGenerationRequest.title,
|
|
29
|
+
icon: root_config_1.RootConfig.entities.reportGenerationRequest.icon,
|
|
30
|
+
searchTags: [
|
|
31
|
+
'report-generation',
|
|
32
|
+
'background-report',
|
|
33
|
+
'report-export',
|
|
34
|
+
'report-job',
|
|
35
|
+
'async-report',
|
|
36
|
+
'scheduled-report',
|
|
37
|
+
'report-queue',
|
|
38
|
+
'generation-request',
|
|
39
|
+
'تولید گزارش',
|
|
40
|
+
'گزارش پسزمینه',
|
|
41
|
+
'اجرای تولید گزارش',
|
|
42
|
+
'خروجی گزارش',
|
|
43
|
+
],
|
|
44
|
+
formats: {
|
|
45
|
+
individual: root_config_1.RootConfig.entities.reportGenerationRequest.title,
|
|
46
|
+
plural: root_config_1.RootConfig.entities.reportGenerationRequest.titlePlural,
|
|
47
|
+
searchResult: {
|
|
48
|
+
title: '{{ reportId }}',
|
|
49
|
+
description: '{{ status }}',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
53
|
+
properties: [
|
|
54
|
+
{
|
|
55
|
+
name: 'reportId',
|
|
56
|
+
title: `${I18N}.fields.report-id`,
|
|
57
|
+
groupId: 'basic-info',
|
|
58
|
+
schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.text } },
|
|
59
|
+
options: {
|
|
60
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
61
|
+
sort: { enabled: true },
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'layoutId',
|
|
66
|
+
title: `${I18N}.fields.layout-id`,
|
|
67
|
+
groupId: 'basic-info',
|
|
68
|
+
schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.text } },
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'status',
|
|
72
|
+
title: `${I18N}.fields.status`,
|
|
73
|
+
groupId: 'basic-info',
|
|
74
|
+
schema: {
|
|
75
|
+
dataType: 'string',
|
|
76
|
+
readonly: true,
|
|
77
|
+
interface: { type: core_1.AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },
|
|
78
|
+
},
|
|
79
|
+
options: {
|
|
80
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
81
|
+
sort: { enabled: true },
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'trigger',
|
|
86
|
+
title: `${I18N}.fields.trigger`,
|
|
87
|
+
groupId: 'basic-info',
|
|
88
|
+
schema: {
|
|
89
|
+
dataType: 'string',
|
|
90
|
+
readonly: true,
|
|
91
|
+
interface: { type: core_1.AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },
|
|
92
|
+
},
|
|
93
|
+
options: { filter: { advance: { enabled: true } } },
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'requestedBy',
|
|
97
|
+
title: `${I18N}.fields.requested-by`,
|
|
98
|
+
groupId: 'basic-info',
|
|
99
|
+
schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.text } },
|
|
100
|
+
options: { filter: { advance: { enabled: true } } },
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'jobId',
|
|
104
|
+
title: `${I18N}.fields.job-id`,
|
|
105
|
+
groupId: 'basic-info',
|
|
106
|
+
schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.text } },
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'startedAt',
|
|
110
|
+
title: `${I18N}.fields.started-at`,
|
|
111
|
+
groupId: 'basic-info',
|
|
112
|
+
schema: {
|
|
113
|
+
dataType: 'datetime',
|
|
114
|
+
readonly: true,
|
|
115
|
+
interface: { type: core_1.AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
|
|
116
|
+
},
|
|
117
|
+
options: { sort: { enabled: true } },
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'completedAt',
|
|
121
|
+
title: `${I18N}.fields.completed-at`,
|
|
122
|
+
groupId: 'basic-info',
|
|
123
|
+
schema: {
|
|
124
|
+
dataType: 'datetime',
|
|
125
|
+
readonly: true,
|
|
126
|
+
interface: { type: core_1.AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
|
|
127
|
+
},
|
|
128
|
+
options: { sort: { enabled: true } },
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'durationMs',
|
|
132
|
+
title: `${I18N}.fields.duration-ms`,
|
|
133
|
+
groupId: 'basic-info',
|
|
134
|
+
schema: { dataType: 'number', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.number } },
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'lastError',
|
|
138
|
+
title: `${I18N}.fields.last-error`,
|
|
139
|
+
groupId: 'basic-info',
|
|
140
|
+
schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.largeText } },
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'expiresAt',
|
|
144
|
+
title: `${I18N}.fields.expires-at`,
|
|
145
|
+
groupId: 'basic-info',
|
|
146
|
+
schema: {
|
|
147
|
+
dataType: 'datetime',
|
|
148
|
+
readonly: true,
|
|
149
|
+
interface: { type: core_1.AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'parameters',
|
|
154
|
+
title: `${I18N}.fields.parameters`,
|
|
155
|
+
groupId: 'basic-info',
|
|
156
|
+
schema: {
|
|
157
|
+
dataType: 'object',
|
|
158
|
+
readonly: true,
|
|
159
|
+
interface: { type: core_1.AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'artifacts',
|
|
164
|
+
title: `${I18N}.fields.artifacts`,
|
|
165
|
+
groupId: 'basic-info',
|
|
166
|
+
schema: {
|
|
167
|
+
dataType: 'object',
|
|
168
|
+
readonly: true,
|
|
169
|
+
interface: { type: core_1.AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
columns: [
|
|
174
|
+
{ name: 'reportId' },
|
|
175
|
+
{ name: 'status' },
|
|
176
|
+
{ name: 'trigger' },
|
|
177
|
+
{ name: 'startedAt' },
|
|
178
|
+
{ name: 'completedAt' },
|
|
179
|
+
],
|
|
180
|
+
interfaces: {
|
|
181
|
+
master: {
|
|
182
|
+
list: {
|
|
183
|
+
actions: [
|
|
184
|
+
{
|
|
185
|
+
title: '@report-management:report-generation.actions.open-frozen-viewer',
|
|
186
|
+
icon: 'fa-light fa-snowflake',
|
|
187
|
+
command: {
|
|
188
|
+
name: report_generation_types_1.REPORT_GENERATION_OPEN_FROZEN_COMMAND,
|
|
189
|
+
options: {
|
|
190
|
+
reportId: '{{ context.eval("reportId") }}',
|
|
191
|
+
runId: '{{ context.eval("id") }}',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
priority: 'primary',
|
|
195
|
+
type: 'view',
|
|
196
|
+
scope: entity_1.AXPEntityCommandScope.Individual,
|
|
197
|
+
default: true,
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
views: [(0, entity_1.createAllQueryView)({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
//# sourceMappingURL=report-generation-request.entity.js.map
|
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,qBAAqB,EAAE;IAC1D,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,kBAAkB,EAAE;IACpD,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,qBAAqB,EAAE;CAC3D,CAAC;AAEF,MAAM,aAAa,GAAG;IACpB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,kBAAkB,EAAE;IACpD,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,oBAAoB,EAAE;IACxD,EAAE,IAAI,EAAE,QAAQ,EAAE,KAA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AAQ,EAAE,QAAQ;wBAClB,QAAQ,EAAE,IAAI;wBACd,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAc,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;qBACrF;iBACF;aACF;YACD,OAAO,EAAE;gBACP,EAAE,IAAI,EAAE,UAAU,EAAE;gBACpB,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAClB,EAAE,IAAI,EAAE,SAAS,EAAE;gBACnB,EAAE,IAAI,EAAE,WAAW,EAAE;gBACrB,EAAE,IAAI,EAAE,aAAa,EAAE;aACxB;YACD,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE;wBACJ,OAAO,EAAE;4BACP;gCACE,KAAK,EAAE,iEAAiE;gCACxE,IAAI,EAAE,uBAAuB;gCAC7B,OAAO,EAAE;oCACP,IAAI,EAAE,+DAAqC;oCAC3C,OAAO,EAAE;wCACP,QAAQ,EAAE,gCAAgC;wCAC1C,KAAK,EAAE,0BAA0B;qCAClC;iCACF;gCACD,QAAQ,EAAE,SAAS;gCACnB,IAAI,EAAE,MAAM;gCACZ,KAAK,EAAE,8BAAqB,CAAC,UAAU;gCACvC,OAAO,EAAE,IAAI;6BACd;yBACF;wBACD,KAAK,EAAE,CAAC,IAAA,2BAAkB,EAAC,EAAE,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,24 @@
|
|
|
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.querySnapshot.name]: () => import('./entities/query-snapshot/query-snapshot.entity.js').then((m) => m.querySnapshotEntityFactory()),
|
|
17
|
+
[root_config_1.RootConfig.entities.querySnapshotPolicy.name]: () => import('./entities/query-snapshot-policy/query-snapshot-policy.entity.js').then((m) => m.querySnapshotPolicyEntityFactory()),
|
|
18
|
+
[root_config_1.RootConfig.entities.report.name]: () => import('./entities/report/report.entity.js').then((m) => m.reportEntityFactory()),
|
|
19
|
+
[root_config_1.RootConfig.entities.category.name]: () => import('./entities/report-category/report-category.entity.js').then((m) => m.reportCategoryEntityFactory()),
|
|
20
|
+
[root_config_1.RootConfig.entities.reportGenerationRequest.name]: () => import('./entities/report-generation-request/report-generation-request.entity.js').then((m) => m.reportGenerationRequestEntityFactory()),
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//# 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.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
+
export { querySnapshotPolicyEntityFactory } from './entities/query-snapshot-policy/query-snapshot-policy.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.querySnapshotPolicyEntityFactory = void 0;
|
|
4
|
+
var query_snapshot_policy_entity_1 = require("./entities/query-snapshot-policy/query-snapshot-policy.entity");
|
|
5
|
+
Object.defineProperty(exports, "querySnapshotPolicyEntityFactory", { enumerable: true, get: function () { return query_snapshot_policy_entity_1.querySnapshotPolicyEntityFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.query-snapshot-policy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.query-snapshot-policy.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.query-snapshot-policy.ts"],"names":[],"mappings":";;;AAAA,8GAAiH;AAAxG,gJAAA,gCAAgC,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { querySnapshotEntityFactory } from './entities/query-snapshot/query-snapshot.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.querySnapshotEntityFactory = void 0;
|
|
4
|
+
var query_snapshot_entity_1 = require("./entities/query-snapshot/query-snapshot.entity");
|
|
5
|
+
Object.defineProperty(exports, "querySnapshotEntityFactory", { enumerable: true, get: function () { return query_snapshot_entity_1.querySnapshotEntityFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.query-snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.query-snapshot.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.query-snapshot.ts"],"names":[],"mappings":";;;AAAA,yFAA6F;AAApF,mIAAA,0BAA0B,OAAA"}
|
|
@@ -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,11 @@
|
|
|
1
|
+
export * from './commands.keys';
|
|
1
2
|
export * from './features.keys';
|
|
2
3
|
export * from './menu.keys';
|
|
3
4
|
export * from './permission.keys';
|
|
5
|
+
export * from './settings.keys';
|
|
4
6
|
export * from './root-config';
|
|
7
|
+
export * from './manifest';
|
|
5
8
|
export * from './report.types';
|
|
9
|
+
export * from './report-generation.types';
|
|
10
|
+
export * from './runtime.keys';
|
|
6
11
|
export * from './entities';
|
package/contracts/src/index.js
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
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);
|
|
9
|
+
tslib_1.__exportStar(require("./settings.keys"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./root-config"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./manifest"), exports);
|
|
9
12
|
tslib_1.__exportStar(require("./report.types"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./report-generation.types"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./runtime.keys"), exports);
|
|
10
15
|
//#endregion
|
|
11
16
|
tslib_1.__exportStar(require("./entities"), exports);
|
|
12
17
|
//# 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,wDAA8B;AAC9B,qDAA2B;AAC3B,yDAA+B;AAC/B,oEAA0C;AAC1C,yDAA+B;AAE/B,YAAY;AAEZ,qDAA2B"}
|
|
@@ -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,97 @@
|
|
|
1
|
+
import type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import type { AXPReportArtifactKind, AXPReportLayoutDefinition } from './report.types';
|
|
4
|
+
export type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
5
|
+
export type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';
|
|
6
|
+
export interface AXPReportGenerationArtifact {
|
|
7
|
+
kind: AXPReportArtifactKind;
|
|
8
|
+
fileId?: string;
|
|
9
|
+
contentType?: string;
|
|
10
|
+
fileName?: string;
|
|
11
|
+
rowCount?: number;
|
|
12
|
+
byteLength?: number;
|
|
13
|
+
lastError?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = "ReportManagement:ReportGeneration";
|
|
16
|
+
export declare const REPORT_GENERATION_OPEN_FROZEN_COMMAND = "ReportManagement.Report:OpenViewer";
|
|
17
|
+
/** In-app inbox correlation id for a completed report generation run. */
|
|
18
|
+
export declare function buildReportGenerationNotificationCorrelationId(runId: string): string;
|
|
19
|
+
export interface AXMReportGenerationRequest extends AXPEntityModel<string> {
|
|
20
|
+
reportId: string;
|
|
21
|
+
layoutId?: string;
|
|
22
|
+
layoutIds?: string[];
|
|
23
|
+
parameters?: Record<string, unknown>;
|
|
24
|
+
formats: AXPReportArtifactKind[];
|
|
25
|
+
trigger: AXPReportGenerationTrigger;
|
|
26
|
+
status: AXPReportGenerationStatus;
|
|
27
|
+
requestedBy?: string;
|
|
28
|
+
jobId?: string;
|
|
29
|
+
scheduleId?: string;
|
|
30
|
+
scheduledOccurrence?: string;
|
|
31
|
+
startedAt?: string;
|
|
32
|
+
completedAt?: string;
|
|
33
|
+
durationMs?: number;
|
|
34
|
+
lastError?: string;
|
|
35
|
+
expiresAt?: string;
|
|
36
|
+
sourceRequestId?: string;
|
|
37
|
+
/** When true, skip in-app notification because the report viewer is watching this run inline. */
|
|
38
|
+
suppressNotificationOnComplete?: boolean;
|
|
39
|
+
artifacts: AXPReportGenerationArtifact[];
|
|
40
|
+
}
|
|
41
|
+
export interface AXPReportViewerFreeze {
|
|
42
|
+
version: 1;
|
|
43
|
+
reportId: string;
|
|
44
|
+
generatedAt: string;
|
|
45
|
+
parameters: Record<string, unknown>;
|
|
46
|
+
definition?: {
|
|
47
|
+
title: AXPMultiLanguageString;
|
|
48
|
+
defaultLayoutId: string;
|
|
49
|
+
layouts: AXPReportLayoutDefinition[];
|
|
50
|
+
};
|
|
51
|
+
dataSources: Array<{
|
|
52
|
+
layoutId: string;
|
|
53
|
+
queryName: string;
|
|
54
|
+
result: AXPRuntimeQueryResult;
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
57
|
+
export interface AXPReportGenerationCreateInput {
|
|
58
|
+
reportId: string;
|
|
59
|
+
layoutId?: string;
|
|
60
|
+
layoutIds?: string[];
|
|
61
|
+
parameters?: Record<string, unknown>;
|
|
62
|
+
formats?: AXPReportArtifactKind[];
|
|
63
|
+
trigger?: AXPReportGenerationTrigger;
|
|
64
|
+
sourceRequestId?: string;
|
|
65
|
+
scheduleId?: string;
|
|
66
|
+
scheduledOccurrence?: string;
|
|
67
|
+
/** Set when the report viewer will poll and show the result inline. */
|
|
68
|
+
suppressNotificationOnComplete?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface AXPReportGenerationReleaseInlineWatchInput {
|
|
71
|
+
id: string;
|
|
72
|
+
}
|
|
73
|
+
export interface AXPReportGenerationCreateResult {
|
|
74
|
+
id: string;
|
|
75
|
+
jobId?: string;
|
|
76
|
+
status: AXPReportGenerationStatus;
|
|
77
|
+
/** True when an existing run was returned instead of creating a new row. */
|
|
78
|
+
deduplicated?: boolean;
|
|
79
|
+
}
|
|
80
|
+
export interface AXPReportGenerationExecuteInput {
|
|
81
|
+
reportRequestId: string;
|
|
82
|
+
}
|
|
83
|
+
export interface AXPReportGenerationExecuteResult {
|
|
84
|
+
reportRequestId: string;
|
|
85
|
+
fileIds: string[];
|
|
86
|
+
rowCount?: number;
|
|
87
|
+
}
|
|
88
|
+
export interface AXPReportGenerationGetInput {
|
|
89
|
+
id: string;
|
|
90
|
+
}
|
|
91
|
+
export interface AXPReportGenerationGetViewerFreezeInput {
|
|
92
|
+
id: string;
|
|
93
|
+
}
|
|
94
|
+
export interface AXPReportGenerationListMineInput {
|
|
95
|
+
skip?: number;
|
|
96
|
+
take?: number;
|
|
97
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ----- Imports -----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.REPORT_GENERATION_OPEN_FROZEN_COMMAND = exports.REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = void 0;
|
|
5
|
+
exports.buildReportGenerationNotificationCorrelationId = buildReportGenerationNotificationCorrelationId;
|
|
6
|
+
exports.REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';
|
|
7
|
+
exports.REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';
|
|
8
|
+
/** In-app inbox correlation id for a completed report generation run. */
|
|
9
|
+
function buildReportGenerationNotificationCorrelationId(runId) {
|
|
10
|
+
const normalized = runId.trim();
|
|
11
|
+
return normalized ? `report-generation:${normalized}` : 'report-generation:';
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//# sourceMappingURL=report-generation.types.js.map
|