@acorex-platform/module-report-management-client 0.0.30 → 0.0.33
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/fesm2022/{acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-BDCuhd5O.mjs → acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DENcGULA.mjs} +1018 -386
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DENcGULA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs +143 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs +183 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs +129 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs +260 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs +170 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs +83 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-D50GUBH6.mjs +83 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-D50GUBH6.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-DuR9ZuN2.mjs +123 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-DuR9ZuN2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-Dc4uvjsG.mjs +69 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-Dc4uvjsG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-mJUQuk89.mjs +200 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-mJUQuk89.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-CMDFRHeK.mjs +110 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-CMDFRHeK.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs +23 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page-component.provider-C6tJPxri.mjs → acorex-platform-module-report-management-client-entity-reports-page-component.provider-B_i4p7tQ.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page-component.provider-C6tJPxri.mjs.map → acorex-platform-module-report-management-client-entity-reports-page-component.provider-B_i4p7tQ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-fBftKdQW.mjs → acorex-platform-module-report-management-client-entity-reports-page.component-D27Gtma6.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-fBftKdQW.mjs.map → acorex-platform-module-report-management-client-entity-reports-page.component-D27Gtma6.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs +33 -0
- package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-B9msMMod.mjs → acorex-platform-module-report-management-client-report-popup-viewer.component-B6aTfRp0.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-B9msMMod.mjs.map → acorex-platform-module-report-management-client-report-popup-viewer.component-B6aTfRp0.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-report-management-client.mjs +1 -1
- package/package.json +29 -1
- package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.d.ts +5 -0
- package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.d.ts +5 -0
- package/types/acorex-platform-module-report-management-client-contracts-entities-report-category.d.ts +5 -0
- package/types/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.d.ts +5 -0
- package/types/acorex-platform-module-report-management-client-contracts-entities-report.d.ts +5 -0
- package/types/acorex-platform-module-report-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-report-management-client-contracts.d.ts +99 -58
- package/types/acorex-platform-module-report-management-client-local-entities.d.ts +12 -0
- package/types/acorex-platform-module-report-management-client.d.ts +46 -4
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-BDCuhd5O.mjs.map +0 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Query snapshot policy entity factory ----
|
|
6
|
+
const I18N = '@report-management:query-snapshots.entities.policy';
|
|
7
|
+
async function querySnapshotPolicyEntityFactory() {
|
|
8
|
+
return {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.querySnapshotPolicy.name,
|
|
11
|
+
title: RootConfig.entities.querySnapshotPolicy.title,
|
|
12
|
+
icon: RootConfig.entities.querySnapshotPolicy.icon,
|
|
13
|
+
formats: {
|
|
14
|
+
individual: RootConfig.entities.querySnapshotPolicy.title,
|
|
15
|
+
plural: RootConfig.entities.querySnapshotPolicy.titlePlural,
|
|
16
|
+
searchResult: {
|
|
17
|
+
title: '{{ queryName }}',
|
|
18
|
+
description: RootConfig.module.title,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
22
|
+
properties: [
|
|
23
|
+
{
|
|
24
|
+
name: 'queryName',
|
|
25
|
+
title: `${I18N}.fields.query-name`,
|
|
26
|
+
groupId: 'basic-info',
|
|
27
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
28
|
+
validations: [{ rule: 'required' }],
|
|
29
|
+
options: {
|
|
30
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
31
|
+
sort: { enabled: true },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'enabled',
|
|
36
|
+
title: `${I18N}.fields.enabled`,
|
|
37
|
+
groupId: 'basic-info',
|
|
38
|
+
schema: {
|
|
39
|
+
dataType: 'boolean',
|
|
40
|
+
defaultValue: true,
|
|
41
|
+
interface: { type: AXPWidgetsCatalog.toggle },
|
|
42
|
+
},
|
|
43
|
+
options: {
|
|
44
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
45
|
+
sort: { enabled: true },
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'schedule',
|
|
50
|
+
title: `${I18N}.fields.schedule`,
|
|
51
|
+
groupId: 'basic-info',
|
|
52
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
53
|
+
validations: [{ rule: 'required' }],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'staleAfterMs',
|
|
57
|
+
title: `${I18N}.fields.stale-after-ms`,
|
|
58
|
+
groupId: 'basic-info',
|
|
59
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },
|
|
60
|
+
validations: [{ rule: 'required' }],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'triggers',
|
|
64
|
+
title: `${I18N}.fields.triggers`,
|
|
65
|
+
groupId: 'basic-info',
|
|
66
|
+
schema: { dataType: 'object', interface: { type: 'json' } },
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
columns: [{ name: 'queryName' }, { name: 'enabled' }, { name: 'schedule' }, { name: 'staleAfterMs' }],
|
|
70
|
+
interfaces: {
|
|
71
|
+
master: {
|
|
72
|
+
list: {
|
|
73
|
+
actions: [...entityMasterCrudActions()],
|
|
74
|
+
views: [createAllQueryView({ sorts: [{ name: 'queryName', dir: 'asc' }] })],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
|
|
82
|
+
export { querySnapshotPolicyEntityFactory };
|
|
83
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-D50GUBH6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-D50GUBH6.mjs","sources":["../../../../libs/modules/report-management/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Query snapshot policy entity factory ----\n\nconst I18N = '@report-management:query-snapshots.entities.policy';\n\nexport async function querySnapshotPolicyEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.querySnapshotPolicy.name,\n title: RootConfig.entities.querySnapshotPolicy.title,\n icon: RootConfig.entities.querySnapshotPolicy.icon,\n formats: {\n individual: RootConfig.entities.querySnapshotPolicy.title,\n plural: RootConfig.entities.querySnapshotPolicy.titlePlural,\n searchResult: {\n title: '{{ queryName }}',\n description: RootConfig.module.title,\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'queryName',\n title: `${I18N}.fields.query-name`,\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'enabled',\n title: `${I18N}.fields.enabled`,\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n defaultValue: true,\n interface: { type: AXPWidgetsCatalog.toggle },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'schedule',\n title: `${I18N}.fields.schedule`,\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'staleAfterMs',\n title: `${I18N}.fields.stale-after-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'triggers',\n title: `${I18N}.fields.triggers`,\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: 'json' } },\n },\n ],\n columns: [{ name: 'queryName' }, { name: 'enabled' }, { name: 'schedule' }, { name: 'staleAfterMs' }],\n interfaces: {\n master: {\n list: {\n actions: [...entityMasterCrudActions()],\n views: [create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AI,EAAE,iBAAiB,CAAC,MAAM,EAAE,EAAE;AAC7E,gBAAA,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AACpC,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,gBAAA,CAAkB;AAChC,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;AAC5D,aAAA;AACF,SAAA;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;AACrG,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;;;"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Report management command keys ----
|
|
6
|
+
const AXMReportManagementCommandKeys = {
|
|
7
|
+
RecalculateQuerySnapshots: 'ReportManagement:RecalculateQuerySnapshots',
|
|
8
|
+
RefreshQuerySnapshots: 'ReportManagement:RefreshQuerySnapshots',
|
|
9
|
+
ReportGeneration: {
|
|
10
|
+
Create: 'ReportManagement:ReportGeneration:Create',
|
|
11
|
+
Execute: 'ReportManagement:ReportGeneration:Execute',
|
|
12
|
+
ReleaseInlineWatch: 'ReportManagement:ReportGeneration:ReleaseInlineWatch',
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
const AXM_RECALCULATE_QUERY_SNAPSHOTS_COMMAND_KEY = AXMReportManagementCommandKeys.RecalculateQuerySnapshots;
|
|
16
|
+
const AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY = AXMReportManagementCommandKeys.RefreshQuerySnapshots;
|
|
17
|
+
//#endregion
|
|
18
|
+
|
|
19
|
+
//#region ---- Query snapshot entity factory ----
|
|
20
|
+
const I18N = '@report-management:query-snapshots.entities.snapshot';
|
|
21
|
+
const STATUS_ITEMS = [
|
|
22
|
+
{ name: 'ready', title: `${I18N}.statuses.ready` },
|
|
23
|
+
{ name: 'stale', title: `${I18N}.statuses.stale` },
|
|
24
|
+
{ name: 'failed', title: `${I18N}.statuses.failed` },
|
|
25
|
+
];
|
|
26
|
+
async function querySnapshotEntityFactory() {
|
|
27
|
+
return {
|
|
28
|
+
module: RootConfig.module.name,
|
|
29
|
+
name: RootConfig.entities.querySnapshot.name,
|
|
30
|
+
title: RootConfig.entities.querySnapshot.title,
|
|
31
|
+
icon: RootConfig.entities.querySnapshot.icon,
|
|
32
|
+
formats: {
|
|
33
|
+
individual: RootConfig.entities.querySnapshot.title,
|
|
34
|
+
plural: RootConfig.entities.querySnapshot.titlePlural,
|
|
35
|
+
searchResult: {
|
|
36
|
+
title: '{{ key }}',
|
|
37
|
+
description: '{{ status }}',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
41
|
+
properties: [
|
|
42
|
+
{
|
|
43
|
+
name: 'key',
|
|
44
|
+
title: `${I18N}.fields.key`,
|
|
45
|
+
groupId: 'basic-info',
|
|
46
|
+
schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
|
|
47
|
+
options: {
|
|
48
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
49
|
+
sort: { enabled: true },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'status',
|
|
54
|
+
title: `${I18N}.fields.status`,
|
|
55
|
+
groupId: 'basic-info',
|
|
56
|
+
schema: {
|
|
57
|
+
dataType: 'string',
|
|
58
|
+
readonly: true,
|
|
59
|
+
interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },
|
|
60
|
+
},
|
|
61
|
+
options: {
|
|
62
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
63
|
+
sort: { enabled: true },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'calculatedAt',
|
|
68
|
+
title: `${I18N}.fields.calculated-at`,
|
|
69
|
+
groupId: 'basic-info',
|
|
70
|
+
schema: {
|
|
71
|
+
dataType: 'datetime',
|
|
72
|
+
readonly: true,
|
|
73
|
+
interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
|
|
74
|
+
},
|
|
75
|
+
options: { sort: { enabled: true } },
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'durationMs',
|
|
79
|
+
title: `${I18N}.fields.duration-ms`,
|
|
80
|
+
groupId: 'basic-info',
|
|
81
|
+
schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'lastError',
|
|
85
|
+
title: `${I18N}.fields.last-error`,
|
|
86
|
+
groupId: 'basic-info',
|
|
87
|
+
schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'payload',
|
|
91
|
+
title: `${I18N}.fields.payload`,
|
|
92
|
+
groupId: 'basic-info',
|
|
93
|
+
schema: {
|
|
94
|
+
dataType: 'object',
|
|
95
|
+
readonly: true,
|
|
96
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
columns: [{ name: 'key' }, { name: 'status' }, { name: 'calculatedAt' }, { name: 'durationMs' }],
|
|
101
|
+
interfaces: {
|
|
102
|
+
master: {
|
|
103
|
+
list: {
|
|
104
|
+
actions: [
|
|
105
|
+
{
|
|
106
|
+
title: '@report-management:query-snapshots.actions.refresh-now',
|
|
107
|
+
icon: 'fa-light fa-rotate',
|
|
108
|
+
command: { name: AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY },
|
|
109
|
+
priority: 'primary',
|
|
110
|
+
type: 'action',
|
|
111
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
views: [createAllQueryView({ sorts: [{ name: 'calculatedAt', dir: 'desc' }] })],
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
|
|
122
|
+
export { querySnapshotEntityFactory };
|
|
123
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-DuR9ZuN2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-DuR9ZuN2.mjs","sources":["../../../../libs/modules/report-management/contracts/src/commands.keys.ts","../../../../libs/modules/report-management/contracts/src/entities/query-snapshot/query-snapshot.entity.ts"],"sourcesContent":["//#region ---- Report management command keys ----\n\nexport const AXMReportManagementCommandKeys = {\n RecalculateQuerySnapshots: 'ReportManagement:RecalculateQuerySnapshots',\n RefreshQuerySnapshots: 'ReportManagement:RefreshQuerySnapshots',\n ReportGeneration: {\n Create: 'ReportManagement:ReportGeneration:Create',\n Execute: 'ReportManagement:ReportGeneration:Execute',\n ReleaseInlineWatch: 'ReportManagement:ReportGeneration:ReleaseInlineWatch',\n },\n} as const;\n\nexport const AXM_RECALCULATE_QUERY_SNAPSHOTS_COMMAND_KEY =\n AXMReportManagementCommandKeys.RecalculateQuerySnapshots;\n\nexport const AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY =\n AXMReportManagementCommandKeys.RefreshQuerySnapshots;\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Query snapshot entity factory ----\n\nconst I18N = '@report-management:query-snapshots.entities.snapshot';\n\nconst STATUS_ITEMS = [\n { name: 'ready', title: `${I18N}.statuses.ready` },\n { name: 'stale', title: `${I18N}.statuses.stale` },\n { name: 'failed', title: `${I18N}.statuses.failed` },\n];\n\nexport async function querySnapshotEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.querySnapshot.name,\n title: RootConfig.entities.querySnapshot.title,\n icon: RootConfig.entities.querySnapshot.icon,\n formats: {\n individual: RootConfig.entities.querySnapshot.title,\n plural: RootConfig.entities.querySnapshot.titlePlural,\n searchResult: {\n title: '{{ key }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'key',\n title: `${I18N}.fields.key`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'calculatedAt',\n title: `${I18N}.fields.calculated-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'lastError',\n title: `${I18N}.fields.last-error`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'payload',\n title: `${I18N}.fields.payload`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n ],\n columns: [{ name: 'key' }, { name: 'status' }, { name: 'calculatedAt' }, { name: 'durationMs' }],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@report-management:query-snapshots.actions.refresh-now',\n icon: 'fa-light fa-rotate',\n command: { name: AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY },\n priority: 'primary',\n type: 'action',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'calculatedAt', dir: 'desc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAEO,MAAM,8BAA8B,GAAG;AAC5C,IAAA,yBAAyB,EAAE,4CAA4C;AACvE,IAAA,qBAAqB,EAAE,wCAAwC;AAC/D,IAAA,gB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AAE,EAAE;AACrF,iBAAA;AACF,aAAA;AACF,SAAA;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AAChG,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE;AACP,wBAAA;AACE,4BAAA,KAAK,EAAE,wDAAwD;AAC/D,4BAAA,IAAI,EAAE,oBAAoB;AAC1B,4BAAA,OAAO,EAAE,EAAE,IAAI,EAAE,uCAAuC,EAAE;AAC1D,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,SAAS;AACvC,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAChF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;;;"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
2
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Report category entity factory ----
|
|
6
|
+
async function reportCategoryEntityFactory() {
|
|
7
|
+
return {
|
|
8
|
+
module: RootConfig.module.name,
|
|
9
|
+
name: RootConfig.entities.category.name,
|
|
10
|
+
parentKey: 'parentId',
|
|
11
|
+
title: RootConfig.entities.category.title,
|
|
12
|
+
icon: RootConfig.entities.category.icon,
|
|
13
|
+
formats: {
|
|
14
|
+
individual: RootConfig.entities.category.title,
|
|
15
|
+
plural: RootConfig.entities.category.titlePlural,
|
|
16
|
+
searchResult: {
|
|
17
|
+
title: '{{ title }}',
|
|
18
|
+
description: RootConfig.module.title,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
22
|
+
properties: [
|
|
23
|
+
{
|
|
24
|
+
name: 'title',
|
|
25
|
+
title: '@general:terms.common.title',
|
|
26
|
+
groupId: 'basic-info',
|
|
27
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
28
|
+
validations: [{ rule: 'required' }],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'description',
|
|
32
|
+
title: '@general:terms.common.description',
|
|
33
|
+
groupId: 'basic-info',
|
|
34
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'parentId',
|
|
38
|
+
title: '@general:terms.classification.parent',
|
|
39
|
+
groupId: 'basic-info',
|
|
40
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'childrenCount',
|
|
44
|
+
title: '@general:terms.common.children-count',
|
|
45
|
+
groupId: 'basic-info',
|
|
46
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'itemsCount',
|
|
50
|
+
title: '@general:terms.common.items-count',
|
|
51
|
+
groupId: 'basic-info',
|
|
52
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
columns: [{ name: 'title' }, { name: 'description' }],
|
|
56
|
+
interfaces: {
|
|
57
|
+
master: {
|
|
58
|
+
list: {
|
|
59
|
+
actions: [...entityMasterCrudActions()],
|
|
60
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
|
|
68
|
+
export { reportCategoryEntityFactory };
|
|
69
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-Dc4uvjsG.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-Dc4uvjsG.mjs","sources":["../../../../libs/modules/report-management/contracts/src/entities/report-category/report-category.entity.ts"],"sourcesContent":["import {AXPEntity, createAllQueryView, entityMasterCrudActions} from '@acorex-platform/framework-shared/entity';\nimport {AXPWidgetsCatalog} from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Report category entity factory ----\n\nexport async function reportCategoryEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.category.name,\n parentKey: 'parentId',\n title: RootConfig.entities.category.title,\n icon: RootConfig.entities.category.icon,\n formats: {\n individual: RootConfig.entities.category.title,\n plural: RootConfig.entities.category.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'parentId',\n title: '@general:terms.classification.parent',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'childrenCount',\n title: '@general:terms.common.children-count',\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'itemsCount',\n title: '@general:terms.common.items-count',\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAIA;AAEO,eAAe,2BAA2B,GAAA;IAC/C,OAAO;AACL,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI;AACvC,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK;AACzC,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI;AACvC,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK;AAC9C,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW;AAChD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aAAA;AACF,SAAA;QACD,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;AAC5E,QAAA,UAAU,EAAE;AACV,YAAA;AACE,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,KAAK,EAAE,6BAA6B;AACpC,gBAAA,OAAO,E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AAO,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;AACrD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;;;"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ----- Imports -----
|
|
6
|
+
const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';
|
|
7
|
+
const 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
|
+
|
|
15
|
+
//#region ---- Report generation request entity factory ----
|
|
16
|
+
const I18N = '@report-management:report-generation.entities.request';
|
|
17
|
+
const STATUS_ITEMS = [
|
|
18
|
+
{ name: 'queued', title: `${I18N}.statuses.queued` },
|
|
19
|
+
{ name: 'running', title: `${I18N}.statuses.running` },
|
|
20
|
+
{ name: 'completed', title: `${I18N}.statuses.completed` },
|
|
21
|
+
{ name: 'failed', title: `${I18N}.statuses.failed` },
|
|
22
|
+
{ name: 'cancelled', title: `${I18N}.statuses.cancelled` },
|
|
23
|
+
];
|
|
24
|
+
const TRIGGER_ITEMS = [
|
|
25
|
+
{ name: 'manual', title: `${I18N}.triggers.manual` },
|
|
26
|
+
{ name: 'schedule', title: `${I18N}.triggers.schedule` },
|
|
27
|
+
{ name: 'export', title: `${I18N}.triggers.export` },
|
|
28
|
+
];
|
|
29
|
+
async function reportGenerationRequestEntityFactory() {
|
|
30
|
+
return {
|
|
31
|
+
module: RootConfig.module.name,
|
|
32
|
+
name: RootConfig.entities.reportGenerationRequest.name,
|
|
33
|
+
title: RootConfig.entities.reportGenerationRequest.title,
|
|
34
|
+
icon: RootConfig.entities.reportGenerationRequest.icon,
|
|
35
|
+
formats: {
|
|
36
|
+
individual: RootConfig.entities.reportGenerationRequest.title,
|
|
37
|
+
plural: RootConfig.entities.reportGenerationRequest.titlePlural,
|
|
38
|
+
searchResult: {
|
|
39
|
+
title: '{{ reportId }}',
|
|
40
|
+
description: '{{ status }}',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
44
|
+
properties: [
|
|
45
|
+
{
|
|
46
|
+
name: 'reportId',
|
|
47
|
+
title: `${I18N}.fields.report-id`,
|
|
48
|
+
groupId: 'basic-info',
|
|
49
|
+
schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
|
|
50
|
+
options: {
|
|
51
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
52
|
+
sort: { enabled: true },
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'layoutId',
|
|
57
|
+
title: `${I18N}.fields.layout-id`,
|
|
58
|
+
groupId: 'basic-info',
|
|
59
|
+
schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'status',
|
|
63
|
+
title: `${I18N}.fields.status`,
|
|
64
|
+
groupId: 'basic-info',
|
|
65
|
+
schema: {
|
|
66
|
+
dataType: 'string',
|
|
67
|
+
readonly: true,
|
|
68
|
+
interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },
|
|
69
|
+
},
|
|
70
|
+
options: {
|
|
71
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
72
|
+
sort: { enabled: true },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'trigger',
|
|
77
|
+
title: `${I18N}.fields.trigger`,
|
|
78
|
+
groupId: 'basic-info',
|
|
79
|
+
schema: {
|
|
80
|
+
dataType: 'string',
|
|
81
|
+
readonly: true,
|
|
82
|
+
interface: { type: AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },
|
|
83
|
+
},
|
|
84
|
+
options: { filter: { advance: { enabled: true } } },
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'requestedBy',
|
|
88
|
+
title: `${I18N}.fields.requested-by`,
|
|
89
|
+
groupId: 'basic-info',
|
|
90
|
+
schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
|
|
91
|
+
options: { filter: { advance: { enabled: true } } },
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'jobId',
|
|
95
|
+
title: `${I18N}.fields.job-id`,
|
|
96
|
+
groupId: 'basic-info',
|
|
97
|
+
schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'startedAt',
|
|
101
|
+
title: `${I18N}.fields.started-at`,
|
|
102
|
+
groupId: 'basic-info',
|
|
103
|
+
schema: {
|
|
104
|
+
dataType: 'datetime',
|
|
105
|
+
readonly: true,
|
|
106
|
+
interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
|
|
107
|
+
},
|
|
108
|
+
options: { sort: { enabled: true } },
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'completedAt',
|
|
112
|
+
title: `${I18N}.fields.completed-at`,
|
|
113
|
+
groupId: 'basic-info',
|
|
114
|
+
schema: {
|
|
115
|
+
dataType: 'datetime',
|
|
116
|
+
readonly: true,
|
|
117
|
+
interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
|
|
118
|
+
},
|
|
119
|
+
options: { sort: { enabled: true } },
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'durationMs',
|
|
123
|
+
title: `${I18N}.fields.duration-ms`,
|
|
124
|
+
groupId: 'basic-info',
|
|
125
|
+
schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'lastError',
|
|
129
|
+
title: `${I18N}.fields.last-error`,
|
|
130
|
+
groupId: 'basic-info',
|
|
131
|
+
schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'expiresAt',
|
|
135
|
+
title: `${I18N}.fields.expires-at`,
|
|
136
|
+
groupId: 'basic-info',
|
|
137
|
+
schema: {
|
|
138
|
+
dataType: 'datetime',
|
|
139
|
+
readonly: true,
|
|
140
|
+
interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'parameters',
|
|
145
|
+
title: `${I18N}.fields.parameters`,
|
|
146
|
+
groupId: 'basic-info',
|
|
147
|
+
schema: {
|
|
148
|
+
dataType: 'object',
|
|
149
|
+
readonly: true,
|
|
150
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'artifacts',
|
|
155
|
+
title: `${I18N}.fields.artifacts`,
|
|
156
|
+
groupId: 'basic-info',
|
|
157
|
+
schema: {
|
|
158
|
+
dataType: 'object',
|
|
159
|
+
readonly: true,
|
|
160
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
columns: [
|
|
165
|
+
{ name: 'reportId' },
|
|
166
|
+
{ name: 'status' },
|
|
167
|
+
{ name: 'trigger' },
|
|
168
|
+
{ name: 'startedAt' },
|
|
169
|
+
{ name: 'completedAt' },
|
|
170
|
+
],
|
|
171
|
+
interfaces: {
|
|
172
|
+
master: {
|
|
173
|
+
list: {
|
|
174
|
+
actions: [
|
|
175
|
+
{
|
|
176
|
+
title: '@report-management:report-generation.actions.open-frozen-viewer',
|
|
177
|
+
icon: 'fa-light fa-snowflake',
|
|
178
|
+
command: {
|
|
179
|
+
name: REPORT_GENERATION_OPEN_FROZEN_COMMAND,
|
|
180
|
+
options: {
|
|
181
|
+
reportId: '{{ context.eval("reportId") }}',
|
|
182
|
+
runId: '{{ context.eval("id") }}',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
priority: 'primary',
|
|
186
|
+
type: 'view',
|
|
187
|
+
scope: AXPEntityCommandScope.Individual,
|
|
188
|
+
default: true,
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
views: [createAllQueryView({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
|
|
199
|
+
export { reportGenerationRequestEntityFactory };
|
|
200
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-mJUQuk89.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-mJUQuk89.mjs","sources":["../../../../libs/modules/report-management/contracts/src/report-generation.types.ts","../../../../libs/modules/report-management/contracts/src/entities/report-generation-request/report-generation-request.entity.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\nimport type {\n AXPReportArtifactKind,\n AXPReportLayoutDefinition,\n} from './report.types';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';\n\nexport interface AXPReportGenerationArtifact {\n kind: AXPReportArtifactKind;\n fileId?: string;\n contentType?: string;\n fileName?: string;\n rowCount?: number;\n byteLength?: number;\n lastError?: string;\n}\n\nexport const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';\n\nexport const REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';\n\n/** In-app inbox correlation id for a completed report generation run. */\nexport function buildReportGenerationNotificationCorrelationId(runId: string): string {\n const normalized = runId.trim();\n return normalized ? `report-generation:${normalized}` : 'report-generation:';\n}\n\nexport interface AXMReportGenerationRequest extends AXPEntityModel<string> {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats: AXPReportArtifactKind[];\n trigger: AXPReportGenerationTrigger;\n status: AXPReportGenerationStatus;\n requestedBy?: string;\n jobId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n startedAt?: string;\n completedAt?: string;\n durationMs?: number;\n lastError?: string;\n expiresAt?: string;\n sourceRequestId?: string;\n /** When true, skip in-app notification because the report viewer is watching this run inline. */\n suppressNotificationOnComplete?: boolean;\n artifacts: AXPReportGenerationArtifact[];\n}\n\nexport interface AXPReportViewerFreeze {\n version: 1;\n reportId: string;\n generatedAt: string;\n parameters: Record<string, unknown>;\n definition?: {\n title: AXPMultiLanguageString;\n defaultLayoutId: string;\n layouts: AXPReportLayoutDefinition[];\n };\n dataSources: Array<{\n layoutId: string;\n queryName: string;\n result: AXPRuntimeQueryResult;\n }>;\n}\n\nexport interface AXPReportGenerationCreateInput {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats?: AXPReportArtifactKind[];\n trigger?: AXPReportGenerationTrigger;\n sourceRequestId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n /** Set when the report viewer will poll and show the result inline. */\n suppressNotificationOnComplete?: boolean;\n}\n\nexport interface AXPReportGenerationReleaseInlineWatchInput {\n id: string;\n}\n\nexport interface AXPReportGenerationCreateResult {\n id: string;\n jobId?: string;\n status: AXPReportGenerationStatus;\n /** True when an existing run was returned instead of creating a new row. */\n deduplicated?: boolean;\n}\n\nexport interface AXPReportGenerationExecuteInput {\n reportRequestId: string;\n}\n\nexport interface AXPReportGenerationExecuteResult {\n reportRequestId: string;\n fileIds: string[];\n rowCount?: number;\n}\n\nexport interface AXPReportGenerationGetInput {\n id: string;\n}\n\nexport interface AXPReportGenerationGetViewerFreezeInput {\n id: string;\n}\n\nexport interface AXPReportGenerationListMineInput {\n skip?: number;\n take?: number;\n}\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { REPORT_GENERATION_OPEN_FROZEN_COMMAND } from '../../report-generation.types';\n\n//#region ---- Report generation request entity factory ----\n\nconst I18N = '@report-management:report-generation.entities.request';\n\nconst STATUS_ITEMS = [\n { name: 'queued', title: `${I18N}.statuses.queued` },\n { name: 'running', title: `${I18N}.statuses.running` },\n { name: 'completed', title: `${I18N}.statuses.completed` },\n { name: 'failed', title: `${I18N}.statuses.failed` },\n { name: 'cancelled', title: `${I18N}.statuses.cancelled` },\n];\n\nconst TRIGGER_ITEMS = [\n { name: 'manual', title: `${I18N}.triggers.manual` },\n { name: 'schedule', title: `${I18N}.triggers.schedule` },\n { name: 'export', title: `${I18N}.triggers.export` },\n];\n\nexport async function reportGenerationRequestEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.reportGenerationRequest.name,\n title: RootConfig.entities.reportGenerationRequest.title,\n icon: RootConfig.entities.reportGenerationRequest.icon,\n formats: {\n individual: RootConfig.entities.reportGenerationRequest.title,\n plural: RootConfig.entities.reportGenerationRequest.titlePlural,\n searchResult: {\n title: '{{ reportId }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'reportId',\n title: `${I18N}.fields.report-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'layoutId',\n title: `${I18N}.fields.layout-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'trigger',\n title: `${I18N}.fields.trigger`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'requestedBy',\n title: `${I18N}.fields.requested-by`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'jobId',\n title: `${I18N}.fields.job-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'startedAt',\n title: `${I18N}.fields.started-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'completedAt',\n title: `${I18N}.fields.completed-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'lastError',\n title: `${I18N}.fields.last-error`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'expiresAt',\n title: `${I18N}.fields.expires-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n },\n {\n name: 'parameters',\n title: `${I18N}.fields.parameters`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n {\n name: 'artifacts',\n title: `${I18N}.fields.artifacts`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n ],\n columns: [\n { name: 'reportId' },\n { name: 'status' },\n { name: 'trigger' },\n { name: 'startedAt' },\n { name: 'completedAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@report-management:report-generation.actions.open-frozen-viewer',\n icon: 'fa-light fa-snowflake',\n command: {\n name: REPORT_GENERATION_OPEN_FROZEN_COMMAND,\n options: {\n reportId: '{{ context.eval(\"reportId\") }}',\n runId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AA2BO,MAAM,6CAA6C,GAAG,mCAAmC;AAEzF,MAAM,qCAAqC,GAAG,oCAAoC;AAEzF;AACM,SAAU,8CAA8C,CAAC,KAAa,EAAA;AAC1E,IAAA,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE;IAC/B,OAAO,UAAU,GAAG,CAAA,kBAAA,EAAqB,UAAU,CAAA,CAAE,GAAG,oBAAoB;AAC9E;AA2FA;;ACzHA;AAEA,MAAM,IAAI,GAAG,uDAAuD;AAEpE,MAAM,YAAY,GAAG;IACnB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,gBAAA,CAAkB,EAAE;IACpD,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,iBAAA,CAAmB,EAAE;IACtD,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,mBAAA,CAAqB,EAAE;IAC1D,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,gBAAA,CAAkB,EAAE;IACpD,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,mBAAA,CAAqB,EAAE;CAC3D;AAED,MAAM,aAAa,GAAG;IACpB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA,EAAG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