@acorex-platform/module-report-management-client 0.0.30 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/fesm2022/{acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-BDCuhd5O.mjs → acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DENcGULA.mjs} +1018 -386
  2. package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DENcGULA.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs +143 -0
  4. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs +183 -0
  6. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs +129 -0
  8. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs +260 -0
  10. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs +170 -0
  12. package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs +83 -0
  14. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-D50GUBH6.mjs +83 -0
  16. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-D50GUBH6.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-DuR9ZuN2.mjs +123 -0
  18. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-DuR9ZuN2.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-Dc4uvjsG.mjs +69 -0
  20. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-Dc4uvjsG.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-mJUQuk89.mjs +200 -0
  22. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-mJUQuk89.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-CMDFRHeK.mjs +110 -0
  24. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-CMDFRHeK.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog.mjs +2 -0
  26. package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs +23 -1
  28. package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs.map +1 -1
  29. package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page-component.provider-C6tJPxri.mjs → acorex-platform-module-report-management-client-entity-reports-page-component.provider-B_i4p7tQ.mjs} +3 -3
  30. package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page-component.provider-C6tJPxri.mjs.map → acorex-platform-module-report-management-client-entity-reports-page-component.provider-B_i4p7tQ.mjs.map} +1 -1
  31. package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-fBftKdQW.mjs → acorex-platform-module-report-management-client-entity-reports-page.component-D27Gtma6.mjs} +2 -2
  32. package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-fBftKdQW.mjs.map → acorex-platform-module-report-management-client-entity-reports-page.component-D27Gtma6.mjs.map} +1 -1
  33. package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs +33 -0
  34. package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs.map +1 -0
  35. package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-B9msMMod.mjs → acorex-platform-module-report-management-client-report-popup-viewer.component-B6aTfRp0.mjs} +2 -2
  36. package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-B9msMMod.mjs.map → acorex-platform-module-report-management-client-report-popup-viewer.component-B6aTfRp0.mjs.map} +1 -1
  37. package/fesm2022/acorex-platform-module-report-management-client.mjs +1 -1
  38. package/package.json +29 -1
  39. package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.d.ts +5 -0
  40. package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.d.ts +5 -0
  41. package/types/acorex-platform-module-report-management-client-contracts-entities-report-category.d.ts +5 -0
  42. package/types/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.d.ts +5 -0
  43. package/types/acorex-platform-module-report-management-client-contracts-entities-report.d.ts +5 -0
  44. package/types/acorex-platform-module-report-management-client-contracts-entity-catalog.d.ts +10 -0
  45. package/types/acorex-platform-module-report-management-client-contracts.d.ts +99 -58
  46. package/types/acorex-platform-module-report-management-client-local-entities.d.ts +12 -0
  47. package/types/acorex-platform-module-report-management-client.d.ts +46 -4
  48. package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-BDCuhd5O.mjs.map +0 -1
@@ -0,0 +1,260 @@
1
+ import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'report-management',
6
+ module: 'ReportManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'report-management',
12
+ name: config.module,
13
+ title: `@${config.i18n}:module.title`,
14
+ icon: 'fa-light fa-chart-bar',
15
+ },
16
+ entities: {
17
+ dataSet: {
18
+ name: 'DataSet',
19
+ title: `t("dataSet", { scope: "${config.i18n}" })`,
20
+ titlePlural: `t("dataSetPlural", { scope: "${config.i18n}" })`,
21
+ icon: 'fa-light fa-default',
22
+ },
23
+ category: {
24
+ name: 'ReportCategory',
25
+ fullName: `${config.module}.ReportCategory`,
26
+ title: `@${config.i18n}:reports.entities.category.title`,
27
+ titlePlural: `@${config.i18n}:reports.entities.category.plural`,
28
+ icon: 'fa-light fa-folder',
29
+ },
30
+ report: {
31
+ name: 'Report',
32
+ fullName: `${config.module}.Report`,
33
+ title: `@${config.i18n}:reports.entities.report.title`,
34
+ titlePlural: `@${config.i18n}:reports.entities.report.plural`,
35
+ icon: 'fa-light fa-file-chart-pie',
36
+ },
37
+ querySnapshotPolicy: {
38
+ name: 'QuerySnapshotPolicy',
39
+ fullName: `${config.module}.QuerySnapshotPolicy`,
40
+ title: `@${config.i18n}:query-snapshots.entities.policy.title`,
41
+ titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,
42
+ icon: 'fa-light fa-sliders',
43
+ },
44
+ querySnapshot: {
45
+ name: 'QuerySnapshot',
46
+ fullName: `${config.module}.QuerySnapshot`,
47
+ title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,
48
+ titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,
49
+ icon: 'fa-light fa-camera',
50
+ },
51
+ reportGenerationRequest: {
52
+ name: 'ReportGenerationRequest',
53
+ fullName: `${config.module}.ReportGenerationRequest`,
54
+ title: `@${config.i18n}:report-generation.entities.request.title`,
55
+ titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,
56
+ icon: 'fa-light fa-file-export',
57
+ },
58
+ },
59
+ };
60
+
61
+ //#region ----- Imports -----
62
+ const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';
63
+ const REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';
64
+ /** In-app inbox correlation id for a completed report generation run. */
65
+ function buildReportGenerationNotificationCorrelationId(runId) {
66
+ const normalized = runId.trim();
67
+ return normalized ? `report-generation:${normalized}` : 'report-generation:';
68
+ }
69
+ //#endregion
70
+
71
+ //#region ---- Report generation request entity factory ----
72
+ const I18N = '@report-management:report-generation.entities.request';
73
+ const STATUS_ITEMS = [
74
+ { name: 'queued', title: `${I18N}.statuses.queued` },
75
+ { name: 'running', title: `${I18N}.statuses.running` },
76
+ { name: 'completed', title: `${I18N}.statuses.completed` },
77
+ { name: 'failed', title: `${I18N}.statuses.failed` },
78
+ { name: 'cancelled', title: `${I18N}.statuses.cancelled` },
79
+ ];
80
+ const TRIGGER_ITEMS = [
81
+ { name: 'manual', title: `${I18N}.triggers.manual` },
82
+ { name: 'schedule', title: `${I18N}.triggers.schedule` },
83
+ { name: 'export', title: `${I18N}.triggers.export` },
84
+ ];
85
+ async function reportGenerationRequestEntityFactory() {
86
+ return {
87
+ module: RootConfig.module.name,
88
+ name: RootConfig.entities.reportGenerationRequest.name,
89
+ title: RootConfig.entities.reportGenerationRequest.title,
90
+ icon: RootConfig.entities.reportGenerationRequest.icon,
91
+ formats: {
92
+ individual: RootConfig.entities.reportGenerationRequest.title,
93
+ plural: RootConfig.entities.reportGenerationRequest.titlePlural,
94
+ searchResult: {
95
+ title: '{{ reportId }}',
96
+ description: '{{ status }}',
97
+ },
98
+ },
99
+ groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
100
+ properties: [
101
+ {
102
+ name: 'reportId',
103
+ title: `${I18N}.fields.report-id`,
104
+ groupId: 'basic-info',
105
+ schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
106
+ options: {
107
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
108
+ sort: { enabled: true },
109
+ },
110
+ },
111
+ {
112
+ name: 'layoutId',
113
+ title: `${I18N}.fields.layout-id`,
114
+ groupId: 'basic-info',
115
+ schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
116
+ },
117
+ {
118
+ name: 'status',
119
+ title: `${I18N}.fields.status`,
120
+ groupId: 'basic-info',
121
+ schema: {
122
+ dataType: 'string',
123
+ readonly: true,
124
+ interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },
125
+ },
126
+ options: {
127
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
128
+ sort: { enabled: true },
129
+ },
130
+ },
131
+ {
132
+ name: 'trigger',
133
+ title: `${I18N}.fields.trigger`,
134
+ groupId: 'basic-info',
135
+ schema: {
136
+ dataType: 'string',
137
+ readonly: true,
138
+ interface: { type: AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },
139
+ },
140
+ options: { filter: { advance: { enabled: true } } },
141
+ },
142
+ {
143
+ name: 'requestedBy',
144
+ title: `${I18N}.fields.requested-by`,
145
+ groupId: 'basic-info',
146
+ schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
147
+ options: { filter: { advance: { enabled: true } } },
148
+ },
149
+ {
150
+ name: 'jobId',
151
+ title: `${I18N}.fields.job-id`,
152
+ groupId: 'basic-info',
153
+ schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
154
+ },
155
+ {
156
+ name: 'startedAt',
157
+ title: `${I18N}.fields.started-at`,
158
+ groupId: 'basic-info',
159
+ schema: {
160
+ dataType: 'datetime',
161
+ readonly: true,
162
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
163
+ },
164
+ options: { sort: { enabled: true } },
165
+ },
166
+ {
167
+ name: 'completedAt',
168
+ title: `${I18N}.fields.completed-at`,
169
+ groupId: 'basic-info',
170
+ schema: {
171
+ dataType: 'datetime',
172
+ readonly: true,
173
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
174
+ },
175
+ options: { sort: { enabled: true } },
176
+ },
177
+ {
178
+ name: 'durationMs',
179
+ title: `${I18N}.fields.duration-ms`,
180
+ groupId: 'basic-info',
181
+ schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },
182
+ },
183
+ {
184
+ name: 'lastError',
185
+ title: `${I18N}.fields.last-error`,
186
+ groupId: 'basic-info',
187
+ schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },
188
+ },
189
+ {
190
+ name: 'expiresAt',
191
+ title: `${I18N}.fields.expires-at`,
192
+ groupId: 'basic-info',
193
+ schema: {
194
+ dataType: 'datetime',
195
+ readonly: true,
196
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
197
+ },
198
+ },
199
+ {
200
+ name: 'parameters',
201
+ title: `${I18N}.fields.parameters`,
202
+ groupId: 'basic-info',
203
+ schema: {
204
+ dataType: 'object',
205
+ readonly: true,
206
+ interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },
207
+ },
208
+ },
209
+ {
210
+ name: 'artifacts',
211
+ title: `${I18N}.fields.artifacts`,
212
+ groupId: 'basic-info',
213
+ schema: {
214
+ dataType: 'object',
215
+ readonly: true,
216
+ interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },
217
+ },
218
+ },
219
+ ],
220
+ columns: [
221
+ { name: 'reportId' },
222
+ { name: 'status' },
223
+ { name: 'trigger' },
224
+ { name: 'startedAt' },
225
+ { name: 'completedAt' },
226
+ ],
227
+ interfaces: {
228
+ master: {
229
+ list: {
230
+ actions: [
231
+ {
232
+ title: '@report-management:report-generation.actions.open-frozen-viewer',
233
+ icon: 'fa-light fa-snowflake',
234
+ command: {
235
+ name: REPORT_GENERATION_OPEN_FROZEN_COMMAND,
236
+ options: {
237
+ reportId: '{{ context.eval("reportId") }}',
238
+ runId: '{{ context.eval("id") }}',
239
+ },
240
+ },
241
+ priority: 'primary',
242
+ type: 'view',
243
+ scope: AXPEntityCommandScope.Individual,
244
+ default: true,
245
+ },
246
+ ],
247
+ views: [createAllQueryView({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],
248
+ },
249
+ },
250
+ },
251
+ };
252
+ }
253
+ //#endregion
254
+
255
+ /**
256
+ * Generated bundle index. Do not edit.
257
+ */
258
+
259
+ export { reportGenerationRequestEntityFactory };
260
+ //# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/report-generation.types.ts","../../../../libs/modules/report-management/contracts/src/entities/report-generation-request/report-generation-request.entity.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n querySnapshotPolicy: {\n name: 'QuerySnapshotPolicy',\n fullName: `${config.module}.QuerySnapshotPolicy`,\n title: `@${config.i18n}:query-snapshots.entities.policy.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n querySnapshot: {\n name: 'QuerySnapshot',\n fullName: `${config.module}.QuerySnapshot`,\n title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,\n icon: 'fa-light fa-camera',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\nimport type {\n AXPReportArtifactKind,\n AXPReportLayoutDefinition,\n} from './report.types';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';\n\nexport interface AXPReportGenerationArtifact {\n kind: AXPReportArtifactKind;\n fileId?: string;\n contentType?: string;\n fileName?: string;\n rowCount?: number;\n byteLength?: number;\n lastError?: string;\n}\n\nexport const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';\n\nexport const REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';\n\n/** In-app inbox correlation id for a completed report generation run. */\nexport function buildReportGenerationNotificationCorrelationId(runId: string): string {\n const normalized = runId.trim();\n return normalized ? `report-generation:${normalized}` : 'report-generation:';\n}\n\nexport interface AXMReportGenerationRequest extends AXPEntityModel<string> {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats: AXPReportArtifactKind[];\n trigger: AXPReportGenerationTrigger;\n status: AXPReportGenerationStatus;\n requestedBy?: string;\n jobId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n startedAt?: string;\n completedAt?: string;\n durationMs?: number;\n lastError?: string;\n expiresAt?: string;\n sourceRequestId?: string;\n /** When true, skip in-app notification because the report viewer is watching this run inline. */\n suppressNotificationOnComplete?: boolean;\n artifacts: AXPReportGenerationArtifact[];\n}\n\nexport interface AXPReportViewerFreeze {\n version: 1;\n reportId: string;\n generatedAt: string;\n parameters: Record<string, unknown>;\n definition?: {\n title: AXPMultiLanguageString;\n defaultLayoutId: string;\n layouts: AXPReportLayoutDefinition[];\n };\n dataSources: Array<{\n layoutId: string;\n queryName: string;\n result: AXPRuntimeQueryResult;\n }>;\n}\n\nexport interface AXPReportGenerationCreateInput {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats?: AXPReportArtifactKind[];\n trigger?: AXPReportGenerationTrigger;\n sourceRequestId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n /** Set when the report viewer will poll and show the result inline. */\n suppressNotificationOnComplete?: boolean;\n}\n\nexport interface AXPReportGenerationReleaseInlineWatchInput {\n id: string;\n}\n\nexport interface AXPReportGenerationCreateResult {\n id: string;\n jobId?: string;\n status: AXPReportGenerationStatus;\n /** True when an existing run was returned instead of creating a new row. */\n deduplicated?: boolean;\n}\n\nexport interface AXPReportGenerationExecuteInput {\n reportRequestId: string;\n}\n\nexport interface AXPReportGenerationExecuteResult {\n reportRequestId: string;\n fileIds: string[];\n rowCount?: number;\n}\n\nexport interface AXPReportGenerationGetInput {\n id: string;\n}\n\nexport interface AXPReportGenerationGetViewerFreezeInput {\n id: string;\n}\n\nexport interface AXPReportGenerationListMineInput {\n skip?: number;\n take?: number;\n}\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { REPORT_GENERATION_OPEN_FROZEN_COMMAND } from '../../report-generation.types';\n\n//#region ---- Report generation request entity factory ----\n\nconst I18N = '@report-management:report-generation.entities.request';\n\nconst STATUS_ITEMS = [\n { name: 'queued', title: `${I18N}.statuses.queued` },\n { name: 'running', title: `${I18N}.statuses.running` },\n { name: 'completed', title: `${I18N}.statuses.completed` },\n { name: 'failed', title: `${I18N}.statuses.failed` },\n { name: 'cancelled', title: `${I18N}.statuses.cancelled` },\n];\n\nconst TRIGGER_ITEMS = [\n { name: 'manual', title: `${I18N}.triggers.manual` },\n { name: 'schedule', title: `${I18N}.triggers.schedule` },\n { name: 'export', title: `${I18N}.triggers.export` },\n];\n\nexport async function reportGenerationRequestEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.reportGenerationRequest.name,\n title: RootConfig.entities.reportGenerationRequest.title,\n icon: RootConfig.entities.reportGenerationRequest.icon,\n formats: {\n individual: RootConfig.entities.reportGenerationRequest.title,\n plural: RootConfig.entities.reportGenerationRequest.titlePlural,\n searchResult: {\n title: '{{ reportId }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'reportId',\n title: `${I18N}.fields.report-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'layoutId',\n title: `${I18N}.fields.layout-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'trigger',\n title: `${I18N}.fields.trigger`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'requestedBy',\n title: `${I18N}.fields.requested-by`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'jobId',\n title: `${I18N}.fields.job-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'startedAt',\n title: `${I18N}.fields.started-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'completedAt',\n title: `${I18N}.fields.completed-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'lastError',\n title: `${I18N}.fields.last-error`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'expiresAt',\n title: `${I18N}.fields.expires-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n },\n {\n name: 'parameters',\n title: `${I18N}.fields.parameters`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n {\n name: 'artifacts',\n title: `${I18N}.fields.artifacts`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n ],\n columns: [\n { name: 'reportId' },\n { name: 'status' },\n { name: 'trigger' },\n { name: 'startedAt' },\n { name: 'completedAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@report-management:report-generation.actions.open-frozen-viewer',\n icon: 'fa-light fa-snowflake',\n command: {\n name: REPORT_GENERATION_OPEN_FROZEN_COMMAND,\n options: {\n reportId: '{{ context.eval(\"reportId\") }}',\n runId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.report-generation-request';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,MAAM,EAAE,kBAAkB;CAC3B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,uBAAuB;AAC9B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAClD,YAAA,WAAW,EAAE,CAAA,6BAAA,EAAgC,MAAM,CAAC,IAAI,CAAA,IAAA,CA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AAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,UAAU,EAAE;YACpB,EAAE,IAAI,EAAE,QAAQ,EAAE;YAClB,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,WAAW,EAAE;YACrB,EAAE,IAAI,EAAE,aAAa,EAAE;AACxB,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE;AACP,wBAAA;AACE,4BAAA,KAAK,EAAE,iEAAiE;AACxE,4BAAA,IAAI,EAAE,uBAAuB;AAC7B,4BAAA,OAAO,EAAE;AACP,gCAAA,IAAI,EAAE,qCAAqC;AAC3C,gCAAA,OAAO,EAAE;AACP,oCAAA,QAAQ,EAAE,gCAAgC;AAC1C,oCAAA,KAAK,EAAE,0BAA0B;AAClC,iCAAA;AACF,6BAAA;AACD,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACvC,4BAAA,OAAO,EAAE,IAAI;AACd,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC/E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;AChMA;;AAEG;;;;"}
@@ -0,0 +1,170 @@
1
+ import { AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';
2
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
3
+
4
+ const config = {
5
+ i18n: 'report-management',
6
+ module: 'ReportManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'report-management',
12
+ name: config.module,
13
+ title: `@${config.i18n}:module.title`,
14
+ icon: 'fa-light fa-chart-bar',
15
+ },
16
+ entities: {
17
+ dataSet: {
18
+ name: 'DataSet',
19
+ title: `t("dataSet", { scope: "${config.i18n}" })`,
20
+ titlePlural: `t("dataSetPlural", { scope: "${config.i18n}" })`,
21
+ icon: 'fa-light fa-default',
22
+ },
23
+ category: {
24
+ name: 'ReportCategory',
25
+ fullName: `${config.module}.ReportCategory`,
26
+ title: `@${config.i18n}:reports.entities.category.title`,
27
+ titlePlural: `@${config.i18n}:reports.entities.category.plural`,
28
+ icon: 'fa-light fa-folder',
29
+ },
30
+ report: {
31
+ name: 'Report',
32
+ fullName: `${config.module}.Report`,
33
+ title: `@${config.i18n}:reports.entities.report.title`,
34
+ titlePlural: `@${config.i18n}:reports.entities.report.plural`,
35
+ icon: 'fa-light fa-file-chart-pie',
36
+ },
37
+ querySnapshotPolicy: {
38
+ name: 'QuerySnapshotPolicy',
39
+ fullName: `${config.module}.QuerySnapshotPolicy`,
40
+ title: `@${config.i18n}:query-snapshots.entities.policy.title`,
41
+ titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,
42
+ icon: 'fa-light fa-sliders',
43
+ },
44
+ querySnapshot: {
45
+ name: 'QuerySnapshot',
46
+ fullName: `${config.module}.QuerySnapshot`,
47
+ title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,
48
+ titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,
49
+ icon: 'fa-light fa-camera',
50
+ },
51
+ reportGenerationRequest: {
52
+ name: 'ReportGenerationRequest',
53
+ fullName: `${config.module}.ReportGenerationRequest`,
54
+ title: `@${config.i18n}:report-generation.entities.request.title`,
55
+ titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,
56
+ icon: 'fa-light fa-file-export',
57
+ },
58
+ },
59
+ };
60
+
61
+ //#region ---- Report definition entity factory ----
62
+ async function reportEntityFactory() {
63
+ return {
64
+ module: RootConfig.module.name,
65
+ name: RootConfig.entities.report.name,
66
+ title: RootConfig.entities.report.title,
67
+ icon: RootConfig.entities.report.icon,
68
+ plugins: [{ name: 'category', options: { readonly: true } }],
69
+ formats: {
70
+ individual: RootConfig.entities.report.title,
71
+ plural: RootConfig.entities.report.titlePlural,
72
+ searchResult: {
73
+ title: '{{ title }}',
74
+ description: '{{ description }}',
75
+ },
76
+ },
77
+ groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
78
+ properties: [
79
+ {
80
+ name: 'title',
81
+ title: '@general:terms.common.title',
82
+ groupId: 'basic-info',
83
+ options: {
84
+ sort: { enabled: true },
85
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
86
+ },
87
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
88
+ validations: [{ rule: 'required' }],
89
+ },
90
+ {
91
+ name: 'description',
92
+ title: '@general:terms.common.description',
93
+ groupId: 'basic-info',
94
+ options: {
95
+ sort: { enabled: true },
96
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
97
+ },
98
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },
99
+ },
100
+ {
101
+ name: 'parameterGroups',
102
+ title: '@report-management:reports.entities.report.fields.parameter-groups',
103
+ groupId: 'basic-info',
104
+ schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },
105
+ },
106
+ {
107
+ name: 'layouts',
108
+ title: '@report-management:reports.entities.report.fields.layouts',
109
+ groupId: 'basic-info',
110
+ schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },
111
+ },
112
+ {
113
+ name: 'defaultLayoutId',
114
+ title: '@report-management:reports.entities.report.fields.default-layout-id',
115
+ groupId: 'basic-info',
116
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
117
+ },
118
+ {
119
+ name: 'permissions',
120
+ title: '@general:terms.security.permissions',
121
+ groupId: 'basic-info',
122
+ schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },
123
+ },
124
+ {
125
+ name: 'entities',
126
+ title: '@report-management:reports.entities.report.fields.entities',
127
+ groupId: 'basic-info',
128
+ schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },
129
+ },
130
+ {
131
+ name: 'generation',
132
+ title: '@report-management:reports.entities.report.fields.generation',
133
+ groupId: 'basic-info',
134
+ schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },
135
+ },
136
+ ],
137
+ columns: [{ name: 'title' }, { name: 'description' }],
138
+ interfaces: {
139
+ master: {
140
+ list: {
141
+ actions: [
142
+ {
143
+ title: '@general:actions.open.title',
144
+ icon: 'fa-light fa-play',
145
+ command: {
146
+ name: 'ReportManagement.Report:OpenViewer',
147
+ options: {
148
+ reportId: '{{ context.eval("id") }}',
149
+ },
150
+ },
151
+ priority: 'primary',
152
+ type: 'view',
153
+ scope: AXPEntityCommandScope.Individual,
154
+ default: true,
155
+ },
156
+ ],
157
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
158
+ },
159
+ },
160
+ },
161
+ };
162
+ }
163
+ //#endregion
164
+
165
+ /**
166
+ * Generated bundle index. Do not edit.
167
+ */
168
+
169
+ export { reportEntityFactory };
170
+ //# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entities-report.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-report-management-client-contracts-entities-report.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/entities/report/report.entity.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entities-report.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n querySnapshotPolicy: {\n name: 'QuerySnapshotPolicy',\n fullName: `${config.module}.QuerySnapshotPolicy`,\n title: `@${config.i18n}:query-snapshots.entities.policy.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n querySnapshot: {\n name: 'QuerySnapshot',\n fullName: `${config.module}.QuerySnapshot`,\n title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,\n icon: 'fa-light fa-camera',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","import {\n AXPEntity,\n AXPEntityCommandScope,\n createAllQueryView,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Report definition entity factory ----\n\nexport async function reportEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.report.name,\n title: RootConfig.entities.report.title,\n icon: RootConfig.entities.report.icon,\n plugins: [{ name: 'category', options: { readonly: true } }],\n formats: {\n individual: RootConfig.entities.report.title,\n plural: RootConfig.entities.report.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'parameterGroups',\n title: '@report-management:reports.entities.report.fields.parameter-groups',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'layouts',\n title: '@report-management:reports.entities.report.fields.layouts',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'defaultLayoutId',\n title: '@report-management:reports.entities.report.fields.default-layout-id',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'permissions',\n title: '@general:terms.security.permissions',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'entities',\n title: '@report-management:reports.entities.report.fields.entities',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'generation',\n title: '@report-management:reports.entities.report.fields.generation',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@general:actions.open.title',\n icon: 'fa-light fa-play',\n command: {\n name: 'ReportManagement.Report:OpenViewer',\n options: {\n reportId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.report';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,MAAM,EAAE,kBAAkB;CAC3B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,uBAAuB;AAC9B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAClD,YAAA,WAAW,EAAE,CAAA,6BAAA,EAAgC,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAC9D,YAAA,IAAI,EAAE,qBAAqB;AAC5B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,eAAA,CAAiB;AAC3C,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,gCAAA,CAAkC;AACxD,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,iCAAA,CAAmC;AAC/D,YAAA,IAAI,EAAE,oBAAoB;AAC3B,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,C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AAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACvC,4BAAA,OAAO,EAAE,IAAI;AACd,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;AChHA;;AAEG;;;;"}
@@ -0,0 +1,83 @@
1
+ const config = {
2
+ i18n: 'report-management',
3
+ module: 'ReportManagement',
4
+ };
5
+ const RootConfig = {
6
+ config,
7
+ module: {
8
+ route: 'report-management',
9
+ name: config.module,
10
+ title: `@${config.i18n}:module.title`,
11
+ icon: 'fa-light fa-chart-bar',
12
+ },
13
+ entities: {
14
+ dataSet: {
15
+ name: 'DataSet',
16
+ title: `t("dataSet", { scope: "${config.i18n}" })`,
17
+ titlePlural: `t("dataSetPlural", { scope: "${config.i18n}" })`,
18
+ icon: 'fa-light fa-default',
19
+ },
20
+ category: {
21
+ name: 'ReportCategory',
22
+ fullName: `${config.module}.ReportCategory`,
23
+ title: `@${config.i18n}:reports.entities.category.title`,
24
+ titlePlural: `@${config.i18n}:reports.entities.category.plural`,
25
+ icon: 'fa-light fa-folder',
26
+ },
27
+ report: {
28
+ name: 'Report',
29
+ fullName: `${config.module}.Report`,
30
+ title: `@${config.i18n}:reports.entities.report.title`,
31
+ titlePlural: `@${config.i18n}:reports.entities.report.plural`,
32
+ icon: 'fa-light fa-file-chart-pie',
33
+ },
34
+ querySnapshotPolicy: {
35
+ name: 'QuerySnapshotPolicy',
36
+ fullName: `${config.module}.QuerySnapshotPolicy`,
37
+ title: `@${config.i18n}:query-snapshots.entities.policy.title`,
38
+ titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,
39
+ icon: 'fa-light fa-sliders',
40
+ },
41
+ querySnapshot: {
42
+ name: 'QuerySnapshot',
43
+ fullName: `${config.module}.QuerySnapshot`,
44
+ title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,
45
+ titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,
46
+ icon: 'fa-light fa-camera',
47
+ },
48
+ reportGenerationRequest: {
49
+ name: 'ReportGenerationRequest',
50
+ fullName: `${config.module}.ReportGenerationRequest`,
51
+ title: `@${config.i18n}:report-generation.entities.request.title`,
52
+ titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,
53
+ icon: 'fa-light fa-file-export',
54
+ },
55
+ },
56
+ };
57
+
58
+ //#region ----- Imports -----
59
+ //#endregion
60
+ //#region ----- Local entity catalog -----
61
+ /**
62
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
63
+ * so RootConfig imports stay light. Server seed and client `local-entities`
64
+ * consume this catalog explicitly.
65
+ */
66
+ const reportManagementLocalEntityCatalog = {
67
+ moduleName: RootConfig.module.name,
68
+ loaders: {
69
+ [RootConfig.entities.querySnapshot.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-DuR9ZuN2.mjs').then((m) => m.querySnapshotEntityFactory()),
70
+ [RootConfig.entities.querySnapshotPolicy.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-D50GUBH6.mjs').then((m) => m.querySnapshotPolicyEntityFactory()),
71
+ [RootConfig.entities.report.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-CMDFRHeK.mjs').then((m) => m.reportEntityFactory()),
72
+ [RootConfig.entities.category.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-Dc4uvjsG.mjs').then((m) => m.reportCategoryEntityFactory()),
73
+ [RootConfig.entities.reportGenerationRequest.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-mJUQuk89.mjs').then((m) => m.reportGenerationRequestEntityFactory()),
74
+ },
75
+ };
76
+ //#endregion
77
+
78
+ /**
79
+ * Generated bundle index. Do not edit.
80
+ */
81
+
82
+ export { RootConfig as R, reportManagementLocalEntityCatalog as r };
83
+ //# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CgrfJQLl.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/entity-catalog.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n querySnapshotPolicy: {\n name: 'QuerySnapshotPolicy',\n fullName: `${config.module}.QuerySnapshotPolicy`,\n title: `@${config.i18n}:query-snapshots.entities.policy.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n querySnapshot: {\n name: 'QuerySnapshot',\n fullName: `${config.module}.QuerySnapshot`,\n title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,\n icon: 'fa-light fa-camera',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const reportManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.querySnapshot.name]: () =>\n import('./entities/query-snapshot/query-snapshot.entity.js').then((m) => m.querySnapshotEntityFactory()),\n [RootConfig.entities.querySnapshotPolicy.name]: () =>\n import('./entities/query-snapshot-policy/query-snapshot-policy.entity.js').then((m) => m.querySnapshotPolicyEntityFactory()),\n [RootConfig.entities.report.name]: () =>\n import('./entities/report/report.entity.js').then((m) => m.reportEntityFactory()),\n [RootConfig.entities.category.name]: () =>\n import('./entities/report-category/report-category.entity.js').then((m) => m.reportCategoryEntityFactory()),\n [RootConfig.entities.reportGenerationRequest.name]: () =>\n import('./entities/report-generation-request/report-generation-request.entity.js').then((m) => m.reportGenerationRequestEntityFactory()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,MAAM,EAAE,kBAAkB;CAC3B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN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