@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
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-activity-insight-client-activity-dashboard-page.component-CAcsbq4I.mjs","sources":["../../../../libs/modules/activity-insight/client/src/lib/features/dashboard/activity-dashboard-page.component.ts"],"sourcesContent":["import { Component, inject, OnInit, signal, ChangeDetectionStrategy } from '@angular/core';\n\nimport { AXPQueryExecutor } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryCollectionData } from '@acorex-platform/framework-shared/core';\nimport { ActivityAggregateBucketDto, AXMActivityInsightQueryKeys } from '@acorex-platform/module-activity-insight-client/contracts';\n\n\n\n@Component({\n\n selector: 'axm-activity-insight-dashboard-page',\n\n standalone: true,\n\n changeDetection: ChangeDetectionStrategy.Eager,\n template: `\n\n <div class=\"axm-activity-dashboard-page\" style=\"padding: 1.5rem; max-width: 960px;\">\n\n <h2>Activity Dashboard</h2>\n\n <p>Top activity events grouped by event name.</p>\n\n\n\n @if (loading()) {\n\n <p>Loading aggregates…</p>\n\n } @else if (error()) {\n\n <p style=\"color: crimson;\">{{ error() }}</p>\n\n } @else {\n\n <table style=\"width: 100%; border-collapse: collapse;\">\n\n <thead>\n\n <tr>\n\n <th style=\"text-align: left; border-bottom: 1px solid #ccc; padding: 0.5rem;\">Event name</th>\n\n <th style=\"text-align: right; border-bottom: 1px solid #ccc; padding: 0.5rem;\">Count</th>\n\n </tr>\n\n </thead>\n\n <tbody>\n\n @for (bucket of buckets(); track bucket.key['name']) {\n\n <tr>\n\n <td style=\"padding: 0.5rem; border-bottom: 1px solid #eee;\">{{ bucket.key['name'] }}</td>\n\n <td style=\"padding: 0.5rem; border-bottom: 1px solid #eee; text-align: right;\">{{ bucket.count }}</td>\n\n </tr>\n\n }\n\n </tbody>\n\n </table>\n\n @if (buckets().length === 0) {\n\n <p>No activity data yet. Navigate the app to generate tracked events.</p>\n\n }\n\n }\n\n </div>\n\n `,\n\n})\n\nexport class AXMActivityInsightDashboardPageComponent implements OnInit {\n\n private readonly queryExecutor = inject(AXPQueryExecutor);\n\n\n\n readonly buckets = signal<ActivityAggregateBucketDto[]>([]);\n\n readonly loading = signal(true);\n\n readonly error = signal<string | null>(null);\n\n\n\n async ngOnInit(): Promise<void> {\n\n try {\n\n const result = await this.queryExecutor.fetch<Record<string, unknown>, ActivityAggregateBucketDto>(\n AXMActivityInsightQueryKeys.ActivityEvent.Aggregate,\n { groupBy: ['name'], take: 20 },\n );\n\n this.buckets.set(runtimeQueryCollectionData(result)?.items ?? []);\n\n } catch (err) {\n\n this.error.set(String(err));\n\n } finally {\n\n this.loading.set(false);\n\n }\n\n }\n\n}\n\n"],"names":[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;;;;;;;;;;;;;;;;;;AA8DT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAIU,wCAAwC,EAAA,UAAA,EAAA,CAAA;kBAzEpD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AAET,oBAAA,QAAQ,EAAE,qCAAqC;AAE/C,oBAAA,UAAU,EAAE,IAAI;oBAEhB,eAAe,EAAE,uBAAuB,CAAC,KAAK;AAC9C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DT,EAAA,CAAA;AAEF,iBAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-activity-dashboard-page.component-CAcsbq4I.mjs","sources":["../../../../libs/modules/activity-insight/client/src/lib/features/dashboard/activity-dashboard-page.component.ts"],"sourcesContent":["import { Component, inject, OnInit, signal, ChangeDetectionStrategy } from '@angular/core';\n\nimport { AXPQueryExecutor } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryCollectionData } from '@acorex-platform/framework-shared/core';\nimport { ActivityAggregateBucketDto, AXMActivityInsightQueryKeys } from '@acorex-platform/module-activity-insight-client/contracts';\n\n\n\n@Component({\n\n selector: 'axm-activity-insight-dashboard-page',\n\n standalone: true,\n\n changeDetection: ChangeDetectionStrategy.Eager,\n template: `\n\n <div class=\"axm-activity-dashboard-page\" style=\"padding: 1.5rem; max-width: 960px;\">\n\n <h2>Activity Dashboard</h2>\n\n <p>Top activity events grouped by event name.</p>\n\n\n\n @if (loading()) {\n\n <p>Loading aggregates…</p>\n\n } @else if (error()) {\n\n <p style=\"color: crimson;\">{{ error() }}</p>\n\n } @else {\n\n <table style=\"width: 100%; border-collapse: collapse;\">\n\n <thead>\n\n <tr>\n\n <th style=\"text-align: left; border-bottom: 1px solid #ccc; padding: 0.5rem;\">Event name</th>\n\n <th style=\"text-align: right; border-bottom: 1px solid #ccc; padding: 0.5rem;\">Count</th>\n\n </tr>\n\n </thead>\n\n <tbody>\n\n @for (bucket of buckets(); track bucket.key['name']) {\n\n <tr>\n\n <td style=\"padding: 0.5rem; border-bottom: 1px solid #eee;\">{{ bucket.key['name'] }}</td>\n\n <td style=\"padding: 0.5rem; border-bottom: 1px solid #eee; text-align: right;\">{{ bucket.count }}</td>\n\n </tr>\n\n }\n\n </tbody>\n\n </table>\n\n @if (buckets().length === 0) {\n\n <p>No activity data yet. Navigate the app to generate tracked events.</p>\n\n }\n\n }\n\n </div>\n\n `,\n\n})\n\nexport class AXMActivityInsightDashboardPageComponent implements OnInit {\n\n private readonly queryExecutor = inject(AXPQueryExecutor);\n\n\n\n readonly buckets = signal<ActivityAggregateBucketDto[]>([]);\n\n readonly loading = signal(true);\n\n readonly error = signal<string | null>(null);\n\n\n\n async ngOnInit(): Promise<void> {\n\n try {\n\n const result = await this.queryExecutor.fetch<Record<string, unknown>, ActivityAggregateBucketDto>(\n AXMActivityInsightQueryKeys.ActivityEvent.Aggregate,\n { groupBy: ['name'], take: 20 },\n );\n\n this.buckets.set(runtimeQueryCollectionData(result)?.items ?? []);\n\n } catch (err) {\n\n this.error.set(String(err));\n\n } finally {\n\n this.loading.set(false);\n\n }\n\n }\n\n}\n\n"],"names":[],"mappings":";;;;;;MAiFa,wCAAwC,CAAA;AAzErD,IAAA,WAAA,GAAA;AA2EmB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAIhD,IAAA,CAAA,OAAO,GAAG,MAAM,CAA+B,EAAE;oFAAC;QAElD,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,IAAI;oFAAC;QAEtB,IAAA,CAAA,KAAK,GAAG,MAAM,CAAgB,IAAI;kFAAC;AA2B7C,IAAA;AAvBC,IAAA,MAAM,QAAQ,GAAA;AAEZ,QAAA,IAAI;YAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,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;;;;;;;;;;;;;;;;;;AA8DT,EAAA,CAAA;AAEF,iBAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-activity-insight-client-activity-timeline-page.component-DULl2SRF.mjs","sources":["../../../../libs/modules/activity-insight/client/src/lib/features/timeline/activity-timeline-page.component.ts"],"sourcesContent":["import { Component, inject, signal, ChangeDetectionStrategy } from '@angular/core';\n\nimport { FormsModule } from '@angular/forms';\n\nimport { AXPQueryExecutor } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryPayloadData } from '@acorex-platform/framework-shared/core';\n\nimport {\n\n AXMActivityInsightQueryKeys,\n\n type ActivityTimelineDto,\n\n} from '@acorex-platform/module-activity-insight-client/contracts';\n\n\n\ntype TimelineKind = 'session' | 'journey' | 'entity';\n\n\n\n@Component({\n\n selector: 'axm-activity-insight-timeline-page',\n\n standalone: true,\n\n imports: [FormsModule],\n\n changeDetection: ChangeDetectionStrategy.Eager,\n template: `\n\n <div class=\"axm-activity-timeline-page\" style=\"padding: 1.5rem; max-width: 960px;\">\n\n <h2>Activity Timelines</h2>\n\n <p>Load session, journey, or entity timelines from stored activity events.</p>\n\n\n\n <div style=\"display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0;\">\n\n <label>\n\n Kind\n\n <select [(ngModel)]=\"kind\" style=\"margin-left: 0.5rem;\">\n\n <option value=\"session\">Session</option>\n\n <option value=\"journey\">Journey</option>\n\n <option value=\"entity\">Entity</option>\n\n </select>\n\n </label>\n\n\n\n @if (kind === 'entity') {\n\n <label>\n\n Entity name\n\n <input [(ngModel)]=\"entityName\" style=\"margin-left: 0.5rem;\" />\n\n </label>\n\n <label>\n\n Entity ID\n\n <input [(ngModel)]=\"entityId\" style=\"margin-left: 0.5rem;\" />\n\n </label>\n\n } @else {\n\n <label>\n\n {{ kind === 'session' ? 'Session' : 'Journey' }} ID\n\n <input [(ngModel)]=\"lookupId\" style=\"margin-left: 0.5rem;\" />\n\n </label>\n\n }\n\n\n\n <button type=\"button\" (click)=\"loadTimeline()\" [disabled]=\"loading()\">Load timeline</button>\n\n </div>\n\n\n\n @if (error()) {\n\n <p style=\"color: crimson;\">{{ error() }}</p>\n\n }\n\n\n\n @if (timeline(); as data) {\n\n <h3>{{ data.title }}</h3>\n\n <ol>\n\n @for (step of data.steps; track step.activityId) {\n\n <li>\n\n <strong>{{ step.name }}</strong>\n\n — {{ step.timestamp }}\n\n @if (step.durationMs) {\n\n ({{ step.durationMs }} ms)\n\n }\n\n </li>\n\n }\n\n </ol>\n\n @if (data.steps.length === 0) {\n\n <p>No steps found for this timeline.</p>\n\n }\n\n }\n\n </div>\n\n `,\n\n})\n\nexport class AXMActivityInsightTimelinePageComponent {\n\n private readonly queryExecutor = inject(AXPQueryExecutor);\n\n\n\n kind: TimelineKind = 'session';\n\n lookupId = '';\n\n entityName = '';\n\n entityId = '';\n\n\n\n readonly timeline = signal<ActivityTimelineDto | null>(null);\n\n readonly loading = signal(false);\n\n readonly error = signal<string | null>(null);\n\n\n\n async loadTimeline(): Promise<void> {\n\n this.loading.set(true);\n\n this.error.set(null);\n\n this.timeline.set(null);\n\n\n\n try {\n\n let result: ActivityTimelineDto | null | undefined;\n\n if (this.kind === 'session') {\n\n result = runtimeQueryPayloadData(\n await this.queryExecutor.fetch<string, ActivityTimelineDto>(\n AXMActivityInsightQueryKeys.ActivityTimeline.Session,\n this.lookupId,\n ),\n );\n } else if (this.kind === 'journey') {\n result = runtimeQueryPayloadData(\n await this.queryExecutor.fetch<string, ActivityTimelineDto>(\n AXMActivityInsightQueryKeys.ActivityTimeline.Journey,\n this.lookupId,\n ),\n );\n } else {\n result = runtimeQueryPayloadData(\n await this.queryExecutor.fetch<\n { entityName: string; entityId: string },\n ActivityTimelineDto\n >(\n AXMActivityInsightQueryKeys.ActivityTimeline.Entity,\n { entityName: this.entityName, entityId: this.entityId },\n ),\n );\n\n }\n\n this.timeline.set(result ?? { id: '', title: 'Timeline', steps: [] });\n\n } catch (err) {\n\n this.error.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;;AAgHT,EAAA,CAAA;AAEF,iBAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-activity-timeline-page.component-DULl2SRF.mjs","sources":["../../../../libs/modules/activity-insight/client/src/lib/features/timeline/activity-timeline-page.component.ts"],"sourcesContent":["import { Component, inject, signal, ChangeDetectionStrategy } from '@angular/core';\n\nimport { FormsModule } from '@angular/forms';\n\nimport { AXPQueryExecutor } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryPayloadData } from '@acorex-platform/framework-shared/core';\n\nimport {\n\n AXMActivityInsightQueryKeys,\n\n type ActivityTimelineDto,\n\n} from '@acorex-platform/module-activity-insight-client/contracts';\n\n\n\ntype TimelineKind = 'session' | 'journey' | 'entity';\n\n\n\n@Component({\n\n selector: 'axm-activity-insight-timeline-page',\n\n standalone: true,\n\n imports: [FormsModule],\n\n changeDetection: ChangeDetectionStrategy.Eager,\n template: `\n\n <div class=\"axm-activity-timeline-page\" style=\"padding: 1.5rem; max-width: 960px;\">\n\n <h2>Activity Timelines</h2>\n\n <p>Load session, journey, or entity timelines from stored activity events.</p>\n\n\n\n <div style=\"display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0;\">\n\n <label>\n\n Kind\n\n <select [(ngModel)]=\"kind\" style=\"margin-left: 0.5rem;\">\n\n <option value=\"session\">Session</option>\n\n <option value=\"journey\">Journey</option>\n\n <option value=\"entity\">Entity</option>\n\n </select>\n\n </label>\n\n\n\n @if (kind === 'entity') {\n\n <label>\n\n Entity name\n\n <input [(ngModel)]=\"entityName\" style=\"margin-left: 0.5rem;\" />\n\n </label>\n\n <label>\n\n Entity ID\n\n <input [(ngModel)]=\"entityId\" style=\"margin-left: 0.5rem;\" />\n\n </label>\n\n } @else {\n\n <label>\n\n {{ kind === 'session' ? 'Session' : 'Journey' }} ID\n\n <input [(ngModel)]=\"lookupId\" style=\"margin-left: 0.5rem;\" />\n\n </label>\n\n }\n\n\n\n <button type=\"button\" (click)=\"loadTimeline()\" [disabled]=\"loading()\">Load timeline</button>\n\n </div>\n\n\n\n @if (error()) {\n\n <p style=\"color: crimson;\">{{ error() }}</p>\n\n }\n\n\n\n @if (timeline(); as data) {\n\n <h3>{{ data.title }}</h3>\n\n <ol>\n\n @for (step of data.steps; track step.activityId) {\n\n <li>\n\n <strong>{{ step.name }}</strong>\n\n — {{ step.timestamp }}\n\n @if (step.durationMs) {\n\n ({{ step.durationMs }} ms)\n\n }\n\n </li>\n\n }\n\n </ol>\n\n @if (data.steps.length === 0) {\n\n <p>No steps found for this timeline.</p>\n\n }\n\n }\n\n </div>\n\n `,\n\n})\n\nexport class AXMActivityInsightTimelinePageComponent {\n\n private readonly queryExecutor = inject(AXPQueryExecutor);\n\n\n\n kind: TimelineKind = 'session';\n\n lookupId = '';\n\n entityName = '';\n\n entityId = '';\n\n\n\n readonly timeline = signal<ActivityTimelineDto | null>(null);\n\n readonly loading = signal(false);\n\n readonly error = signal<string | null>(null);\n\n\n\n async loadTimeline(): Promise<void> {\n\n this.loading.set(true);\n\n this.error.set(null);\n\n this.timeline.set(null);\n\n\n\n try {\n\n let result: ActivityTimelineDto | null | undefined;\n\n if (this.kind === 'session') {\n\n result = runtimeQueryPayloadData(\n await this.queryExecutor.fetch<string, ActivityTimelineDto>(\n AXMActivityInsightQueryKeys.ActivityTimeline.Session,\n this.lookupId,\n ),\n );\n } else if (this.kind === 'journey') {\n result = runtimeQueryPayloadData(\n await this.queryExecutor.fetch<string, ActivityTimelineDto>(\n AXMActivityInsightQueryKeys.ActivityTimeline.Journey,\n this.lookupId,\n ),\n );\n } else {\n result = runtimeQueryPayloadData(\n await this.queryExecutor.fetch<\n { entityName: string; entityId: string },\n ActivityTimelineDto\n >(\n AXMActivityInsightQueryKeys.ActivityTimeline.Entity,\n { entityName: this.entityName, entityId: this.entityId },\n ),\n );\n\n }\n\n this.timeline.set(result ?? { id: '', title: 'Timeline', steps: [] });\n\n } catch (err) {\n\n this.error.set(String(err));\n\n } finally {\n\n this.loading.set(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AAA;;;"}
@@ -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 activityDataSourceEntityFactory() {
67
+ const i18n = RootConfig.config.i18n;
68
+ return {
69
+ module: RootConfig.module.name,
70
+ name: RootConfig.entities.activityDataSource.name,
71
+ title: RootConfig.entities.activityDataSource.title,
72
+ icon: RootConfig.entities.activityDataSource.icon,
73
+ formats: {
74
+ individual: RootConfig.entities.activityDataSource.title,
75
+ plural: RootConfig.entities.activityDataSource.titlePlural,
76
+ searchResult: { title: '{{ name }}', description: RootConfig.entities.activityDataSource.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: 'provider',
89
+ title: `@${i18n}:fields.provider`,
90
+ groupId: 'general',
91
+ schema: {
92
+ dataType: 'string',
93
+ interface: {
94
+ type: AXPWidgetsList.Editors.SelectBox,
95
+ options: {
96
+ dataSource: [
97
+ 'in-memory',
98
+ 'elasticsearch',
99
+ 'clickhouse',
100
+ 'posthog',
101
+ 'matomo',
102
+ 'custom-rest',
103
+ ],
104
+ },
105
+ },
106
+ },
107
+ options: listFieldOptions,
108
+ },
109
+ {
110
+ name: 'connectionUrl',
111
+ title: `@${i18n}:fields.connection-url`,
112
+ groupId: 'general',
113
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
114
+ options: listFieldOptions,
115
+ },
116
+ {
117
+ name: 'enabled',
118
+ title: `@${i18n}:fields.enabled`,
119
+ groupId: 'general',
120
+ schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } },
121
+ options: listFieldOptions,
122
+ },
123
+ ],
124
+ columns: [{ name: 'name' }, { name: 'provider' }, { name: 'enabled' }],
125
+ interfaces: {
126
+ master: {
127
+ list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
128
+ single: {
129
+ title: '{{ name }}',
130
+ sections: [{ id: 'general' }],
131
+ properties: [{ name: 'name' }, { name: 'provider' }, { name: 'connectionUrl' }, { name: 'enabled' }],
132
+ actions: [...entityMasterRecordActions()],
133
+ },
134
+ create: {
135
+ sections: [{ id: 'general' }],
136
+ properties: [{ name: 'name' }, { name: 'provider' }, { name: 'connectionUrl' }, { name: 'enabled' }],
137
+ },
138
+ update: {
139
+ sections: [{ id: 'general' }],
140
+ properties: [{ name: 'name' }, { name: 'provider' }, { name: 'connectionUrl' }, { name: 'enabled' }],
141
+ },
142
+ },
143
+ },
144
+ };
145
+ }
146
+
147
+ /**
148
+ * Generated bundle index. Do not edit.
149
+ */
150
+
151
+ export { activityDataSourceEntityFactory };
152
+ //# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.mjs","sources":["../../../../libs/modules/activity-insight/contracts/src/root-config.ts","../../../../libs/modules/activity-insight/contracts/src/entities/activity-data-source/activity-data-source.entity.ts","../../../../libs/modules/activity-insight/contracts/src/acorex-platform-module-activity-insight-client-contracts-entities-activity-data-source.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 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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.activity-data-source';\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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,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AACrG,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;AC9FA;;AAEG;;"}
@@ -0,0 +1,380 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { AXPEntityCommandScope, AXPEntityQueryType, createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- Query Keys ----
5
+ const AXMActivityInsightQueryKeys = {
6
+ ActivityEvent: {
7
+ List: 'ActivityInsight:ActivityEvent:List',
8
+ GetOne: 'ActivityInsight:ActivityEvent:GetOne',
9
+ Aggregate: 'ActivityInsight:ActivityEvent:Aggregate',
10
+ },
11
+ ActivityTimeline: {
12
+ Session: 'ActivityInsight:ActivityTimeline:Session',
13
+ Journey: 'ActivityInsight:ActivityTimeline:Journey',
14
+ Entity: 'ActivityInsight:ActivityTimeline:Entity',
15
+ },
16
+ };
17
+ //#endregion
18
+
19
+ const config = {
20
+ i18n: 'activity-insight',
21
+ };
22
+ const RootConfig = {
23
+ config,
24
+ module: {
25
+ route: 'activity-insight',
26
+ module: 'ActivityInsight',
27
+ name: 'ActivityInsight',
28
+ title: '@activity-insight:module.title',
29
+ icon: 'fa-light fa-chart-network',
30
+ },
31
+ entities: {
32
+ activityEvent: {
33
+ name: 'ActivityEvent',
34
+ title: '@activity-insight:entities.activity-event.title',
35
+ titlePlural: '@activity-insight:entities.activity-event.plural',
36
+ icon: 'fa-light fa-wave-pulse',
37
+ },
38
+ trackingRule: {
39
+ name: 'TrackingRule',
40
+ title: '@activity-insight:entities.tracking-rule.title',
41
+ titlePlural: '@activity-insight:entities.tracking-rule.plural',
42
+ icon: 'fa-light fa-sliders',
43
+ },
44
+ activitySavedView: {
45
+ name: 'ActivitySavedView',
46
+ title: '@activity-insight:entities.saved-view.title',
47
+ titlePlural: '@activity-insight:entities.saved-view.plural',
48
+ icon: 'fa-light fa-bookmark',
49
+ },
50
+ retentionPolicy: {
51
+ name: 'RetentionPolicy',
52
+ title: '@activity-insight:entities.retention-policy.title',
53
+ titlePlural: '@activity-insight:entities.retention-policy.plural',
54
+ icon: 'fa-light fa-calendar-clock',
55
+ },
56
+ maskingPolicy: {
57
+ name: 'MaskingPolicy',
58
+ title: '@activity-insight:entities.masking-policy.title',
59
+ titlePlural: '@activity-insight:entities.masking-policy.plural',
60
+ icon: 'fa-light fa-eye-slash',
61
+ },
62
+ samplingPolicy: {
63
+ name: 'SamplingPolicy',
64
+ title: '@activity-insight:entities.sampling-policy.title',
65
+ titlePlural: '@activity-insight:entities.sampling-policy.plural',
66
+ icon: 'fa-light fa-percent',
67
+ },
68
+ activityDataSource: {
69
+ name: 'ActivityDataSource',
70
+ title: '@activity-insight:entities.data-source.title',
71
+ titlePlural: '@activity-insight:entities.data-source.plural',
72
+ icon: 'fa-light fa-database',
73
+ },
74
+ },
75
+ };
76
+
77
+ const listFieldOptions = {
78
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
79
+ sort: { enabled: true },
80
+ };
81
+ const readOnlyCrud = async () => {
82
+ throw new Error('Activity events are read-only');
83
+ };
84
+ async function activityEventEntityFactory() {
85
+ const i18n = RootConfig.config.i18n;
86
+ const properties = [
87
+ {
88
+ name: 'id',
89
+ title: '@activity-insight:fields.id',
90
+ groupId: 'general',
91
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
92
+ options: listFieldOptions,
93
+ },
94
+ {
95
+ name: 'name',
96
+ title: '@activity-insight:fields.name',
97
+ groupId: 'general',
98
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
99
+ options: listFieldOptions,
100
+ },
101
+ {
102
+ name: 'type',
103
+ title: '@activity-insight:fields.type',
104
+ groupId: 'general',
105
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
106
+ options: listFieldOptions,
107
+ },
108
+ {
109
+ name: 'category',
110
+ title: '@activity-insight:fields.category',
111
+ groupId: 'general',
112
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
113
+ options: listFieldOptions,
114
+ },
115
+ {
116
+ name: 'timestamp',
117
+ title: '@activity-insight:fields.timestamp',
118
+ groupId: 'general',
119
+ schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },
120
+ options: listFieldOptions,
121
+ },
122
+ {
123
+ name: 'sessionId',
124
+ title: '@activity-insight:fields.session-id',
125
+ groupId: 'correlation',
126
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
127
+ options: listFieldOptions,
128
+ },
129
+ {
130
+ name: 'journeyId',
131
+ title: '@activity-insight:fields.journey-id',
132
+ groupId: 'correlation',
133
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
134
+ options: listFieldOptions,
135
+ },
136
+ {
137
+ name: 'userId',
138
+ title: '@activity-insight:fields.user-id',
139
+ groupId: 'correlation',
140
+ schema: {
141
+ dataType: 'string',
142
+ nullable: true,
143
+ readonly: true,
144
+ interface: {
145
+ type: AXPWidgetsList.Editors.LookupBox,
146
+ options: {
147
+ entity: 'SecurityManagement.User',
148
+ textField: 'displayName',
149
+ valueField: 'id',
150
+ look: 'select',
151
+ readonly: true,
152
+ disabled: true,
153
+ expose: [
154
+ { source: 'id', target: 'user.id' },
155
+ { source: 'displayName', target: 'user.displayName' },
156
+ ],
157
+ },
158
+ },
159
+ },
160
+ options: listFieldOptions,
161
+ },
162
+ {
163
+ name: 'tenantId',
164
+ title: '@activity-insight:fields.tenant-id',
165
+ groupId: 'correlation',
166
+ schema: {
167
+ dataType: 'string',
168
+ nullable: true,
169
+ readonly: true,
170
+ interface: {
171
+ type: AXPWidgetsList.Editors.LookupBox,
172
+ options: {
173
+ entity: 'TenantManagement.Tenant',
174
+ textField: 'title',
175
+ valueField: 'id',
176
+ look: 'select',
177
+ readonly: true,
178
+ disabled: true,
179
+ expose: [
180
+ { source: 'id', target: 'tenant.id' },
181
+ { source: 'title', target: 'tenant.title' },
182
+ ],
183
+ },
184
+ },
185
+ },
186
+ options: listFieldOptions,
187
+ },
188
+ {
189
+ name: 'applicationId',
190
+ title: '@activity-insight:fields.application-id',
191
+ groupId: 'correlation',
192
+ schema: {
193
+ dataType: 'string',
194
+ nullable: true,
195
+ readonly: true,
196
+ interface: {
197
+ type: AXPWidgetsList.Editors.LookupBox,
198
+ options: {
199
+ entity: 'ApplicationManagement.Application',
200
+ textField: 'title',
201
+ valueField: 'id',
202
+ look: 'select',
203
+ readonly: true,
204
+ disabled: true,
205
+ expose: [
206
+ { source: 'id', target: 'application.id' },
207
+ { source: 'title', target: 'application.title' },
208
+ ],
209
+ },
210
+ },
211
+ },
212
+ options: listFieldOptions,
213
+ },
214
+ {
215
+ name: 'requestId',
216
+ title: '@activity-insight:fields.request-id',
217
+ groupId: 'correlation',
218
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
219
+ options: listFieldOptions,
220
+ },
221
+ {
222
+ name: 'traceId',
223
+ title: '@activity-insight:fields.trace-id',
224
+ groupId: 'correlation',
225
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
226
+ options: listFieldOptions,
227
+ },
228
+ {
229
+ name: 'source',
230
+ title: '@activity-insight:fields.source',
231
+ groupId: 'context',
232
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
233
+ options: listFieldOptions,
234
+ },
235
+ {
236
+ name: 'route',
237
+ title: '@activity-insight:fields.route',
238
+ groupId: 'context',
239
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
240
+ options: listFieldOptions,
241
+ },
242
+ {
243
+ name: 'module',
244
+ title: '@activity-insight:fields.module',
245
+ groupId: 'context',
246
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
247
+ options: listFieldOptions,
248
+ },
249
+ {
250
+ name: 'entityName',
251
+ title: '@activity-insight:fields.entity-name',
252
+ groupId: 'context',
253
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
254
+ options: listFieldOptions,
255
+ },
256
+ {
257
+ name: 'entityId',
258
+ title: '@activity-insight:fields.entity-id',
259
+ groupId: 'context',
260
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
261
+ options: listFieldOptions,
262
+ },
263
+ {
264
+ name: 'commandName',
265
+ title: '@activity-insight:fields.command-name',
266
+ groupId: 'context',
267
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
268
+ options: listFieldOptions,
269
+ },
270
+ {
271
+ name: 'queryName',
272
+ title: '@activity-insight:fields.query-name',
273
+ groupId: 'context',
274
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
275
+ options: listFieldOptions,
276
+ },
277
+ {
278
+ name: 'status',
279
+ title: '@activity-insight:fields.status',
280
+ groupId: 'outcome',
281
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
282
+ options: listFieldOptions,
283
+ },
284
+ {
285
+ name: 'durationMs',
286
+ title: '@activity-insight:fields.duration-ms',
287
+ groupId: 'outcome',
288
+ schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
289
+ options: listFieldOptions,
290
+ },
291
+ {
292
+ name: 'severity',
293
+ title: '@activity-insight:fields.severity',
294
+ groupId: 'outcome',
295
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
296
+ options: listFieldOptions,
297
+ },
298
+ ];
299
+ return {
300
+ module: RootConfig.module.name,
301
+ name: RootConfig.entities.activityEvent.name,
302
+ title: RootConfig.entities.activityEvent.title,
303
+ icon: RootConfig.entities.activityEvent.icon,
304
+ formats: {
305
+ individual: RootConfig.entities.activityEvent.title,
306
+ plural: RootConfig.entities.activityEvent.titlePlural,
307
+ searchResult: {
308
+ title: '{{ name }}',
309
+ description: RootConfig.entities.activityEvent.title,
310
+ },
311
+ },
312
+ groups: [
313
+ { id: 'general', title: `@${i18n}:groups.general` },
314
+ { id: 'correlation', title: `@${i18n}:groups.correlation` },
315
+ { id: 'context', title: `@${i18n}:groups.context` },
316
+ { id: 'outcome', title: `@${i18n}:groups.outcome` },
317
+ ],
318
+ properties,
319
+ columns: [
320
+ { name: 'timestamp' },
321
+ { name: 'name' },
322
+ { name: 'category' },
323
+ { name: 'entityName' },
324
+ { name: 'userId' },
325
+ { name: 'durationMs' },
326
+ ],
327
+ queries: {
328
+ list: { execute: AXMActivityInsightQueryKeys.ActivityEvent.List, type: AXPEntityQueryType.List },
329
+ byKey: { execute: AXMActivityInsightQueryKeys.ActivityEvent.GetOne, type: AXPEntityQueryType.Single },
330
+ },
331
+ commands: {
332
+ create: { execute: readOnlyCrud },
333
+ update: { execute: readOnlyCrud },
334
+ delete: { execute: readOnlyCrud },
335
+ },
336
+ interfaces: {
337
+ master: {
338
+ list: {
339
+ actions: [
340
+ {
341
+ title: '@general:actions.detail.title',
342
+ icon: 'fa-light fa-eye',
343
+ command: 'Entity:View',
344
+ priority: 'primary',
345
+ type: 'view',
346
+ scope: AXPEntityCommandScope.Individual,
347
+ default: true,
348
+ },
349
+ ],
350
+ views: [
351
+ createAllQueryView({
352
+ sorts: [{ name: 'timestamp', dir: 'desc' }],
353
+ }),
354
+ ],
355
+ },
356
+ single: {
357
+ title: '{{ name }}',
358
+ sections: [
359
+ { id: 'general' },
360
+ { id: 'correlation' },
361
+ { id: 'context' },
362
+ { id: 'outcome' },
363
+ ],
364
+ properties: properties.map((property) => ({
365
+ name: property.name,
366
+ layout: { positions: { lg: { colSpan: 6 } } },
367
+ })),
368
+ actions: [],
369
+ },
370
+ },
371
+ },
372
+ };
373
+ }
374
+
375
+ /**
376
+ * Generated bundle index. Do not edit.
377
+ */
378
+
379
+ export { activityEventEntityFactory };
380
+ //# sourceMappingURL=acorex-platform-module-activity-insight-client-contracts-entities-activity-event.mjs.map