@acorex-platform/module-report-management-server 0.0.18 → 2.0.0-next.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/contracts/src/commands.keys.d.ts +11 -0
  2. package/contracts/src/commands.keys.js +17 -0
  3. package/contracts/src/commands.keys.js.map +1 -0
  4. package/contracts/src/entities/index.d.ts +3 -0
  5. package/contracts/src/entities/index.js +3 -0
  6. package/contracts/src/entities/index.js.map +1 -1
  7. package/contracts/src/entities/query-snapshot/index.d.ts +1 -0
  8. package/contracts/src/entities/query-snapshot/index.js +5 -0
  9. package/contracts/src/entities/query-snapshot/index.js.map +1 -0
  10. package/contracts/src/entities/query-snapshot/query-snapshot.entity.d.ts +2 -0
  11. package/contracts/src/entities/query-snapshot/query-snapshot.entity.js +127 -0
  12. package/contracts/src/entities/query-snapshot/query-snapshot.entity.js.map +1 -0
  13. package/contracts/src/entities/query-snapshot/query-snapshot.types.d.ts +34 -0
  14. package/contracts/src/entities/query-snapshot/query-snapshot.types.js +5 -0
  15. package/contracts/src/entities/query-snapshot/query-snapshot.types.js.map +1 -0
  16. package/contracts/src/entities/query-snapshot-policy/index.d.ts +1 -0
  17. package/contracts/src/entities/query-snapshot-policy/index.js +5 -0
  18. package/contracts/src/entities/query-snapshot-policy/index.js.map +1 -0
  19. package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.entity.d.ts +2 -0
  20. package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.entity.js +100 -0
  21. package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.entity.js.map +1 -0
  22. package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.types.d.ts +14 -0
  23. package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.types.js +5 -0
  24. package/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.types.js.map +1 -0
  25. package/contracts/src/entities/report/index.d.ts +1 -1
  26. package/contracts/src/entities/report/index.js +1 -1
  27. package/contracts/src/entities/report/index.js.map +1 -1
  28. package/contracts/src/entities/report/report.entity.js +51 -7
  29. package/contracts/src/entities/report/report.entity.js.map +1 -1
  30. package/contracts/src/entities/report-category/index.d.ts +1 -1
  31. package/contracts/src/entities/report-category/index.js +0 -2
  32. package/contracts/src/entities/report-category/index.js.map +1 -1
  33. package/contracts/src/entities/report-category/report-category.entity.js +14 -1
  34. package/contracts/src/entities/report-category/report-category.entity.js.map +1 -1
  35. package/contracts/src/entities/report-generation-request/index.d.ts +1 -0
  36. package/contracts/src/entities/report-generation-request/index.js +5 -0
  37. package/contracts/src/entities/report-generation-request/index.js.map +1 -0
  38. package/contracts/src/entities/report-generation-request/report-generation-request.entity.d.ts +2 -0
  39. package/contracts/src/entities/report-generation-request/report-generation-request.entity.js +208 -0
  40. package/contracts/src/entities/report-generation-request/report-generation-request.entity.js.map +1 -0
  41. package/contracts/src/entity-catalog.d.ts +7 -0
  42. package/contracts/src/entity-catalog.js +24 -0
  43. package/contracts/src/entity-catalog.js.map +1 -0
  44. package/contracts/src/entity-entry.query-snapshot-policy.d.ts +1 -0
  45. package/contracts/src/entity-entry.query-snapshot-policy.js +6 -0
  46. package/contracts/src/entity-entry.query-snapshot-policy.js.map +1 -0
  47. package/contracts/src/entity-entry.query-snapshot.d.ts +1 -0
  48. package/contracts/src/entity-entry.query-snapshot.js +6 -0
  49. package/contracts/src/entity-entry.query-snapshot.js.map +1 -0
  50. package/contracts/src/entity-entry.report-category.d.ts +1 -0
  51. package/contracts/src/entity-entry.report-category.js +6 -0
  52. package/contracts/src/entity-entry.report-category.js.map +1 -0
  53. package/contracts/src/entity-entry.report-generation-request.d.ts +1 -0
  54. package/contracts/src/entity-entry.report-generation-request.js +6 -0
  55. package/contracts/src/entity-entry.report-generation-request.js.map +1 -0
  56. package/contracts/src/entity-entry.report.d.ts +1 -0
  57. package/contracts/src/entity-entry.report.js +6 -0
  58. package/contracts/src/entity-entry.report.js.map +1 -0
  59. package/contracts/src/index.d.ts +5 -0
  60. package/contracts/src/index.js +5 -0
  61. package/contracts/src/index.js.map +1 -1
  62. package/contracts/src/manifest.d.ts +6 -0
  63. package/contracts/src/manifest.js +24 -0
  64. package/contracts/src/manifest.js.map +1 -0
  65. package/contracts/src/permission.keys.d.ts +30 -14
  66. package/contracts/src/permission.keys.js +28 -12
  67. package/contracts/src/permission.keys.js.map +1 -1
  68. package/contracts/src/report-generation.types.d.ts +97 -0
  69. package/contracts/src/report-generation.types.js +14 -0
  70. package/contracts/src/report-generation.types.js.map +1 -0
  71. package/contracts/src/report.types.d.ts +107 -107
  72. package/contracts/src/report.types.js.map +1 -1
  73. package/contracts/src/root-config.d.ts +23 -2
  74. package/contracts/src/root-config.js +23 -2
  75. package/contracts/src/root-config.js.map +1 -1
  76. package/contracts/src/runtime.keys.d.ts +14 -0
  77. package/contracts/src/runtime.keys.js +20 -0
  78. package/contracts/src/runtime.keys.js.map +1 -0
  79. package/contracts/src/settings.keys.d.ts +11 -0
  80. package/contracts/src/settings.keys.js +17 -0
  81. package/contracts/src/settings.keys.js.map +1 -0
  82. package/package.json +8 -8
  83. package/server/src/index.d.ts +2 -4
  84. package/server/src/index.js +5 -8
  85. package/server/src/index.js.map +1 -1
  86. package/server/src/lib/entities/index.d.ts +1 -0
  87. package/server/src/lib/entities/index.js +5 -0
  88. package/server/src/lib/entities/index.js.map +1 -0
  89. package/server/src/lib/entities/report-management.entity-catalog.d.ts +1 -0
  90. package/server/src/lib/entities/report-management.entity-catalog.js +12 -0
  91. package/server/src/lib/entities/report-management.entity-catalog.js.map +1 -0
  92. package/server/src/lib/query-snapshots/query-snapshot-bypass.util.d.ts +3 -0
  93. package/server/src/lib/query-snapshots/query-snapshot-bypass.util.js +16 -0
  94. package/server/src/lib/query-snapshots/query-snapshot-bypass.util.js.map +1 -0
  95. package/server/src/lib/query-snapshots/query-snapshot-debounce.service.d.ts +19 -0
  96. package/server/src/lib/query-snapshots/query-snapshot-debounce.service.js +118 -0
  97. package/server/src/lib/query-snapshots/query-snapshot-debounce.service.js.map +1 -0
  98. package/server/src/lib/query-snapshots/query-snapshot-enqueue.service.d.ts +24 -0
  99. package/server/src/lib/query-snapshots/query-snapshot-enqueue.service.js +61 -0
  100. package/server/src/lib/query-snapshots/query-snapshot-enqueue.service.js.map +1 -0
  101. package/server/src/lib/query-snapshots/query-snapshot-entity-change.middleware.d.ts +12 -0
  102. package/server/src/lib/query-snapshots/query-snapshot-entity-change.middleware.js +90 -0
  103. package/server/src/lib/query-snapshots/query-snapshot-entity-change.middleware.js.map +1 -0
  104. package/server/src/lib/query-snapshots/query-snapshot-entity-storage.bootstrap.d.ts +9 -0
  105. package/server/src/lib/query-snapshots/query-snapshot-entity-storage.bootstrap.js +25 -0
  106. package/server/src/lib/query-snapshots/query-snapshot-entity-storage.bootstrap.js.map +1 -0
  107. package/server/src/lib/query-snapshots/query-snapshot-payload.util.d.ts +22 -0
  108. package/server/src/lib/query-snapshots/query-snapshot-payload.util.js +282 -0
  109. package/server/src/lib/query-snapshots/query-snapshot-payload.util.js.map +1 -0
  110. package/server/src/lib/query-snapshots/query-snapshot-recalc.service.d.ts +23 -0
  111. package/server/src/lib/query-snapshots/query-snapshot-recalc.service.js +122 -0
  112. package/server/src/lib/query-snapshots/query-snapshot-recalc.service.js.map +1 -0
  113. package/server/src/lib/query-snapshots/query-snapshot-schedule.setup.d.ts +2 -0
  114. package/server/src/lib/query-snapshots/query-snapshot-schedule.setup.js +79 -0
  115. package/server/src/lib/query-snapshots/query-snapshot-schedule.setup.js.map +1 -0
  116. package/server/src/lib/query-snapshots/query-snapshot.constants.d.ts +17 -0
  117. package/server/src/lib/query-snapshots/query-snapshot.constants.js +46 -0
  118. package/server/src/lib/query-snapshots/query-snapshot.constants.js.map +1 -0
  119. package/server/src/lib/query-snapshots/query-snapshot.middleware.d.ts +21 -0
  120. package/server/src/lib/query-snapshots/query-snapshot.middleware.js +135 -0
  121. package/server/src/lib/query-snapshots/query-snapshot.middleware.js.map +1 -0
  122. package/server/src/lib/query-snapshots/query-snapshot.store.d.ts +34 -0
  123. package/server/src/lib/query-snapshots/query-snapshot.store.js +137 -0
  124. package/server/src/lib/query-snapshots/query-snapshot.store.js.map +1 -0
  125. package/server/src/lib/query-snapshots/recalculate-query-snapshots.command.d.ts +8 -0
  126. package/server/src/lib/query-snapshots/recalculate-query-snapshots.command.js +74 -0
  127. package/server/src/lib/query-snapshots/recalculate-query-snapshots.command.js.map +1 -0
  128. package/server/src/lib/query-snapshots/refresh-query-snapshots.command.d.ts +16 -0
  129. package/server/src/lib/query-snapshots/refresh-query-snapshots.command.js +56 -0
  130. package/server/src/lib/query-snapshots/refresh-query-snapshots.command.js.map +1 -0
  131. package/server/src/lib/report-browse.service.js +32 -13
  132. package/server/src/lib/report-browse.service.js.map +1 -1
  133. package/server/src/lib/report-browse.types.d.ts +27 -12
  134. package/server/src/lib/report-browse.types.js +0 -1
  135. package/server/src/lib/report-browse.types.js.map +1 -1
  136. package/server/src/lib/report-definition.seed-provider.d.ts +15 -0
  137. package/server/src/lib/report-definition.seed-provider.js +63 -0
  138. package/server/src/lib/report-definition.seed-provider.js.map +1 -0
  139. package/server/src/lib/report-generation/report-generation-create.command.d.ts +17 -0
  140. package/server/src/lib/report-generation/report-generation-create.command.js +177 -0
  141. package/server/src/lib/report-generation/report-generation-create.command.js.map +1 -0
  142. package/server/src/lib/report-generation/report-generation-enqueue.service.d.ts +21 -0
  143. package/server/src/lib/report-generation/report-generation-enqueue.service.js +58 -0
  144. package/server/src/lib/report-generation/report-generation-enqueue.service.js.map +1 -0
  145. package/server/src/lib/report-generation/report-generation-execute.command.d.ts +10 -0
  146. package/server/src/lib/report-generation/report-generation-execute.command.js +49 -0
  147. package/server/src/lib/report-generation/report-generation-execute.command.js.map +1 -0
  148. package/server/src/lib/report-generation/report-generation-execute.service.d.ts +23 -0
  149. package/server/src/lib/report-generation/report-generation-execute.service.js +225 -0
  150. package/server/src/lib/report-generation/report-generation-execute.service.js.map +1 -0
  151. package/server/src/lib/report-generation/report-generation-job-presentation.util.d.ts +8 -0
  152. package/server/src/lib/report-generation/report-generation-job-presentation.util.js +43 -0
  153. package/server/src/lib/report-generation/report-generation-job-presentation.util.js.map +1 -0
  154. package/server/src/lib/report-generation/report-generation-notify.service.d.ts +23 -0
  155. package/server/src/lib/report-generation/report-generation-notify.service.js +159 -0
  156. package/server/src/lib/report-generation/report-generation-notify.service.js.map +1 -0
  157. package/server/src/lib/report-generation/report-generation-policy.util.d.ts +39 -0
  158. package/server/src/lib/report-generation/report-generation-policy.util.js +95 -0
  159. package/server/src/lib/report-generation/report-generation-policy.util.js.map +1 -0
  160. package/server/src/lib/report-generation/report-generation-progress.util.d.ts +14 -0
  161. package/server/src/lib/report-generation/report-generation-progress.util.js +51 -0
  162. package/server/src/lib/report-generation/report-generation-progress.util.js.map +1 -0
  163. package/server/src/lib/report-generation/report-generation-release-inline-watch.command.d.ts +10 -0
  164. package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js +55 -0
  165. package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js.map +1 -0
  166. package/server/src/lib/report-generation/report-generation-runtime.handlers.d.ts +27 -0
  167. package/server/src/lib/report-generation/report-generation-runtime.handlers.js +136 -0
  168. package/server/src/lib/report-generation/report-generation-runtime.handlers.js.map +1 -0
  169. package/server/src/lib/report-generation/report-generation-settings.service.d.ts +12 -0
  170. package/server/src/lib/report-generation/report-generation-settings.service.js +49 -0
  171. package/server/src/lib/report-generation/report-generation-settings.service.js.map +1 -0
  172. package/server/src/lib/report-generation/report-generation.constants.d.ts +16 -0
  173. package/server/src/lib/report-generation/report-generation.constants.js +24 -0
  174. package/server/src/lib/report-generation/report-generation.constants.js.map +1 -0
  175. package/server/src/lib/report-generation/report-generation.store.d.ts +25 -0
  176. package/server/src/lib/report-generation/report-generation.store.js +145 -0
  177. package/server/src/lib/report-generation/report-generation.store.js.map +1 -0
  178. package/server/src/lib/report-generation/report-generation.util.d.ts +8 -0
  179. package/server/src/lib/report-generation/report-generation.util.js +131 -0
  180. package/server/src/lib/report-generation/report-generation.util.js.map +1 -0
  181. package/server/src/lib/report-management-runtime.handlers.d.ts +32 -0
  182. package/server/src/lib/report-management-runtime.handlers.js +78 -0
  183. package/server/src/lib/report-management-runtime.handlers.js.map +1 -0
  184. package/server/src/lib/report-management-server.module.js +64 -9
  185. package/server/src/lib/report-management-server.module.js.map +1 -1
  186. package/server/src/lib/report-management.controller.d.ts +1 -4
  187. package/server/src/lib/report-management.controller.js +2 -16
  188. package/server/src/lib/report-management.controller.js.map +1 -1
  189. package/server/src/lib/seed/index.d.ts +0 -19
  190. package/server/src/lib/seed/index.js +0 -21
  191. package/server/src/lib/seed/index.js.map +0 -1
  192. package/server/src/lib/seed/report-management-seed.provider.d.ts +0 -4
  193. package/server/src/lib/seed/report-management-seed.provider.js +0 -18
  194. package/server/src/lib/seed/report-management-seed.provider.js.map +0 -1
  195. package/server/src/lib/seed/report-management-seed.tokens.d.ts +0 -1
  196. package/server/src/lib/seed/report-management-seed.tokens.js +0 -7
  197. package/server/src/lib/seed/report-management-seed.tokens.js.map +0 -1
  198. package/server/src/lib/seed/report-management.seed-catalog.d.ts +0 -2
  199. package/server/src/lib/seed/report-management.seed-catalog.js +0 -10
  200. package/server/src/lib/seed/report-management.seed-catalog.js.map +0 -1
  201. package/server/src/lib/seed/samples/employee-report.mock.d.ts +0 -9
  202. package/server/src/lib/seed/samples/employee-report.mock.js +0 -322
  203. package/server/src/lib/seed/samples/employee-report.mock.js.map +0 -1
  204. package/server/src/lib/seed/samples/index.d.ts +0 -2
  205. package/server/src/lib/seed/samples/index.js +0 -6
  206. package/server/src/lib/seed/samples/index.js.map +0 -1
  207. package/server/src/lib/seed/samples/location-report.mock.d.ts +0 -9
  208. package/server/src/lib/seed/samples/location-report.mock.js +0 -339
  209. package/server/src/lib/seed/samples/location-report.mock.js.map +0 -1
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportGenerationRequestEntityFactory = reportGenerationRequestEntityFactory;
4
+ const tslib_1 = require("tslib");
5
+ const core_1 = require("@acorex-platform/framework-shared/core");
6
+ const entity_1 = require("@acorex-platform/framework-shared/entity");
7
+ const root_config_1 = require("../../root-config");
8
+ const report_generation_types_1 = require("../../report-generation.types");
9
+ //#region ---- Report generation request entity factory ----
10
+ const I18N = '@report-management:report-generation.entities.request';
11
+ const STATUS_ITEMS = [
12
+ { name: 'queued', title: `${I18N}.statuses.queued` },
13
+ { name: 'running', title: `${I18N}.statuses.running` },
14
+ { name: 'completed', title: `${I18N}.statuses.completed` },
15
+ { name: 'failed', title: `${I18N}.statuses.failed` },
16
+ { name: 'cancelled', title: `${I18N}.statuses.cancelled` },
17
+ ];
18
+ const TRIGGER_ITEMS = [
19
+ { name: 'manual', title: `${I18N}.triggers.manual` },
20
+ { name: 'schedule', title: `${I18N}.triggers.schedule` },
21
+ { name: 'export', title: `${I18N}.triggers.export` },
22
+ ];
23
+ function reportGenerationRequestEntityFactory() {
24
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
+ return {
26
+ module: root_config_1.RootConfig.module.name,
27
+ name: root_config_1.RootConfig.entities.reportGenerationRequest.name,
28
+ title: root_config_1.RootConfig.entities.reportGenerationRequest.title,
29
+ icon: root_config_1.RootConfig.entities.reportGenerationRequest.icon,
30
+ searchTags: [
31
+ 'report-generation',
32
+ 'background-report',
33
+ 'report-export',
34
+ 'report-job',
35
+ 'async-report',
36
+ 'scheduled-report',
37
+ 'report-queue',
38
+ 'generation-request',
39
+ 'تولید گزارش',
40
+ 'گزارش پس‌زمینه',
41
+ 'اجرای تولید گزارش',
42
+ 'خروجی گزارش',
43
+ ],
44
+ formats: {
45
+ individual: root_config_1.RootConfig.entities.reportGenerationRequest.title,
46
+ plural: root_config_1.RootConfig.entities.reportGenerationRequest.titlePlural,
47
+ searchResult: {
48
+ title: '{{ reportId }}',
49
+ description: '{{ status }}',
50
+ },
51
+ },
52
+ groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
53
+ properties: [
54
+ {
55
+ name: 'reportId',
56
+ title: `${I18N}.fields.report-id`,
57
+ groupId: 'basic-info',
58
+ schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.text } },
59
+ options: {
60
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
61
+ sort: { enabled: true },
62
+ },
63
+ },
64
+ {
65
+ name: 'layoutId',
66
+ title: `${I18N}.fields.layout-id`,
67
+ groupId: 'basic-info',
68
+ schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.text } },
69
+ },
70
+ {
71
+ name: 'status',
72
+ title: `${I18N}.fields.status`,
73
+ groupId: 'basic-info',
74
+ schema: {
75
+ dataType: 'string',
76
+ readonly: true,
77
+ interface: { type: core_1.AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },
78
+ },
79
+ options: {
80
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
81
+ sort: { enabled: true },
82
+ },
83
+ },
84
+ {
85
+ name: 'trigger',
86
+ title: `${I18N}.fields.trigger`,
87
+ groupId: 'basic-info',
88
+ schema: {
89
+ dataType: 'string',
90
+ readonly: true,
91
+ interface: { type: core_1.AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },
92
+ },
93
+ options: { filter: { advance: { enabled: true } } },
94
+ },
95
+ {
96
+ name: 'requestedBy',
97
+ title: `${I18N}.fields.requested-by`,
98
+ groupId: 'basic-info',
99
+ schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.text } },
100
+ options: { filter: { advance: { enabled: true } } },
101
+ },
102
+ {
103
+ name: 'jobId',
104
+ title: `${I18N}.fields.job-id`,
105
+ groupId: 'basic-info',
106
+ schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.text } },
107
+ },
108
+ {
109
+ name: 'startedAt',
110
+ title: `${I18N}.fields.started-at`,
111
+ groupId: 'basic-info',
112
+ schema: {
113
+ dataType: 'datetime',
114
+ readonly: true,
115
+ interface: { type: core_1.AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
116
+ },
117
+ options: { sort: { enabled: true } },
118
+ },
119
+ {
120
+ name: 'completedAt',
121
+ title: `${I18N}.fields.completed-at`,
122
+ groupId: 'basic-info',
123
+ schema: {
124
+ dataType: 'datetime',
125
+ readonly: true,
126
+ interface: { type: core_1.AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
127
+ },
128
+ options: { sort: { enabled: true } },
129
+ },
130
+ {
131
+ name: 'durationMs',
132
+ title: `${I18N}.fields.duration-ms`,
133
+ groupId: 'basic-info',
134
+ schema: { dataType: 'number', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.number } },
135
+ },
136
+ {
137
+ name: 'lastError',
138
+ title: `${I18N}.fields.last-error`,
139
+ groupId: 'basic-info',
140
+ schema: { dataType: 'string', readonly: true, interface: { type: core_1.AXPWidgetsCatalog.largeText } },
141
+ },
142
+ {
143
+ name: 'expiresAt',
144
+ title: `${I18N}.fields.expires-at`,
145
+ groupId: 'basic-info',
146
+ schema: {
147
+ dataType: 'datetime',
148
+ readonly: true,
149
+ interface: { type: core_1.AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
150
+ },
151
+ },
152
+ {
153
+ name: 'parameters',
154
+ title: `${I18N}.fields.parameters`,
155
+ groupId: 'basic-info',
156
+ schema: {
157
+ dataType: 'object',
158
+ readonly: true,
159
+ interface: { type: core_1.AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },
160
+ },
161
+ },
162
+ {
163
+ name: 'artifacts',
164
+ title: `${I18N}.fields.artifacts`,
165
+ groupId: 'basic-info',
166
+ schema: {
167
+ dataType: 'object',
168
+ readonly: true,
169
+ interface: { type: core_1.AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },
170
+ },
171
+ },
172
+ ],
173
+ columns: [
174
+ { name: 'reportId' },
175
+ { name: 'status' },
176
+ { name: 'trigger' },
177
+ { name: 'startedAt' },
178
+ { name: 'completedAt' },
179
+ ],
180
+ interfaces: {
181
+ master: {
182
+ list: {
183
+ actions: [
184
+ {
185
+ title: '@report-management:report-generation.actions.open-frozen-viewer',
186
+ icon: 'fa-light fa-snowflake',
187
+ command: {
188
+ name: report_generation_types_1.REPORT_GENERATION_OPEN_FROZEN_COMMAND,
189
+ options: {
190
+ reportId: '{{ context.eval("reportId") }}',
191
+ runId: '{{ context.eval("id") }}',
192
+ },
193
+ },
194
+ priority: 'primary',
195
+ type: 'view',
196
+ scope: entity_1.AXPEntityCommandScope.Individual,
197
+ default: true,
198
+ },
199
+ ],
200
+ views: [(0, entity_1.createAllQueryView)({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],
201
+ },
202
+ },
203
+ },
204
+ };
205
+ });
206
+ }
207
+ //#endregion
208
+ //# sourceMappingURL=report-generation-request.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-generation-request.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/contracts/src/entities/report-generation-request/report-generation-request.entity.ts"],"names":[],"mappings":";;AAuBA,oFAqLC;;AA5MD,iEAA2F;AAC3F,qEAAgH;AAChH,mDAA+C;AAC/C,2EAAsF;AAEtF,4DAA4D;AAE5D,MAAM,IAAI,GAAG,uDAAuD,CAAC;AAErE,MAAM,YAAY,GAAG;IACnB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,kBAAkB,EAAE;IACpD,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,mBAAmB,EAAE;IACtD,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,qBAAqB,EAAE;IAC1D,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,kBAAkB,EAAE;IACpD,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,qBAAqB,EAAE;CAC3D,CAAC;AAEF,MAAM,aAAa,GAAG;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Catalog } from '@acorex-platform/framework-shared/entity';
2
+ /**
3
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
4
+ * so RootConfig imports stay light. Server seed and client `local-entities`
5
+ * consume this catalog explicitly.
6
+ */
7
+ export declare const reportManagementLocalEntityCatalog: AXPLocalEntityCatalog;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ //#region ----- Imports -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.reportManagementLocalEntityCatalog = void 0;
5
+ const root_config_1 = require("./root-config");
6
+ //#endregion
7
+ //#region ----- Local entity catalog -----
8
+ /**
9
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
10
+ * so RootConfig imports stay light. Server seed and client `local-entities`
11
+ * consume this catalog explicitly.
12
+ */
13
+ exports.reportManagementLocalEntityCatalog = {
14
+ moduleName: root_config_1.RootConfig.module.name,
15
+ loaders: {
16
+ [root_config_1.RootConfig.entities.querySnapshot.name]: () => import('./entities/query-snapshot/query-snapshot.entity.js').then((m) => m.querySnapshotEntityFactory()),
17
+ [root_config_1.RootConfig.entities.querySnapshotPolicy.name]: () => import('./entities/query-snapshot-policy/query-snapshot-policy.entity.js').then((m) => m.querySnapshotPolicyEntityFactory()),
18
+ [root_config_1.RootConfig.entities.report.name]: () => import('./entities/report/report.entity.js').then((m) => m.reportEntityFactory()),
19
+ [root_config_1.RootConfig.entities.category.name]: () => import('./entities/report-category/report-category.entity.js').then((m) => m.reportCategoryEntityFactory()),
20
+ [root_config_1.RootConfig.entities.reportGenerationRequest.name]: () => import('./entities/report-generation-request/report-generation-request.entity.js').then((m) => m.reportGenerationRequestEntityFactory()),
21
+ },
22
+ };
23
+ //#endregion
24
+ //# sourceMappingURL=entity-catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-catalog.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-catalog.ts"],"names":[],"mappings":";AAAA,6BAA6B;;;AAI7B,+CAA2C;AAE3C,YAAY;A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@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.querySnapshotPolicyEntityFactory = void 0;
4
+ var query_snapshot_policy_entity_1 = require("./entities/query-snapshot-policy/query-snapshot-policy.entity");
5
+ Object.defineProperty(exports, "querySnapshotPolicyEntityFactory", { enumerable: true, get: function () { return query_snapshot_policy_entity_1.querySnapshotPolicyEntityFactory; } });
6
+ //# sourceMappingURL=entity-entry.query-snapshot-policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.query-snapshot-policy.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.query-snapshot-policy.ts"],"names":[],"mappings":";;;AAAA,8GAAiH;AAAxG,gJAAA,gCAAgC,OAAA"}
@@ -0,0 +1 @@
1
+ export { querySnapshotEntityFactory } from './entities/query-snapshot/query-snapshot.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.querySnapshotEntityFactory = void 0;
4
+ var query_snapshot_entity_1 = require("./entities/query-snapshot/query-snapshot.entity");
5
+ Object.defineProperty(exports, "querySnapshotEntityFactory", { enumerable: true, get: function () { return query_snapshot_entity_1.querySnapshotEntityFactory; } });
6
+ //# sourceMappingURL=entity-entry.query-snapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.query-snapshot.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.query-snapshot.ts"],"names":[],"mappings":";;;AAAA,yFAA6F;AAApF,mIAAA,0BAA0B,OAAA"}
@@ -0,0 +1 @@
1
+ export { reportCategoryEntityFactory } from './entities/report-category/report-category.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportCategoryEntityFactory = void 0;
4
+ var report_category_entity_1 = require("./entities/report-category/report-category.entity");
5
+ Object.defineProperty(exports, "reportCategoryEntityFactory", { enumerable: true, get: function () { return report_category_entity_1.reportCategoryEntityFactory; } });
6
+ //# sourceMappingURL=entity-entry.report-category.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.report-category.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.report-category.ts"],"names":[],"mappings":";;;AAAA,4FAAgG;AAAvF,qIAAA,2BAA2B,OAAA"}
@@ -0,0 +1 @@
1
+ export { reportGenerationRequestEntityFactory } from './entities/report-generation-request/report-generation-request.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportGenerationRequestEntityFactory = void 0;
4
+ var report_generation_request_entity_1 = require("./entities/report-generation-request/report-generation-request.entity");
5
+ Object.defineProperty(exports, "reportGenerationRequestEntityFactory", { enumerable: true, get: function () { return report_generation_request_entity_1.reportGenerationRequestEntityFactory; } });
6
+ //# sourceMappingURL=entity-entry.report-generation-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.report-generation-request.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.report-generation-request.ts"],"names":[],"mappings":";;;AAAA,0HAA6H;AAApH,wJAAA,oCAAoC,OAAA"}
@@ -0,0 +1 @@
1
+ export { reportEntityFactory } from './entities/report/report.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportEntityFactory = void 0;
4
+ var report_entity_1 = require("./entities/report/report.entity");
5
+ Object.defineProperty(exports, "reportEntityFactory", { enumerable: true, get: function () { return report_entity_1.reportEntityFactory; } });
6
+ //# sourceMappingURL=entity-entry.report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.report.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/entity-entry.report.ts"],"names":[],"mappings":";;;AAAA,iEAAsE;AAA7D,oHAAA,mBAAmB,OAAA"}
@@ -1,6 +1,11 @@
1
+ export * from './commands.keys';
1
2
  export * from './features.keys';
2
3
  export * from './menu.keys';
3
4
  export * from './permission.keys';
5
+ export * from './settings.keys';
4
6
  export * from './root-config';
7
+ export * from './manifest';
5
8
  export * from './report.types';
9
+ export * from './report-generation.types';
10
+ export * from './runtime.keys';
6
11
  export * from './entities';
@@ -2,11 +2,16 @@
2
2
  //#region ---- Contracts barrel ----
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./commands.keys"), exports);
5
6
  tslib_1.__exportStar(require("./features.keys"), exports);
6
7
  tslib_1.__exportStar(require("./menu.keys"), exports);
7
8
  tslib_1.__exportStar(require("./permission.keys"), exports);
9
+ tslib_1.__exportStar(require("./settings.keys"), exports);
8
10
  tslib_1.__exportStar(require("./root-config"), exports);
11
+ tslib_1.__exportStar(require("./manifest"), exports);
9
12
  tslib_1.__exportStar(require("./report.types"), exports);
13
+ tslib_1.__exportStar(require("./report-generation.types"), exports);
14
+ tslib_1.__exportStar(require("./runtime.keys"), exports);
10
15
  //#endregion
11
16
  tslib_1.__exportStar(require("./entities"), exports);
12
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEpC,0DAAgC;AAChC,sDAA4B;AAC5B,4DAAkC;AAElC,wDAA8B;AAC9B,yDAA+B;AAE/B,YAAY;AAEZ,qDAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEpC,0DAAgC;AAChC,0DAAgC;AAChC,sDAA4B;AAC5B,4DAAkC;AAClC,0DAAgC;AAEhC,wDAA8B;AAC9B,qDAA2B;AAC3B,yDAA+B;AAC/B,oEAA0C;AAC1C,yDAA+B;AAE/B,YAAY;AAEZ,qDAA2B"}
@@ -0,0 +1,6 @@
1
+ import { AXPModuleManifest } from '@acorex-platform/framework-shared/core';
2
+ /**
3
+ * Report Management Module Manifest.
4
+ * Defines module metadata, features, and provider references.
5
+ */
6
+ export declare const ReportManagementManifest: AXPModuleManifest;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ //#region ---- Imports ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ReportManagementManifest = void 0;
5
+ const root_config_1 = require("./root-config");
6
+ //#endregion
7
+ //#region ---- Manifest Definition ----
8
+ /**
9
+ * Report Management Module Manifest.
10
+ * Defines module metadata, features, and provider references.
11
+ */
12
+ exports.ReportManagementManifest = {
13
+ name: root_config_1.RootConfig.module.name,
14
+ version: '1.0.0',
15
+ title: root_config_1.RootConfig.module.title,
16
+ icon: root_config_1.RootConfig.module.icon,
17
+ i18n: root_config_1.RootConfig.config.i18n,
18
+ type: 'platform',
19
+ domain: 'data',
20
+ required: true,
21
+ // Module dependencies (optional)
22
+ };
23
+ //#endregion
24
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/manifest.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;AAG/B,+CAA2C;AAE3C,YAAY;AAEZ,2CAA2C;AAE3C;;;GAGG;AACU,QAAA,wBAAwB,GAAsB;IACzD,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,wBAAU,CAAC,MAAM,CAAC,KAAK;IAC9B,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAG,IAAI;IAEf,iCAAiC;CAClC,CAAC;AAEF,YAAY"}
@@ -1,19 +1,35 @@
1
+ /**
2
+ * Insights & Reporting capabilities used by this module.
3
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
4
+ */
5
+ export declare const AXPInsightsReportingPermissionKeys: {
6
+ readonly Access: "InsightsReporting:Permission:Access";
7
+ readonly MaintainReports: "InsightsReporting:Permission:MaintainReports";
8
+ readonly MaintainData: "InsightsReporting:Permission:MaintainData";
9
+ readonly ViewActivityInsight: "InsightsReporting:Permission:ViewActivityInsight";
10
+ readonly ManageActivityInsight: "InsightsReporting:Permission:ManageActivityInsight";
11
+ readonly Setup: "InsightsReporting:Permission:Setup";
12
+ };
13
+ /**
14
+ * @deprecated Prefer {@link AXPInsightsReportingPermissionKeys}.
15
+ * Legacy nested shape kept so existing imports compile during migration.
16
+ */
1
17
  export declare const AXMPermissionsKeys: {
2
- ReportManagement: {
3
- Management: string;
4
- Report: {
5
- Management: string;
6
- View: string;
7
- Create: string;
8
- Update: string;
9
- Delete: string;
18
+ readonly ReportManagement: {
19
+ readonly Management: "InsightsReporting:Permission:MaintainReports";
20
+ readonly Report: {
21
+ readonly Management: "InsightsReporting:Permission:MaintainReports";
22
+ readonly View: "InsightsReporting:Permission:MaintainReports";
23
+ readonly Create: "InsightsReporting:Permission:MaintainReports";
24
+ readonly Update: "InsightsReporting:Permission:MaintainReports";
25
+ readonly Delete: "InsightsReporting:Permission:MaintainReports";
10
26
  };
11
- Category: {
12
- Management: string;
13
- View: string;
14
- Create: string;
15
- Update: string;
16
- Delete: string;
27
+ readonly Category: {
28
+ readonly Management: "InsightsReporting:Permission:Setup";
29
+ readonly View: "InsightsReporting:Permission:Setup";
30
+ readonly Create: "InsightsReporting:Permission:Setup";
31
+ readonly Update: "InsightsReporting:Permission:Setup";
32
+ readonly Delete: "InsightsReporting:Permission:Setup";
17
33
  };
18
34
  };
19
35
  };
@@ -1,22 +1,38 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AXMPermissionsKeys = void 0;
3
+ exports.AXMPermissionsKeys = exports.AXPInsightsReportingPermissionKeys = void 0;
4
+ /**
5
+ * Insights & Reporting capabilities used by this module.
6
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
7
+ */
8
+ exports.AXPInsightsReportingPermissionKeys = {
9
+ Access: 'InsightsReporting:Permission:Access',
10
+ MaintainReports: 'InsightsReporting:Permission:MaintainReports',
11
+ MaintainData: 'InsightsReporting:Permission:MaintainData',
12
+ ViewActivityInsight: 'InsightsReporting:Permission:ViewActivityInsight',
13
+ ManageActivityInsight: 'InsightsReporting:Permission:ManageActivityInsight',
14
+ Setup: 'InsightsReporting:Permission:Setup',
15
+ };
16
+ /**
17
+ * @deprecated Prefer {@link AXPInsightsReportingPermissionKeys}.
18
+ * Legacy nested shape kept so existing imports compile during migration.
19
+ */
4
20
  exports.AXMPermissionsKeys = {
5
21
  ReportManagement: {
6
- Management: 'ReportManagement:Permission:Management',
22
+ Management: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
7
23
  Report: {
8
- Management: 'ReportManagement:Permission:Report.Management',
9
- View: 'ReportManagement:Permission:Report.View',
10
- Create: 'ReportManagement:Permission:Report.Create',
11
- Update: 'ReportManagement:Permission:Report.Update',
12
- Delete: 'ReportManagement:Permission:Report.Delete',
24
+ Management: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
25
+ View: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
26
+ Create: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
27
+ Update: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
28
+ Delete: exports.AXPInsightsReportingPermissionKeys.MaintainReports,
13
29
  },
14
30
  Category: {
15
- Management: 'ReportManagement:Permission:Category.Management',
16
- View: 'ReportManagement:Permission:Category.View',
17
- Create: 'ReportManagement:Permission:Category.Create',
18
- Update: 'ReportManagement:Permission:Category.Update',
19
- Delete: 'ReportManagement:Permission:Category.Delete',
31
+ Management: exports.AXPInsightsReportingPermissionKeys.Setup,
32
+ View: exports.AXPInsightsReportingPermissionKeys.Setup,
33
+ Create: exports.AXPInsightsReportingPermissionKeys.Setup,
34
+ Update: exports.AXPInsightsReportingPermissionKeys.Setup,
35
+ Delete: exports.AXPInsightsReportingPermissionKeys.Setup,
20
36
  },
21
37
  },
22
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/permission.keys.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,gBAAgB,EAAE;QAChB,UAAU,EAAE,wCAAwC;QACpD,MAAM,EAAE;YACN,UAAU,EAAE,+CAA+C;YAC3D,IAAI,EAAE,yCAAyC;YAC/C,MAAM,EAAE,2CAA2C;YACnD,MAAM,EAAE,2CAA2C;YACnD,MAAM,EAAE,2CAA2C;SACpD;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,iDAAiD;YAC7D,IAAI,EAAE,2CAA2C;YACjD,MAAM,EAAE,6CAA6C;YACrD,MAAM,EAAE,6CAA6C;YACrD,MAAM,EAAE,6CAA6C;SACtD;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/permission.keys.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,kCAAkC,GAAG;IAChD,MAAM,EAAE,qCAAqC;IAC7C,eAAe,EAAE,8CAA8C;IAC/D,YAAY,EAAE,2CAA2C;IACzD,mBAAmB,EAAE,kDAAkD;IACvE,qBAAqB,EAAE,oDAAoD;IAC3E,KAAK,EAAE,oCAAoC;CACnC,CAAC;AAEX;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAChC,gBAAgB,EAAE;QAChB,UAAU,EAAE,0CAAkC,CAAC,eAAe;QAC9D,MAAM,EAAE;YACN,UAAU,EAAE,0CAAkC,CAAC,eAAe;YAC9D,IAAI,EAAE,0CAAkC,CAAC,eAAe;YACxD,MAAM,EAAE,0CAAkC,CAAC,eAAe;YAC1D,MAAM,EAAE,0CAAkC,CAAC,eAAe;YAC1D,MAAM,EAAE,0CAAkC,CAAC,eAAe;SAC3D;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,0CAAkC,CAAC,KAAK;YACpD,IAAI,EAAE,0CAAkC,CAAC,KAAK;YAC9C,MAAM,EAAE,0CAAkC,CAAC,KAAK;YAChD,MAAM,EAAE,0CAAkC,CAAC,KAAK;YAChD,MAAM,EAAE,0CAAkC,CAAC,KAAK;SACjD;KACF;CACO,CAAC"}
@@ -0,0 +1,97 @@
1
+ import type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';
2
+ import type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
3
+ import type { AXPReportArtifactKind, AXPReportLayoutDefinition } from './report.types';
4
+ export type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
5
+ export type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';
6
+ export interface AXPReportGenerationArtifact {
7
+ kind: AXPReportArtifactKind;
8
+ fileId?: string;
9
+ contentType?: string;
10
+ fileName?: string;
11
+ rowCount?: number;
12
+ byteLength?: number;
13
+ lastError?: string;
14
+ }
15
+ export declare const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = "ReportManagement:ReportGeneration";
16
+ export declare const REPORT_GENERATION_OPEN_FROZEN_COMMAND = "ReportManagement.Report:OpenViewer";
17
+ /** In-app inbox correlation id for a completed report generation run. */
18
+ export declare function buildReportGenerationNotificationCorrelationId(runId: string): string;
19
+ export interface AXMReportGenerationRequest extends AXPEntityModel<string> {
20
+ reportId: string;
21
+ layoutId?: string;
22
+ layoutIds?: string[];
23
+ parameters?: Record<string, unknown>;
24
+ formats: AXPReportArtifactKind[];
25
+ trigger: AXPReportGenerationTrigger;
26
+ status: AXPReportGenerationStatus;
27
+ requestedBy?: string;
28
+ jobId?: string;
29
+ scheduleId?: string;
30
+ scheduledOccurrence?: string;
31
+ startedAt?: string;
32
+ completedAt?: string;
33
+ durationMs?: number;
34
+ lastError?: string;
35
+ expiresAt?: string;
36
+ sourceRequestId?: string;
37
+ /** When true, skip in-app notification because the report viewer is watching this run inline. */
38
+ suppressNotificationOnComplete?: boolean;
39
+ artifacts: AXPReportGenerationArtifact[];
40
+ }
41
+ export interface AXPReportViewerFreeze {
42
+ version: 1;
43
+ reportId: string;
44
+ generatedAt: string;
45
+ parameters: Record<string, unknown>;
46
+ definition?: {
47
+ title: AXPMultiLanguageString;
48
+ defaultLayoutId: string;
49
+ layouts: AXPReportLayoutDefinition[];
50
+ };
51
+ dataSources: Array<{
52
+ layoutId: string;
53
+ queryName: string;
54
+ result: AXPRuntimeQueryResult;
55
+ }>;
56
+ }
57
+ export interface AXPReportGenerationCreateInput {
58
+ reportId: string;
59
+ layoutId?: string;
60
+ layoutIds?: string[];
61
+ parameters?: Record<string, unknown>;
62
+ formats?: AXPReportArtifactKind[];
63
+ trigger?: AXPReportGenerationTrigger;
64
+ sourceRequestId?: string;
65
+ scheduleId?: string;
66
+ scheduledOccurrence?: string;
67
+ /** Set when the report viewer will poll and show the result inline. */
68
+ suppressNotificationOnComplete?: boolean;
69
+ }
70
+ export interface AXPReportGenerationReleaseInlineWatchInput {
71
+ id: string;
72
+ }
73
+ export interface AXPReportGenerationCreateResult {
74
+ id: string;
75
+ jobId?: string;
76
+ status: AXPReportGenerationStatus;
77
+ /** True when an existing run was returned instead of creating a new row. */
78
+ deduplicated?: boolean;
79
+ }
80
+ export interface AXPReportGenerationExecuteInput {
81
+ reportRequestId: string;
82
+ }
83
+ export interface AXPReportGenerationExecuteResult {
84
+ reportRequestId: string;
85
+ fileIds: string[];
86
+ rowCount?: number;
87
+ }
88
+ export interface AXPReportGenerationGetInput {
89
+ id: string;
90
+ }
91
+ export interface AXPReportGenerationGetViewerFreezeInput {
92
+ id: string;
93
+ }
94
+ export interface AXPReportGenerationListMineInput {
95
+ skip?: number;
96
+ take?: number;
97
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ //#region ----- Imports -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.REPORT_GENERATION_OPEN_FROZEN_COMMAND = exports.REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = void 0;
5
+ exports.buildReportGenerationNotificationCorrelationId = buildReportGenerationNotificationCorrelationId;
6
+ exports.REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';
7
+ exports.REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';
8
+ /** In-app inbox correlation id for a completed report generation run. */
9
+ function buildReportGenerationNotificationCorrelationId(runId) {
10
+ const normalized = runId.trim();
11
+ return normalized ? `report-generation:${normalized}` : 'report-generation:';
12
+ }
13
+ //#endregion
14
+ //# sourceMappingURL=report-generation.types.js.map