@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,741 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, createQueryView, AXPEntityCommandScope } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'system-insight',
6
+ };
7
+ const RootConfig = {
8
+ config,
9
+ module: {
10
+ route: 'system-insight',
11
+ module: 'system-insight',
12
+ name: 'SystemInsight',
13
+ title: '@system-insight:module.title',
14
+ icon: 'fa-light fa-monitor-waveform',
15
+ },
16
+ entities: {
17
+ auditLog: {
18
+ name: 'AuditLog',
19
+ title: '@system-insight:logs.entities.audit-log.title',
20
+ titlePlural: '@system-insight:logs.entities.audit-log.plural',
21
+ icon: 'fa-light fa-file-code',
22
+ },
23
+ logEntry: {
24
+ name: 'LogEntry',
25
+ title: '@system-insight:entities.log-entry.title',
26
+ titlePlural: '@system-insight:entities.log-entry.plural',
27
+ icon: 'fa-light fa-file-lines',
28
+ },
29
+ httpRequestLog: {
30
+ name: 'HttpRequestLog',
31
+ title: '@system-insight:entities.http-request-log.title',
32
+ titlePlural: '@system-insight:entities.http-request-log.plural',
33
+ icon: 'fa-light fa-globe',
34
+ },
35
+ jobExecutionLog: {
36
+ name: 'JobExecutionLog',
37
+ title: '@system-insight:entities.job-execution-log.title',
38
+ titlePlural: '@system-insight:entities.job-execution-log.plural',
39
+ icon: 'fa-light fa-clock',
40
+ },
41
+ traceEntry: {
42
+ name: 'TraceEntry',
43
+ title: '@system-insight:entities.trace-entry.title',
44
+ titlePlural: '@system-insight:entities.trace-entry.plural',
45
+ icon: 'fa-light fa-route',
46
+ },
47
+ traceSpan: {
48
+ name: 'TraceSpan',
49
+ title: '@system-insight:entities.trace-span.title',
50
+ titlePlural: '@system-insight:entities.trace-span.plural',
51
+ icon: 'fa-light fa-diagram-project',
52
+ },
53
+ errorEvent: {
54
+ name: 'ErrorEvent',
55
+ title: '@system-insight:entities.error-event.title',
56
+ titlePlural: '@system-insight:entities.error-event.plural',
57
+ icon: 'fa-light fa-circle-exclamation',
58
+ },
59
+ slowRequest: {
60
+ name: 'SlowRequest',
61
+ title: '@system-insight:entities.slow-request.title',
62
+ titlePlural: '@system-insight:entities.slow-request.plural',
63
+ icon: 'fa-light fa-hourglass-half',
64
+ },
65
+ metricPoint: {
66
+ name: 'MetricPoint',
67
+ title: '@system-insight:entities.metric-point.title',
68
+ titlePlural: '@system-insight:entities.metric-point.plural',
69
+ icon: 'fa-light fa-chart-line',
70
+ },
71
+ savedView: {
72
+ name: 'SavedView',
73
+ title: '@system-insight:entities.saved-view.title',
74
+ titlePlural: '@system-insight:entities.saved-view.plural',
75
+ icon: 'fa-light fa-bookmark',
76
+ },
77
+ alertRule: {
78
+ name: 'AlertRule',
79
+ title: '@system-insight:entities.alert-rule.title',
80
+ titlePlural: '@system-insight:entities.alert-rule.plural',
81
+ icon: 'fa-light fa-bell',
82
+ },
83
+ observabilityDataSource: {
84
+ name: 'ObservabilityDataSource',
85
+ title: '@system-insight:entities.observability-data-source.title',
86
+ titlePlural: '@system-insight:entities.observability-data-source.plural',
87
+ icon: 'fa-light fa-database',
88
+ },
89
+ retentionPolicy: {
90
+ name: 'RetentionPolicy',
91
+ title: '@system-insight:entities.retention-policy.title',
92
+ titlePlural: '@system-insight:entities.retention-policy.plural',
93
+ icon: 'fa-light fa-calendar-clock',
94
+ },
95
+ dashboardWidgetConfig: {
96
+ name: 'DashboardWidgetConfig',
97
+ title: '@system-insight:entities.dashboard-widget-config.title',
98
+ titlePlural: '@system-insight:entities.dashboard-widget-config.plural',
99
+ icon: 'fa-light fa-grid-2',
100
+ },
101
+ },
102
+ };
103
+
104
+ const listFieldOptions = {
105
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
106
+ sort: { enabled: true },
107
+ };
108
+ const readOnlyCrud = async () => {
109
+ throw new Error('Audit logs are read-only');
110
+ };
111
+ async function auditLogFactory() {
112
+ const scope = RootConfig.config.i18n;
113
+ const entityScope = `@${scope}:logs.entities.audit-log`;
114
+ const groupTitle = (key) => `${entityScope}.groups.${key}`;
115
+ const fieldTitle = (key) => `${entityScope}.fields.${key}.title`;
116
+ const viewTitle = (key) => `${entityScope}.views.${key}.title`;
117
+ const entityDef = {
118
+ module: RootConfig.module.name,
119
+ name: RootConfig.entities.auditLog.name,
120
+ title: RootConfig.entities.auditLog.title,
121
+ icon: RootConfig.entities.auditLog.icon,
122
+ formats: {
123
+ individual: RootConfig.entities.auditLog.title,
124
+ plural: RootConfig.entities.auditLog.titlePlural,
125
+ searchResult: {
126
+ title: '{{ applicationName }}',
127
+ description: `${entityScope}.formats.search-result.description`,
128
+ },
129
+ },
130
+ relatedEntities: [],
131
+ commands: {
132
+ create: { execute: readOnlyCrud },
133
+ update: { execute: readOnlyCrud },
134
+ delete: { execute: readOnlyCrud },
135
+ },
136
+ groups: [
137
+ { id: 'general', title: groupTitle('general') },
138
+ { id: 'user', title: groupTitle('user') },
139
+ { id: 'client', title: groupTitle('client') },
140
+ { id: 'impersonator', title: groupTitle('impersonator') },
141
+ { id: 'actions', title: groupTitle('actions') },
142
+ { id: 'entityChanges', title: groupTitle('entity-changes') },
143
+ { id: 'extra', title: groupTitle('extra') },
144
+ ],
145
+ properties: [
146
+ // General
147
+ {
148
+ name: 'id',
149
+ title: fieldTitle('id'),
150
+ groupId: 'general',
151
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
152
+ },
153
+ {
154
+ name: 'applicationName',
155
+ title: fieldTitle('application-name'),
156
+ groupId: 'general',
157
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
158
+ options: listFieldOptions,
159
+ },
160
+ {
161
+ name: 'executionTime',
162
+ title: fieldTitle('execution-time'),
163
+ groupId: 'general',
164
+ schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },
165
+ options: listFieldOptions,
166
+ },
167
+ {
168
+ name: 'executionDuration',
169
+ title: fieldTitle('execution-duration'),
170
+ groupId: 'general',
171
+ schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
172
+ },
173
+ {
174
+ name: 'comments',
175
+ title: fieldTitle('comments'),
176
+ groupId: 'general',
177
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
178
+ },
179
+ // User
180
+ {
181
+ name: 'tenantId',
182
+ title: fieldTitle('tenant-id'),
183
+ groupId: 'user',
184
+ schema: {
185
+ dataType: 'string',
186
+ nullable: true,
187
+ readonly: true,
188
+ interface: {
189
+ type: AXPWidgetsList.Editors.LookupBox,
190
+ options: {
191
+ entity: 'TenantManagement.Tenant',
192
+ textField: 'title',
193
+ valueField: 'id',
194
+ look: 'select',
195
+ readonly: true,
196
+ disabled: true,
197
+ expose: [
198
+ { source: 'id', target: 'tenant.id' },
199
+ { source: 'title', target: 'tenant.title' },
200
+ ],
201
+ },
202
+ },
203
+ },
204
+ options: listFieldOptions,
205
+ },
206
+ {
207
+ name: 'tenantName',
208
+ title: fieldTitle('tenant-name'),
209
+ groupId: 'user',
210
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox }, visible: false },
211
+ },
212
+ {
213
+ name: 'userId',
214
+ title: fieldTitle('user-id'),
215
+ groupId: 'user',
216
+ schema: {
217
+ dataType: 'string',
218
+ nullable: true,
219
+ readonly: true,
220
+ interface: {
221
+ type: AXPWidgetsList.Editors.LookupBox,
222
+ options: {
223
+ entity: 'SecurityManagement.User',
224
+ textField: 'displayName',
225
+ valueField: 'id',
226
+ look: 'select',
227
+ readonly: true,
228
+ disabled: true,
229
+ expose: [
230
+ { source: 'id', target: 'user.id' },
231
+ { source: 'displayName', target: 'user.displayName' },
232
+ ],
233
+ },
234
+ },
235
+ },
236
+ options: listFieldOptions,
237
+ },
238
+ {
239
+ name: 'userName',
240
+ title: fieldTitle('user-name'),
241
+ groupId: 'user',
242
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
243
+ },
244
+ // Client
245
+ {
246
+ name: 'clientIpAddress',
247
+ title: fieldTitle('client-ip-address'),
248
+ groupId: 'client',
249
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
250
+ options: listFieldOptions,
251
+ },
252
+ {
253
+ name: 'clientName',
254
+ title: fieldTitle('client-name'),
255
+ groupId: 'client',
256
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
257
+ },
258
+ {
259
+ name: 'clientId',
260
+ title: fieldTitle('client-id'),
261
+ groupId: 'client',
262
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
263
+ },
264
+ {
265
+ name: 'browserInfo',
266
+ title: fieldTitle('browser-info'),
267
+ groupId: 'client',
268
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
269
+ },
270
+ {
271
+ name: 'httpMethod',
272
+ title: fieldTitle('http-method'),
273
+ groupId: 'client',
274
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
275
+ options: listFieldOptions,
276
+ },
277
+ {
278
+ name: 'url',
279
+ title: fieldTitle('url'),
280
+ groupId: 'client',
281
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
282
+ options: listFieldOptions,
283
+ },
284
+ {
285
+ name: 'httpStatusCode',
286
+ title: fieldTitle('http-status-code'),
287
+ groupId: 'client',
288
+ schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
289
+ options: listFieldOptions,
290
+ },
291
+ {
292
+ name: 'httpStatus',
293
+ title: fieldTitle('http-status'),
294
+ groupId: 'client',
295
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
296
+ options: listFieldOptions,
297
+ },
298
+ // Correlation
299
+ {
300
+ name: 'correlationId',
301
+ title: fieldTitle('correlation-id'),
302
+ groupId: 'general',
303
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
304
+ },
305
+ // Exception
306
+ {
307
+ name: 'exceptions',
308
+ title: fieldTitle('exceptions'),
309
+ groupId: 'general',
310
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
311
+ },
312
+ // Impersonator
313
+ {
314
+ name: 'impersonatorUserId',
315
+ title: fieldTitle('impersonator-user-id'),
316
+ groupId: 'impersonator',
317
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
318
+ },
319
+ {
320
+ name: 'impersonatorUserName',
321
+ title: fieldTitle('impersonator-user-name'),
322
+ groupId: 'impersonator',
323
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
324
+ },
325
+ {
326
+ name: 'impersonatorTenantId',
327
+ title: fieldTitle('impersonator-tenant-id'),
328
+ groupId: 'impersonator',
329
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
330
+ },
331
+ {
332
+ name: 'impersonatorTenantName',
333
+ title: fieldTitle('impersonator-tenant-name'),
334
+ groupId: 'impersonator',
335
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
336
+ },
337
+ // Actions
338
+ {
339
+ name: 'actions',
340
+ title: fieldTitle('actions'),
341
+ groupId: 'actions',
342
+ schema: { dataType: 'array', interface: { type: AXPWidgetsList.Editors.TextBox } },
343
+ },
344
+ // EntityChanges
345
+ {
346
+ name: 'entityChanges',
347
+ title: fieldTitle('entity-changes'),
348
+ groupId: 'entityChanges',
349
+ schema: { dataType: 'array', interface: { type: AXPWidgetsList.Editors.TextBox } },
350
+ },
351
+ ],
352
+ columns: [
353
+ { name: 'applicationName' },
354
+ { name: 'userName' },
355
+ { name: 'executionTime' },
356
+ { name: 'clientIpAddress' },
357
+ { name: 'httpMethod' },
358
+ { name: 'url' },
359
+ { name: 'httpStatusCode' },
360
+ { name: 'httpStatus' },
361
+ ],
362
+ interfaces: {
363
+ master: {
364
+ single: {
365
+ title: viewTitle('single'),
366
+ sections: [
367
+ {
368
+ id: 'general',
369
+ layout: {
370
+ positions: {
371
+ lg: {
372
+ colSpan: 12,
373
+ },
374
+ },
375
+ },
376
+ },
377
+ {
378
+ id: 'user',
379
+ layout: {
380
+ positions: {
381
+ lg: {
382
+ colSpan: 12,
383
+ },
384
+ },
385
+ },
386
+ },
387
+ {
388
+ id: 'client',
389
+ layout: {
390
+ positions: {
391
+ lg: {
392
+ colSpan: 12,
393
+ },
394
+ },
395
+ },
396
+ },
397
+ {
398
+ id: 'impersonator',
399
+ layout: {
400
+ positions: {
401
+ lg: {
402
+ colSpan: 12,
403
+ },
404
+ },
405
+ },
406
+ },
407
+ {
408
+ id: 'actions',
409
+ layout: {
410
+ positions: {
411
+ lg: {
412
+ colSpan: 12,
413
+ },
414
+ },
415
+ },
416
+ },
417
+ {
418
+ id: 'entityChanges',
419
+ layout: {
420
+ positions: {
421
+ lg: {
422
+ colSpan: 12,
423
+ },
424
+ },
425
+ },
426
+ },
427
+ {
428
+ id: 'extra',
429
+ layout: {
430
+ positions: {
431
+ lg: {
432
+ colSpan: 12,
433
+ },
434
+ },
435
+ },
436
+ },
437
+ ],
438
+ properties: [
439
+ {
440
+ name: 'id',
441
+ layout: {
442
+ positions: {
443
+ lg: {
444
+ colSpan: 6,
445
+ },
446
+ },
447
+ },
448
+ },
449
+ {
450
+ name: 'applicationName',
451
+ layout: {
452
+ positions: {
453
+ lg: {
454
+ colSpan: 6,
455
+ },
456
+ },
457
+ },
458
+ },
459
+ {
460
+ name: 'executionTime',
461
+ layout: {
462
+ positions: {
463
+ lg: {
464
+ colSpan: 6,
465
+ },
466
+ },
467
+ },
468
+ },
469
+ {
470
+ name: 'executionDuration',
471
+ layout: {
472
+ positions: {
473
+ lg: {
474
+ colSpan: 6,
475
+ },
476
+ },
477
+ },
478
+ },
479
+ {
480
+ name: 'comments',
481
+ layout: {
482
+ positions: {
483
+ lg: {
484
+ colSpan: 6,
485
+ },
486
+ },
487
+ },
488
+ },
489
+ {
490
+ name: 'tenantId',
491
+ layout: {
492
+ positions: {
493
+ lg: {
494
+ colSpan: 6,
495
+ },
496
+ },
497
+ },
498
+ },
499
+ {
500
+ name: 'userId',
501
+ layout: {
502
+ positions: {
503
+ lg: {
504
+ colSpan: 6,
505
+ },
506
+ },
507
+ },
508
+ },
509
+ {
510
+ name: 'clientIpAddress',
511
+ layout: {
512
+ positions: {
513
+ lg: {
514
+ colSpan: 6,
515
+ },
516
+ },
517
+ },
518
+ },
519
+ {
520
+ name: 'clientName',
521
+ layout: {
522
+ positions: {
523
+ lg: {
524
+ colSpan: 6,
525
+ },
526
+ },
527
+ },
528
+ },
529
+ {
530
+ name: 'clientId',
531
+ layout: {
532
+ positions: {
533
+ lg: {
534
+ colSpan: 6,
535
+ },
536
+ },
537
+ },
538
+ },
539
+ {
540
+ name: 'browserInfo',
541
+ layout: {
542
+ positions: {
543
+ lg: {
544
+ colSpan: 6,
545
+ },
546
+ },
547
+ },
548
+ },
549
+ {
550
+ name: 'httpMethod',
551
+ layout: {
552
+ positions: {
553
+ lg: {
554
+ colSpan: 6,
555
+ },
556
+ },
557
+ },
558
+ },
559
+ {
560
+ name: 'url',
561
+ layout: {
562
+ positions: {
563
+ lg: {
564
+ colSpan: 6,
565
+ },
566
+ },
567
+ },
568
+ },
569
+ {
570
+ name: 'httpStatusCode',
571
+ layout: {
572
+ positions: {
573
+ lg: {
574
+ colSpan: 6,
575
+ },
576
+ },
577
+ },
578
+ },
579
+ {
580
+ name: 'httpStatus',
581
+ layout: {
582
+ positions: {
583
+ lg: {
584
+ colSpan: 6,
585
+ },
586
+ },
587
+ },
588
+ },
589
+ {
590
+ name: 'correlationId',
591
+ layout: {
592
+ positions: {
593
+ lg: {
594
+ colSpan: 6,
595
+ },
596
+ },
597
+ },
598
+ },
599
+ {
600
+ name: 'exceptions',
601
+ layout: {
602
+ positions: {
603
+ lg: {
604
+ colSpan: 6,
605
+ },
606
+ },
607
+ },
608
+ },
609
+ {
610
+ name: 'impersonatorUserId',
611
+ layout: {
612
+ positions: {
613
+ lg: {
614
+ colSpan: 6,
615
+ },
616
+ },
617
+ },
618
+ },
619
+ {
620
+ name: 'impersonatorUserName',
621
+ layout: {
622
+ positions: {
623
+ lg: {
624
+ colSpan: 6,
625
+ },
626
+ },
627
+ },
628
+ },
629
+ {
630
+ name: 'impersonatorTenantId',
631
+ layout: {
632
+ positions: {
633
+ lg: {
634
+ colSpan: 6,
635
+ },
636
+ },
637
+ },
638
+ },
639
+ {
640
+ name: 'impersonatorTenantName',
641
+ layout: {
642
+ positions: {
643
+ lg: {
644
+ colSpan: 6,
645
+ },
646
+ },
647
+ },
648
+ },
649
+ {
650
+ name: 'extraProperties',
651
+ layout: {
652
+ positions: {
653
+ lg: {
654
+ colSpan: 6,
655
+ },
656
+ },
657
+ },
658
+ },
659
+ {
660
+ name: 'actions',
661
+ layout: {
662
+ positions: {
663
+ lg: {
664
+ colSpan: 6,
665
+ },
666
+ },
667
+ },
668
+ },
669
+ {
670
+ name: 'entityChanges',
671
+ layout: {
672
+ positions: {
673
+ lg: {
674
+ colSpan: 6,
675
+ },
676
+ },
677
+ },
678
+ },
679
+ ],
680
+ actions: [],
681
+ },
682
+ list: {
683
+ actions: [
684
+ // {
685
+ // title: `t("create", { scope: "common" })`,
686
+ // command: 'create-entity',
687
+ // priority: 'primary',
688
+ // type: 'create',
689
+ // scope: AXPEntityCommandScope.TypeLevel,
690
+ // },
691
+ // {
692
+ // title: 't("deleteItems", { scope: "common" })',
693
+ // command: 'delete-entity',
694
+ // priority: 'primary',
695
+ // type: 'delete',
696
+ // scope: AXPEntityCommandScope.Selected,
697
+ // },
698
+ {
699
+ title: '@general:actions.detail.title',
700
+ command: 'Entity:OpenDetails',
701
+ priority: 'secondary',
702
+ type: 'view',
703
+ scope: AXPEntityCommandScope.Individual,
704
+ },
705
+ // {
706
+ // title: 't("delete", { scope: "common" })',
707
+ // command: 'delete-entity',
708
+ // priority: 'secondary',
709
+ // type: 'delete',
710
+ // scope: AXPEntityCommandScope.Individual,
711
+ // },
712
+ ],
713
+ views: [
714
+ createAllQueryView({
715
+ sorts: [{ name: 'applicationName', dir: 'asc' }],
716
+ }),
717
+ createQueryView('auth-logs', viewTitle('auth-logs'), true, {
718
+ conditions: [
719
+ {
720
+ name: 'type',
721
+ operator: {
722
+ type: 'equal',
723
+ },
724
+ value: 'auth',
725
+ },
726
+ ],
727
+ }),
728
+ ],
729
+ },
730
+ },
731
+ },
732
+ };
733
+ return entityDef;
734
+ }
735
+
736
+ /**
737
+ * Generated bundle index. Do not edit.
738
+ */
739
+
740
+ export { auditLogFactory };
741
+ //# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entities-audit-log.mjs.map