@acorex-platform/module-system-insight-client 0.0.32 → 0.0.37

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 (91) hide show
  1. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs +163 -0
  2. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-audit-log.mjs +741 -0
  4. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-audit-log.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-dashboard-widget-config.mjs +161 -0
  6. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-dashboard-widget-config.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-error-event.mjs +365 -0
  8. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-error-event.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-http-request-log.mjs +439 -0
  10. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-http-request-log.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-job-execution-log.mjs +445 -0
  12. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-job-execution-log.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-log-entry.mjs +730 -0
  14. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-log-entry.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-metric-point.mjs +290 -0
  16. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-metric-point.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-observability-data-source.mjs +161 -0
  18. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-observability-data-source.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-retention-policy.mjs +182 -0
  20. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-retention-policy.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-saved-view.mjs +162 -0
  22. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-saved-view.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-slow-request.mjs +312 -0
  24. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-slow-request.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-entry.mjs +539 -0
  26. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-entry.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-span.mjs +304 -0
  28. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-span.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-acorex-platform-module-system-insight-client-contracts-entity-catalog-L_KQ_ZRS.mjs +135 -0
  30. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-acorex-platform-module-system-insight-client-contracts-entity-catalog-L_KQ_ZRS.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-alert-rule.entity-CVQ8zi2n.mjs +43 -0
  32. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-alert-rule.entity-CVQ8zi2n.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-audit-log.entity-DUUbh-K4.mjs +638 -0
  34. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-audit-log.entity-DUUbh-K4.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-commands.keys-yv865ABJ.mjs +20 -0
  36. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-commands.keys-yv865ABJ.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-dashboard-widget-config.entity-CQPGHj3-.mjs +58 -0
  38. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-dashboard-widget-config.entity-CQPGHj3-.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-error-event.entity-41bQET9n.mjs +203 -0
  40. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-error-event.entity-41bQET9n.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-http-request-log.entity-DuUG39be.mjs +277 -0
  42. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-http-request-log.entity-DuUG39be.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-job-execution-log.entity-DjScVny4.mjs +283 -0
  44. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-job-execution-log.entity-DjScVny4.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-log-entry.entity-KhwOnohn.mjs +533 -0
  46. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-log-entry.entity-KhwOnohn.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-metric-point.entity-kfxxSxvp.mjs +128 -0
  48. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-metric-point.entity-kfxxSxvp.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-observability-data-source.entity-BM0wTN3C.mjs +58 -0
  50. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-observability-data-source.entity-BM0wTN3C.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs +45 -0
  52. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-retention-policy.entity-BU_FXy6_.mjs +79 -0
  54. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-retention-policy.entity-BU_FXy6_.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-saved-view.entity-BhhIVSRT.mjs +59 -0
  56. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-saved-view.entity-BhhIVSRT.mjs.map +1 -0
  57. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-settings.keys-CI-iHRBX.mjs +38 -0
  58. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-settings.keys-CI-iHRBX.mjs.map +1 -0
  59. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-slow-request.entity-CdQongZo.mjs +150 -0
  60. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-slow-request.entity-CdQongZo.mjs.map +1 -0
  61. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-entry.entity-B_B8zT6c.mjs +342 -0
  62. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-entry.entity-B_B8zT6c.mjs.map +1 -0
  63. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-span.entity-BJGn3-6F.mjs +142 -0
  64. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-span.entity-BJGn3-6F.mjs.map +1 -0
  65. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog.mjs +2 -0
  66. package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog.mjs.map +1 -0
  67. package/fesm2022/acorex-platform-module-system-insight-client-contracts.mjs.map +1 -1
  68. package/fesm2022/{acorex-platform-module-system-insight-client-index-D-Sy2f4K.mjs → acorex-platform-module-system-insight-client-index-CeO40uWE.mjs} +2 -2
  69. package/fesm2022/{acorex-platform-module-system-insight-client-index-D-Sy2f4K.mjs.map → acorex-platform-module-system-insight-client-index-CeO40uWE.mjs.map} +1 -1
  70. package/fesm2022/acorex-platform-module-system-insight-client-local-entities.mjs +42 -0
  71. package/fesm2022/acorex-platform-module-system-insight-client-local-entities.mjs.map +1 -0
  72. package/fesm2022/acorex-platform-module-system-insight-client-open-trace-timeline.command-DPbr-AYZ.mjs.map +1 -1
  73. package/fesm2022/acorex-platform-module-system-insight-client.mjs +2 -2
  74. package/fesm2022/acorex-platform-module-system-insight-client.mjs.map +1 -1
  75. package/package.json +65 -1
  76. package/types/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.d.ts +5 -0
  77. package/types/acorex-platform-module-system-insight-client-contracts-entities-audit-log.d.ts +5 -0
  78. package/types/acorex-platform-module-system-insight-client-contracts-entities-dashboard-widget-config.d.ts +5 -0
  79. package/types/acorex-platform-module-system-insight-client-contracts-entities-error-event.d.ts +5 -0
  80. package/types/acorex-platform-module-system-insight-client-contracts-entities-http-request-log.d.ts +5 -0
  81. package/types/acorex-platform-module-system-insight-client-contracts-entities-job-execution-log.d.ts +5 -0
  82. package/types/acorex-platform-module-system-insight-client-contracts-entities-log-entry.d.ts +5 -0
  83. package/types/acorex-platform-module-system-insight-client-contracts-entities-metric-point.d.ts +5 -0
  84. package/types/acorex-platform-module-system-insight-client-contracts-entities-observability-data-source.d.ts +5 -0
  85. package/types/acorex-platform-module-system-insight-client-contracts-entities-retention-policy.d.ts +5 -0
  86. package/types/acorex-platform-module-system-insight-client-contracts-entities-saved-view.d.ts +5 -0
  87. package/types/acorex-platform-module-system-insight-client-contracts-entities-slow-request.d.ts +5 -0
  88. package/types/acorex-platform-module-system-insight-client-contracts-entities-trace-entry.d.ts +5 -0
  89. package/types/acorex-platform-module-system-insight-client-contracts-entities-trace-span.d.ts +5 -0
  90. package/types/acorex-platform-module-system-insight-client-contracts-entity-catalog.d.ts +10 -0
  91. package/types/acorex-platform-module-system-insight-client-local-entities.d.ts +12 -0
@@ -0,0 +1,304 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { AXPEntityCommandScope, AXPEntityQueryType, createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- Command Keys ----
5
+ const AXMSystemInsightCommandKeys = {
6
+ LogEntry: {
7
+ Export: 'SystemInsight:LogEntry:Export',
8
+ Clear: 'SystemInsight:LogEntry:Clear',
9
+ },
10
+ AlertRule: {
11
+ CreateFromFilter: 'SystemInsight:AlertRule:CreateFromFilter',
12
+ },
13
+ Notification: {
14
+ SendAlert: 'SystemInsight:Notification:SendAlert',
15
+ },
16
+ Trace: {
17
+ OpenTimeline: 'SystemInsight:Trace:OpenTimeline',
18
+ },
19
+ };
20
+ //#endregion
21
+
22
+ //#region ---- Query Keys ----
23
+ const AXMSystemInsightQueryKeys = {
24
+ LogEntry: {
25
+ List: 'SystemInsight:LogEntry:List',
26
+ GetOne: 'SystemInsight:LogEntry:GetOne',
27
+ Aggregate: 'SystemInsight:LogEntry:Aggregate',
28
+ },
29
+ HttpRequestLog: {
30
+ List: 'SystemInsight:HttpRequestLog:List',
31
+ GetOne: 'SystemInsight:HttpRequestLog:GetOne',
32
+ },
33
+ JobExecutionLog: {
34
+ List: 'SystemInsight:JobExecutionLog:List',
35
+ GetOne: 'SystemInsight:JobExecutionLog:GetOne',
36
+ },
37
+ TraceEntry: {
38
+ List: 'SystemInsight:TraceEntry:List',
39
+ GetOne: 'SystemInsight:TraceEntry:GetOne',
40
+ },
41
+ TraceSpan: {
42
+ List: 'SystemInsight:TraceSpan:List',
43
+ GetOne: 'SystemInsight:TraceSpan:GetOne',
44
+ },
45
+ TraceTimeline: {
46
+ Get: 'SystemInsight:TraceTimeline:Get',
47
+ },
48
+ ErrorEvent: {
49
+ List: 'SystemInsight:ErrorEvent:List',
50
+ GetOne: 'SystemInsight:ErrorEvent:GetOne',
51
+ Aggregate: 'SystemInsight:ErrorEvent:Aggregate',
52
+ },
53
+ SlowRequest: {
54
+ List: 'SystemInsight:SlowRequest:List',
55
+ GetOne: 'SystemInsight:SlowRequest:GetOne',
56
+ },
57
+ MetricPoint: {
58
+ List: 'SystemInsight:MetricPoint:List',
59
+ GetOne: 'SystemInsight:MetricPoint:GetOne',
60
+ Range: 'SystemInsight:MetricPoint:Range',
61
+ },
62
+ };
63
+ //#endregion
64
+
65
+ const config = {
66
+ i18n: 'system-insight',
67
+ };
68
+ const RootConfig = {
69
+ config,
70
+ module: {
71
+ route: 'system-insight',
72
+ module: 'system-insight',
73
+ name: 'SystemInsight',
74
+ title: '@system-insight:module.title',
75
+ icon: 'fa-light fa-monitor-waveform',
76
+ },
77
+ entities: {
78
+ auditLog: {
79
+ name: 'AuditLog',
80
+ title: '@system-insight:logs.entities.audit-log.title',
81
+ titlePlural: '@system-insight:logs.entities.audit-log.plural',
82
+ icon: 'fa-light fa-file-code',
83
+ },
84
+ logEntry: {
85
+ name: 'LogEntry',
86
+ title: '@system-insight:entities.log-entry.title',
87
+ titlePlural: '@system-insight:entities.log-entry.plural',
88
+ icon: 'fa-light fa-file-lines',
89
+ },
90
+ httpRequestLog: {
91
+ name: 'HttpRequestLog',
92
+ title: '@system-insight:entities.http-request-log.title',
93
+ titlePlural: '@system-insight:entities.http-request-log.plural',
94
+ icon: 'fa-light fa-globe',
95
+ },
96
+ jobExecutionLog: {
97
+ name: 'JobExecutionLog',
98
+ title: '@system-insight:entities.job-execution-log.title',
99
+ titlePlural: '@system-insight:entities.job-execution-log.plural',
100
+ icon: 'fa-light fa-clock',
101
+ },
102
+ traceEntry: {
103
+ name: 'TraceEntry',
104
+ title: '@system-insight:entities.trace-entry.title',
105
+ titlePlural: '@system-insight:entities.trace-entry.plural',
106
+ icon: 'fa-light fa-route',
107
+ },
108
+ traceSpan: {
109
+ name: 'TraceSpan',
110
+ title: '@system-insight:entities.trace-span.title',
111
+ titlePlural: '@system-insight:entities.trace-span.plural',
112
+ icon: 'fa-light fa-diagram-project',
113
+ },
114
+ errorEvent: {
115
+ name: 'ErrorEvent',
116
+ title: '@system-insight:entities.error-event.title',
117
+ titlePlural: '@system-insight:entities.error-event.plural',
118
+ icon: 'fa-light fa-circle-exclamation',
119
+ },
120
+ slowRequest: {
121
+ name: 'SlowRequest',
122
+ title: '@system-insight:entities.slow-request.title',
123
+ titlePlural: '@system-insight:entities.slow-request.plural',
124
+ icon: 'fa-light fa-hourglass-half',
125
+ },
126
+ metricPoint: {
127
+ name: 'MetricPoint',
128
+ title: '@system-insight:entities.metric-point.title',
129
+ titlePlural: '@system-insight:entities.metric-point.plural',
130
+ icon: 'fa-light fa-chart-line',
131
+ },
132
+ savedView: {
133
+ name: 'SavedView',
134
+ title: '@system-insight:entities.saved-view.title',
135
+ titlePlural: '@system-insight:entities.saved-view.plural',
136
+ icon: 'fa-light fa-bookmark',
137
+ },
138
+ alertRule: {
139
+ name: 'AlertRule',
140
+ title: '@system-insight:entities.alert-rule.title',
141
+ titlePlural: '@system-insight:entities.alert-rule.plural',
142
+ icon: 'fa-light fa-bell',
143
+ },
144
+ observabilityDataSource: {
145
+ name: 'ObservabilityDataSource',
146
+ title: '@system-insight:entities.observability-data-source.title',
147
+ titlePlural: '@system-insight:entities.observability-data-source.plural',
148
+ icon: 'fa-light fa-database',
149
+ },
150
+ retentionPolicy: {
151
+ name: 'RetentionPolicy',
152
+ title: '@system-insight:entities.retention-policy.title',
153
+ titlePlural: '@system-insight:entities.retention-policy.plural',
154
+ icon: 'fa-light fa-calendar-clock',
155
+ },
156
+ dashboardWidgetConfig: {
157
+ name: 'DashboardWidgetConfig',
158
+ title: '@system-insight:entities.dashboard-widget-config.title',
159
+ titlePlural: '@system-insight:entities.dashboard-widget-config.plural',
160
+ icon: 'fa-light fa-grid-2',
161
+ },
162
+ },
163
+ };
164
+
165
+ const listFieldOptions = {
166
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
167
+ sort: { enabled: true },
168
+ };
169
+ const readOnlyCrud = async () => {
170
+ throw new Error('Observability data is read-only');
171
+ };
172
+ async function traceSpanEntityFactory() {
173
+ const i18n = RootConfig.config.i18n;
174
+ const properties = [
175
+ {
176
+ name: 'spanId',
177
+ title: '@system-insight:fields.span-id',
178
+ groupId: 'general',
179
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
180
+ options: listFieldOptions,
181
+ },
182
+ {
183
+ name: 'traceId',
184
+ title: '@system-insight:fields.trace-id',
185
+ groupId: 'general',
186
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
187
+ options: listFieldOptions,
188
+ },
189
+ {
190
+ name: 'operationName',
191
+ title: '@system-insight:fields.operation',
192
+ groupId: 'general',
193
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
194
+ options: listFieldOptions,
195
+ },
196
+ {
197
+ name: 'serviceName',
198
+ title: '@system-insight:fields.service-name',
199
+ groupId: 'general',
200
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
201
+ options: listFieldOptions,
202
+ },
203
+ {
204
+ name: 'startTime',
205
+ title: '@system-insight:fields.start-time',
206
+ groupId: 'general',
207
+ schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },
208
+ options: listFieldOptions,
209
+ },
210
+ {
211
+ name: 'duration',
212
+ title: '@system-insight:fields.duration',
213
+ groupId: 'general',
214
+ schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
215
+ options: listFieldOptions,
216
+ },
217
+ {
218
+ name: 'status',
219
+ title: '@system-insight:fields.status',
220
+ groupId: 'general',
221
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
222
+ options: listFieldOptions,
223
+ },
224
+ ];
225
+ return {
226
+ module: RootConfig.module.name,
227
+ name: RootConfig.entities.traceSpan.name,
228
+ title: RootConfig.entities.traceSpan.title,
229
+ icon: RootConfig.entities.traceSpan.icon,
230
+ formats: {
231
+ individual: RootConfig.entities.traceSpan.title,
232
+ plural: RootConfig.entities.traceSpan.titlePlural,
233
+ searchResult: {
234
+ title: '{{ operationName }}',
235
+ description: RootConfig.entities.traceSpan.title,
236
+ },
237
+ },
238
+ groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
239
+ properties,
240
+ columns: [
241
+ { name: 'startTime' },
242
+ { name: 'operationName' },
243
+ { name: 'serviceName' },
244
+ { name: 'duration' },
245
+ { name: 'status' },
246
+ ],
247
+ queries: {
248
+ list: { execute: AXMSystemInsightQueryKeys.TraceSpan.List, type: AXPEntityQueryType.List },
249
+ byKey: { execute: AXMSystemInsightQueryKeys.TraceSpan.GetOne, type: AXPEntityQueryType.Single },
250
+ },
251
+ commands: {
252
+ create: { execute: readOnlyCrud },
253
+ update: { execute: readOnlyCrud },
254
+ delete: { execute: readOnlyCrud },
255
+ },
256
+ interfaces: {
257
+ master: {
258
+ list: {
259
+ actions: [
260
+ {
261
+ title: '@general:actions.detail.title',
262
+ icon: 'fa-light fa-eye',
263
+ command: 'Entity:View',
264
+ priority: 'primary',
265
+ type: 'view',
266
+ scope: AXPEntityCommandScope.Individual,
267
+ default: true,
268
+ },
269
+ ],
270
+ views: [
271
+ createAllQueryView({
272
+ sorts: [{ name: 'startTime', dir: 'desc' }],
273
+ }),
274
+ ],
275
+ },
276
+ single: {
277
+ title: '{{ operationName }}',
278
+ sections: [{ id: 'general' }],
279
+ properties: properties.map((property) => ({
280
+ name: property.name,
281
+ layout: { positions: { lg: { colSpan: 6 } } },
282
+ })),
283
+ actions: [
284
+ {
285
+ title: `@${i18n}:actions.view-trace.title`,
286
+ command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,
287
+ priority: 'secondary',
288
+ type: 'view',
289
+ scope: AXPEntityCommandScope.Individual,
290
+ hidden: `{{ !context.eval("traceId") }}`,
291
+ },
292
+ ],
293
+ },
294
+ },
295
+ },
296
+ };
297
+ }
298
+
299
+ /**
300
+ * Generated bundle index. Do not edit.
301
+ */
302
+
303
+ export { traceSpanEntityFactory };
304
+ //# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entities-trace-span.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entities-trace-span.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/commands.keys.ts","../../../../libs/modules/system-insight/contracts/src/queries.keys.ts","../../../../libs/modules/system-insight/contracts/src/root-config.ts","../../../../libs/modules/system-insight/contracts/src/entities/trace-span/trace-span.entity.ts","../../../../libs/modules/system-insight/contracts/src/acorex-platform-module-system-insight-client-contracts-entities-trace-span.ts"],"sourcesContent":["//#region ---- Command Keys ----\n\nexport const AXMSystemInsightCommandKeys = {\n LogEntry: {\n Export: 'SystemInsight:LogEntry:Export',\n Clear: 'SystemInsight:LogEntry:Clear',\n },\n AlertRule: {\n CreateFromFilter: 'SystemInsight:AlertRule:CreateFromFilter',\n },\n Notification: {\n SendAlert: 'SystemInsight:Notification:SendAlert',\n },\n Trace: {\n OpenTimeline: 'SystemInsight:Trace:OpenTimeline',\n },\n} as const;\n\n//#endregion\n","//#region ---- Query Keys ----\n\nexport const AXMSystemInsightQueryKeys = {\n LogEntry: {\n List: 'SystemInsight:LogEntry:List',\n GetOne: 'SystemInsight:LogEntry:GetOne',\n Aggregate: 'SystemInsight:LogEntry:Aggregate',\n },\n HttpRequestLog: {\n List: 'SystemInsight:HttpRequestLog:List',\n GetOne: 'SystemInsight:HttpRequestLog:GetOne',\n },\n JobExecutionLog: {\n List: 'SystemInsight:JobExecutionLog:List',\n GetOne: 'SystemInsight:JobExecutionLog:GetOne',\n },\n TraceEntry: {\n List: 'SystemInsight:TraceEntry:List',\n GetOne: 'SystemInsight:TraceEntry:GetOne',\n },\n TraceSpan: {\n List: 'SystemInsight:TraceSpan:List',\n GetOne: 'SystemInsight:TraceSpan:GetOne',\n },\n TraceTimeline: {\n Get: 'SystemInsight:TraceTimeline:Get',\n },\n ErrorEvent: {\n List: 'SystemInsight:ErrorEvent:List',\n GetOne: 'SystemInsight:ErrorEvent:GetOne',\n Aggregate: 'SystemInsight:ErrorEvent:Aggregate',\n },\n SlowRequest: {\n List: 'SystemInsight:SlowRequest:List',\n GetOne: 'SystemInsight:SlowRequest:GetOne',\n },\n MetricPoint: {\n List: 'SystemInsight:MetricPoint:List',\n GetOne: 'SystemInsight:MetricPoint:GetOne',\n Range: 'SystemInsight:MetricPoint:Range',\n },\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'system-insight',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'system-insight',\n module: 'system-insight',\n name: 'SystemInsight',\n title: '@system-insight:module.title',\n icon: 'fa-light fa-monitor-waveform',\n },\n entities: {\n auditLog: {\n name: 'AuditLog',\n title: '@system-insight:logs.entities.audit-log.title',\n titlePlural: '@system-insight:logs.entities.audit-log.plural',\n icon: 'fa-light fa-file-code',\n },\n logEntry: {\n name: 'LogEntry',\n title: '@system-insight:entities.log-entry.title',\n titlePlural: '@system-insight:entities.log-entry.plural',\n icon: 'fa-light fa-file-lines',\n },\n httpRequestLog: {\n name: 'HttpRequestLog',\n title: '@system-insight:entities.http-request-log.title',\n titlePlural: '@system-insight:entities.http-request-log.plural',\n icon: 'fa-light fa-globe',\n },\n jobExecutionLog: {\n name: 'JobExecutionLog',\n title: '@system-insight:entities.job-execution-log.title',\n titlePlural: '@system-insight:entities.job-execution-log.plural',\n icon: 'fa-light fa-clock',\n },\n traceEntry: {\n name: 'TraceEntry',\n title: '@system-insight:entities.trace-entry.title',\n titlePlural: '@system-insight:entities.trace-entry.plural',\n icon: 'fa-light fa-route',\n },\n traceSpan: {\n name: 'TraceSpan',\n title: '@system-insight:entities.trace-span.title',\n titlePlural: '@system-insight:entities.trace-span.plural',\n icon: 'fa-light fa-diagram-project',\n },\n errorEvent: {\n name: 'ErrorEvent',\n title: '@system-insight:entities.error-event.title',\n titlePlural: '@system-insight:entities.error-event.plural',\n icon: 'fa-light fa-circle-exclamation',\n },\n slowRequest: {\n name: 'SlowRequest',\n title: '@system-insight:entities.slow-request.title',\n titlePlural: '@system-insight:entities.slow-request.plural',\n icon: 'fa-light fa-hourglass-half',\n },\n metricPoint: {\n name: 'MetricPoint',\n title: '@system-insight:entities.metric-point.title',\n titlePlural: '@system-insight:entities.metric-point.plural',\n icon: 'fa-light fa-chart-line',\n },\n savedView: {\n name: 'SavedView',\n title: '@system-insight:entities.saved-view.title',\n titlePlural: '@system-insight:entities.saved-view.plural',\n icon: 'fa-light fa-bookmark',\n },\n alertRule: {\n name: 'AlertRule',\n title: '@system-insight:entities.alert-rule.title',\n titlePlural: '@system-insight:entities.alert-rule.plural',\n icon: 'fa-light fa-bell',\n },\n observabilityDataSource: {\n name: 'ObservabilityDataSource',\n title: '@system-insight:entities.observability-data-source.title',\n titlePlural: '@system-insight:entities.observability-data-source.plural',\n icon: 'fa-light fa-database',\n },\n retentionPolicy: {\n name: 'RetentionPolicy',\n title: '@system-insight:entities.retention-policy.title',\n titlePlural: '@system-insight:entities.retention-policy.plural',\n icon: 'fa-light fa-calendar-clock',\n },\n dashboardWidgetConfig: {\n name: 'DashboardWidgetConfig',\n title: '@system-insight:entities.dashboard-widget-config.title',\n titlePlural: '@system-insight:entities.dashboard-widget-config.plural',\n icon: 'fa-light fa-grid-2',\n },\n },\n} as const;\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n AXPEntityQueryType,\n createAllQueryView,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXMSystemInsightCommandKeys } from '../../commands.keys';\nimport { AXMSystemInsightQueryKeys } from '../../queries.keys';\nimport { RootConfig } from '../../root-config';\n\nconst listFieldOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nconst readOnlyCrud = async () => {\n throw new Error('Observability data is read-only');\n};\n\nexport async function traceSpanEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n const properties: AXPEntity['properties'] = [\n {\n name: 'spanId',\n title: '@system-insight:fields.span-id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'traceId',\n title: '@system-insight:fields.trace-id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'operationName',\n title: '@system-insight:fields.operation',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'serviceName',\n title: '@system-insight:fields.service-name',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'startTime',\n title: '@system-insight:fields.start-time',\n groupId: 'general',\n schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },\n options: listFieldOptions,\n },\n {\n name: 'duration',\n title: '@system-insight:fields.duration',\n groupId: 'general',\n schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },\n options: listFieldOptions,\n },\n {\n name: 'status',\n title: '@system-insight:fields.status',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n ];\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.traceSpan.name,\n title: RootConfig.entities.traceSpan.title,\n icon: RootConfig.entities.traceSpan.icon,\n formats: {\n individual: RootConfig.entities.traceSpan.title,\n plural: RootConfig.entities.traceSpan.titlePlural,\n searchResult: {\n title: '{{ operationName }}',\n description: RootConfig.entities.traceSpan.title,\n },\n },\n groups: [{ id: 'general', title: `@${i18n}:groups.general` }],\n properties,\n columns: [\n { name: 'startTime' },\n { name: 'operationName' },\n { name: 'serviceName' },\n { name: 'duration' },\n { name: 'status' },\n ],\n queries: {\n list: { execute: AXMSystemInsightQueryKeys.TraceSpan.List, type: AXPEntityQueryType.List },\n byKey: { execute: AXMSystemInsightQueryKeys.TraceSpan.GetOne, type: AXPEntityQueryType.Single },\n },\n commands: {\n create: { execute: readOnlyCrud },\n update: { execute: readOnlyCrud },\n delete: { execute: readOnlyCrud },\n },\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@general:actions.detail.title',\n icon: 'fa-light fa-eye',\n command: 'Entity:View',\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'startTime', dir: 'desc' }],\n }),\n ],\n },\n single: {\n title: '{{ operationName }}',\n sections: [{ id: 'general' }],\n properties: properties.map((property) => ({\n name: property.name,\n layout: { positions: { lg: { colSpan: 6 } } },\n })),\n actions: [\n {\n title: `@${i18n}:actions.view-trace.title`,\n command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n hidden: `{{ !context.eval(\"traceId\") }}`,\n },\n ],\n },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.trace-span';\n"],"names":[],"mappings":";;;AAAA;AAEO,MAAM,2BAA2B,GAAG;AACzC,IAAA,QAAQ,EAAE;AACR,QAAA,MAAM,EAAE,+BAA+B;AACvC,QAAA,KAAK,EAAE,8BAA8B;AACtC,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,gBAAgB,EAAE,0CAA0C;AAC7D,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,SAAS,EAAE,sCAAsC;AAClD,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,YAAY,EAAE,kCAAkC;AACjD,KAAA;CACO;AAEV;;AClBA;AAEO,MAAM,yBAAyB,GAAG;AACvC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE,6BAA6B;AACnC,QAAA,MAAM,EAAE,+BAA+B;AACvC,QAAA,SAAS,EAAE,kCAAkC;AAC9C,KAAA;AACD,IAAA,cAAc,EAAE;AACd,Q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 module: 'system-insight',
9
+ name: 'SystemInsight',
10
+ title: '@system-insight:module.title',
11
+ icon: 'fa-light fa-monitor-waveform',
12
+ },
13
+ entities: {
14
+ auditLog: {
15
+ name: 'AuditLog',
16
+ title: '@system-insight:logs.entities.audit-log.title',
17
+ titlePlural: '@system-insight:logs.entities.audit-log.plural',
18
+ icon: 'fa-light fa-file-code',
19
+ },
20
+ logEntry: {
21
+ name: 'LogEntry',
22
+ title: '@system-insight:entities.log-entry.title',
23
+ titlePlural: '@system-insight:entities.log-entry.plural',
24
+ icon: 'fa-light fa-file-lines',
25
+ },
26
+ httpRequestLog: {
27
+ name: 'HttpRequestLog',
28
+ title: '@system-insight:entities.http-request-log.title',
29
+ titlePlural: '@system-insight:entities.http-request-log.plural',
30
+ icon: 'fa-light fa-globe',
31
+ },
32
+ jobExecutionLog: {
33
+ name: 'JobExecutionLog',
34
+ title: '@system-insight:entities.job-execution-log.title',
35
+ titlePlural: '@system-insight:entities.job-execution-log.plural',
36
+ icon: 'fa-light fa-clock',
37
+ },
38
+ traceEntry: {
39
+ name: 'TraceEntry',
40
+ title: '@system-insight:entities.trace-entry.title',
41
+ titlePlural: '@system-insight:entities.trace-entry.plural',
42
+ icon: 'fa-light fa-route',
43
+ },
44
+ traceSpan: {
45
+ name: 'TraceSpan',
46
+ title: '@system-insight:entities.trace-span.title',
47
+ titlePlural: '@system-insight:entities.trace-span.plural',
48
+ icon: 'fa-light fa-diagram-project',
49
+ },
50
+ errorEvent: {
51
+ name: 'ErrorEvent',
52
+ title: '@system-insight:entities.error-event.title',
53
+ titlePlural: '@system-insight:entities.error-event.plural',
54
+ icon: 'fa-light fa-circle-exclamation',
55
+ },
56
+ slowRequest: {
57
+ name: 'SlowRequest',
58
+ title: '@system-insight:entities.slow-request.title',
59
+ titlePlural: '@system-insight:entities.slow-request.plural',
60
+ icon: 'fa-light fa-hourglass-half',
61
+ },
62
+ metricPoint: {
63
+ name: 'MetricPoint',
64
+ title: '@system-insight:entities.metric-point.title',
65
+ titlePlural: '@system-insight:entities.metric-point.plural',
66
+ icon: 'fa-light fa-chart-line',
67
+ },
68
+ savedView: {
69
+ name: 'SavedView',
70
+ title: '@system-insight:entities.saved-view.title',
71
+ titlePlural: '@system-insight:entities.saved-view.plural',
72
+ icon: 'fa-light fa-bookmark',
73
+ },
74
+ alertRule: {
75
+ name: 'AlertRule',
76
+ title: '@system-insight:entities.alert-rule.title',
77
+ titlePlural: '@system-insight:entities.alert-rule.plural',
78
+ icon: 'fa-light fa-bell',
79
+ },
80
+ observabilityDataSource: {
81
+ name: 'ObservabilityDataSource',
82
+ title: '@system-insight:entities.observability-data-source.title',
83
+ titlePlural: '@system-insight:entities.observability-data-source.plural',
84
+ icon: 'fa-light fa-database',
85
+ },
86
+ retentionPolicy: {
87
+ name: 'RetentionPolicy',
88
+ title: '@system-insight:entities.retention-policy.title',
89
+ titlePlural: '@system-insight:entities.retention-policy.plural',
90
+ icon: 'fa-light fa-calendar-clock',
91
+ },
92
+ dashboardWidgetConfig: {
93
+ name: 'DashboardWidgetConfig',
94
+ title: '@system-insight:entities.dashboard-widget-config.title',
95
+ titlePlural: '@system-insight:entities.dashboard-widget-config.plural',
96
+ icon: 'fa-light fa-grid-2',
97
+ },
98
+ },
99
+ };
100
+
101
+ //#region ----- Imports -----
102
+ //#endregion
103
+ //#region ----- Local entity catalog -----
104
+ /**
105
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
106
+ * so RootConfig imports stay light. Server seed and client `local-entities`
107
+ * consume this catalog explicitly.
108
+ */
109
+ const systemInsightLocalEntityCatalog = {
110
+ moduleName: RootConfig.module.name,
111
+ loaders: {
112
+ [RootConfig.entities.alertRule.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-alert-rule.entity-CVQ8zi2n.mjs').then((m) => m.alertRuleEntityFactory()),
113
+ [RootConfig.entities.auditLog.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-audit-log.entity-DUUbh-K4.mjs').then((m) => m.auditLogFactory()),
114
+ [RootConfig.entities.dashboardWidgetConfig.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-dashboard-widget-config.entity-CQPGHj3-.mjs').then((m) => m.dashboardWidgetConfigEntityFactory()),
115
+ [RootConfig.entities.errorEvent.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-error-event.entity-41bQET9n.mjs').then((m) => m.errorEventEntityFactory()),
116
+ [RootConfig.entities.httpRequestLog.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-http-request-log.entity-DuUG39be.mjs').then((m) => m.httpRequestLogEntityFactory()),
117
+ [RootConfig.entities.jobExecutionLog.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-job-execution-log.entity-DjScVny4.mjs').then((m) => m.jobExecutionLogEntityFactory()),
118
+ [RootConfig.entities.logEntry.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-log-entry.entity-KhwOnohn.mjs').then((m) => m.logEntryEntityFactory()),
119
+ [RootConfig.entities.metricPoint.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-metric-point.entity-kfxxSxvp.mjs').then((m) => m.metricPointEntityFactory()),
120
+ [RootConfig.entities.observabilityDataSource.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-observability-data-source.entity-BM0wTN3C.mjs').then((m) => m.observabilityDataSourceEntityFactory()),
121
+ [RootConfig.entities.retentionPolicy.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-retention-policy.entity-BU_FXy6_.mjs').then((m) => m.retentionPolicyEntityFactory()),
122
+ [RootConfig.entities.savedView.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-saved-view.entity-BhhIVSRT.mjs').then((m) => m.savedViewEntityFactory()),
123
+ [RootConfig.entities.slowRequest.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-slow-request.entity-CdQongZo.mjs').then((m) => m.slowRequestEntityFactory()),
124
+ [RootConfig.entities.traceEntry.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-entry.entity-B_B8zT6c.mjs').then((m) => m.traceEntryEntityFactory()),
125
+ [RootConfig.entities.traceSpan.name]: () => import('./acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-span.entity-BJGn3-6F.mjs').then((m) => m.traceSpanEntityFactory()),
126
+ },
127
+ };
128
+ //#endregion
129
+
130
+ /**
131
+ * Generated bundle index. Do not edit.
132
+ */
133
+
134
+ export { RootConfig as R, systemInsightLocalEntityCatalog as s };
135
+ //# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-acorex-platform-module-system-insight-client-contracts-entity-catalog-L_KQ_ZRS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-acorex-platform-module-system-insight-client-contracts-entity-catalog-L_KQ_ZRS.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/root-config.ts","../../../../libs/modules/system-insight/contracts/src/entity-catalog.ts","../../../../libs/modules/system-insight/contracts/src/acorex-platform-module-system-insight-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'system-insight',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'system-insight',\n module: 'system-insight',\n name: 'SystemInsight',\n title: '@system-insight:module.title',\n icon: 'fa-light fa-monitor-waveform',\n },\n entities: {\n auditLog: {\n name: 'AuditLog',\n title: '@system-insight:logs.entities.audit-log.title',\n titlePlural: '@system-insight:logs.entities.audit-log.plural',\n icon: 'fa-light fa-file-code',\n },\n logEntry: {\n name: 'LogEntry',\n title: '@system-insight:entities.log-entry.title',\n titlePlural: '@system-insight:entities.log-entry.plural',\n icon: 'fa-light fa-file-lines',\n },\n httpRequestLog: {\n name: 'HttpRequestLog',\n title: '@system-insight:entities.http-request-log.title',\n titlePlural: '@system-insight:entities.http-request-log.plural',\n icon: 'fa-light fa-globe',\n },\n jobExecutionLog: {\n name: 'JobExecutionLog',\n title: '@system-insight:entities.job-execution-log.title',\n titlePlural: '@system-insight:entities.job-execution-log.plural',\n icon: 'fa-light fa-clock',\n },\n traceEntry: {\n name: 'TraceEntry',\n title: '@system-insight:entities.trace-entry.title',\n titlePlural: '@system-insight:entities.trace-entry.plural',\n icon: 'fa-light fa-route',\n },\n traceSpan: {\n name: 'TraceSpan',\n title: '@system-insight:entities.trace-span.title',\n titlePlural: '@system-insight:entities.trace-span.plural',\n icon: 'fa-light fa-diagram-project',\n },\n errorEvent: {\n name: 'ErrorEvent',\n title: '@system-insight:entities.error-event.title',\n titlePlural: '@system-insight:entities.error-event.plural',\n icon: 'fa-light fa-circle-exclamation',\n },\n slowRequest: {\n name: 'SlowRequest',\n title: '@system-insight:entities.slow-request.title',\n titlePlural: '@system-insight:entities.slow-request.plural',\n icon: 'fa-light fa-hourglass-half',\n },\n metricPoint: {\n name: 'MetricPoint',\n title: '@system-insight:entities.metric-point.title',\n titlePlural: '@system-insight:entities.metric-point.plural',\n icon: 'fa-light fa-chart-line',\n },\n savedView: {\n name: 'SavedView',\n title: '@system-insight:entities.saved-view.title',\n titlePlural: '@system-insight:entities.saved-view.plural',\n icon: 'fa-light fa-bookmark',\n },\n alertRule: {\n name: 'AlertRule',\n title: '@system-insight:entities.alert-rule.title',\n titlePlural: '@system-insight:entities.alert-rule.plural',\n icon: 'fa-light fa-bell',\n },\n observabilityDataSource: {\n name: 'ObservabilityDataSource',\n title: '@system-insight:entities.observability-data-source.title',\n titlePlural: '@system-insight:entities.observability-data-source.plural',\n icon: 'fa-light fa-database',\n },\n retentionPolicy: {\n name: 'RetentionPolicy',\n title: '@system-insight:entities.retention-policy.title',\n titlePlural: '@system-insight:entities.retention-policy.plural',\n icon: 'fa-light fa-calendar-clock',\n },\n dashboardWidgetConfig: {\n name: 'DashboardWidgetConfig',\n title: '@system-insight:entities.dashboard-widget-config.title',\n titlePlural: '@system-insight:entities.dashboard-widget-config.plural',\n icon: 'fa-light fa-grid-2',\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 systemInsightLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.alertRule.name]: () =>\n import('./entities/alert-rule/alert-rule.entity.js').then((m) => m.alertRuleEntityFactory()),\n [RootConfig.entities.auditLog.name]: () =>\n import('./entities/audit-log/audit-log.entity.js').then((m) => m.auditLogFactory()),\n [RootConfig.entities.dashboardWidgetConfig.name]: () =>\n import('./entities/dashboard-widget-config/dashboard-widget-config.entity.js').then((m) => m.dashboardWidgetConfigEntityFactory()),\n [RootConfig.entities.errorEvent.name]: () =>\n import('./entities/error-event/error-event.entity.js').then((m) => m.errorEventEntityFactory()),\n [RootConfig.entities.httpRequestLog.name]: () =>\n import('./entities/http-request-log/http-request-log.entity.js').then((m) => m.httpRequestLogEntityFactory()),\n [RootConfig.entities.jobExecutionLog.name]: () =>\n import('./entities/job-execution-log/job-execution-log.entity.js').then((m) => m.jobExecutionLogEntityFactory()),\n [RootConfig.entities.logEntry.name]: () =>\n import('./entities/log-entry/log-entry.entity.js').then((m) => m.logEntryEntityFactory()),\n [RootConfig.entities.metricPoint.name]: () =>\n import('./entities/metric-point/metric-point.entity.js').then((m) => m.metricPointEntityFactory()),\n [RootConfig.entities.observabilityDataSource.name]: () =>\n import('./entities/observability-data-source/observability-data-source.entity.js').then((m) => m.observabilityDataSourceEntityFactory()),\n [RootConfig.entities.retentionPolicy.name]: () =>\n import('./entities/retention-policy/retention-policy.entity.js').then((m) => m.retentionPolicyEntityFactory()),\n [RootConfig.entities.savedView.name]: () =>\n import('./entities/saved-view/saved-view.entity.js').then((m) => m.savedViewEntityFactory()),\n [RootConfig.entities.slowRequest.name]: () =>\n import('./entities/slow-request/slow-request.entity.js').then((m) => m.slowRequestEntityFactory()),\n [RootConfig.entities.traceEntry.name]: () =>\n import('./entities/trace-entry/trace-entry.entity.js').then((m) => m.traceEntryEntityFactory()),\n [RootConfig.entities.traceSpan.name]: () =>\n import('./entities/trace-span/trace-span.entity.js').then((m) => m.traceSpanEntityFactory()),\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,gBAAgB;CACvB;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,gBAAgB;AACvB,QAAA,MAAM,EAAE,gBAAgB;AACxB,QAAA,IAAI,EAAE,eAAe;AACrB,QAAA,KAAK,EAAE,8BAA8B;AACrC,QAAA,IAAI,EAAE,8BAA8B;AACrC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,KAAK,EAAE,+CAA+C;AACtD,YAAA,WAAW,EAAE,gDAAgD;AAC7D,YAAA,IAAI,EAAE,uBAAuB;AAC9B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,KAAK,EAAE,0CAA0C;AACjD,YAAA,WAAW,EAAE,2CAA2C;AACxD,YAAA,IAAI,EAAE,wBAAwB;AAC/B,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,KAAK,EAAE,iDAAiD;AACxD,YAAA,WAAW,EAAE,kDAAkD;AAC/D,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACD,QAAA,eAAe,EAAE;AACf,YAAA,IAAI,EAAE,iBAAiB;AACvB,YAAA,KAAK,EAAE,kDAAkD;AACzD,YAAA,WAAW,EAAE,mDA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C,IAAI,GAAG,MACtC,OAAO,0GAAgD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,wBAAwB,EAAE,CAAC;AACpG,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,GAAG,MACrC,OAAO,yGAA8C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC;AACjG,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,GAAG,MACpC,OAAO,wGAA4C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAsB,EAAE,CAAC;AAC/F,KAAA;;AAGH;;ACjDA;;AAEG;;"}
@@ -0,0 +1,43 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
3
+ import { A as AXMSystemInsightCommandKeys } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-commands.keys-yv865ABJ.mjs';
4
+ import { R as RootConfig } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-acorex-platform-module-system-insight-client-contracts-entity-catalog-L_KQ_ZRS.mjs';
5
+
6
+ async function alertRuleEntityFactory() {
7
+ return {
8
+ module: RootConfig.module.name,
9
+ name: RootConfig.entities.alertRule.name,
10
+ title: RootConfig.entities.alertRule.title,
11
+ icon: RootConfig.entities.alertRule.icon,
12
+ formats: {
13
+ individual: RootConfig.entities.alertRule.title,
14
+ plural: RootConfig.entities.alertRule.titlePlural,
15
+ searchResult: { title: '{{ name }}', description: RootConfig.entities.alertRule.title },
16
+ },
17
+ groups: [{ id: 'general', title: '@system-insight:groups.general' }],
18
+ properties: [
19
+ { name: 'name', title: '@system-insight:fields.name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }, validations: [{ rule: 'required' }] },
20
+ { name: 'enabled', title: '@system-insight:fields.enabled', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
21
+ { name: 'entityFullName', title: '@system-insight:fields.entity-full-name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },
22
+ { name: 'threshold', title: '@system-insight:fields.threshold', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },
23
+ { name: 'windowMinutes', title: '@system-insight:fields.window-minutes', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },
24
+ { name: 'severity', title: '@system-insight:fields.severity', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },
25
+ { name: 'lastTriggeredAt', title: '@system-insight:fields.last-triggered-at', groupId: 'general', schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox }, readonly: true } },
26
+ ],
27
+ columns: [{ name: 'name' }, { name: 'enabled' }, { name: 'severity' }, { name: 'entityFullName' }],
28
+ commands: {
29
+ createFromFilter: { execute: AXMSystemInsightCommandKeys.AlertRule.CreateFromFilter },
30
+ },
31
+ interfaces: {
32
+ master: {
33
+ list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
34
+ single: { title: '{{ name }}', sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'severity' }], actions: [...entityMasterRecordActions()] },
35
+ create: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'windowMinutes' }, { name: 'severity' }] },
36
+ update: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'windowMinutes' }, { name: 'severity' }] },
37
+ },
38
+ },
39
+ };
40
+ }
41
+
42
+ export { alertRuleEntityFactory };
43
+ //# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-alert-rule.entity-CVQ8zi2n.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-alert-rule.entity-CVQ8zi2n.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/entities/alert-rule/alert-rule.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXMSystemInsightCommandKeys } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\n\nexport async function alertRuleEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.alertRule.name,\n title: RootConfig.entities.alertRule.title,\n icon: RootConfig.entities.alertRule.icon,\n formats: {\n individual: RootConfig.entities.alertRule.title,\n plural: RootConfig.entities.alertRule.titlePlural,\n searchResult: { title: '{{ name }}', description: RootConfig.entities.alertRule.title },\n },\n groups: [{ id: 'general', title: '@system-insight:groups.general' }],\n properties: [\n { name: 'name', title: '@system-insight:fields.name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }, validations: [{ rule: 'required' }] },\n { name: 'enabled', title: '@system-insight:fields.enabled', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },\n { name: 'entityFullName', title: '@system-insight:fields.entity-full-name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },\n { name: 'threshold', title: '@system-insight:fields.threshold', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },\n { name: 'windowMinutes', title: '@system-insight:fields.window-minutes', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },\n { name: 'severity', title: '@system-insight:fields.severity', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },\n { name: 'lastTriggeredAt', title: '@system-insight:fields.last-triggered-at', groupId: 'general', schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox }, readonly: true } },\n ],\n columns: [{ name: 'name' }, { name: 'enabled' }, { name: 'severity' }, { name: 'entityFullName' }],\n commands: {\n createFromFilter: { execute: AXMSystemInsightCommandKeys.AlertRule.CreateFromFilter },\n },\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: { title: '{{ name }}', sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'severity' }], actions: [...entityMasterRecordActions()] },\n create: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'windowMinutes' }, { name: 'severity' }] },\n update: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'windowMinutes' }, { name: 'severity' }] },\n },\n },\n };\n}\n"],"names":[],"mappings":";;;;;AAUO,eAAe,sBAAsB,GAAA;IAC1C,OAAO;AACL,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI;AACxC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK;AAC1C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI;AACxC,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK;AAC/C,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW;AACjD,YAAA,YAAY,EAAE,EAAE,KAAK,EAAE,YAAY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