@acorex-platform/module-communication-management-client 0.0.38 → 0.0.46

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 (38) hide show
  1. package/fesm2022/{acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-CZh_tBTN.mjs → acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-BJvTWpBc.mjs} +268 -91
  2. package/fesm2022/acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-BJvTWpBc.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-send.command-Bnqy-YMs.mjs → acorex-platform-module-communication-management-client-communication-email-send.command-CR4RjM-X.mjs} +2 -2
  4. package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-send.command-Bnqy-YMs.mjs.map → acorex-platform-module-communication-management-client-communication-email-send.command-CR4RjM-X.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-D4o0Bhce.mjs → acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-yaRijsuh.mjs} +3 -3
  6. package/fesm2022/{acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-D4o0Bhce.mjs.map → acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-yaRijsuh.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-communication-management-client-communication-send.command-BH9jjHfA.mjs → acorex-platform-module-communication-management-client-communication-send.command-D19heywC.mjs} +2 -2
  8. package/fesm2022/{acorex-platform-module-communication-management-client-communication-send.command-BH9jjHfA.mjs.map → acorex-platform-module-communication-management-client-communication-send.command-D19heywC.mjs.map} +1 -1
  9. package/fesm2022/{acorex-platform-module-communication-management-client-communication-test-smtp.command-BMsTVFBN.mjs → acorex-platform-module-communication-management-client-communication-test-smtp.command-Bck8R4as.mjs} +2 -2
  10. package/fesm2022/{acorex-platform-module-communication-management-client-communication-test-smtp.command-BMsTVFBN.mjs.map → acorex-platform-module-communication-management-client-communication-test-smtp.command-Bck8R4as.mjs.map} +1 -1
  11. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication-delivery.mjs +25 -0
  12. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication-delivery.mjs.map +1 -1
  13. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication.mjs +25 -0
  14. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication.mjs.map +1 -1
  15. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.mjs +195 -0
  16. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.mjs.map +1 -0
  17. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-BvLoGDK5.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DTHjzWFn.mjs} +15 -3
  18. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DTHjzWFn.mjs.map +1 -0
  19. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DPCU8P32.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DN0_CPBO.mjs} +16 -2
  20. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DN0_CPBO.mjs.map +1 -0
  21. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-DGj9OD3Z.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-BAa4oCXu.mjs} +16 -2
  22. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-BAa4oCXu.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-DmM894ok.mjs +144 -0
  24. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-DmM894ok.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog.mjs +1 -1
  26. package/fesm2022/acorex-platform-module-communication-management-client-contracts.mjs +29 -1
  27. package/fesm2022/acorex-platform-module-communication-management-client-contracts.mjs.map +1 -1
  28. package/fesm2022/acorex-platform-module-communication-management-client-local-entities.mjs +1 -0
  29. package/fesm2022/acorex-platform-module-communication-management-client-local-entities.mjs.map +1 -1
  30. package/fesm2022/acorex-platform-module-communication-management-client.mjs +1 -1
  31. package/package.json +7 -3
  32. package/types/acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.d.ts +5 -0
  33. package/types/acorex-platform-module-communication-management-client-contracts.d.ts +48 -2
  34. package/types/acorex-platform-module-communication-management-client.d.ts +17 -0
  35. package/fesm2022/acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-CZh_tBTN.mjs.map +0 -1
  36. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-BvLoGDK5.mjs.map +0 -1
  37. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DPCU8P32.mjs.map +0 -1
  38. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-DGj9OD3Z.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entities-communication-delivery.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/status.keys.ts","../../../../libs/modules/communication-management/contracts/src/root-config.ts","../../../../libs/modules/communication-management/contracts/src/entities/communication-delivery/communication-delivery.entity.ts","../../../../libs/modules/communication-management/contracts/src/acorex-platform-module-communication-management-client-contracts-entities-communication-delivery.ts"],"sourcesContent":["//#region ---- Status definition keys ----\n\n/** Registered client status provider key for logical communications. */\nexport const AXP_COMMUNICATION_STATUS_DEFINITION_KEY = 'communication-management.status.communication';\n\n/** Registered client status provider key for communication deliveries. */\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY =\n 'communication-management.status.communication-delivery';\n\nexport const AXP_COMMUNICATION_STATUS_PENDING = 'Pending' as const;\nexport const AXP_COMMUNICATION_STATUS_PROCESSING = 'Processing' as const;\nexport const AXP_COMMUNICATION_STATUS_COMPLETED = 'Completed' as const;\nexport const AXP_COMMUNICATION_STATUS_FAILED = 'Failed' as const;\n\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_PENDING = 'Pending' as const;\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED = 'Delivered' as const;\n\n//#endregion\n","const config = {\n i18n: 'communication-management',\n};\n\nconst dashboardWidgetId = (segment: string): string =>\n `CommunicationManagement:Widget:Dashboard:${segment}`;\n\nexport const RootConfig = {\n config,\n module: {\n name: 'CommunicationManagement',\n title: '@communication-management:module.title',\n icon: 'fa-light fa-paper-plane',\n },\n entities: {\n communication: {\n name: 'Communications',\n title: '@communication-management:entities.communication.title',\n titlePlural: '@communication-management:entities.communication.plural',\n icon: 'fa-light fa-envelope',\n },\n communicationDelivery: {\n name: 'CommunicationDeliveries',\n title: '@communication-management:entities.communication-delivery.title',\n titlePlural: '@communication-management:entities.communication-delivery.plural',\n icon: 'fa-light fa-truck-fast',\n },\n },\n widgets: {\n myInAppInboxDashboard: dashboardWidgetId('MyInAppInboxDashboard'),\n },\n queries: {\n dashboard: {\n deliveryStatusDonut: 'CommunicationManagement:Dashboard:DeliveryStatusDonut',\n },\n },\n} as const;\n\nexport const COMMUNICATION_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communication.name}`;\nexport const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY } from '../../status.keys';\nimport { RootConfig } from '../../root-config';\n\nconst listOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nexport async function communicationDeliveryEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.communicationDelivery.name,\n title: RootConfig.entities.communicationDelivery.title,\n icon: RootConfig.entities.communicationDelivery.icon,\n plugins: [\n {\n name: 'status',\n options: {\n field: 'status',\n definition: AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY,\n showInCreate: false,\n readonly: true,\n generate: { views: { enabled: true } },\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.communicationDelivery.title,\n plural: RootConfig.entities.communicationDelivery.titlePlural,\n searchResult: {\n title: '{{ channel }} — {{ recipientAddress }}',\n description: '{{ status }}',\n },\n },\n columns: [\n { name: 'communicationId', options: { width: '180px' } },\n { name: 'channel', options: { width: '120px' } },\n { name: 'recipientAddress', options: { width: '200px' } },\n { name: 'sentAt', options: { width: '170px' } },\n { name: 'deliveredAt', options: { width: '170px' } },\n ],\n groups: [\n { id: 'general', title: '@general:terms.interface.basic-info' },\n { id: 'tracking', title: `@${i18n}:entities.communication-delivery.groups.tracking` },\n { id: 'timeline', title: `@${i18n}:entities.communication-delivery.groups.timeline` },\n ],\n properties: [\n {\n name: 'communicationId',\n title: `@${i18n}:entities.communication-delivery.fields.communication-id`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'channel',\n title: `@${i18n}:entities.communication-delivery.fields.channel`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'providerKey',\n title: `@${i18n}:entities.communication-delivery.fields.provider-key`,\n groupId: 'general',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'recipientUserId',\n title: `@${i18n}:entities.communication-delivery.fields.recipient-user-id`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'recipientAddress',\n title: `@${i18n}:entities.communication-delivery.fields.recipient-address`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'providerMessageId',\n title: `@${i18n}:entities.communication-delivery.fields.provider-message-id`,\n groupId: 'tracking',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'sentAt',\n title: `@${i18n}:entities.communication-delivery.fields.sent-at`,\n groupId: 'tracking',\n options: listOptions,\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'deliveredAt',\n title: `@${i18n}:entities.communication-delivery.fields.delivered-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'seenAt',\n title: `@${i18n}:entities.communication-delivery.fields.seen-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'readAt',\n title: `@${i18n}:entities.communication-delivery.fields.read-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'isPinned',\n title: `@${i18n}:entities.communication-delivery.fields.is-pinned`,\n groupId: 'tracking',\n schema: { dataType: 'boolean', readonly: true, interface: { type: AXPWidgetsCatalog.toggle } },\n },\n {\n name: 'archivedAt',\n title: `@${i18n}:entities.communication-delivery.fields.archived-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'repliedAt',\n title: `@${i18n}:entities.communication-delivery.fields.replied-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'timelineSummary',\n title: `@${i18n}:entities.communication-delivery.fields.timeline-summary`,\n groupId: 'timeline',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.largeText },\n },\n },\n ],\n interfaces: {\n master: {\n // Empty create/update keeps deliveries view-only (engine creates records).\n create: {\n sections: [],\n properties: [],\n },\n update: {\n sections: [],\n properties: [],\n },\n single: {\n title: '{{ channel }} — {{ recipientAddress }}',\n sections: [{ id: 'general' }, { id: 'tracking' }, { id: 'timeline' }],\n properties: [\n { name: 'communicationId' },\n { name: 'channel' },\n { name: 'providerKey' },\n { name: 'recipientAddress' },\n { name: 'providerMessageId' },\n { name: 'sentAt' },\n { name: 'deliveredAt' },\n { name: 'seenAt' },\n { name: 'readAt' },\n { name: 'repliedAt' },\n { name: 'timelineSummary' },\n ],\n actions: [],\n },\n list: {\n actions: [...entityMasterCrudActions({ create: false, delete: false, edit: false, view: true })],\n views: [createAllQueryView()],\n },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.communication-delivery';\n"],"names":[],"mappings":";;;AAAA;AAEA;AACO,MAAM,uCAAuC,GAAG,+CAA+C;AAEtG;AACO,MAAM,gDAAgD,GAC3D,wDAAwD;AAEnD,MAAM,gCAAgC,GAAG,SAAkB;AAC3D,MAAM,mCAAmC,GAAG,YAAqB;AACjE,MAAM,kCAAkC,GAAG,WAAoB;AAC/D,MAAM,+BAA+B,GAAG,QAAiB;AAEzD,MAAM,yCAAyC,GAAG,SAAkB;AACpE,MAAM,2CAA2C,GAAG,WAAoB;AAE/E;;ACjBA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;CACjC;AAED,MAAM,iBAAiB,GAAG,CAAC,OAAe,KACxC,CAAA,yCAAA,EAA4C,O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ts-entities-communication-delivery.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/status.keys.ts","../../../../libs/modules/communication-management/contracts/src/root-config.ts","../../../../libs/modules/communication-management/contracts/src/entities/communication-delivery/communication-delivery.entity.ts","../../../../libs/modules/communication-management/contracts/src/acorex-platform-module-communication-management-client-contracts-entities-communication-delivery.ts"],"sourcesContent":["//#region ---- Status definition keys ----\n\n/** Registered client status provider key for logical communications. */\nexport const AXP_COMMUNICATION_STATUS_DEFINITION_KEY = 'communication-management.status.communication';\n\n/** Registered client status provider key for communication deliveries. */\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY =\n 'communication-management.status.communication-delivery';\n\nexport const AXP_COMMUNICATION_STATUS_PENDING = 'Pending' as const;\nexport const AXP_COMMUNICATION_STATUS_PROCESSING = 'Processing' as const;\nexport const AXP_COMMUNICATION_STATUS_COMPLETED = 'Completed' as const;\nexport const AXP_COMMUNICATION_STATUS_FAILED = 'Failed' as const;\n\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_PENDING = 'Pending' as const;\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED = 'Delivered' as const;\n\n//#endregion\n","const config = {\n i18n: 'communication-management',\n};\n\nconst dashboardWidgetId = (segment: string): string =>\n `CommunicationManagement:Widget:Dashboard:${segment}`;\n\nexport const RootConfig = {\n config,\n module: {\n name: 'CommunicationManagement',\n title: '@communication-management:module.title',\n icon: 'fa-light fa-paper-plane',\n },\n entities: {\n communication: {\n name: 'Communications',\n title: '@communication-management:entities.communication.title',\n titlePlural: '@communication-management:entities.communication.plural',\n icon: 'fa-light fa-envelope',\n },\n communicationDelivery: {\n name: 'CommunicationDeliveries',\n title: '@communication-management:entities.communication-delivery.title',\n titlePlural: '@communication-management:entities.communication-delivery.plural',\n icon: 'fa-light fa-truck-fast',\n },\n entityChangeNotifyPolicy: {\n name: 'EntityChangeNotifyPolicy',\n title: '@communication-management:entities.entity-change-notify-policy.title',\n titlePlural: '@communication-management:entities.entity-change-notify-policy.plural',\n icon: 'fa-light fa-bell-on',\n },\n },\n widgets: {\n myInAppInboxDashboard: dashboardWidgetId('MyInAppInboxDashboard'),\n },\n queries: {\n dashboard: {\n deliveryStatusDonut: 'CommunicationManagement:Dashboard:DeliveryStatusDonut',\n },\n },\n} as const;\n\nexport const COMMUNICATION_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communication.name}`;\nexport const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`;\nexport const ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.entityChangeNotifyPolicy.name}`;\nexport const ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY = 'communication-management';\nexport const DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS = 60;\n/** Namespace for {@link tenantMasterId} when cloning notify policies per tenant. */\nexport const ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE = 'communication' as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY } from '../../status.keys';\nimport { RootConfig } from '../../root-config';\n\nconst listOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nexport async function communicationDeliveryEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.communicationDelivery.name,\n title: RootConfig.entities.communicationDelivery.title,\n icon: RootConfig.entities.communicationDelivery.icon,\n searchTags: [\n 'communication-delivery',\n 'delivery',\n 'delivery-tracking',\n 'sent',\n 'delivered',\n 'read-receipt',\n 'channel-delivery',\n 'recipient-address',\n 'تحویل',\n 'تحویل‌ها',\n 'ردیابی تحویل',\n 'کانال',\n ],\n plugins: [\n {\n name: 'status',\n options: {\n field: 'status',\n definition: AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY,\n showInCreate: false,\n readonly: true,\n generate: { views: { enabled: true } },\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.communicationDelivery.title,\n plural: RootConfig.entities.communicationDelivery.titlePlural,\n searchResult: {\n title: '{{ channel }} — {{ recipientAddress }}',\n description: '{{ status }}',\n },\n },\n columns: [\n { name: 'communicationId', options: { width: '180px' } },\n { name: 'channel', options: { width: '120px' } },\n { name: 'recipientAddress', options: { width: '200px' } },\n { name: 'sentAt', options: { width: '170px' } },\n { name: 'deliveredAt', options: { width: '170px' } },\n ],\n groups: [\n { id: 'general', title: '@general:terms.interface.basic-info' },\n { id: 'tracking', title: `@${i18n}:entities.communication-delivery.groups.tracking` },\n { id: 'timeline', title: `@${i18n}:entities.communication-delivery.groups.timeline` },\n ],\n properties: [\n {\n name: 'communicationId',\n title: `@${i18n}:entities.communication-delivery.fields.communication-id`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'channel',\n title: `@${i18n}:entities.communication-delivery.fields.channel`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'providerKey',\n title: `@${i18n}:entities.communication-delivery.fields.provider-key`,\n groupId: 'general',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'recipientUserId',\n title: `@${i18n}:entities.communication-delivery.fields.recipient-user-id`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'recipientAddress',\n title: `@${i18n}:entities.communication-delivery.fields.recipient-address`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'providerMessageId',\n title: `@${i18n}:entities.communication-delivery.fields.provider-message-id`,\n groupId: 'tracking',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'sentAt',\n title: `@${i18n}:entities.communication-delivery.fields.sent-at`,\n groupId: 'tracking',\n options: listOptions,\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'deliveredAt',\n title: `@${i18n}:entities.communication-delivery.fields.delivered-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'seenAt',\n title: `@${i18n}:entities.communication-delivery.fields.seen-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'readAt',\n title: `@${i18n}:entities.communication-delivery.fields.read-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'isPinned',\n title: `@${i18n}:entities.communication-delivery.fields.is-pinned`,\n groupId: 'tracking',\n schema: { dataType: 'boolean', readonly: true, interface: { type: AXPWidgetsCatalog.toggle } },\n },\n {\n name: 'archivedAt',\n title: `@${i18n}:entities.communication-delivery.fields.archived-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'repliedAt',\n title: `@${i18n}:entities.communication-delivery.fields.replied-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'timelineSummary',\n title: `@${i18n}:entities.communication-delivery.fields.timeline-summary`,\n groupId: 'timeline',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.largeText },\n },\n },\n ],\n interfaces: {\n master: {\n // Empty create/update keeps deliveries view-only (engine creates records).\n create: {\n sections: [],\n properties: [],\n },\n update: {\n sections: [],\n properties: [],\n },\n single: {\n title: '{{ channel }} — {{ recipientAddress }}',\n sections: [{ id: 'general' }, { id: 'tracking' }, { id: 'timeline' }],\n properties: [\n { name: 'communicationId' },\n { name: 'channel' },\n { name: 'providerKey' },\n { name: 'recipientAddress' },\n { name: 'providerMessageId' },\n { name: 'sentAt' },\n { name: 'deliveredAt' },\n { name: 'seenAt' },\n { name: 'readAt' },\n { name: 'repliedAt' },\n { name: 'timelineSummary' },\n ],\n actions: [],\n },\n list: {\n actions: [...entityMasterCrudActions({ create: false, delete: false, edit: false, view: true })],\n views: [createAllQueryView()],\n },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.communication-delivery';\n"],"names":[],"mappings":";;;AAAA;AAEA;AACO,MAAM,uCAAuC,GAAG,+CAA+C;AAEtG;AACO,MAAM,gDAAgD,GAC3D,wDAAwD;AAEnD,MAAM,gCAAgC,GAAG,SAAkB;AAC3D,MAAM,mCAAmC,GAAG,YAAqB;AACjE,MAAM,kCAAkC,GAAG,WAAoB;AAC/D,MAAM,+BAA+B,GAAG,QAAiB;AAEzD,MAAM,yCAAyC,GAAG,SAAkB;AACpE,MAAM,2CAA2C,GAAG,WAAoB;AAE/E;;ACjBA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;CACjC;AAED,MAAM,iBAAiB,GAAG,CAAC,OAAe,KACxC,CAAA,yCAAA,EAA4C,OAAO,CAAA,CAAE;AAEhD,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,yBAAyB;AAC/B,QAAA,KAAK,EAAE,wCAAwC;AAC/C,QAAA,IAAI,EAAE,yBAAyB;AAChC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,KAAK,EAAE,wDAAwD;AA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,GAAG,uBAAuB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAChG,oBAAA,KAAK,EAAE,CAAC,kBAAkB,EAAE,CAAC;AAC9B,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;ACvMA;;AAEG;;"}
@@ -48,6 +48,12 @@ const RootConfig = {
48
48
  titlePlural: '@communication-management:entities.communication-delivery.plural',
49
49
  icon: 'fa-light fa-truck-fast',
50
50
  },
51
+ entityChangeNotifyPolicy: {
52
+ name: 'EntityChangeNotifyPolicy',
53
+ title: '@communication-management:entities.entity-change-notify-policy.title',
54
+ titlePlural: '@communication-management:entities.entity-change-notify-policy.plural',
55
+ icon: 'fa-light fa-bell-on',
56
+ },
51
57
  },
52
58
  widgets: {
53
59
  myInAppInboxDashboard: dashboardWidgetId('MyInAppInboxDashboard'),
@@ -60,6 +66,11 @@ const RootConfig = {
60
66
  };
61
67
  const COMMUNICATION_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communication.name}`;
62
68
  const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`;
69
+ const ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.entityChangeNotifyPolicy.name}`;
70
+ const ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY = 'communication-management';
71
+ const DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS = 60;
72
+ /** Namespace for {@link tenantMasterId} when cloning notify policies per tenant. */
73
+ const ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE = 'communication';
63
74
 
64
75
  const listOptions = {
65
76
  filter: { inline: { enabled: true }, advance: { enabled: true } },
@@ -86,6 +97,20 @@ async function communicationEntityFactory() {
86
97
  name: RootConfig.entities.communication.name,
87
98
  title: RootConfig.entities.communication.title,
88
99
  icon: RootConfig.entities.communication.icon,
100
+ searchTags: [
101
+ 'communication',
102
+ 'outbound-message',
103
+ 'notification',
104
+ 'email',
105
+ 'in-app',
106
+ 'message',
107
+ 'recipient',
108
+ 'channel',
109
+ 'ارتباط',
110
+ 'ارتباطات',
111
+ 'پیام',
112
+ 'اعلان',
113
+ ],
89
114
  plugins: [
90
115
  {
91
116
  name: 'status',
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entities-communication.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/commands.keys.ts","../../../../libs/modules/communication-management/contracts/src/status.keys.ts","../../../../libs/modules/communication-management/contracts/src/root-config.ts","../../../../libs/modules/communication-management/contracts/src/entities/communication/communication.entity.ts","../../../../libs/modules/communication-management/contracts/src/acorex-platform-module-communication-management-client-contracts-entities-communication.ts"],"sourcesContent":["//#region ---- Client command keys ----\n\nexport const AXMCommunicationManagementCommandKeys = {\n Send: 'CommunicationManagement:Communication:Send',\n TestSmtp: 'CommunicationManagement:Communication:TestSmtp',\n EmailShowDialog: 'CommunicationManagement:Email:ShowDialog',\n EmailSend: 'CommunicationManagement:Email:Send',\n ShowSentMessage: 'CommunicationManagement:Communication:ShowSentMessage',\n} as const;\n\n//#endregion\n","//#region ---- Status definition keys ----\n\n/** Registered client status provider key for logical communications. */\nexport const AXP_COMMUNICATION_STATUS_DEFINITION_KEY = 'communication-management.status.communication';\n\n/** Registered client status provider key for communication deliveries. */\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY =\n 'communication-management.status.communication-delivery';\n\nexport const AXP_COMMUNICATION_STATUS_PENDING = 'Pending' as const;\nexport const AXP_COMMUNICATION_STATUS_PROCESSING = 'Processing' as const;\nexport const AXP_COMMUNICATION_STATUS_COMPLETED = 'Completed' as const;\nexport const AXP_COMMUNICATION_STATUS_FAILED = 'Failed' as const;\n\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_PENDING = 'Pending' as const;\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED = 'Delivered' as const;\n\n//#endregion\n","const config = {\n i18n: 'communication-management',\n};\n\nconst dashboardWidgetId = (segment: string): string =>\n `CommunicationManagement:Widget:Dashboard:${segment}`;\n\nexport const RootConfig = {\n config,\n module: {\n name: 'CommunicationManagement',\n title: '@communication-management:module.title',\n icon: 'fa-light fa-paper-plane',\n },\n entities: {\n communication: {\n name: 'Communications',\n title: '@communication-management:entities.communication.title',\n titlePlural: '@communication-management:entities.communication.plural',\n icon: 'fa-light fa-envelope',\n },\n communicationDelivery: {\n name: 'CommunicationDeliveries',\n title: '@communication-management:entities.communication-delivery.title',\n titlePlural: '@communication-management:entities.communication-delivery.plural',\n icon: 'fa-light fa-truck-fast',\n },\n },\n widgets: {\n myInAppInboxDashboard: dashboardWidgetId('MyInAppInboxDashboard'),\n },\n queries: {\n dashboard: {\n deliveryStatusDonut: 'CommunicationManagement:Dashboard:DeliveryStatusDonut',\n },\n },\n} as const;\n\nexport const COMMUNICATION_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communication.name}`;\nexport const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityAction,\n AXPEntityCommandScope,\n createAllQueryView,\n entityDetailsCrudActions,\n entityDetailsSimpleCondition,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXMCommunicationManagementCommandKeys } from '../../commands.keys';\nimport { AXP_COMMUNICATION_STATUS_DEFINITION_KEY } from '../../status.keys';\nimport { RootConfig } from '../../root-config';\n\nconst listOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nconst previewMessageAction = (i18n: string): AXPEntityAction =>\n ({\n title: `@${i18n}:entities.communication.actions.preview.title`,\n name: 'preview-message',\n icon: 'fa-light fa-envelope-open-text',\n command: {\n name: AXMCommunicationManagementCommandKeys.ShowSentMessage,\n options: {\n communicationId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'execute',\n scope: AXPEntityCommandScope.Individual,\n }) as AXPEntityAction;\n\nexport async function communicationEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.communication.name,\n title: RootConfig.entities.communication.title,\n icon: RootConfig.entities.communication.icon,\n plugins: [\n {\n name: 'status',\n options: {\n field: 'status',\n definition: AXP_COMMUNICATION_STATUS_DEFINITION_KEY,\n showInCreate: false,\n readonly: true,\n generate: { views: { enabled: true } },\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.communication.title,\n plural: RootConfig.entities.communication.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ message.subject }}',\n },\n },\n columns: [\n { name: 'title', options: { width: '220px' } },\n { name: 'primaryChannel', options: { width: '140px' } },\n { name: 'recipientSummary', options: { width: '200px' } },\n ],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`,\n title: RootConfig.entities.communicationDelivery.titlePlural,\n columns: ['channel', 'status', 'recipientAddress', 'sentAt', 'deliveredAt'],\n conditions: [entityDetailsSimpleCondition('communicationId')],\n persistence: { foreignKeyField: 'communicationId' },\n excludeProperties: ['communicationId'],\n actions: [\n ...entityDetailsCrudActions('communicationId', {\n create: false,\n edit: false,\n delete: false,\n view: true,\n }),\n ],\n layout: { type: 'page-list', position: 'after', order: 1 },\n },\n ],\n\n groups: [\n { id: 'general', title: '@general:terms.interface.basic-info' },\n { id: 'routing', title: `@${i18n}:entities.communication.groups.routing` },\n ],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'message.subject',\n title: `@${i18n}:entities.communication.fields.message-subject`,\n groupId: 'general',\n options: listOptions,\n schema: {\n dataType: 'string',\n visible: false,\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n },\n {\n name: 'message.body',\n title: `@${i18n}:entities.communication.fields.message-body`,\n groupId: 'general',\n schema: {\n dataType: 'string',\n visible: false,\n readonly: true,\n interface: { type: AXPWidgetsCatalog.largeText },\n },\n },\n {\n name: 'primaryChannel',\n title: `@${i18n}:entities.communication.fields.primary-channel`,\n groupId: 'routing',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'recipientSummary',\n title: `@${i18n}:entities.communication.fields.recipient-summary`,\n groupId: 'routing',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'definitionKey',\n title: `@${i18n}:entities.communication.fields.definition-key`,\n groupId: 'routing',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'priority',\n title: `@${i18n}:entities.communication.fields.priority`,\n groupId: 'routing',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'correlationId',\n title: `@${i18n}:entities.communication.fields.correlation-id`,\n groupId: 'routing',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'idempotencyKey',\n title: `@${i18n}:entities.communication.fields.idempotency-key`,\n groupId: 'routing',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'actions',\n title: `@${i18n}:entities.communication.fields.actions`,\n groupId: 'routing',\n schema: { dataType: 'object', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n ],\n interfaces: {\n master: {\n // Empty create/update keeps the entity view-only (send API creates records).\n create: {\n sections: [],\n properties: [],\n },\n update: {\n sections: [],\n properties: [],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'general' }, { id: 'routing' }],\n properties: [\n { name: 'title' },\n { name: 'primaryChannel' },\n { name: 'recipientSummary' },\n { name: 'definitionKey' },\n { name: 'correlationId' },\n { name: 'idempotencyKey' },\n ],\n actions: [previewMessageAction(i18n), ...entityMasterRecordActions()],\n },\n list: {\n actions: [\n ...entityMasterCrudActions({ create: false, edit: false, view: true, delete: true }),\n previewMessageAction(i18n),\n ],\n views: [createAllQueryView()],\n },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.communication';\n"],"names":[],"mappings":";;;AAAA;AAEO,MAAM,qCAAqC,GAAG;AACnD,IAAA,IAAI,EAAE,4CAA4C;AAClD,IAAA,QAAQ,EAAE,gDAAgD;AAC1D,IAAA,eAAe,EAAE,0CAA0C;AAC3D,IAAA,SAAS,EAAE,oCAAoC;AAC/C,IAAA,eAAe,EAAE,uDAAuD;CAChE;AAEV;;ACVA;AAEA;AACO,MAAM,uCAAuC,GAAG,+CAA+C;AAEtG;AACO,MAAM,gDAAgD,GAC3D,wDAAwD;AAEnD,MAAM,gCAAgC,GAAG,SAAkB;AAC3D,MAAM,mCAAmC,GAAG,YAAqB;AACjE,MAAM,kCAAkC,GAAG,WAAoB;AAC/D,MAAM,+BAA+B,GAAG,QAAiB;AAEzD,MAAM,yCAAyC,GAAG,SAAkB;AACpE,MAAM,2CAA2C,GAAG,WAAoB;AAE/E;;ACjBA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;CACjC;AAED,MAAM,iBAAiB,GAAG,CAAC,OAAe,KACxC,CAAA,yCAAA,EAA4C,OAAO,CAAA,CAAE;AAEhD,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,yBAAyB;AAC/B,QAAA,KAAK,EAAE,wCAAwC;AAC/C,QAAA,IAAI,EAAE,yBAAyB;AAChC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,Q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,EAAE,IAAI,EAAE,OAAO,EAAE;wBACjB,EAAE,IAAI,EAAE,gBAAgB,EAAE;wBAC1B,EAAE,IAAI,EAAE,kBAAkB,EAAE;wBAC5B,EAAE,IAAI,EAAE,eAAe,EAAE;wBACzB,EAAE,IAAI,EAAE,eAAe,EAAE;wBACzB,EAAE,IAAI,EAAE,gBAAgB,EAAE;AAC3B,qBAAA;oBACD,OAAO,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,GAAG,yBAAyB,EAAE,CAAC;AACtE,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,uBAAuB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;wBACpF,oBAAoB,CAAC,IAAI,CAAC;AAC3B,qBAAA;AACD,oBAAA,KAAK,EAAE,CAAC,kBAAkB,EAAE,CAAC;AAC9B,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;AC3MA;;AAEG;;"}
1
+ {"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entities-communication.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/commands.keys.ts","../../../../libs/modules/communication-management/contracts/src/status.keys.ts","../../../../libs/modules/communication-management/contracts/src/root-config.ts","../../../../libs/modules/communication-management/contracts/src/entities/communication/communication.entity.ts","../../../../libs/modules/communication-management/contracts/src/acorex-platform-module-communication-management-client-contracts-entities-communication.ts"],"sourcesContent":["//#region ---- Client command keys ----\n\nexport const AXMCommunicationManagementCommandKeys = {\n Send: 'CommunicationManagement:Communication:Send',\n TestSmtp: 'CommunicationManagement:Communication:TestSmtp',\n EmailShowDialog: 'CommunicationManagement:Email:ShowDialog',\n EmailSend: 'CommunicationManagement:Email:Send',\n ShowSentMessage: 'CommunicationManagement:Communication:ShowSentMessage',\n} as const;\n\n//#endregion\n","//#region ---- Status definition keys ----\n\n/** Registered client status provider key for logical communications. */\nexport const AXP_COMMUNICATION_STATUS_DEFINITION_KEY = 'communication-management.status.communication';\n\n/** Registered client status provider key for communication deliveries. */\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY =\n 'communication-management.status.communication-delivery';\n\nexport const AXP_COMMUNICATION_STATUS_PENDING = 'Pending' as const;\nexport const AXP_COMMUNICATION_STATUS_PROCESSING = 'Processing' as const;\nexport const AXP_COMMUNICATION_STATUS_COMPLETED = 'Completed' as const;\nexport const AXP_COMMUNICATION_STATUS_FAILED = 'Failed' as const;\n\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_PENDING = 'Pending' as const;\nexport const AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED = 'Delivered' as const;\n\n//#endregion\n","const config = {\n i18n: 'communication-management',\n};\n\nconst dashboardWidgetId = (segment: string): string =>\n `CommunicationManagement:Widget:Dashboard:${segment}`;\n\nexport const RootConfig = {\n config,\n module: {\n name: 'CommunicationManagement',\n title: '@communication-management:module.title',\n icon: 'fa-light fa-paper-plane',\n },\n entities: {\n communication: {\n name: 'Communications',\n title: '@communication-management:entities.communication.title',\n titlePlural: '@communication-management:entities.communication.plural',\n icon: 'fa-light fa-envelope',\n },\n communicationDelivery: {\n name: 'CommunicationDeliveries',\n title: '@communication-management:entities.communication-delivery.title',\n titlePlural: '@communication-management:entities.communication-delivery.plural',\n icon: 'fa-light fa-truck-fast',\n },\n entityChangeNotifyPolicy: {\n name: 'EntityChangeNotifyPolicy',\n title: '@communication-management:entities.entity-change-notify-policy.title',\n titlePlural: '@communication-management:entities.entity-change-notify-policy.plural',\n icon: 'fa-light fa-bell-on',\n },\n },\n widgets: {\n myInAppInboxDashboard: dashboardWidgetId('MyInAppInboxDashboard'),\n },\n queries: {\n dashboard: {\n deliveryStatusDonut: 'CommunicationManagement:Dashboard:DeliveryStatusDonut',\n },\n },\n} as const;\n\nexport const COMMUNICATION_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communication.name}`;\nexport const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`;\nexport const ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.entityChangeNotifyPolicy.name}`;\nexport const ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY = 'communication-management';\nexport const DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS = 60;\n/** Namespace for {@link tenantMasterId} when cloning notify policies per tenant. */\nexport const ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE = 'communication' as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityAction,\n AXPEntityCommandScope,\n createAllQueryView,\n entityDetailsCrudActions,\n entityDetailsSimpleCondition,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXMCommunicationManagementCommandKeys } from '../../commands.keys';\nimport { AXP_COMMUNICATION_STATUS_DEFINITION_KEY } from '../../status.keys';\nimport { RootConfig } from '../../root-config';\n\nconst listOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nconst previewMessageAction = (i18n: string): AXPEntityAction =>\n ({\n title: `@${i18n}:entities.communication.actions.preview.title`,\n name: 'preview-message',\n icon: 'fa-light fa-envelope-open-text',\n command: {\n name: AXMCommunicationManagementCommandKeys.ShowSentMessage,\n options: {\n communicationId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'execute',\n scope: AXPEntityCommandScope.Individual,\n }) as AXPEntityAction;\n\nexport async function communicationEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.communication.name,\n title: RootConfig.entities.communication.title,\n icon: RootConfig.entities.communication.icon,\n searchTags: [\n 'communication',\n 'outbound-message',\n 'notification',\n 'email',\n 'in-app',\n 'message',\n 'recipient',\n 'channel',\n 'ارتباط',\n 'ارتباطات',\n 'پیام',\n 'اعلان',\n ],\n plugins: [\n {\n name: 'status',\n options: {\n field: 'status',\n definition: AXP_COMMUNICATION_STATUS_DEFINITION_KEY,\n showInCreate: false,\n readonly: true,\n generate: { views: { enabled: true } },\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.communication.title,\n plural: RootConfig.entities.communication.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ message.subject }}',\n },\n },\n columns: [\n { name: 'title', options: { width: '220px' } },\n { name: 'primaryChannel', options: { width: '140px' } },\n { name: 'recipientSummary', options: { width: '200px' } },\n ],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`,\n title: RootConfig.entities.communicationDelivery.titlePlural,\n columns: ['channel', 'status', 'recipientAddress', 'sentAt', 'deliveredAt'],\n conditions: [entityDetailsSimpleCondition('communicationId')],\n persistence: { foreignKeyField: 'communicationId' },\n excludeProperties: ['communicationId'],\n actions: [\n ...entityDetailsCrudActions('communicationId', {\n create: false,\n edit: false,\n delete: false,\n view: true,\n }),\n ],\n layout: { type: 'page-list', position: 'after', order: 1 },\n },\n ],\n\n groups: [\n { id: 'general', title: '@general:terms.interface.basic-info' },\n { id: 'routing', title: `@${i18n}:entities.communication.groups.routing` },\n ],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'message.subject',\n title: `@${i18n}:entities.communication.fields.message-subject`,\n groupId: 'general',\n options: listOptions,\n schema: {\n dataType: 'string',\n visible: false,\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n },\n {\n name: 'message.body',\n title: `@${i18n}:entities.communication.fields.message-body`,\n groupId: 'general',\n schema: {\n dataType: 'string',\n visible: false,\n readonly: true,\n interface: { type: AXPWidgetsCatalog.largeText },\n },\n },\n {\n name: 'primaryChannel',\n title: `@${i18n}:entities.communication.fields.primary-channel`,\n groupId: 'routing',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'recipientSummary',\n title: `@${i18n}:entities.communication.fields.recipient-summary`,\n groupId: 'routing',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'definitionKey',\n title: `@${i18n}:entities.communication.fields.definition-key`,\n groupId: 'routing',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'priority',\n title: `@${i18n}:entities.communication.fields.priority`,\n groupId: 'routing',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'correlationId',\n title: `@${i18n}:entities.communication.fields.correlation-id`,\n groupId: 'routing',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'idempotencyKey',\n title: `@${i18n}:entities.communication.fields.idempotency-key`,\n groupId: 'routing',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'actions',\n title: `@${i18n}:entities.communication.fields.actions`,\n groupId: 'routing',\n schema: { dataType: 'object', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n ],\n interfaces: {\n master: {\n // Empty create/update keeps the entity view-only (send API creates records).\n create: {\n sections: [],\n properties: [],\n },\n update: {\n sections: [],\n properties: [],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'general' }, { id: 'routing' }],\n properties: [\n { name: 'title' },\n { name: 'primaryChannel' },\n { name: 'recipientSummary' },\n { name: 'definitionKey' },\n { name: 'correlationId' },\n { name: 'idempotencyKey' },\n ],\n actions: [previewMessageAction(i18n), ...entityMasterRecordActions()],\n },\n list: {\n actions: [\n ...entityMasterCrudActions({ create: false, edit: false, view: true, delete: true }),\n previewMessageAction(i18n),\n ],\n views: [createAllQueryView()],\n },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.communication';\n"],"names":[],"mappings":";;;AAAA;AAEO,MAAM,qCAAqC,GAAG;AACnD,IAAA,IAAI,EAAE,4CAA4C;AAClD,IAAA,QAAQ,EAAE,gDAAgD;AAC1D,IAAA,eAAe,EAAE,0CAA0C;AAC3D,IAAA,SAAS,EAAE,oCAAoC;AAC/C,IAAA,eAAe,EAAE,uDAAuD;CAChE;AAEV;;ACVA;AAEA;AACO,MAAM,uCAAuC,GAAG,+CAA+C;AAEtG;AACO,MAAM,gDAAgD,GAC3D,wDAAwD;AAEnD,MAAM,gCAAgC,GAAG,SAAkB;AAC3D,MAAM,mCAAmC,GAAG,YAAqB;AACjE,MAAM,kCAAkC,GAAG,WAAoB;AAC/D,MAAM,+BAA+B,GAAG,QAAiB;AAEzD,MAAM,yCAAyC,GAAG,SAAkB;AACpE,MAAM,2CAA2C,GAAG,WAAoB;AAE/E;;ACjBA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;CACjC;AAED,MAAM,iBAAiB,GAAG,CAAC,OAAe,KACxC,CAAA,yCAAA,EAA4C,OAAO,CAAA,CAAE;AAEhD,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,yBAAyB;AAC/B,QAAA,KAAK,EAAE,wCAAwC;AAC/C,QAAA,IAAI,EAAE,yBAAyB;AAChC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,KAAK,EAAE,wDAAwD;AAC/D,YAAA,WAAW,EAAE,yDAAyD;AACtE,YAAA,IAAI,EAAE,sBAAsB;AAC7B,SAAA;AACD,QAAA,qBAAqB,EAAE;AACrB,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,K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A,QAAQ,EAAE,EAAE;AACZ,oBAAA,UAAU,EAAE,EAAE;AACf,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,EAAE;AACZ,oBAAA,UAAU,EAAE,EAAE;AACf,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,aAAa;AACpB,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;AAChD,oBAAA,UAAU,EAAE;wBACV,EAAE,IAAI,EAAE,OAAO,EAAE;wBACjB,EAAE,IAAI,EAAE,gBAAgB,EAAE;wBAC1B,EAAE,IAAI,EAAE,kBAAkB,EAAE;wBAC5B,EAAE,IAAI,EAAE,eAAe,EAAE;wBACzB,EAAE,IAAI,EAAE,eAAe,EAAE;wBACzB,EAAE,IAAI,EAAE,gBAAgB,EAAE;AAC3B,qBAAA;oBACD,OAAO,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,GAAG,yBAAyB,EAAE,CAAC;AACtE,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,uBAAuB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;wBACpF,oBAAoB,CAAC,IAAI,CAAC;AAC3B,qBAAA;AACD,oBAAA,KAAK,EAAE,CAAC,kBAAkB,EAAE,CAAC;AAC9B,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;ACzNA;;AAEG;;"}
@@ -0,0 +1,195 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'communication-management',
6
+ };
7
+ const dashboardWidgetId = (segment) => `CommunicationManagement:Widget:Dashboard:${segment}`;
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ name: 'CommunicationManagement',
12
+ title: '@communication-management:module.title',
13
+ icon: 'fa-light fa-paper-plane',
14
+ },
15
+ entities: {
16
+ communication: {
17
+ name: 'Communications',
18
+ title: '@communication-management:entities.communication.title',
19
+ titlePlural: '@communication-management:entities.communication.plural',
20
+ icon: 'fa-light fa-envelope',
21
+ },
22
+ communicationDelivery: {
23
+ name: 'CommunicationDeliveries',
24
+ title: '@communication-management:entities.communication-delivery.title',
25
+ titlePlural: '@communication-management:entities.communication-delivery.plural',
26
+ icon: 'fa-light fa-truck-fast',
27
+ },
28
+ entityChangeNotifyPolicy: {
29
+ name: 'EntityChangeNotifyPolicy',
30
+ title: '@communication-management:entities.entity-change-notify-policy.title',
31
+ titlePlural: '@communication-management:entities.entity-change-notify-policy.plural',
32
+ icon: 'fa-light fa-bell-on',
33
+ },
34
+ },
35
+ widgets: {
36
+ myInAppInboxDashboard: dashboardWidgetId('MyInAppInboxDashboard'),
37
+ },
38
+ queries: {
39
+ dashboard: {
40
+ deliveryStatusDonut: 'CommunicationManagement:Dashboard:DeliveryStatusDonut',
41
+ },
42
+ },
43
+ };
44
+ const COMMUNICATION_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communication.name}`;
45
+ const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`;
46
+ const ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.entityChangeNotifyPolicy.name}`;
47
+ const ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY = 'communication-management';
48
+ const DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS = 60;
49
+ /** Namespace for {@link tenantMasterId} when cloning notify policies per tenant. */
50
+ const ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE = 'communication';
51
+
52
+ //#region ----- Entity change notify policy factory -----
53
+ const I18N = `@${RootConfig.config.i18n}:entities.entity-change-notify-policy`;
54
+ const listOptions = {
55
+ filter: { inline: { enabled: true }, advance: { enabled: true } },
56
+ sort: { enabled: true },
57
+ };
58
+ async function entityChangeNotifyPolicyEntityFactory() {
59
+ return {
60
+ module: RootConfig.module.name,
61
+ name: RootConfig.entities.entityChangeNotifyPolicy.name,
62
+ title: RootConfig.entities.entityChangeNotifyPolicy.title,
63
+ icon: RootConfig.entities.entityChangeNotifyPolicy.icon,
64
+ searchTags: [
65
+ 'entity-change',
66
+ 'change-notification',
67
+ 'staff-history',
68
+ 'user-history',
69
+ 'profile-change',
70
+ 'audit-email',
71
+ 'notify',
72
+ 'اعلان تغییر',
73
+ 'تاریخچه پرسنل',
74
+ 'تاریخچه کاربر',
75
+ ],
76
+ plugins: [{ name: 'history' }],
77
+ formats: {
78
+ individual: RootConfig.entities.entityChangeNotifyPolicy.title,
79
+ plural: RootConfig.entities.entityChangeNotifyPolicy.titlePlural,
80
+ searchResult: {
81
+ title: '{{ title || name }}',
82
+ description: '{{ entityName }}',
83
+ },
84
+ },
85
+ groups: [
86
+ { id: 'general', title: '@general:terms.interface.basic-info' },
87
+ { id: 'routing', title: `${I18N}.groups.routing` },
88
+ ],
89
+ properties: [
90
+ {
91
+ name: 'name',
92
+ title: `${I18N}.fields.name`,
93
+ groupId: 'general',
94
+ options: listOptions,
95
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
96
+ validations: [{ rule: 'required' }],
97
+ },
98
+ {
99
+ name: 'title',
100
+ title: '@general:terms.common.title',
101
+ groupId: 'general',
102
+ options: listOptions,
103
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
104
+ },
105
+ {
106
+ name: 'enabled',
107
+ title: `${I18N}.fields.enabled`,
108
+ groupId: 'general',
109
+ options: listOptions,
110
+ schema: {
111
+ dataType: 'boolean',
112
+ defaultValue: true,
113
+ interface: { type: AXPWidgetsCatalog.toggle },
114
+ },
115
+ },
116
+ {
117
+ name: 'entityName',
118
+ title: `${I18N}.fields.entity-name`,
119
+ groupId: 'general',
120
+ options: listOptions,
121
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
122
+ validations: [{ rule: 'required' }],
123
+ },
124
+ {
125
+ name: 'related',
126
+ title: `${I18N}.fields.related`,
127
+ groupId: 'general',
128
+ schema: { dataType: 'object', interface: { type: 'json' } },
129
+ },
130
+ {
131
+ name: 'includeFields',
132
+ title: `${I18N}.fields.include-fields`,
133
+ groupId: 'general',
134
+ schema: { dataType: 'object', interface: { type: 'json' } },
135
+ },
136
+ {
137
+ name: 'excludeFields',
138
+ title: `${I18N}.fields.exclude-fields`,
139
+ groupId: 'general',
140
+ schema: { dataType: 'object', interface: { type: 'json' } },
141
+ },
142
+ {
143
+ name: 'debounceSeconds',
144
+ title: `${I18N}.fields.debounce-seconds`,
145
+ groupId: 'routing',
146
+ schema: {
147
+ dataType: 'number',
148
+ defaultValue: 60,
149
+ interface: { type: AXPWidgetsCatalog.number },
150
+ },
151
+ },
152
+ {
153
+ name: 'templateId',
154
+ title: `${I18N}.fields.template-id`,
155
+ groupId: 'routing',
156
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
157
+ validations: [{ rule: 'required' }],
158
+ },
159
+ {
160
+ name: 'recipientRoleNames',
161
+ title: `${I18N}.fields.recipient-role-names`,
162
+ groupId: 'routing',
163
+ schema: { dataType: 'object', interface: { type: 'json' } },
164
+ },
165
+ {
166
+ name: 'channels',
167
+ title: `${I18N}.fields.channels`,
168
+ groupId: 'routing',
169
+ schema: { dataType: 'object', interface: { type: 'json' } },
170
+ },
171
+ ],
172
+ columns: [
173
+ { name: 'name', options: { width: '180px' } },
174
+ { name: 'title', options: { width: '200px' } },
175
+ { name: 'entityName', options: { width: '260px' } },
176
+ { name: 'enabled', options: { width: '100px' } },
177
+ ],
178
+ interfaces: {
179
+ master: {
180
+ list: {
181
+ actions: [...entityMasterCrudActions()],
182
+ views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
183
+ },
184
+ },
185
+ },
186
+ };
187
+ }
188
+ //#endregion
189
+
190
+ /**
191
+ * Generated bundle index. Do not edit.
192
+ */
193
+
194
+ export { entityChangeNotifyPolicyEntityFactory };
195
+ //# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/root-config.ts","../../../../libs/modules/communication-management/contracts/src/entities/entity-change-notify-policy/entity-change-notify-policy.entity.ts","../../../../libs/modules/communication-management/contracts/src/acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.ts"],"sourcesContent":["const config = {\n i18n: 'communication-management',\n};\n\nconst dashboardWidgetId = (segment: string): string =>\n `CommunicationManagement:Widget:Dashboard:${segment}`;\n\nexport const RootConfig = {\n config,\n module: {\n name: 'CommunicationManagement',\n title: '@communication-management:module.title',\n icon: 'fa-light fa-paper-plane',\n },\n entities: {\n communication: {\n name: 'Communications',\n title: '@communication-management:entities.communication.title',\n titlePlural: '@communication-management:entities.communication.plural',\n icon: 'fa-light fa-envelope',\n },\n communicationDelivery: {\n name: 'CommunicationDeliveries',\n title: '@communication-management:entities.communication-delivery.title',\n titlePlural: '@communication-management:entities.communication-delivery.plural',\n icon: 'fa-light fa-truck-fast',\n },\n entityChangeNotifyPolicy: {\n name: 'EntityChangeNotifyPolicy',\n title: '@communication-management:entities.entity-change-notify-policy.title',\n titlePlural: '@communication-management:entities.entity-change-notify-policy.plural',\n icon: 'fa-light fa-bell-on',\n },\n },\n widgets: {\n myInAppInboxDashboard: dashboardWidgetId('MyInAppInboxDashboard'),\n },\n queries: {\n dashboard: {\n deliveryStatusDonut: 'CommunicationManagement:Dashboard:DeliveryStatusDonut',\n },\n },\n} as const;\n\nexport const COMMUNICATION_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communication.name}`;\nexport const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`;\nexport const ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.entityChangeNotifyPolicy.name}`;\nexport const ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY = 'communication-management';\nexport const DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS = 60;\n/** Namespace for {@link tenantMasterId} when cloning notify policies per tenant. */\nexport const ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE = 'communication' as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ----- Entity change notify policy factory -----\n\nconst I18N = `@${RootConfig.config.i18n}:entities.entity-change-notify-policy`;\n\nconst listOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nexport async function entityChangeNotifyPolicyEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.entityChangeNotifyPolicy.name,\n title: RootConfig.entities.entityChangeNotifyPolicy.title,\n icon: RootConfig.entities.entityChangeNotifyPolicy.icon,\n searchTags: [\n 'entity-change',\n 'change-notification',\n 'staff-history',\n 'user-history',\n 'profile-change',\n 'audit-email',\n 'notify',\n 'اعلان تغییر',\n 'تاریخچه پرسنل',\n 'تاریخچه کاربر',\n ],\n plugins: [{ name: 'history' }],\n formats: {\n individual: RootConfig.entities.entityChangeNotifyPolicy.title,\n plural: RootConfig.entities.entityChangeNotifyPolicy.titlePlural,\n searchResult: {\n title: '{{ title || name }}',\n description: '{{ entityName }}',\n },\n },\n groups: [\n { id: 'general', title: '@general:terms.interface.basic-info' },\n { id: 'routing', title: `${I18N}.groups.routing` },\n ],\n properties: [\n {\n name: 'name',\n title: `${I18N}.fields.name`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'enabled',\n title: `${I18N}.fields.enabled`,\n groupId: 'general',\n options: listOptions,\n schema: {\n dataType: 'boolean',\n defaultValue: true,\n interface: { type: AXPWidgetsCatalog.toggle },\n },\n },\n {\n name: 'entityName',\n title: `${I18N}.fields.entity-name`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'related',\n title: `${I18N}.fields.related`,\n groupId: 'general',\n schema: { dataType: 'object', interface: { type: 'json' } },\n },\n {\n name: 'includeFields',\n title: `${I18N}.fields.include-fields`,\n groupId: 'general',\n schema: { dataType: 'object', interface: { type: 'json' } },\n },\n {\n name: 'excludeFields',\n title: `${I18N}.fields.exclude-fields`,\n groupId: 'general',\n schema: { dataType: 'object', interface: { type: 'json' } },\n },\n {\n name: 'debounceSeconds',\n title: `${I18N}.fields.debounce-seconds`,\n groupId: 'routing',\n schema: {\n dataType: 'number',\n defaultValue: 60,\n interface: { type: AXPWidgetsCatalog.number },\n },\n },\n {\n name: 'templateId',\n title: `${I18N}.fields.template-id`,\n groupId: 'routing',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'recipientRoleNames',\n title: `${I18N}.fields.recipient-role-names`,\n groupId: 'routing',\n schema: { dataType: 'object', interface: { type: 'json' } },\n },\n {\n name: 'channels',\n title: `${I18N}.fields.channels`,\n groupId: 'routing',\n schema: { dataType: 'object', interface: { type: 'json' } },\n },\n ],\n columns: [\n { name: 'name', options: { width: '180px' } },\n { name: 'title', options: { width: '200px' } },\n { name: 'entityName', options: { width: '260px' } },\n { name: 'enabled', options: { width: '100px' } },\n ],\n interfaces: {\n master: {\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.entity-change-notify-policy';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;CACjC;AAED,MAAM,iBAAiB,GAAG,CAAC,OAAe,KACxC,CAAA,yCAAA,EAA4C,OAAO,CAAA,CAAE;AAEhD,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,yBAAyB;AAC/B,QAAA,KAAK,EAAE,wCAAwC;AAC/C,QAAA,IAAI,EAAE,yBAAyB;AAChC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,KAAK,EAAE,wDAAwD;AAC/D,YAAA,WAAW,EAAE,yDAAyD;AACtE,YAAA,IAAI,EAAE,sBAAsB;AAC7B,SAAA;AACD,QAAA,qBAAqB,EAAE;AACrB,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,KAAK,EAAE,iEAAiE;AACxE,YAAA,WAAW,EAAE,kEAAkE;AAC/E,YAAA,IAAI,EAAE,wBAAwB;AAC/B,SAAA;AACD,QAAA,wBAAwB,EAAE;AACxB,YAAA,IAAI,EAAE,0BAA0B;AAChC,YAAA,KAAK,EAAE,sEAAsE;AAC7E,YAAA,WAAW,EAAE,uEAAuE;AACpF,YAAA,IAAI,EAAE,qBAAqB;AAC5B,SAAA;AACF,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,qBAAqB,EAAE,iBAAiB,CAAC,uBAAuB,C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MAAM,EAAE,EAAE;AAC5D,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,gBAAA,CAAkB;AAChC,gBAAA,OAAO,EAAE,SAAS;AAClB,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;AAC5D,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC7C,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC9C,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YACnD,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;AACjD,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;AChJA;;AAEG;;"}
@@ -22,6 +22,12 @@ const RootConfig = {
22
22
  titlePlural: '@communication-management:entities.communication-delivery.plural',
23
23
  icon: 'fa-light fa-truck-fast',
24
24
  },
25
+ entityChangeNotifyPolicy: {
26
+ name: 'EntityChangeNotifyPolicy',
27
+ title: '@communication-management:entities.entity-change-notify-policy.title',
28
+ titlePlural: '@communication-management:entities.entity-change-notify-policy.plural',
29
+ icon: 'fa-light fa-bell-on',
30
+ },
25
31
  },
26
32
  widgets: {
27
33
  myInAppInboxDashboard: dashboardWidgetId('MyInAppInboxDashboard'),
@@ -34,6 +40,11 @@ const RootConfig = {
34
40
  };
35
41
  const COMMUNICATION_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communication.name}`;
36
42
  const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`;
43
+ const ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.entityChangeNotifyPolicy.name}`;
44
+ const ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY = 'communication-management';
45
+ const DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS = 60;
46
+ /** Namespace for {@link tenantMasterId} when cloning notify policies per tenant. */
47
+ const ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE = 'communication';
37
48
 
38
49
  //#region ----- Imports -----
39
50
  //#endregion
@@ -46,8 +57,9 @@ const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConf
46
57
  const communicationManagementLocalEntityCatalog = {
47
58
  moduleName: RootConfig.module.name,
48
59
  loaders: {
49
- [RootConfig.entities.communication.name]: () => import('./acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-DGj9OD3Z.mjs').then((m) => m.communicationEntityFactory()),
50
- [RootConfig.entities.communicationDelivery.name]: () => import('./acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DPCU8P32.mjs').then((m) => m.communicationDeliveryEntityFactory()),
60
+ [RootConfig.entities.communication.name]: () => import('./acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-BAa4oCXu.mjs').then((m) => m.communicationEntityFactory()),
61
+ [RootConfig.entities.communicationDelivery.name]: () => import('./acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DN0_CPBO.mjs').then((m) => m.communicationDeliveryEntityFactory()),
62
+ [RootConfig.entities.entityChangeNotifyPolicy.name]: () => import('./acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-DmM894ok.mjs').then((m) => m.entityChangeNotifyPolicyEntityFactory()),
51
63
  },
52
64
  };
53
65
  //#endregion
@@ -57,4 +69,4 @@ const communicationManagementLocalEntityCatalog = {
57
69
  */
58
70
 
59
71
  export { RootConfig as R, communicationManagementLocalEntityCatalog as c };
60
- //# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-BvLoGDK5.mjs.map
72
+ //# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DTHjzWFn.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DTHjzWFn.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/root-config.ts","../../../../libs/modules/communication-management/contracts/src/entity-catalog.ts","../../../../libs/modules/communication-management/contracts/src/acorex-platform-module-communication-management-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'communication-management',\n};\n\nconst dashboardWidgetId = (segment: string): string =>\n `CommunicationManagement:Widget:Dashboard:${segment}`;\n\nexport const RootConfig = {\n config,\n module: {\n name: 'CommunicationManagement',\n title: '@communication-management:module.title',\n icon: 'fa-light fa-paper-plane',\n },\n entities: {\n communication: {\n name: 'Communications',\n title: '@communication-management:entities.communication.title',\n titlePlural: '@communication-management:entities.communication.plural',\n icon: 'fa-light fa-envelope',\n },\n communicationDelivery: {\n name: 'CommunicationDeliveries',\n title: '@communication-management:entities.communication-delivery.title',\n titlePlural: '@communication-management:entities.communication-delivery.plural',\n icon: 'fa-light fa-truck-fast',\n },\n entityChangeNotifyPolicy: {\n name: 'EntityChangeNotifyPolicy',\n title: '@communication-management:entities.entity-change-notify-policy.title',\n titlePlural: '@communication-management:entities.entity-change-notify-policy.plural',\n icon: 'fa-light fa-bell-on',\n },\n },\n widgets: {\n myInAppInboxDashboard: dashboardWidgetId('MyInAppInboxDashboard'),\n },\n queries: {\n dashboard: {\n deliveryStatusDonut: 'CommunicationManagement:Dashboard:DeliveryStatusDonut',\n },\n },\n} as const;\n\nexport const COMMUNICATION_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communication.name}`;\nexport const COMMUNICATION_DELIVERY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.communicationDelivery.name}`;\nexport const ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME = `${RootConfig.module.name}.${RootConfig.entities.entityChangeNotifyPolicy.name}`;\nexport const ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY = 'communication-management';\nexport const DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS = 60;\n/** Namespace for {@link tenantMasterId} when cloning notify policies per tenant. */\nexport const ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE = 'communication' as const;\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const communicationManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.communication.name]: () =>\n import('./entities/communication/communication.entity.js').then((m) => m.communicationEntityFactory()),\n [RootConfig.entities.communicationDelivery.name]: () =>\n import('./entities/communication-delivery/communication-delivery.entity.js').then((m) => m.communicationDeliveryEntityFactory()),\n [RootConfig.entities.entityChangeNotifyPolicy.name]: () =>\n import('./entities/entity-change-notify-policy/entity-change-notify-policy.entity.js').then(\n (m) => m.entityChangeNotifyPolicyEntityFactory(),\n ),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;CACjC;AAED,MAAM,iBAAiB,GAAG,CAAC,OAAe,KACxC,CAAA,yCAAA,EAA4C,OAAO,CAAA,CAAE;AAEhD,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,yBAAyB;AAC/B,QAAA,KAAK,EAAE,wCAAwC;AAC/C,QAAA,IAAI,EAAE,yBAAyB;AAChC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,KAAK,EAAE,wDAAwD;AAC/D,YAAA,WAAW,EAAE,yDAAyD;AACtE,YAAA,IAAI,EAAE,sBAAsB;AAC7B,SAAA;AACD,QAAA,qBAAqB,EAAE;AACrB,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,KAAK,EAAE,iEAAiE;AACxE,YAAA,WAAW,EAAE,kEAAkE;AAC/E,YAAA,IAAI,EAAE,wBAAwB;AAC/B,SAAA;AACD,QAAA,wBAAwB,EAAE;AACxB,YAAA,IAAI,EAAE,0BAA0B;AAChC,YAAA,KAAK,EAAE,sEAAsE;AAC7E,YAAA,WAAW,EAAE,uEAAuE;AACpF,YAAA,IAAI,EAAE,qBAAqB;AAC5B,SAAA;AACF,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,qBAAqB,EAAE,iBAAiB,CAAC,uBAAuB,CAAC;AAClE,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,SAAS,EAAE;AACT,YAAA,mBAAmB,EAAE,uDAAuD;AAC7E,SAAA;AACF,KAAA;;AAGI,MAAM,yBAAyB,GAAG,CAAA,EAAG,UAAU,CAAC,M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rudActions } from '@acorex-platform/framework-shared/entity';
3
3
  import { a as AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY } from './acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-JESc4HlO.mjs';
4
- import { R as RootConfig } from './acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-BvLoGDK5.mjs';
4
+ import { R as RootConfig } from './acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DTHjzWFn.mjs';
5
5
 
6
6
  const listOptions = {
7
7
  filter: { inline: { enabled: true }, advance: { enabled: true } },
@@ -14,6 +14,20 @@ async function communicationDeliveryEntityFactory() {
14
14
  name: RootConfig.entities.communicationDelivery.name,
15
15
  title: RootConfig.entities.communicationDelivery.title,
16
16
  icon: RootConfig.entities.communicationDelivery.icon,
17
+ searchTags: [
18
+ 'communication-delivery',
19
+ 'delivery',
20
+ 'delivery-tracking',
21
+ 'sent',
22
+ 'delivered',
23
+ 'read-receipt',
24
+ 'channel-delivery',
25
+ 'recipient-address',
26
+ 'تحویل',
27
+ 'تحویل‌ها',
28
+ 'ردیابی تحویل',
29
+ 'کانال',
30
+ ],
17
31
  plugins: [
18
32
  {
19
33
  name: 'status',
@@ -180,4 +194,4 @@ async function communicationDeliveryEntityFactory() {
180
194
  }
181
195
 
182
196
  export { communicationDeliveryEntityFactory };
183
- //# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DPCU8P32.mjs.map
197
+ //# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DN0_CPBO.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DN0_CPBO.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/entities/communication-delivery/communication-delivery.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY } from '../../status.keys';\nimport { RootConfig } from '../../root-config';\n\nconst listOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nexport async function communicationDeliveryEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.communicationDelivery.name,\n title: RootConfig.entities.communicationDelivery.title,\n icon: RootConfig.entities.communicationDelivery.icon,\n searchTags: [\n 'communication-delivery',\n 'delivery',\n 'delivery-tracking',\n 'sent',\n 'delivered',\n 'read-receipt',\n 'channel-delivery',\n 'recipient-address',\n 'تحویل',\n 'تحویل‌ها',\n 'ردیابی تحویل',\n 'کانال',\n ],\n plugins: [\n {\n name: 'status',\n options: {\n field: 'status',\n definition: AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY,\n showInCreate: false,\n readonly: true,\n generate: { views: { enabled: true } },\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.communicationDelivery.title,\n plural: RootConfig.entities.communicationDelivery.titlePlural,\n searchResult: {\n title: '{{ channel }} — {{ recipientAddress }}',\n description: '{{ status }}',\n },\n },\n columns: [\n { name: 'communicationId', options: { width: '180px' } },\n { name: 'channel', options: { width: '120px' } },\n { name: 'recipientAddress', options: { width: '200px' } },\n { name: 'sentAt', options: { width: '170px' } },\n { name: 'deliveredAt', options: { width: '170px' } },\n ],\n groups: [\n { id: 'general', title: '@general:terms.interface.basic-info' },\n { id: 'tracking', title: `@${i18n}:entities.communication-delivery.groups.tracking` },\n { id: 'timeline', title: `@${i18n}:entities.communication-delivery.groups.timeline` },\n ],\n properties: [\n {\n name: 'communicationId',\n title: `@${i18n}:entities.communication-delivery.fields.communication-id`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'channel',\n title: `@${i18n}:entities.communication-delivery.fields.channel`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'providerKey',\n title: `@${i18n}:entities.communication-delivery.fields.provider-key`,\n groupId: 'general',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'recipientUserId',\n title: `@${i18n}:entities.communication-delivery.fields.recipient-user-id`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'recipientAddress',\n title: `@${i18n}:entities.communication-delivery.fields.recipient-address`,\n groupId: 'general',\n options: listOptions,\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'providerMessageId',\n title: `@${i18n}:entities.communication-delivery.fields.provider-message-id`,\n groupId: 'tracking',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'sentAt',\n title: `@${i18n}:entities.communication-delivery.fields.sent-at`,\n groupId: 'tracking',\n options: listOptions,\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'deliveredAt',\n title: `@${i18n}:entities.communication-delivery.fields.delivered-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'seenAt',\n title: `@${i18n}:entities.communication-delivery.fields.seen-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'readAt',\n title: `@${i18n}:entities.communication-delivery.fields.read-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'isPinned',\n title: `@${i18n}:entities.communication-delivery.fields.is-pinned`,\n groupId: 'tracking',\n schema: { dataType: 'boolean', readonly: true, interface: { type: AXPWidgetsCatalog.toggle } },\n },\n {\n name: 'archivedAt',\n title: `@${i18n}:entities.communication-delivery.fields.archived-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'repliedAt',\n title: `@${i18n}:entities.communication-delivery.fields.replied-at`,\n groupId: 'tracking',\n schema: { dataType: 'date', readonly: true, interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'timelineSummary',\n title: `@${i18n}:entities.communication-delivery.fields.timeline-summary`,\n groupId: 'timeline',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.largeText },\n },\n },\n ],\n interfaces: {\n master: {\n // Empty create/update keeps deliveries view-only (engine creates records).\n create: {\n sections: [],\n properties: [],\n },\n update: {\n sections: [],\n properties: [],\n },\n single: {\n title: '{{ channel }} — {{ recipientAddress }}',\n sections: [{ id: 'general' }, { id: 'tracking' }, { id: 'timeline' }],\n properties: [\n { name: 'communicationId' },\n { name: 'channel' },\n { name: 'providerKey' },\n { name: 'recipientAddress' },\n { name: 'providerMessageId' },\n { name: 'sentAt' },\n { name: 'deliveredAt' },\n { name: 'seenAt' },\n { name: 'readAt' },\n { name: 'repliedAt' },\n { name: 'timelineSummary' },\n ],\n actions: [],\n },\n list: {\n actions: [...entityMasterCrudActions({ create: false, delete: false, edit: false, view: true })],\n views: [createAllQueryView()],\n },\n },\n },\n };\n}\n"],"names":[],"mappings":";;;;;AASA,MAAM,WAAW,GAAG;AAClB,IAAA,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;AACjE,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;CACxB;AAEM,eAAe,kCAAkC,GAAA;AACtD,IA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