@acorex-platform/module-activity-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.
Files changed (44) hide show
  1. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs +152 -0
  2. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs +380 -0
  4. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs +130 -0
  6. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs +152 -0
  8. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs +136 -0
  10. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs +137 -0
  12. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs +181 -0
  14. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs +86 -0
  16. 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
  17. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs +91 -0
  18. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-event.entity-CERoGcZn.mjs +319 -0
  20. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-event.entity-CERoGcZn.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-saved-view.entity-Ch3bWS9X.mjs +69 -0
  22. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-saved-view.entity-Ch3bWS9X.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-masking-policy.entity-DzJ1RsQz.mjs +91 -0
  24. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-masking-policy.entity-DzJ1RsQz.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-retention-policy.entity-CLANdFVA.mjs +75 -0
  26. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-retention-policy.entity-CLANdFVA.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs +76 -0
  28. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs +120 -0
  30. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs +2 -0
  32. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-activity-insight-client-local-entities.mjs +35 -0
  34. package/fesm2022/acorex-platform-module-activity-insight-client-local-entities.mjs.map +1 -0
  35. package/package.json +37 -1
  36. package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.d.ts +5 -0
  37. package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.d.ts +5 -0
  38. package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.d.ts +5 -0
  39. package/types/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.d.ts +5 -0
  40. package/types/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.d.ts +5 -0
  41. package/types/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.d.ts +5 -0
  42. package/types/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.d.ts +5 -0
  43. package/types/acorex-platform-module-activity-insight-client-contracts-entity-catalog.d.ts +10 -0
  44. package/types/acorex-platform-module-activity-insight-client-local-entities.d.ts +12 -0
@@ -0,0 +1,130 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'activity-insight',
6
+ };
7
+ const RootConfig = {
8
+ config,
9
+ module: {
10
+ route: 'activity-insight',
11
+ module: 'ActivityInsight',
12
+ name: 'ActivityInsight',
13
+ title: '@activity-insight:module.title',
14
+ icon: 'fa-light fa-chart-network',
15
+ },
16
+ entities: {
17
+ activityEvent: {
18
+ name: 'ActivityEvent',
19
+ title: '@activity-insight:entities.activity-event.title',
20
+ titlePlural: '@activity-insight:entities.activity-event.plural',
21
+ icon: 'fa-light fa-wave-pulse',
22
+ },
23
+ trackingRule: {
24
+ name: 'TrackingRule',
25
+ title: '@activity-insight:entities.tracking-rule.title',
26
+ titlePlural: '@activity-insight:entities.tracking-rule.plural',
27
+ icon: 'fa-light fa-sliders',
28
+ },
29
+ activitySavedView: {
30
+ name: 'ActivitySavedView',
31
+ title: '@activity-insight:entities.saved-view.title',
32
+ titlePlural: '@activity-insight:entities.saved-view.plural',
33
+ icon: 'fa-light fa-bookmark',
34
+ },
35
+ retentionPolicy: {
36
+ name: 'RetentionPolicy',
37
+ title: '@activity-insight:entities.retention-policy.title',
38
+ titlePlural: '@activity-insight:entities.retention-policy.plural',
39
+ icon: 'fa-light fa-calendar-clock',
40
+ },
41
+ maskingPolicy: {
42
+ name: 'MaskingPolicy',
43
+ title: '@activity-insight:entities.masking-policy.title',
44
+ titlePlural: '@activity-insight:entities.masking-policy.plural',
45
+ icon: 'fa-light fa-eye-slash',
46
+ },
47
+ samplingPolicy: {
48
+ name: 'SamplingPolicy',
49
+ title: '@activity-insight:entities.sampling-policy.title',
50
+ titlePlural: '@activity-insight:entities.sampling-policy.plural',
51
+ icon: 'fa-light fa-percent',
52
+ },
53
+ activityDataSource: {
54
+ name: 'ActivityDataSource',
55
+ title: '@activity-insight:entities.data-source.title',
56
+ titlePlural: '@activity-insight:entities.data-source.plural',
57
+ icon: 'fa-light fa-database',
58
+ },
59
+ },
60
+ };
61
+
62
+ const listFieldOptions = {
63
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
64
+ sort: { enabled: true },
65
+ };
66
+ async function activitySavedViewEntityFactory() {
67
+ const i18n = RootConfig.config.i18n;
68
+ return {
69
+ module: RootConfig.module.name,
70
+ name: RootConfig.entities.activitySavedView.name,
71
+ title: RootConfig.entities.activitySavedView.title,
72
+ icon: RootConfig.entities.activitySavedView.icon,
73
+ formats: {
74
+ individual: RootConfig.entities.activitySavedView.title,
75
+ plural: RootConfig.entities.activitySavedView.titlePlural,
76
+ searchResult: { title: '{{ name }}', description: RootConfig.entities.activitySavedView.title },
77
+ },
78
+ groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
79
+ properties: [
80
+ {
81
+ name: 'name',
82
+ title: `@${i18n}:fields.name`,
83
+ groupId: 'general',
84
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
85
+ options: listFieldOptions,
86
+ },
87
+ {
88
+ name: 'queryJson',
89
+ title: `@${i18n}:fields.query-json`,
90
+ groupId: 'general',
91
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.LargeTextBox } },
92
+ options: listFieldOptions,
93
+ },
94
+ {
95
+ name: 'isDefault',
96
+ title: `@${i18n}:fields.is-default`,
97
+ groupId: 'general',
98
+ schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },
99
+ options: listFieldOptions,
100
+ },
101
+ ],
102
+ columns: [{ name: 'name' }, { name: 'isDefault' }],
103
+ interfaces: {
104
+ master: {
105
+ list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
106
+ single: {
107
+ title: '{{ name }}',
108
+ sections: [{ id: 'general' }],
109
+ properties: [{ name: 'name' }, { name: 'queryJson' }, { name: 'isDefault' }],
110
+ actions: [...entityMasterRecordActions()],
111
+ },
112
+ create: {
113
+ sections: [{ id: 'general' }],
114
+ properties: [{ name: 'name' }, { name: 'queryJson' }, { name: 'isDefault' }],
115
+ },
116
+ update: {
117
+ sections: [{ id: 'general' }],
118
+ properties: [{ name: 'name' }, { name: 'queryJson' }, { name: 'isDefault' }],
119
+ },
120
+ },
121
+ },
122
+ };
123
+ }
124
+
125
+ /**
126
+ * Generated bundle index. Do not edit.
127
+ */
128
+
129
+ export { activitySavedViewEntityFactory };
130
+ //# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/root-config.ts","../../../../libs/modules/activity-insight/contracts/src/entities/activity-saved-view/activity-saved-view.entity.ts","../../../../libs/modules/activity-insight/contracts/src/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.ts"],"sourcesContent":["const config = {\n i18n: 'activity-insight',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'activity-insight',\n module: 'ActivityInsight',\n name: 'ActivityInsight',\n title: '@activity-insight:module.title',\n icon: 'fa-light fa-chart-network',\n },\n entities: {\n activityEvent: {\n name: 'ActivityEvent',\n title: '@activity-insight:entities.activity-event.title',\n titlePlural: '@activity-insight:entities.activity-event.plural',\n icon: 'fa-light fa-wave-pulse',\n },\n trackingRule: {\n name: 'TrackingRule',\n title: '@activity-insight:entities.tracking-rule.title',\n titlePlural: '@activity-insight:entities.tracking-rule.plural',\n icon: 'fa-light fa-sliders',\n },\n activitySavedView: {\n name: 'ActivitySavedView',\n title: '@activity-insight:entities.saved-view.title',\n titlePlural: '@activity-insight:entities.saved-view.plural',\n icon: 'fa-light fa-bookmark',\n },\n retentionPolicy: {\n name: 'RetentionPolicy',\n title: '@activity-insight:entities.retention-policy.title',\n titlePlural: '@activity-insight:entities.retention-policy.plural',\n icon: 'fa-light fa-calendar-clock',\n },\n maskingPolicy: {\n name: 'MaskingPolicy',\n title: '@activity-insight:entities.masking-policy.title',\n titlePlural: '@activity-insight:entities.masking-policy.plural',\n icon: 'fa-light fa-eye-slash',\n },\n samplingPolicy: {\n name: 'SamplingPolicy',\n title: '@activity-insight:entities.sampling-policy.title',\n titlePlural: '@activity-insight:entities.sampling-policy.plural',\n icon: 'fa-light fa-percent',\n },\n activityDataSource: {\n name: 'ActivityDataSource',\n title: '@activity-insight:entities.data-source.title',\n titlePlural: '@activity-insight:entities.data-source.plural',\n icon: 'fa-light fa-database',\n },\n },\n} as const;\n","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 activitySavedViewEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.activitySavedView.name,\n title: RootConfig.entities.activitySavedView.title,\n icon: RootConfig.entities.activitySavedView.icon,\n formats: {\n individual: RootConfig.entities.activitySavedView.title,\n plural: RootConfig.entities.activitySavedView.titlePlural,\n searchResult: { title: '{{ name }}', description: RootConfig.entities.activitySavedView.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: 'queryJson',\n title: `@${i18n}:fields.query-json`,\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.LargeTextBox } },\n options: listFieldOptions,\n },\n {\n name: 'isDefault',\n title: `@${i18n}:fields.is-default`,\n groupId: 'general',\n schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },\n options: listFieldOptions,\n },\n ],\n columns: [{ name: 'name' }, { name: 'isDefault' }],\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: {\n title: '{{ name }}',\n sections: [{ id: 'general' }],\n properties: [{ name: 'name' }, { name: 'queryJson' }, { name: 'isDefault' }],\n actions: [...entityMasterRecordActions()],\n },\n create: {\n sections: [{ id: 'general' }],\n properties: [{ name: 'name' }, { name: 'queryJson' }, { name: 'isDefault' }],\n },\n update: {\n sections: [{ id: 'general' }],\n properties: [{ name: 'name' }, { name: 'queryJson' }, { name: 'isDefault' }],\n },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.activity-saved-view';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,kBAAkB;CACzB;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAA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EAAE,EAAE,SAAS,EAAE,CAAC;AAC7B,oBAAA,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AAC5E,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;AAC7B,oBAAA,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AAC7E,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;AAC7B,oBAAA,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AAC7E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;ACxEA;;AAEG;;;;"}
@@ -0,0 +1,152 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'activity-insight',
6
+ };
7
+ const RootConfig = {
8
+ config,
9
+ module: {
10
+ route: 'activity-insight',
11
+ module: 'ActivityInsight',
12
+ name: 'ActivityInsight',
13
+ title: '@activity-insight:module.title',
14
+ icon: 'fa-light fa-chart-network',
15
+ },
16
+ entities: {
17
+ activityEvent: {
18
+ name: 'ActivityEvent',
19
+ title: '@activity-insight:entities.activity-event.title',
20
+ titlePlural: '@activity-insight:entities.activity-event.plural',
21
+ icon: 'fa-light fa-wave-pulse',
22
+ },
23
+ trackingRule: {
24
+ name: 'TrackingRule',
25
+ title: '@activity-insight:entities.tracking-rule.title',
26
+ titlePlural: '@activity-insight:entities.tracking-rule.plural',
27
+ icon: 'fa-light fa-sliders',
28
+ },
29
+ activitySavedView: {
30
+ name: 'ActivitySavedView',
31
+ title: '@activity-insight:entities.saved-view.title',
32
+ titlePlural: '@activity-insight:entities.saved-view.plural',
33
+ icon: 'fa-light fa-bookmark',
34
+ },
35
+ retentionPolicy: {
36
+ name: 'RetentionPolicy',
37
+ title: '@activity-insight:entities.retention-policy.title',
38
+ titlePlural: '@activity-insight:entities.retention-policy.plural',
39
+ icon: 'fa-light fa-calendar-clock',
40
+ },
41
+ maskingPolicy: {
42
+ name: 'MaskingPolicy',
43
+ title: '@activity-insight:entities.masking-policy.title',
44
+ titlePlural: '@activity-insight:entities.masking-policy.plural',
45
+ icon: 'fa-light fa-eye-slash',
46
+ },
47
+ samplingPolicy: {
48
+ name: 'SamplingPolicy',
49
+ title: '@activity-insight:entities.sampling-policy.title',
50
+ titlePlural: '@activity-insight:entities.sampling-policy.plural',
51
+ icon: 'fa-light fa-percent',
52
+ },
53
+ activityDataSource: {
54
+ name: 'ActivityDataSource',
55
+ title: '@activity-insight:entities.data-source.title',
56
+ titlePlural: '@activity-insight:entities.data-source.plural',
57
+ icon: 'fa-light fa-database',
58
+ },
59
+ },
60
+ };
61
+
62
+ const listFieldOptions = {
63
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
64
+ sort: { enabled: true },
65
+ };
66
+ async function maskingPolicyEntityFactory() {
67
+ const i18n = RootConfig.config.i18n;
68
+ return {
69
+ module: RootConfig.module.name,
70
+ name: RootConfig.entities.maskingPolicy.name,
71
+ title: RootConfig.entities.maskingPolicy.title,
72
+ icon: RootConfig.entities.maskingPolicy.icon,
73
+ formats: {
74
+ individual: RootConfig.entities.maskingPolicy.title,
75
+ plural: RootConfig.entities.maskingPolicy.titlePlural,
76
+ searchResult: { title: '{{ name }}', description: RootConfig.entities.maskingPolicy.title },
77
+ },
78
+ groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
79
+ properties: [
80
+ {
81
+ name: 'name',
82
+ title: `@${i18n}:fields.name`,
83
+ groupId: 'general',
84
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
85
+ options: listFieldOptions,
86
+ },
87
+ {
88
+ name: 'denylistFields',
89
+ title: `@${i18n}:fields.denylist-fields`,
90
+ groupId: 'general',
91
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.LargeTextBox } },
92
+ options: listFieldOptions,
93
+ },
94
+ {
95
+ name: 'maxPropertyBytes',
96
+ title: `@${i18n}:fields.max-property-bytes`,
97
+ groupId: 'general',
98
+ schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
99
+ options: listFieldOptions,
100
+ },
101
+ {
102
+ name: 'enabled',
103
+ title: `@${i18n}:fields.enabled`,
104
+ groupId: 'general',
105
+ schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },
106
+ options: listFieldOptions,
107
+ },
108
+ ],
109
+ columns: [{ name: 'name' }, { name: 'maxPropertyBytes' }, { name: 'enabled' }],
110
+ interfaces: {
111
+ master: {
112
+ list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
113
+ single: {
114
+ title: '{{ name }}',
115
+ sections: [{ id: 'general' }],
116
+ properties: [
117
+ { name: 'name' },
118
+ { name: 'denylistFields' },
119
+ { name: 'maxPropertyBytes' },
120
+ { name: 'enabled' },
121
+ ],
122
+ actions: [...entityMasterRecordActions()],
123
+ },
124
+ create: {
125
+ sections: [{ id: 'general' }],
126
+ properties: [
127
+ { name: 'name' },
128
+ { name: 'denylistFields' },
129
+ { name: 'maxPropertyBytes' },
130
+ { name: 'enabled' },
131
+ ],
132
+ },
133
+ update: {
134
+ sections: [{ id: 'general' }],
135
+ properties: [
136
+ { name: 'name' },
137
+ { name: 'denylistFields' },
138
+ { name: 'maxPropertyBytes' },
139
+ { name: 'enabled' },
140
+ ],
141
+ },
142
+ },
143
+ },
144
+ };
145
+ }
146
+
147
+ /**
148
+ * Generated bundle index. Do not edit.
149
+ */
150
+
151
+ export { maskingPolicyEntityFactory };
152
+ //# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/root-config.ts","../../../../libs/modules/activity-insight/contracts/src/entities/masking-policy/masking-policy.entity.ts","../../../../libs/modules/activity-insight/contracts/src/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.ts"],"sourcesContent":["const config = {\n i18n: 'activity-insight',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'activity-insight',\n module: 'ActivityInsight',\n name: 'ActivityInsight',\n title: '@activity-insight:module.title',\n icon: 'fa-light fa-chart-network',\n },\n entities: {\n activityEvent: {\n name: 'ActivityEvent',\n title: '@activity-insight:entities.activity-event.title',\n titlePlural: '@activity-insight:entities.activity-event.plural',\n icon: 'fa-light fa-wave-pulse',\n },\n trackingRule: {\n name: 'TrackingRule',\n title: '@activity-insight:entities.tracking-rule.title',\n titlePlural: '@activity-insight:entities.tracking-rule.plural',\n icon: 'fa-light fa-sliders',\n },\n activitySavedView: {\n name: 'ActivitySavedView',\n title: '@activity-insight:entities.saved-view.title',\n titlePlural: '@activity-insight:entities.saved-view.plural',\n icon: 'fa-light fa-bookmark',\n },\n retentionPolicy: {\n name: 'RetentionPolicy',\n title: '@activity-insight:entities.retention-policy.title',\n titlePlural: '@activity-insight:entities.retention-policy.plural',\n icon: 'fa-light fa-calendar-clock',\n },\n maskingPolicy: {\n name: 'MaskingPolicy',\n title: '@activity-insight:entities.masking-policy.title',\n titlePlural: '@activity-insight:entities.masking-policy.plural',\n icon: 'fa-light fa-eye-slash',\n },\n samplingPolicy: {\n name: 'SamplingPolicy',\n title: '@activity-insight:entities.sampling-policy.title',\n titlePlural: '@activity-insight:entities.sampling-policy.plural',\n icon: 'fa-light fa-percent',\n },\n activityDataSource: {\n name: 'ActivityDataSource',\n title: '@activity-insight:entities.data-source.title',\n titlePlural: '@activity-insight:entities.data-source.plural',\n icon: 'fa-light fa-database',\n },\n },\n} as const;\n","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 maskingPolicyEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.maskingPolicy.name,\n title: RootConfig.entities.maskingPolicy.title,\n icon: RootConfig.entities.maskingPolicy.icon,\n formats: {\n individual: RootConfig.entities.maskingPolicy.title,\n plural: RootConfig.entities.maskingPolicy.titlePlural,\n searchResult: { title: '{{ name }}', description: RootConfig.entities.maskingPolicy.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: 'denylistFields',\n title: `@${i18n}:fields.denylist-fields`,\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.LargeTextBox } },\n options: listFieldOptions,\n },\n {\n name: 'maxPropertyBytes',\n title: `@${i18n}:fields.max-property-bytes`,\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: 'maxPropertyBytes' }, { name: 'enabled' }],\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: {\n title: '{{ name }}',\n sections: [{ id: 'general' }],\n properties: [\n { name: 'name' },\n { name: 'denylistFields' },\n { name: 'maxPropertyBytes' },\n { name: 'enabled' },\n ],\n actions: [...entityMasterRecordActions()],\n },\n create: {\n sections: [{ id: 'general' }],\n properties: [\n { name: 'name' },\n { name: 'denylistFields' },\n { name: 'maxPropertyBytes' },\n { name: 'enabled' },\n ],\n },\n update: {\n sections: [{ id: 'general' }],\n properties: [\n { name: 'name' },\n { name: 'denylistFields' },\n { name: 'maxPropertyBytes' },\n { name: 'enabled' },\n ],\n },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.masking-policy';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,kBAAkB;CACzB;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,kBAAkB;AACzB,QAAA,MAAM,EAAE,iBAAiB;AACzB,QAAA,IAAI,EAAE,iBAAiB;AACvB,QAAA,KAAK,EAAE,gCAAgC;AACvC,QAAA,IAAI,EAAE,2BAA2B;AAClC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,eAAe;AACrB,YAAA,KAAK,EAAE,iDAAiD;AACxD,YAAA,WAAW,EAAE,kDAAkD;AAC/D,YAAA,IAAI,EAAE,wBAAwB;AAC/B,SAAA;AACD,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,cAAc;AACpB,YAAA,KAAK,EAAE,gDAAgD;AACvD,YAAA,WAAW,EAAE,iDAAiD;AAC9D,YAAA,IAAI,EAAE,qBAAqB;A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,EAAE,kBAAkB,EAAE;wBAC5B,EAAE,IAAI,EAAE,SAAS,EAAE;AACpB,qBAAA;AACD,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;AAC7B,oBAAA,UAAU,EAAE;wBACV,EAAE,IAAI,EAAE,MAAM,EAAE;wBAChB,EAAE,IAAI,EAAE,gBAAgB,EAAE;wBAC1B,EAAE,IAAI,EAAE,kBAAkB,EAAE;wBAC5B,EAAE,IAAI,EAAE,SAAS,EAAE;AACpB,qBAAA;AACF,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;AAC7B,oBAAA,UAAU,EAAE;wBACV,EAAE,IAAI,EAAE,MAAM,EAAE;wBAChB,EAAE,IAAI,EAAE,gBAAgB,EAAE;wBAC1B,EAAE,IAAI,EAAE,kBAAkB,EAAE;wBAC5B,EAAE,IAAI,EAAE,SAAS,EAAE;AACpB,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;AC9FA;;AAEG;;;;"}
@@ -0,0 +1,136 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'activity-insight',
6
+ };
7
+ const RootConfig = {
8
+ config,
9
+ module: {
10
+ route: 'activity-insight',
11
+ module: 'ActivityInsight',
12
+ name: 'ActivityInsight',
13
+ title: '@activity-insight:module.title',
14
+ icon: 'fa-light fa-chart-network',
15
+ },
16
+ entities: {
17
+ activityEvent: {
18
+ name: 'ActivityEvent',
19
+ title: '@activity-insight:entities.activity-event.title',
20
+ titlePlural: '@activity-insight:entities.activity-event.plural',
21
+ icon: 'fa-light fa-wave-pulse',
22
+ },
23
+ trackingRule: {
24
+ name: 'TrackingRule',
25
+ title: '@activity-insight:entities.tracking-rule.title',
26
+ titlePlural: '@activity-insight:entities.tracking-rule.plural',
27
+ icon: 'fa-light fa-sliders',
28
+ },
29
+ activitySavedView: {
30
+ name: 'ActivitySavedView',
31
+ title: '@activity-insight:entities.saved-view.title',
32
+ titlePlural: '@activity-insight:entities.saved-view.plural',
33
+ icon: 'fa-light fa-bookmark',
34
+ },
35
+ retentionPolicy: {
36
+ name: 'RetentionPolicy',
37
+ title: '@activity-insight:entities.retention-policy.title',
38
+ titlePlural: '@activity-insight:entities.retention-policy.plural',
39
+ icon: 'fa-light fa-calendar-clock',
40
+ },
41
+ maskingPolicy: {
42
+ name: 'MaskingPolicy',
43
+ title: '@activity-insight:entities.masking-policy.title',
44
+ titlePlural: '@activity-insight:entities.masking-policy.plural',
45
+ icon: 'fa-light fa-eye-slash',
46
+ },
47
+ samplingPolicy: {
48
+ name: 'SamplingPolicy',
49
+ title: '@activity-insight:entities.sampling-policy.title',
50
+ titlePlural: '@activity-insight:entities.sampling-policy.plural',
51
+ icon: 'fa-light fa-percent',
52
+ },
53
+ activityDataSource: {
54
+ name: 'ActivityDataSource',
55
+ title: '@activity-insight:entities.data-source.title',
56
+ titlePlural: '@activity-insight:entities.data-source.plural',
57
+ icon: 'fa-light fa-database',
58
+ },
59
+ },
60
+ };
61
+
62
+ const listFieldOptions = {
63
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
64
+ sort: { enabled: true },
65
+ };
66
+ async function retentionPolicyEntityFactory() {
67
+ const i18n = RootConfig.config.i18n;
68
+ return {
69
+ module: RootConfig.module.name,
70
+ name: RootConfig.entities.retentionPolicy.name,
71
+ title: RootConfig.entities.retentionPolicy.title,
72
+ icon: RootConfig.entities.retentionPolicy.icon,
73
+ formats: {
74
+ individual: RootConfig.entities.retentionPolicy.title,
75
+ plural: RootConfig.entities.retentionPolicy.titlePlural,
76
+ searchResult: { title: '{{ dataType }}', description: RootConfig.entities.retentionPolicy.title },
77
+ },
78
+ groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
79
+ properties: [
80
+ {
81
+ name: 'dataType',
82
+ title: `@${i18n}:fields.data-type`,
83
+ groupId: 'general',
84
+ schema: {
85
+ dataType: 'string',
86
+ interface: {
87
+ type: AXPWidgetsList.Editors.SelectBox,
88
+ options: { dataSource: ['events', 'sessions', 'journeys'] },
89
+ },
90
+ },
91
+ options: listFieldOptions,
92
+ },
93
+ {
94
+ name: 'retentionDays',
95
+ title: `@${i18n}:fields.retention-days`,
96
+ groupId: 'general',
97
+ schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
98
+ options: listFieldOptions,
99
+ },
100
+ {
101
+ name: 'enabled',
102
+ title: `@${i18n}:fields.enabled`,
103
+ groupId: 'general',
104
+ schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },
105
+ options: listFieldOptions,
106
+ },
107
+ ],
108
+ columns: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],
109
+ interfaces: {
110
+ master: {
111
+ list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
112
+ single: {
113
+ title: '{{ dataType }}',
114
+ sections: [{ id: 'general' }],
115
+ properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],
116
+ actions: [...entityMasterRecordActions()],
117
+ },
118
+ create: {
119
+ sections: [{ id: 'general' }],
120
+ properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],
121
+ },
122
+ update: {
123
+ sections: [{ id: 'general' }],
124
+ properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],
125
+ },
126
+ },
127
+ },
128
+ };
129
+ }
130
+
131
+ /**
132
+ * Generated bundle index. Do not edit.
133
+ */
134
+
135
+ export { retentionPolicyEntityFactory };
136
+ //# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/root-config.ts","../../../../libs/modules/activity-insight/contracts/src/entities/retention-policy/retention-policy.entity.ts","../../../../libs/modules/activity-insight/contracts/src/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.ts"],"sourcesContent":["const config = {\n i18n: 'activity-insight',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'activity-insight',\n module: 'ActivityInsight',\n name: 'ActivityInsight',\n title: '@activity-insight:module.title',\n icon: 'fa-light fa-chart-network',\n },\n entities: {\n activityEvent: {\n name: 'ActivityEvent',\n title: '@activity-insight:entities.activity-event.title',\n titlePlural: '@activity-insight:entities.activity-event.plural',\n icon: 'fa-light fa-wave-pulse',\n },\n trackingRule: {\n name: 'TrackingRule',\n title: '@activity-insight:entities.tracking-rule.title',\n titlePlural: '@activity-insight:entities.tracking-rule.plural',\n icon: 'fa-light fa-sliders',\n },\n activitySavedView: {\n name: 'ActivitySavedView',\n title: '@activity-insight:entities.saved-view.title',\n titlePlural: '@activity-insight:entities.saved-view.plural',\n icon: 'fa-light fa-bookmark',\n },\n retentionPolicy: {\n name: 'RetentionPolicy',\n title: '@activity-insight:entities.retention-policy.title',\n titlePlural: '@activity-insight:entities.retention-policy.plural',\n icon: 'fa-light fa-calendar-clock',\n },\n maskingPolicy: {\n name: 'MaskingPolicy',\n title: '@activity-insight:entities.masking-policy.title',\n titlePlural: '@activity-insight:entities.masking-policy.plural',\n icon: 'fa-light fa-eye-slash',\n },\n samplingPolicy: {\n name: 'SamplingPolicy',\n title: '@activity-insight:entities.sampling-policy.title',\n titlePlural: '@activity-insight:entities.sampling-policy.plural',\n icon: 'fa-light fa-percent',\n },\n activityDataSource: {\n name: 'ActivityDataSource',\n title: '@activity-insight:entities.data-source.title',\n titlePlural: '@activity-insight:entities.data-source.plural',\n icon: 'fa-light fa-database',\n },\n },\n} as const;\n","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 retentionPolicyEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\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: `@${i18n}:groups.general` }],\n properties: [\n {\n name: 'dataType',\n title: `@${i18n}:fields.data-type`,\n groupId: 'general',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: { dataSource: ['events', 'sessions', 'journeys'] },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'retentionDays',\n title: `@${i18n}:fields.retention-days`,\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: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: {\n title: '{{ dataType }}',\n sections: [{ id: 'general' }],\n properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],\n actions: [...entityMasterRecordActions()],\n },\n create: {\n sections: [{ id: 'general' }],\n properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],\n },\n update: {\n sections: [{ id: 'general' }],\n properties: [{ name: 'dataType' }, { name: 'retentionDays' }, { name: 'enabled' }],\n },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.retention-policy';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,kBAAkB;CACzB;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,kBAAkB;AACzB,QAAA,MAAM,EAAE,iBAAiB;AACzB,QAAA,IAAI,EAAE,iBAAiB;AACvB,QAAA,KAAK,EAAE,gCAAgC;AACvC,QAAA,IAAI,EAAE,2BAA2B;AAClC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,eAAe;AACrB,YAAA,KAAK,EAAE,iDAAiD;AACxD,YAAA,WAAW,EAAE,kDAAkD;AAC/D,YAAA,IAAI,EAAE,wBAAwB;AAC/B,SAAA;AACD,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,cAAc;AACpB,YAAA,KAAK,EAAE,gDAAgD;AACvD,YAAA,WAAW,EAAE,iDAAiD;AAC9D,YAAA,IAAI,EAAE,qBAAqB;AAC5B,SAAA;AACD,QAAA,iBAAiB,EAAE;AACjB,YAAA,IAAI,EAAE,mBAAmB;AACzB,YAAA,KAAK,EAAE,6CAA6C;AACpD,YAAA,WAAW,EAAE,8CAA8C;AAC3D,YAAA,IAAI,EAAE,sBAAsB;AAC7B,SAAA;AACD,QAAA,eAAe,EAAE;AACf,YAAA,IAAI,EAAE,iBAAiB;AACvB,YAAA,KAAK,EAAE,mDAAmD;AAC1D,YAAA,WAAW,EAAE,oDAAoD;AACjE,YAAA,IAAI,EAAE,4BAA4B;AACnC,SAAA;AACD,QAAA,aAAa,EAAE;AACb,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,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;AC9EA;;AAEG;;;;"}
@@ -0,0 +1,137 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'activity-insight',
6
+ };
7
+ const RootConfig = {
8
+ config,
9
+ module: {
10
+ route: 'activity-insight',
11
+ module: 'ActivityInsight',
12
+ name: 'ActivityInsight',
13
+ title: '@activity-insight:module.title',
14
+ icon: 'fa-light fa-chart-network',
15
+ },
16
+ entities: {
17
+ activityEvent: {
18
+ name: 'ActivityEvent',
19
+ title: '@activity-insight:entities.activity-event.title',
20
+ titlePlural: '@activity-insight:entities.activity-event.plural',
21
+ icon: 'fa-light fa-wave-pulse',
22
+ },
23
+ trackingRule: {
24
+ name: 'TrackingRule',
25
+ title: '@activity-insight:entities.tracking-rule.title',
26
+ titlePlural: '@activity-insight:entities.tracking-rule.plural',
27
+ icon: 'fa-light fa-sliders',
28
+ },
29
+ activitySavedView: {
30
+ name: 'ActivitySavedView',
31
+ title: '@activity-insight:entities.saved-view.title',
32
+ titlePlural: '@activity-insight:entities.saved-view.plural',
33
+ icon: 'fa-light fa-bookmark',
34
+ },
35
+ retentionPolicy: {
36
+ name: 'RetentionPolicy',
37
+ title: '@activity-insight:entities.retention-policy.title',
38
+ titlePlural: '@activity-insight:entities.retention-policy.plural',
39
+ icon: 'fa-light fa-calendar-clock',
40
+ },
41
+ maskingPolicy: {
42
+ name: 'MaskingPolicy',
43
+ title: '@activity-insight:entities.masking-policy.title',
44
+ titlePlural: '@activity-insight:entities.masking-policy.plural',
45
+ icon: 'fa-light fa-eye-slash',
46
+ },
47
+ samplingPolicy: {
48
+ name: 'SamplingPolicy',
49
+ title: '@activity-insight:entities.sampling-policy.title',
50
+ titlePlural: '@activity-insight:entities.sampling-policy.plural',
51
+ icon: 'fa-light fa-percent',
52
+ },
53
+ activityDataSource: {
54
+ name: 'ActivityDataSource',
55
+ title: '@activity-insight:entities.data-source.title',
56
+ titlePlural: '@activity-insight:entities.data-source.plural',
57
+ icon: 'fa-light fa-database',
58
+ },
59
+ },
60
+ };
61
+
62
+ const listFieldOptions = {
63
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
64
+ sort: { enabled: true },
65
+ };
66
+ async function samplingPolicyEntityFactory() {
67
+ const i18n = RootConfig.config.i18n;
68
+ return {
69
+ module: RootConfig.module.name,
70
+ name: RootConfig.entities.samplingPolicy.name,
71
+ title: RootConfig.entities.samplingPolicy.title,
72
+ icon: RootConfig.entities.samplingPolicy.icon,
73
+ formats: {
74
+ individual: RootConfig.entities.samplingPolicy.title,
75
+ plural: RootConfig.entities.samplingPolicy.titlePlural,
76
+ searchResult: { title: '{{ name }}', description: RootConfig.entities.samplingPolicy.title },
77
+ },
78
+ groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
79
+ properties: [
80
+ {
81
+ name: 'name',
82
+ title: `@${i18n}:fields.name`,
83
+ groupId: 'general',
84
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
85
+ options: listFieldOptions,
86
+ },
87
+ {
88
+ name: 'eventPattern',
89
+ title: `@${i18n}:fields.event-pattern`,
90
+ groupId: 'general',
91
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
92
+ options: listFieldOptions,
93
+ },
94
+ {
95
+ name: 'rate',
96
+ title: `@${i18n}:fields.sampling-rate`,
97
+ groupId: 'general',
98
+ schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
99
+ options: listFieldOptions,
100
+ },
101
+ {
102
+ name: 'enabled',
103
+ title: `@${i18n}:fields.enabled`,
104
+ groupId: 'general',
105
+ schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },
106
+ options: listFieldOptions,
107
+ },
108
+ ],
109
+ columns: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],
110
+ interfaces: {
111
+ master: {
112
+ list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
113
+ single: {
114
+ title: '{{ name }}',
115
+ sections: [{ id: 'general' }],
116
+ properties: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],
117
+ actions: [...entityMasterRecordActions()],
118
+ },
119
+ create: {
120
+ sections: [{ id: 'general' }],
121
+ properties: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],
122
+ },
123
+ update: {
124
+ sections: [{ id: 'general' }],
125
+ properties: [{ name: 'name' }, { name: 'eventPattern' }, { name: 'rate' }, { name: 'enabled' }],
126
+ },
127
+ },
128
+ },
129
+ };
130
+ }
131
+
132
+ /**
133
+ * Generated bundle index. Do not edit.
134
+ */
135
+
136
+ export { samplingPolicyEntityFactory };
137
+ //# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/root-config.ts","../../../../libs/modules/activity-insight/contracts/src/entities/sampling-policy/sampling-policy.entity.ts","../../../../libs/modules/activity-insight/contracts/src/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.ts"],"sourcesContent":["const config = {\n i18n: 'activity-insight',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'activity-insight',\n module: 'ActivityInsight',\n name: 'ActivityInsight',\n title: '@activity-insight:module.title',\n icon: 'fa-light fa-chart-network',\n },\n entities: {\n activityEvent: {\n name: 'ActivityEvent',\n title: '@activity-insight:entities.activity-event.title',\n titlePlural: '@activity-insight:entities.activity-event.plural',\n icon: 'fa-light fa-wave-pulse',\n },\n trackingRule: {\n name: 'TrackingRule',\n title: '@activity-insight:entities.tracking-rule.title',\n titlePlural: '@activity-insight:entities.tracking-rule.plural',\n icon: 'fa-light fa-sliders',\n },\n activitySavedView: {\n name: 'ActivitySavedView',\n title: '@activity-insight:entities.saved-view.title',\n titlePlural: '@activity-insight:entities.saved-view.plural',\n icon: 'fa-light fa-bookmark',\n },\n retentionPolicy: {\n name: 'RetentionPolicy',\n title: '@activity-insight:entities.retention-policy.title',\n titlePlural: '@activity-insight:entities.retention-policy.plural',\n icon: 'fa-light fa-calendar-clock',\n },\n maskingPolicy: {\n name: 'MaskingPolicy',\n title: '@activity-insight:entities.masking-policy.title',\n titlePlural: '@activity-insight:entities.masking-policy.plural',\n icon: 'fa-light fa-eye-slash',\n },\n samplingPolicy: {\n name: 'SamplingPolicy',\n title: '@activity-insight:entities.sampling-policy.title',\n titlePlural: '@activity-insight:entities.sampling-policy.plural',\n icon: 'fa-light fa-percent',\n },\n activityDataSource: {\n name: 'ActivityDataSource',\n title: '@activity-insight:entities.data-source.title',\n titlePlural: '@activity-insight:entities.data-source.plural',\n icon: 'fa-light fa-database',\n },\n },\n} as const;\n","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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.sampling-policy';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,kBAAkB;CACzB;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,kBAAkB;AACzB,QAAA,MAAM,EAAE,iBAAiB;AACzB,QAAA,IAAI,EAAE,iBAAiB;AACvB,QAAA,KAAK,EAAE,gCAAgC;AACvC,QAAA,IAAI,EAAE,2BAA2B;AAClC,KAAA;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