@acorex-platform/module-activity-insight-client 0.0.30 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs +152 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs +380 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs +130 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs +152 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs +136 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs +137 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs +181 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs +86 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs +91 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-event.entity-CERoGcZn.mjs +319 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-event.entity-CERoGcZn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-saved-view.entity-Ch3bWS9X.mjs +69 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-saved-view.entity-Ch3bWS9X.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-masking-policy.entity-DzJ1RsQz.mjs +91 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-masking-policy.entity-DzJ1RsQz.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-retention-policy.entity-CLANdFVA.mjs +75 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-retention-policy.entity-CLANdFVA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs +76 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs +120 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-local-entities.mjs +35 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client.mjs +7 -7
- package/fesm2022/acorex-platform-module-activity-insight-client.mjs.map +1 -1
- package/package.json +37 -1
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-activity-insight-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,76 @@
|
|
|
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-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs';
|
|
4
|
+
|
|
5
|
+
const listFieldOptions = {
|
|
6
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
7
|
+
sort: { enabled: true },
|
|
8
|
+
};
|
|
9
|
+
async function samplingPolicyEntityFactory() {
|
|
10
|
+
const i18n = RootConfig.config.i18n;
|
|
11
|
+
return {
|
|
12
|
+
module: RootConfig.module.name,
|
|
13
|
+
name: RootConfig.entities.samplingPolicy.name,
|
|
14
|
+
title: RootConfig.entities.samplingPolicy.title,
|
|
15
|
+
icon: RootConfig.entities.samplingPolicy.icon,
|
|
16
|
+
formats: {
|
|
17
|
+
individual: RootConfig.entities.samplingPolicy.title,
|
|
18
|
+
plural: RootConfig.entities.samplingPolicy.titlePlural,
|
|
19
|
+
searchResult: { title: '{{ name }}', description: RootConfig.entities.samplingPolicy.title },
|
|
20
|
+
},
|
|
21
|
+
groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
|
|
22
|
+
properties: [
|
|
23
|
+
{
|
|
24
|
+
name: 'name',
|
|
25
|
+
title: `@${i18n}:fields.name`,
|
|
26
|
+
groupId: 'general',
|
|
27
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
28
|
+
options: listFieldOptions,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'eventPattern',
|
|
32
|
+
title: `@${i18n}:fields.event-pattern`,
|
|
33
|
+
groupId: 'general',
|
|
34
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
35
|
+
options: listFieldOptions,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'rate',
|
|
39
|
+
title: `@${i18n}:fields.sampling-rate`,
|
|
40
|
+
groupId: 'general',
|
|
41
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
|
|
42
|
+
options: listFieldOptions,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'enabled',
|
|
46
|
+
title: `@${i18n}:fields.enabled`,
|
|
47
|
+
groupId: 'general',
|
|
48
|
+
schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },
|
|
49
|
+
options: listFieldOptions,
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
columns: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],
|
|
53
|
+
interfaces: {
|
|
54
|
+
master: {
|
|
55
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
|
|
56
|
+
single: {
|
|
57
|
+
title: '{{ name }}',
|
|
58
|
+
sections: [{ id: 'general' }],
|
|
59
|
+
properties: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],
|
|
60
|
+
actions: [...entityMasterRecordActions()],
|
|
61
|
+
},
|
|
62
|
+
create: {
|
|
63
|
+
sections: [{ id: 'general' }],
|
|
64
|
+
properties: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],
|
|
65
|
+
},
|
|
66
|
+
update: {
|
|
67
|
+
sections: [{ id: 'general' }],
|
|
68
|
+
properties: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { samplingPolicyEntityFactory };
|
|
76
|
+
//# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/entities/sampling-policy/sampling-policy.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 { RootConfig } from '../../root-config';\n\nconst listFieldOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nexport async function samplingPolicyEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.samplingPolicy.name,\n title: RootConfig.entities.samplingPolicy.title,\n icon: RootConfig.entities.samplingPolicy.icon,\n formats: {\n individual: RootConfig.entities.samplingPolicy.title,\n plural: RootConfig.entities.samplingPolicy.titlePlural,\n searchResult: { title: '{{ name }}', description: RootConfig.entities.samplingPolicy.title },\n },\n groups: [{ id: 'general', title: `@${i18n}:groups.general` }],\n properties: [\n {\n name: 'name',\n title: `@${i18n}:fields.name`,\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'eventPattern',\n title: `@${i18n}:fields.event-pattern`,\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'rate',\n title: `@${i18n}:fields.sampling-rate`,\n groupId: 'general',\n schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },\n options: listFieldOptions,\n },\n {\n name: 'enabled',\n title: `@${i18n}:fields.enabled`,\n groupId: 'general',\n schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },\n options: listFieldOptions,\n },\n ],\n columns: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: {\n title: '{{ name }}',\n sections: [{ id: 'general' }],\n properties: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],\n actions: [...entityMasterRecordActions()],\n },\n create: {\n sections: [{ id: 'general' }],\n properties: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],\n },\n update: {\n sections: [{ id: 'general' }],\n properties: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],\n },\n },\n },\n };\n}\n"],"names":[],"mappings":";;;;AASA,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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,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;oBAC7B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC/F,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;oBAC7B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAChG,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;oBAC7B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAChG,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;;;"}
|
|
@@ -0,0 +1,120 @@
|
|
|
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-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs';
|
|
4
|
+
|
|
5
|
+
const listFieldOptions = {
|
|
6
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
7
|
+
sort: { enabled: true },
|
|
8
|
+
};
|
|
9
|
+
async function trackingRuleEntityFactory() {
|
|
10
|
+
const i18n = RootConfig.config.i18n;
|
|
11
|
+
return {
|
|
12
|
+
module: RootConfig.module.name,
|
|
13
|
+
name: RootConfig.entities.trackingRule.name,
|
|
14
|
+
title: RootConfig.entities.trackingRule.title,
|
|
15
|
+
icon: RootConfig.entities.trackingRule.icon,
|
|
16
|
+
formats: {
|
|
17
|
+
individual: RootConfig.entities.trackingRule.title,
|
|
18
|
+
plural: RootConfig.entities.trackingRule.titlePlural,
|
|
19
|
+
searchResult: { title: '{{ name }}', description: RootConfig.entities.trackingRule.title },
|
|
20
|
+
},
|
|
21
|
+
groups: [
|
|
22
|
+
{ id: 'general', title: `@${i18n}:groups.general` },
|
|
23
|
+
{ id: 'policy', title: `@${i18n}:groups.policy` },
|
|
24
|
+
],
|
|
25
|
+
properties: [
|
|
26
|
+
{
|
|
27
|
+
name: 'name',
|
|
28
|
+
title: `@${i18n}:fields.name`,
|
|
29
|
+
groupId: 'general',
|
|
30
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
31
|
+
options: listFieldOptions,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'moduleName',
|
|
35
|
+
title: `@${i18n}:fields.module`,
|
|
36
|
+
groupId: 'general',
|
|
37
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
38
|
+
options: listFieldOptions,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'eventPattern',
|
|
42
|
+
title: `@${i18n}:fields.event-pattern`,
|
|
43
|
+
groupId: 'policy',
|
|
44
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
45
|
+
options: listFieldOptions,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'priority',
|
|
49
|
+
title: `@${i18n}:fields.priority`,
|
|
50
|
+
groupId: 'policy',
|
|
51
|
+
schema: {
|
|
52
|
+
dataType: 'string',
|
|
53
|
+
interface: {
|
|
54
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
55
|
+
options: { dataSource: ['low', 'normal', 'high'] },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
options: listFieldOptions,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'samplingRate',
|
|
62
|
+
title: `@${i18n}:fields.sampling-rate`,
|
|
63
|
+
groupId: 'policy',
|
|
64
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
|
|
65
|
+
options: listFieldOptions,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'enabled',
|
|
69
|
+
title: `@${i18n}:fields.enabled`,
|
|
70
|
+
groupId: 'general',
|
|
71
|
+
schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },
|
|
72
|
+
options: listFieldOptions,
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
columns: [{ name: 'name' }, { name: 'moduleName' }, { name: 'eventPattern' }, { name: 'enabled' }],
|
|
76
|
+
interfaces: {
|
|
77
|
+
master: {
|
|
78
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
|
|
79
|
+
single: {
|
|
80
|
+
title: '{{ name }}',
|
|
81
|
+
sections: [{ id: 'general' }, { id: 'policy' }],
|
|
82
|
+
properties: [
|
|
83
|
+
{ name: 'name' },
|
|
84
|
+
{ name: 'moduleName' },
|
|
85
|
+
{ name: 'enabled' },
|
|
86
|
+
{ name: 'eventPattern' },
|
|
87
|
+
{ name: 'priority' },
|
|
88
|
+
{ name: 'samplingRate' },
|
|
89
|
+
],
|
|
90
|
+
actions: [...entityMasterRecordActions()],
|
|
91
|
+
},
|
|
92
|
+
create: {
|
|
93
|
+
sections: [{ id: 'general' }, { id: 'policy' }],
|
|
94
|
+
properties: [
|
|
95
|
+
{ name: 'name' },
|
|
96
|
+
{ name: 'moduleName' },
|
|
97
|
+
{ name: 'enabled' },
|
|
98
|
+
{ name: 'eventPattern' },
|
|
99
|
+
{ name: 'priority' },
|
|
100
|
+
{ name: 'samplingRate' },
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
update: {
|
|
104
|
+
sections: [{ id: 'general' }, { id: 'policy' }],
|
|
105
|
+
properties: [
|
|
106
|
+
{ name: 'name' },
|
|
107
|
+
{ name: 'moduleName' },
|
|
108
|
+
{ name: 'enabled' },
|
|
109
|
+
{ name: 'eventPattern' },
|
|
110
|
+
{ name: 'priority' },
|
|
111
|
+
{ name: 'samplingRate' },
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { trackingRuleEntityFactory };
|
|
120
|
+
//# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/entities/tracking-rule/tracking-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 { RootConfig } from '../../root-config';\n\nconst listFieldOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nexport async function trackingRuleEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.trackingRule.name,\n title: RootConfig.entities.trackingRule.title,\n icon: RootConfig.entities.trackingRule.icon,\n formats: {\n individual: RootConfig.entities.trackingRule.title,\n plural: RootConfig.entities.trackingRule.titlePlural,\n searchResult: { title: '{{ name }}', description: RootConfig.entities.trackingRule.title },\n },\n groups: [\n { id: 'general', title: `@${i18n}:groups.general` },\n { id: 'policy', title: `@${i18n}:groups.policy` },\n ],\n properties: [\n {\n name: 'name',\n title: `@${i18n}:fields.name`,\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'moduleName',\n title: `@${i18n}:fields.module`,\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'eventPattern',\n title: `@${i18n}:fields.event-pattern`,\n groupId: 'policy',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'priority',\n title: `@${i18n}:fields.priority`,\n groupId: 'policy',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: { dataSource: ['low', 'normal', 'high'] },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'samplingRate',\n title: `@${i18n}:fields.sampling-rate`,\n groupId: 'policy',\n schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },\n options: listFieldOptions,\n },\n {\n name: 'enabled',\n title: `@${i18n}:fields.enabled`,\n groupId: 'general',\n schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },\n options: listFieldOptions,\n },\n ],\n columns: [{ name: 'name' }, { name: 'moduleName' }, { name: 'eventPattern' }, { name: 'enabled' }],\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: {\n title: '{{ name }}',\n sections: [{ id: 'general' }, { id: 'policy' }],\n properties: [\n { name: 'name' },\n { name: 'moduleName' },\n { name: 'enabled' },\n { name: 'eventPattern' },\n { name: 'priority' },\n { name: 'samplingRate' },\n ],\n actions: [...entityMasterRecordActions()],\n },\n create: {\n sections: [{ id: 'general' }, { id: 'policy' }],\n properties: [\n { name: 'name' },\n { name: 'moduleName' },\n { name: 'enabled' },\n { name: 'eventPattern' },\n { name: 'priority' },\n { name: 'samplingRate' },\n ],\n },\n update: {\n sections: [{ id: 'general' }, { id: 'policy' }],\n properties: [\n { name: 'name' },\n { name: 'moduleName' },\n { name: 'enabled' },\n { name: 'eventPattern' },\n { name: 'priority' },\n { name: 'samplingRate' },\n ],\n },\n },\n },\n };\n}\n"],"names":[],"mappings":";;;;AASA,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;AAEM,eAAe,yBAAyB,GAAA;AAC7C,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;IAEnC,OAAO;AACL,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;AAC7C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;AAClD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAW;AACpD,YAAA,YAAY,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE;AAC3F,SAAA;AACD,QAAA,MAAM,EAAE;YACN,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EA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ACnB,EAAE,IAAI,EAAE,cAAc,EAAE;wBACxB,EAAE,IAAI,EAAE,UAAU,EAAE;wBACpB,EAAE,IAAI,EAAE,cAAc,EAAE;AACzB,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { a as activityInsightLocalEntityCatalog } from './acorex-platform-module-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs.map
|
package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
|
|
2
|
+
import { RootConfig } from '@acorex-platform/module-activity-insight-client/contracts';
|
|
3
|
+
export { activityInsightLocalEntityCatalog } from '@acorex-platform/module-activity-insight-client/contracts/entity-catalog';
|
|
4
|
+
|
|
5
|
+
//#region ----- Imports -----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ----- Provide local entities -----
|
|
8
|
+
/**
|
|
9
|
+
* Registers activity-insight layouts on the client from packaged factories.
|
|
10
|
+
* Each `import()` targets a secondary entry so unused entities stay out of the
|
|
11
|
+
* bundle. Do not add this to the demo app; demo continues to load layouts via
|
|
12
|
+
* `Domain:GetEntityLayout`.
|
|
13
|
+
*/
|
|
14
|
+
function provideActivityInsightLocalEntities() {
|
|
15
|
+
return provideLocalEntityCatalog({
|
|
16
|
+
moduleName: RootConfig.module.name,
|
|
17
|
+
loaders: {
|
|
18
|
+
[RootConfig.entities.activityDataSource.name]: () => import('@acorex-platform/module-activity-insight-client/contracts/entities/activity-data-source').then((m) => m.activityDataSourceEntityFactory()),
|
|
19
|
+
[RootConfig.entities.activityEvent.name]: () => import('@acorex-platform/module-activity-insight-client/contracts/entities/activity-event').then((m) => m.activityEventEntityFactory()),
|
|
20
|
+
[RootConfig.entities.activitySavedView.name]: () => import('@acorex-platform/module-activity-insight-client/contracts/entities/activity-saved-view').then((m) => m.activitySavedViewEntityFactory()),
|
|
21
|
+
[RootConfig.entities.maskingPolicy.name]: () => import('@acorex-platform/module-activity-insight-client/contracts/entities/masking-policy').then((m) => m.maskingPolicyEntityFactory()),
|
|
22
|
+
[RootConfig.entities.retentionPolicy.name]: () => import('@acorex-platform/module-activity-insight-client/contracts/entities/retention-policy').then((m) => m.retentionPolicyEntityFactory()),
|
|
23
|
+
[RootConfig.entities.samplingPolicy.name]: () => import('@acorex-platform/module-activity-insight-client/contracts/entities/sampling-policy').then((m) => m.samplingPolicyEntityFactory()),
|
|
24
|
+
[RootConfig.entities.trackingRule.name]: () => import('@acorex-platform/module-activity-insight-client/contracts/entities/tracking-rule').then((m) => m.trackingRuleEntityFactory()),
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Generated bundle index. Do not edit.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
export { provideActivityInsightLocalEntities };
|
|
35
|
+
//# sourceMappingURL=acorex-platform-module-activity-insight-client-local-entities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-activity-insight-client-local-entities.mjs","sources":["../../../../libs/modules/activity-insight/client/src/lib/provide-local-entities.ts","../../../../libs/modules/activity-insight/client/src/lib/acorex-platform-module-activity-insight-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-activity-insight-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers activity-insight layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideActivityInsightLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.activityDataSource.name]: () =>\n import('@acorex-platform/module-activity-insight-client/contracts/entities/activity-data-source').then((m) => m.activityDataSourceEntityFactory()),\n [RootConfig.entities.activityEvent.name]: () =>\n import('@acorex-platform/module-activity-insight-client/contracts/entities/activity-event').then((m) => m.activityEventEntityFactory()),\n [RootConfig.entities.activitySavedView.name]: () =>\n import('@acorex-platform/module-activity-insight-client/contracts/entities/activity-saved-view').then((m) => m.activitySavedViewEntityFactory()),\n [RootConfig.entities.maskingPolicy.name]: () =>\n import('@acorex-platform/module-activity-insight-client/contracts/entities/masking-policy').then((m) => m.maskingPolicyEntityFactory()),\n [RootConfig.entities.retentionPolicy.name]: () =>\n import('@acorex-platform/module-activity-insight-client/contracts/entities/retention-policy').then((m) => m.retentionPolicyEntityFactory()),\n [RootConfig.entities.samplingPolicy.name]: () =>\n import('@acorex-platform/module-activity-insight-client/contracts/entities/sampling-policy').then((m) => m.samplingPolicyEntityFactory()),\n [RootConfig.entities.trackingRule.name]: () =>\n import('@acorex-platform/module-activity-insight-client/contracts/entities/tracking-rule').then((m) => m.trackingRuleEntityFactory()),\n },\n });\n}\n\nexport { activityInsightLocalEntityCatalog } from '@acorex-platform/module-activity-insight-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,mCAAmC,GAAA;AACjD,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EA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8,7 @@ import { Router, NavigationEnd, ROUTES } from '@angular/router';
|
|
|
8
8
|
import * as i1 from '@acorex-platform/framework-client/common';
|
|
9
9
|
import { AXPSearchCommandProvider, AXPSettingsService, AXPCommonModule, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
10
10
|
import { RootConfig, AXMActivityInsightMenuKeys, AXPActivityInsightSettings, AXM_DEFAULT_ACTIVITY_BUFFER_CONFIG, AXPInsightsReportingPermissionKeys, maskActivityProperties, truncateActivityProperties, AXMActivityEventNames } from '@acorex-platform/module-activity-insight-client/contracts';
|
|
11
|
-
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
11
|
+
import { AXPWidgetsList, createRandomUuid } from '@acorex-platform/framework-shared/core';
|
|
12
12
|
import { AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';
|
|
13
13
|
import { distinctUntilChanged, filter } from 'rxjs';
|
|
14
14
|
import { AXMActivityInsightTransportKeys } from '@acorex-platform/module-activity-insight-client/contracts';
|
|
@@ -689,7 +689,7 @@ class AXMActivityInsightActivityTransport {
|
|
|
689
689
|
}
|
|
690
690
|
buildBatch(events) {
|
|
691
691
|
return {
|
|
692
|
-
batchId:
|
|
692
|
+
batchId: createRandomUuid(),
|
|
693
693
|
sentAt: new Date().toISOString(),
|
|
694
694
|
events,
|
|
695
695
|
};
|
|
@@ -723,7 +723,7 @@ class AXMActivityInsightJourneyService {
|
|
|
723
723
|
}
|
|
724
724
|
startJourney(name, sessionId) {
|
|
725
725
|
const journey = {
|
|
726
|
-
id:
|
|
726
|
+
id: createRandomUuid(),
|
|
727
727
|
name,
|
|
728
728
|
sessionId,
|
|
729
729
|
startedAt: new Date().toISOString(),
|
|
@@ -749,7 +749,7 @@ class AXMActivityInsightJourneyService {
|
|
|
749
749
|
}
|
|
750
750
|
startActivity(name, options) {
|
|
751
751
|
const activity = {
|
|
752
|
-
id:
|
|
752
|
+
id: createRandomUuid(),
|
|
753
753
|
name,
|
|
754
754
|
startedAt: new Date().toISOString(),
|
|
755
755
|
parentActivityId: options?.parentActivityId,
|
|
@@ -1109,7 +1109,7 @@ class AXMActivityInsightTrackerService {
|
|
|
1109
1109
|
const session = this.sessionService;
|
|
1110
1110
|
const priority = partial.priority ?? this.policy.defaultPriorityFor(partial.name);
|
|
1111
1111
|
return {
|
|
1112
|
-
id: partial.id ??
|
|
1112
|
+
id: partial.id ?? createRandomUuid(),
|
|
1113
1113
|
name: partial.name,
|
|
1114
1114
|
type: partial.type ?? this.inferType(partial.name),
|
|
1115
1115
|
category: partial.category ?? this.inferCategory(partial.name),
|
|
@@ -1177,13 +1177,13 @@ class AXMActivityInsightTrackerService {
|
|
|
1177
1177
|
try {
|
|
1178
1178
|
let id = sessionStorage.getItem(SESSION_STORAGE_KEY);
|
|
1179
1179
|
if (!id) {
|
|
1180
|
-
id =
|
|
1180
|
+
id = createRandomUuid();
|
|
1181
1181
|
sessionStorage.setItem(SESSION_STORAGE_KEY, id);
|
|
1182
1182
|
}
|
|
1183
1183
|
return id;
|
|
1184
1184
|
}
|
|
1185
1185
|
catch {
|
|
1186
|
-
return
|
|
1186
|
+
return createRandomUuid();
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
1189
|
async flushIfNeeded() {
|