@acorex/connectivity 21.0.0-next.56 → 21.0.0-next.57
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-connectivity-mock-acorex-connectivity-mock-DjTpf9Cv.mjs → acorex-connectivity-mock-acorex-connectivity-mock-DBwcu-v0.mjs} +30 -153
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-DBwcu-v0.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-assign-to-manager.activity-DZKQcO6f.mjs → acorex-connectivity-mock-assign-to-manager.activity-DtDwfWx9.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-assign-to-manager.activity-DZKQcO6f.mjs.map → acorex-connectivity-mock-assign-to-manager.activity-DtDwfWx9.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-CtQaCk3Y.mjs → acorex-connectivity-mock-chat-generate-image.command-DnennBRd.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-CtQaCk3Y.mjs.map → acorex-connectivity-mock-chat-generate-image.command-DnennBRd.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-DqsIX8B8.mjs → acorex-connectivity-mock-chat-synthesize-speech.command-B9NWKlAu.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-DqsIX8B8.mjs.map → acorex-connectivity-mock-chat-synthesize-speech.command-B9NWKlAu.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-B59uD75x.mjs → acorex-connectivity-mock-chat-transcribe-speech.command-Dmp8i9Vc.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-B59uD75x.mjs.map → acorex-connectivity-mock-chat-transcribe-speech.command-Dmp8i9Vc.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-user-roles-for-list-column.query-vEJew9Py.mjs → acorex-connectivity-mock-user-roles-for-list-column.query-DSr7jDGu.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-user-roles-for-list-column.query-vEJew9Py.mjs.map → acorex-connectivity-mock-user-roles-for-list-column.query-DSr7jDGu.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-connectivity-mock.d.ts +0 -10
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-DjTpf9Cv.mjs.map +0 -1
|
@@ -27,12 +27,12 @@ import { AXMDataManagementFeatureKeys, AXMPermissionsKeys as AXMPermissionsKeys$
|
|
|
27
27
|
import { AXPHumanCapitalManagementFeatureKeys, AXMPermissionsKeys as AXMPermissionsKeys$6, RootConfig as RootConfig$j, AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS } from '@acorex/modules/human-capital-management';
|
|
28
28
|
import { RootConfig as RootConfig$5 } from '@acorex/modules/locale-management';
|
|
29
29
|
import { AXMPermissionsKeys as AXMPermissionsKeys$1, AXMSubscriptionManagementSubscriptionEntityService, AXMSubscriptionManagementSubscriptionPlanItemEntityService, RootConfig as RootConfig$x } from '@acorex/modules/subscription-management';
|
|
30
|
-
import { AXPSecurityManagementPermissionKeys, AXMUserAccessState, resolveAXMUserEffectiveState, RootConfig as RootConfig$6,
|
|
30
|
+
import { AXPSecurityManagementPermissionKeys, AXMUserAccessState, resolveAXMUserEffectiveState, RootConfig as RootConfig$6, AXMPolicyService } from '@acorex/modules/security-management';
|
|
31
31
|
import { AXMTenantManagementPermissionsKeys, AXMTenantService, AXMTenantManagementTenantUserEntityService, RootConfig as RootConfig$A } from '@acorex/modules/tenant-management';
|
|
32
32
|
import { AXMPermissionsKeys as AXMPermissionsKeys$5, RootConfig as RootConfig$e, AXMDocumentTypeServiceImpl, AXPDocumentManagementService } from '@acorex/modules/document-management';
|
|
33
33
|
import { AXMSettingsManagementPermissionKeys } from '@acorex/modules/settings-management';
|
|
34
34
|
import { AXMPermissionsKeys as AXMPermissionsKeys$3, RootConfig as RootConfig$z, AXPWorkflowTaskProvider, matchesTaskBoardAssigneeFilter } from '@acorex/modules/task-management';
|
|
35
|
-
import { AXMPermissionsKeys as AXMPermissionsKeys$4, AXMChatConversationApi, AXMChatMessageApi, axmAssistFollowUpItemsFromUnknown, axmAssistUserFacingPayloadLine, axmBuildAssistTranscriptLinePayload, AXM_ASSIST_TRANSCRIPT_LINE_PAYLOAD_TYPE, AXMChatRealtimeApi, AXMChatUserApi, axmIsAssistPeerParticipant,
|
|
35
|
+
import { AXMPermissionsKeys as AXMPermissionsKeys$4, AXMChatConversationApi, AXMChatMessageApi, axmAssistFollowUpItemsFromUnknown, axmAssistUserFacingPayloadLine, axmBuildAssistTranscriptLinePayload, AXM_ASSIST_TRANSCRIPT_LINE_PAYLOAD_TYPE, AXMChatRealtimeApi, AXMChatUserApi, axmIsAssistPeerParticipant, RootConfig as RootConfig$a } from '@acorex/modules/conversation';
|
|
36
36
|
import { RootConfig as RootConfig$7 } from '@acorex/modules/business-core';
|
|
37
37
|
import { RootConfig as RootConfig$8 } from '@acorex/modules/calendar-management';
|
|
38
38
|
import { AXFileService } from '@acorex/core/file';
|
|
@@ -40,7 +40,7 @@ import { RootConfig as RootConfig$9, resolveTextTemplateLocalizedString, replace
|
|
|
40
40
|
import { conversationSharedStorage, axConversationIndexedDbStorage, AXConversationAiResponderService } from '@acorex/components/conversation2';
|
|
41
41
|
import { AXMNotificationEntityService, RootConfig as RootConfig$q, AXMNotificationEntityServiceImpl, AXMNotificationRealtimeService, NOTIFICATION_MANAGEMENT_EMAIL_SEND_COMMAND_KEY } from '@acorex/modules/notification-management';
|
|
42
42
|
import { AXToastService } from '@acorex/components/toast';
|
|
43
|
-
import { Observable, filter, pairwise, map, merge
|
|
43
|
+
import { Observable, filter, pairwise, map, merge } from 'rxjs';
|
|
44
44
|
import { RootConfig as RootConfig$b } from '@acorex/modules/customer-management';
|
|
45
45
|
import { RootConfig as RootConfig$c } from '@acorex/modules/dashboard-management';
|
|
46
46
|
import { AXDataSource } from '@acorex/cdk/common';
|
|
@@ -5321,7 +5321,7 @@ class AXCEntityDefinitionsModule {
|
|
|
5321
5321
|
constructor(appInitService) {
|
|
5322
5322
|
// appInitService.registerTask({
|
|
5323
5323
|
// name: 'StoredModuleManifests',
|
|
5324
|
-
// statusText: '
|
|
5324
|
+
// statusText: '@general:app-startup.registering-stored-module-manifests',
|
|
5325
5325
|
// priority: 3,
|
|
5326
5326
|
// run: () => storedModuleManifestRegistrar.registerFromEntityDefinitionStore(),
|
|
5327
5327
|
// });
|
|
@@ -14545,7 +14545,7 @@ const AI_ASSIST_MOCK = [
|
|
|
14545
14545
|
{
|
|
14546
14546
|
id: AXMAiDemisAssistId,
|
|
14547
14547
|
name: 'demis-payment-guide',
|
|
14548
|
-
title: M$19('
|
|
14548
|
+
title: M$19('Magfa Assistant', 'دستیار هوشمند مرکز کسترش فناوری اطلاعات'),
|
|
14549
14549
|
metadata: {
|
|
14550
14550
|
agent_uuid: AXMAiDemisAssistAgentUuid,
|
|
14551
14551
|
},
|
|
@@ -21445,7 +21445,7 @@ class AXCAiManagementMockModule {
|
|
|
21445
21445
|
provideCommandSetups([
|
|
21446
21446
|
{
|
|
21447
21447
|
key: 'AiManagement:ChatGenerateImage',
|
|
21448
|
-
command: () => import('./acorex-connectivity-mock-chat-generate-image.command-
|
|
21448
|
+
command: () => import('./acorex-connectivity-mock-chat-generate-image.command-DnennBRd.mjs').then((c) => c.AiManagementChatGenerateImageCommand),
|
|
21449
21449
|
},
|
|
21450
21450
|
{
|
|
21451
21451
|
key: 'AiManagement:ExtractDocumentText',
|
|
@@ -21457,11 +21457,11 @@ class AXCAiManagementMockModule {
|
|
|
21457
21457
|
},
|
|
21458
21458
|
{
|
|
21459
21459
|
key: 'AiManagement:ChatTranscribeSpeech',
|
|
21460
|
-
command: () => import('./acorex-connectivity-mock-chat-transcribe-speech.command-
|
|
21460
|
+
command: () => import('./acorex-connectivity-mock-chat-transcribe-speech.command-Dmp8i9Vc.mjs').then((c) => c.AiManagementChatTranscribeSpeechCommand),
|
|
21461
21461
|
},
|
|
21462
21462
|
{
|
|
21463
21463
|
key: 'AiManagement:ChatSynthesizeSpeech',
|
|
21464
|
-
command: () => import('./acorex-connectivity-mock-chat-synthesize-speech.command-
|
|
21464
|
+
command: () => import('./acorex-connectivity-mock-chat-synthesize-speech.command-B9NWKlAu.mjs').then((c) => c.AiManagementChatSynthesizeSpeechCommand),
|
|
21465
21465
|
},
|
|
21466
21466
|
]),
|
|
21467
21467
|
] }); }
|
|
@@ -21514,7 +21514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
21514
21514
|
provideCommandSetups([
|
|
21515
21515
|
{
|
|
21516
21516
|
key: 'AiManagement:ChatGenerateImage',
|
|
21517
|
-
command: () => import('./acorex-connectivity-mock-chat-generate-image.command-
|
|
21517
|
+
command: () => import('./acorex-connectivity-mock-chat-generate-image.command-DnennBRd.mjs').then((c) => c.AiManagementChatGenerateImageCommand),
|
|
21518
21518
|
},
|
|
21519
21519
|
{
|
|
21520
21520
|
key: 'AiManagement:ExtractDocumentText',
|
|
@@ -21526,11 +21526,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
21526
21526
|
},
|
|
21527
21527
|
{
|
|
21528
21528
|
key: 'AiManagement:ChatTranscribeSpeech',
|
|
21529
|
-
command: () => import('./acorex-connectivity-mock-chat-transcribe-speech.command-
|
|
21529
|
+
command: () => import('./acorex-connectivity-mock-chat-transcribe-speech.command-Dmp8i9Vc.mjs').then((c) => c.AiManagementChatTranscribeSpeechCommand),
|
|
21530
21530
|
},
|
|
21531
21531
|
{
|
|
21532
21532
|
key: 'AiManagement:ChatSynthesizeSpeech',
|
|
21533
|
-
command: () => import('./acorex-connectivity-mock-chat-synthesize-speech.command-
|
|
21533
|
+
command: () => import('./acorex-connectivity-mock-chat-synthesize-speech.command-B9NWKlAu.mjs').then((c) => c.AiManagementChatSynthesizeSpeechCommand),
|
|
21534
21534
|
},
|
|
21535
21535
|
]),
|
|
21536
21536
|
],
|
|
@@ -40187,15 +40187,6 @@ class AXCConversationMockConversationApi extends AXMChatConversationApi {
|
|
|
40187
40187
|
lastMessageAt: new Date(),
|
|
40188
40188
|
unreadCount: 0,
|
|
40189
40189
|
status: { isTyping: false, typingUsers: [] },
|
|
40190
|
-
permissions: {
|
|
40191
|
-
canSendMessages: true,
|
|
40192
|
-
canSendMedia: true,
|
|
40193
|
-
canDeleteMessages: true,
|
|
40194
|
-
canAddMembers: data.type !== 'private',
|
|
40195
|
-
canRemoveMembers: data.type !== 'private',
|
|
40196
|
-
canEditInfo: data.type !== 'private',
|
|
40197
|
-
canPinMessages: true,
|
|
40198
|
-
},
|
|
40199
40190
|
settings: { notifications: true, showPreview: true },
|
|
40200
40191
|
archived: false,
|
|
40201
40192
|
metadata: storedMetadata,
|
|
@@ -40357,12 +40348,12 @@ class AXCConversationMockConversationApi extends AXMChatConversationApi {
|
|
|
40357
40348
|
}
|
|
40358
40349
|
//#endregion
|
|
40359
40350
|
//#region ---- Permissions ----
|
|
40360
|
-
async getConversationPermissions(_conversationId) {
|
|
40361
|
-
|
|
40362
|
-
}
|
|
40363
|
-
async updateConversationPermissions(_conversationId, _permissions) {
|
|
40364
|
-
|
|
40365
|
-
}
|
|
40351
|
+
// async getConversationPermissions(_conversationId: string): Promise<Record<string, boolean>> {
|
|
40352
|
+
// return { canSendMessages: true, canSendMedia: true, canDeleteMessages: true };
|
|
40353
|
+
// }
|
|
40354
|
+
// async updateConversationPermissions(_conversationId: string, _permissions: Record<string, boolean>): Promise<void> {
|
|
40355
|
+
// await Promise.resolve();
|
|
40356
|
+
// }
|
|
40366
40357
|
//#endregion
|
|
40367
40358
|
//#region ---- Draft Management ----
|
|
40368
40359
|
async saveDraft(_conversationId, _draft) {
|
|
@@ -40405,9 +40396,7 @@ class AXCConversationMockConversationApi extends AXMChatConversationApi {
|
|
|
40405
40396
|
avatar: typeof avatar === 'string' ? avatar : undefined,
|
|
40406
40397
|
status: 'online',
|
|
40407
40398
|
lastSeen: new Date(),
|
|
40408
|
-
metadata: directAgentId
|
|
40409
|
-
? { directAgentId, kind: 'agent-assist' }
|
|
40410
|
-
: { assistId: catalogPeerId, kind: 'assist' },
|
|
40399
|
+
metadata: directAgentId ? { directAgentId, kind: 'agent-assist' } : { assistId: catalogPeerId, kind: 'assist' },
|
|
40411
40400
|
};
|
|
40412
40401
|
conversationSharedStorage.participants.set(participantId, participant);
|
|
40413
40402
|
await axConversationIndexedDbStorage.putParticipant(participant);
|
|
@@ -41128,9 +41117,7 @@ class AXCConversationMockMessageApi extends AXMChatMessageApi {
|
|
|
41128
41117
|
const contextAiMessageCount = messages.length;
|
|
41129
41118
|
const demisSessionUuid = await this.resolveDemisSessionUuidForConversation(conversationId, modelEntityId);
|
|
41130
41119
|
const runResult = await this.aiEngine.run({
|
|
41131
|
-
...(target.directAgentId
|
|
41132
|
-
? { directAgentId: target.directAgentId }
|
|
41133
|
-
: { assistId: target.assistId }),
|
|
41120
|
+
...(target.directAgentId ? { directAgentId: target.directAgentId } : { assistId: target.assistId }),
|
|
41134
41121
|
messages,
|
|
41135
41122
|
modelEntityId,
|
|
41136
41123
|
...(demisSessionUuid ? { demisSessionUuid } : {}),
|
|
@@ -41138,7 +41125,7 @@ class AXCConversationMockMessageApi extends AXMChatMessageApi {
|
|
|
41138
41125
|
AXMAiRuleMarkdownName,
|
|
41139
41126
|
// AXMAiRuleWorkflowNarrationName
|
|
41140
41127
|
],
|
|
41141
|
-
includeAgents: [AXPAI_CONVERSATION_FOLLOW_UP_AGENT_NAME],
|
|
41128
|
+
// includeAgents: [AXPAI_CONVERSATION_FOLLOW_UP_AGENT_NAME],
|
|
41142
41129
|
onRunEvent: (event) => {
|
|
41143
41130
|
switch (event.type) {
|
|
41144
41131
|
case 'assistant_stream_reset':
|
|
@@ -41385,8 +41372,7 @@ class AXCConversationMockMessageApi extends AXMChatMessageApi {
|
|
|
41385
41372
|
return null;
|
|
41386
41373
|
}
|
|
41387
41374
|
turnTranscriptHasFollowUpSegment(transcript) {
|
|
41388
|
-
return transcript.some((m) => m.role === 'assistant' &&
|
|
41389
|
-
m.responses.some((r) => r.type === 'followUp' && r.content.length > 0));
|
|
41375
|
+
return transcript.some((m) => m.role === 'assistant' && m.responses.some((r) => r.type === 'followUp' && r.content.length > 0));
|
|
41390
41376
|
}
|
|
41391
41377
|
appendFollowUpToDemisAssistantTurn(transcript, followUp) {
|
|
41392
41378
|
const out = transcript.map((m) => ({ ...m, responses: [...m.responses] }));
|
|
@@ -41705,9 +41691,7 @@ class AXCConversationMockMessageApi extends AXMChatMessageApi {
|
|
|
41705
41691
|
*/
|
|
41706
41692
|
async resolveModelDisplayTitle(modelEntityId, target) {
|
|
41707
41693
|
try {
|
|
41708
|
-
const models = await this.modelCatalog.listModels(target.directAgentId
|
|
41709
|
-
? { directAgentId: target.directAgentId }
|
|
41710
|
-
: { assistId: target.assistId ?? '' });
|
|
41694
|
+
const models = await this.modelCatalog.listModels(target.directAgentId ? { directAgentId: target.directAgentId } : { assistId: target.assistId ?? '' });
|
|
41711
41695
|
const hit = models.find((m) => m.id === modelEntityId);
|
|
41712
41696
|
if (!hit) {
|
|
41713
41697
|
return modelEntityId;
|
|
@@ -42352,15 +42336,6 @@ const chatMock = [
|
|
|
42352
42336
|
lastMessageAt: new Date(now$2.getTime() - 60000),
|
|
42353
42337
|
unreadCount: 2,
|
|
42354
42338
|
status: { isTyping: false, typingUsers: [] },
|
|
42355
|
-
permissions: {
|
|
42356
|
-
canSendMessages: true,
|
|
42357
|
-
canSendMedia: true,
|
|
42358
|
-
canDeleteMessages: true,
|
|
42359
|
-
canAddMembers: false,
|
|
42360
|
-
canRemoveMembers: false,
|
|
42361
|
-
canEditInfo: false,
|
|
42362
|
-
canPinMessages: true,
|
|
42363
|
-
},
|
|
42364
42339
|
settings: { notifications: true, showPreview: true },
|
|
42365
42340
|
archived: false,
|
|
42366
42341
|
metadata: {
|
|
@@ -42381,15 +42356,6 @@ const chatMock = [
|
|
|
42381
42356
|
lastMessageAt: new Date(now$2.getTime() - 7200000),
|
|
42382
42357
|
unreadCount: 0,
|
|
42383
42358
|
status: { isTyping: false, typingUsers: [] },
|
|
42384
|
-
permissions: {
|
|
42385
|
-
canSendMessages: true,
|
|
42386
|
-
canSendMedia: true,
|
|
42387
|
-
canDeleteMessages: true,
|
|
42388
|
-
canAddMembers: false,
|
|
42389
|
-
canRemoveMembers: false,
|
|
42390
|
-
canEditInfo: false,
|
|
42391
|
-
canPinMessages: true,
|
|
42392
|
-
},
|
|
42393
42359
|
settings: { notifications: true, showPreview: true },
|
|
42394
42360
|
archived: false,
|
|
42395
42361
|
metadata: {
|
|
@@ -42416,15 +42382,6 @@ const chatMock = [
|
|
|
42416
42382
|
lastMessageAt: new Date(now$2.getTime() - 3600000),
|
|
42417
42383
|
unreadCount: 1,
|
|
42418
42384
|
status: { isTyping: false, typingUsers: [] },
|
|
42419
|
-
permissions: {
|
|
42420
|
-
canSendMessages: true,
|
|
42421
|
-
canSendMedia: true,
|
|
42422
|
-
canDeleteMessages: true,
|
|
42423
|
-
canAddMembers: true,
|
|
42424
|
-
canRemoveMembers: true,
|
|
42425
|
-
canEditInfo: true,
|
|
42426
|
-
canPinMessages: true,
|
|
42427
|
-
},
|
|
42428
42385
|
settings: { notifications: true, showPreview: true },
|
|
42429
42386
|
archived: false,
|
|
42430
42387
|
metadata: {
|
|
@@ -42459,15 +42416,6 @@ const chatMock = [
|
|
|
42459
42416
|
lastMessageAt: new Date(now$2.getTime() - 10800000),
|
|
42460
42417
|
unreadCount: 0,
|
|
42461
42418
|
status: { isTyping: false, typingUsers: [] },
|
|
42462
|
-
permissions: {
|
|
42463
|
-
canSendMessages: true,
|
|
42464
|
-
canSendMedia: true,
|
|
42465
|
-
canDeleteMessages: true,
|
|
42466
|
-
canAddMembers: true,
|
|
42467
|
-
canRemoveMembers: true,
|
|
42468
|
-
canEditInfo: true,
|
|
42469
|
-
canPinMessages: true,
|
|
42470
|
-
},
|
|
42471
42419
|
settings: { notifications: true, showPreview: true },
|
|
42472
42420
|
archived: false,
|
|
42473
42421
|
metadata: {
|
|
@@ -43024,80 +42972,9 @@ const MESSAGES = Array.from({ length: 100 }).map(() => {
|
|
|
43024
42972
|
class AXPMessageDataSeeder {
|
|
43025
42973
|
constructor() {
|
|
43026
42974
|
this.storageService = inject(AXPEntityStorageService);
|
|
43027
|
-
this.chatService = inject(AXMChatManagementService);
|
|
43028
|
-
this.chatRealtimeService = inject(AXMChatRealtimeService);
|
|
43029
|
-
this.commentService = inject(AXMCommentManagementService);
|
|
43030
|
-
this.commentRealtimeService = inject(AXMCommentRealtimeService);
|
|
43031
|
-
this.usersService = inject(AXMUsersEntityService);
|
|
43032
|
-
this.sessionService = inject(AXPSessionService);
|
|
43033
|
-
this.userNameCache = new Map();
|
|
43034
|
-
}
|
|
43035
|
-
async getUserName(userId) {
|
|
43036
|
-
if (this.userNameCache.has(userId)) {
|
|
43037
|
-
return this.userNameCache.get(userId);
|
|
43038
|
-
}
|
|
43039
|
-
try {
|
|
43040
|
-
const user = await this.usersService.getOne(userId);
|
|
43041
|
-
const fullName = `${user.displayName}`.trim();
|
|
43042
|
-
this.userNameCache.set(userId, fullName);
|
|
43043
|
-
return fullName;
|
|
43044
|
-
}
|
|
43045
|
-
catch {
|
|
43046
|
-
return 'Unknown User';
|
|
43047
|
-
}
|
|
43048
42975
|
}
|
|
43049
42976
|
async seed() {
|
|
43050
42977
|
await this.storageService.initial(`${RootConfig$a.module.name}.${RootConfig$a.entities.message.name}`, MESSAGES);
|
|
43051
|
-
this.sessionService.user$
|
|
43052
|
-
.pipe(filter((user) => !!user), take(1))
|
|
43053
|
-
.subscribe((user) => {
|
|
43054
|
-
const currentUserId = user.id;
|
|
43055
|
-
this.chatRealtimeService.message$
|
|
43056
|
-
.pipe(filter((event) => event.type === 'add'), map((event) => event.payload), filter((message) => message.author.id === currentUserId), throttleTime(1000))
|
|
43057
|
-
.subscribe(async (message) => {
|
|
43058
|
-
try {
|
|
43059
|
-
const room = await this.chatService.getRoom(message.roomId);
|
|
43060
|
-
const otherMembers = room.members.filter((member) => member.id !== message.author.id);
|
|
43061
|
-
if (otherMembers.length === 0) {
|
|
43062
|
-
return;
|
|
43063
|
-
}
|
|
43064
|
-
const randomMember = otherMembers[Math.floor(Math.random() * otherMembers.length)];
|
|
43065
|
-
const { items: messageHistory } = await this.chatService.getMessages(room.id, 0, 99);
|
|
43066
|
-
messageHistory.reverse();
|
|
43067
|
-
const formattedHistory = await Promise.all(messageHistory.map(async (msg) => {
|
|
43068
|
-
const authorName = await this.getUserName(msg.author.id);
|
|
43069
|
-
return `${authorName}: ${msg.message.content}`;
|
|
43070
|
-
}));
|
|
43071
|
-
const conversationLog = formattedHistory.join('\n');
|
|
43072
|
-
// Previous implementation used an AI responder service to generate
|
|
43073
|
-
// automatic replies in the mock conversation. That dependency has
|
|
43074
|
-
// been removed in favor of the new AI infrastructure, so we no
|
|
43075
|
-
// longer generate automatic replies here.
|
|
43076
|
-
}
|
|
43077
|
-
catch (error) {
|
|
43078
|
-
console.error('Error seeding mock message:', error);
|
|
43079
|
-
}
|
|
43080
|
-
});
|
|
43081
|
-
this.commentRealtimeService.comment$
|
|
43082
|
-
.pipe(filter((event) => event.type === 'add'), map((event) => event.payload), filter((comment) => comment.author.id === currentUserId), throttleTime(1000), take(3))
|
|
43083
|
-
.subscribe(async (comment) => {
|
|
43084
|
-
try {
|
|
43085
|
-
const { items: allUsers } = await this.usersService.query({ skip: 0, take: 100 });
|
|
43086
|
-
const otherUsers = allUsers.filter((u) => u.id !== comment.author.id);
|
|
43087
|
-
if (otherUsers.length === 0) {
|
|
43088
|
-
return;
|
|
43089
|
-
}
|
|
43090
|
-
const randomUser = otherUsers[Math.floor(Math.random() * otherUsers.length)];
|
|
43091
|
-
// Previous implementation used an AI responder service to generate
|
|
43092
|
-
// automatic replies in the mock comments. That dependency has
|
|
43093
|
-
// been removed in favor of the new AI infrastructure, so we no
|
|
43094
|
-
// longer generate automatic replies here.
|
|
43095
|
-
}
|
|
43096
|
-
catch (error) {
|
|
43097
|
-
console.error('Error seeding mock comment:', error);
|
|
43098
|
-
}
|
|
43099
|
-
});
|
|
43100
|
-
});
|
|
43101
42978
|
}
|
|
43102
42979
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPMessageDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
43103
42980
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPMessageDataSeeder }); }
|
|
@@ -67457,7 +67334,7 @@ class AXCSecurityManagementMockModule {
|
|
|
67457
67334
|
provideQuerySetups([
|
|
67458
67335
|
{
|
|
67459
67336
|
key: 'SecurityManagement:User:RolesForListColumn',
|
|
67460
|
-
loader: () => import('./acorex-connectivity-mock-user-roles-for-list-column.query-
|
|
67337
|
+
loader: () => import('./acorex-connectivity-mock-user-roles-for-list-column.query-DSr7jDGu.mjs').then((m) => m.UserRolesForListColumnQuery),
|
|
67461
67338
|
},
|
|
67462
67339
|
]),
|
|
67463
67340
|
] }); }
|
|
@@ -67501,7 +67378,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
67501
67378
|
provideQuerySetups([
|
|
67502
67379
|
{
|
|
67503
67380
|
key: 'SecurityManagement:User:RolesForListColumn',
|
|
67504
|
-
loader: () => import('./acorex-connectivity-mock-user-roles-for-list-column.query-
|
|
67381
|
+
loader: () => import('./acorex-connectivity-mock-user-roles-for-list-column.query-DSr7jDGu.mjs').then((m) => m.UserRolesForListColumnQuery),
|
|
67505
67382
|
},
|
|
67506
67383
|
]),
|
|
67507
67384
|
],
|
|
@@ -77424,7 +77301,7 @@ class AXCWorkflowManagementMockModule {
|
|
|
77424
77301
|
if (engine && typeof engine.resumeStaleNonHumanTaskSuspensions === 'function') {
|
|
77425
77302
|
appInitService.registerTask({
|
|
77426
77303
|
name: 'WorkflowStaleSuspensions',
|
|
77427
|
-
statusText: '
|
|
77304
|
+
statusText: '@workflow-management:app-startup.resuming-stale-suspensions',
|
|
77428
77305
|
priority: 10,
|
|
77429
77306
|
run: async () => {
|
|
77430
77307
|
await engine.resumeStaleNonHumanTaskSuspensions();
|
|
@@ -77448,7 +77325,7 @@ class AXCWorkflowManagementMockModule {
|
|
|
77448
77325
|
provideCommandSetups([
|
|
77449
77326
|
{
|
|
77450
77327
|
key: 'workflow-activity:assign-to-manager',
|
|
77451
|
-
command: () => import('./acorex-connectivity-mock-assign-to-manager.activity-
|
|
77328
|
+
command: () => import('./acorex-connectivity-mock-assign-to-manager.activity-DtDwfWx9.mjs').then((c) => c.AssignToManagerActivity),
|
|
77452
77329
|
},
|
|
77453
77330
|
{
|
|
77454
77331
|
key: 'workflow-activity:get-current-user-manager',
|
|
@@ -77559,7 +77436,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
77559
77436
|
provideCommandSetups([
|
|
77560
77437
|
{
|
|
77561
77438
|
key: 'workflow-activity:assign-to-manager',
|
|
77562
|
-
command: () => import('./acorex-connectivity-mock-assign-to-manager.activity-
|
|
77439
|
+
command: () => import('./acorex-connectivity-mock-assign-to-manager.activity-DtDwfWx9.mjs').then((c) => c.AssignToManagerActivity),
|
|
77563
77440
|
},
|
|
77564
77441
|
{
|
|
77565
77442
|
key: 'workflow-activity:get-current-user-manager',
|
|
@@ -81584,7 +81461,7 @@ class AXCMockModule {
|
|
|
81584
81461
|
const seederService = injector.get(AXPDataSeederService);
|
|
81585
81462
|
appInitService.registerTask({
|
|
81586
81463
|
name: 'Mock',
|
|
81587
|
-
statusText: '
|
|
81464
|
+
statusText: '@general:app-startup.seeding-data',
|
|
81588
81465
|
priority: 1,
|
|
81589
81466
|
run: async () => {
|
|
81590
81467
|
if (backendType === 'firestore') {
|
|
@@ -81599,7 +81476,7 @@ class AXCMockModule {
|
|
|
81599
81476
|
const entityDefSeeder = injector.get(AXCEntityDefinitionSeederService);
|
|
81600
81477
|
appInitService.registerTask({
|
|
81601
81478
|
name: 'Entity Definitions',
|
|
81602
|
-
statusText: '
|
|
81479
|
+
statusText: '@general:app-startup.seeding-entity-definitions',
|
|
81603
81480
|
priority: 2,
|
|
81604
81481
|
run: async () => {
|
|
81605
81482
|
await entityDefSeeder.seed();
|
|
@@ -81897,4 +81774,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
81897
81774
|
*/
|
|
81898
81775
|
|
|
81899
81776
|
export { AXCFileStorageServiceFirestore as $, AXCAiChatRouterService as A, AXCAuthMockModule as B, AXCCalendarDataSeeder as C, AXCCalendarEventDataSeeder as D, AXCCalendarManagementMockModule as E, AXCCommandRegistryDataSeeder as F, AXCCommonMockModule as G, AXCContactCoreMockModule as H, AXCContentManagementMockModule as I, AXCConversationDataSeeder as J, AXCConversationMockConversationApi as K, AXCConversationMockMessageApi as L, AXCConversationMockModule as M, AXCConversationMockRealtimeApi as N, AXCConversationMockUserApi as O, AXCCustomerManagementMockModule as P, AXCDashboardManagementMockModule as Q, AXCDataManagementMockModule as R, AXCDexieEntityStorageService as S, AXCDocumentManagementMockModule as T, AXCEditionDataSeeder as U, AXCEntityDefinitionSeederService as V, AXCEntityDefinitionsModule as W, AXCEntityStorageInsertCommand as X, AXCEntityStorageModule as Y, AXCEntityStorageQueryQuery as Z, AXCFileStorageServiceDexie as _, AXMAiModelStableIds as a, AXMCalendarEventTypeSeeder as a$, AXCFinancialCoreMockModule as a0, AXCFirestoreEntityStorageService as a1, AXCFormTemplateManagementMockModule as a2, AXCGoogleStrategyMock as a3, AXCHealthCoreMockModule as a4, AXCHelpDeskMockModule as a5, AXCHumanCapitalManagementMockModule as a6, AXCIdentifierManagementMockModule as a7, AXCImageCaptchaChallengeProviderMock as a8, AXCLearningManagementMockModule as a9, AXCTaskManagementMockModule as aA, AXCTenantManagementMockModule as aB, AXCTenantSeeder as aC, AXCTextTemplateRenderBackend as aD, AXCTokensDataSeeder as aE, AXCUserPassStrategyMock as aF, AXCVersionDB as aG, AXCVersioningService as aH, AXCWidgetCatalogDataSeeder as aI, AXCWorkflowCategorySeeder as aJ, AXCWorkflowDefinitionDataSeeder as aK, AXCWorkflowEngine as aL, AXCWorkflowExecutionDB as aM, AXCWorkflowExecutionStoreDexie as aN, AXCWorkflowExecutionStoreFirestore as aO, AXCWorkflowInstanceCartableDemoSeeder as aP, AXCWorkflowManagementMockModule as aQ, AXC_ENTITY_STORAGE_BACKEND_TYPE as aR, AXC_FIRESTORE_CONFIG as aS, AXC_FIRESTORE_DB as aT, AXC_WORKFLOW_EXECUTION_STORE as aU, AXMAiDemisAssistAgentUuid as aV, AXMAiDemisAssistId as aW, AXMAiDemisGeneralAssistId as aX, AXMAiPlatformAssistantAssistId as aY, AXMAutomationDataSeeder as aZ, AXMBusinessUnitDataSeeder as a_, AXCLocaleManagementMockModule as aa, AXCLocationManagementMockModule as ab, AXCLockService as ac, AXCMeasurementCoreMockModule as ad, AXCMeetingManagementMockModule as ae, AXCMetaDataDefinitionDataSeeder as af, AXCMetadataCategorySeeder as ag, AXCMiddlewaresModule as ah, AXCMockCaptchaChallengeComponent as ai, AXCMockEntityLogListener as aj, AXCMockModule as ak, AXCMockShowMetaDataFormPopupCommand as al, AXCNotificationManagementMockModule as am, AXCOrderManagementMockModule as an, AXCOrganizationManagementMockModule as ao, AXCPersonCoreMockModule as ap, AXCPlatformManagementMockModule as aq, AXCProcurementManagementMockModule as ar, AXCProductCatalogMockModule as as, AXCProjectManagementMockModule as at, AXCQueryRegistryDataSeeder as au, AXCReportManagementMockModule as av, AXCSecurityManagementMockModule as aw, AXCStoredEntityDefinitionLoader as ax, AXCSubscriptionManagementMockModule as ay, AXCSupplierManagementMockModule as az, resolveAssistSpeechModelId as b, FINANCE_ENTERPRISE as b$, AXMDashboardChartDataSourceDefinition as b0, AXMEmployeeDataSeeder as b1, AXMEmploymentTypeDataSeeder as b2, AXMFormDataSourcesProvider as b3, AXMJobDefinitionDataSeeder as b4, AXMJobLevelDataSeeder as b5, AXMLeaveRequestDataSeeder as b6, AXMMeetingDataSeeder as b7, AXMMeetingFilesDataSeeder as b8, AXMMeetingParticipantDataSeeder as b9, AXPMockIdentifierService as bA, AXPMockLookupProvider as bB, AXPMockPolicyProvider as bC, AXPMockSequenceProvider as bD, AXPRoomDataSeeder as bE, AXPSecurityManagementRoleDataSeeder as bF, AXPSecurityManagementUserDataSeeder as bG, AXPTaskBoardPlatformManagementTaskProvider as bH, AXPTaskBoardProjectManagementTaskProvider as bI, AXVChangeType as bJ, BCC as bK, BOC as bL, BUSINESS_UNITS_MOCK as bM, CHAT_LAST_MESSAGE_IDS as bN, COLLABORATION_STANDARD as bO, COSTMANAGER_ENTERPRISE as bP, COSTMANAGER_PROFESSIONAL as bQ, COSTMANAGER_STANDARD as bR, CP as bS, CRM_ENTERPRISE as bT, DASHBOARDS as bU, EDITIONS as bV, EMPLOYEES_MOCK as bW, EMPLOYMENT_TYPES_MOCK as bX, ENTITY_DEFINITION_MAP as bY, ENTITY_REGISTRY as bZ, FINANCE_BASIC as b_, AXMMeetingRoleTypeDataSeeder as ba, AXMMeetingSessionDataSeeder as bb, AXMMeetingTypeDataSeeder as bc, AXMMeetingTypeFileTemplateDataSeeder as bd, AXMPositionAssignmentDataSeeder as be, AXMPositionDataSeeder as bf, AXMQuestionBankItemCategoryDataSeeder as bg, AXMQuestionBankItemDataSeeder as bh, AXMQuestionnaireCalculationDataSeeder as bi, AXMQuestionnaireCategoryDataSeeder as bj, AXMQuestionnaireDataSeeder as bk, AXMResponsibilityDataSeeder as bl, AXMTagDataSeeder as bm, AXMTeamBusinessUnitDataSeeder as bn, AXMTeamDataSeeder as bo, AXMTeamMemberDataSeeder as bp, AXMTeamMemberRoleDataSeeder as bq, AXMWorkflowDashboardChartDataSourceDefinition as br, AXM_AI_REGISTRY_COMMAND_NAME as bs, AXM_AI_REGISTRY_QUERY_NAME as bt, AXM_CORPORATE_BUSINESS_UNIT_ID as bu, AXPDashboardDataSeeder as bv, AXPIdentifierDB as bw, AXPMessageDataSeeder as bx, AXPMockChecksumProvider as by, AXPMockClockProvider as bz, resolveDelegatedAssistOptionString as c, WS as c$, FINANCE_PRO as c0, G as c1, HR_ENTERPRISE as c2, HW as c3, JOB_DEFINITIONS_CATEGORY_MOCK as c4, JOB_DEFINITIONS_MOCK as c5, JOB_DEFINITION_CATEGORY_KEY_TO_ID as c6, JOB_LEVELS_MOCK as c7, LASER_PLUMBING_TENANT_ID as c8, LEAVE_REQUESTS_MOCK as c9, QWS as cA, RESPONSIBILITIES_CATEGORY_MOCK as cB, RESPONSIBILITIES_MOCK as cC, RESPONSIBILITY_CATEGORY_KEY_TO_ID as cD, SAFETYMINDER_BASIC as cE, SAFETYMINDER_ENTERPRISE as cF, SAFETYMINDER_PROFESSIONAL as cG, SHOP_BASIC as cH, SHOP_ENTERPRISE as cI, SHOP_PRO as cJ, TAGS_MOCK as cK, TASKS as cL, TASK_STATUSES as cM, TASK_TEMPLATES as cN, TASK_TYPES as cO, TEAMS_CATEGORY_MOCK as cP, TEAMS_MOCK as cQ, TEAM_BUSINESS_UNITS_MOCK as cR, TEAM_CATEGORY_KEY_TO_ID as cS, TEAM_MEMBERS_MOCK as cT, TEAM_MEMBER_ROLES_MOCK as cU, TIMEPLICITY_TENANT_ID as cV, TLA as cW, TOKENS as cX, TPC as cY, VISIBILITY_FILTER_BYPASS as cZ, WORKFLOW_CATEGORIES as c_, MAGFA_COMMERCE_STANDARD as ca, MAGFA_CONVERSATION_DASHBOARD as cb, MAGFA_TENANT_ID as cc, METADATA_CATEGORY_IDS as cd, METADATA_GENERAL_CATEGORY_REFS as ce, METADATA_SYSTEM_CATEGORY_REFS as cf, MLC as cg, OHR as ch, ORDERING_BASIC as ci, ORDERING_ENTERPRISE as cj, ORDERING_STANDARD as ck, OWNERSHIP_FILTER_BYPASS as cl, PLATFORM_CONSOLE as cm, PLATFORM_TENANT_ID as cn, PM as co, POSITIONS_CATEGORY_MOCK as cp, POSITIONS_MOCK as cq, POSITION_ASSIGNMENTS_MOCK as cr, QCP as cs, QGEN as ct, QHW as cu, QOHR as cv, QPM as cw, QTLE as cx, QUESTIONNAIRE_CATEGORY_MOCK as cy, QUESTION_BANK_ITEM_CATEGORY_MOCK as cz, axcSyncSingleEmployeeDenormalizedOrgFields as d, meetingRoleTypeMock as d$, activityCategoryMocks as d0, activityDefinitionEntityMock as d1, applyEntityDefinitionFirestoreSnapshot as d2, automationCommandMiddleware as d3, automationMock as d4, avatarInterface as d5, awaitConversationMockSharedStorage as d6, axVersionDB as d7, axWorkflowExecutionDB as d8, axcPatchEmployeeActivePrimaryBusinessUnitRefsFromRows as d9, createWorkflowDefinitionEntityMock as dA, dateInterface as dB, dateTimeInterface as dC, descriptionInterface as dD, documentFolderSyncMiddleware as dE, emailInterface as dF, entityDefDb as dG, entityValidationMiddleware as dH, fileUploaderInterface as dI, finalizeActivityCategoryItemCounts as dJ, findEmployeeById as dK, folderStorageMiddleware as dL, groupOrderItemCalculatorMiddleware as dM, historyMiddleware as dN, identifierCommitMiddleware as dO, imageInterface as dP, inspectionOkXNaInterface as dQ, loadMockPropertyDefinitions as dR, lockGuardMiddleware as dS, longTextAnswerInterface as dT, lookupInterface as dU, lookupResolverMiddleware as dV, mapInterface as dW, meetingFilesMock as dX, meetingIds as dY, meetingMock as dZ, meetingParticipantMock as d_, axcPatchEmployeeActivePrimaryPositionRefsFromRows as da, axcPatchEmployeeManagerRefsFromRows as db, axcResolveCommandRegistrySeedId as dc, axcResolveQueryRegistrySeedId as dd, axcResolveWidgetCatalogSeedId as de, bankCategory as df, buildEntityStorageQuickSearchFilter as dg, buildWorkflowInstanceCartableDemoRows as dh, bypassAllFilters as di, bypassOwnershipFilter as dj, bypassVisibilityFilter as dk, calendarEventMock as dl, calendarEventTypeMockData as dm, calendarMock as dn, chatMessageMock as dp, chatMock as dq, checkboxInterface as dr, childCountMiddleware as ds, clearEntityDefinitionFirestoreCollections as dt, colorInterface as du, computeDiff as dv, contactInterface as dw, conversationDemoSeedUserIds as dx, createFileCastMiddleware as dy, createWidgetLayoutConfig as dz, ACTIVITY_CATEGORIES as e, meetingSessionMock as e0, meetingTimeSlotMock as e1, meetingTypeFileTemplateMock as e2, meetingTypeMock as e3, mergeDetailRelationMiddleware as e4, mergeQuickSearchIntoRequest as e5, metadataCategoryMocks as e6, mockParticipantIndexForSecurityUserId as e7, mockQuestionBankItemByName as e8, mockRoleDefinitions as e9, selectionListInterface as eA, sexAtBirthInterface as eB, signatureInterface as eC, signatureLoaderMiddleware as eD, statusDefaultMiddleware as eE, tagInterface as eF, tenantMocks as eG, textAreaInterface as eH, textInterface as eI, timeDurationInterface as eJ, titleInterface as eK, toUiRows as eL, toggleInterface as eM, tokenCategoryIds as eN, tokenCategoryMocks as eO, urlInterface as eP, versionInterface as eQ, visibilityFilterMiddleware as eR, workflowDefinitionEntityMock as eS, workflowDefinitionIds as eT, workflowDefinitionMock as eU, yesNoInterface as eV, multipleChoiceInterface as ea, multipleSelectInterface as eb, normalizeAnyFileArrayForView as ec, normalizeSnapshotFileFieldsForView as ed, numberInterface as ee, parseEntityStorageInsertData as ef, parseEntityStorageQueryRequest as eg, participantIds as eh, participantMock as ei, passwordInterface as ej, personIdentifierTypeMock as ek, personIds as el, personLegalIds as em, personMock as en, personNaturalIds as eo, phoneInterface as ep, primaryMiddleware as eq, provideMockPropertySetups as er, qrcodeInterface as es, questionBankItemMock as et, questionnaireCalculationMock as eu, questionnaireMock as ev, ratingInterface as ew, richTextInterface as ex, scaleInterface as ey, selectInterface as ez, ACTIVITY_CATEGORY_ID_BY_KEY as f, ACTIVITY_DEFINITIONS as g, AI_ASSIST_MOCK as h, AI_MODEL_MOCK as i, APPLICATIONS as j, APPLICATION_CATEGORY_IDS as k, APPLICATION_CATEGORY_MOCKS as l, mockUsers as m, AXCActivityCategorySeeder as n, AXCActivityDefinitionSeeder as o, AXCAiAssistSeeder as p, AXCAiManagementMockModule as q, resolveDelegatedAssistOptionModel as r, AXCAiModelSeeder as s, AXCAppTermDataSeeder as t, AXCAppVersionDataSeeder as u, AXCApplicationCategoryDataSeeder as v, AXCApplicationDataSeeder as w, AXCApplicationManagementMockModule as x, AXCAssessmentManagementMockModule as y, AXCAssetManagementMockModule as z };
|
|
81900
|
-
//# sourceMappingURL=acorex-connectivity-mock-acorex-connectivity-mock-
|
|
81777
|
+
//# sourceMappingURL=acorex-connectivity-mock-acorex-connectivity-mock-DBwcu-v0.mjs.map
|