@acorex-platform/module-communication-management-client 1.0.1 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-j4HNwZEj.mjs → acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-Byqo1BAL.mjs} +381 -226
- package/fesm2022/acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-Byqo1BAL.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-send.command-BwdbP0wm.mjs → acorex-platform-module-communication-management-client-communication-email-send.command-DjOOsW25.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-send.command-BwdbP0wm.mjs.map → acorex-platform-module-communication-management-client-communication-email-send.command-DjOOsW25.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-show-dialog.command-D63L_w8I.mjs → acorex-platform-module-communication-management-client-communication-email-show-dialog.command-CNgMVOFx.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-show-dialog.command-D63L_w8I.mjs.map → acorex-platform-module-communication-management-client-communication-email-show-dialog.command-CNgMVOFx.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-DGnr-vVQ.mjs → acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-Bk5Zx0GW.mjs} +13 -3
- package/fesm2022/acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-Bk5Zx0GW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-send.command-DtGeXWNS.mjs → acorex-platform-module-communication-management-client-communication-send.command-D7TIw1-P.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-send.command-DtGeXWNS.mjs.map → acorex-platform-module-communication-management-client-communication-send.command-D7TIw1-P.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-show-sent-message.command-D9KRxkdp.mjs → acorex-platform-module-communication-management-client-communication-show-sent-message.command-BhsqhXKA.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-show-sent-message.command-D9KRxkdp.mjs.map → acorex-platform-module-communication-management-client-communication-show-sent-message.command-BhsqhXKA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-test-smtp.command-nZH0GlLw.mjs → acorex-platform-module-communication-management-client-communication-test-smtp.command-BN0gkpAr.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-communication-management-client-communication-test-smtp.command-nZH0GlLw.mjs.map → acorex-platform-module-communication-management-client-communication-test-smtp.command-BN0gkpAr.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication-delivery.mjs +4 -2
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication-delivery.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication.mjs +4 -0
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.mjs +1 -1
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DTHjzWFn.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DAS2LKJ2.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DTHjzWFn.mjs.map → acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DAS2LKJ2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DN0_CPBO.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-CNgzUWFa.mjs} +7 -5
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-CNgzUWFa.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-BAa4oCXu.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-DM-x4id2.mjs} +7 -3
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-DM-x4id2.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-DmM894ok.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-Ls-F3qVM.mjs} +3 -3
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-Ls-F3qVM.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-JESc4HlO.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-DBsqvhwD.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-JESc4HlO.mjs.map → acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-DBsqvhwD.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-communication-management-client-contracts.mjs +49 -2
- package/fesm2022/acorex-platform-module-communication-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-communication-management-client.mjs +1 -1
- package/i18n/en-AU/communication-management.json +3 -1
- package/i18n/en-US/communication-management.json +3 -1
- package/i18n/fa-IR/communication-management.json +3 -1
- package/package.json +3 -3
- package/types/acorex-platform-module-communication-management-client-contracts.d.ts +43 -4
- package/types/acorex-platform-module-communication-management-client.d.ts +33 -5
- package/fesm2022/acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-j4HNwZEj.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-DGnr-vVQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DN0_CPBO.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-BAa4oCXu.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-DmM894ok.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-DM-x4id2.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/commands.keys.ts","../../../../libs/modules/communication-management/contracts/src/entities/communication/communication.entity.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","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 { name: 'appearance', title: 'Notification appearance', groupId: 'general',\n schema: { dataType: 'object', nullable: true, readonly: true, visible: false } },\n { name: 'attachments', title: '@general:widgets.file-uploader.attachments.title', groupId: 'general',\n schema: { dataType: 'array', nullable: true, readonly: true, visible: false } },\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"],"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;;ACKA,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;AAED,MAAM,oBAAoB,GAAG,CAAC,IAAY,MACvC;IACC,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,6CAAA,CAA+C;AAC9D,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,IAAI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AACD,oBAAA,KAAK,EAAE,CAAC,kBAAkB,EAAE,CAAC;AAC9B,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DAS2LKJ2.mjs';
|
|
4
4
|
|
|
5
5
|
//#region ----- Entity change notify policy factory -----
|
|
6
6
|
const I18N = `@${RootConfig.config.i18n}:entities.entity-change-notify-policy`;
|
|
@@ -106,7 +106,7 @@ async function entityChangeNotifyPolicyEntityFactory() {
|
|
|
106
106
|
name: 'templateId',
|
|
107
107
|
title: `${I18N}.fields.template-id`,
|
|
108
108
|
groupId: 'routing',
|
|
109
|
-
schema: { dataType: '
|
|
109
|
+
schema: { dataType: 'reference', interface: { type: AXPWidgetsCatalog.text } },
|
|
110
110
|
validations: [{ rule: 'required' }],
|
|
111
111
|
},
|
|
112
112
|
{
|
|
@@ -141,4 +141,4 @@ async function entityChangeNotifyPolicyEntityFactory() {
|
|
|
141
141
|
//#endregion
|
|
142
142
|
|
|
143
143
|
export { entityChangeNotifyPolicyEntityFactory };
|
|
144
|
-
//# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-
|
|
144
|
+
//# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-Ls-F3qVM.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-Ls-F3qVM.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/entities/entity-change-notify-policy/entity-change-notify-policy.entity.ts"],"sourcesContent":["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: 'reference', 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"],"names":[],"mappings":";;;;AAIA;AAEA,MAAM,IAAI,GAAG,CAAA,CAAA,EAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,qCAAA,CAAuC;AAE9E,MAAM,WAAW,GAAG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BAAuB,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;;"}
|
|
@@ -12,4 +12,4 @@ const AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED = 'Delivered';
|
|
|
12
12
|
//#endregion
|
|
13
13
|
|
|
14
14
|
export { AXP_COMMUNICATION_STATUS_DEFINITION_KEY as A, AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY as a };
|
|
15
|
-
//# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-
|
|
15
|
+
//# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-DBsqvhwD.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-DBsqvhwD.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/status.keys.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"],"names":[],"mappings":"AAAA;AAEA;AACO,MAAM,uCAAuC,GAAG;AAEvD;AACO,MAAM,gDAAgD,GAC3D;AAEK,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;;"}
|
package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { c as communicationManagementLocalEntityCatalog } from './acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-
|
|
1
|
+
export { c as communicationManagementLocalEntityCatalog } from './acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DAS2LKJ2.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-communication-management-client-contracts-entity-catalog.mjs.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { axpRegisterDataExecutionCapabilities } from '@acorex-platform/framework-shared/runtime';
|
|
2
|
+
|
|
1
3
|
//#endregion
|
|
2
4
|
|
|
3
5
|
//#region ---- Channel adapter registration ----
|
|
@@ -18,6 +20,7 @@ const BUILTIN_CHANNEL_DEFINITIONS = [
|
|
|
18
20
|
title: 'In-App',
|
|
19
21
|
builtIn: true,
|
|
20
22
|
capabilities: {
|
|
23
|
+
attachments: true,
|
|
21
24
|
deliveryConfirmation: true,
|
|
22
25
|
deliveryReceipt: true,
|
|
23
26
|
seenTracking: true,
|
|
@@ -31,6 +34,7 @@ const BUILTIN_CHANNEL_DEFINITIONS = [
|
|
|
31
34
|
title: 'Email (SMTP)',
|
|
32
35
|
builtIn: true,
|
|
33
36
|
capabilities: {
|
|
37
|
+
attachments: true,
|
|
34
38
|
deliveryConfirmation: true,
|
|
35
39
|
deliveryReceipt: false,
|
|
36
40
|
seenTracking: false,
|
|
@@ -81,6 +85,8 @@ const AXMCommunicationManagementCommandKeys = {
|
|
|
81
85
|
//#endregion
|
|
82
86
|
|
|
83
87
|
//#region ---- Communication domain types ----
|
|
88
|
+
const HEALTH_RECORD_REMINDER_COMMUNICATION_KEY = 'health-record-reminder';
|
|
89
|
+
const OVERDUE_TASK_DIGEST_COMMUNICATION_KEY = 'overdue-task-digest';
|
|
84
90
|
//#endregion
|
|
85
91
|
|
|
86
92
|
//#region ---- Communication message helpers ----
|
|
@@ -106,6 +112,17 @@ function resolveCommunicationMessage(communication, fallbackTitle = 'Message') {
|
|
|
106
112
|
}
|
|
107
113
|
//#endregion
|
|
108
114
|
|
|
115
|
+
/** Template channels determine delivery; layout-only channels such as print are excluded. */
|
|
116
|
+
function communicationTemplateChannels(channels) {
|
|
117
|
+
return Object.entries(channels ?? {}).flatMap(([templateChannel, value]) => {
|
|
118
|
+
const communicationChannel = templateChannel === 'email' ? 'email-smtp' : templateChannel;
|
|
119
|
+
const body = value?.body;
|
|
120
|
+
const hasBody = typeof body === 'string' ? !!body.trim() : !!body && typeof body === 'object'
|
|
121
|
+
&& Object.values(body).some(text => typeof text === 'string' && !!text.trim());
|
|
122
|
+
return hasBody && getCommunicationChannel(communicationChannel) ? [{ templateChannel, communicationChannel }] : [];
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
109
126
|
//#region ---- Communication delivery job title helpers ----
|
|
110
127
|
function resolveCommunicationRecipientLabel(input) {
|
|
111
128
|
const name = input.recipientName?.trim();
|
|
@@ -151,7 +168,7 @@ const AXPCollaborationPermissionKeys = {
|
|
|
151
168
|
MaintainMeetings: 'Collaboration:Permission:MaintainMeetings',
|
|
152
169
|
MaintainCalendars: 'Collaboration:Permission:MaintainCalendars',
|
|
153
170
|
MaintainCommunications: 'Collaboration:Permission:MaintainCommunications',
|
|
154
|
-
|
|
171
|
+
MaintainBookings: 'Collaboration:Permission:MaintainBookings',
|
|
155
172
|
MaintainHelpDesk: 'Collaboration:Permission:MaintainHelpDesk',
|
|
156
173
|
Setup: 'Collaboration:Permission:Setup',
|
|
157
174
|
};
|
|
@@ -298,9 +315,39 @@ const AXP_COMMUNICATION_DELIVERY_STATUS_PENDING = 'Pending';
|
|
|
298
315
|
const AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED = 'Delivered';
|
|
299
316
|
//#endregion
|
|
300
317
|
|
|
318
|
+
const operations = ['markSeen', 'markRead', 'markAllRead', 'togglePin', 'archive', 'delete'];
|
|
319
|
+
const fields = ['id', 'title', 'body', 'createdAt', 'seenAt', 'readAt', 'sender', 'iconClass', 'iconColor', 'showAvatar', 'priority', 'isPinned', 'category', 'definitionKey', 'correlationId', 'recipientUserId', 'archivedAt', 'actions', 'attachments'];
|
|
320
|
+
const AXP_IN_APP_INBOX_SCENARIO = 'notifications.active';
|
|
321
|
+
const AXP_IN_APP_INBOX_UNREAD_QUERY = 'CommunicationManagement:Inbox:UnreadCount';
|
|
322
|
+
/** Persisted Profile template; the scenario belongs to its Assignment. */
|
|
323
|
+
const AXP_IN_APP_INBOX_EXECUTION_CONFIG = {
|
|
324
|
+
read: { strategy: 'cache-first', offlineFallback: 'stale-cache' },
|
|
325
|
+
clientCache: { kind: 'indexed-db', maxItems: 100, maxAgeMs: 86400000, maxBytes: 10 * 1024 * 1024, fields, ttlMs: 30000 },
|
|
326
|
+
freshness: { realtime: 'refetch-cached', debounceMs: 100 },
|
|
327
|
+
write: { mode: 'offline-queue', conflict: 'server-wins', contractKey: 'inbox-engagement-desired-state-v1' },
|
|
328
|
+
sync: { startup: 'revalidate-working-set', reconnect: 'revalidate-working-set', offlineValidityMs: 86400000, maxAttempts: 5, retryBaseMs: 1000 },
|
|
329
|
+
};
|
|
330
|
+
const AXP_IN_APP_INBOX_UNREAD_CONFIG = {
|
|
331
|
+
read: { strategy: 'cache-first', offlineFallback: 'stale-cache' },
|
|
332
|
+
clientCache: { kind: 'indexed-db', ttlMs: 30000, maxAgeMs: 86400000, maxItems: 1, maxBytes: 1024, fields: ['count', 'capturedAt'] },
|
|
333
|
+
sync: { offlineValidityMs: 86400000 },
|
|
334
|
+
};
|
|
335
|
+
axpRegisterDataExecutionCapabilities({ targetKind: 'Query', targetKey: AXP_IN_APP_INBOX_UNREAD_QUERY, revision: 'inbox-count-v1', operations: ['read'], clientCache: { storageKinds: ['memory', 'indexed-db'], allowedFields: ['count', 'capturedAt'], maxItems: 1, maxBytes: 1024, maxAgeMs: 86400000, allowOfflineRead: true } });
|
|
336
|
+
const AXP_IN_APP_INBOX_DATA_CAPABILITIES = {
|
|
337
|
+
entityName: 'CommunicationManagement.InAppInbox',
|
|
338
|
+
revision: 'inbox-v5',
|
|
339
|
+
defaultScenarioKey: AXP_IN_APP_INBOX_SCENARIO,
|
|
340
|
+
defaults: { enabled: false },
|
|
341
|
+
cache: { storageKinds: ['memory', 'indexed-db'], allowedFields: fields, maxItems: 100, maxAgeMs: 86400000, allowOfflineRead: true },
|
|
342
|
+
mutationSignals: true,
|
|
343
|
+
workingSetHandlers: [{ key: 'active-inbox', revision: '1' }],
|
|
344
|
+
dependencyHandlers: [],
|
|
345
|
+
offlineOperationHandlers: operations.map((key) => ({ key, replayHandlerKey: `CommunicationManagement:ReplayInbox:${key}`, idempotencyContractKey: 'inbox-engagement-desired-state-v1', supportedConflicts: ['server-wins'] })),
|
|
346
|
+
};
|
|
347
|
+
|
|
301
348
|
/**
|
|
302
349
|
* Generated bundle index. Do not edit.
|
|
303
350
|
*/
|
|
304
351
|
|
|
305
|
-
export { AXMCommunicationManagementCommandKeys, AXMCommunicationManagementMenuKeys, AXMCommunicationManagementPermissionKeys, AXMCommunicationManagementServerCommands, AXM_ENTITY_CHANGE_NOTIFY_RUN_COMMAND_KEY, AXPCollaborationPermissionKeys, AXPCommunicationManagementSettingKeys, AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION, AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY, AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED, AXP_COMMUNICATION_DELIVERY_STATUS_PENDING, AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS, AXP_COMMUNICATION_STATUS_COMPLETED, AXP_COMMUNICATION_STATUS_DEFINITION_KEY, AXP_COMMUNICATION_STATUS_FAILED, AXP_COMMUNICATION_STATUS_PENDING, AXP_COMMUNICATION_STATUS_PROCESSING, AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP, AXP_COMMUNICATION_USER_NOTIFICATION_DEFAULTS, BUILTIN_CHANNEL_DEFINITIONS, COMMUNICATION_BUILTIN_CHANNEL_KEYS, COMMUNICATION_CHANNEL_ADAPTER, COMMUNICATION_CHANNEL_SEND_VALIDATOR, COMMUNICATION_DEBUG_REDIRECT_RESOLVER, COMMUNICATION_DELIVERY_ENTITY_NAME, COMMUNICATION_DELIVERY_EXECUTOR, COMMUNICATION_ENTITY_NAME, COMMUNICATION_MANAGEMENT_EMAIL_SEND_COMMAND_KEY, COMMUNICATION_MANAGEMENT_EMAIL_SHOW_DIALOG_COMMAND_KEY, CommunicationManagementManifest, DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS, ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY, ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME, ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE, RootConfig, formatCommunicationDeliveryJobTitle, getCommunicationChannel, isBuiltInCommunicationChannel, listCommunicationChannels, registerCommunicationChannel, resolveCommunicationMessage, resolveCommunicationRecipientLabel };
|
|
352
|
+
export { AXMCommunicationManagementCommandKeys, AXMCommunicationManagementMenuKeys, AXMCommunicationManagementPermissionKeys, AXMCommunicationManagementServerCommands, AXM_ENTITY_CHANGE_NOTIFY_RUN_COMMAND_KEY, AXPCollaborationPermissionKeys, AXPCommunicationManagementSettingKeys, AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION, AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY, AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED, AXP_COMMUNICATION_DELIVERY_STATUS_PENDING, AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS, AXP_COMMUNICATION_STATUS_COMPLETED, AXP_COMMUNICATION_STATUS_DEFINITION_KEY, AXP_COMMUNICATION_STATUS_FAILED, AXP_COMMUNICATION_STATUS_PENDING, AXP_COMMUNICATION_STATUS_PROCESSING, AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP, AXP_COMMUNICATION_USER_NOTIFICATION_DEFAULTS, AXP_IN_APP_INBOX_DATA_CAPABILITIES, AXP_IN_APP_INBOX_EXECUTION_CONFIG, AXP_IN_APP_INBOX_SCENARIO, AXP_IN_APP_INBOX_UNREAD_CONFIG, AXP_IN_APP_INBOX_UNREAD_QUERY, BUILTIN_CHANNEL_DEFINITIONS, COMMUNICATION_BUILTIN_CHANNEL_KEYS, COMMUNICATION_CHANNEL_ADAPTER, COMMUNICATION_CHANNEL_SEND_VALIDATOR, COMMUNICATION_DEBUG_REDIRECT_RESOLVER, COMMUNICATION_DELIVERY_ENTITY_NAME, COMMUNICATION_DELIVERY_EXECUTOR, COMMUNICATION_ENTITY_NAME, COMMUNICATION_MANAGEMENT_EMAIL_SEND_COMMAND_KEY, COMMUNICATION_MANAGEMENT_EMAIL_SHOW_DIALOG_COMMAND_KEY, CommunicationManagementManifest, DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS, ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY, ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME, ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE, HEALTH_RECORD_REMINDER_COMMUNICATION_KEY, OVERDUE_TASK_DIGEST_COMMUNICATION_KEY, RootConfig, communicationTemplateChannels, formatCommunicationDeliveryJobTitle, getCommunicationChannel, isBuiltInCommunicationChannel, listCommunicationChannels, registerCommunicationChannel, resolveCommunicationMessage, resolveCommunicationRecipientLabel };
|
|
306
353
|
//# sourceMappingURL=acorex-platform-module-communication-management-client-contracts.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-communication-management-client-contracts.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/channels/channel.adapter.ts","../../../../libs/modules/communication-management/contracts/src/channels/channel.registration.ts","../../../../libs/modules/communication-management/contracts/src/channels/channel.types.ts","../../../../libs/modules/communication-management/contracts/src/channels/channel.registry.ts","../../../../libs/modules/communication-management/contracts/src/channels/debug-redirect.registration.ts","../../../../libs/modules/communication-management/contracts/src/communication-email.keys.ts","../../../../libs/modules/communication-management/contracts/src/communication-email.types.ts","../../../../libs/modules/communication-management/contracts/src/commands.keys.ts","../../../../libs/modules/communication-management/contracts/src/communication.types.ts","../../../../libs/modules/communication-management/contracts/src/communication-message.util.ts","../../../../libs/modules/communication-management/contracts/src/communication-delivery-job-title.util.ts","../../../../libs/modules/communication-management/contracts/src/engagement.types.ts","../../../../libs/modules/communication-management/contracts/src/entities/entity-change-notify-policy/entity-change-notify-policy.types.ts","../../../../libs/modules/communication-management/contracts/src/menu.keys.ts","../../../../libs/modules/communication-management/contracts/src/permission.keys.ts","../../../../libs/modules/communication-management/contracts/src/root-config.ts","../../../../libs/modules/communication-management/contracts/src/manifest.ts","../../../../libs/modules/communication-management/contracts/src/server-commands.ts","../../../../libs/modules/communication-management/contracts/src/communication-user-notifications-settings.constants.ts","../../../../libs/modules/communication-management/contracts/src/settings.keys.ts","../../../../libs/modules/communication-management/contracts/src/status.keys.ts","../../../../libs/modules/communication-management/contracts/src/acorex-platform-module-communication-management-client-contracts.ts"],"sourcesContent":["import type {\n CommunicationAggregateStatus,\n CommunicationDeliveryStatus,\n CommunicationSendInput,\n} from '../communication.types';\nimport type { CommunicationChannelDefinition } from './channel.types';\n\n//#region ---- Channel adapter port (Phase 2+) ----\n\nexport interface CommunicationChannelAdapterContext {\n communicationId: string;\n deliveryId: string;\n input: CommunicationSendInput;\n channel: CommunicationChannelDefinition;\n now: Date;\n}\n\nexport interface CommunicationChannelDeliverResult {\n status: CommunicationDeliveryStatus;\n sentAt?: Date | null;\n deliveredAt?: Date | null;\n timelineLines: string[];\n communicationStatus: CommunicationAggregateStatus;\n}\n\nexport interface CommunicationChannelAdapter {\n readonly channelKey: string;\n deliver(context: CommunicationChannelAdapterContext): Promise<CommunicationChannelDeliverResult>;\n}\n\n//#endregion\n","import type {\n CommunicationDeliverPayload,\n CommunicationDeliverResult,\n CommunicationSendInput,\n} from '../communication.types';\n\n//#region ---- Channel adapter registration ----\n\nexport const COMMUNICATION_CHANNEL_ADAPTER = Symbol('COMMUNICATION_CHANNEL_ADAPTER');\n\n//#endregion\n\n//#region ---- Delivery executor registration ----\n\nexport const COMMUNICATION_DELIVERY_EXECUTOR = Symbol('COMMUNICATION_DELIVERY_EXECUTOR');\n\nexport interface CommunicationDeliveryExecutor {\n readonly channelKey: string;\n execute(payload: CommunicationDeliverPayload): Promise<CommunicationDeliverResult>;\n}\n\n//#endregion\n\n//#region ---- Send validation registration ----\n\nexport const COMMUNICATION_CHANNEL_SEND_VALIDATOR = Symbol('COMMUNICATION_CHANNEL_SEND_VALIDATOR');\n\nexport interface CommunicationChannelSendValidator {\n readonly channelKey: string;\n validate(input: CommunicationSendInput): void;\n}\n\n//#endregion\n","//#region ---- Channel capabilities ----\n\nexport interface CommunicationChannelCapabilities {\n deliveryConfirmation: boolean;\n deliveryReceipt: boolean;\n seenTracking: boolean;\n readReceipt: boolean;\n replyTracking: boolean;\n webhookCallbacks: boolean;\n}\n\nexport interface CommunicationChannelDefinition {\n key: string;\n title: string;\n builtIn: boolean;\n capabilities: CommunicationChannelCapabilities;\n}\n\nexport const COMMUNICATION_BUILTIN_CHANNEL_KEYS = ['in-app', 'email-smtp'] as const;\nexport type CommunicationBuiltinChannelKey = (typeof COMMUNICATION_BUILTIN_CHANNEL_KEYS)[number];\n\nexport const BUILTIN_CHANNEL_DEFINITIONS: readonly CommunicationChannelDefinition[] = [\n {\n key: 'in-app',\n title: 'In-App',\n builtIn: true,\n capabilities: {\n deliveryConfirmation: true,\n deliveryReceipt: true,\n seenTracking: true,\n readReceipt: true,\n replyTracking: false,\n webhookCallbacks: false,\n },\n },\n {\n key: 'email-smtp',\n title: 'Email (SMTP)',\n builtIn: true,\n capabilities: {\n deliveryConfirmation: true,\n deliveryReceipt: false,\n seenTracking: false,\n readReceipt: false,\n replyTracking: false,\n webhookCallbacks: false,\n },\n },\n] as const;\n\n//#endregion\n","import {\n BUILTIN_CHANNEL_DEFINITIONS,\n type CommunicationChannelDefinition,\n} from './channel.types';\n\n//#region ---- Built-in channel registry ----\n\nconst registry = new Map<string, CommunicationChannelDefinition>(\n BUILTIN_CHANNEL_DEFINITIONS.map((channel) => [channel.key, channel]),\n);\n\nexport function listCommunicationChannels(): CommunicationChannelDefinition[] {\n return [...registry.values()];\n}\n\nexport function getCommunicationChannel(key: string): CommunicationChannelDefinition | undefined {\n return registry.get(key);\n}\n\nexport function registerCommunicationChannel(definition: CommunicationChannelDefinition): void {\n registry.set(definition.key, definition);\n}\n\nexport function isBuiltInCommunicationChannel(key: string): boolean {\n return BUILTIN_CHANNEL_DEFINITIONS.some((channel) => channel.key === key);\n}\n\n//#endregion\n","//#region ---- Debug redirect resolver registration ----\n\nexport const COMMUNICATION_DEBUG_REDIRECT_RESOLVER = Symbol('COMMUNICATION_DEBUG_REDIRECT_RESOLVER');\n\nexport interface CommunicationDebugRedirectResolver {\n readonly channelKey: string;\n resolveOverride(tenantId: string): Promise<string | null>;\n}\n\nexport interface CommunicationDebugRedirectResult {\n effectiveRecipient: string | null;\n redirected: boolean;\n skipped: boolean;\n timelineNote?: string;\n}\n\n//#endregion\n","//#region ---- Email command keys ----\n\nexport const COMMUNICATION_MANAGEMENT_EMAIL_SHOW_DIALOG_COMMAND_KEY =\n 'CommunicationManagement:Email:ShowDialog' as const;\n\nexport const COMMUNICATION_MANAGEMENT_EMAIL_SEND_COMMAND_KEY =\n 'CommunicationManagement:Email:Send' as const;\n\n//#endregion\n","//#region ---- Email compose types ----\n\n/** Opens the send-email layout dialog (optional text template pre-render). */\nexport interface CommunicationManagementEmailShowDialogInput {\n dialogTitle?: string;\n to?: string;\n cc?: string;\n bcc?: string;\n subject?: string;\n body?: string;\n textTemplateId?: string;\n data?: Record<string, unknown>;\n}\n\nexport interface CommunicationManagementEmailSendInput {\n to: string;\n cc?: string;\n bcc?: string;\n subject: string;\n body: string;\n textTemplateId?: string;\n}\n\nexport interface CommunicationManagementEmailSendResult {\n communicationId: string;\n deliveryId: string;\n}\n\n//#endregion\n","//#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 ---- Communication domain types ----\n\nexport type CommunicationAggregateStatus = 'Pending' | 'Processing' | 'Completed' | 'Failed' | 'Cancelled';\n\nexport type CommunicationDeliveryStatus =\n | 'Pending'\n | 'Queued'\n | 'Processing'\n | 'Accepted'\n | 'Sent'\n | 'Delivered'\n | 'Failed'\n | 'RetryScheduled'\n | 'Cancelled'\n | 'DeadLettered';\n\nexport interface CommunicationMessage {\n subject: string;\n body: string;\n}\n\nexport interface CommunicationNotificationAction {\n title: string;\n command: {\n name: string;\n options?: Record<string, unknown>;\n };\n}\n\nexport type CommunicationPriority = 'Notice' | 'Danger' | 'Warning';\n\nexport interface AXMCommunicationModel {\n id: string;\n title: string;\n message?: CommunicationMessage;\n definitionKey?: string;\n correlationId?: string;\n idempotencyKey?: string;\n actions?: CommunicationNotificationAction[];\n status: CommunicationAggregateStatus;\n primaryChannel?: string;\n recipientSummary?: string;\n priority?: CommunicationPriority;\n}\n\nexport interface AXMCommunicationDeliveryModel {\n id: string;\n communicationId: string;\n channel: string;\n providerKey?: string;\n status: CommunicationDeliveryStatus;\n recipientUserId?: string;\n recipientAddress?: string;\n /** Provider-assigned message id (SMTP Message-ID, Telegram message_id, WhatsApp wamid, etc.). */\n providerMessageId?: string | null;\n sentAt?: Date | null;\n deliveredAt?: Date | null;\n seenAt?: Date | null;\n readAt?: Date | null;\n repliedAt?: Date | null;\n isPinned?: boolean;\n archivedAt?: Date | null;\n timelineSummary?: string;\n}\n\nexport interface CommunicationSendInput {\n title: string;\n message: CommunicationMessage;\n channel: string;\n recipientUserId?: string;\n recipientAddress?: string;\n /** Human-readable recipient label (e.g. employee full name) for summaries and job titles. */\n recipientName?: string;\n /**\n * Tenant scope for system/unauthenticated sends (e.g. public password-reset).\n * When omitted, channel adapters use the authenticated session tenant.\n */\n tenantId?: string;\n /**\n * When true, Communication/Delivery are inserted with empty `scopeInfo` (no tenant).\n * With `catalog-read`, those rows are visible in any tenant session; inbox UI still\n * filters by `recipientUserId`.\n */\n unscoped?: boolean;\n definitionKey?: string;\n correlationId?: string;\n idempotencyKey?: string;\n priority?: CommunicationPriority;\n actions?: CommunicationNotificationAction[];\n /**\n * When true, in-app debug redirect must not rewrite the recipient.\n * Required for conversation chat rows created in the sender's HTTP session.\n */\n bypassDebugRedirect?: boolean;\n}\n\nexport interface CommunicationSendResult {\n communicationId: string;\n deliveryId: string;\n status: CommunicationDeliveryStatus;\n}\n\nexport interface CommunicationDeliverPayload {\n deliveryId: string;\n communicationId: string;\n tenantId: string;\n}\n\nexport interface CommunicationDeliverResult {\n deliveryId: string;\n status: CommunicationDeliveryStatus;\n messageId?: string;\n}\n\nexport interface CommunicationSmtpTestInput {\n recipientAddress: string;\n}\n\nexport interface CommunicationSmtpTestResult {\n recipientAddress: string;\n messageId?: string;\n}\n\n//#endregion\n","//#region ---- Communication message helpers ----\n\nimport type { CommunicationMessage } from './communication.types';\n\nexport function resolveCommunicationMessage(\n communication: Record<string, unknown>,\n fallbackTitle = 'Message',\n): CommunicationMessage {\n const message = communication['message'];\n if (message != null && typeof message === 'object' && !Array.isArray(message)) {\n const nested = message as Record<string, unknown>;\n const subject = typeof nested['subject'] === 'string' ? nested['subject'] : '';\n const body = typeof nested['body'] === 'string' ? nested['body'] : '';\n if (subject || body) {\n return {\n subject: subject || String(communication['title'] ?? fallbackTitle),\n body,\n };\n }\n }\n\n const legacySubject = typeof communication['subject'] === 'string' ? communication['subject'] : '';\n const legacyBody = typeof communication['body'] === 'string' ? communication['body'] : '';\n return {\n subject: legacySubject || String(communication['title'] ?? fallbackTitle),\n body: legacyBody,\n };\n}\n\n//#endregion\n","//#region ---- Communication delivery job title helpers ----\n\nimport type { CommunicationSendInput } from './communication.types';\n\nexport type CommunicationRecipientLabelInput = Pick<\n CommunicationSendInput,\n 'recipientName' | 'recipientAddress' | 'recipientUserId'\n>;\n\nexport function resolveCommunicationRecipientLabel(input: CommunicationRecipientLabelInput): string {\n const name = input.recipientName?.trim();\n if (name) {\n return name;\n }\n\n const address = input.recipientAddress?.trim();\n if (address) {\n return address;\n }\n\n const userId = input.recipientUserId?.trim();\n if (userId) {\n return userId;\n }\n\n return 'Unknown recipient';\n}\n\nexport function formatCommunicationDeliveryJobTitle(\n channelLabel: string,\n input: CommunicationRecipientLabelInput,\n): string {\n return `${channelLabel} — ${resolveCommunicationRecipientLabel(input)}`;\n}\n\n//#endregion\n","//#region ---- In-app engagement types ----\n\nexport interface CommunicationDeliveryEngagementRequest {\n deliveryIds: string[];\n}\n\nexport interface CommunicationDeliveryEngagementResult {\n updatedIds: string[];\n}\n\nexport interface CommunicationDeliveryMutationResult {\n affectedIds: string[];\n}\n\n//#endregion\n","//#region ----- Types -----\n\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ----- Entity change notify policy -----\n\nexport type AXMEntityChangeNotifyOp = 'update';\n\nexport interface AXMEntityChangeNotifyRelated {\n /** Related entity name (`PersonCore.Person`). */\n entity: string;\n /** FK on the primary entity that points at the related row (`personId`). */\n via: string;\n}\n\nexport interface AXMEntityChangeNotifyPolicyEntityModel extends AXPEntityModel<string> {\n name: string;\n title?: string;\n enabled: boolean;\n entityName: string;\n related?: AXMEntityChangeNotifyRelated[];\n debounceSeconds?: number;\n templateId?: string;\n recipientRoleNames?: string[];\n includeFields?: string[];\n excludeFields?: string[];\n channels?: string[];\n}\n\n//#endregion\n","//#region ----- Menu keys -----\n\nexport const AXMCommunicationManagementMenuKeys = {\n Root: 'CommunicationManagement:Menu:Root',\n Communications: 'CommunicationManagement:Menu:Communications',\n EntityChangeNotifyPolicies: 'CommunicationManagement:Menu:EntityChangeNotifyPolicies',\n} as const;\n\n//#endregion\n","/**\n * Collaboration capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPCollaborationPermissionKeys = {\n Access: 'Collaboration:Permission:Access',\n MaintainConversations: 'Collaboration:Permission:MaintainConversations',\n MaintainMeetings: 'Collaboration:Permission:MaintainMeetings',\n MaintainCalendars: 'Collaboration:Permission:MaintainCalendars',\n MaintainCommunications: 'Collaboration:Permission:MaintainCommunications',\n MaintainReservations: 'Collaboration:Permission:MaintainReservations',\n MaintainHelpDesk: 'Collaboration:Permission:MaintainHelpDesk',\n Setup: 'Collaboration:Permission:Setup',\n} as const;\n\nconst maintainCommunications = AXPCollaborationPermissionKeys.MaintainCommunications;\n\n/**\n * @deprecated Prefer {@link AXPCollaborationPermissionKeys}.\n * Legacy flat shape kept so existing imports compile during migration.\n */\nexport const AXMCommunicationManagementPermissionKeys = {\n Management: maintainCommunications,\n Send: maintainCommunications,\n Email: {\n ShowDialog: maintainCommunications,\n Send: maintainCommunications,\n },\n} as const;\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","\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\nexport const CommunicationManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '0.0.1',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'domain',\n domain: 'communication',\n required: false,\n};\n","//#region ---- Server command keys ----\n\nexport const AXMCommunicationManagementServerCommands = {\n Send: 'CommunicationManagement:Server:Send',\n Deliver: 'CommunicationManagement:Server:Deliver',\n EntityChangeNotifyRun: 'CommunicationManagement:EntityChangeNotify:Run',\n InApp: {\n MarkSeen: 'CommunicationManagement:InApp:MarkSeen',\n MarkRead: 'CommunicationManagement:InApp:MarkRead',\n MarkAllRead: 'CommunicationManagement:InApp:MarkAllRead',\n TogglePin: 'CommunicationManagement:InApp:TogglePin',\n Archive: 'CommunicationManagement:InApp:Archive',\n Delete: 'CommunicationManagement:InApp:Delete',\n },\n Smtp: {\n Test: 'CommunicationManagement:Smtp:Test',\n },\n} as const;\n\nexport const AXM_ENTITY_CHANGE_NOTIFY_RUN_COMMAND_KEY =\n AXMCommunicationManagementServerCommands.EntityChangeNotifyRun;\n\n//#endregion\n","//#region ---- User notification settings layout (shared with channel extensions) ----\n\n/** Settings group slug → `/:app/settings/user/communication-notifications` */\nexport const AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP = 'communication-notifications';\n\n/** Section within {@link AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP}. */\nexport const AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION = 'delivery-channels';\n\n//#endregion\n","//#region ---- Communication management SMTP settings ----\n\nexport enum AXPCommunicationManagementSettingKeys {\n EmailServer = 'CommunicationManagement:Setting:Email.Server',\n EmailPort = 'CommunicationManagement:Setting:Email.Port',\n EmailUsername = 'CommunicationManagement:Setting:Email.Username',\n EmailPassword = 'CommunicationManagement:Setting:Email.Password',\n EmailFromAddress = 'CommunicationManagement:Setting:Email.FromAddress',\n EmailUseSsl = 'CommunicationManagement:Setting:Email.UseSSL',\n EmailUseTls = 'CommunicationManagement:Setting:Email.UseTLS',\n DebugRedirectEmailAddress = 'CommunicationManagement:Setting:Debug.Redirect.EmailAddress',\n UserChannelInAppEnabled = 'CommunicationManagement:Setting:User.Channel.InApp.Enabled',\n UserChannelEmailEnabled = 'CommunicationManagement:Setting:User.Channel.Email.Enabled',\n}\n\nexport const AXP_COMMUNICATION_USER_NOTIFICATION_DEFAULTS: Record<string, unknown> = {\n [AXPCommunicationManagementSettingKeys.UserChannelInAppEnabled]: true,\n [AXPCommunicationManagementSettingKeys.UserChannelEmailEnabled]: true,\n};\n\nexport const AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS: Record<string, unknown> = {\n [AXPCommunicationManagementSettingKeys.EmailServer]: '',\n [AXPCommunicationManagementSettingKeys.EmailPort]: 587,\n [AXPCommunicationManagementSettingKeys.EmailUsername]: '',\n [AXPCommunicationManagementSettingKeys.EmailPassword]: '',\n [AXPCommunicationManagementSettingKeys.EmailFromAddress]: '',\n [AXPCommunicationManagementSettingKeys.EmailUseSsl]: false,\n [AXPCommunicationManagementSettingKeys.EmailUseTls]: true,\n [AXPCommunicationManagementSettingKeys.DebugRedirectEmailAddress]: '',\n};\n\nexport interface CommunicationSmtpSettings {\n server: string;\n port: number;\n username: string;\n password: string;\n fromAddress: string;\n useSsl: boolean;\n useTls: boolean;\n}\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AA8BA;;ACxBA;MAEa,6BAA6B,GAAG,MAAM,CAAC,+BAA+B;AAEnF;AAEA;MAEa,+BAA+B,GAAG,MAAM,CAAC,iCAAiC;AAOvF;AAEA;MAEa,oCAAoC,GAAG,MAAM,CAAC,sCAAsC;AAOjG;;AChCA;MAkBa,kCAAkC,GAAG,CAAC,QAAQ,EAAE,YAAY;AAGlE,MAAM,2BAA2B,GAA8C;AACpF,IAAA;AACE,QAAA,GAAG,EAAE,QAAQ;AACb,QAAA,KAAK,EAAE,QAAQ;AACf,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,YAAY,EAAE;AACZ,YAAA,oBAAoB,EAAE,IAAI;AAC1B,YAAA,eAAe,EAAE,IAAI;AACrB,YAAA,YAAY,EAAE,IAAI;AAClB,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,aAAa,EAAE,KAAK;AACpB,YAAA,gBAAgB,EAAE,KAAK;AACxB,SAAA;AACF,KAAA;AACD,IAAA;AACE,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,KAAK,EAAE,cAAc;AACrB,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,YAAY,EAAE;AACZ,YAAA,oBAAoB,EAAE,IAAI;AAC1B,YAAA,eAAe,EAAE,KAAK;AACtB,YAAA,YAAY,EAAE,KAAK;AACnB,YAAA,WAAW,EAAE,KAAK;AAClB,YAAA,aAAa,EAAE,KAAK;AACpB,YAAA,gBAAgB,EAAE,KAAK;AACxB,SAAA;AACF,KAAA;;AAGH;;AC7CA;AAEA,MAAM,QAAQ,GAAG,IAAI,GAAG,CACtB,2BAA2B,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CACrE;SAEe,yBAAyB,GAAA;AACv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AA,yBAAA,CAAA,GAAA,4DAAsF;AACxF,CAAC,EAXW,qCAAqC,KAArC,qCAAqC,GAAA,EAAA,CAAA,CAAA;AAa1C,MAAM,4CAA4C,GAA4B;AACnF,IAAA,CAAC,qCAAqC,CAAC,uBAAuB,GAAG,IAAI;AACrE,IAAA,CAAC,qCAAqC,CAAC,uBAAuB,GAAG,IAAI;;AAGhE,MAAM,uCAAuC,GAA4B;AAC9E,IAAA,CAAC,qCAAqC,CAAC,WAAW,GAAG,EAAE;AACvD,IAAA,CAAC,qCAAqC,CAAC,SAAS,GAAG,GAAG;AACtD,IAAA,CAAC,qCAAqC,CAAC,aAAa,GAAG,EAAE;AACzD,IAAA,CAAC,qCAAqC,CAAC,aAAa,GAAG,EAAE;AACzD,IAAA,CAAC,qCAAqC,CAAC,gBAAgB,GAAG,EAAE;AAC5D,IAAA,CAAC,qCAAqC,CAAC,WAAW,GAAG,KAAK;AAC1D,IAAA,CAAC,qCAAqC,CAAC,WAAW,GAAG,IAAI;AACzD,IAAA,CAAC,qCAAqC,CAAC,yBAAyB,GAAG,EAAE;;AAavE;;ACzCA;AAEA;AACO,MAAM,uCAAuC,GAAG;AAEvD;AACO,MAAM,gDAAgD,GAC3D;AAEK,MAAM,gCAAgC,GAAG;AACzC,MAAM,mCAAmC,GAAG;AAC5C,MAAM,kCAAkC,GAAG;AAC3C,MAAM,+BAA+B,GAAG;AAExC,MAAM,yCAAyC,GAAG;AAClD,MAAM,2CAA2C,GAAG;AAE3D;;ACjBA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-communication-management-client-contracts.mjs","sources":["../../../../libs/modules/communication-management/contracts/src/channels/channel.adapter.ts","../../../../libs/modules/communication-management/contracts/src/channels/channel.registration.ts","../../../../libs/modules/communication-management/contracts/src/channels/channel.types.ts","../../../../libs/modules/communication-management/contracts/src/channels/channel.registry.ts","../../../../libs/modules/communication-management/contracts/src/channels/debug-redirect.registration.ts","../../../../libs/modules/communication-management/contracts/src/communication-email.keys.ts","../../../../libs/modules/communication-management/contracts/src/communication-email.types.ts","../../../../libs/modules/communication-management/contracts/src/commands.keys.ts","../../../../libs/modules/communication-management/contracts/src/communication.types.ts","../../../../libs/modules/communication-management/contracts/src/communication-message.util.ts","../../../../libs/modules/communication-management/contracts/src/communication-template-channels.util.ts","../../../../libs/modules/communication-management/contracts/src/communication-delivery-job-title.util.ts","../../../../libs/modules/communication-management/contracts/src/engagement.types.ts","../../../../libs/modules/communication-management/contracts/src/entities/entity-change-notify-policy/entity-change-notify-policy.types.ts","../../../../libs/modules/communication-management/contracts/src/menu.keys.ts","../../../../libs/modules/communication-management/contracts/src/permission.keys.ts","../../../../libs/modules/communication-management/contracts/src/root-config.ts","../../../../libs/modules/communication-management/contracts/src/manifest.ts","../../../../libs/modules/communication-management/contracts/src/server-commands.ts","../../../../libs/modules/communication-management/contracts/src/communication-user-notifications-settings.constants.ts","../../../../libs/modules/communication-management/contracts/src/settings.keys.ts","../../../../libs/modules/communication-management/contracts/src/status.keys.ts","../../../../libs/modules/communication-management/contracts/src/in-app-inbox-data-capabilities.ts","../../../../libs/modules/communication-management/contracts/src/acorex-platform-module-communication-management-client-contracts.ts"],"sourcesContent":["import type {\n CommunicationAggregateStatus,\n CommunicationDeliveryStatus,\n CommunicationSendInput,\n} from '../communication.types';\nimport type { CommunicationChannelDefinition } from './channel.types';\n\n//#region ---- Channel adapter port (Phase 2+) ----\n\nexport interface CommunicationChannelAdapterContext {\n communicationId: string;\n deliveryId: string;\n input: CommunicationSendInput;\n channel: CommunicationChannelDefinition;\n now: Date;\n}\n\nexport interface CommunicationChannelDeliverResult {\n status: CommunicationDeliveryStatus;\n sentAt?: Date | null;\n deliveredAt?: Date | null;\n timelineLines: string[];\n communicationStatus: CommunicationAggregateStatus;\n}\n\nexport interface CommunicationChannelAdapter {\n readonly channelKey: string;\n deliver(context: CommunicationChannelAdapterContext): Promise<CommunicationChannelDeliverResult>;\n}\n\n//#endregion\n","import type {\n CommunicationDeliverPayload,\n CommunicationDeliverResult,\n CommunicationSendInput,\n} from '../communication.types';\n\n//#region ---- Channel adapter registration ----\n\nexport const COMMUNICATION_CHANNEL_ADAPTER = Symbol('COMMUNICATION_CHANNEL_ADAPTER');\n\n//#endregion\n\n//#region ---- Delivery executor registration ----\n\nexport const COMMUNICATION_DELIVERY_EXECUTOR = Symbol('COMMUNICATION_DELIVERY_EXECUTOR');\n\nexport interface CommunicationDeliveryExecutor {\n readonly channelKey: string;\n execute(payload: CommunicationDeliverPayload): Promise<CommunicationDeliverResult>;\n}\n\n//#endregion\n\n//#region ---- Send validation registration ----\n\nexport const COMMUNICATION_CHANNEL_SEND_VALIDATOR = Symbol('COMMUNICATION_CHANNEL_SEND_VALIDATOR');\n\nexport interface CommunicationChannelSendValidator {\n readonly channelKey: string;\n validate(input: CommunicationSendInput): void;\n}\n\n//#endregion\n","//#region ---- Channel capabilities ----\n\nexport interface CommunicationChannelCapabilities {\n attachments?: boolean;\n deliveryConfirmation: boolean;\n deliveryReceipt: boolean;\n seenTracking: boolean;\n readReceipt: boolean;\n replyTracking: boolean;\n webhookCallbacks: boolean;\n}\n\nexport interface CommunicationChannelDefinition {\n key: string;\n title: string;\n builtIn: boolean;\n capabilities: CommunicationChannelCapabilities;\n}\n\nexport const COMMUNICATION_BUILTIN_CHANNEL_KEYS = ['in-app', 'email-smtp'] as const;\nexport type CommunicationBuiltinChannelKey = (typeof COMMUNICATION_BUILTIN_CHANNEL_KEYS)[number];\n\nexport const BUILTIN_CHANNEL_DEFINITIONS: readonly CommunicationChannelDefinition[] = [\n {\n key: 'in-app',\n title: 'In-App',\n builtIn: true,\n capabilities: {\n attachments: true,\n deliveryConfirmation: true,\n deliveryReceipt: true,\n seenTracking: true,\n readReceipt: true,\n replyTracking: false,\n webhookCallbacks: false,\n },\n },\n {\n key: 'email-smtp',\n title: 'Email (SMTP)',\n builtIn: true,\n capabilities: {\n attachments: true,\n deliveryConfirmation: true,\n deliveryReceipt: false,\n seenTracking: false,\n readReceipt: false,\n replyTracking: false,\n webhookCallbacks: false,\n },\n },\n] as const;\n\n//#endregion\n","import {\n BUILTIN_CHANNEL_DEFINITIONS,\n type CommunicationChannelDefinition,\n} from './channel.types';\n\n//#region ---- Built-in channel registry ----\n\nconst registry = new Map<string, CommunicationChannelDefinition>(\n BUILTIN_CHANNEL_DEFINITIONS.map((channel) => [channel.key, channel]),\n);\n\nexport function listCommunicationChannels(): CommunicationChannelDefinition[] {\n return [...registry.values()];\n}\n\nexport function getCommunicationChannel(key: string): CommunicationChannelDefinition | undefined {\n return registry.get(key);\n}\n\nexport function registerCommunicationChannel(definition: CommunicationChannelDefinition): void {\n registry.set(definition.key, definition);\n}\n\nexport function isBuiltInCommunicationChannel(key: string): boolean {\n return BUILTIN_CHANNEL_DEFINITIONS.some((channel) => channel.key === key);\n}\n\n//#endregion\n","//#region ---- Debug redirect resolver registration ----\n\nexport const COMMUNICATION_DEBUG_REDIRECT_RESOLVER = Symbol('COMMUNICATION_DEBUG_REDIRECT_RESOLVER');\n\nexport interface CommunicationDebugRedirectResolver {\n readonly channelKey: string;\n resolveOverride(tenantId: string): Promise<string | null>;\n}\n\nexport interface CommunicationDebugRedirectResult {\n effectiveRecipient: string | null;\n redirected: boolean;\n skipped: boolean;\n timelineNote?: string;\n}\n\n//#endregion\n","//#region ---- Email command keys ----\n\nexport const COMMUNICATION_MANAGEMENT_EMAIL_SHOW_DIALOG_COMMAND_KEY =\n 'CommunicationManagement:Email:ShowDialog' as const;\n\nexport const COMMUNICATION_MANAGEMENT_EMAIL_SEND_COMMAND_KEY =\n 'CommunicationManagement:Email:Send' as const;\n\n//#endregion\n","//#region ---- Email compose types ----\n\n/** Opens the send-email layout dialog (optional text template pre-render). */\nexport interface CommunicationManagementEmailShowDialogInput {\n dialogTitle?: string;\n to?: string;\n cc?: string;\n bcc?: string;\n subject?: string;\n body?: string;\n textTemplateId?: string;\n data?: Record<string, unknown>;\n}\n\nexport interface CommunicationManagementEmailSendInput {\n to: string;\n cc?: string;\n bcc?: string;\n subject: string;\n body: string;\n textTemplateId?: string;\n}\n\nexport interface CommunicationManagementEmailSendResult {\n communicationId: string;\n deliveryId: string;\n}\n\n//#endregion\n","//#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 ---- Communication domain types ----\n\nexport type CommunicationAggregateStatus = 'Pending' | 'Processing' | 'Completed' | 'Failed' | 'Cancelled';\n\nexport type CommunicationDeliveryStatus =\n | 'Pending'\n | 'Queued'\n | 'Processing'\n | 'Accepted'\n | 'Sent'\n | 'Delivered'\n | 'Failed'\n | 'RetryScheduled'\n | 'Cancelled'\n | 'DeadLettered';\n\nexport interface CommunicationMessage {\n subject: string;\n body: string;\n}\n\n/** Durable storage reference; URLs and inline/base64 content are not accepted. */\nexport interface CommunicationAttachmentReference {\n reference: string; // file:{id} or document:{id}\n}\n\nexport interface CommunicationAttachment extends CommunicationAttachmentReference {\n fileId: string;\n name: string;\n mimeType: string;\n size: number;\n}\n\nexport interface CommunicationNotificationAction {\n title: string;\n command: {\n name: string;\n options?: Record<string, unknown>;\n };\n}\n\nexport type CommunicationPriority = 'Notice' | 'Danger' | 'Warning';\n\nexport interface CommunicationAppearance {\n iconClass?: string;\n color?: string;\n}\n\nexport interface AXMCommunicationModel {\n id: string;\n title: string;\n message?: CommunicationMessage;\n definitionKey?: string;\n correlationId?: string;\n idempotencyKey?: string;\n actions?: CommunicationNotificationAction[];\n attachments?: CommunicationAttachment[];\n appearance?: CommunicationAppearance;\n status: CommunicationAggregateStatus;\n primaryChannel?: string;\n recipientSummary?: string;\n priority?: CommunicationPriority;\n}\n\nexport interface AXMCommunicationDeliveryModel {\n id: string;\n communicationId: string;\n channel: string;\n providerKey?: string;\n status: CommunicationDeliveryStatus;\n recipientUserId?: string;\n recipientAddress?: string;\n /** Provider-assigned message id (SMTP Message-ID, Telegram message_id, WhatsApp wamid, etc.). */\n providerMessageId?: string | null;\n sentAt?: Date | null;\n deliveredAt?: Date | null;\n seenAt?: Date | null;\n readAt?: Date | null;\n repliedAt?: Date | null;\n isPinned?: boolean;\n archivedAt?: Date | null;\n timelineSummary?: string;\n}\n\nexport const HEALTH_RECORD_REMINDER_COMMUNICATION_KEY = 'health-record-reminder';\nexport const OVERDUE_TASK_DIGEST_COMMUNICATION_KEY = 'overdue-task-digest';\n\nexport interface CommunicationSendInput {\n title: string;\n message: CommunicationMessage;\n channel: string;\n recipientUserId?: string;\n recipientAddress?: string;\n /** Human-readable recipient label (e.g. employee full name) for summaries and job titles. */\n recipientName?: string;\n /**\n * Tenant scope for system/unauthenticated sends (e.g. public password-reset).\n * When omitted, channel adapters use the authenticated session tenant.\n */\n tenantId?: string;\n /**\n * When true, Communication/Delivery are inserted with empty `scopeInfo` (no tenant).\n * With `catalog-read`, those rows are visible in any tenant session; inbox UI still\n * filters by `recipientUserId`.\n */\n unscoped?: boolean;\n definitionKey?: string;\n correlationId?: string;\n idempotencyKey?: string;\n priority?: CommunicationPriority;\n actions?: CommunicationNotificationAction[];\n attachments?: CommunicationAttachmentReference[];\n appearance?: CommunicationAppearance;\n /**\n * When true, in-app debug redirect must not rewrite the recipient.\n * Required for conversation chat rows created in the sender's HTTP session.\n */\n bypassDebugRedirect?: boolean;\n}\n\nexport interface CommunicationSendResult {\n communicationId: string;\n deliveryId: string;\n status: CommunicationDeliveryStatus;\n}\n\nexport interface CommunicationDeliverPayload {\n deliveryId: string;\n communicationId: string;\n tenantId: string;\n}\n\nexport interface CommunicationDeliverResult {\n deliveryId: string;\n status: CommunicationDeliveryStatus;\n messageId?: string;\n}\n\nexport interface CommunicationSmtpTestInput {\n recipientAddress: string;\n}\n\nexport interface CommunicationSmtpTestResult {\n recipientAddress: string;\n messageId?: string;\n}\n\n//#endregion\n","//#region ---- Communication message helpers ----\n\nimport type { CommunicationMessage } from './communication.types';\n\nexport function resolveCommunicationMessage(\n communication: Record<string, unknown>,\n fallbackTitle = 'Message',\n): CommunicationMessage {\n const message = communication['message'];\n if (message != null && typeof message === 'object' && !Array.isArray(message)) {\n const nested = message as Record<string, unknown>;\n const subject = typeof nested['subject'] === 'string' ? nested['subject'] : '';\n const body = typeof nested['body'] === 'string' ? nested['body'] : '';\n if (subject || body) {\n return {\n subject: subject || String(communication['title'] ?? fallbackTitle),\n body,\n };\n }\n }\n\n const legacySubject = typeof communication['subject'] === 'string' ? communication['subject'] : '';\n const legacyBody = typeof communication['body'] === 'string' ? communication['body'] : '';\n return {\n subject: legacySubject || String(communication['title'] ?? fallbackTitle),\n body: legacyBody,\n };\n}\n\n//#endregion\n","import { getCommunicationChannel } from './channels/channel.registry';\n\n/** Template channels determine delivery; layout-only channels such as print are excluded. */\nexport function communicationTemplateChannels(channels: Record<string, { body?: unknown }> | undefined): Array<{ templateChannel: string; communicationChannel: string }> {\n return Object.entries(channels ?? {}).flatMap(([templateChannel, value]) => {\n const communicationChannel = templateChannel === 'email' ? 'email-smtp' : templateChannel;\n const body = value?.body;\n const hasBody = typeof body === 'string' ? !!body.trim() : !!body && typeof body === 'object'\n && Object.values(body).some(text => typeof text === 'string' && !!text.trim());\n return hasBody && getCommunicationChannel(communicationChannel) ? [{ templateChannel, communicationChannel }] : [];\n });\n}\n","//#region ---- Communication delivery job title helpers ----\n\nimport type { CommunicationSendInput } from './communication.types';\n\nexport type CommunicationRecipientLabelInput = Pick<\n CommunicationSendInput,\n 'recipientName' | 'recipientAddress' | 'recipientUserId'\n>;\n\nexport function resolveCommunicationRecipientLabel(input: CommunicationRecipientLabelInput): string {\n const name = input.recipientName?.trim();\n if (name) {\n return name;\n }\n\n const address = input.recipientAddress?.trim();\n if (address) {\n return address;\n }\n\n const userId = input.recipientUserId?.trim();\n if (userId) {\n return userId;\n }\n\n return 'Unknown recipient';\n}\n\nexport function formatCommunicationDeliveryJobTitle(\n channelLabel: string,\n input: CommunicationRecipientLabelInput,\n): string {\n return `${channelLabel} — ${resolveCommunicationRecipientLabel(input)}`;\n}\n\n//#endregion\n","//#region ---- In-app engagement types ----\n\nexport interface CommunicationDeliveryEngagementRequest {\n deliveryIds: string[];\n /** TogglePin: omitted preserves toggle; supplied makes offline replay idempotent. */\n isPinned?: boolean;\n}\n\nexport interface CommunicationDeliveryEngagementResult {\n updatedIds: string[];\n}\n\nexport interface CommunicationDeliveryMutationResult {\n affectedIds: string[];\n}\n\n//#endregion\n","//#region ----- Types -----\n\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ----- Entity change notify policy -----\n\nexport type AXMEntityChangeNotifyOp = 'update';\n\nexport interface AXMEntityChangeNotifyRelated {\n /** Related entity name (`PersonCore.Person`). */\n entity: string;\n /** FK on the primary entity that points at the related row (`personId`). */\n via: string;\n}\n\nexport interface AXMEntityChangeNotifyPolicyEntityModel extends AXPEntityModel<string> {\n name: string;\n title?: string;\n enabled: boolean;\n entityName: string;\n related?: AXMEntityChangeNotifyRelated[];\n debounceSeconds?: number;\n templateId?: string;\n recipientRoleNames?: string[];\n includeFields?: string[];\n excludeFields?: string[];\n channels?: string[];\n}\n\n//#endregion\n","//#region ----- Menu keys -----\n\nexport const AXMCommunicationManagementMenuKeys = {\n Root: 'CommunicationManagement:Menu:Root',\n Communications: 'CommunicationManagement:Menu:Communications',\n EntityChangeNotifyPolicies: 'CommunicationManagement:Menu:EntityChangeNotifyPolicies',\n} as const;\n\n//#endregion\n","/**\n * Collaboration capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPCollaborationPermissionKeys = {\n Access: 'Collaboration:Permission:Access',\n MaintainConversations: 'Collaboration:Permission:MaintainConversations',\n MaintainMeetings: 'Collaboration:Permission:MaintainMeetings',\n MaintainCalendars: 'Collaboration:Permission:MaintainCalendars',\n MaintainCommunications: 'Collaboration:Permission:MaintainCommunications',\n MaintainBookings: 'Collaboration:Permission:MaintainBookings',\n MaintainHelpDesk: 'Collaboration:Permission:MaintainHelpDesk',\n Setup: 'Collaboration:Permission:Setup',\n} as const;\n\nconst maintainCommunications = AXPCollaborationPermissionKeys.MaintainCommunications;\n\n/**\n * @deprecated Prefer {@link AXPCollaborationPermissionKeys}.\n * Legacy flat shape kept so existing imports compile during migration.\n */\nexport const AXMCommunicationManagementPermissionKeys = {\n Management: maintainCommunications,\n Send: maintainCommunications,\n Email: {\n ShowDialog: maintainCommunications,\n Send: maintainCommunications,\n },\n} as const;\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","\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\nexport const CommunicationManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '0.0.1',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'domain',\n domain: 'communication',\n required: false,\n};\n","//#region ---- Server command keys ----\n\nexport const AXMCommunicationManagementServerCommands = {\n Send: 'CommunicationManagement:Server:Send',\n Deliver: 'CommunicationManagement:Server:Deliver',\n EntityChangeNotifyRun: 'CommunicationManagement:EntityChangeNotify:Run',\n InApp: {\n MarkSeen: 'CommunicationManagement:InApp:MarkSeen',\n MarkRead: 'CommunicationManagement:InApp:MarkRead',\n MarkAllRead: 'CommunicationManagement:InApp:MarkAllRead',\n TogglePin: 'CommunicationManagement:InApp:TogglePin',\n Archive: 'CommunicationManagement:InApp:Archive',\n Delete: 'CommunicationManagement:InApp:Delete',\n },\n Smtp: {\n Test: 'CommunicationManagement:Smtp:Test',\n },\n} as const;\n\nexport const AXM_ENTITY_CHANGE_NOTIFY_RUN_COMMAND_KEY =\n AXMCommunicationManagementServerCommands.EntityChangeNotifyRun;\n\n//#endregion\n","//#region ---- User notification settings layout (shared with channel extensions) ----\n\n/** Settings group slug → `/:app/settings/user/communication-notifications` */\nexport const AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP = 'communication-notifications';\n\n/** Section within {@link AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP}. */\nexport const AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION = 'delivery-channels';\n\n//#endregion\n","//#region ---- Communication management SMTP settings ----\n\nexport enum AXPCommunicationManagementSettingKeys {\n EmailServer = 'CommunicationManagement:Setting:Email.Server',\n EmailPort = 'CommunicationManagement:Setting:Email.Port',\n EmailUsername = 'CommunicationManagement:Setting:Email.Username',\n EmailPassword = 'CommunicationManagement:Setting:Email.Password',\n EmailFromAddress = 'CommunicationManagement:Setting:Email.FromAddress',\n EmailUseSsl = 'CommunicationManagement:Setting:Email.UseSSL',\n EmailUseTls = 'CommunicationManagement:Setting:Email.UseTLS',\n DebugRedirectEmailAddress = 'CommunicationManagement:Setting:Debug.Redirect.EmailAddress',\n UserChannelInAppEnabled = 'CommunicationManagement:Setting:User.Channel.InApp.Enabled',\n UserChannelEmailEnabled = 'CommunicationManagement:Setting:User.Channel.Email.Enabled',\n}\n\nexport const AXP_COMMUNICATION_USER_NOTIFICATION_DEFAULTS: Record<string, unknown> = {\n [AXPCommunicationManagementSettingKeys.UserChannelInAppEnabled]: true,\n [AXPCommunicationManagementSettingKeys.UserChannelEmailEnabled]: true,\n};\n\nexport const AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS: Record<string, unknown> = {\n [AXPCommunicationManagementSettingKeys.EmailServer]: '',\n [AXPCommunicationManagementSettingKeys.EmailPort]: 587,\n [AXPCommunicationManagementSettingKeys.EmailUsername]: '',\n [AXPCommunicationManagementSettingKeys.EmailPassword]: '',\n [AXPCommunicationManagementSettingKeys.EmailFromAddress]: '',\n [AXPCommunicationManagementSettingKeys.EmailUseSsl]: false,\n [AXPCommunicationManagementSettingKeys.EmailUseTls]: true,\n [AXPCommunicationManagementSettingKeys.DebugRedirectEmailAddress]: '',\n};\n\nexport interface CommunicationSmtpSettings {\n server: string;\n port: number;\n username: string;\n password: string;\n fromAddress: string;\n useSsl: boolean;\n useTls: boolean;\n}\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","import type { AXPEntityDataCapabilities } from '@acorex-platform/framework-shared/entity';\nimport { axpRegisterDataExecutionCapabilities, type AXPDataExecutionConfigPatch } from '@acorex-platform/framework-shared/runtime';\n\nconst operations = ['markSeen', 'markRead', 'markAllRead', 'togglePin', 'archive', 'delete'];\nconst fields = ['id', 'title', 'body', 'createdAt', 'seenAt', 'readAt', 'sender', 'iconClass', 'iconColor', 'showAvatar', 'priority', 'isPinned', 'category', 'definitionKey', 'correlationId', 'recipientUserId', 'archivedAt', 'actions', 'attachments'];\nexport const AXP_IN_APP_INBOX_SCENARIO = 'notifications.active';\nexport const AXP_IN_APP_INBOX_UNREAD_QUERY = 'CommunicationManagement:Inbox:UnreadCount';\n/** Persisted Profile template; the scenario belongs to its Assignment. */\nexport const AXP_IN_APP_INBOX_EXECUTION_CONFIG: AXPDataExecutionConfigPatch = {\n read: { strategy: 'cache-first', offlineFallback: 'stale-cache' },\n clientCache: { kind: 'indexed-db', maxItems: 100, maxAgeMs: 86400000, maxBytes: 10 * 1024 * 1024, fields, ttlMs: 30000 },\n freshness: { realtime: 'refetch-cached', debounceMs: 100 },\n write: { mode: 'offline-queue', conflict: 'server-wins', contractKey: 'inbox-engagement-desired-state-v1' },\n sync: { startup: 'revalidate-working-set', reconnect: 'revalidate-working-set', offlineValidityMs: 86400000, maxAttempts: 5, retryBaseMs: 1000 },\n};\nexport const AXP_IN_APP_INBOX_UNREAD_CONFIG: AXPDataExecutionConfigPatch = {\n read: { strategy: 'cache-first', offlineFallback: 'stale-cache' },\n clientCache: { kind: 'indexed-db', ttlMs: 30000, maxAgeMs: 86400000, maxItems: 1, maxBytes: 1024, fields: ['count', 'capturedAt'] },\n sync: { offlineValidityMs: 86400000 },\n};\naxpRegisterDataExecutionCapabilities({ targetKind: 'Query', targetKey: AXP_IN_APP_INBOX_UNREAD_QUERY, revision: 'inbox-count-v1', operations: ['read'], clientCache: { storageKinds: ['memory', 'indexed-db'], allowedFields: ['count', 'capturedAt'], maxItems: 1, maxBytes: 1024, maxAgeMs: 86400000, allowOfflineRead: true } });\nexport const AXP_IN_APP_INBOX_DATA_CAPABILITIES: AXPEntityDataCapabilities = {\n entityName: 'CommunicationManagement.InAppInbox',\n revision: 'inbox-v5',\n defaultScenarioKey: AXP_IN_APP_INBOX_SCENARIO,\n defaults: { enabled: false },\n cache: { storageKinds: ['memory', 'indexed-db'], allowedFields: fields, maxItems: 100, maxAgeMs: 86400000, allowOfflineRead: true },\n mutationSignals: true,\n workingSetHandlers: [{ key: 'active-inbox', revision: '1' }],\n dependencyHandlers: [],\n offlineOperationHandlers: operations.map((key) => ({ key, replayHandlerKey: `CommunicationManagement:ReplayInbox:${key}`, idempotencyContractKey: 'inbox-engagement-desired-state-v1', supportedConflicts: ['server-wins'] })),\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AA8BA;;ACxBA;MAEa,6BAA6B,GAAG,MAAM,CAAC,+BAA+B;AAEnF;AAEA;MAEa,+BAA+B,GAAG,MAAM,CAAC,iCAAiC;AAOvF;AAEA;MAEa,oCAAoC,GAAG,MAAM,CAAC,sCA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AG,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;AAC5D,IAAA,kBAAkB,EAAE,EAAE;AACtB,IAAA,wBAAwB,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,CAAA,oCAAA,EAAuC,GAAG,CAAA,CAAE,EAAE,sBAAsB,EAAE,mCAAmC,EAAE,kBAAkB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;;;AC9BhO;;AAEG;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as AXMCommunicationManagementMenuProvider, g as AXMCommunicationManagementModule, h as AXMCommunicationManagementPermissionDefinitionProvider, i as AXMCommunicationManagementSearchCommandProvider, j as AXPCommunicationInAppInboxWidgetViewComponent, d as AXPCommunicationManagementClient, A as AXPInAppInboxConnectorService, c as AXPInAppInboxItemComponent, k as AXPInAppInboxPanelComponent, e as AXPInAppInboxRealtimeService, l as AXPInAppInboxSlotComponent, m as AXPMyInAppInboxDashboardWidget, n as AXP_IN_APP_INBOX_CONFIG, b as AXP_IN_APP_INBOX_I18N, o as AXP_IN_APP_INBOX_LEGACY_DB_NAME, p as AXP_IN_APP_INBOX_LOCAL_ENTITY_KEY, q as AXP_IN_APP_INBOX_LOCAL_MAX_ITEMS, r as AXP_IN_APP_INBOX_PORT, s as AXP_IN_APP_INBOX_SYNC_STATUS, t as AXP_MY_IN_APP_INBOX_DASHBOARD_DIMENSIONS, u as buildMyInAppInboxDashboardWidget, v as dedupeInAppInboxItems, w as filterInAppInboxItemsLocally, x as getInAppInboxPriorityClass, y as isArchiveCategoryFilter, z as isInAppInboxUnread, B as isInAppInboxUnseen, C as normalizeInAppInboxItem, D as resolveCommunicationDeliveryChannelsSettingsSection, E as sortInAppInboxItems } from './acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-
|
|
1
|
+
export { f as AXMCommunicationManagementMenuProvider, g as AXMCommunicationManagementModule, h as AXMCommunicationManagementPermissionDefinitionProvider, i as AXMCommunicationManagementSearchCommandProvider, j as AXPCommunicationInAppInboxWidgetViewComponent, d as AXPCommunicationManagementClient, A as AXPInAppInboxConnectorService, c as AXPInAppInboxItemComponent, k as AXPInAppInboxPanelComponent, e as AXPInAppInboxRealtimeService, l as AXPInAppInboxSlotComponent, m as AXPMyInAppInboxDashboardWidget, n as AXP_IN_APP_INBOX_CONFIG, b as AXP_IN_APP_INBOX_I18N, o as AXP_IN_APP_INBOX_LEGACY_DB_NAME, p as AXP_IN_APP_INBOX_LOCAL_ENTITY_KEY, q as AXP_IN_APP_INBOX_LOCAL_MAX_ITEMS, r as AXP_IN_APP_INBOX_PORT, s as AXP_IN_APP_INBOX_SYNC_STATUS, t as AXP_MY_IN_APP_INBOX_DASHBOARD_DIMENSIONS, u as buildMyInAppInboxDashboardWidget, v as dedupeInAppInboxItems, w as filterInAppInboxItemsLocally, x as getInAppInboxPriorityClass, y as isArchiveCategoryFilter, z as isInAppInboxUnread, B as isInAppInboxUnseen, C as normalizeInAppInboxItem, D as resolveCommunicationDeliveryChannelsSettingsSection, E as sortInAppInboxItems } from './acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-Byqo1BAL.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-communication-management-client.mjs.map
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"actions": {
|
|
46
46
|
"refresh": "Refresh",
|
|
47
|
+
"retry-pending": "Retry pending changes",
|
|
47
48
|
"mark-all-read": "Mark All as Read",
|
|
48
49
|
"mark-as-read": "Mark as Read",
|
|
49
50
|
"view-all": "View All",
|
|
@@ -77,7 +78,8 @@
|
|
|
77
78
|
},
|
|
78
79
|
"live-updates-offline": "Live updates unavailable — inbox refreshes when you open it or every minute.",
|
|
79
80
|
"errors": {
|
|
80
|
-
"load-failed": "Failed to load inbox."
|
|
81
|
+
"load-failed": "Failed to load inbox.",
|
|
82
|
+
"download-failed": "Could not download attachment. Please try again."
|
|
81
83
|
},
|
|
82
84
|
"pending-sync": "Changes will sync when you are back online.",
|
|
83
85
|
"state": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"actions": {
|
|
46
46
|
"refresh": "Refresh",
|
|
47
|
+
"retry-pending": "Retry pending changes",
|
|
47
48
|
"mark-all-read": "Mark All as Read",
|
|
48
49
|
"mark-as-read": "Mark as Read",
|
|
49
50
|
"view-all": "View All",
|
|
@@ -77,7 +78,8 @@
|
|
|
77
78
|
},
|
|
78
79
|
"live-updates-offline": "Live updates unavailable — inbox refreshes when you open it or every minute.",
|
|
79
80
|
"errors": {
|
|
80
|
-
"load-failed": "Failed to load inbox."
|
|
81
|
+
"load-failed": "Failed to load inbox.",
|
|
82
|
+
"download-failed": "Could not download attachment. Please try again."
|
|
81
83
|
},
|
|
82
84
|
"pending-sync": "Changes will sync when you are back online.",
|
|
83
85
|
"state": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"actions": {
|
|
46
46
|
"refresh": "بازخوانی",
|
|
47
|
+
"retry-pending": "تلاش مجدد برای تغییرات در انتظار",
|
|
47
48
|
"mark-all-read": "علامتگذاری همه بهعنوان خواندهشده",
|
|
48
49
|
"mark-as-read": "علامتگذاری بهعنوان خواندهشده",
|
|
49
50
|
"view-all": "مشاهده همه",
|
|
@@ -77,7 +78,8 @@
|
|
|
77
78
|
},
|
|
78
79
|
"live-updates-offline": "بهروزرسانی زنده در دسترس نیست — صندوق هنگام باز کردن یا هر دقیقه بازخوانی میشود.",
|
|
79
80
|
"errors": {
|
|
80
|
-
"load-failed": "بارگذاری صندوق ورودی ناموفق بود."
|
|
81
|
+
"load-failed": "بارگذاری صندوق ورودی ناموفق بود.",
|
|
82
|
+
"download-failed": "دانلود پیوست انجام نشد. دوباره تلاش کنید."
|
|
81
83
|
},
|
|
82
84
|
"pending-sync": "وقتی دوباره آنلاین شوید، تغییرات همگام میشوند.",
|
|
83
85
|
"state": {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-communication-management-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@acorex-platform/module-dashboard-management-client": "
|
|
7
|
-
"@acorex-platform/module-organization-management-client": "
|
|
6
|
+
"@acorex-platform/module-dashboard-management-client": "2.0.0-beta.0",
|
|
7
|
+
"@acorex-platform/module-organization-management-client": "2.0.0-beta.0",
|
|
8
8
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
9
9
|
"@angular/core": "^21.0.0 || ^22.0.0"
|
|
10
10
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
1
|
+
import { AXPEntityModel, AXPEntityDataCapabilities } from '@acorex-platform/framework-shared/entity';
|
|
2
2
|
import { AXPModuleManifest } from '@acorex-platform/framework-shared/core';
|
|
3
|
+
import { AXPDataExecutionConfigPatch } from '@acorex-platform/framework-shared/runtime';
|
|
3
4
|
|
|
4
5
|
type CommunicationAggregateStatus = 'Pending' | 'Processing' | 'Completed' | 'Failed' | 'Cancelled';
|
|
5
6
|
type CommunicationDeliveryStatus = 'Pending' | 'Queued' | 'Processing' | 'Accepted' | 'Sent' | 'Delivered' | 'Failed' | 'RetryScheduled' | 'Cancelled' | 'DeadLettered';
|
|
@@ -7,6 +8,16 @@ interface CommunicationMessage {
|
|
|
7
8
|
subject: string;
|
|
8
9
|
body: string;
|
|
9
10
|
}
|
|
11
|
+
/** Durable storage reference; URLs and inline/base64 content are not accepted. */
|
|
12
|
+
interface CommunicationAttachmentReference {
|
|
13
|
+
reference: string;
|
|
14
|
+
}
|
|
15
|
+
interface CommunicationAttachment extends CommunicationAttachmentReference {
|
|
16
|
+
fileId: string;
|
|
17
|
+
name: string;
|
|
18
|
+
mimeType: string;
|
|
19
|
+
size: number;
|
|
20
|
+
}
|
|
10
21
|
interface CommunicationNotificationAction {
|
|
11
22
|
title: string;
|
|
12
23
|
command: {
|
|
@@ -15,6 +26,10 @@ interface CommunicationNotificationAction {
|
|
|
15
26
|
};
|
|
16
27
|
}
|
|
17
28
|
type CommunicationPriority = 'Notice' | 'Danger' | 'Warning';
|
|
29
|
+
interface CommunicationAppearance {
|
|
30
|
+
iconClass?: string;
|
|
31
|
+
color?: string;
|
|
32
|
+
}
|
|
18
33
|
interface AXMCommunicationModel {
|
|
19
34
|
id: string;
|
|
20
35
|
title: string;
|
|
@@ -23,6 +38,8 @@ interface AXMCommunicationModel {
|
|
|
23
38
|
correlationId?: string;
|
|
24
39
|
idempotencyKey?: string;
|
|
25
40
|
actions?: CommunicationNotificationAction[];
|
|
41
|
+
attachments?: CommunicationAttachment[];
|
|
42
|
+
appearance?: CommunicationAppearance;
|
|
26
43
|
status: CommunicationAggregateStatus;
|
|
27
44
|
primaryChannel?: string;
|
|
28
45
|
recipientSummary?: string;
|
|
@@ -47,6 +64,8 @@ interface AXMCommunicationDeliveryModel {
|
|
|
47
64
|
archivedAt?: Date | null;
|
|
48
65
|
timelineSummary?: string;
|
|
49
66
|
}
|
|
67
|
+
declare const HEALTH_RECORD_REMINDER_COMMUNICATION_KEY = "health-record-reminder";
|
|
68
|
+
declare const OVERDUE_TASK_DIGEST_COMMUNICATION_KEY = "overdue-task-digest";
|
|
50
69
|
interface CommunicationSendInput {
|
|
51
70
|
title: string;
|
|
52
71
|
message: CommunicationMessage;
|
|
@@ -71,6 +90,8 @@ interface CommunicationSendInput {
|
|
|
71
90
|
idempotencyKey?: string;
|
|
72
91
|
priority?: CommunicationPriority;
|
|
73
92
|
actions?: CommunicationNotificationAction[];
|
|
93
|
+
attachments?: CommunicationAttachmentReference[];
|
|
94
|
+
appearance?: CommunicationAppearance;
|
|
74
95
|
/**
|
|
75
96
|
* When true, in-app debug redirect must not rewrite the recipient.
|
|
76
97
|
* Required for conversation chat rows created in the sender's HTTP session.
|
|
@@ -101,6 +122,7 @@ interface CommunicationSmtpTestResult {
|
|
|
101
122
|
}
|
|
102
123
|
|
|
103
124
|
interface CommunicationChannelCapabilities {
|
|
125
|
+
attachments?: boolean;
|
|
104
126
|
deliveryConfirmation: boolean;
|
|
105
127
|
deliveryReceipt: boolean;
|
|
106
128
|
seenTracking: boolean;
|
|
@@ -203,12 +225,22 @@ declare const AXMCommunicationManagementCommandKeys: {
|
|
|
203
225
|
|
|
204
226
|
declare function resolveCommunicationMessage(communication: Record<string, unknown>, fallbackTitle?: string): CommunicationMessage;
|
|
205
227
|
|
|
228
|
+
/** Template channels determine delivery; layout-only channels such as print are excluded. */
|
|
229
|
+
declare function communicationTemplateChannels(channels: Record<string, {
|
|
230
|
+
body?: unknown;
|
|
231
|
+
}> | undefined): Array<{
|
|
232
|
+
templateChannel: string;
|
|
233
|
+
communicationChannel: string;
|
|
234
|
+
}>;
|
|
235
|
+
|
|
206
236
|
type CommunicationRecipientLabelInput = Pick<CommunicationSendInput, 'recipientName' | 'recipientAddress' | 'recipientUserId'>;
|
|
207
237
|
declare function resolveCommunicationRecipientLabel(input: CommunicationRecipientLabelInput): string;
|
|
208
238
|
declare function formatCommunicationDeliveryJobTitle(channelLabel: string, input: CommunicationRecipientLabelInput): string;
|
|
209
239
|
|
|
210
240
|
interface CommunicationDeliveryEngagementRequest {
|
|
211
241
|
deliveryIds: string[];
|
|
242
|
+
/** TogglePin: omitted preserves toggle; supplied makes offline replay idempotent. */
|
|
243
|
+
isPinned?: boolean;
|
|
212
244
|
}
|
|
213
245
|
interface CommunicationDeliveryEngagementResult {
|
|
214
246
|
updatedIds: string[];
|
|
@@ -254,7 +286,7 @@ declare const AXPCollaborationPermissionKeys: {
|
|
|
254
286
|
readonly MaintainMeetings: "Collaboration:Permission:MaintainMeetings";
|
|
255
287
|
readonly MaintainCalendars: "Collaboration:Permission:MaintainCalendars";
|
|
256
288
|
readonly MaintainCommunications: "Collaboration:Permission:MaintainCommunications";
|
|
257
|
-
readonly
|
|
289
|
+
readonly MaintainBookings: "Collaboration:Permission:MaintainBookings";
|
|
258
290
|
readonly MaintainHelpDesk: "Collaboration:Permission:MaintainHelpDesk";
|
|
259
291
|
readonly Setup: "Collaboration:Permission:Setup";
|
|
260
292
|
};
|
|
@@ -377,5 +409,12 @@ declare const AXP_COMMUNICATION_STATUS_FAILED: "Failed";
|
|
|
377
409
|
declare const AXP_COMMUNICATION_DELIVERY_STATUS_PENDING: "Pending";
|
|
378
410
|
declare const AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED: "Delivered";
|
|
379
411
|
|
|
380
|
-
|
|
381
|
-
|
|
412
|
+
declare const AXP_IN_APP_INBOX_SCENARIO = "notifications.active";
|
|
413
|
+
declare const AXP_IN_APP_INBOX_UNREAD_QUERY = "CommunicationManagement:Inbox:UnreadCount";
|
|
414
|
+
/** Persisted Profile template; the scenario belongs to its Assignment. */
|
|
415
|
+
declare const AXP_IN_APP_INBOX_EXECUTION_CONFIG: AXPDataExecutionConfigPatch;
|
|
416
|
+
declare const AXP_IN_APP_INBOX_UNREAD_CONFIG: AXPDataExecutionConfigPatch;
|
|
417
|
+
declare const AXP_IN_APP_INBOX_DATA_CAPABILITIES: AXPEntityDataCapabilities;
|
|
418
|
+
|
|
419
|
+
export { AXMCommunicationManagementCommandKeys, AXMCommunicationManagementMenuKeys, AXMCommunicationManagementPermissionKeys, AXMCommunicationManagementServerCommands, AXM_ENTITY_CHANGE_NOTIFY_RUN_COMMAND_KEY, AXPCollaborationPermissionKeys, AXPCommunicationManagementSettingKeys, AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION, AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY, AXP_COMMUNICATION_DELIVERY_STATUS_DELIVERED, AXP_COMMUNICATION_DELIVERY_STATUS_PENDING, AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS, AXP_COMMUNICATION_STATUS_COMPLETED, AXP_COMMUNICATION_STATUS_DEFINITION_KEY, AXP_COMMUNICATION_STATUS_FAILED, AXP_COMMUNICATION_STATUS_PENDING, AXP_COMMUNICATION_STATUS_PROCESSING, AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP, AXP_COMMUNICATION_USER_NOTIFICATION_DEFAULTS, AXP_IN_APP_INBOX_DATA_CAPABILITIES, AXP_IN_APP_INBOX_EXECUTION_CONFIG, AXP_IN_APP_INBOX_SCENARIO, AXP_IN_APP_INBOX_UNREAD_CONFIG, AXP_IN_APP_INBOX_UNREAD_QUERY, BUILTIN_CHANNEL_DEFINITIONS, COMMUNICATION_BUILTIN_CHANNEL_KEYS, COMMUNICATION_CHANNEL_ADAPTER, COMMUNICATION_CHANNEL_SEND_VALIDATOR, COMMUNICATION_DEBUG_REDIRECT_RESOLVER, COMMUNICATION_DELIVERY_ENTITY_NAME, COMMUNICATION_DELIVERY_EXECUTOR, COMMUNICATION_ENTITY_NAME, COMMUNICATION_MANAGEMENT_EMAIL_SEND_COMMAND_KEY, COMMUNICATION_MANAGEMENT_EMAIL_SHOW_DIALOG_COMMAND_KEY, CommunicationManagementManifest, DEFAULT_ENTITY_CHANGE_NOTIFY_DEBOUNCE_SECONDS, ENTITY_CHANGE_NOTIFY_JOB_PROVIDER_KEY, ENTITY_CHANGE_NOTIFY_POLICY_ENTITY_NAME, ENTITY_CHANGE_NOTIFY_POLICY_TENANT_MASTER_NAMESPACE, HEALTH_RECORD_REMINDER_COMMUNICATION_KEY, OVERDUE_TASK_DIGEST_COMMUNICATION_KEY, RootConfig, communicationTemplateChannels, formatCommunicationDeliveryJobTitle, getCommunicationChannel, isBuiltInCommunicationChannel, listCommunicationChannels, registerCommunicationChannel, resolveCommunicationMessage, resolveCommunicationRecipientLabel };
|
|
420
|
+
export type { AXMCommunicationDeliveryModel, AXMCommunicationModel, AXMEntityChangeNotifyOp, AXMEntityChangeNotifyPolicyEntityModel, AXMEntityChangeNotifyRelated, CommunicationAggregateStatus, CommunicationAppearance, CommunicationAttachment, CommunicationAttachmentReference, CommunicationBuiltinChannelKey, CommunicationChannelAdapter, CommunicationChannelAdapterContext, CommunicationChannelCapabilities, CommunicationChannelDefinition, CommunicationChannelDeliverResult, CommunicationChannelSendValidator, CommunicationDebugRedirectResolver, CommunicationDebugRedirectResult, CommunicationDeliverPayload, CommunicationDeliverResult, CommunicationDeliveryEngagementRequest, CommunicationDeliveryEngagementResult, CommunicationDeliveryExecutor, CommunicationDeliveryMutationResult, CommunicationDeliveryStatus, CommunicationManagementEmailSendInput, CommunicationManagementEmailSendResult, CommunicationManagementEmailShowDialogInput, CommunicationMessage, CommunicationNotificationAction, CommunicationPriority, CommunicationRecipientLabelInput, CommunicationSendInput, CommunicationSendResult, CommunicationSmtpSettings, CommunicationSmtpTestInput, CommunicationSmtpTestResult };
|