@acorex-platform/module-report-management-server 0.0.18 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/contracts/src/commands.keys.d.ts +13 -0
  2. package/contracts/src/commands.keys.js +19 -0
  3. package/contracts/src/commands.keys.js.map +1 -0
  4. package/contracts/src/entities/index.d.ts +1 -0
  5. package/contracts/src/entities/index.js +1 -0
  6. package/contracts/src/entities/index.js.map +1 -1
  7. package/contracts/src/entities/report/index.d.ts +1 -1
  8. package/contracts/src/entities/report/index.js +1 -1
  9. package/contracts/src/entities/report/index.js.map +1 -1
  10. package/contracts/src/entities/report/report.entity.js +180 -12
  11. package/contracts/src/entities/report/report.entity.js.map +1 -1
  12. package/contracts/src/entities/report-category/index.d.ts +1 -1
  13. package/contracts/src/entities/report-category/index.js +0 -2
  14. package/contracts/src/entities/report-category/index.js.map +1 -1
  15. package/contracts/src/entities/report-category/report-category.entity.js +14 -1
  16. package/contracts/src/entities/report-category/report-category.entity.js.map +1 -1
  17. package/contracts/src/entities/report-generation-request/index.d.ts +1 -0
  18. package/contracts/src/entities/report-generation-request/index.js +5 -0
  19. package/contracts/src/entities/report-generation-request/index.js.map +1 -0
  20. package/contracts/src/entities/report-generation-request/report-generation-request.entity.d.ts +2 -0
  21. package/contracts/src/entities/report-generation-request/report-generation-request.entity.js +208 -0
  22. package/contracts/src/entities/report-generation-request/report-generation-request.entity.js.map +1 -0
  23. package/contracts/src/entity-catalog.d.ts +7 -0
  24. package/contracts/src/entity-catalog.js +22 -0
  25. package/contracts/src/entity-catalog.js.map +1 -0
  26. package/contracts/src/entity-entry.report-category.d.ts +1 -0
  27. package/contracts/src/entity-entry.report-category.js +6 -0
  28. package/contracts/src/entity-entry.report-category.js.map +1 -0
  29. package/contracts/src/entity-entry.report-generation-request.d.ts +1 -0
  30. package/contracts/src/entity-entry.report-generation-request.js +6 -0
  31. package/contracts/src/entity-entry.report-generation-request.js.map +1 -0
  32. package/contracts/src/entity-entry.report.d.ts +1 -0
  33. package/contracts/src/entity-entry.report.js +6 -0
  34. package/contracts/src/entity-entry.report.js.map +1 -0
  35. package/contracts/src/index.d.ts +18 -1
  36. package/contracts/src/index.js +18 -1
  37. package/contracts/src/index.js.map +1 -1
  38. package/contracts/src/manifest.d.ts +6 -0
  39. package/contracts/src/manifest.js +24 -0
  40. package/contracts/src/manifest.js.map +1 -0
  41. package/contracts/src/permission.keys.d.ts +30 -14
  42. package/contracts/src/permission.keys.js +28 -12
  43. package/contracts/src/permission.keys.js.map +1 -1
  44. package/contracts/src/query-cache-targets.d.ts +5 -0
  45. package/contracts/src/query-cache-targets.js +113 -0
  46. package/contracts/src/query-cache-targets.js.map +1 -0
  47. package/contracts/src/report-filter-form.util.d.ts +20 -0
  48. package/contracts/src/report-filter-form.util.js +121 -0
  49. package/contracts/src/report-filter-form.util.js.map +1 -0
  50. package/contracts/src/report-generation.types.d.ts +97 -0
  51. package/contracts/src/report-generation.types.js +14 -0
  52. package/contracts/src/report-generation.types.js.map +1 -0
  53. package/contracts/src/report-interchange.projection.d.ts +22 -0
  54. package/contracts/src/report-interchange.projection.js +171 -0
  55. package/contracts/src/report-interchange.projection.js.map +1 -0
  56. package/contracts/src/report-interchange.snapshot.d.ts +12 -0
  57. package/contracts/src/report-interchange.snapshot.js +34 -0
  58. package/contracts/src/report-interchange.snapshot.js.map +1 -0
  59. package/contracts/src/report-interchange.types.d.ts +38 -0
  60. package/contracts/src/report-interchange.types.js +4 -0
  61. package/contracts/src/report-interchange.types.js.map +1 -0
  62. package/contracts/src/report-layout-field-schema.d.ts +64 -0
  63. package/contracts/src/report-layout-field-schema.js +294 -0
  64. package/contracts/src/report-layout-field-schema.js.map +1 -0
  65. package/contracts/src/report-layout-form.util.d.ts +67 -0
  66. package/contracts/src/report-layout-form.util.js +578 -0
  67. package/contracts/src/report-layout-form.util.js.map +1 -0
  68. package/contracts/src/report-layout-json-sections.d.ts +15 -0
  69. package/contracts/src/report-layout-json-sections.js +38 -0
  70. package/contracts/src/report-layout-json-sections.js.map +1 -0
  71. package/contracts/src/report-layout-sections.mapper.d.ts +37 -0
  72. package/contracts/src/report-layout-sections.mapper.js +306 -0
  73. package/contracts/src/report-layout-sections.mapper.js.map +1 -0
  74. package/contracts/src/report-layout-starter.d.ts +15 -0
  75. package/contracts/src/report-layout-starter.js +93 -0
  76. package/contracts/src/report-layout-starter.js.map +1 -0
  77. package/contracts/src/report-layout.presets.d.ts +17 -0
  78. package/contracts/src/report-layout.presets.js +72 -0
  79. package/contracts/src/report-layout.presets.js.map +1 -0
  80. package/contracts/src/report-parameter-binding.util.d.ts +8 -0
  81. package/contracts/src/report-parameter-binding.util.js +29 -0
  82. package/contracts/src/report-parameter-binding.util.js.map +1 -0
  83. package/contracts/src/report.types.d.ts +125 -107
  84. package/contracts/src/report.types.js.map +1 -1
  85. package/contracts/src/root-config.d.ts +9 -2
  86. package/contracts/src/root-config.js +9 -2
  87. package/contracts/src/root-config.js.map +1 -1
  88. package/contracts/src/runtime.keys.d.ts +14 -0
  89. package/contracts/src/runtime.keys.js +20 -0
  90. package/contracts/src/runtime.keys.js.map +1 -0
  91. package/contracts/src/settings.keys.d.ts +11 -0
  92. package/contracts/src/settings.keys.js +17 -0
  93. package/contracts/src/settings.keys.js.map +1 -0
  94. package/package.json +9 -7
  95. package/server/src/index.d.ts +4 -4
  96. package/server/src/index.js +9 -8
  97. package/server/src/index.js.map +1 -1
  98. package/server/src/lib/entities/index.d.ts +1 -0
  99. package/server/src/lib/entities/index.js +5 -0
  100. package/server/src/lib/entities/index.js.map +1 -0
  101. package/server/src/lib/entities/report-management.entity-catalog.d.ts +1 -0
  102. package/server/src/lib/entities/report-management.entity-catalog.js +12 -0
  103. package/server/src/lib/entities/report-management.entity-catalog.js.map +1 -0
  104. package/server/src/lib/interchange/report-interchange-definition.service.d.ts +18 -0
  105. package/server/src/lib/interchange/report-interchange-definition.service.js +94 -0
  106. package/server/src/lib/interchange/report-interchange-definition.service.js.map +1 -0
  107. package/server/src/lib/interchange/report-interchange-export-data-source.d.ts +16 -0
  108. package/server/src/lib/interchange/report-interchange-export-data-source.js +72 -0
  109. package/server/src/lib/interchange/report-interchange-export-data-source.js.map +1 -0
  110. package/server/src/lib/interchange/report-interchange-export-query.util.d.ts +10 -0
  111. package/server/src/lib/interchange/report-interchange-export-query.util.js +22 -0
  112. package/server/src/lib/interchange/report-interchange-export-query.util.js.map +1 -0
  113. package/server/src/lib/interchange/report-interchange-export.command.d.ts +31 -0
  114. package/server/src/lib/interchange/report-interchange-export.command.js +268 -0
  115. package/server/src/lib/interchange/report-interchange-export.command.js.map +1 -0
  116. package/server/src/lib/report-browse.service.js +32 -13
  117. package/server/src/lib/report-browse.service.js.map +1 -1
  118. package/server/src/lib/report-browse.types.d.ts +27 -12
  119. package/server/src/lib/report-browse.types.js +0 -1
  120. package/server/src/lib/report-browse.types.js.map +1 -1
  121. package/server/src/lib/report-definition.seed-provider.d.ts +15 -0
  122. package/server/src/lib/report-definition.seed-provider.js +63 -0
  123. package/server/src/lib/report-definition.seed-provider.js.map +1 -0
  124. package/server/src/lib/report-generation/report-generation-create.command.d.ts +17 -0
  125. package/server/src/lib/report-generation/report-generation-create.command.js +177 -0
  126. package/server/src/lib/report-generation/report-generation-create.command.js.map +1 -0
  127. package/server/src/lib/report-generation/report-generation-enqueue.service.d.ts +21 -0
  128. package/server/src/lib/report-generation/report-generation-enqueue.service.js +58 -0
  129. package/server/src/lib/report-generation/report-generation-enqueue.service.js.map +1 -0
  130. package/server/src/lib/report-generation/report-generation-execute.command.d.ts +10 -0
  131. package/server/src/lib/report-generation/report-generation-execute.command.js +49 -0
  132. package/server/src/lib/report-generation/report-generation-execute.command.js.map +1 -0
  133. package/server/src/lib/report-generation/report-generation-execute.service.d.ts +23 -0
  134. package/server/src/lib/report-generation/report-generation-execute.service.js +226 -0
  135. package/server/src/lib/report-generation/report-generation-execute.service.js.map +1 -0
  136. package/server/src/lib/report-generation/report-generation-job-presentation.util.d.ts +8 -0
  137. package/server/src/lib/report-generation/report-generation-job-presentation.util.js +43 -0
  138. package/server/src/lib/report-generation/report-generation-job-presentation.util.js.map +1 -0
  139. package/server/src/lib/report-generation/report-generation-notify.service.d.ts +23 -0
  140. package/server/src/lib/report-generation/report-generation-notify.service.js +159 -0
  141. package/server/src/lib/report-generation/report-generation-notify.service.js.map +1 -0
  142. package/server/src/lib/report-generation/report-generation-policy.util.d.ts +39 -0
  143. package/server/src/lib/report-generation/report-generation-policy.util.js +95 -0
  144. package/server/src/lib/report-generation/report-generation-policy.util.js.map +1 -0
  145. package/server/src/lib/report-generation/report-generation-progress.util.d.ts +14 -0
  146. package/server/src/lib/report-generation/report-generation-progress.util.js +51 -0
  147. package/server/src/lib/report-generation/report-generation-progress.util.js.map +1 -0
  148. package/server/src/lib/report-generation/report-generation-release-inline-watch.command.d.ts +10 -0
  149. package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js +55 -0
  150. package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js.map +1 -0
  151. package/server/src/lib/report-generation/report-generation-runtime.handlers.d.ts +27 -0
  152. package/server/src/lib/report-generation/report-generation-runtime.handlers.js +136 -0
  153. package/server/src/lib/report-generation/report-generation-runtime.handlers.js.map +1 -0
  154. package/server/src/lib/report-generation/report-generation-settings.service.d.ts +12 -0
  155. package/server/src/lib/report-generation/report-generation-settings.service.js +49 -0
  156. package/server/src/lib/report-generation/report-generation-settings.service.js.map +1 -0
  157. package/server/src/lib/report-generation/report-generation.constants.d.ts +16 -0
  158. package/server/src/lib/report-generation/report-generation.constants.js +24 -0
  159. package/server/src/lib/report-generation/report-generation.constants.js.map +1 -0
  160. package/server/src/lib/report-generation/report-generation.store.d.ts +25 -0
  161. package/server/src/lib/report-generation/report-generation.store.js +145 -0
  162. package/server/src/lib/report-generation/report-generation.store.js.map +1 -0
  163. package/server/src/lib/report-generation/report-generation.util.d.ts +8 -0
  164. package/server/src/lib/report-generation/report-generation.util.js +131 -0
  165. package/server/src/lib/report-generation/report-generation.util.js.map +1 -0
  166. package/server/src/lib/report-management-runtime.handlers.d.ts +32 -0
  167. package/server/src/lib/report-management-runtime.handlers.js +78 -0
  168. package/server/src/lib/report-management-runtime.handlers.js.map +1 -0
  169. package/server/src/lib/report-management-server.module.js +55 -9
  170. package/server/src/lib/report-management-server.module.js.map +1 -1
  171. package/server/src/lib/report-management.controller.d.ts +1 -4
  172. package/server/src/lib/report-management.controller.js +2 -16
  173. package/server/src/lib/report-management.controller.js.map +1 -1
  174. package/server/src/lib/seed/index.d.ts +0 -19
  175. package/server/src/lib/seed/index.js +0 -21
  176. package/server/src/lib/seed/index.js.map +0 -1
  177. package/server/src/lib/seed/report-management-seed.provider.d.ts +0 -4
  178. package/server/src/lib/seed/report-management-seed.provider.js +0 -18
  179. package/server/src/lib/seed/report-management-seed.provider.js.map +0 -1
  180. package/server/src/lib/seed/report-management-seed.tokens.d.ts +0 -1
  181. package/server/src/lib/seed/report-management-seed.tokens.js +0 -7
  182. package/server/src/lib/seed/report-management-seed.tokens.js.map +0 -1
  183. package/server/src/lib/seed/report-management.seed-catalog.d.ts +0 -2
  184. package/server/src/lib/seed/report-management.seed-catalog.js +0 -10
  185. package/server/src/lib/seed/report-management.seed-catalog.js.map +0 -1
  186. package/server/src/lib/seed/samples/employee-report.mock.d.ts +0 -9
  187. package/server/src/lib/seed/samples/employee-report.mock.js +0 -322
  188. package/server/src/lib/seed/samples/employee-report.mock.js.map +0 -1
  189. package/server/src/lib/seed/samples/index.d.ts +0 -2
  190. package/server/src/lib/seed/samples/index.js +0 -6
  191. package/server/src/lib/seed/samples/index.js.map +0 -1
  192. package/server/src/lib/seed/samples/location-report.mock.d.ts +0 -9
  193. package/server/src/lib/seed/samples/location-report.mock.js +0 -339
  194. package/server/src/lib/seed/samples/location-report.mock.js.map +0 -1
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReportGenerationStore = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ const core_1 = require("@acorex-platform/framework-server/core");
7
+ const abstract_1 = require("@acorex-platform/framework-server/jql/abstract");
8
+ const report_generation_constants_1 = require("./report-generation.constants");
9
+ //#region ----- Store -----
10
+ const ACTIVE_STATUSES = ['queued', 'running'];
11
+ let ReportGenerationStore = class ReportGenerationStore {
12
+ constructor(storage) {
13
+ this.storage = storage;
14
+ }
15
+ insert(row) {
16
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
17
+ return this.storage.insertOne(report_generation_constants_1.REPORT_GENERATION_REQUEST_ENTITY, row);
18
+ });
19
+ }
20
+ getById(id) {
21
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
+ var _a;
23
+ const row = (yield this.storage.getOne(report_generation_constants_1.REPORT_GENERATION_REQUEST_ENTITY, id));
24
+ if (row === null || row === void 0 ? void 0 : row.id) {
25
+ return row;
26
+ }
27
+ const page = yield this.storage.queryAsEngine(report_generation_constants_1.REPORT_GENERATION_REQUEST_ENTITY, (0, abstract_1.bypassAllEntityVisibilityFilters)({
28
+ skip: 0,
29
+ take: 1,
30
+ filter: {
31
+ logic: 'and',
32
+ filters: [{ field: 'id', operator: { type: 'equal' }, value: id }],
33
+ },
34
+ }));
35
+ const item = ((_a = page.items) !== null && _a !== void 0 ? _a : [])[0];
36
+ return (item === null || item === void 0 ? void 0 : item.id) ? item : null;
37
+ });
38
+ }
39
+ patchAsEngine(id, patch) {
40
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
41
+ yield this.storage.updateOneAsEngine(report_generation_constants_1.REPORT_GENERATION_REQUEST_ENTITY, id, patch);
42
+ });
43
+ }
44
+ listMine(input) {
45
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
46
+ var _a, _b, _c, _d;
47
+ const result = yield this.storage.query(report_generation_constants_1.REPORT_GENERATION_REQUEST_ENTITY, {
48
+ skip: (_a = input.skip) !== null && _a !== void 0 ? _a : 0,
49
+ take: (_b = input.take) !== null && _b !== void 0 ? _b : 50,
50
+ sort: [{ field: 'startedAt', dir: 'desc' }],
51
+ filter: {
52
+ logic: 'and',
53
+ filters: [{ field: 'requestedBy', operator: { type: 'equal' }, value: input.userId }],
54
+ },
55
+ });
56
+ return {
57
+ items: ((_c = result.items) !== null && _c !== void 0 ? _c : []),
58
+ total: (_d = result.totalCount) !== null && _d !== void 0 ? _d : 0,
59
+ };
60
+ });
61
+ }
62
+ countActiveManualByUser(userId) {
63
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
64
+ var _a;
65
+ const result = yield this.storage.queryAsEngine(report_generation_constants_1.REPORT_GENERATION_REQUEST_ENTITY, (0, abstract_1.bypassAllEntityVisibilityFilters)({
66
+ skip: 0,
67
+ take: 0,
68
+ filter: {
69
+ logic: 'and',
70
+ filters: [
71
+ { field: 'requestedBy', operator: { type: 'equal' }, value: userId },
72
+ { field: 'trigger', operator: { type: 'equal' }, value: 'manual' },
73
+ { field: 'status', operator: { type: 'in' }, value: [...ACTIVE_STATUSES] },
74
+ ],
75
+ },
76
+ }));
77
+ return (_a = result.totalCount) !== null && _a !== void 0 ? _a : 0;
78
+ });
79
+ }
80
+ findActiveByScheduleId(scheduleId) {
81
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
82
+ var _a;
83
+ const page = yield this.storage.queryAsEngine(report_generation_constants_1.REPORT_GENERATION_REQUEST_ENTITY, (0, abstract_1.bypassAllEntityVisibilityFilters)({
84
+ skip: 0,
85
+ take: 1,
86
+ sort: [{ field: 'startedAt', dir: 'desc' }],
87
+ filter: {
88
+ logic: 'and',
89
+ filters: [
90
+ { field: 'scheduleId', operator: { type: 'equal' }, value: scheduleId },
91
+ { field: 'status', operator: { type: 'in' }, value: [...ACTIVE_STATUSES] },
92
+ ],
93
+ },
94
+ }));
95
+ const item = ((_a = page.items) !== null && _a !== void 0 ? _a : [])[0];
96
+ return (item === null || item === void 0 ? void 0 : item.id) ? item : null;
97
+ });
98
+ }
99
+ listActiveByUserAndReport(userId, reportId) {
100
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
101
+ var _a;
102
+ const page = yield this.storage.queryAsEngine(report_generation_constants_1.REPORT_GENERATION_REQUEST_ENTITY, (0, abstract_1.bypassAllEntityVisibilityFilters)({
103
+ skip: 0,
104
+ take: 20,
105
+ sort: [{ field: 'startedAt', dir: 'desc' }],
106
+ filter: {
107
+ logic: 'and',
108
+ filters: [
109
+ { field: 'requestedBy', operator: { type: 'equal' }, value: userId },
110
+ { field: 'reportId', operator: { type: 'equal' }, value: reportId },
111
+ { field: 'status', operator: { type: 'in' }, value: [...ACTIVE_STATUSES] },
112
+ ],
113
+ },
114
+ }));
115
+ return ((_a = page.items) !== null && _a !== void 0 ? _a : []);
116
+ });
117
+ }
118
+ listCompletedSinceByUserAndReport(input) {
119
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
120
+ var _a;
121
+ const page = yield this.storage.queryAsEngine(report_generation_constants_1.REPORT_GENERATION_REQUEST_ENTITY, (0, abstract_1.bypassAllEntityVisibilityFilters)({
122
+ skip: 0,
123
+ take: 20,
124
+ sort: [{ field: 'completedAt', dir: 'desc' }],
125
+ filter: {
126
+ logic: 'and',
127
+ filters: [
128
+ { field: 'requestedBy', operator: { type: 'equal' }, value: input.userId },
129
+ { field: 'reportId', operator: { type: 'equal' }, value: input.reportId },
130
+ { field: 'status', operator: { type: 'equal' }, value: 'completed' },
131
+ { field: 'completedAt', operator: { type: 'gte' }, value: input.sinceIso },
132
+ ],
133
+ },
134
+ }));
135
+ return ((_a = page.items) !== null && _a !== void 0 ? _a : []);
136
+ });
137
+ }
138
+ };
139
+ exports.ReportGenerationStore = ReportGenerationStore;
140
+ exports.ReportGenerationStore = ReportGenerationStore = tslib_1.__decorate([
141
+ (0, common_1.Injectable)(),
142
+ tslib_1.__metadata("design:paramtypes", [core_1.EntityStorageMiddlewareService])
143
+ ], ReportGenerationStore);
144
+ //#endregion
145
+ //# sourceMappingURL=report-generation.store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-generation.store.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/server/src/lib/report-generation/report-generation.store.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,iEAAwF;AACxF,6EAAkG;AAElG,+EAAiF;AAEjF,2BAA2B;AAE3B,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAU,CAAC;AAGhD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAA6B,OAAuC;QAAvC,YAAO,GAAP,OAAO,CAAgC;IAAG,CAAC;IAElE,MAAM,CAAC,GAA+B;;YAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,8DAAgC,EAAE,GAAG,CAAC,CAAC;QACvE,CAAC;KAAA;IAEK,OAAO,CAAC,EAAU;;;YACtB,MAAM,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,8DAAgC,EAAE,EAAE,CAAC,CAEpE,CAAC;YACT,IAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,EAAE,EAAE,CAAC;gBACZ,OAAO,GAAG,CAAC;YACb,CAAC;YAED,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,CAC3C,8DAAgC,EAChC,IAAA,2CAAgC,EAAC;gBAC/B,IAAI,EAAE,CAAC;gBACP,IAAI,EAAE,CAAC;gBACP,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;iBACnE;aACF,CAAC,CACH,CAAC;YACF,MAAM,IAAI,GAAG,CAAC,MAAA,IAAI,CAAC,KAAK,mCAAI,EAAE,CAAC,CAAC,CAAC,CAA2C,CAAC;YAC7E,OAAO,CAAA,IAAI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EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;wBAC1E,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;wBACzE,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;wBACpE,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;qBAC3E;iBACF;aACF,CAAC,CACH,CAAC;YACF,OAAO,CAAC,MAAA,IAAI,CAAC,KAAK,mCAAI,EAAE,CAAiC,CAAC;QAC5D,CAAC;KAAA;CACF,CAAA;AAzIY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;6CAE2B,qCAA8B;GADzD,qBAAqB,CAyIjC;AAED,YAAY"}
@@ -0,0 +1,8 @@
1
+ import type { AXPFilterClause } from '@acorex-platform/framework-shared/core';
2
+ import type { AXPReportGenerationOptions } from '@acorex-platform/module-report-management-client/contracts';
3
+ export declare function resolveGenerationOptions(generation: AXPReportGenerationOptions | undefined): Required<Pick<AXPReportGenerationOptions, 'mode' | 'formats' | 'retentionDays' | 'freezeLayouts' | 'pinDefinition'>> & AXPReportGenerationOptions;
4
+ export declare function isEmptyFilterValue(value: unknown): boolean;
5
+ export declare function convertParametersToFilterClause(parameters: Record<string, unknown> | undefined): AXPFilterClause;
6
+ export declare function isCanonicalEmptyParameters(parameters: Record<string, unknown> | undefined): boolean;
7
+ export declare function computeExpiresAt(retentionDays: number, from?: Date): string;
8
+ export declare function slugFileName(title: string, suffix: string): string;
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveGenerationOptions = resolveGenerationOptions;
4
+ exports.isEmptyFilterValue = isEmptyFilterValue;
5
+ exports.convertParametersToFilterClause = convertParametersToFilterClause;
6
+ exports.isCanonicalEmptyParameters = isCanonicalEmptyParameters;
7
+ exports.computeExpiresAt = computeExpiresAt;
8
+ exports.slugFileName = slugFileName;
9
+ const report_generation_constants_1 = require("./report-generation.constants");
10
+ //#region ----- Helpers -----
11
+ function resolveGenerationOptions(generation) {
12
+ var _a, _b, _c, _d;
13
+ const mode = (_a = generation === null || generation === void 0 ? void 0 : generation.mode) !== null && _a !== void 0 ? _a : 'interactive';
14
+ const formats = ((_b = generation === null || generation === void 0 ? void 0 : generation.formats) === null || _b === void 0 ? void 0 : _b.length) && generation.formats.length > 0
15
+ ? generation.formats
16
+ : mode === 'interactive'
17
+ ? ['viewer']
18
+ : ['viewer'];
19
+ return {
20
+ mode,
21
+ formats,
22
+ executionTimeoutMs: generation === null || generation === void 0 ? void 0 : generation.executionTimeoutMs,
23
+ retentionDays: (_c = generation === null || generation === void 0 ? void 0 : generation.retentionDays) !== null && _c !== void 0 ? _c : report_generation_constants_1.REPORT_GENERATION_DEFAULT_RETENTION_DAYS,
24
+ freezeLayouts: (_d = generation === null || generation === void 0 ? void 0 : generation.freezeLayouts) !== null && _d !== void 0 ? _d : 'all',
25
+ pinDefinition: (generation === null || generation === void 0 ? void 0 : generation.pinDefinition) !== false,
26
+ simulateDelayMs: generation === null || generation === void 0 ? void 0 : generation.simulateDelayMs,
27
+ dedupe: generation === null || generation === void 0 ? void 0 : generation.dedupe,
28
+ keepInTray: generation === null || generation === void 0 ? void 0 : generation.keepInTray,
29
+ };
30
+ }
31
+ const FILTER_OPERATOR_TYPES = new Set([
32
+ 'endsWith',
33
+ 'startsWith',
34
+ 'in',
35
+ 'equal',
36
+ 'isNull',
37
+ 'isEmpty',
38
+ 'lt',
39
+ 'lte',
40
+ 'gt',
41
+ 'gte',
42
+ 'contains',
43
+ ]);
44
+ function asFilterOperatorType(type) {
45
+ if (!type || !FILTER_OPERATOR_TYPES.has(type)) {
46
+ return undefined;
47
+ }
48
+ return type;
49
+ }
50
+ function isEmptyFilterValue(value) {
51
+ if (value === null || value === undefined || value === '') {
52
+ return true;
53
+ }
54
+ if (Array.isArray(value)) {
55
+ return value.length === 0 || value.every((item) => isEmptyFilterValue(item));
56
+ }
57
+ if (typeof value === 'object') {
58
+ const entries = Object.entries(value);
59
+ if (entries.length === 0) {
60
+ return true;
61
+ }
62
+ return entries.every(([, nested]) => isEmptyFilterValue(nested));
63
+ }
64
+ return false;
65
+ }
66
+ function convertParametersToFilterClause(parameters) {
67
+ if (!parameters || Object.keys(parameters).length === 0) {
68
+ return { logic: 'and', filters: [] };
69
+ }
70
+ if (Array.isArray(parameters.filters)) {
71
+ return parameters;
72
+ }
73
+ const filters = [];
74
+ for (const [fieldName, fieldData] of Object.entries(parameters)) {
75
+ if (fieldName.endsWith('EditorObj') || fieldName.startsWith('__') || fieldName.endsWith('EditorValue')) {
76
+ continue;
77
+ }
78
+ if (fieldData === null || fieldData === undefined || typeof fieldData !== 'object' || Array.isArray(fieldData)) {
79
+ if (!isEmptyFilterValue(fieldData)) {
80
+ filters.push({
81
+ field: fieldName,
82
+ operator: { type: Array.isArray(fieldData) ? 'in' : 'equal' },
83
+ value: fieldData,
84
+ });
85
+ }
86
+ continue;
87
+ }
88
+ const record = fieldData;
89
+ if (!('operation' in record)) {
90
+ if (!isEmptyFilterValue(fieldData)) {
91
+ filters.push({
92
+ field: fieldName,
93
+ operator: { type: 'equal' },
94
+ value: fieldData,
95
+ });
96
+ }
97
+ continue;
98
+ }
99
+ const operation = record['operation'];
100
+ const value = record['value'];
101
+ const operatorType = asFilterOperatorType(operation === null || operation === void 0 ? void 0 : operation.type);
102
+ if (!operatorType || isEmptyFilterValue(value)) {
103
+ continue;
104
+ }
105
+ filters.push({
106
+ field: fieldName,
107
+ operator: { type: operatorType },
108
+ value,
109
+ });
110
+ }
111
+ return { logic: 'and', filters };
112
+ }
113
+ function isCanonicalEmptyParameters(parameters) {
114
+ const clause = convertParametersToFilterClause(parameters);
115
+ return !clause.filters || clause.filters.length === 0;
116
+ }
117
+ function computeExpiresAt(retentionDays, from = new Date()) {
118
+ const expires = new Date(from.getTime());
119
+ expires.setUTCDate(expires.getUTCDate() + Math.max(retentionDays, 1));
120
+ return expires.toISOString();
121
+ }
122
+ function slugFileName(title, suffix) {
123
+ const slug = title
124
+ .toLowerCase()
125
+ .replace(/[^a-z0-9]+/g, '-')
126
+ .replace(/^-+|-+$/g, '')
127
+ .slice(0, 48);
128
+ return `${slug || 'report'}${suffix}`;
129
+ }
130
+ //#endregion
131
+ //# sourceMappingURL=report-generation.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-generation.util.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/server/src/lib/report-generation/report-generation.util.ts"],"names":[],"mappings":";;AASA,4DAsBC;AAuBD,gDAeC;AAED,0EAmDC;AAED,gEAGC;AAED,4CAIC;AAED,oCAOC;AAzID,+EAAyF;AAEzF,6BAA6B;AAE7B,SAAgB,wBAAwB,CACtC,UAAkD;;IAGlD,MAAM,IAAI,GAAG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,mCAAI,aAAa,CAAC;IAC/C,MAAM,OAAO,GACX,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,0CAAE,MAAM,KAAI,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;QAC1D,CAAC,CAAC,UAAU,CAAC,OAAO;QACpB,CAAC,CAAC,IAAI,KAAK,aAAa;YACtB,CAAC,CAAE,CAAC,QAAQ,CAA6B;YACzC,CAAC,CAAE,CAAC,QAAQ,CAA6B,CAAC;IAChD,OAAO;QACL,IAAI;QACJ,OAAO;QACP,kBAAkB,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,kBAAkB;QAClD,aAAa,EAAE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAA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,aAAqB,EAAE,IAAI,GAAG,IAAI,IAAI,EAAE;IACvE,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACzC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC;IACtE,OAAO,OAAO,CAAC,WAAW,EAAE,CAAC;AAC/B,CAAC;AAED,SAAgB,YAAY,CAAC,KAAa,EAAE,MAAc;IACxD,MAAM,IAAI,GAAG,KAAK;SACf,WAAW,EAAE;SACb,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;SAC3B,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,OAAO,GAAG,IAAI,IAAI,QAAQ,GAAG,MAAM,EAAE,CAAC;AACxC,CAAC;AAED,YAAY"}
@@ -0,0 +1,32 @@
1
+ import { type AXPServerQueryHandler } from '@acorex-platform/framework-server/domain/abstract';
2
+ import type { AXPQueryFetchResultPromise } from '@acorex-platform/framework-shared/runtime';
3
+ import { ReportBrowseService } from './report-browse.service';
4
+ export declare class ReportManagementCategoryListRootRuntimeQuery implements AXPServerQueryHandler<{
5
+ skip?: number;
6
+ take?: number;
7
+ }, unknown> {
8
+ private readonly reportBrowse;
9
+ constructor(reportBrowse: ReportBrowseService);
10
+ execute(input?: {
11
+ skip?: number;
12
+ take?: number;
13
+ }): AXPQueryFetchResultPromise<unknown>;
14
+ }
15
+ export declare class ReportManagementCategoryGetByIdRuntimeQuery implements AXPServerQueryHandler<{
16
+ parentId: string;
17
+ }, unknown> {
18
+ private readonly reportBrowse;
19
+ constructor(reportBrowse: ReportBrowseService);
20
+ execute(input: {
21
+ parentId: string;
22
+ }): AXPQueryFetchResultPromise<unknown>;
23
+ }
24
+ export declare class ReportManagementReportGetDefinitionRuntimeQuery implements AXPServerQueryHandler<{
25
+ id: string;
26
+ }, unknown> {
27
+ private readonly reportBrowse;
28
+ constructor(reportBrowse: ReportBrowseService);
29
+ execute(input: {
30
+ id: string;
31
+ }): AXPQueryFetchResultPromise<unknown>;
32
+ }
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ //#region ---- Imports ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ReportManagementReportGetDefinitionRuntimeQuery = exports.ReportManagementCategoryGetByIdRuntimeQuery = exports.ReportManagementCategoryListRootRuntimeQuery = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const common_1 = require("@nestjs/common");
7
+ const abstract_1 = require("@acorex-platform/framework-server/domain/abstract");
8
+ const core_1 = require("@acorex-platform/framework-shared/core");
9
+ const module_report_management_contracts_1 = require("@acorex-platform/module-report-management-client/contracts");
10
+ const report_browse_service_1 = require("./report-browse.service");
11
+ //#endregion
12
+ //#region ---- Report browse queries ----
13
+ let ReportManagementCategoryListRootRuntimeQuery = class ReportManagementCategoryListRootRuntimeQuery {
14
+ constructor(reportBrowse) {
15
+ this.reportBrowse = reportBrowse;
16
+ }
17
+ execute() {
18
+ return tslib_1.__awaiter(this, arguments, void 0, function* (input = {}) {
19
+ var _a, _b;
20
+ const page = yield this.reportBrowse.listRootCategories((_a = input.skip) !== null && _a !== void 0 ? _a : 0, (_b = input.take) !== null && _b !== void 0 ? _b : 1000);
21
+ return (0, core_1.runtimeQuerySuccessCollection)({ items: page.items, total: page.totalCount });
22
+ });
23
+ }
24
+ };
25
+ exports.ReportManagementCategoryListRootRuntimeQuery = ReportManagementCategoryListRootRuntimeQuery;
26
+ exports.ReportManagementCategoryListRootRuntimeQuery = ReportManagementCategoryListRootRuntimeQuery = tslib_1.__decorate([
27
+ (0, abstract_1.ServerQueryHandler)({
28
+ key: module_report_management_contracts_1.AXMReportManagementQueryKeys.Category.ListRoot,
29
+ auth: 'session',
30
+ permissions: [module_report_management_contracts_1.AXMPermissionsKeys.ReportManagement.Category.View],
31
+ }),
32
+ (0, common_1.Injectable)(),
33
+ tslib_1.__metadata("design:paramtypes", [report_browse_service_1.ReportBrowseService])
34
+ ], ReportManagementCategoryListRootRuntimeQuery);
35
+ let ReportManagementCategoryGetByIdRuntimeQuery = class ReportManagementCategoryGetByIdRuntimeQuery {
36
+ constructor(reportBrowse) {
37
+ this.reportBrowse = reportBrowse;
38
+ }
39
+ execute(input) {
40
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
41
+ const page = yield this.reportBrowse.getCategoryById(input.parentId);
42
+ return (0, core_1.runtimeQuerySuccessCollection)({ items: page.items, total: page.totalCount });
43
+ });
44
+ }
45
+ };
46
+ exports.ReportManagementCategoryGetByIdRuntimeQuery = ReportManagementCategoryGetByIdRuntimeQuery;
47
+ exports.ReportManagementCategoryGetByIdRuntimeQuery = ReportManagementCategoryGetByIdRuntimeQuery = tslib_1.__decorate([
48
+ (0, abstract_1.ServerQueryHandler)({
49
+ key: module_report_management_contracts_1.AXMReportManagementQueryKeys.Category.GetById,
50
+ auth: 'session',
51
+ permissions: [module_report_management_contracts_1.AXMPermissionsKeys.ReportManagement.Category.View],
52
+ }),
53
+ (0, common_1.Injectable)(),
54
+ tslib_1.__metadata("design:paramtypes", [report_browse_service_1.ReportBrowseService])
55
+ ], ReportManagementCategoryGetByIdRuntimeQuery);
56
+ let ReportManagementReportGetDefinitionRuntimeQuery = class ReportManagementReportGetDefinitionRuntimeQuery {
57
+ constructor(reportBrowse) {
58
+ this.reportBrowse = reportBrowse;
59
+ }
60
+ execute(input) {
61
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
62
+ const data = yield this.reportBrowse.getReportDefinition(input.id);
63
+ return (0, core_1.runtimeQuerySuccessObject)(data);
64
+ });
65
+ }
66
+ };
67
+ exports.ReportManagementReportGetDefinitionRuntimeQuery = ReportManagementReportGetDefinitionRuntimeQuery;
68
+ exports.ReportManagementReportGetDefinitionRuntimeQuery = ReportManagementReportGetDefinitionRuntimeQuery = tslib_1.__decorate([
69
+ (0, abstract_1.ServerQueryHandler)({
70
+ key: module_report_management_contracts_1.AXMReportManagementQueryKeys.Report.GetDefinition,
71
+ auth: 'session',
72
+ permissions: [module_report_management_contracts_1.AXPInsightsReportingPermissionKeys.Access],
73
+ }),
74
+ (0, common_1.Injectable)(),
75
+ tslib_1.__metadata("design:paramtypes", [report_browse_service_1.ReportBrowseService])
76
+ ], ReportManagementReportGetDefinitionRuntimeQuery);
77
+ //#endregion
78
+ //# sourceMappingURL=report-management-runtime.handlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-management-runtime.handlers.js","sourceRoot":"","sources":["../../../../../../libs/modules/report-management/server/src/lib/report-management-runtime.handlers.ts"],"names":[],"mappings":";AAAA,2BAA2B;;;;AAE3B,2CAA4C;AAC5C,gFAAmH;AACnH,iEAGgD;AAEhD,4GAI6D;AAC7D,mEAA8D;AAE9D,YAAY;AAEZ,yCAAyC;AAQlC,IAAM,4CAA4C,GAAlD,MAAM,4CAA4C;IAGvD,YAA6B,YAAiC;QAAjC,iBAAY,GAAZ,YAAY,CAAqB;IAAG,CAAC;IAE5D,OAAO;qEAAC,QAA0C,EAAE;;YACxD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,MAAA,KAAK,CAAC,IAAI,mCAAI,CAAC,EAAE,MAAA,KAAK,CAAC,IAAI,mCAAI,IAAI,CAAC,CAAC;YAC7F,OAAO,IAAA,oCAA6B,EAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QACtF,CAAC;KAAA;CACF,CAAA;AATY,oGAA4C;uDAA5C,4CAA4C;IANxD,IAAA,6BAAkB,EAAC;QAClB,GAAG,EAAE,iEAA4B,CAAC,QAAQ,CAAC,QAAQ;QACnD,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,CAAC,uDAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC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AAM,CAAC;KACzD,CAAC;IACD,IAAA,mBAAU,GAAE;6CAIgC,2CAAmB;GAHnD,+CAA+C,CAS3D;AAED,YAAY"}
@@ -3,27 +3,73 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReportManagementServerModule = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const common_1 = require("@nestjs/common");
6
- const report_management_seed_catalog_1 = require("./seed/report-management.seed-catalog");
7
- const report_management_seed_tokens_1 = require("./seed/report-management-seed.tokens");
8
- const report_management_seed_provider_1 = require("./seed/report-management-seed.provider");
6
+ const seed_1 = require("@acorex-platform/framework-server/domain/seed");
7
+ const module_settings_management_contracts_1 = require("@acorex-platform/module-settings-management-client/contracts");
8
+ const module_settings_management_server_1 = require("@acorex-platform/module-settings-management-server");
9
+ const module_report_management_contracts_1 = require("@acorex-platform/module-report-management-client/contracts");
10
+ const report_management_entity_catalog_1 = require("./entities/report-management.entity-catalog");
9
11
  const report_1 = require("@acorex-platform/framework-server/report");
12
+ const interchange_1 = require("@acorex-platform/framework-server/interchange");
13
+ const report_interchange_export_data_source_1 = require("./interchange/report-interchange-export-data-source");
14
+ const report_interchange_definition_service_1 = require("./interchange/report-interchange-definition.service");
15
+ const report_interchange_export_command_1 = require("./interchange/report-interchange-export.command");
16
+ const report_definition_seed_provider_1 = require("./report-definition.seed-provider");
10
17
  const report_browse_service_1 = require("./report-browse.service");
11
18
  const report_management_controller_1 = require("./report-management.controller");
19
+ const report_management_runtime_handlers_1 = require("./report-management-runtime.handlers");
20
+ const report_generation_create_command_1 = require("./report-generation/report-generation-create.command");
21
+ const report_generation_release_inline_watch_command_1 = require("./report-generation/report-generation-release-inline-watch.command");
22
+ const report_generation_enqueue_service_1 = require("./report-generation/report-generation-enqueue.service");
23
+ const report_generation_execute_command_1 = require("./report-generation/report-generation-execute.command");
24
+ const report_generation_execute_service_1 = require("./report-generation/report-generation-execute.service");
25
+ const report_generation_notify_service_1 = require("./report-generation/report-generation-notify.service");
26
+ const report_generation_runtime_handlers_1 = require("./report-generation/report-generation-runtime.handlers");
27
+ const report_generation_store_1 = require("./report-generation/report-generation.store");
28
+ const report_generation_settings_service_1 = require("./report-generation/report-generation-settings.service");
12
29
  //#region ---- Report management backend module ----
13
30
  let ReportManagementServerModule = class ReportManagementServerModule {
14
31
  };
15
32
  exports.ReportManagementServerModule = ReportManagementServerModule;
16
33
  exports.ReportManagementServerModule = ReportManagementServerModule = tslib_1.__decorate([
17
34
  (0, common_1.Module)({
18
- imports: [report_1.ReportModule],
35
+ imports: [
36
+ seed_1.DomainEntityModule.forFeature(report_management_entity_catalog_1.reportManagementEntityCatalog),
37
+ report_1.ReportModule,
38
+ interchange_1.InterchangeModule,
39
+ module_settings_management_server_1.SettingsManagementServerModule,
40
+ ],
19
41
  controllers: [report_management_controller_1.ReportManagementController],
20
42
  providers: [
21
- report_management_seed_provider_1.ReportManagementSeedCatalogProvider,
22
- {
23
- provide: report_management_seed_tokens_1.REPORT_MANAGEMENT_MODULE_SEED,
24
- useValue: report_management_seed_catalog_1.reportmanagementSeedCatalog,
25
- }, report_browse_service_1.ReportBrowseService
43
+ report_definition_seed_provider_1.ReportDefinitionSeedProvider,
44
+ report_browse_service_1.ReportBrowseService,
45
+ report_management_runtime_handlers_1.ReportManagementCategoryListRootRuntimeQuery,
46
+ report_management_runtime_handlers_1.ReportManagementCategoryGetByIdRuntimeQuery,
47
+ report_management_runtime_handlers_1.ReportManagementReportGetDefinitionRuntimeQuery,
48
+ report_generation_store_1.ReportGenerationStore,
49
+ report_generation_settings_service_1.ReportGenerationSettingsService,
50
+ report_generation_enqueue_service_1.ReportGenerationEnqueueService,
51
+ report_generation_execute_service_1.ReportGenerationExecuteService,
52
+ report_generation_notify_service_1.ReportGenerationNotifyService,
53
+ report_generation_create_command_1.ReportGenerationCreateCommand,
54
+ report_generation_release_inline_watch_command_1.ReportGenerationReleaseInlineWatchCommand,
55
+ report_generation_execute_command_1.ReportGenerationExecuteCommand,
56
+ report_generation_runtime_handlers_1.ReportGenerationGetQuery,
57
+ report_generation_runtime_handlers_1.ReportGenerationListMineQuery,
58
+ report_generation_runtime_handlers_1.ReportGenerationGetViewerFreezeQuery,
59
+ report_interchange_export_data_source_1.ReportInterchangeExportDataSource,
60
+ report_interchange_definition_service_1.ReportInterchangeDefinitionService,
61
+ report_interchange_export_command_1.ReportInterchangeExportRunCommand,
62
+ report_interchange_export_command_1.ReportInterchangeListTemplatesCommand,
63
+ report_interchange_export_command_1.ReportInterchangeCloneTemplateCommand,
64
+ report_interchange_export_command_1.ReportInterchangeSaveTemplateCommand,
65
+ (0, module_settings_management_contracts_1.provideSettingsDefaults)((0, module_settings_management_contracts_1.createStaticSettingsDefaultsProvider)({
66
+ scope: 'P',
67
+ layer: 'report-management',
68
+ priority: module_settings_management_contracts_1.SETTINGS_DEFAULTS_PRIORITY.module,
69
+ values: Object.assign({}, module_report_management_contracts_1.AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS),
70
+ })),
26
71
  ],
72
+ exports: [report_definition_seed_provider_1.ReportDefinitionSeedProvider],
27
73
  })
28
74
  ], ReportManagementServerModule);
29
75
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"report-management-server.module.js","sourceRoot":"","sources":["../../../../../../libs/modules/report-management/server/src/lib/report-management-server.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,0FAAoF;AACpF,wFAAqF;AACrF,4FAA6F;AAE7F,qEAAwE;AACxE,mEAA8D;AAC9D,iFAA4E;AAE5E,oDAAoD;AAY7C,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAAG,CAAA;AAA/B,oEAA4B;uCAA5B,4BAA4B;IAVxC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,qBAAY,CAAC;QACvB,WAAW,EAAE,CAAC,yDAA0B,CAAC;QACzC,SAAS,EAAE;YACT,qEAAmC;YACnC;gBACE,OAAO,EAAE,6DAA6B;gBACtC,QAAQ,EAAE,4DAA2B;aACtC,EAAC,2CAAmB;SAAC;KACzB,CAAC;GACW,4BAA4B,CAAG;AAE5C,YAAY"}
1
+ {"version":3,"file":"report-management-server.module.js","sourceRoot":"","sources":["../../../../../../libs/modules/report-management/server/src/lib/report-management-server.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,wEAAmF;AACnF,gHAI+D;AAC/D,0GAAoG;AACpG,4GAAwH;AACxH,kGAA4F;AAE5F,qEAAwE;AACxE,+EAAkF;AAClF,+GAAwG;AACxG,+GAAyG;AACzG,uGAKyD;AACzD,uFAAiF;AACjF,mEAA8D;AAC9D,iFAA4E;AAC5E,6FAI8C;AAC9C,2GAAqG;AACrG,uIAA+H;AAC/H,6GAAuG;AACvG,6GAAuG;AACvG,6GAAuG;AACvG,2GAAqG;AACrG,+GAIgE;AAChE,yFAAoF;AACpF,+GAAyG;AAEzG,oDAAoD;AA4C7C,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAAG,CAAA;AAA/B,oEAA4B;uCAA5B,4BAA4B;IA1CxC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,yBAAkB,CAAC,UAAU,CAAC,gEAA6B,CAAC;YAC5D,qBAAY;YACZ,+BAAiB;YACjB,kEAA8B;SAC/B;QACD,WAAW,EAAE,CAAC,yDAA0B,CAAC;QACzC,SAAS,EAAE;YACT,8DAA4B;YAC5B,2CAAmB;YACnB,iFAA4C;YAC5C,gFAA2C;YAC3C,oFAA+C;YAC/C,+CAAqB;YACrB,oEAA+B;YAC/B,kEAA8B;YAC9B,kEAA8B;YAC9B,gEAA6B;YAC7B,gEAA6B;YAC7B,0FAAyC;YACzC,kEAA8B;YAC9B,6DAAwB;YACxB,kEAA6B;YAC7B,yEAAoC;YACpC,yEAAiC;YACjC,0EAAkC;YAClC,qEAAiC;YACjC,yEAAqC;YACrC,yEAAqC;YACrC,wEAAoC;YACpC,IAAA,8DAAuB,EACrB,IAAA,2EAAoC,EAAC;gBACnC,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,mBAAmB;gBAC1B,QAAQ,EAAE,iEAA0B,CAAC,MAAM;gBAC3C,MAAM,oBAAO,sFAAiD,CAAE;aACjE,CAAC,CACH;SACF;QACD,OAAO,EAAE,CAAC,8DAA4B,CAAC;KACxC,CAAC;GACW,4BAA4B,CAAG;AAE5C,YAAY"}
@@ -1,11 +1,8 @@
1
- import { ReportExecuteService, type ReportExecuteBodyDto, type ReportExecuteResponseDto } from '@acorex-platform/framework-server/report';
2
1
  import { ReportBrowseService } from './report-browse.service';
3
2
  export declare class ReportManagementController {
4
- private readonly reportExecute;
5
3
  private readonly reportBrowse;
6
- constructor(reportExecute: ReportExecuteService, reportBrowse: ReportBrowseService);
4
+ constructor(reportBrowse: ReportBrowseService);
7
5
  listRootCategories(skip?: string, take?: string): Promise<import("./report-browse.types").ReportCategoryApiResponse>;
8
6
  getCategoryById(parentId: string): Promise<import("./report-browse.types").ReportCategoryApiResponse>;
9
7
  getReportDefinition(id: string): Promise<import("./report-browse.types").ReportDefinitionApiResponse>;
10
- executeReport(body: ReportExecuteBodyDto): Promise<ReportExecuteResponseDto>;
11
8
  }
@@ -5,12 +5,10 @@ const tslib_1 = require("tslib");
5
5
  const common_1 = require("@nestjs/common");
6
6
  const swagger_1 = require("@nestjs/swagger");
7
7
  const security_1 = require("@acorex-platform/framework-server/security");
8
- const report_1 = require("@acorex-platform/framework-server/report");
9
8
  const report_browse_service_1 = require("./report-browse.service");
10
9
  //#region ---- Report management REST API ----
11
10
  let ReportManagementController = class ReportManagementController {
12
- constructor(reportExecute, reportBrowse) {
13
- this.reportExecute = reportExecute;
11
+ constructor(reportBrowse) {
14
12
  this.reportBrowse = reportBrowse;
15
13
  }
16
14
  listRootCategories(skip, take) {
@@ -24,9 +22,6 @@ let ReportManagementController = class ReportManagementController {
24
22
  getReportDefinition(id) {
25
23
  return this.reportBrowse.getReportDefinition(id);
26
24
  }
27
- executeReport(body) {
28
- return this.reportExecute.execute(body);
29
- }
30
25
  };
31
26
  exports.ReportManagementController = ReportManagementController;
32
27
  tslib_1.__decorate([
@@ -54,21 +49,12 @@ tslib_1.__decorate([
54
49
  tslib_1.__metadata("design:paramtypes", [String]),
55
50
  tslib_1.__metadata("design:returntype", void 0)
56
51
  ], ReportManagementController.prototype, "getReportDefinition", null);
57
- tslib_1.__decorate([
58
- (0, common_1.Post)('report/execute'),
59
- (0, swagger_1.ApiOperation)({ summary: 'Execute report' }),
60
- tslib_1.__param(0, (0, common_1.Body)()),
61
- tslib_1.__metadata("design:type", Function),
62
- tslib_1.__metadata("design:paramtypes", [Object]),
63
- tslib_1.__metadata("design:returntype", Promise)
64
- ], ReportManagementController.prototype, "executeReport", null);
65
52
  exports.ReportManagementController = ReportManagementController = tslib_1.__decorate([
66
53
  (0, swagger_1.ApiTags)('report-management'),
67
54
  (0, swagger_1.ApiBearerAuth)(),
68
55
  (0, common_1.UseGuards)(security_1.JwtAuthGuard),
69
56
  (0, common_1.Controller)('v1/global/report-management'),
70
- tslib_1.__metadata("design:paramtypes", [report_1.ReportExecuteService,
71
- report_browse_service_1.ReportBrowseService])
57
+ tslib_1.__metadata("design:paramtypes", [report_browse_service_1.ReportBrowseService])
72
58
  ], ReportManagementController);
73
59
  //#endregion
74
60
  //# sourceMappingURL=report-management.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"report-management.controller.js","sourceRoot":"","sources":["../../../../../../libs/modules/report-management/server/src/lib/report-management.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAsF;AACtF,6CAAuE;AACvE,yEAA0E;AAC1E,qEAIkD;AAClD,mEAA8D;AAE9D,8CAA8C;AAMvC,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,YACmB,aAAmC,EACnC,YAAiC;QADjC,kBAAa,GAAb,aAAa,CAAsB;QACnC,iBAAY,GAAZ,YAAY,CAAqB;IACjD,CAAC;IAIJ,kBAAkB,CACD,IAAa,EACb,IAAa;QAE5B,MAAM,OAAO,GAAG,IAAI,IAAI,IAAI,CA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,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnC,mBAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;qEAE/B;AAID;IAFC,IAAA,aAAI,EAAC,gBAAgB,CAAC;IACtB,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC7B,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;+DAEpB;qCApCU,0BAA0B;IAJtC,IAAA,iBAAO,EAAC,mBAAmB,CAAC;IAC5B,IAAA,uBAAa,GAAE;IACf,IAAA,kBAAS,EAAC,uBAAY,CAAC;IACvB,IAAA,mBAAU,EAAC,6BAA6B,CAAC;6CAGN,6BAAoB;QACrB,2CAAmB;GAHzC,0BAA0B,CAqCtC;AAED,YAAY"}
1
+ {"version":3,"file":"report-management.controller.js","sourceRoot":"","sources":["../../../../../../libs/modules/report-management/server/src/lib/report-management.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAA0E;AAC1E,6CAAuE;AACvE,yEAA0E;AAC1E,mEAA8D;AAE9D,8CAA8C;AAMvC,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,YAA6B,YAAiC;QAAjC,iBAAY,GAAZ,YAAY,CAAqB;IAAG,CAAC;IAIlE,kBAAkB,CACD,IAAa,EACb,IAAa;QAE5B,MAAM,OAAO,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChD,MAAM,OAAO,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACnD,OAAO,IAAI,CAAC,YAAY,CAAC,kBAAkB,CACzC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAC1C,CAAC;IACJ,CAAC;IAID,eAAe,CAAoB,QAAgB;QACjD,OAAO,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAID,mBAAmB,CAAc,EAAU;QACzC,OAAO,IAAI,CAAC,YAAY,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AA5BY,gEAA0B;AAKrC;IAFC,IAAA,YAAG,EAAC,UAAU,CAAC;IACf,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IAEtD,mBAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,mBAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;oEAQf;AAID;IAFC,IAAA,YAAG,EAAC,oBAAoB,CAAC;IACzB,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,yDAAyD,EAAE,CAAC;IACpE,mBAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;;;;iEAEjC;AAID;IAFC,IAAA,YAAG,EAAC,YAAY,CAAC;IACjB,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnC,mBAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;qEAE/B;qCA3BU,0BAA0B;IAJtC,IAAA,iBAAO,EAAC,mBAAmB,CAAC;IAC5B,IAAA,uBAAa,GAAE;IACf,IAAA,kBAAS,EAAC,uBAAY,CAAC;IACvB,IAAA,mBAAU,EAAC,6BAA6B,CAAC;6CAEG,2CAAmB;GADnD,0BAA0B,CA4BtC;AAED,YAAY"}
@@ -1,19 +0,0 @@
1
- export interface ReportManagementSeedContext {
2
- moduleName: string;
3
- route: string;
4
- }
5
- export declare const reportManagementSeedContext: {
6
- moduleName: string;
7
- route: string;
8
- };
9
- export declare const reportManagementSeedData: {
10
- module: {
11
- name: string;
12
- title: `@${string}:module.title`;
13
- icon: "fa-light fa-chart-bar";
14
- i18n: string;
15
- required: boolean;
16
- };
17
- };
18
- export * from './report-management.seed-catalog';
19
- export * from './samples';
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reportManagementSeedData = exports.reportManagementSeedContext = void 0;
4
- const tslib_1 = require("tslib");
5
- const module_report_management_contracts_1 = require("@acorex-platform/module-report-management-contracts");
6
- exports.reportManagementSeedContext = {
7
- moduleName: module_report_management_contracts_1.RootConfig.module.name,
8
- route: 'report-management',
9
- };
10
- exports.reportManagementSeedData = {
11
- module: {
12
- name: module_report_management_contracts_1.RootConfig.module.name,
13
- title: module_report_management_contracts_1.RootConfig.module.title,
14
- icon: module_report_management_contracts_1.RootConfig.module.icon,
15
- i18n: module_report_management_contracts_1.RootConfig.config.i18n,
16
- required: false,
17
- },
18
- };
19
- tslib_1.__exportStar(require("./report-management.seed-catalog"), exports);
20
- tslib_1.__exportStar(require("./samples"), exports);
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/server/src/lib/seed/index.ts"],"names":[],"mappings":";;;;AAAA,4GAAiF;AAOpE,QAAA,2BAA2B,GAAG;IACzC,UAAU,EAAE,+CAAU,CAAC,MAAM,CAAC,IAAI;IAClC,KAAK,EAAE,mBAAmB;CAC3B,CAAC;AAEW,QAAA,wBAAwB,GAAG;IACtC,MAAM,EAAE;QACN,IAAI,EAAE,+CAAU,CAAC,MAAM,CAAC,IAAI;QAC5B,KAAK,EAAE,+CAAU,CAAC,MAAM,CAAC,KAAK;QAC9B,IAAI,EAAE,+CAAU,CAAC,MAAM,CAAC,IAAI;QAC5B,IAAI,EAAE,+CAAU,CAAC,MAAM,CAAC,IAAI;QAC5B,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC;AACF,2EAAiD;AACjD,oDAA0B"}