@acorex-platform/module-report-management-server 0.0.15 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/src/commands.keys.d.ts +13 -0
- package/contracts/src/commands.keys.js +19 -0
- package/contracts/src/commands.keys.js.map +1 -0
- package/contracts/src/entities/index.d.ts +1 -0
- package/contracts/src/entities/index.js +1 -0
- package/contracts/src/entities/index.js.map +1 -1
- package/contracts/src/entities/report/index.d.ts +1 -1
- package/contracts/src/entities/report/index.js +1 -1
- package/contracts/src/entities/report/index.js.map +1 -1
- package/contracts/src/entities/report/report.entity.js +180 -12
- package/contracts/src/entities/report/report.entity.js.map +1 -1
- package/contracts/src/entities/report-category/index.d.ts +1 -1
- package/contracts/src/entities/report-category/index.js +0 -2
- package/contracts/src/entities/report-category/index.js.map +1 -1
- package/contracts/src/entities/report-category/report-category.entity.js +14 -1
- package/contracts/src/entities/report-category/report-category.entity.js.map +1 -1
- package/contracts/src/entities/report-generation-request/index.d.ts +1 -0
- package/contracts/src/entities/report-generation-request/index.js +5 -0
- package/contracts/src/entities/report-generation-request/index.js.map +1 -0
- package/contracts/src/entities/report-generation-request/report-generation-request.entity.d.ts +2 -0
- package/contracts/src/entities/report-generation-request/report-generation-request.entity.js +208 -0
- package/contracts/src/entities/report-generation-request/report-generation-request.entity.js.map +1 -0
- package/contracts/src/entity-catalog.d.ts +7 -0
- package/contracts/src/entity-catalog.js +22 -0
- package/contracts/src/entity-catalog.js.map +1 -0
- package/contracts/src/entity-entry.report-category.d.ts +1 -0
- package/contracts/src/entity-entry.report-category.js +6 -0
- package/contracts/src/entity-entry.report-category.js.map +1 -0
- package/contracts/src/entity-entry.report-generation-request.d.ts +1 -0
- package/contracts/src/entity-entry.report-generation-request.js +6 -0
- package/contracts/src/entity-entry.report-generation-request.js.map +1 -0
- package/contracts/src/entity-entry.report.d.ts +1 -0
- package/contracts/src/entity-entry.report.js +6 -0
- package/contracts/src/entity-entry.report.js.map +1 -0
- package/contracts/src/index.d.ts +18 -1
- package/contracts/src/index.js +18 -1
- package/contracts/src/index.js.map +1 -1
- package/contracts/src/manifest.d.ts +6 -0
- package/contracts/src/manifest.js +24 -0
- package/contracts/src/manifest.js.map +1 -0
- package/contracts/src/permission.keys.d.ts +30 -14
- package/contracts/src/permission.keys.js +28 -12
- package/contracts/src/permission.keys.js.map +1 -1
- package/contracts/src/query-cache-targets.d.ts +5 -0
- package/contracts/src/query-cache-targets.js +113 -0
- package/contracts/src/query-cache-targets.js.map +1 -0
- package/contracts/src/report-filter-form.util.d.ts +20 -0
- package/contracts/src/report-filter-form.util.js +121 -0
- package/contracts/src/report-filter-form.util.js.map +1 -0
- package/contracts/src/report-generation.types.d.ts +97 -0
- package/contracts/src/report-generation.types.js +14 -0
- package/contracts/src/report-generation.types.js.map +1 -0
- package/contracts/src/report-interchange.projection.d.ts +22 -0
- package/contracts/src/report-interchange.projection.js +171 -0
- package/contracts/src/report-interchange.projection.js.map +1 -0
- package/contracts/src/report-interchange.snapshot.d.ts +12 -0
- package/contracts/src/report-interchange.snapshot.js +34 -0
- package/contracts/src/report-interchange.snapshot.js.map +1 -0
- package/contracts/src/report-interchange.types.d.ts +38 -0
- package/contracts/src/report-interchange.types.js +4 -0
- package/contracts/src/report-interchange.types.js.map +1 -0
- package/contracts/src/report-layout-field-schema.d.ts +64 -0
- package/contracts/src/report-layout-field-schema.js +294 -0
- package/contracts/src/report-layout-field-schema.js.map +1 -0
- package/contracts/src/report-layout-form.util.d.ts +67 -0
- package/contracts/src/report-layout-form.util.js +578 -0
- package/contracts/src/report-layout-form.util.js.map +1 -0
- package/contracts/src/report-layout-json-sections.d.ts +15 -0
- package/contracts/src/report-layout-json-sections.js +38 -0
- package/contracts/src/report-layout-json-sections.js.map +1 -0
- package/contracts/src/report-layout-sections.mapper.d.ts +37 -0
- package/contracts/src/report-layout-sections.mapper.js +306 -0
- package/contracts/src/report-layout-sections.mapper.js.map +1 -0
- package/contracts/src/report-layout-starter.d.ts +15 -0
- package/contracts/src/report-layout-starter.js +93 -0
- package/contracts/src/report-layout-starter.js.map +1 -0
- package/contracts/src/report-layout.presets.d.ts +17 -0
- package/contracts/src/report-layout.presets.js +72 -0
- package/contracts/src/report-layout.presets.js.map +1 -0
- package/contracts/src/report-parameter-binding.util.d.ts +8 -0
- package/contracts/src/report-parameter-binding.util.js +29 -0
- package/contracts/src/report-parameter-binding.util.js.map +1 -0
- package/contracts/src/report.types.d.ts +125 -107
- package/contracts/src/report.types.js.map +1 -1
- package/contracts/src/root-config.d.ts +9 -2
- package/contracts/src/root-config.js +9 -2
- package/contracts/src/root-config.js.map +1 -1
- package/contracts/src/runtime.keys.d.ts +14 -0
- package/contracts/src/runtime.keys.js +20 -0
- package/contracts/src/runtime.keys.js.map +1 -0
- package/contracts/src/settings.keys.d.ts +11 -0
- package/contracts/src/settings.keys.js +17 -0
- package/contracts/src/settings.keys.js.map +1 -0
- package/package.json +9 -7
- package/server/src/index.d.ts +4 -4
- package/server/src/index.js +9 -8
- package/server/src/index.js.map +1 -1
- package/server/src/lib/entities/index.d.ts +1 -0
- package/server/src/lib/entities/index.js +5 -0
- package/server/src/lib/entities/index.js.map +1 -0
- package/server/src/lib/entities/report-management.entity-catalog.d.ts +1 -0
- package/server/src/lib/entities/report-management.entity-catalog.js +12 -0
- package/server/src/lib/entities/report-management.entity-catalog.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-definition.service.d.ts +18 -0
- package/server/src/lib/interchange/report-interchange-definition.service.js +94 -0
- package/server/src/lib/interchange/report-interchange-definition.service.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-export-data-source.d.ts +16 -0
- package/server/src/lib/interchange/report-interchange-export-data-source.js +72 -0
- package/server/src/lib/interchange/report-interchange-export-data-source.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-export-query.util.d.ts +10 -0
- package/server/src/lib/interchange/report-interchange-export-query.util.js +22 -0
- package/server/src/lib/interchange/report-interchange-export-query.util.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-export.command.d.ts +31 -0
- package/server/src/lib/interchange/report-interchange-export.command.js +268 -0
- package/server/src/lib/interchange/report-interchange-export.command.js.map +1 -0
- package/server/src/lib/report-browse.service.js +32 -13
- package/server/src/lib/report-browse.service.js.map +1 -1
- package/server/src/lib/report-browse.types.d.ts +27 -12
- package/server/src/lib/report-browse.types.js +0 -1
- package/server/src/lib/report-browse.types.js.map +1 -1
- package/server/src/lib/report-definition.seed-provider.d.ts +15 -0
- package/server/src/lib/report-definition.seed-provider.js +63 -0
- package/server/src/lib/report-definition.seed-provider.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-create.command.d.ts +17 -0
- package/server/src/lib/report-generation/report-generation-create.command.js +177 -0
- package/server/src/lib/report-generation/report-generation-create.command.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-enqueue.service.d.ts +21 -0
- package/server/src/lib/report-generation/report-generation-enqueue.service.js +58 -0
- package/server/src/lib/report-generation/report-generation-enqueue.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-execute.command.d.ts +10 -0
- package/server/src/lib/report-generation/report-generation-execute.command.js +49 -0
- package/server/src/lib/report-generation/report-generation-execute.command.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-execute.service.d.ts +23 -0
- package/server/src/lib/report-generation/report-generation-execute.service.js +226 -0
- package/server/src/lib/report-generation/report-generation-execute.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-job-presentation.util.d.ts +8 -0
- package/server/src/lib/report-generation/report-generation-job-presentation.util.js +43 -0
- package/server/src/lib/report-generation/report-generation-job-presentation.util.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-notify.service.d.ts +23 -0
- package/server/src/lib/report-generation/report-generation-notify.service.js +159 -0
- package/server/src/lib/report-generation/report-generation-notify.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-policy.util.d.ts +39 -0
- package/server/src/lib/report-generation/report-generation-policy.util.js +95 -0
- package/server/src/lib/report-generation/report-generation-policy.util.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-progress.util.d.ts +14 -0
- package/server/src/lib/report-generation/report-generation-progress.util.js +51 -0
- package/server/src/lib/report-generation/report-generation-progress.util.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-release-inline-watch.command.d.ts +10 -0
- package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js +55 -0
- package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-runtime.handlers.d.ts +27 -0
- package/server/src/lib/report-generation/report-generation-runtime.handlers.js +136 -0
- package/server/src/lib/report-generation/report-generation-runtime.handlers.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-settings.service.d.ts +12 -0
- package/server/src/lib/report-generation/report-generation-settings.service.js +49 -0
- package/server/src/lib/report-generation/report-generation-settings.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation.constants.d.ts +16 -0
- package/server/src/lib/report-generation/report-generation.constants.js +24 -0
- package/server/src/lib/report-generation/report-generation.constants.js.map +1 -0
- package/server/src/lib/report-generation/report-generation.store.d.ts +25 -0
- package/server/src/lib/report-generation/report-generation.store.js +145 -0
- package/server/src/lib/report-generation/report-generation.store.js.map +1 -0
- package/server/src/lib/report-generation/report-generation.util.d.ts +8 -0
- package/server/src/lib/report-generation/report-generation.util.js +131 -0
- package/server/src/lib/report-generation/report-generation.util.js.map +1 -0
- package/server/src/lib/report-management-runtime.handlers.d.ts +32 -0
- package/server/src/lib/report-management-runtime.handlers.js +78 -0
- package/server/src/lib/report-management-runtime.handlers.js.map +1 -0
- package/server/src/lib/report-management-server.module.js +55 -9
- package/server/src/lib/report-management-server.module.js.map +1 -1
- package/server/src/lib/report-management.controller.d.ts +1 -4
- package/server/src/lib/report-management.controller.js +2 -16
- package/server/src/lib/report-management.controller.js.map +1 -1
- package/server/src/lib/seed/index.d.ts +0 -19
- package/server/src/lib/seed/index.js +0 -21
- package/server/src/lib/seed/index.js.map +0 -1
- package/server/src/lib/seed/report-management-seed.provider.d.ts +0 -4
- package/server/src/lib/seed/report-management-seed.provider.js +0 -18
- package/server/src/lib/seed/report-management-seed.provider.js.map +0 -1
- package/server/src/lib/seed/report-management-seed.tokens.d.ts +0 -1
- package/server/src/lib/seed/report-management-seed.tokens.js +0 -7
- package/server/src/lib/seed/report-management-seed.tokens.js.map +0 -1
- package/server/src/lib/seed/report-management.seed-catalog.d.ts +0 -2
- package/server/src/lib/seed/report-management.seed-catalog.js +0 -10
- package/server/src/lib/seed/report-management.seed-catalog.js.map +0 -1
- package/server/src/lib/seed/samples/employee-report.mock.d.ts +0 -9
- package/server/src/lib/seed/samples/employee-report.mock.js +0 -322
- package/server/src/lib/seed/samples/employee-report.mock.js.map +0 -1
- package/server/src/lib/seed/samples/index.d.ts +0 -2
- package/server/src/lib/seed/samples/index.js +0 -6
- package/server/src/lib/seed/samples/index.js.map +0 -1
- package/server/src/lib/seed/samples/location-report.mock.d.ts +0 -9
- package/server/src/lib/seed/samples/location-report.mock.js +0 -339
- package/server/src/lib/seed/samples/location-report.mock.js.map +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const AXMReportManagementCommandKeys: {
|
|
2
|
+
readonly ReportGeneration: {
|
|
3
|
+
readonly Create: "ReportManagement:ReportGeneration:Create";
|
|
4
|
+
readonly Execute: "ReportManagement:ReportGeneration:Execute";
|
|
5
|
+
readonly ReleaseInlineWatch: "ReportManagement:ReportGeneration:ReleaseInlineWatch";
|
|
6
|
+
};
|
|
7
|
+
readonly Export: {
|
|
8
|
+
readonly Run: "ReportManagement:Export:Run";
|
|
9
|
+
readonly ListTemplates: "ReportManagement:Export:ListTemplates";
|
|
10
|
+
readonly Clone: "ReportManagement:Export:Clone";
|
|
11
|
+
readonly Save: "ReportManagement:Export:Save";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Report management command keys ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AXMReportManagementCommandKeys = void 0;
|
|
5
|
+
exports.AXMReportManagementCommandKeys = {
|
|
6
|
+
ReportGeneration: {
|
|
7
|
+
Create: 'ReportManagement:ReportGeneration:Create',
|
|
8
|
+
Execute: 'ReportManagement:ReportGeneration:Execute',
|
|
9
|
+
ReleaseInlineWatch: 'ReportManagement:ReportGeneration:ReleaseInlineWatch',
|
|
10
|
+
},
|
|
11
|
+
Export: {
|
|
12
|
+
Run: 'ReportManagement:Export:Run',
|
|
13
|
+
ListTemplates: 'ReportManagement:Export:ListTemplates',
|
|
14
|
+
Clone: 'ReportManagement:Export:Clone',
|
|
15
|
+
Save: 'ReportManagement:Export:Save',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
//# sourceMappingURL=commands.keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/commands.keys.ts"],"names":[],"mappings":";AAAA,kDAAkD;;;AAErC,QAAA,8BAA8B,GAAG;IAC5C,gBAAgB,EAAE;QAChB,MAAM,EAAE,0CAA0C;QAClD,OAAO,EAAE,2CAA2C;QACpD,kBAAkB,EAAE,sDAAsD;KAC3E;IACD,MAAM,EAAE;QACN,GAAG,EAAE,6BAA6B;QAClC,aAAa,EAAE,uCAAuC;QACtD,KAAK,EAAE,+BAA+B;QACtC,IAAI,EAAE,8BAA8B;KACrC;CACO,CAAC;AAIX,YAAY"}
|
|
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./report"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./report-category"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./report-generation-request"), exports);
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/modules/report-management/contracts/src/entities/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,4DAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/modules/report-management/contracts/src/entities/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,4DAAkC;AAClC,sEAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '../../report.types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("
|
|
4
|
+
tslib_1.__exportStar(require("../../report.types"), exports);
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC"}
|
|
@@ -2,17 +2,102 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reportEntityFactory = reportEntityFactory;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const entity_1 = require("@acorex-platform/framework-shared/entity");
|
|
6
5
|
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
6
|
+
const entity_1 = require("@acorex-platform/framework-shared/entity");
|
|
7
|
+
const permission_keys_1 = require("../../permission.keys");
|
|
7
8
|
const root_config_1 = require("../../root-config");
|
|
8
9
|
//#region ---- Report definition entity factory ----
|
|
10
|
+
const maintainReports = [permission_keys_1.AXPInsightsReportingPermissionKeys.MaintainReports];
|
|
9
11
|
function reportEntityFactory() {
|
|
10
12
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
|
+
const basicFields = [
|
|
14
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
15
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
16
|
+
];
|
|
11
17
|
return {
|
|
12
18
|
module: root_config_1.RootConfig.module.name,
|
|
13
19
|
name: root_config_1.RootConfig.entities.report.name,
|
|
14
20
|
title: root_config_1.RootConfig.entities.report.title,
|
|
15
21
|
icon: root_config_1.RootConfig.entities.report.icon,
|
|
22
|
+
searchTags: [
|
|
23
|
+
'report',
|
|
24
|
+
'report-definition',
|
|
25
|
+
'business-report',
|
|
26
|
+
'report-template',
|
|
27
|
+
'analytics',
|
|
28
|
+
'dashboard-report',
|
|
29
|
+
'report-layout',
|
|
30
|
+
'data-report',
|
|
31
|
+
'گزارش',
|
|
32
|
+
'گزارشها',
|
|
33
|
+
'قالب گزارش',
|
|
34
|
+
'مدیریت گزارش',
|
|
35
|
+
],
|
|
36
|
+
plugins: [{ name: 'category', options: { readonly: true } }],
|
|
37
|
+
pages: [
|
|
38
|
+
{
|
|
39
|
+
componentKey: 'report-definition-filters',
|
|
40
|
+
field: 'filters',
|
|
41
|
+
title: '@report-management:reports.entities.report.filter-editor.page-title',
|
|
42
|
+
description: '@report-management:reports.entities.report.filter-editor.page-description',
|
|
43
|
+
icon: 'fa-light fa-filter',
|
|
44
|
+
layout: { order: 5, position: 'after' },
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
componentKey: 'report-definition-layout-table',
|
|
48
|
+
field: 'table',
|
|
49
|
+
title: '@report-management:report-viewer.layouts.table.title',
|
|
50
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
51
|
+
icon: 'fa-light fa-table',
|
|
52
|
+
options: { layoutKey: 'table' },
|
|
53
|
+
layout: { order: 10, position: 'after' },
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
componentKey: 'report-definition-layout-bar',
|
|
57
|
+
field: 'bar',
|
|
58
|
+
title: '@report-management:report-viewer.layouts.bar-chart.title',
|
|
59
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
60
|
+
icon: 'fa-light fa-chart-bar',
|
|
61
|
+
options: { layoutKey: 'bar' },
|
|
62
|
+
layout: { order: 20, position: 'after' },
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
componentKey: 'report-definition-layout-line',
|
|
66
|
+
field: 'line',
|
|
67
|
+
title: '@report-management:report-viewer.layouts.line-chart.title',
|
|
68
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
69
|
+
icon: 'fa-light fa-chart-line',
|
|
70
|
+
options: { layoutKey: 'line' },
|
|
71
|
+
layout: { order: 30, position: 'after' },
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
componentKey: 'report-definition-layout-doughnut',
|
|
75
|
+
field: 'doughnut',
|
|
76
|
+
title: '@report-management:report-viewer.layouts.doughnut-chart.title',
|
|
77
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
78
|
+
icon: 'fa-light fa-chart-pie',
|
|
79
|
+
options: { layoutKey: 'doughnut' },
|
|
80
|
+
layout: { order: 40, position: 'after' },
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
componentKey: 'report-definition-layout-pie',
|
|
84
|
+
field: 'pie',
|
|
85
|
+
title: '@report-management:report-viewer.layouts.pie-chart.title',
|
|
86
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
87
|
+
icon: 'fa-light fa-chart-pie',
|
|
88
|
+
options: { layoutKey: 'pie' },
|
|
89
|
+
layout: { order: 50, position: 'after' },
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
componentKey: 'report-definition-layout-pdf',
|
|
93
|
+
field: 'pdf',
|
|
94
|
+
title: '@report-management:report-viewer.layouts.pdf.title',
|
|
95
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
96
|
+
icon: 'fa-light fa-file-pdf',
|
|
97
|
+
options: { layoutKey: 'pdf' },
|
|
98
|
+
layout: { order: 60, position: 'after' },
|
|
99
|
+
},
|
|
100
|
+
],
|
|
16
101
|
formats: {
|
|
17
102
|
individual: root_config_1.RootConfig.entities.report.title,
|
|
18
103
|
plural: root_config_1.RootConfig.entities.report.titlePlural,
|
|
@@ -27,51 +112,134 @@ function reportEntityFactory() {
|
|
|
27
112
|
name: 'title',
|
|
28
113
|
title: '@general:terms.common.title',
|
|
29
114
|
groupId: 'basic-info',
|
|
30
|
-
|
|
115
|
+
options: {
|
|
116
|
+
sort: { enabled: true },
|
|
117
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
118
|
+
},
|
|
119
|
+
schema: {
|
|
120
|
+
dataType: 'string',
|
|
121
|
+
interface: {
|
|
122
|
+
type: core_1.AXPWidgetsList.Editors.TextBox,
|
|
123
|
+
options: {
|
|
124
|
+
multiLanguage: true,
|
|
125
|
+
hasClearButton: true,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
31
129
|
validations: [{ rule: 'required' }],
|
|
32
130
|
},
|
|
33
131
|
{
|
|
34
132
|
name: 'description',
|
|
35
133
|
title: '@general:terms.common.description',
|
|
36
134
|
groupId: 'basic-info',
|
|
37
|
-
|
|
135
|
+
options: {
|
|
136
|
+
sort: { enabled: true },
|
|
137
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
138
|
+
},
|
|
139
|
+
schema: {
|
|
140
|
+
dataType: 'string',
|
|
141
|
+
interface: {
|
|
142
|
+
type: core_1.AXPWidgetsList.Editors.LargeTextBox,
|
|
143
|
+
options: {
|
|
144
|
+
multiLanguage: true,
|
|
145
|
+
rows: 3,
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
38
149
|
},
|
|
39
150
|
{
|
|
40
|
-
name: '
|
|
41
|
-
title: '@
|
|
151
|
+
name: 'parameterGroups',
|
|
152
|
+
title: '@report-management:reports.entities.report.fields.parameter-groups',
|
|
42
153
|
groupId: 'basic-info',
|
|
43
|
-
schema: { dataType: 'object', interface: { type: core_1.
|
|
154
|
+
schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: core_1.AXPWidgetsList.Editors.TextBox } },
|
|
44
155
|
},
|
|
45
156
|
{
|
|
46
|
-
name: '
|
|
157
|
+
name: 'filterQuery',
|
|
47
158
|
title: '@report-management:reports.entities.report.fields.parameter-groups',
|
|
48
159
|
groupId: 'basic-info',
|
|
49
|
-
schema: { dataType: 'object', interface: { type: core_1.
|
|
160
|
+
schema: { dataType: 'object', visible: false, interface: { type: core_1.AXPWidgetsList.Editors.TextBox } },
|
|
50
161
|
},
|
|
51
162
|
{
|
|
52
163
|
name: 'layouts',
|
|
53
164
|
title: '@report-management:reports.entities.report.fields.layouts',
|
|
54
165
|
groupId: 'basic-info',
|
|
55
|
-
schema: { dataType: 'object', interface: { type: core_1.
|
|
166
|
+
schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: core_1.AXPWidgetsList.Editors.TextBox } },
|
|
56
167
|
},
|
|
57
168
|
{
|
|
58
169
|
name: 'defaultLayoutId',
|
|
59
170
|
title: '@report-management:reports.entities.report.fields.default-layout-id',
|
|
60
171
|
groupId: 'basic-info',
|
|
61
|
-
schema: { dataType: 'string', interface: { type: core_1.
|
|
172
|
+
schema: { dataType: 'string', visible: false, defaultValue: '', interface: { type: core_1.AXPWidgetsList.Editors.TextBox } },
|
|
62
173
|
},
|
|
63
174
|
{
|
|
64
175
|
name: 'permissions',
|
|
65
176
|
title: '@general:terms.security.permissions',
|
|
66
177
|
groupId: 'basic-info',
|
|
67
|
-
schema: { dataType: 'object', interface: { type: core_1.
|
|
178
|
+
schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: core_1.AXPWidgetsList.Editors.TextBox } },
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'entities',
|
|
182
|
+
title: '@report-management:reports.entities.report.fields.entities',
|
|
183
|
+
groupId: 'basic-info',
|
|
184
|
+
schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: core_1.AXPWidgetsList.Editors.TextBox } },
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'generation',
|
|
188
|
+
title: '@report-management:reports.entities.report.fields.generation',
|
|
189
|
+
groupId: 'basic-info',
|
|
190
|
+
schema: { dataType: 'object', visible: false, interface: { type: core_1.AXPWidgetsList.Editors.TextBox } },
|
|
68
191
|
},
|
|
69
192
|
],
|
|
70
193
|
columns: [{ name: 'title' }, { name: 'description' }],
|
|
71
194
|
interfaces: {
|
|
72
195
|
master: {
|
|
196
|
+
create: {
|
|
197
|
+
sections: [{ id: 'basic-info' }],
|
|
198
|
+
properties: basicFields,
|
|
199
|
+
},
|
|
200
|
+
update: {
|
|
201
|
+
sections: [{ id: 'basic-info' }],
|
|
202
|
+
properties: basicFields,
|
|
203
|
+
},
|
|
204
|
+
single: {
|
|
205
|
+
title: '{{ title }}',
|
|
206
|
+
sections: [{ id: 'basic-info' }],
|
|
207
|
+
properties: basicFields,
|
|
208
|
+
actions: [
|
|
209
|
+
{
|
|
210
|
+
title: '@report-management:reports.entities.report.actions.run',
|
|
211
|
+
icon: 'fa-light fa-play',
|
|
212
|
+
command: {
|
|
213
|
+
name: 'ReportManagement.Report:OpenViewer',
|
|
214
|
+
options: {
|
|
215
|
+
reportId: '{{ context.eval("id") }}',
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
priority: 'primary',
|
|
219
|
+
type: 'view',
|
|
220
|
+
scope: entity_1.AXPEntityCommandScope.Individual,
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
73
224
|
list: {
|
|
74
|
-
actions: [
|
|
225
|
+
actions: [
|
|
226
|
+
Object.assign(Object.assign({}, (0, entity_1.entityMasterCreateAction)()), { permissions: maintainReports }),
|
|
227
|
+
{
|
|
228
|
+
title: '@report-management:reports.entities.report.actions.run',
|
|
229
|
+
icon: 'fa-light fa-play',
|
|
230
|
+
command: {
|
|
231
|
+
name: 'ReportManagement.Report:OpenViewer',
|
|
232
|
+
options: {
|
|
233
|
+
reportId: '{{ context.eval("id") }}',
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
priority: 'primary',
|
|
237
|
+
type: 'view',
|
|
238
|
+
scope: entity_1.AXPEntityCommandScope.Individual,
|
|
239
|
+
default: true,
|
|
240
|
+
},
|
|
241
|
+
Object.assign(Object.assign({}, (0, entity_1.entityMasterViewAction)()), { icon: 'fa-light fa-eye', priority: 'secondary', default: false, permissions: maintainReports }),
|
|
242
|
+
],
|
|
75
243
|
views: [(0, entity_1.createAllQueryView)({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
76
244
|
},
|
|
77
245
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report/report.entity.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"report.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report/report.entity.ts"],"names":[],"mappings":";;AAeA,kDAsPC;;AArQD,iEAAwE;AACxE,qEAMkD;AAClD,2DAA2E;AAC3E,mDAA+C;AAE/C,oDAAoD;AAEpD,MAAM,eAAe,GAAG,CAAC,oDAAkC,CAAC,eAAe,CAAC,CAAC;AAE7E,SAAsB,mBAAmB;;QACvC,MAAM,WAAW,GAAG;YAClB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;YAC3E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,K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,OAAO,EAAE;4BACP;gCACE,KAAK,EAAE,wDAAwD;gCAC/D,IAAI,EAAE,kBAAkB;gCACxB,OAAO,EAAE;oCACP,IAAI,EAAE,oCAAoC;oCAC1C,OAAO,EAAE;wCACP,QAAQ,EAAE,0BAA0B;qCACrC;iCACF;gCACD,QAAQ,EAAE,SAAS;gCACnB,IAAI,EAAE,MAAM;gCACZ,KAAK,EAAE,8BAAqB,CAAC,UAAU;6BACxC;yBACF;qBACF;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE;4DAEF,IAAA,iCAAwB,GAAE,KAC7B,WAAW,EAAE,eAAe;4BAE9B;gCACE,KAAK,EAAE,wDAAwD;gCAC/D,IAAI,EAAE,kBAAkB;gCACxB,OAAO,EAAE;oCACP,IAAI,EAAE,oCAAoC;oCAC1C,OAAO,EAAE;wCACP,QAAQ,EAAE,0BAA0B;qCACrC;iCACF;gCACD,QAAQ,EAAE,SAAS;gCACnB,IAAI,EAAE,MAAM;gCACZ,KAAK,EAAE,8BAAqB,CAAC,UAAU;gCACvC,OAAO,EAAE,IAAI;6BACd;4DAEI,IAAA,+BAAsB,GAAE,KAC3B,IAAI,EAAE,iBAAiB,EACvB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,KAAK,EACd,WAAW,EAAE,eAAe;yBAE/B;wBACD,KAAK,EAAE,CAAC,IAAA,2BAAkB,EAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;qBACxE;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CAAA;AAED,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report-category/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report-category/index.ts"],"names":[],"mappings":""}
|
|
@@ -10,10 +10,23 @@ function reportCategoryEntityFactory() {
|
|
|
10
10
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
return {
|
|
12
12
|
module: root_config_1.RootConfig.module.name,
|
|
13
|
-
name:
|
|
13
|
+
name: root_config_1.RootConfig.entities.category.name,
|
|
14
14
|
parentKey: 'parentId',
|
|
15
15
|
title: root_config_1.RootConfig.entities.category.title,
|
|
16
16
|
icon: root_config_1.RootConfig.entities.category.icon,
|
|
17
|
+
searchTags: [
|
|
18
|
+
'report-category',
|
|
19
|
+
'report-folder',
|
|
20
|
+
'report-group',
|
|
21
|
+
'category-tree',
|
|
22
|
+
'report-organization',
|
|
23
|
+
'report-hierarchy',
|
|
24
|
+
'report-classification',
|
|
25
|
+
'دسته گزارش',
|
|
26
|
+
'دستههای گزارش',
|
|
27
|
+
'دسته',
|
|
28
|
+
'گروه گزارش',
|
|
29
|
+
],
|
|
17
30
|
formats: {
|
|
18
31
|
individual: root_config_1.RootConfig.entities.category.title,
|
|
19
32
|
plural: root_config_1.RootConfig.entities.category.titlePlural,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-category.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report-category/report-category.entity.ts"],"names":[],"mappings":";;AAMA,
|
|
1
|
+
{"version":3,"file":"report-category.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report-category/report-category.entity.ts"],"names":[],"mappings":";;AAMA,kEAwEC;;AA9ED,qEAAgH;AAChH,iEAAyE;AACzE,mDAA+C;AAE/C,kDAAkD;AAElD,SAAsB,2BAA2B;;QAC/C,OAAO;YACL,MAAM,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;YAC9B,IAAI,EAAE,wBAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI;YACvC,SA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oBACrB,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,wBAAiB,CAAC,IAAI,EAAE,EAAE;iBAC5E;gBACD;oBACE,IAAI,EAAE,eAAe;oBACrB,KAAK,EAAE,sCAAsC;oBAC7C,OAAO,EAAE,YAAY;oBACrB,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,wBAAiB,CAAC,MAAM,EAAE,EAAE;iBAC9E;gBACD;oBACE,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,mCAAmC;oBAC1C,OAAO,EAAE,YAAY;oBACrB,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,wBAAiB,CAAC,MAAM,EAAE,EAAE;iBAC9E;aACF;YACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;YACrD,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,GAAG,IAAA,gCAAuB,GAAE,CAAC;wBACvC,KAAK,EAAE,CAAC,IAAA,2BAAkB,EAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;qBACxE;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CAAA;AAED,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../report-generation.types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report-generation-request/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C"}
|
|
@@ -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: 'reference', 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: 'reference', 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
|