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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/fesm2022/acorex-platform-module-activity-insight-client-activity-dashboard-page.component-CAcsbq4I.mjs.map +1 -1
  2. package/fesm2022/acorex-platform-module-activity-insight-client-activity-timeline-page.component-DULl2SRF.mjs.map +1 -1
  3. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs +152 -0
  4. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs +380 -0
  6. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs +130 -0
  8. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs +152 -0
  10. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs +136 -0
  12. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs +137 -0
  14. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs +181 -0
  16. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs +86 -0
  18. 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
  19. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs +91 -0
  20. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-event.entity-CERoGcZn.mjs +319 -0
  22. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-event.entity-CERoGcZn.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-saved-view.entity-Ch3bWS9X.mjs +69 -0
  24. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-saved-view.entity-Ch3bWS9X.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-masking-policy.entity-DzJ1RsQz.mjs +91 -0
  26. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-masking-policy.entity-DzJ1RsQz.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-retention-policy.entity-CLANdFVA.mjs +75 -0
  28. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-retention-policy.entity-CLANdFVA.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs +76 -0
  30. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs +120 -0
  32. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs +2 -0
  34. package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-activity-insight-client-contracts.mjs.map +1 -1
  36. package/fesm2022/acorex-platform-module-activity-insight-client-local-entities.mjs +35 -0
  37. package/fesm2022/acorex-platform-module-activity-insight-client-local-entities.mjs.map +1 -0
  38. package/fesm2022/acorex-platform-module-activity-insight-client.mjs.map +1 -1
  39. package/package.json +37 -1
  40. package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.d.ts +5 -0
  41. package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.d.ts +5 -0
  42. package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.d.ts +5 -0
  43. package/types/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.d.ts +5 -0
  44. package/types/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.d.ts +5 -0
  45. package/types/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.d.ts +5 -0
  46. package/types/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.d.ts +5 -0
  47. package/types/acorex-platform-module-activity-insight-client-contracts-entity-catalog.d.ts +10 -0
  48. package/types/acorex-platform-module-activity-insight-client-local-entities.d.ts +12 -0
@@ -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;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,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AE,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;;AC/EA;;AAEG;;"}
@@ -0,0 +1,181 @@
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 trackingRuleEntityFactory() {
67
+ const i18n = RootConfig.config.i18n;
68
+ return {
69
+ module: RootConfig.module.name,
70
+ name: RootConfig.entities.trackingRule.name,
71
+ title: RootConfig.entities.trackingRule.title,
72
+ icon: RootConfig.entities.trackingRule.icon,
73
+ formats: {
74
+ individual: RootConfig.entities.trackingRule.title,
75
+ plural: RootConfig.entities.trackingRule.titlePlural,
76
+ searchResult: { title: '{{ name }}', description: RootConfig.entities.trackingRule.title },
77
+ },
78
+ groups: [
79
+ { id: 'general', title: `@${i18n}:groups.general` },
80
+ { id: 'policy', title: `@${i18n}:groups.policy` },
81
+ ],
82
+ properties: [
83
+ {
84
+ name: 'name',
85
+ title: `@${i18n}:fields.name`,
86
+ groupId: 'general',
87
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
88
+ options: listFieldOptions,
89
+ },
90
+ {
91
+ name: 'moduleName',
92
+ title: `@${i18n}:fields.module`,
93
+ groupId: 'general',
94
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
95
+ options: listFieldOptions,
96
+ },
97
+ {
98
+ name: 'eventPattern',
99
+ title: `@${i18n}:fields.event-pattern`,
100
+ groupId: 'policy',
101
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
102
+ options: listFieldOptions,
103
+ },
104
+ {
105
+ name: 'priority',
106
+ title: `@${i18n}:fields.priority`,
107
+ groupId: 'policy',
108
+ schema: {
109
+ dataType: 'string',
110
+ interface: {
111
+ type: AXPWidgetsList.Editors.SelectBox,
112
+ options: { dataSource: ['low', 'normal', 'high'] },
113
+ },
114
+ },
115
+ options: listFieldOptions,
116
+ },
117
+ {
118
+ name: 'samplingRate',
119
+ title: `@${i18n}:fields.sampling-rate`,
120
+ groupId: 'policy',
121
+ schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
122
+ options: listFieldOptions,
123
+ },
124
+ {
125
+ name: 'enabled',
126
+ title: `@${i18n}:fields.enabled`,
127
+ groupId: 'general',
128
+ schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },
129
+ options: listFieldOptions,
130
+ },
131
+ ],
132
+ columns: [{ name: 'name' }, { name: 'moduleName' }, { name: 'eventPattern' }, { name: 'enabled' }],
133
+ interfaces: {
134
+ master: {
135
+ list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
136
+ single: {
137
+ title: '{{ name }}',
138
+ sections: [{ id: 'general' }, { id: 'policy' }],
139
+ properties: [
140
+ { name: 'name' },
141
+ { name: 'moduleName' },
142
+ { name: 'enabled' },
143
+ { name: 'eventPattern' },
144
+ { name: 'priority' },
145
+ { name: 'samplingRate' },
146
+ ],
147
+ actions: [...entityMasterRecordActions()],
148
+ },
149
+ create: {
150
+ sections: [{ id: 'general' }, { id: 'policy' }],
151
+ properties: [
152
+ { name: 'name' },
153
+ { name: 'moduleName' },
154
+ { name: 'enabled' },
155
+ { name: 'eventPattern' },
156
+ { name: 'priority' },
157
+ { name: 'samplingRate' },
158
+ ],
159
+ },
160
+ update: {
161
+ sections: [{ id: 'general' }, { id: 'policy' }],
162
+ properties: [
163
+ { name: 'name' },
164
+ { name: 'moduleName' },
165
+ { name: 'enabled' },
166
+ { name: 'eventPattern' },
167
+ { name: 'priority' },
168
+ { name: 'samplingRate' },
169
+ ],
170
+ },
171
+ },
172
+ },
173
+ };
174
+ }
175
+
176
+ /**
177
+ * Generated bundle index. Do not edit.
178
+ */
179
+
180
+ export { trackingRuleEntityFactory };
181
+ //# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/root-config.ts","../../../../libs/modules/activity-insight/contracts/src/entities/tracking-rule/tracking-rule.entity.ts","../../../../libs/modules/activity-insight/contracts/src/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.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 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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.tracking-rule';\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,YAAA,IAAI,EAAE,eAAe;AACrB,YAAA,KAAK,EAAE,iDAAiD;AACxD,YAAA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E;wBACV,EAAE,IAAI,EAAE,MAAM,EAAE;wBAChB,EAAE,IAAI,EAAE,YAAY,EAAE;wBACtB,EAAE,IAAI,EAAE,SAAS,EAAE;wBACnB,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;;AC3HA;;AAEG;;"}
@@ -0,0 +1,86 @@
1
+ const config = {
2
+ i18n: 'activity-insight',
3
+ };
4
+ const RootConfig = {
5
+ config,
6
+ module: {
7
+ route: 'activity-insight',
8
+ module: 'ActivityInsight',
9
+ name: 'ActivityInsight',
10
+ title: '@activity-insight:module.title',
11
+ icon: 'fa-light fa-chart-network',
12
+ },
13
+ entities: {
14
+ activityEvent: {
15
+ name: 'ActivityEvent',
16
+ title: '@activity-insight:entities.activity-event.title',
17
+ titlePlural: '@activity-insight:entities.activity-event.plural',
18
+ icon: 'fa-light fa-wave-pulse',
19
+ },
20
+ trackingRule: {
21
+ name: 'TrackingRule',
22
+ title: '@activity-insight:entities.tracking-rule.title',
23
+ titlePlural: '@activity-insight:entities.tracking-rule.plural',
24
+ icon: 'fa-light fa-sliders',
25
+ },
26
+ activitySavedView: {
27
+ name: 'ActivitySavedView',
28
+ title: '@activity-insight:entities.saved-view.title',
29
+ titlePlural: '@activity-insight:entities.saved-view.plural',
30
+ icon: 'fa-light fa-bookmark',
31
+ },
32
+ retentionPolicy: {
33
+ name: 'RetentionPolicy',
34
+ title: '@activity-insight:entities.retention-policy.title',
35
+ titlePlural: '@activity-insight:entities.retention-policy.plural',
36
+ icon: 'fa-light fa-calendar-clock',
37
+ },
38
+ maskingPolicy: {
39
+ name: 'MaskingPolicy',
40
+ title: '@activity-insight:entities.masking-policy.title',
41
+ titlePlural: '@activity-insight:entities.masking-policy.plural',
42
+ icon: 'fa-light fa-eye-slash',
43
+ },
44
+ samplingPolicy: {
45
+ name: 'SamplingPolicy',
46
+ title: '@activity-insight:entities.sampling-policy.title',
47
+ titlePlural: '@activity-insight:entities.sampling-policy.plural',
48
+ icon: 'fa-light fa-percent',
49
+ },
50
+ activityDataSource: {
51
+ name: 'ActivityDataSource',
52
+ title: '@activity-insight:entities.data-source.title',
53
+ titlePlural: '@activity-insight:entities.data-source.plural',
54
+ icon: 'fa-light fa-database',
55
+ },
56
+ },
57
+ };
58
+
59
+ //#region ----- Imports -----
60
+ //#endregion
61
+ //#region ----- Local entity catalog -----
62
+ /**
63
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
64
+ * so RootConfig imports stay light. Server seed and client `local-entities`
65
+ * consume this catalog explicitly.
66
+ */
67
+ const activityInsightLocalEntityCatalog = {
68
+ moduleName: RootConfig.module.name,
69
+ loaders: {
70
+ [RootConfig.entities.activityDataSource.name]: () => import('./acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs').then((m) => m.activityDataSourceEntityFactory()),
71
+ [RootConfig.entities.activityEvent.name]: () => import('./acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-event.entity-CERoGcZn.mjs').then((m) => m.activityEventEntityFactory()),
72
+ [RootConfig.entities.activitySavedView.name]: () => import('./acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-saved-view.entity-Ch3bWS9X.mjs').then((m) => m.activitySavedViewEntityFactory()),
73
+ [RootConfig.entities.maskingPolicy.name]: () => import('./acorex-platform-module-activity-insight-client-contracts-entity-catalog-masking-policy.entity-DzJ1RsQz.mjs').then((m) => m.maskingPolicyEntityFactory()),
74
+ [RootConfig.entities.retentionPolicy.name]: () => import('./acorex-platform-module-activity-insight-client-contracts-entity-catalog-retention-policy.entity-CLANdFVA.mjs').then((m) => m.retentionPolicyEntityFactory()),
75
+ [RootConfig.entities.samplingPolicy.name]: () => import('./acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs').then((m) => m.samplingPolicyEntityFactory()),
76
+ [RootConfig.entities.trackingRule.name]: () => import('./acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs').then((m) => m.trackingRuleEntityFactory()),
77
+ },
78
+ };
79
+ //#endregion
80
+
81
+ /**
82
+ * Generated bundle index. Do not edit.
83
+ */
84
+
85
+ export { RootConfig as R, activityInsightLocalEntityCatalog as a };
86
+ //# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/root-config.ts","../../../../libs/modules/activity-insight/contracts/src/entity-catalog.ts","../../../../libs/modules/activity-insight/contracts/src/acorex-platform-module-activity-insight-client-contracts-entity-catalog.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","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const activityInsightLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.activityDataSource.name]: () =>\n import('./entities/activity-data-source/activity-data-source.entity.js').then((m) => m.activityDataSourceEntityFactory()),\n [RootConfig.entities.activityEvent.name]: () =>\n import('./entities/activity-event/activity-event.entity.js').then((m) => m.activityEventEntityFactory()),\n [RootConfig.entities.activitySavedView.name]: () =>\n import('./entities/activity-saved-view/activity-saved-view.entity.js').then((m) => m.activitySavedViewEntityFactory()),\n [RootConfig.entities.maskingPolicy.name]: () =>\n import('./entities/masking-policy/masking-policy.entity.js').then((m) => m.maskingPolicyEntityFactory()),\n [RootConfig.entities.retentionPolicy.name]: () =>\n import('./entities/retention-policy/retention-policy.entity.js').then((m) => m.retentionPolicyEntityFactory()),\n [RootConfig.entities.samplingPolicy.name]: () =>\n import('./entities/sampling-policy/sampling-policy.entity.js').then((m) => m.samplingPolicyEntityFactory()),\n [RootConfig.entities.trackingRule.name]: () =>\n import('./entities/tracking-rule/tracking-rule.entity.js').then((m) => m.trackingRuleEntityFactory()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,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,YAAA,IAAI,EAAE,eAAe;AACrB,YAAA,KAAK,EAAE,iDAAiD;AACxD,YAAA,WAAW,EAAE,kDAAkD;AAC/D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eAAe,CAAC,IAAI,GAAG,MAC1C,OAAO,gHAAwD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,EAAE,CAAC;AAChH,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,GAAG,MACzC,OAAO,+GAAsD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,2BAA2B,EAAE,CAAC;AAC7G,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,GAAG,MACvC,OAAO,6GAAkD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,CAAC;AACxG,KAAA;;AAGH;;ACnCA;;AAEG;;"}
@@ -0,0 +1,91 @@
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 activityDataSourceEntityFactory() {
10
+ const i18n = RootConfig.config.i18n;
11
+ return {
12
+ module: RootConfig.module.name,
13
+ name: RootConfig.entities.activityDataSource.name,
14
+ title: RootConfig.entities.activityDataSource.title,
15
+ icon: RootConfig.entities.activityDataSource.icon,
16
+ formats: {
17
+ individual: RootConfig.entities.activityDataSource.title,
18
+ plural: RootConfig.entities.activityDataSource.titlePlural,
19
+ searchResult: { title: '{{ name }}', description: RootConfig.entities.activityDataSource.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: 'provider',
32
+ title: `@${i18n}:fields.provider`,
33
+ groupId: 'general',
34
+ schema: {
35
+ dataType: 'string',
36
+ interface: {
37
+ type: AXPWidgetsList.Editors.SelectBox,
38
+ options: {
39
+ dataSource: [
40
+ 'in-memory',
41
+ 'elasticsearch',
42
+ 'clickhouse',
43
+ 'posthog',
44
+ 'matomo',
45
+ 'custom-rest',
46
+ ],
47
+ },
48
+ },
49
+ },
50
+ options: listFieldOptions,
51
+ },
52
+ {
53
+ name: 'connectionUrl',
54
+ title: `@${i18n}:fields.connection-url`,
55
+ groupId: 'general',
56
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
57
+ options: listFieldOptions,
58
+ },
59
+ {
60
+ name: 'enabled',
61
+ title: `@${i18n}:fields.enabled`,
62
+ groupId: 'general',
63
+ schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },
64
+ options: listFieldOptions,
65
+ },
66
+ ],
67
+ columns: [{ name: 'name' }, { name: 'provider' }, { name: 'enabled' }],
68
+ interfaces: {
69
+ master: {
70
+ list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
71
+ single: {
72
+ title: '{{ name }}',
73
+ sections: [{ id: 'general' }],
74
+ properties: [{ name: 'name' }, { name: 'provider' }, { name: 'connectionUrl' }, { name: 'enabled' }],
75
+ actions: [...entityMasterRecordActions()],
76
+ },
77
+ create: {
78
+ sections: [{ id: 'general' }],
79
+ properties: [{ name: 'name' }, { name: 'provider' }, { name: 'connectionUrl' }, { name: 'enabled' }],
80
+ },
81
+ update: {
82
+ sections: [{ id: 'general' }],
83
+ properties: [{ name: 'name' }, { name: 'provider' }, { name: 'connectionUrl' }, { name: 'enabled' }],
84
+ },
85
+ },
86
+ },
87
+ };
88
+ }
89
+
90
+ export { activityDataSourceEntityFactory };
91
+ //# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/entities/activity-data-source/activity-data-source.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 activityDataSourceEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.activityDataSource.name,\n title: RootConfig.entities.activityDataSource.title,\n icon: RootConfig.entities.activityDataSource.icon,\n formats: {\n individual: RootConfig.entities.activityDataSource.title,\n plural: RootConfig.entities.activityDataSource.titlePlural,\n searchResult: { title: '{{ name }}', description: RootConfig.entities.activityDataSource.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: 'provider',\n title: `@${i18n}:fields.provider`,\n groupId: 'general',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n dataSource: [\n 'in-memory',\n 'elasticsearch',\n 'clickhouse',\n 'posthog',\n 'matomo',\n 'custom-rest',\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'connectionUrl',\n title: `@${i18n}:fields.connection-url`,\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\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: 'provider' }, { 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: 'provider' }, { name: 'connectionUrl' }, { name: 'enabled' }],\n actions: [...entityMasterRecordActions()],\n },\n create: {\n sections: [{ id: 'general' }],\n properties: [{ name: 'name' }, { name: 'provider' }, { name: 'connectionUrl' }, { name: 'enabled' }],\n },\n update: {\n sections: [{ id: 'general' }],\n properties: [{ name: 'name' }, { name: 'provider' }, { name: 'connectionUrl' }, { 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;CACxB;AAEM,eAAe,+BAA+B,GAAA;AACnD,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,kBAAkB,CAAC,IAAI;AACjD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;AACnD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,C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