@acorex-platform/module-communication-management-client 1.0.2 → 2.0.0-beta.1
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-BcFXnANB.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-CFpBj1Ez.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-CFpBj1Ez.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-RGTvumFB.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-zHHa5k8f.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-zHHa5k8f.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-DD8PYXRj.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-DD8PYXRj.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-BcFXnANB.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-RGTvumFB.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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, InjectionToken, Signal } from '@angular/core';
|
|
3
3
|
import * as i1 from '@acorex-platform/framework-client/core';
|
|
4
|
-
import { CommunicationSendInput, CommunicationSendResult, CommunicationDeliveryEngagementRequest, CommunicationDeliveryEngagementResult, CommunicationDeliveryMutationResult, CommunicationSmtpTestInput, CommunicationSmtpTestResult } from '@acorex-platform/module-communication-management-client/contracts';
|
|
4
|
+
import { CommunicationSendInput, CommunicationSendResult, CommunicationDeliveryEngagementRequest, CommunicationDeliveryEngagementResult, CommunicationDeliveryMutationResult, CommunicationSmtpTestInput, CommunicationSmtpTestResult, CommunicationAttachment } from '@acorex-platform/module-communication-management-client/contracts';
|
|
5
5
|
import * as _acorex_platform_module_dashboard_management_client from '@acorex-platform/module-dashboard-management-client';
|
|
6
6
|
import * as dist_libs_modules_dashboard_management_contracts_src from 'dist/libs/modules/dashboard-management/contracts/src';
|
|
7
7
|
import { AXMCommonDashboardEntityModel } from '@acorex-platform/module-dashboard-management-client/contracts';
|
|
8
8
|
import * as _acorex_platform_module_communication_management_client from '@acorex-platform/module-communication-management-client';
|
|
9
9
|
import { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';
|
|
10
10
|
import { AXPWidgetConfig } from '@acorex-platform/framework-shared/widget-core';
|
|
11
|
-
import { AXPUserReference, AXPFilterQuery, AXPPagedListResult } from '@acorex-platform/framework-shared/core';
|
|
11
|
+
import { AXPUserReference, AXPFilterQuery, AXPPagedListResult, AXPFileListItem } from '@acorex-platform/framework-shared/core';
|
|
12
12
|
import * as rxjs from 'rxjs';
|
|
13
13
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
14
14
|
import * as _acorex_platform_framework_client_themes_shared from '@acorex-platform/framework-client/themes/shared';
|
|
@@ -23,6 +23,7 @@ declare class AXMCommunicationManagementModule {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
declare abstract class AXPCommunicationManagementClient {
|
|
26
|
+
abstract downloadAttachment(deliveryId: string, fileId: string): Promise<Blob>;
|
|
26
27
|
abstract send(input: CommunicationSendInput): Promise<CommunicationSendResult>;
|
|
27
28
|
abstract markInAppSeen(request: CommunicationDeliveryEngagementRequest): Promise<CommunicationDeliveryEngagementResult>;
|
|
28
29
|
abstract markInAppRead(request: CommunicationDeliveryEngagementRequest): Promise<CommunicationDeliveryEngagementResult>;
|
|
@@ -76,6 +77,7 @@ interface AXPInAppInboxItem {
|
|
|
76
77
|
sender?: AXPUserReference;
|
|
77
78
|
/** Font Awesome classes for a circular leading icon (used instead of user avatar). */
|
|
78
79
|
iconClass?: string;
|
|
80
|
+
iconColor?: string;
|
|
79
81
|
/** When false, hide the leading avatar/icon for this row. Omitted = show (if the host also allows it). */
|
|
80
82
|
showAvatar?: boolean;
|
|
81
83
|
priority?: AXPInAppInboxPriority;
|
|
@@ -93,6 +95,7 @@ interface AXPInAppInboxItem {
|
|
|
93
95
|
options?: Record<string, unknown>;
|
|
94
96
|
};
|
|
95
97
|
}>;
|
|
98
|
+
attachments?: CommunicationAttachment[];
|
|
96
99
|
}
|
|
97
100
|
interface AXPInAppInboxLoadQuery {
|
|
98
101
|
skip?: number;
|
|
@@ -156,10 +159,13 @@ interface AXPInAppInboxPort {
|
|
|
156
159
|
loadInbox(query?: AXPInAppInboxLoadQuery): Promise<AXPInAppInboxListResult$1>;
|
|
157
160
|
/** Fetch specific deliveries by id (used for realtime delta sync). */
|
|
158
161
|
loadByIds?(ids: string[]): Promise<AXPInAppInboxListResult$1>;
|
|
162
|
+
/** Authorized aggregate over all active deliveries, independent of the hot window. */
|
|
163
|
+
loadUnreadCount?(): Promise<number>;
|
|
159
164
|
markSeen(ids: string[]): Promise<void>;
|
|
160
165
|
markRead(ids: string[]): Promise<void>;
|
|
161
166
|
markAllRead(): Promise<void>;
|
|
162
167
|
togglePin?(id: string): Promise<void>;
|
|
168
|
+
setPinned?(id: string, isPinned: boolean): Promise<void>;
|
|
163
169
|
archive?(ids: string[]): Promise<void>;
|
|
164
170
|
deleteDeliveries?(ids: string[]): Promise<void>;
|
|
165
171
|
}
|
|
@@ -204,17 +210,24 @@ type AXPInAppInboxListResult = Awaited<ReturnType<AXPInAppInboxPort['loadInbox']
|
|
|
204
210
|
* Archived views always load from the API.
|
|
205
211
|
*/
|
|
206
212
|
declare class AXPInAppInboxConnectorService {
|
|
213
|
+
private readonly mutations;
|
|
214
|
+
private readonly commands;
|
|
215
|
+
private readonly queries;
|
|
216
|
+
private readonly executionRuntime;
|
|
207
217
|
private readonly port;
|
|
208
218
|
private readonly realtime;
|
|
209
219
|
private readonly engine;
|
|
220
|
+
private readonly dataPolicies;
|
|
221
|
+
private readonly policyCapabilitiesReady;
|
|
210
222
|
private readonly localBridge;
|
|
211
223
|
private readonly outbox;
|
|
212
|
-
private readonly connectivity;
|
|
213
224
|
private readonly sessionService;
|
|
214
225
|
private readonly destroyRef;
|
|
215
226
|
private readonly entityKey;
|
|
216
227
|
private readonly localItems;
|
|
217
228
|
private readonly isLoading;
|
|
229
|
+
private readonly bootstrapActive;
|
|
230
|
+
private bootstrapGeneration;
|
|
218
231
|
private readonly pageLoading;
|
|
219
232
|
private readonly error;
|
|
220
233
|
private readonly archivePageItems;
|
|
@@ -225,10 +238,15 @@ declare class AXPInAppInboxConnectorService {
|
|
|
225
238
|
private syncInFlight;
|
|
226
239
|
private boundUserKey;
|
|
227
240
|
private legacyDbCleanupDone;
|
|
241
|
+
private readonly unreadQueryKey;
|
|
242
|
+
private readonly unreadSummary;
|
|
228
243
|
readonly capabilities: _acorex_platform_module_communication_management_client.AXPInAppInboxCapabilities;
|
|
229
244
|
readonly loading: _angular_core.Signal<boolean>;
|
|
230
245
|
readonly pageLoadingState: _angular_core.Signal<boolean>;
|
|
231
246
|
readonly errorMessage: _angular_core.Signal<string | null>;
|
|
247
|
+
readonly blockedLegacyOperations: _angular_core.Signal<number>;
|
|
248
|
+
readonly pendingChanges: _angular_core.Signal<boolean>;
|
|
249
|
+
hasRetryableChanges(): boolean;
|
|
232
250
|
readonly inboxList: _angular_core.Signal<AXPInAppInboxItem[]>;
|
|
233
251
|
readonly total: _angular_core.Signal<number>;
|
|
234
252
|
readonly pagedInboxList: _angular_core.Signal<AXPInAppInboxItem[]>;
|
|
@@ -237,7 +255,12 @@ declare class AXPInAppInboxConnectorService {
|
|
|
237
255
|
constructor();
|
|
238
256
|
/** Hydrate from IndexedDB then sync active inbox from the server (idempotent). */
|
|
239
257
|
ensureReady(): Promise<void>;
|
|
258
|
+
/** Explicit retry preserves operation ids, original payloads and current-user isolation. */
|
|
259
|
+
retryPendingWrites(): Promise<void>;
|
|
240
260
|
refresh(): Promise<AXPInAppInboxListResult>;
|
|
261
|
+
/** Reconnect and fallback enter the same policy-aware, coalesced synchronization path. */
|
|
262
|
+
reconcile(_reason: 'reconnect' | 'fallback'): Promise<void>;
|
|
263
|
+
private refreshUnreadSummary;
|
|
241
264
|
loadPage(filtersOrSkip: AXPFilterQuery[] | number, skipOrTake?: number, takeArg?: number): Promise<AXPPagedListResult<AXPInAppInboxItem>>;
|
|
242
265
|
markUnseenAsSeen(): Promise<void>;
|
|
243
266
|
markAsRead(ids: string[]): Promise<void>;
|
|
@@ -267,10 +290,11 @@ declare class AXPInAppInboxConnectorService {
|
|
|
267
290
|
private syncActiveFromServer;
|
|
268
291
|
private syncActiveFromServerInternal;
|
|
269
292
|
private fetchActiveHot;
|
|
293
|
+
/** Read is monotonic for one chat delivery version; a new correlationId admits new unread content. */
|
|
294
|
+
private preserveAcknowledgedVersions;
|
|
270
295
|
private fetchActiveByIds;
|
|
271
296
|
private loadArchivePage;
|
|
272
297
|
private handleRealtimeEvent;
|
|
273
|
-
private canQueueWrites;
|
|
274
298
|
private commitOrEnqueue;
|
|
275
299
|
private flushOutboxOp;
|
|
276
300
|
private revertOutboxOp;
|
|
@@ -288,6 +312,10 @@ declare class AXPInAppInboxConnectorService {
|
|
|
288
312
|
}
|
|
289
313
|
|
|
290
314
|
declare class AXPInAppInboxItemComponent {
|
|
315
|
+
private readonly communicationClient;
|
|
316
|
+
protected readonly downloadFailed: _angular_core.WritableSignal<boolean>;
|
|
317
|
+
protected readonly attachmentFiles: _angular_core.Signal<AXPFileListItem[]>;
|
|
318
|
+
protected readonly downloadAttachment: (file: AXPFileListItem) => Promise<Blob>;
|
|
291
319
|
data: _angular_core.InputSignal<AXPInAppInboxItem>;
|
|
292
320
|
showAvatar: _angular_core.InputSignal<boolean>;
|
|
293
321
|
showDate: _angular_core.InputSignal<boolean>;
|
|
@@ -309,6 +337,7 @@ declare class AXPInAppInboxItemComponent {
|
|
|
309
337
|
} | undefined>;
|
|
310
338
|
protected readonly hasDefaultAction: _angular_core.Signal<boolean>;
|
|
311
339
|
protected readonly headline: _angular_core.Signal<string>;
|
|
340
|
+
protected readonly iconSurfaceClass: _angular_core.Signal<string>;
|
|
312
341
|
protected readonly itemIconClass: _angular_core.Signal<string | undefined>;
|
|
313
342
|
protected readonly showItemLeading: _angular_core.Signal<boolean>;
|
|
314
343
|
protected readonly showItemIcon: _angular_core.Signal<boolean>;
|
|
@@ -445,7 +474,6 @@ declare class AXPInAppInboxSlotComponent {
|
|
|
445
474
|
isPrinting: boolean;
|
|
446
475
|
}>;
|
|
447
476
|
private readonly connector;
|
|
448
|
-
private readonly outbox;
|
|
449
477
|
private readonly syncStatus;
|
|
450
478
|
protected liveUpdatesOffline: _angular_core.Signal<boolean>;
|
|
451
479
|
protected pendingSync: _angular_core.Signal<boolean>;
|