@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.
- package/fesm2022/acorex-platform-module-activity-insight-client-activity-dashboard-page.component-CAcsbq4I.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-activity-insight-client-activity-timeline-page.component-DULl2SRF.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs +152 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs +380 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs +130 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs +152 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs +136 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs +137 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs +181 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs +86 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-acorex-platform-module-activity-insight-client-contracts-entity-catalog-DKOEPUGX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs +91 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-data-source.entity-DIZMV16f.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-event.entity-CERoGcZn.mjs +319 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-event.entity-CERoGcZn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-saved-view.entity-Ch3bWS9X.mjs +69 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-activity-saved-view.entity-Ch3bWS9X.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-masking-policy.entity-DzJ1RsQz.mjs +91 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-masking-policy.entity-DzJ1RsQz.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-retention-policy.entity-CLANdFVA.mjs +75 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-retention-policy.entity-CLANdFVA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs +76 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-sampling-policy.entity-CBYQWubG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs +120 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog-tracking-rule.entity-D7xdHB-C.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-activity-insight-client-local-entities.mjs +35 -0
- package/fesm2022/acorex-platform-module-activity-insight-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-activity-insight-client.mjs.map +1 -1
- package/package.json +37 -1
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-activity-saved-view.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-masking-policy.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-retention-policy.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-sampling-policy.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entities-tracking-rule.d.ts +5 -0
- package/types/acorex-platform-module-activity-insight-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-activity-insight-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/queries.keys.ts","../../../../libs/modules/activity-insight/contracts/src/root-config.ts","../../../../libs/modules/activity-insight/contracts/src/entities/activity-event/activity-event.entity.ts","../../../../libs/modules/activity-insight/contracts/src/acorex-platform-module-activity-insight-client-contracts-entities-activity-event.ts"],"sourcesContent":["//#region ---- Query Keys ----\n\nexport const AXMActivityInsightQueryKeys = {\n ActivityEvent: {\n List: 'ActivityInsight:ActivityEvent:List',\n GetOne: 'ActivityInsight:ActivityEvent:GetOne',\n Aggregate: 'ActivityInsight:ActivityEvent:Aggregate',\n },\n ActivityTimeline: {\n Session: 'ActivityInsight:ActivityTimeline:Session',\n Journey: 'ActivityInsight:ActivityTimeline:Journey',\n Entity: 'ActivityInsight:ActivityTimeline:Entity',\n },\n} as const;\n\n//#endregion\n","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 AXPEntityCommandScope,\n AXPEntityQueryType,\n createAllQueryView,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXMActivityInsightQueryKeys } from '../../queries.keys';\nimport { RootConfig } from '../../root-config';\n\nconst listFieldOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nconst readOnlyCrud = async () => {\n throw new Error('Activity events are read-only');\n};\n\nexport async function activityEventEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n const properties: AXPEntity['properties'] = [\n {\n name: 'id',\n title: '@activity-insight:fields.id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'name',\n title: '@activity-insight:fields.name',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'type',\n title: '@activity-insight:fields.type',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'category',\n title: '@activity-insight:fields.category',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'timestamp',\n title: '@activity-insight:fields.timestamp',\n groupId: 'general',\n schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },\n options: listFieldOptions,\n },\n {\n name: 'sessionId',\n title: '@activity-insight:fields.session-id',\n groupId: 'correlation',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'journeyId',\n title: '@activity-insight:fields.journey-id',\n groupId: 'correlation',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'userId',\n title: '@activity-insight:fields.user-id',\n groupId: 'correlation',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'SecurityManagement.User',\n textField: 'displayName',\n valueField: 'id',\n look: 'select',\n readonly: true,\n disabled: true,\n expose: [\n { source: 'id', target: 'user.id' },\n { source: 'displayName', target: 'user.displayName' },\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'tenantId',\n title: '@activity-insight:fields.tenant-id',\n groupId: 'correlation',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'TenantManagement.Tenant',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n readonly: true,\n disabled: true,\n expose: [\n { source: 'id', target: 'tenant.id' },\n { source: 'title', target: 'tenant.title' },\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'applicationId',\n title: '@activity-insight:fields.application-id',\n groupId: 'correlation',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'ApplicationManagement.Application',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n readonly: true,\n disabled: true,\n expose: [\n { source: 'id', target: 'application.id' },\n { source: 'title', target: 'application.title' },\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'requestId',\n title: '@activity-insight:fields.request-id',\n groupId: 'correlation',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'traceId',\n title: '@activity-insight:fields.trace-id',\n groupId: 'correlation',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'source',\n title: '@activity-insight:fields.source',\n groupId: 'context',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'route',\n title: '@activity-insight:fields.route',\n groupId: 'context',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'module',\n title: '@activity-insight:fields.module',\n groupId: 'context',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'entityName',\n title: '@activity-insight:fields.entity-name',\n groupId: 'context',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'entityId',\n title: '@activity-insight:fields.entity-id',\n groupId: 'context',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'commandName',\n title: '@activity-insight:fields.command-name',\n groupId: 'context',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'queryName',\n title: '@activity-insight:fields.query-name',\n groupId: 'context',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'status',\n title: '@activity-insight:fields.status',\n groupId: 'outcome',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'durationMs',\n title: '@activity-insight:fields.duration-ms',\n groupId: 'outcome',\n schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },\n options: listFieldOptions,\n },\n {\n name: 'severity',\n title: '@activity-insight:fields.severity',\n groupId: 'outcome',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n ];\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.activityEvent.name,\n title: RootConfig.entities.activityEvent.title,\n icon: RootConfig.entities.activityEvent.icon,\n formats: {\n individual: RootConfig.entities.activityEvent.title,\n plural: RootConfig.entities.activityEvent.titlePlural,\n searchResult: {\n title: '{{ name }}',\n description: RootConfig.entities.activityEvent.title,\n },\n },\n groups: [\n { id: 'general', title: `@${i18n}:groups.general` },\n { id: 'correlation', title: `@${i18n}:groups.correlation` },\n { id: 'context', title: `@${i18n}:groups.context` },\n { id: 'outcome', title: `@${i18n}:groups.outcome` },\n ],\n properties,\n columns: [\n { name: 'timestamp' },\n { name: 'name' },\n { name: 'category' },\n { name: 'entityName' },\n { name: 'userId' },\n { name: 'durationMs' },\n ],\n queries: {\n list: { execute: AXMActivityInsightQueryKeys.ActivityEvent.List, type: AXPEntityQueryType.List },\n byKey: { execute: AXMActivityInsightQueryKeys.ActivityEvent.GetOne, type: AXPEntityQueryType.Single },\n },\n commands: {\n create: { execute: readOnlyCrud },\n update: { execute: readOnlyCrud },\n delete: { execute: readOnlyCrud },\n },\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@general:actions.detail.title',\n icon: 'fa-light fa-eye',\n command: 'Entity:View',\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'timestamp', dir: 'desc' }],\n }),\n ],\n },\n single: {\n title: '{{ name }}',\n sections: [\n { id: 'general' },\n { id: 'correlation' },\n { id: 'context' },\n { id: 'outcome' },\n ],\n properties: properties.map((property) => ({\n name: property.name,\n layout: { positions: { lg: { colSpan: 6 } } },\n })),\n actions: [],\n },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.activity-event';\n"],"names":[],"mappings":";;;AAAA;AAEO,MAAM,2BAA2B,GAAG;AACzC,IAAA,aAAa,EAAE;AACb,QAAA,IAAI,EAAE,oCAAoC;AAC1C,QAAA,MAAM,EAAE,sCAAsC;AAC9C,QAAA,SAAS,EAAE,yCAAyC;AACrD,KAAA;AACD,IAAA,gBAAgB,EAAE;AAChB,QAAA,OAAO,EAAE,0CAA0C;AACnD,QAAA,OAAO,EAAE,0CAA0C;AACnD,QAAA,MAAM,EAAE,yCAAyC;AAClD,KAAA;CACO;AAEV;;ACfA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,kBAAkB;CACzB;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,K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llQueryView, 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,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,YAAA,IAAI,EAAE,uBAAuB;A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AA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,kBAAkB,EAAE,CAAC,EAAE;AAChF,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,YAAY;AACnB,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;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;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E,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;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,YAAA,IAAI,EAAE,eAAe;AACrB,YAAA,KAAK,EAAE,iDAAiD;AACxD,YAAA,WAAW,EAAE,kDAAkD;AAC/D,YAAA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