@acorex-platform/module-system-insight-client 0.0.32 → 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.
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs +163 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-audit-log.mjs +741 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-audit-log.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-dashboard-widget-config.mjs +161 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-dashboard-widget-config.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-error-event.mjs +365 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-error-event.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-http-request-log.mjs +439 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-http-request-log.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-job-execution-log.mjs +445 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-job-execution-log.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-log-entry.mjs +730 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-log-entry.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-metric-point.mjs +290 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-metric-point.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-observability-data-source.mjs +161 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-observability-data-source.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-retention-policy.mjs +182 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-retention-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-saved-view.mjs +162 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-saved-view.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-slow-request.mjs +312 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-slow-request.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-entry.mjs +539 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-entry.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-span.mjs +304 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-span.mjs.map +1 -0
- 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
- 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
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-alert-rule.entity-CVQ8zi2n.mjs +43 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-alert-rule.entity-CVQ8zi2n.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-audit-log.entity-DUUbh-K4.mjs +638 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-audit-log.entity-DUUbh-K4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-commands.keys-yv865ABJ.mjs +20 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-commands.keys-yv865ABJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-dashboard-widget-config.entity-CQPGHj3-.mjs +58 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-dashboard-widget-config.entity-CQPGHj3-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-error-event.entity-41bQET9n.mjs +203 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-error-event.entity-41bQET9n.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-http-request-log.entity-DuUG39be.mjs +277 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-http-request-log.entity-DuUG39be.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-job-execution-log.entity-DjScVny4.mjs +283 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-job-execution-log.entity-DjScVny4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-log-entry.entity-KhwOnohn.mjs +533 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-log-entry.entity-KhwOnohn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-metric-point.entity-kfxxSxvp.mjs +128 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-metric-point.entity-kfxxSxvp.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-observability-data-source.entity-BM0wTN3C.mjs +58 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-observability-data-source.entity-BM0wTN3C.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs +45 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-retention-policy.entity-BU_FXy6_.mjs +79 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-retention-policy.entity-BU_FXy6_.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-saved-view.entity-BhhIVSRT.mjs +59 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-saved-view.entity-BhhIVSRT.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-settings.keys-CI-iHRBX.mjs +38 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-settings.keys-CI-iHRBX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-slow-request.entity-CdQongZo.mjs +150 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-slow-request.entity-CdQongZo.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-entry.entity-B_B8zT6c.mjs +342 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-entry.entity-B_B8zT6c.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-span.entity-BJGn3-6F.mjs +142 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-span.entity-BJGn3-6F.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-local-entities.mjs +42 -0
- package/fesm2022/acorex-platform-module-system-insight-client-local-entities.mjs.map +1 -0
- package/package.json +65 -1
- package/types/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-audit-log.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-dashboard-widget-config.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-error-event.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-http-request-log.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-job-execution-log.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-log-entry.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-metric-point.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-observability-data-source.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-retention-policy.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-saved-view.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-slow-request.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-trace-entry.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-trace-span.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-system-insight-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityCommandScope, AXPEntityQueryType, createAllQueryView } 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 { A as AXMSystemInsightQueryKeys } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs';
|
|
5
|
+
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';
|
|
6
|
+
|
|
7
|
+
const listFieldOptions = {
|
|
8
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
9
|
+
sort: { enabled: true },
|
|
10
|
+
};
|
|
11
|
+
const readOnlyCrud = async () => {
|
|
12
|
+
throw new Error('Observability data is read-only');
|
|
13
|
+
};
|
|
14
|
+
async function metricPointEntityFactory() {
|
|
15
|
+
const i18n = RootConfig.config.i18n;
|
|
16
|
+
const properties = [
|
|
17
|
+
{
|
|
18
|
+
name: 'name',
|
|
19
|
+
title: '@system-insight:fields.metric-name',
|
|
20
|
+
groupId: 'general',
|
|
21
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
22
|
+
options: listFieldOptions,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'timestamp',
|
|
26
|
+
title: '@system-insight:fields.timestamp',
|
|
27
|
+
groupId: 'general',
|
|
28
|
+
schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },
|
|
29
|
+
options: listFieldOptions,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'value',
|
|
33
|
+
title: '@system-insight:fields.value',
|
|
34
|
+
groupId: 'general',
|
|
35
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
|
|
36
|
+
options: listFieldOptions,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'type',
|
|
40
|
+
title: '@system-insight:fields.metric-type',
|
|
41
|
+
groupId: 'general',
|
|
42
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
43
|
+
options: listFieldOptions,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'serviceName',
|
|
47
|
+
title: '@system-insight:fields.service-name',
|
|
48
|
+
groupId: 'general',
|
|
49
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
50
|
+
options: listFieldOptions,
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
return {
|
|
54
|
+
module: RootConfig.module.name,
|
|
55
|
+
name: RootConfig.entities.metricPoint.name,
|
|
56
|
+
title: RootConfig.entities.metricPoint.title,
|
|
57
|
+
icon: RootConfig.entities.metricPoint.icon,
|
|
58
|
+
formats: {
|
|
59
|
+
individual: RootConfig.entities.metricPoint.title,
|
|
60
|
+
plural: RootConfig.entities.metricPoint.titlePlural,
|
|
61
|
+
searchResult: {
|
|
62
|
+
title: '{{ name }}',
|
|
63
|
+
description: RootConfig.entities.metricPoint.title,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
|
|
67
|
+
properties,
|
|
68
|
+
columns: [
|
|
69
|
+
{ name: 'timestamp' },
|
|
70
|
+
{ name: 'name' },
|
|
71
|
+
{ name: 'value' },
|
|
72
|
+
{ name: 'type' },
|
|
73
|
+
{ name: 'serviceName' },
|
|
74
|
+
],
|
|
75
|
+
queries: {
|
|
76
|
+
list: { execute: AXMSystemInsightQueryKeys.MetricPoint.List, type: AXPEntityQueryType.List },
|
|
77
|
+
byKey: { execute: AXMSystemInsightQueryKeys.MetricPoint.GetOne, type: AXPEntityQueryType.Single },
|
|
78
|
+
},
|
|
79
|
+
commands: {
|
|
80
|
+
create: { execute: readOnlyCrud },
|
|
81
|
+
update: { execute: readOnlyCrud },
|
|
82
|
+
delete: { execute: readOnlyCrud },
|
|
83
|
+
},
|
|
84
|
+
interfaces: {
|
|
85
|
+
master: {
|
|
86
|
+
list: {
|
|
87
|
+
actions: [
|
|
88
|
+
{
|
|
89
|
+
title: '@general:actions.detail.title',
|
|
90
|
+
icon: 'fa-light fa-eye',
|
|
91
|
+
command: 'Entity:View',
|
|
92
|
+
priority: 'primary',
|
|
93
|
+
type: 'view',
|
|
94
|
+
scope: AXPEntityCommandScope.Individual,
|
|
95
|
+
default: true,
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
views: [
|
|
99
|
+
createAllQueryView({
|
|
100
|
+
sorts: [{ name: 'timestamp', dir: 'desc' }],
|
|
101
|
+
}),
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
single: {
|
|
105
|
+
title: '{{ name }}',
|
|
106
|
+
sections: [{ id: 'general' }],
|
|
107
|
+
properties: properties.map((property) => ({
|
|
108
|
+
name: property.name,
|
|
109
|
+
layout: { positions: { lg: { colSpan: 6 } } },
|
|
110
|
+
})),
|
|
111
|
+
actions: [
|
|
112
|
+
{
|
|
113
|
+
title: `@${i18n}:actions.view-trace.title`,
|
|
114
|
+
command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,
|
|
115
|
+
priority: 'secondary',
|
|
116
|
+
type: 'view',
|
|
117
|
+
scope: AXPEntityCommandScope.Individual,
|
|
118
|
+
hidden: `{{ !context.eval("traceId") }}`,
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { metricPointEntityFactory };
|
|
128
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-metric-point.entity-kfxxSxvp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-metric-point.entity-kfxxSxvp.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/entities/metric-point/metric-point.entity.ts"],"sourcesContent":["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 metricPointEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n const properties: AXPEntity['properties'] = [\n {\n name: 'name',\n title: '@system-insight:fields.metric-name',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'timestamp',\n title: '@system-insight:fields.timestamp',\n groupId: 'general',\n schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },\n options: listFieldOptions,\n },\n {\n name: 'value',\n title: '@system-insight:fields.value',\n groupId: 'general',\n schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },\n options: listFieldOptions,\n },\n {\n name: 'type',\n title: '@system-insight:fields.metric-type',\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\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.metricPoint.name,\n title: RootConfig.entities.metricPoint.title,\n icon: RootConfig.entities.metricPoint.icon,\n formats: {\n individual: RootConfig.entities.metricPoint.title,\n plural: RootConfig.entities.metricPoint.titlePlural,\n searchResult: {\n title: '{{ name }}',\n description: RootConfig.entities.metricPoint.title,\n },\n },\n groups: [{ id: 'general', title: `@${i18n}:groups.general` }],\n properties,\n columns: [\n { name: 'timestamp' },\n { name: 'name' },\n { name: 'value' },\n { name: 'type' },\n { name: 'serviceName' },\n ],\n queries: {\n list: { execute: AXMSystemInsightQueryKeys.MetricPoint.List, type: AXPEntityQueryType.List },\n byKey: { execute: AXMSystemInsightQueryKeys.MetricPoint.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: 'timestamp', dir: 'desc' }],\n }),\n ],\n },\n single: {\n title: '{{ name }}',\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"],"names":[],"mappings":";;;;;;AAWA,MAAM,gBAAgB,GAAG;AACvB,IAAA,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;AACjE,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;CACxB;AAED,MAAM,YAAY,GAAG,YAAW;AAC9B,IAAA,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC;AACpD,CAAC;AAEM,eAAe,wBAAwB,GAAA;AAC5C,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,UAAU,GAA4B;AAC1C,QAAA;AACE,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,oCAAoC;AAC3C,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE;AACnF,YAAA,OAAO,EAAE,gBAAgB;AAC1B,SAAA;AACD,QAAA;AACE,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,kCAAkC;AACzC,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,MAAM,EAAE,EAAE,QAAQ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etsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
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';
|
|
4
|
+
|
|
5
|
+
async function observabilityDataSourceEntityFactory() {
|
|
6
|
+
return {
|
|
7
|
+
module: RootConfig.module.name,
|
|
8
|
+
name: RootConfig.entities.observabilityDataSource.name,
|
|
9
|
+
title: RootConfig.entities.observabilityDataSource.title,
|
|
10
|
+
icon: RootConfig.entities.observabilityDataSource.icon,
|
|
11
|
+
formats: {
|
|
12
|
+
individual: RootConfig.entities.observabilityDataSource.title,
|
|
13
|
+
plural: RootConfig.entities.observabilityDataSource.titlePlural,
|
|
14
|
+
searchResult: { title: '{{ name }}', description: RootConfig.entities.observabilityDataSource.title },
|
|
15
|
+
},
|
|
16
|
+
groups: [{ id: 'general', title: '@system-insight:groups.general' }],
|
|
17
|
+
properties: [
|
|
18
|
+
{ name: 'name', title: '@system-insight:fields.name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }, validations: [{ rule: 'required' }] },
|
|
19
|
+
{ name: 'type', title: '@system-insight:fields.data-source-type', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.SelectBox, options: { dataSource: ['logs', 'traces', 'metrics'] } } } },
|
|
20
|
+
{ name: 'provider', title: '@system-insight:fields.provider', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.SelectBox, options: { dataSource: ['fake', 'elasticsearch', 'jaeger', 'prometheus'] } } } },
|
|
21
|
+
{ name: 'isDefault', title: '@system-insight:fields.is-default', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
|
|
22
|
+
{
|
|
23
|
+
name: 'tenantId',
|
|
24
|
+
title: '@system-insight:fields.tenant-id',
|
|
25
|
+
groupId: 'general',
|
|
26
|
+
schema: {
|
|
27
|
+
dataType: 'string',
|
|
28
|
+
nullable: true,
|
|
29
|
+
interface: {
|
|
30
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
31
|
+
options: {
|
|
32
|
+
entity: 'TenantManagement.Tenant',
|
|
33
|
+
textField: 'title',
|
|
34
|
+
valueField: 'id',
|
|
35
|
+
look: 'select',
|
|
36
|
+
expose: [
|
|
37
|
+
{ source: 'id', target: 'tenant.id' },
|
|
38
|
+
{ source: 'title', target: 'tenant.title' },
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
columns: [{ name: 'name' }, { name: 'type' }, { name: 'provider' }, { name: 'isDefault' }],
|
|
46
|
+
interfaces: {
|
|
47
|
+
master: {
|
|
48
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
|
|
49
|
+
single: { title: '{{ name }}', sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'type' }, { name: 'provider' }, { name: 'isDefault' }], actions: [...entityMasterRecordActions()] },
|
|
50
|
+
create: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'type' }, { name: 'provider' }, { name: 'isDefault' }] },
|
|
51
|
+
update: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'type' }, { name: 'provider' }, { name: 'isDefault' }] },
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { observabilityDataSourceEntityFactory };
|
|
58
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-observability-data-source.entity-BM0wTN3C.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-observability-data-source.entity-BM0wTN3C.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/entities/observability-data-source/observability-data-source.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function observabilityDataSourceEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.observabilityDataSource.name,\n title: RootConfig.entities.observabilityDataSource.title,\n icon: RootConfig.entities.observabilityDataSource.icon,\n formats: {\n individual: RootConfig.entities.observabilityDataSource.title,\n plural: RootConfig.entities.observabilityDataSource.titlePlural,\n searchResult: { title: '{{ name }}', description: RootConfig.entities.observabilityDataSource.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: 'type', title: '@system-insight:fields.data-source-type', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.SelectBox, options: { dataSource: ['logs', 'traces', 'metrics'] } } } },\n { name: 'provider', title: '@system-insight:fields.provider', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.SelectBox, options: { dataSource: ['fake', 'elasticsearch', 'jaeger', 'prometheus'] } } } },\n { name: 'isDefault', title: '@system-insight:fields.is-default', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },\n {\n name: 'tenantId',\n title: '@system-insight:fields.tenant-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'TenantManagement.Tenant',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'tenant.id' },\n { source: 'title', target: 'tenant.title' },\n ],\n },\n },\n },\n },\n ],\n columns: [{ name: 'name' }, { name: 'type' }, { name: 'provider' }, { name: 'isDefault' }],\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: { title: '{{ name }}', sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'type' }, { name: 'provider' }, { name: 'isDefault' }], actions: [...entityMasterRecordActions()] },\n create: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'type' }, { name: 'provider' }, { name: 'isDefault' }] },\n update: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'type' }, { name: 'provider' }, { name: 'isDefault' }] },\n },\n },\n };\n}\n"],"names":[],"mappings":";;;;AAIO,eAAe,oCAAoC,GAAA;IACxD,OAAO;AACL,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI;AACtD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,KAAK;AACxD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI;AACtD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,KAAK;AAC7D,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,WAAW;AAC/D,YAAA,YAAY,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,KAAK,EAAE;AACtG,SAAA;QACD,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC;AACpE,QAAA,UAAU,EAAE;AACV,YAAA,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,6BAA6B,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,QAAQ,EA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MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE;AACxI,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE;AACzI,aAAA;AACF,SAAA;KACF;AACH;;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region ---- Query Keys ----
|
|
2
|
+
const AXMSystemInsightQueryKeys = {
|
|
3
|
+
LogEntry: {
|
|
4
|
+
List: 'SystemInsight:LogEntry:List',
|
|
5
|
+
GetOne: 'SystemInsight:LogEntry:GetOne',
|
|
6
|
+
Aggregate: 'SystemInsight:LogEntry:Aggregate',
|
|
7
|
+
},
|
|
8
|
+
HttpRequestLog: {
|
|
9
|
+
List: 'SystemInsight:HttpRequestLog:List',
|
|
10
|
+
GetOne: 'SystemInsight:HttpRequestLog:GetOne',
|
|
11
|
+
},
|
|
12
|
+
JobExecutionLog: {
|
|
13
|
+
List: 'SystemInsight:JobExecutionLog:List',
|
|
14
|
+
GetOne: 'SystemInsight:JobExecutionLog:GetOne',
|
|
15
|
+
},
|
|
16
|
+
TraceEntry: {
|
|
17
|
+
List: 'SystemInsight:TraceEntry:List',
|
|
18
|
+
GetOne: 'SystemInsight:TraceEntry:GetOne',
|
|
19
|
+
},
|
|
20
|
+
TraceSpan: {
|
|
21
|
+
List: 'SystemInsight:TraceSpan:List',
|
|
22
|
+
GetOne: 'SystemInsight:TraceSpan:GetOne',
|
|
23
|
+
},
|
|
24
|
+
TraceTimeline: {
|
|
25
|
+
Get: 'SystemInsight:TraceTimeline:Get',
|
|
26
|
+
},
|
|
27
|
+
ErrorEvent: {
|
|
28
|
+
List: 'SystemInsight:ErrorEvent:List',
|
|
29
|
+
GetOne: 'SystemInsight:ErrorEvent:GetOne',
|
|
30
|
+
Aggregate: 'SystemInsight:ErrorEvent:Aggregate',
|
|
31
|
+
},
|
|
32
|
+
SlowRequest: {
|
|
33
|
+
List: 'SystemInsight:SlowRequest:List',
|
|
34
|
+
GetOne: 'SystemInsight:SlowRequest:GetOne',
|
|
35
|
+
},
|
|
36
|
+
MetricPoint: {
|
|
37
|
+
List: 'SystemInsight:MetricPoint:List',
|
|
38
|
+
GetOne: 'SystemInsight:MetricPoint:GetOne',
|
|
39
|
+
Range: 'SystemInsight:MetricPoint:Range',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
|
|
44
|
+
export { AXMSystemInsightQueryKeys as A };
|
|
45
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/queries.keys.ts"],"sourcesContent":["//#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"],"names":[],"mappings":"AAAA;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,QAAA,IAAI,EAAE,mCAAmC;AACzC,QAAA,MAAM,EAAE,qCAAqC;AAC9C,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,oCAAoC;AAC1C,QAAA,MAAM,EAAE,sCAAsC;AAC/C,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,+BAA+B;AACrC,QAAA,MAAM,EAAE,iCAAiC;AAC1C,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,IAAI,EAAE,8BAA8B;AACpC,QAAA,MAAM,EAAE,gCAAgC;AACzC,KAAA;AACD,IAAA,aAAa,EAAE;AACb,QAAA,GAAG,EAAE,iCAAiC;AACvC,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,+BAA+B;AACrC,QAAA,MAAM,EAAE,iCAAiC;AACzC,QAAA,SAAS,EAAE,oCAAoC;AAChD,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,IAAI,EAAE,gCAAgC;AACtC,QAAA,MAAM,EAAE,kCAAkC;AAC3C,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,IAAI,EAAE,gCAAgC;AACtC,QAAA,MAAM,EAAE,kCAAkC;AAC1C,QAAA,KAAK,EAAE,iCAAiC;AACzC,KAAA;;AAGH;;;;"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
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';
|
|
4
|
+
|
|
5
|
+
async function retentionPolicyEntityFactory() {
|
|
6
|
+
return {
|
|
7
|
+
module: RootConfig.module.name,
|
|
8
|
+
name: RootConfig.entities.retentionPolicy.name,
|
|
9
|
+
title: RootConfig.entities.retentionPolicy.title,
|
|
10
|
+
icon: RootConfig.entities.retentionPolicy.icon,
|
|
11
|
+
formats: {
|
|
12
|
+
individual: RootConfig.entities.retentionPolicy.title,
|
|
13
|
+
plural: RootConfig.entities.retentionPolicy.titlePlural,
|
|
14
|
+
searchResult: { title: '{{ dataType }}', description: RootConfig.entities.retentionPolicy.title },
|
|
15
|
+
},
|
|
16
|
+
groups: [{ id: 'general', title: '@system-insight:groups.general' }],
|
|
17
|
+
properties: [
|
|
18
|
+
{ name: 'dataType', title: '@system-insight:fields.data-type', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.SelectBox, options: { dataSource: ['logs', 'traces', 'metrics', 'audit'] } } } },
|
|
19
|
+
{ name: 'retentionDays', title: '@system-insight:fields.retention-days', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },
|
|
20
|
+
{ name: 'enabled', title: '@system-insight:fields.enabled', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
|
|
21
|
+
{
|
|
22
|
+
name: 'tenantId',
|
|
23
|
+
title: '@system-insight:fields.tenant-id',
|
|
24
|
+
groupId: 'general',
|
|
25
|
+
schema: {
|
|
26
|
+
dataType: 'string',
|
|
27
|
+
nullable: true,
|
|
28
|
+
interface: {
|
|
29
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
30
|
+
options: {
|
|
31
|
+
entity: 'TenantManagement.Tenant',
|
|
32
|
+
textField: 'title',
|
|
33
|
+
valueField: 'id',
|
|
34
|
+
look: 'select',
|
|
35
|
+
expose: [
|
|
36
|
+
{ source: 'id', target: 'tenant.id' },
|
|
37
|
+
{ source: 'title', target: 'tenant.title' },
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'applicationId',
|
|
45
|
+
title: '@system-insight:fields.application-id',
|
|
46
|
+
groupId: 'general',
|
|
47
|
+
schema: {
|
|
48
|
+
dataType: 'string',
|
|
49
|
+
nullable: true,
|
|
50
|
+
interface: {
|
|
51
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
52
|
+
options: {
|
|
53
|
+
entity: 'ApplicationManagement.Application',
|
|
54
|
+
textField: 'title',
|
|
55
|
+
valueField: 'id',
|
|
56
|
+
look: 'select',
|
|
57
|
+
expose: [
|
|
58
|
+
{ source: 'id', target: 'application.id' },
|
|
59
|
+
{ source: 'title', target: 'application.title' },
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
columns: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],
|
|
67
|
+
interfaces: {
|
|
68
|
+
master: {
|
|
69
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
|
|
70
|
+
single: { title: '{{ dataType }}', sections: [{ id: 'general' }], properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }], actions: [...entityMasterRecordActions()] },
|
|
71
|
+
create: { sections: [{ id: 'general' }], properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }] },
|
|
72
|
+
update: { sections: [{ id: 'general' }], properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }] },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { retentionPolicyEntityFactory };
|
|
79
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-retention-policy.entity-BU_FXy6_.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-retention-policy.entity-BU_FXy6_.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/entities/retention-policy/retention-policy.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function retentionPolicyEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.retentionPolicy.name,\n title: RootConfig.entities.retentionPolicy.title,\n icon: RootConfig.entities.retentionPolicy.icon,\n formats: {\n individual: RootConfig.entities.retentionPolicy.title,\n plural: RootConfig.entities.retentionPolicy.titlePlural,\n searchResult: { title: '{{ dataType }}', description: RootConfig.entities.retentionPolicy.title },\n },\n groups: [{ id: 'general', title: '@system-insight:groups.general' }],\n properties: [\n { name: 'dataType', title: '@system-insight:fields.data-type', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.SelectBox, options: { dataSource: ['logs', 'traces', 'metrics', 'audit'] } } } },\n { name: 'retentionDays', title: '@system-insight:fields.retention-days', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },\n { name: 'enabled', title: '@system-insight:fields.enabled', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },\n {\n name: 'tenantId',\n title: '@system-insight:fields.tenant-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'TenantManagement.Tenant',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'tenant.id' },\n { source: 'title', target: 'tenant.title' },\n ],\n },\n },\n },\n },\n {\n name: 'applicationId',\n title: '@system-insight:fields.application-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'ApplicationManagement.Application',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'application.id' },\n { source: 'title', target: 'application.title' },\n ],\n },\n },\n },\n },\n ],\n columns: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: { title: '{{ dataType }}', sections: [{ id: 'general' }], properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }], actions: [...entityMasterRecordActions()] },\n create: { sections: [{ id: 'general' }], properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }] },\n update: { sections: [{ id: 'general' }], properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }] },\n },\n },\n };\n}\n"],"names":[],"mappings":";;;;AAIO,eAAe,4BAA4B,GAAA;IAChD,OAAO;AACL,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI;AAC9C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK;AAChD,QAAA,IAAI,EAAE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llQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
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';
|
|
4
|
+
|
|
5
|
+
async function savedViewEntityFactory() {
|
|
6
|
+
return {
|
|
7
|
+
module: RootConfig.module.name,
|
|
8
|
+
name: RootConfig.entities.savedView.name,
|
|
9
|
+
title: RootConfig.entities.savedView.title,
|
|
10
|
+
icon: RootConfig.entities.savedView.icon,
|
|
11
|
+
formats: {
|
|
12
|
+
individual: RootConfig.entities.savedView.title,
|
|
13
|
+
plural: RootConfig.entities.savedView.titlePlural,
|
|
14
|
+
searchResult: { title: '{{ title }}', description: RootConfig.entities.savedView.title },
|
|
15
|
+
},
|
|
16
|
+
groups: [{ id: 'general', title: '@system-insight:groups.general' }],
|
|
17
|
+
properties: [
|
|
18
|
+
{ name: 'title', title: '@system-insight:fields.title', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }, validations: [{ rule: 'required' }] },
|
|
19
|
+
{ name: 'description', title: '@system-insight:fields.description', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },
|
|
20
|
+
{ name: 'entityFullName', title: '@system-insight:fields.entity-full-name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }, validations: [{ rule: 'required' }] },
|
|
21
|
+
{ name: 'isDefault', title: '@system-insight:fields.is-default', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
|
|
22
|
+
{ name: 'isShared', title: '@system-insight:fields.is-shared', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
|
|
23
|
+
{
|
|
24
|
+
name: 'tenantId',
|
|
25
|
+
title: '@system-insight:fields.tenant-id',
|
|
26
|
+
groupId: 'general',
|
|
27
|
+
schema: {
|
|
28
|
+
dataType: 'string',
|
|
29
|
+
nullable: true,
|
|
30
|
+
interface: {
|
|
31
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
32
|
+
options: {
|
|
33
|
+
entity: 'TenantManagement.Tenant',
|
|
34
|
+
textField: 'title',
|
|
35
|
+
valueField: 'id',
|
|
36
|
+
look: 'select',
|
|
37
|
+
expose: [
|
|
38
|
+
{ source: 'id', target: 'tenant.id' },
|
|
39
|
+
{ source: 'title', target: 'tenant.title' },
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
columns: [{ name: 'title' }, { name: 'entityFullName' }, { name: 'isDefault' }, { name: 'isShared' }],
|
|
47
|
+
interfaces: {
|
|
48
|
+
master: {
|
|
49
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
|
|
50
|
+
single: { title: '{{ title }}', sections: [{ id: 'general' }], properties: [{ name: 'title' }, { name: 'description' }, { name: 'entityFullName' }, { name: 'isDefault' }, { name: 'isShared' }], actions: [...entityMasterRecordActions()] },
|
|
51
|
+
create: { sections: [{ id: 'general' }], properties: [{ name: 'title' }, { name: 'description' }, { name: 'entityFullName' }, { name: 'isDefault' }, { name: 'isShared' }] },
|
|
52
|
+
update: { sections: [{ id: 'general' }], properties: [{ name: 'title' }, { name: 'description' }, { name: 'entityFullName' }, { name: 'isDefault' }, { name: 'isShared' }] },
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { savedViewEntityFactory };
|
|
59
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-saved-view.entity-BhhIVSRT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-saved-view.entity-BhhIVSRT.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/entities/saved-view/saved-view.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function savedViewEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.savedView.name,\n title: RootConfig.entities.savedView.title,\n icon: RootConfig.entities.savedView.icon,\n formats: {\n individual: RootConfig.entities.savedView.title,\n plural: RootConfig.entities.savedView.titlePlural,\n searchResult: { title: '{{ title }}', description: RootConfig.entities.savedView.title },\n },\n groups: [{ id: 'general', title: '@system-insight:groups.general' }],\n properties: [\n { name: 'title', title: '@system-insight:fields.title', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }, validations: [{ rule: 'required' }] },\n { name: 'description', title: '@system-insight:fields.description', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },\n { name: 'entityFullName', title: '@system-insight:fields.entity-full-name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }, validations: [{ rule: 'required' }] },\n { name: 'isDefault', title: '@system-insight:fields.is-default', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },\n { name: 'isShared', title: '@system-insight:fields.is-shared', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },\n {\n name: 'tenantId',\n title: '@system-insight:fields.tenant-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'TenantManagement.Tenant',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'tenant.id' },\n { source: 'title', target: 'tenant.title' },\n ],\n },\n },\n },\n },\n ],\n columns: [{ name: 'title' }, { name: 'entityFullName' }, { name: 'isDefault' }, { name: 'isShared' }],\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: { title: '{{ title }}', sections: [{ id: 'general' }], properties: [{ name: 'title' }, { name: 'description' }, { name: 'entityFullName' }, { name: 'isDefault' }, { name: 'isShared' }], actions: [...entityMasterRecordActions()] },\n create: { sections: [{ id: 'general' }], properties: [{ name: 'title' }, { name: 'description' }, { name: 'entityFullName' }, { name: 'isDefault' }, { name: 'isShared' }] },\n update: { sections: [{ id: 'general' }], properties: [{ name: 'title' }, { name: 'description' }, { name: 'entityFullName' }, { name: 'isDefault' }, { name: 'isShared' }] },\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,aAAa,EAAE,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE;AACzF,SAAA;QACD,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC;AACpE,QAAA,UAAU,EAAE;AACV,YAAA,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,8BAA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,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC,EAAE;gBAC7O,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE;gBAC5K,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE;AAC7K,aAAA;AACF,SAAA;KACF;AACH;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var AXPSystemInsightSettings;
|
|
2
|
+
(function (AXPSystemInsightSettings) {
|
|
3
|
+
//#region ---- Retention Settings ----
|
|
4
|
+
AXPSystemInsightSettings["RetentionEnabled"] = "SystemInsight:Setting:Retention.Enabled";
|
|
5
|
+
AXPSystemInsightSettings["RetentionPeriod"] = "SystemInsight:Setting:Retention.Period";
|
|
6
|
+
AXPSystemInsightSettings["RetentionBatchSize"] = "SystemInsight:Setting:Retention.BatchSize";
|
|
7
|
+
AXPSystemInsightSettings["RetentionPurgeCron"] = "SystemInsight:Setting:Retention.PurgeCron";
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region ---- Critical Error File Fallback ----
|
|
10
|
+
AXPSystemInsightSettings["StorageLocation"] = "SystemInsight:Setting:Storage.Location";
|
|
11
|
+
AXPSystemInsightSettings["CriticalErrorFileEnabled"] = "SystemInsight:Setting:Storage.CriticalErrorFileEnabled";
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ---- Log Level Settings ----
|
|
14
|
+
AXPSystemInsightSettings["DefaultLogLevel"] = "SystemInsight:Setting:Level.Default";
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ---- Performance Settings ----
|
|
17
|
+
AXPSystemInsightSettings["AsyncLogging"] = "SystemInsight:Setting:Performance.AsyncEnabled";
|
|
18
|
+
AXPSystemInsightSettings["BatchSize"] = "SystemInsight:Setting:Performance.BatchSize";
|
|
19
|
+
AXPSystemInsightSettings["FlushInterval"] = "SystemInsight:Setting:Performance.FlushInterval";
|
|
20
|
+
AXPSystemInsightSettings["SlowRequestThresholdMs"] = "SystemInsight:Setting:Performance.SlowRequestThresholdMs";
|
|
21
|
+
//#endregion
|
|
22
|
+
})(AXPSystemInsightSettings || (AXPSystemInsightSettings = {}));
|
|
23
|
+
const AXP_SYSTEM_INSIGHT_SETTING_DEFAULTS = {
|
|
24
|
+
[AXPSystemInsightSettings.RetentionEnabled]: true,
|
|
25
|
+
[AXPSystemInsightSettings.RetentionPeriod]: 30,
|
|
26
|
+
[AXPSystemInsightSettings.RetentionBatchSize]: 500,
|
|
27
|
+
[AXPSystemInsightSettings.RetentionPurgeCron]: '0 4 * * *',
|
|
28
|
+
[AXPSystemInsightSettings.StorageLocation]: './logs/acorex',
|
|
29
|
+
[AXPSystemInsightSettings.CriticalErrorFileEnabled]: true,
|
|
30
|
+
[AXPSystemInsightSettings.DefaultLogLevel]: 'info',
|
|
31
|
+
[AXPSystemInsightSettings.AsyncLogging]: true,
|
|
32
|
+
[AXPSystemInsightSettings.BatchSize]: 100,
|
|
33
|
+
[AXPSystemInsightSettings.FlushInterval]: 5000,
|
|
34
|
+
[AXPSystemInsightSettings.SlowRequestThresholdMs]: 500,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { AXP_SYSTEM_INSIGHT_SETTING_DEFAULTS as A, AXPSystemInsightSettings as a };
|
|
38
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-settings.keys-CI-iHRBX.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-settings.keys-CI-iHRBX.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/settings.keys.ts"],"sourcesContent":["export enum AXPSystemInsightSettings {\n //#region ---- Retention Settings ----\n\n RetentionEnabled = 'SystemInsight:Setting:Retention.Enabled',\n RetentionPeriod = 'SystemInsight:Setting:Retention.Period',\n RetentionBatchSize = 'SystemInsight:Setting:Retention.BatchSize',\n RetentionPurgeCron = 'SystemInsight:Setting:Retention.PurgeCron',\n\n //#endregion\n\n //#region ---- Critical Error File Fallback ----\n\n StorageLocation = 'SystemInsight:Setting:Storage.Location',\n CriticalErrorFileEnabled = 'SystemInsight:Setting:Storage.CriticalErrorFileEnabled',\n\n //#endregion\n\n //#region ---- Log Level Settings ----\n\n DefaultLogLevel = 'SystemInsight:Setting:Level.Default',\n\n //#endregion\n\n //#region ---- Performance Settings ----\n\n AsyncLogging = 'SystemInsight:Setting:Performance.AsyncEnabled',\n BatchSize = 'SystemInsight:Setting:Performance.BatchSize',\n FlushInterval = 'SystemInsight:Setting:Performance.FlushInterval',\n SlowRequestThresholdMs = 'SystemInsight:Setting:Performance.SlowRequestThresholdMs',\n\n //#endregion\n}\n\nexport const AXP_SYSTEM_INSIGHT_SETTING_DEFAULTS = {\n [AXPSystemInsightSettings.RetentionEnabled]: true,\n [AXPSystemInsightSettings.RetentionPeriod]: 30,\n [AXPSystemInsightSettings.RetentionBatchSize]: 500,\n [AXPSystemInsightSettings.RetentionPurgeCron]: '0 4 * * *',\n [AXPSystemInsightSettings.StorageLocation]: './logs/acorex',\n [AXPSystemInsightSettings.CriticalErrorFileEnabled]: true,\n [AXPSystemInsightSettings.DefaultLogLevel]: 'info',\n [AXPSystemInsightSettings.AsyncLogging]: true,\n [AXPSystemIns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