@acorex/connectivity 21.0.0-next.31 → 21.0.0-next.34
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-G8Opk5JU.mjs → acorex-connectivity-mock-acorex-connectivity-mock-BpUUTZOi.mjs} +694 -330
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-BpUUTZOi.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-CPGQNlRz.mjs → acorex-connectivity-mock-chat-generate-image.command-BA0r4IMn.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-CPGQNlRz.mjs.map → acorex-connectivity-mock-chat-generate-image.command-BA0r4IMn.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-BXem7bHF.mjs → acorex-connectivity-mock-chat-synthesize-speech.command-B5-8a7SC.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-BXem7bHF.mjs.map → acorex-connectivity-mock-chat-synthesize-speech.command-B5-8a7SC.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-TP4dUKlp.mjs → acorex-connectivity-mock-chat-transcribe-speech.command-BGzXvTnh.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-TP4dUKlp.mjs.map → acorex-connectivity-mock-chat-transcribe-speech.command-BGzXvTnh.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-connectivity-mock.d.ts +47 -5
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-G8Opk5JU.mjs.map +0 -1
|
@@ -3,7 +3,7 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { inject, Injectable } from '@angular/core';
|
|
4
4
|
import { AXPFileStorageService } from '@acorex/platform/common';
|
|
5
5
|
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
6
|
-
import { A as AXCAiChatRouterService, r as resolveDelegatedAssistOptionModel } from './acorex-connectivity-mock-acorex-connectivity-mock-
|
|
6
|
+
import { A as AXCAiChatRouterService, r as resolveDelegatedAssistOptionModel } from './acorex-connectivity-mock-acorex-connectivity-mock-BpUUTZOi.mjs';
|
|
7
7
|
|
|
8
8
|
//#region ---- Imports ----
|
|
9
9
|
function parseGenerateImageInput(args) {
|
|
@@ -111,4 +111,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
111
111
|
}] });
|
|
112
112
|
|
|
113
113
|
export { AiManagementChatGenerateImageCommand };
|
|
114
|
-
//# sourceMappingURL=acorex-connectivity-mock-chat-generate-image.command-
|
|
114
|
+
//# sourceMappingURL=acorex-connectivity-mock-chat-generate-image.command-BA0r4IMn.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-connectivity-mock-chat-generate-image.command-
|
|
1
|
+
{"version":3,"file":"acorex-connectivity-mock-chat-generate-image.command-BA0r4IMn.mjs","sources":["../../../../libs/connectivity/mock/src/lib/ai-management/commands/chat-generate-image.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n AI_CHAT_GENERATED_IMAGE_REF_TYPE,\n AI_GENERATED_IMAGE_MAX_REMOTE_URL_IN_TOOL,\n AXPAiChatToolRunContextService,\n blobOrFileFromImageResult,\n persistAiGeneratedImage,\n RootConfig,\n} from '@acorex/modules/ai-management';\nimport { Injectable, inject } from '@angular/core';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { AXPFileStorageService } from '@acorex/platform/common';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\n\nimport type { AXMAiAssistRow } from '../ai-agent-engine.types';\nimport { resolveDelegatedAssistOptionModel } from '../ai-delegated-agent-parameters.util';\nimport { AXCAiChatRouterService } from '../chat/ai-chat-router.service';\n\n//#endregion\n\n//#region ---- Command: AiManagement:ChatGenerateImage ----\n\nexport interface AiManagementChatGenerateImageInput {\n /** Catalog `AiModel` row id for an image-purpose model. When omitted, uses `delegatedAgents[].options.model` for the active delegated specialist (`agentId` in run context). */\n model?: string;\n prompt?: string;\n size?: string;\n style?: string;\n}\n\nfunction parseGenerateImageInput(args: unknown):\n | { ok: true; model?: string; prompt: string; size?: string; style?: string }\n | { ok: false; error: string } {\n const obj =\n args != null && typeof args === 'object' && !Array.isArray(args)\n ? (args as Record<string, unknown>)\n : null;\n if (!obj) {\n return { ok: false, error: 'Invalid arguments: expected an object.' };\n }\n const prompt = typeof obj['prompt'] === 'string' ? obj['prompt'].trim() : '';\n if (!prompt) {\n return { ok: false, error: 'Invalid arguments: \"prompt\" is required and must be non-empty.' };\n }\n const model = typeof obj['model'] === 'string' ? obj['model'].trim() : undefined;\n const size = typeof obj['size'] === 'string' ? obj['size'].trim() : undefined;\n const style = typeof obj['style'] === 'string' ? obj['style'].trim() : undefined;\n return {\n ok: true,\n prompt,\n ...(model ? { model } : {}),\n ...(size ? { size } : {}),\n ...(style ? { style } : {}),\n };\n}\n\n@Injectable()\nexport class AiManagementChatGenerateImageCommand\n implements AXPCommand<AiManagementChatGenerateImageInput, { fileId?: string; prompt: string; imageUrl?: string }>\n{\n private readonly aiChatRouter = inject(AXCAiChatRouterService);\n private readonly runContext = inject(AXPAiChatToolRunContextService);\n private readonly fileStorage = inject(AXPFileStorageService);\n private readonly entityService = inject(AXPEntityService);\n\n private readonly assistData = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.assist.name)\n .data<string, AXMAiAssistRow, AXMAiAssistRow, AXMAiAssistRow, AXMAiAssistRow>();\n\n async execute(\n input: AiManagementChatGenerateImageInput,\n ): Promise<AXPExecuteCommandResult<{ fileId?: string; prompt: string; imageUrl?: string }>> {\n const ctx = this.runContext.getContext();\n if (!ctx?.assistId?.trim()) {\n return {\n success: false,\n message: {\n text: 'Image generation requires an active AI chat run context (assist id).',\n },\n };\n }\n\n const parsed = parseGenerateImageInput(input);\n if (!parsed.ok) {\n return { success: false, message: { text: parsed.error } };\n }\n\n try {\n const assist = await this.assistData.byKey(ctx.assistId.trim());\n if (!assist) {\n return {\n success: false,\n message: { text: `Assist row was not found (id: ${ctx.assistId.trim()}).` },\n };\n }\n\n const modelEntityId =\n parsed.model?.trim() || resolveDelegatedAssistOptionModel(assist, ctx.agentId) || '';\n if (!modelEntityId) {\n return {\n success: false,\n message: {\n text:\n 'No image model: pass \"model\" (catalog id) or set options.model on the image-generation delegated specialist row for this assist.',\n },\n };\n }\n\n let composedPrompt = parsed.prompt;\n if (parsed.style?.trim()) {\n composedPrompt = `${composedPrompt}\\nStyle: ${parsed.style.trim()}`;\n }\n\n const { imageUrl } = await this.aiChatRouter.generateImage({\n modelEntityId,\n prompt: composedPrompt,\n size: parsed.size?.trim() || undefined,\n });\n\n try {\n const file = await blobOrFileFromImageResult(imageUrl);\n const { fileId } = await persistAiGeneratedImage(this.fileStorage, file, {\n refId: assist.id,\n refType: AI_CHAT_GENERATED_IMAGE_REF_TYPE,\n });\n return { success: true, data: { fileId, prompt: parsed.prompt } };\n } catch (persistErr) {\n const u = imageUrl.trim();\n if (u.startsWith('https://') && u.length <= AI_GENERATED_IMAGE_MAX_REMOTE_URL_IN_TOOL) {\n return {\n success: true,\n data: { prompt: parsed.prompt, imageUrl: u },\n };\n }\n const pmsg = persistErr instanceof Error ? persistErr.message : String(persistErr);\n throw new Error(`Could not store generated image for chat replay. ${pmsg}`);\n }\n } catch (e) {\n const msg = e instanceof Error ? e.message : String(e);\n return { success: false, message: { text: msg } };\n }\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAAA;AAgCA,SAAS,uBAAuB,CAAC,IAAa,EAAA;AAG5C,IAAA,MAAM,GAAG,GACP,IAAI,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,C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AAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE;qBAC7C;gBACH;AACA,gBAAA,MAAM,IAAI,GAAG,UAAU,YAAY,KAAK,GAAG,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC;AAClF,gBAAA,MAAM,IAAI,KAAK,CAAC,oDAAoD,IAAI,CAAA,CAAE,CAAC;YAC7E;QACF;QAAE,OAAO,CAAC,EAAE;AACV,YAAA,MAAM,GAAG,GAAG,CAAC,YAAY,KAAK,GAAG,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;AACtD,YAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QACnD;IACF;8GApFW,oCAAoC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAApC,oCAAoC,EAAA,CAAA,CAAA;;2FAApC,oCAAoC,EAAA,UAAA,EAAA,CAAA;kBADhD;;;;;"}
|
|
@@ -3,7 +3,7 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { inject, Injectable } from '@angular/core';
|
|
4
4
|
import { AXPFileStorageService } from '@acorex/platform/common';
|
|
5
5
|
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
6
|
-
import { A as AXCAiChatRouterService, r as resolveDelegatedAssistOptionModel, a as resolveDelegatedAssistOptionString } from './acorex-connectivity-mock-acorex-connectivity-mock-
|
|
6
|
+
import { A as AXCAiChatRouterService, r as resolveDelegatedAssistOptionModel, a as resolveDelegatedAssistOptionString } from './acorex-connectivity-mock-acorex-connectivity-mock-BpUUTZOi.mjs';
|
|
7
7
|
|
|
8
8
|
//#region ---- Imports ----
|
|
9
9
|
function extForMime(mime) {
|
|
@@ -127,4 +127,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
127
127
|
}] });
|
|
128
128
|
|
|
129
129
|
export { AiManagementChatSynthesizeSpeechCommand };
|
|
130
|
-
//# sourceMappingURL=acorex-connectivity-mock-chat-synthesize-speech.command-
|
|
130
|
+
//# sourceMappingURL=acorex-connectivity-mock-chat-synthesize-speech.command-B5-8a7SC.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-connectivity-mock-chat-synthesize-speech.command-BXem7bHF.mjs","sources":["../../../../libs/connectivity/mock/src/lib/ai-management/commands/chat-synthesize-speech.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n AI_CHAT_GENERATED_SPEECH_REF_TYPE,\n AXPAiChatToolRunContextService,\n persistAiGeneratedSpeech,\n RootConfig,\n} from '@acorex/modules/ai-management';\nimport { Injectable, inject } from '@angular/core';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { AXPFileStorageService } from '@acorex/platform/common';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\n\nimport type { AXMAiAssistRow } from '../ai-agent-engine.types';\nimport {\n resolveDelegatedAssistOptionModel,\n resolveDelegatedAssistOptionString,\n} from '../ai-delegated-agent-parameters.util';\nimport { AXCAiChatRouterService } from '../chat/ai-chat-router.service';\n\n//#endregion\n\n//#region ---- Command: AiManagement:ChatSynthesizeSpeech ----\n\nexport interface AiManagementChatSynthesizeSpeechInput {\n /** Catalog `AiModel` row id (purpose `tts`). When omitted, uses `delegatedAgents[].options.model` for the active delegated specialist. */\n model?: string;\n text?: string;\n voice?: string;\n responseFormat?: string;\n}\n\nfunction extForMime(mime: string): string {\n const m = mime.toLowerCase();\n if (m.includes('mpeg') || m.includes('mp3')) {\n return 'mp3';\n }\n if (m.includes('wav')) {\n return 'wav';\n }\n if (m.includes('opus')) {\n return 'opus';\n }\n if (m.includes('ogg')) {\n return 'ogg';\n }\n if (m.includes('aac')) {\n return 'aac';\n }\n if (m.includes('flac')) {\n return 'flac';\n }\n return 'bin';\n}\n\nfunction parseSynthesizeInput(args: unknown):\n | { ok: true; model?: string; text: string; voice?: string; responseFormat?: string }\n | { ok: false; error: string } {\n const obj =\n args != null && typeof args === 'object' && !Array.isArray(args)\n ? (args as Record<string, unknown>)\n : null;\n if (!obj) {\n return { ok: false, error: 'Invalid arguments: expected an object.' };\n }\n const text = typeof obj['text'] === 'string' ? obj['text'].trim() : '';\n if (!text) {\n return { ok: false, error: 'Invalid arguments: \"text\" is required and must be non-empty.' };\n }\n const model = typeof obj['model'] === 'string' ? obj['model'].trim() : undefined;\n const voice = typeof obj['voice'] === 'string' ? obj['voice'].trim() : undefined;\n const responseFormat =\n typeof obj['responseFormat'] === 'string' ? obj['responseFormat'].trim() : undefined;\n return {\n ok: true,\n text,\n ...(model ? { model } : {}),\n ...(voice ? { voice } : {}),\n ...(responseFormat ? { responseFormat } : {}),\n };\n}\n\n@Injectable()\nexport class AiManagementChatSynthesizeSpeechCommand\n implements\n AXPCommand<\n AiManagementChatSynthesizeSpeechInput,\n { fileId?: string; text: string; mimeType?: string }\n >\n{\n private readonly aiChatRouter = inject(AXCAiChatRouterService);\n private readonly runContext = inject(AXPAiChatToolRunContextService);\n private readonly fileStorage = inject(AXPFileStorageService);\n private readonly entityService = inject(AXPEntityService);\n\n private readonly assistData = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.assist.name)\n .data<string, AXMAiAssistRow, AXMAiAssistRow, AXMAiAssistRow, AXMAiAssistRow>();\n\n async execute(\n input: AiManagementChatSynthesizeSpeechInput,\n ): Promise<AXPExecuteCommandResult<{ fileId?: string; text: string; mimeType?: string }>> {\n const ctx = this.runContext.getContext();\n if (!ctx?.assistId?.trim()) {\n return {\n success: false,\n message: {\n text: 'Text-to-speech requires an active AI chat run context (assist id).',\n },\n };\n }\n\n const parsed = parseSynthesizeInput(input);\n if (!parsed.ok) {\n return { success: false, message: { text: parsed.error } };\n }\n\n try {\n const assist = await this.assistData.byKey(ctx.assistId.trim());\n if (!assist) {\n return {\n success: false,\n message: { text: `Assist row was not found (id: ${ctx.assistId.trim()}).` },\n };\n }\n\n const modelEntityId =\n parsed.model?.trim() || resolveDelegatedAssistOptionModel(assist, ctx.agentId) || '';\n if (!modelEntityId) {\n return {\n success: false,\n message: {\n text:\n 'No TTS model: pass \"model\" (catalog id) or set options.model on the text-to-speech delegated specialist row for this assist.',\n },\n };\n }\n\n const voiceFromAssist =\n resolveDelegatedAssistOptionString(assist, ctx.agentId, 'voice') || undefined;\n const voice = parsed.voice?.trim() || voiceFromAssist || 'alloy';\n\n const { audioBytes, mimeType } = await this.aiChatRouter.synthesizeSpeech({\n modelEntityId,\n text: parsed.text,\n voice,\n ...(parsed.responseFormat?.trim() ? { responseFormat: parsed.responseFormat.trim() } : {}),\n });\n\n const mt = mimeType?.trim() || 'application/octet-stream';\n const ext = extForMime(mt);\n const file = new File([audioBytes], `ai-tts.${ext}`, { type: mt });\n\n try {\n const { fileId } = await persistAiGeneratedSpeech(this.fileStorage, file, {\n refId: assist.id,\n refType: AI_CHAT_GENERATED_SPEECH_REF_TYPE,\n });\n return { success: true, data: { fileId, text: parsed.text, mimeType: mt } };\n } catch (persistErr) {\n const pmsg = persistErr instanceof Error ? persistErr.message : String(persistErr);\n throw new Error(`Could not store synthesized speech for chat replay. ${pmsg}`);\n }\n } catch (e) {\n const msg = e instanceof Error ? e.message : String(e);\n return { success: false, message: { text: msg } };\n }\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAAA;AAiCA,SAAS,UAAU,CAAC,IAAY,EAAA;AAC9B,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE;AAC5B,IAAA,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC3C,QAAA,OAAO,KAAK;IACd;AACA,IAAA,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAA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UAAA,EAAA,CAAA;kBADnD;;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-connectivity-mock-chat-synthesize-speech.command-B5-8a7SC.mjs","sources":["../../../../libs/connectivity/mock/src/lib/ai-management/commands/chat-synthesize-speech.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n AI_CHAT_GENERATED_SPEECH_REF_TYPE,\n AXPAiChatToolRunContextService,\n persistAiGeneratedSpeech,\n RootConfig,\n} from '@acorex/modules/ai-management';\nimport { Injectable, inject } from '@angular/core';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { AXPFileStorageService } from '@acorex/platform/common';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\n\nimport type { AXMAiAssistRow } from '../ai-agent-engine.types';\nimport {\n resolveDelegatedAssistOptionModel,\n resolveDelegatedAssistOptionString,\n} from '../ai-delegated-agent-parameters.util';\nimport { AXCAiChatRouterService } from '../chat/ai-chat-router.service';\n\n//#endregion\n\n//#region ---- Command: AiManagement:ChatSynthesizeSpeech ----\n\nexport interface AiManagementChatSynthesizeSpeechInput {\n /** Catalog `AiModel` row id (purpose `tts`). When omitted, uses `delegatedAgents[].options.model` for the active delegated specialist. */\n model?: string;\n text?: string;\n voice?: string;\n responseFormat?: string;\n}\n\nfunction extForMime(mime: string): string {\n const m = mime.toLowerCase();\n if (m.includes('mpeg') || m.includes('mp3')) {\n return 'mp3';\n }\n if (m.includes('wav')) {\n return 'wav';\n }\n if (m.includes('opus')) {\n return 'opus';\n }\n if (m.includes('ogg')) {\n return 'ogg';\n }\n if (m.includes('aac')) {\n return 'aac';\n }\n if (m.includes('flac')) {\n return 'flac';\n }\n return 'bin';\n}\n\nfunction parseSynthesizeInput(args: unknown):\n | { ok: true; model?: string; text: string; voice?: string; responseFormat?: string }\n | { ok: false; error: string } {\n const obj =\n args != null && typeof args === 'object' && !Array.isArray(args)\n ? (args as Record<string, unknown>)\n : null;\n if (!obj) {\n return { ok: false, error: 'Invalid arguments: expected an object.' };\n }\n const text = typeof obj['text'] === 'string' ? obj['text'].trim() : '';\n if (!text) {\n return { ok: false, error: 'Invalid arguments: \"text\" is required and must be non-empty.' };\n }\n const model = typeof obj['model'] === 'string' ? obj['model'].trim() : undefined;\n const voice = typeof obj['voice'] === 'string' ? obj['voice'].trim() : undefined;\n const responseFormat =\n typeof obj['responseFormat'] === 'string' ? obj['responseFormat'].trim() : undefined;\n return {\n ok: true,\n text,\n ...(model ? { model } : {}),\n ...(voice ? { voice } : {}),\n ...(responseFormat ? { responseFormat } : {}),\n };\n}\n\n@Injectable()\nexport class AiManagementChatSynthesizeSpeechCommand\n implements\n AXPCommand<\n AiManagementChatSynthesizeSpeechInput,\n { fileId?: string; text: string; mimeType?: string }\n >\n{\n private readonly aiChatRouter = inject(AXCAiChatRouterService);\n private readonly runContext = inject(AXPAiChatToolRunContextService);\n private readonly fileStorage = inject(AXPFileStorageService);\n private readonly entityService = inject(AXPEntityService);\n\n private readonly assistData = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.assist.name)\n .data<string, AXMAiAssistRow, AXMAiAssistRow, AXMAiAssistRow, AXMAiAssistRow>();\n\n async execute(\n input: AiManagementChatSynthesizeSpeechInput,\n ): Promise<AXPExecuteCommandResult<{ fileId?: string; text: string; mimeType?: string }>> {\n const ctx = this.runContext.getContext();\n if (!ctx?.assistId?.trim()) {\n return {\n success: false,\n message: {\n text: 'Text-to-speech requires an active AI chat run context (assist id).',\n },\n };\n }\n\n const parsed = parseSynthesizeInput(input);\n if (!parsed.ok) {\n return { success: false, message: { text: parsed.error } };\n }\n\n try {\n const assist = await this.assistData.byKey(ctx.assistId.trim());\n if (!assist) {\n return {\n success: false,\n message: { text: `Assist row was not found (id: ${ctx.assistId.trim()}).` },\n };\n }\n\n const modelEntityId =\n parsed.model?.trim() || resolveDelegatedAssistOptionModel(assist, ctx.agentId) || '';\n if (!modelEntityId) {\n return {\n success: false,\n message: {\n text:\n 'No TTS model: pass \"model\" (catalog id) or set options.model on the text-to-speech delegated specialist row for this assist.',\n },\n };\n }\n\n const voiceFromAssist =\n resolveDelegatedAssistOptionString(assist, ctx.agentId, 'voice') || undefined;\n const voice = parsed.voice?.trim() || voiceFromAssist || 'alloy';\n\n const { audioBytes, mimeType } = await this.aiChatRouter.synthesizeSpeech({\n modelEntityId,\n text: parsed.text,\n voice,\n ...(parsed.responseFormat?.trim() ? { responseFormat: parsed.responseFormat.trim() } : {}),\n });\n\n const mt = mimeType?.trim() || 'application/octet-stream';\n const ext = extForMime(mt);\n const file = new File([audioBytes], `ai-tts.${ext}`, { type: mt });\n\n try {\n const { fileId } = await persistAiGeneratedSpeech(this.fileStorage, file, {\n refId: assist.id,\n refType: AI_CHAT_GENERATED_SPEECH_REF_TYPE,\n });\n return { success: true, data: { fileId, text: parsed.text, mimeType: mt } };\n } catch (persistErr) {\n const pmsg = persistErr instanceof Error ? persistErr.message : String(persistErr);\n throw new Error(`Could not store synthesized speech for chat replay. ${pmsg}`);\n }\n } catch (e) {\n const msg = e instanceof Error ? e.message : String(e);\n return { success: false, message: { text: msg } };\n }\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAAA;AAiCA,SAAS,UAAU,CAAC,IAAY,EAAA;AAC9B,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE;AAC5B,IAAA,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC3C,QAAA,OAAO,KAAK;IACd;AACA,IAAA,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrB,QAAA,OAAO,KAAK;IACd;AACA,IAAA,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AACtB,QAAA,OAAO,MAAM;IACf;AACA,IAAA,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrB,QAAA,OAAO,K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EAAE,UAAU,GAAG,CAAA,CAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AAElE,YAAA,IAAI;AACF,gBAAA,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,wBAAwB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE;oBACxE,KAAK,EAAE,MAAM,CAAC,EAAE;AAChB,oBAAA,OAAO,EAAE,iCAAiC;AAC3C,iBAAA,CAAC;gBACF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE;YAC7E;YAAE,OAAO,UAAU,EAAE;AACnB,gBAAA,MAAM,IAAI,GAAG,UAAU,YAAY,KAAK,GAAG,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC;AAClF,gBAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,IAAI,CAAA,CAAE,CAAC;YAChF;QACF;QAAE,OAAO,CAAC,EAAE;AACV,YAAA,MAAM,GAAG,GAAG,CAAC,YAAY,KAAK,GAAG,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;AACtD,YAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QACnD;IACF;8GApFW,uCAAuC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAvC,uCAAuC,EAAA,CAAA,CAAA;;2FAAvC,uCAAuC,EAAA,UAAA,EAAA,CAAA;kBADnD;;;;;"}
|
|
@@ -3,7 +3,7 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { inject, Injectable } from '@angular/core';
|
|
4
4
|
import { AXPFileStorageService } from '@acorex/platform/common';
|
|
5
5
|
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
6
|
-
import { A as AXCAiChatRouterService, r as resolveDelegatedAssistOptionModel, a as resolveDelegatedAssistOptionString } from './acorex-connectivity-mock-acorex-connectivity-mock-
|
|
6
|
+
import { A as AXCAiChatRouterService, r as resolveDelegatedAssistOptionModel, a as resolveDelegatedAssistOptionString } from './acorex-connectivity-mock-acorex-connectivity-mock-BpUUTZOi.mjs';
|
|
7
7
|
|
|
8
8
|
//#region ---- Imports ----
|
|
9
9
|
function parseTranscribeInput(args) {
|
|
@@ -107,4 +107,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
107
107
|
}] });
|
|
108
108
|
|
|
109
109
|
export { AiManagementChatTranscribeSpeechCommand };
|
|
110
|
-
//# sourceMappingURL=acorex-connectivity-mock-chat-transcribe-speech.command-
|
|
110
|
+
//# sourceMappingURL=acorex-connectivity-mock-chat-transcribe-speech.command-BGzXvTnh.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-connectivity-mock-chat-transcribe-speech.command-
|
|
1
|
+
{"version":3,"file":"acorex-connectivity-mock-chat-transcribe-speech.command-BGzXvTnh.mjs","sources":["../../../../libs/connectivity/mock/src/lib/ai-management/commands/chat-transcribe-speech.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPAiChatToolRunContextService, RootConfig } from '@acorex/modules/ai-management';\nimport { Injectable, inject } from '@angular/core';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { AXPFileStorageService } from '@acorex/platform/common';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\n\nimport type { AXMAiAssistRow } from '../ai-agent-engine.types';\nimport {\n resolveDelegatedAssistOptionModel,\n resolveDelegatedAssistOptionString,\n} from '../ai-delegated-agent-parameters.util';\nimport { AXCAiChatRouterService } from '../chat/ai-chat-router.service';\n\n//#endregion\n\n//#region ---- Command: AiManagement:ChatTranscribeSpeech ----\n\nexport interface AiManagementChatTranscribeSpeechInput {\n /** Catalog `AiModel` row id for a speech-purpose model. When omitted, uses `delegatedAgents[].options.model` for the active delegated specialist (`agentId` in run context). */\n model?: string;\n fileId?: string;\n language?: string;\n}\n\nfunction parseTranscribeInput(args: unknown):\n | { ok: true; model?: string; fileId: string; language?: string }\n | { ok: false; error: string } {\n const obj =\n args != null && typeof args === 'object' && !Array.isArray(args)\n ? (args as Record<string, unknown>)\n : null;\n if (!obj) {\n return { ok: false, error: 'Invalid arguments: expected an object.' };\n }\n const fileId = typeof obj['fileId'] === 'string' ? obj['fileId'].trim() : '';\n if (!fileId) {\n return { ok: false, error: 'Invalid arguments: \"fileId\" is required and must be non-empty.' };\n }\n const model = typeof obj['model'] === 'string' ? obj['model'].trim() : undefined;\n const language = typeof obj['language'] === 'string' ? obj['language'].trim() : undefined;\n return {\n ok: true,\n fileId,\n ...(model ? { model } : {}),\n ...(language ? { language } : {}),\n };\n}\n\n@Injectable()\nexport class AiManagementChatTranscribeSpeechCommand\n implements AXPCommand<AiManagementChatTranscribeSpeechInput, { text: string }>\n{\n private readonly aiChatRouter = inject(AXCAiChatRouterService);\n private readonly runContext = inject(AXPAiChatToolRunContextService);\n private readonly fileStorage = inject(AXPFileStorageService);\n private readonly entityService = inject(AXPEntityService);\n\n private readonly assistData = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.assist.name)\n .data<string, AXMAiAssistRow, AXMAiAssistRow, AXMAiAssistRow, AXMAiAssistRow>();\n\n async execute(\n input: AiManagementChatTranscribeSpeechInput,\n ): Promise<AXPExecuteCommandResult<{ text: string }>> {\n const ctx = this.runContext.getContext();\n if (!ctx?.assistId?.trim()) {\n return {\n success: false,\n message: {\n text: 'Speech transcription requires an active AI chat run context (assist id).',\n },\n };\n }\n\n const parsed = parseTranscribeInput(input);\n if (!parsed.ok) {\n return { success: false, message: { text: parsed.error } };\n }\n\n try {\n const assist = await this.assistData.byKey(ctx.assistId.trim());\n if (!assist) {\n return {\n success: false,\n message: { text: `Assist row was not found (id: ${ctx.assistId.trim()}).` },\n };\n }\n\n const modelEntityId =\n parsed.model?.trim() || resolveDelegatedAssistOptionModel(assist, ctx.agentId) || '';\n if (!modelEntityId) {\n return {\n success: false,\n message: {\n text:\n 'No speech model: pass \"model\" (catalog id) or set options.model on the speech-to-text delegated specialist row for this assist.',\n },\n };\n }\n\n let mimeType = 'application/octet-stream';\n let audioBytes: ArrayBuffer;\n try {\n const info = await this.fileStorage.getInfo(parsed.fileId);\n const file = info.binary;\n mimeType = info.mimeType?.trim() || file.type?.trim() || mimeType;\n audioBytes = await file.arrayBuffer();\n } catch (e) {\n const msg = e instanceof Error ? e.message : String(e);\n return {\n success: false,\n message: { text: `Could not read audio file (fileId: ${parsed.fileId}). ${msg}` },\n };\n }\n\n const language =\n parsed.language?.trim() ||\n resolveDelegatedAssistOptionString(assist, ctx.agentId, 'language') ||\n undefined;\n\n const { text } = await this.aiChatRouter.transcribeSpeech({\n modelEntityId,\n audioBytes,\n mimeType,\n fileName: parsed.fileId,\n ...(language ? { language } : {}),\n });\n\n return { success: true, data: { text } };\n } catch (e) {\n const msg = e instanceof Error ? e.message : String(e);\n return { success: false, message: { text: msg } };\n }\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAAA;AA2BA,SAAS,oBAAoB,CAAC,IAAa,EAAA;AAGzC,IAAA,MAAM,GAAG,GACP,IAAI,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI;AAC7D,UAAG;UACD,IAAI;IACV,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,wCAAwC,EAAE;IACvE;IACA,MAAM,MAAM,GAAG,OAAO,GAAG,CAAC,QAAQ,CAAC,KAAK,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE;IAC5E,IAAI,CAAC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AAuC,EAAA,CAAA,CAAA;;2FAAvC,uCAAuC,EAAA,UAAA,EAAA,CAAA;kBADnD;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { b as ACTIVITY_CATEGORIES, c as ACTIVITY_DEFINITIONS, d as AI_ASSIST_MOCK, e as AI_MODEL_MOCK, f as APPLICATIONS, g as AXCActivityCategorySeeder, h as AXCActivityDefinitionSeeder, i as AXCAiAssistSeeder, j as AXCAiManagementMockModule, k as AXCAiModelSeeder, l as AXCAppTermDataSeeder, m as AXCAppVersionDataSeeder, n as AXCApplicationDataSeeder, o as AXCApplicationManagementMockModule, p as AXCAssessmentManagementMockModule, q as AXCAssetManagementMockModule, s as AXCAuthMockModule, t as AXCCalendarDataSeeder, u as AXCCalendarEventDataSeeder, v as AXCCalendarManagementMockModule, w as AXCCommandRegistryDataSeeder, x as AXCCommonMockModule, y as AXCContactCoreMockModule, z as AXCContentManagementMockModule, B as AXCConversationDataSeeder, C as AXCConversationMockConversationApi, D as AXCConversationMockMessageApi, E as AXCConversationMockModule, F as AXCConversationMockRealtimeApi, G as AXCConversationMockUserApi, H as AXCCustomerManagementMockModule, I as AXCDashboardManagementMockModule, J as AXCDataManagementMockModule, K as AXCDexieEntityStorageService, L as AXCDocumentManagementMockModule, M as AXCEditionDataSeeder, N as AXCEntityDefinitionSeederService, O as AXCEntityDefinitionsModule, P as AXCEntityStorageInsertCommand, Q as AXCEntityStorageModule, R as AXCEntityStorageQueryQuery, S as AXCFileStorageServiceDexie, T as AXCFileStorageServiceFirestore, U as AXCFinancialCoreMockModule, V as AXCFirestoreEntityStorageService, W as AXCFormTemplateManagementMockModule, X as AXCGoogleStrategyMock, Y as AXCHealthCoreMockModule, Z as AXCHelpDeskMockModule, _ as AXCHumanCapitalManagementMockModule, $ as AXCIdentifierManagementMockModule, a0 as AXCImageCaptchaChallengeProviderMock, a1 as AXCLearningManagementMockModule, a2 as AXCLocaleManagementMockModule, a3 as AXCLocationManagementMockModule, a4 as AXCLockService, a5 as AXCMeasurementCoreMockModule, a6 as AXCMeetingManagementMockModule, a7 as AXCMetaDataDefinitionDataSeeder, a8 as AXCMetadataCategorySeeder, a9 as AXCMiddlewaresModule, aa as AXCMockCaptchaChallengeComponent, ab as AXCMockEntityLogListener, ac as AXCMockModule, ad as AXCMockShowMetaDataFormPopupCommand, ae as AXCNotificationManagementMockModule, af as AXCOrderManagementMockModule, ag as AXCOrganizationManagementMockModule, ah as AXCPersonCoreMockModule, ai as AXCPlatformManagementMockModule, aj as AXCProcurementManagementMockModule, ak as AXCProductCatalogMockModule, al as AXCProjectManagementMockModule, am as AXCQueryRegistryDataSeeder, an as AXCReportManagementMockModule, ao as AXCSecurityManagementMockModule, ap as AXCStoredEntityDefinitionLoader, aq as AXCSubscriptionManagementMockModule, ar as AXCSupplierManagementMockModule, as as AXCTaskManagementMockModule, at as AXCTenantManagementMockModule, au as AXCTenantSeeder, av as AXCTokensDataSeeder, aw as AXCUserPassStrategyMock, ax as AXCVersionDB, ay as AXCVersioningService, az as AXCWorkflowCategorySeeder, aA as AXCWorkflowDefinitionDataSeeder, aB as AXCWorkflowEngine, aC as AXCWorkflowExecutionDB, aD as AXCWorkflowExecutionStoreDexie, aE as AXCWorkflowExecutionStoreFirestore, aF as AXCWorkflowManagementMockModule, aG as AXC_ENTITY_STORAGE_BACKEND_TYPE, aH as AXC_FIRESTORE_CONFIG, aI as AXC_FIRESTORE_DB, aJ as AXC_WORKFLOW_EXECUTION_STORE, aK as AXMAiDemisDefaultAssistId, aL as AXMAiModelStableIds, aM as AXMAiPlatformDefaultAssistId, aN as AXMAutomationDataSeeder, aO as AXMBusinessUnitDataSeeder, aP as AXMCalendarEventTypeSeeder, aQ as AXMDashboardChartDataSourceDefinition, aR as AXMEmployeeDataSeeder, aS as AXMEmploymentTypeDataSeeder, aT as AXMFormDataSourcesProvider, aU as AXMJobDefinitionDataSeeder, aV as AXMJobLevelDataSeeder, aW as AXMLeaveRequestDataSeeder, aX as AXMMeetingDataSeeder, aY as AXMMeetingFilesDataSeeder, aZ as AXMMeetingParticipantDataSeeder, a_ as AXMMeetingRoleTypeDataSeeder, a$ as AXMMeetingSessionDataSeeder, b0 as AXMMeetingTypeDataSeeder, b1 as AXMMeetingTypeFileTemplateDataSeeder, b2 as AXMPositionAssignmentDataSeeder, b3 as AXMPositionDataSeeder, b4 as AXMQuestionBankItemCategoryDataSeeder, b5 as AXMQuestionBankItemDataSeeder, b6 as AXMQuestionnaireCalculationDataSeeder, b7 as AXMQuestionnaireCategoryDataSeeder, b8 as AXMQuestionnaireDataSeeder, b9 as AXMResponsibilityDataSeeder, ba as AXMTagDataSeeder, bb as AXMTeamDataSeeder, bc as AXMTeamMemberDataSeeder, bd as AXMTeamMemberRoleDataSeeder, be as AXMWorkflowDashboardChartDataSourceDefinition, bf as AXM_AI_REGISTRY_COMMAND_NAME, bg as AXM_AI_REGISTRY_QUERY_NAME, bh as AXM_CORPORATE_BUSINESS_UNIT_ID, bi as AXPDashboardDataSeeder, bj as AXPIdentifierDB, bk as AXPMessageDataSeeder, bl as AXPMockChecksumProvider, bm as AXPMockClockProvider, bn as AXPMockIdentifierService, bo as AXPMockLookupProvider, bp as AXPMockPolicyProvider, bq as AXPMockSequenceProvider, br as AXPRoomDataSeeder, bs as AXPSecurityManagementRoleDataSeeder, bt as AXPSecurityManagementUserDataSeeder, bu as AXPTaskBoardPlatformManagementTaskProvider, bv as AXPTaskBoardProjectManagementTaskProvider, bw as AXVChangeType, bx as BCC, by as BOC, bz as BUSINESS_UNITS_MOCK, bA as CHAT_LAST_MESSAGE_IDS, bB as COSTMANAGER_ENTERPRISE, bC as COSTMANAGER_PROFESSIONAL, bD as COSTMANAGER_STANDARD, bE as CP, bF as CRM_ENTERPRISE, bG as DASHBOARDS, bH as EDITIONS, bI as EMPLOYEES_MOCK, bJ as EMPLOYMENT_TYPES_MOCK, bK as ENTITY_DEFINITION_MAP, bL as ENTITY_REGISTRY, bM as FINANCE_BASIC, bN as FINANCE_ENTERPRISE, bO as FINANCE_PRO, bP as G, bQ as HR_ENTERPRISE, bR as HW, bS as JOB_DEFINITIONS_CATEGORY_MOCK, bT as JOB_DEFINITIONS_MOCK, bU as JOB_DEFINITION_CATEGORY_KEY_TO_ID, bV as JOB_LEVELS_MOCK, bW as LASER_PLUMBING_TENANT_ID, bX as LEAVE_REQUESTS_MOCK, bY as METADATA_CATEGORY_IDS, bZ as METADATA_GENERAL_CATEGORY_REFS, b_ as METADATA_SYSTEM_CATEGORY_REFS, b$ as MLC, c0 as OHR, c1 as ORDERING_BASIC, c2 as ORDERING_ENTERPRISE, c3 as ORDERING_STANDARD, c4 as OWNERSHIP_FILTER_BYPASS, c5 as PLATFORM_CONSOLE, c6 as PLATFORM_TENANT_ID, c7 as PM, c8 as POSITIONS_CATEGORY_MOCK, c9 as POSITIONS_MOCK, ca as POSITION_ASSIGNMENTS_MOCK, cb as QCP, cc as QGEN, cd as QHW, ce as QOHR, cf as QPM, cg as QTLE, ch as QUESTIONNAIRE_CATEGORY_MOCK, ci as QUESTION_BANK_ITEM_CATEGORY_MOCK, cj as QWS, ck as RESPONSIBILITIES_CATEGORY_MOCK, cl as RESPONSIBILITIES_MOCK, cm as RESPONSIBILITY_CATEGORY_KEY_TO_ID, cn as SAFETYMINDER_BASIC, co as SAFETYMINDER_ENTERPRISE, cp as SAFETYMINDER_PROFESSIONAL, cq as SHOP_BASIC, cr as SHOP_ENTERPRISE, cs as SHOP_PRO, ct as TAGS_MOCK, cu as TASKS, cv as TASK_STATUSES, cw as TASK_TEMPLATES, cx as TASK_TYPES, cy as TEAMS_MOCK, cz as TEAM_MEMBERS_MOCK, cA as TEAM_MEMBER_ROLES_MOCK, cB as TIMEPLICITY_TENANT_ID, cC as TLA, cD as TOKENS, cE as TPC, cF as VISIBILITY_FILTER_BYPASS, cG as WORKFLOW_CATEGORIES, cH as WS, cI as activityCategoryMocks, cJ as activityDefinitionEntityMock, cK as applyEntityDefinitionFirestoreSnapshot, cL as automationCommandMiddleware, cM as automationMock, cN as avatarInterface, cO as axVersionDB, cP as axWorkflowExecutionDB, cQ as axcPatchEmployeeActivePrimaryPositionRefsFromRows, cR as axcPatchEmployeeManagerRefsFromRows, cS as axcResolveCommandRegistrySeedId, cT as axcResolveQueryRegistrySeedId, cU as bankCategory, cV as buildEntityStorageQuickSearchFilter, cW as bypassAllFilters, cX as bypassOwnershipFilter, cY as bypassVisibilityFilter, cZ as calendarEventMock, c_ as calendarEventTypeMockData, c$ as calendarMock, d0 as chatMessageMock, d1 as chatMock, d2 as checkboxInterface, d3 as childCountMiddleware, d4 as clearEntityDefinitionFirestoreCollections, d5 as collectQuickSearchFieldPathsFromEntityDefinition, d6 as colorInterface, d7 as computeDiff, d8 as contactInterface, d9 as createAndSaveDashboardForUser, da as createDashboardForUser, db as createFileCastMiddleware, dc as createWidgetLayoutConfig, dd as dateInterface, de as dateTimeInterface, df as descriptionInterface, dg as documentFolderSyncMiddleware, dh as emailInterface, di as entityDefDb, dj as entityValidationMiddleware, dk as fileUploaderInterface, dl as findEmployeeById, dm as folderStorageMiddleware, dn as generateUserDashboard, dp as groupOrderItemCalculatorMiddleware, dq as historyMiddleware, dr as identifierCommitMiddleware, ds as imageInterface, dt as inspectionOkXNaInterface, du as loadMockPropertyDefinitions, dv as lockGuardMiddleware, dw as longTextAnswerInterface, dx as lookupInterface, dy as lookupResolverMiddleware, dz as mapInterface, dA as meetingFilesMock, dB as meetingIds, dC as meetingMock, dD as meetingParticipantMock, dE as meetingRoleTypeMock, dF as meetingSessionMock, dG as meetingTimeSlotMock, dH as meetingTypeFileTemplateMock, dI as meetingTypeMock, dJ as mergeDetailRelationMiddleware, dK as mergeQuickSearchIntoRequest, dL as metadataCategoryMocks, dM as mockQuestionBankItemByName, dN as mockRoleDefinitions, dO as mockUsers, dP as multipleChoiceInterface, dQ as multipleSelectInterface, dR as normalizeAnyFileArrayForView, dS as normalizeSnapshotFileFieldsForView, dT as numberInterface, dU as parseEntityStorageInsertData, dV as parseEntityStorageQueryRequest, dW as participantIds, dX as participantMock, dY as passwordInterface, dZ as personIdentifierTypeMock, d_ as personIds, d$ as personLegalIds, e0 as personMock, e1 as personNaturalIds, e2 as phoneInterface, e3 as primaryMiddleware, e4 as provideMockPropertySetups, e5 as qrcodeInterface, e6 as questionBankItemMock, e7 as questionnaireCalculationMock, e8 as questionnaireMock, e9 as ratingInterface, ea as richTextInterface, eb as scaleInterface, ec as selectInterface, ed as selectionListInterface, ee as sexAtBirthInterface, ef as signatureInterface, eg as signatureLoaderMiddleware, eh as statusDefaultMiddleware, ei as tagInterface, ej as tenantMocks, ek as textAreaInterface, el as textInterface, em as timeDurationInterface, en as titleInterface, eo as toUiRows, ep as toggleInterface, eq as tokenCategoryIds, er as tokenCategoryMocks, es as urlInterface, et as versionInterface, eu as visibilityFilterMiddleware, ev as workflowDefinitionEntityMock, ew as workflowDefinitionIds, ex as workflowDefinitionMock, ey as yesNoInterface } from './acorex-connectivity-mock-acorex-connectivity-mock-G8Opk5JU.mjs';
|
|
1
|
+
export { b as ACTIVITY_CATEGORIES, c as ACTIVITY_DEFINITIONS, d as AI_ASSIST_MOCK, e as AI_MODEL_MOCK, f as APPLICATIONS, g as AXCActivityCategorySeeder, h as AXCActivityDefinitionSeeder, i as AXCAiAssistSeeder, j as AXCAiManagementMockModule, k as AXCAiModelSeeder, l as AXCAppTermDataSeeder, m as AXCAppVersionDataSeeder, n as AXCApplicationDataSeeder, o as AXCApplicationManagementMockModule, p as AXCAssessmentManagementMockModule, q as AXCAssetManagementMockModule, s as AXCAuthMockModule, t as AXCCalendarDataSeeder, u as AXCCalendarEventDataSeeder, v as AXCCalendarManagementMockModule, w as AXCCommandRegistryDataSeeder, x as AXCCommonMockModule, y as AXCContactCoreMockModule, z as AXCContentManagementMockModule, B as AXCConversationDataSeeder, C as AXCConversationMockConversationApi, D as AXCConversationMockMessageApi, E as AXCConversationMockModule, F as AXCConversationMockRealtimeApi, G as AXCConversationMockUserApi, H as AXCCustomerManagementMockModule, I as AXCDashboardManagementMockModule, J as AXCDataManagementMockModule, K as AXCDexieEntityStorageService, L as AXCDocumentManagementMockModule, M as AXCEditionDataSeeder, N as AXCEntityDefinitionSeederService, O as AXCEntityDefinitionsModule, P as AXCEntityStorageInsertCommand, Q as AXCEntityStorageModule, R as AXCEntityStorageQueryQuery, S as AXCFileStorageServiceDexie, T as AXCFileStorageServiceFirestore, U as AXCFinancialCoreMockModule, V as AXCFirestoreEntityStorageService, W as AXCFormTemplateManagementMockModule, X as AXCGoogleStrategyMock, Y as AXCHealthCoreMockModule, Z as AXCHelpDeskMockModule, _ as AXCHumanCapitalManagementMockModule, $ as AXCIdentifierManagementMockModule, a0 as AXCImageCaptchaChallengeProviderMock, a1 as AXCLearningManagementMockModule, a2 as AXCLocaleManagementMockModule, a3 as AXCLocationManagementMockModule, a4 as AXCLockService, a5 as AXCMeasurementCoreMockModule, a6 as AXCMeetingManagementMockModule, a7 as AXCMetaDataDefinitionDataSeeder, a8 as AXCMetadataCategorySeeder, a9 as AXCMiddlewaresModule, aa as AXCMockCaptchaChallengeComponent, ab as AXCMockEntityLogListener, ac as AXCMockModule, ad as AXCMockShowMetaDataFormPopupCommand, ae as AXCNotificationManagementMockModule, af as AXCOrderManagementMockModule, ag as AXCOrganizationManagementMockModule, ah as AXCPersonCoreMockModule, ai as AXCPlatformManagementMockModule, aj as AXCProcurementManagementMockModule, ak as AXCProductCatalogMockModule, al as AXCProjectManagementMockModule, am as AXCQueryRegistryDataSeeder, an as AXCReportManagementMockModule, ao as AXCSecurityManagementMockModule, ap as AXCStoredEntityDefinitionLoader, aq as AXCSubscriptionManagementMockModule, ar as AXCSupplierManagementMockModule, as as AXCTaskManagementMockModule, at as AXCTenantManagementMockModule, au as AXCTenantSeeder, av as AXCTokensDataSeeder, aw as AXCUserPassStrategyMock, ax as AXCVersionDB, ay as AXCVersioningService, az as AXCWorkflowCategorySeeder, aA as AXCWorkflowDefinitionDataSeeder, aB as AXCWorkflowEngine, aC as AXCWorkflowExecutionDB, aD as AXCWorkflowExecutionStoreDexie, aE as AXCWorkflowExecutionStoreFirestore, aF as AXCWorkflowManagementMockModule, aG as AXC_ENTITY_STORAGE_BACKEND_TYPE, aH as AXC_FIRESTORE_CONFIG, aI as AXC_FIRESTORE_DB, aJ as AXC_WORKFLOW_EXECUTION_STORE, aK as AXMAiDemisDefaultAssistId, aL as AXMAiModelStableIds, aM as AXMAiPlatformDefaultAssistId, aN as AXMAutomationDataSeeder, aO as AXMBusinessUnitDataSeeder, aP as AXMCalendarEventTypeSeeder, aQ as AXMDashboardChartDataSourceDefinition, aR as AXMEmployeeDataSeeder, aS as AXMEmploymentTypeDataSeeder, aT as AXMFormDataSourcesProvider, aU as AXMJobDefinitionDataSeeder, aV as AXMJobLevelDataSeeder, aW as AXMLeaveRequestDataSeeder, aX as AXMMeetingDataSeeder, aY as AXMMeetingFilesDataSeeder, aZ as AXMMeetingParticipantDataSeeder, a_ as AXMMeetingRoleTypeDataSeeder, a$ as AXMMeetingSessionDataSeeder, b0 as AXMMeetingTypeDataSeeder, b1 as AXMMeetingTypeFileTemplateDataSeeder, b2 as AXMPositionAssignmentDataSeeder, b3 as AXMPositionDataSeeder, b4 as AXMQuestionBankItemCategoryDataSeeder, b5 as AXMQuestionBankItemDataSeeder, b6 as AXMQuestionnaireCalculationDataSeeder, b7 as AXMQuestionnaireCategoryDataSeeder, b8 as AXMQuestionnaireDataSeeder, b9 as AXMResponsibilityDataSeeder, ba as AXMTagDataSeeder, bb as AXMTeamDataSeeder, bc as AXMTeamMemberDataSeeder, bd as AXMTeamMemberRoleDataSeeder, be as AXMWorkflowDashboardChartDataSourceDefinition, bf as AXM_AI_REGISTRY_COMMAND_NAME, bg as AXM_AI_REGISTRY_QUERY_NAME, bh as AXM_CORPORATE_BUSINESS_UNIT_ID, bi as AXPDashboardDataSeeder, bj as AXPIdentifierDB, bk as AXPMessageDataSeeder, bl as AXPMockChecksumProvider, bm as AXPMockClockProvider, bn as AXPMockIdentifierService, bo as AXPMockLookupProvider, bp as AXPMockPolicyProvider, bq as AXPMockSequenceProvider, br as AXPRoomDataSeeder, bs as AXPSecurityManagementRoleDataSeeder, bt as AXPSecurityManagementUserDataSeeder, bu as AXPTaskBoardPlatformManagementTaskProvider, bv as AXPTaskBoardProjectManagementTaskProvider, bw as AXVChangeType, bx as BCC, by as BOC, bz as BUSINESS_UNITS_MOCK, bA as CHAT_LAST_MESSAGE_IDS, bB as COSTMANAGER_ENTERPRISE, bC as COSTMANAGER_PROFESSIONAL, bD as COSTMANAGER_STANDARD, bE as CP, bF as CRM_ENTERPRISE, bG as DASHBOARDS, bH as EDITIONS, bI as EMPLOYEES_MOCK, bJ as EMPLOYMENT_TYPES_MOCK, bK as ENTITY_DEFINITION_MAP, bL as ENTITY_REGISTRY, bM as FINANCE_BASIC, bN as FINANCE_ENTERPRISE, bO as FINANCE_PRO, bP as G, bQ as HR_ENTERPRISE, bR as HW, bS as JOB_DEFINITIONS_CATEGORY_MOCK, bT as JOB_DEFINITIONS_MOCK, bU as JOB_DEFINITION_CATEGORY_KEY_TO_ID, bV as JOB_LEVELS_MOCK, bW as LASER_PLUMBING_TENANT_ID, bX as LEAVE_REQUESTS_MOCK, bY as METADATA_CATEGORY_IDS, bZ as METADATA_GENERAL_CATEGORY_REFS, b_ as METADATA_SYSTEM_CATEGORY_REFS, b$ as MLC, c0 as OHR, c1 as ORDERING_BASIC, c2 as ORDERING_ENTERPRISE, c3 as ORDERING_STANDARD, c4 as OWNERSHIP_FILTER_BYPASS, c5 as PLATFORM_CONSOLE, c6 as PLATFORM_TENANT_ID, c7 as PM, c8 as POSITIONS_CATEGORY_MOCK, c9 as POSITIONS_MOCK, ca as POSITION_ASSIGNMENTS_MOCK, cb as QCP, cc as QGEN, cd as QHW, ce as QOHR, cf as QPM, cg as QTLE, ch as QUESTIONNAIRE_CATEGORY_MOCK, ci as QUESTION_BANK_ITEM_CATEGORY_MOCK, cj as QWS, ck as RESPONSIBILITIES_CATEGORY_MOCK, cl as RESPONSIBILITIES_MOCK, cm as RESPONSIBILITY_CATEGORY_KEY_TO_ID, cn as SAFETYMINDER_BASIC, co as SAFETYMINDER_ENTERPRISE, cp as SAFETYMINDER_PROFESSIONAL, cq as SHOP_BASIC, cr as SHOP_ENTERPRISE, cs as SHOP_PRO, ct as TAGS_MOCK, cu as TASKS, cv as TASK_STATUSES, cw as TASK_TEMPLATES, cx as TASK_TYPES, cy as TEAMS_MOCK, cz as TEAM_MEMBERS_MOCK, cA as TEAM_MEMBER_ROLES_MOCK, cB as TIMEPLICITY_TENANT_ID, cC as TLA, cD as TOKENS, cE as TPC, cF as VISIBILITY_FILTER_BYPASS, cG as WORKFLOW_CATEGORIES, cH as WS, cI as activityCategoryMocks, cJ as activityDefinitionEntityMock, cK as applyEntityDefinitionFirestoreSnapshot, cL as automationCommandMiddleware, cM as automationMock, cN as avatarInterface, cO as axVersionDB, cP as axWorkflowExecutionDB, cQ as axcPatchEmployeeActivePrimaryPositionRefsFromRows, cR as axcPatchEmployeeManagerRefsFromRows, cS as axcResolveCommandRegistrySeedId, cT as axcResolveQueryRegistrySeedId, cU as bankCategory, cV as buildEntityStorageQuickSearchFilter, cW as bypassAllFilters, cX as bypassOwnershipFilter, cY as bypassVisibilityFilter, cZ as calendarEventMock, c_ as calendarEventTypeMockData, c$ as calendarMock, d0 as chatMessageMock, d1 as chatMock, d2 as checkboxInterface, d3 as childCountMiddleware, d4 as clearEntityDefinitionFirestoreCollections, d5 as collectQuickSearchFieldPathsFromEntityDefinition, d6 as colorInterface, d7 as computeDiff, d8 as contactInterface, d9 as createAndSaveDashboardForUser, da as createDashboardForUser, db as createFileCastMiddleware, dc as createWidgetLayoutConfig, dd as dateInterface, de as dateTimeInterface, df as descriptionInterface, dg as documentFolderSyncMiddleware, dh as emailInterface, di as entityDefDb, dj as entityValidationMiddleware, dk as fileUploaderInterface, dl as findEmployeeById, dm as folderStorageMiddleware, dn as generateUserDashboard, dp as groupOrderItemCalculatorMiddleware, dq as historyMiddleware, dr as identifierCommitMiddleware, ds as imageInterface, dt as inspectionOkXNaInterface, du as loadMockPropertyDefinitions, dv as lockGuardMiddleware, dw as longTextAnswerInterface, dx as lookupInterface, dy as lookupResolverMiddleware, dz as mapInterface, dA as meetingFilesMock, dB as meetingIds, dC as meetingMock, dD as meetingParticipantMock, dE as meetingRoleTypeMock, dF as meetingSessionMock, dG as meetingTimeSlotMock, dH as meetingTypeFileTemplateMock, dI as meetingTypeMock, dJ as mergeDetailRelationMiddleware, dK as mergeQuickSearchIntoRequest, dL as metadataCategoryMocks, dM as mockQuestionBankItemByName, dN as mockRoleDefinitions, dO as mockUsers, dP as multipleChoiceInterface, dQ as multipleSelectInterface, dR as normalizeAnyFileArrayForView, dS as normalizeSnapshotFileFieldsForView, dT as numberInterface, dU as parseEntityStorageInsertData, dV as parseEntityStorageQueryRequest, dW as participantIds, dX as participantMock, dY as passwordInterface, dZ as personIdentifierTypeMock, d_ as personIds, d$ as personLegalIds, e0 as personMock, e1 as personNaturalIds, e2 as phoneInterface, e3 as primaryMiddleware, e4 as provideMockPropertySetups, e5 as qrcodeInterface, e6 as questionBankItemMock, e7 as questionnaireCalculationMock, e8 as questionnaireMock, e9 as ratingInterface, ea as richTextInterface, eb as scaleInterface, ec as selectInterface, ed as selectionListInterface, ee as sexAtBirthInterface, ef as signatureInterface, eg as signatureLoaderMiddleware, eh as statusDefaultMiddleware, ei as tagInterface, ej as tenantMocks, ek as textAreaInterface, el as textInterface, em as timeDurationInterface, en as titleInterface, eo as toUiRows, ep as toggleInterface, eq as tokenCategoryIds, er as tokenCategoryMocks, es as urlInterface, et as versionInterface, eu as visibilityFilterMiddleware, ev as workflowDefinitionEntityMock, ew as workflowDefinitionIds, ex as workflowDefinitionMock, ey as yesNoInterface } from './acorex-connectivity-mock-acorex-connectivity-mock-BpUUTZOi.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-connectivity-mock.mjs.map
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/connectivity",
|
|
3
|
-
"version": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.34",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/modules": "21.0.0-next.
|
|
5
|
+
"@acorex/modules": "21.0.0-next.34"
|
|
6
6
|
},
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"module": "fesm2022/acorex-connectivity.mjs",
|
|
@@ -2397,20 +2397,62 @@ declare class AXPTaskBoardPlatformManagementTaskProvider extends AXPWorkflowTask
|
|
|
2397
2397
|
|
|
2398
2398
|
declare class AXMWorkflowDashboardChartDataSourceDefinition implements AXPDataSourceDefinitionProvider {
|
|
2399
2399
|
private readonly colorVars500;
|
|
2400
|
-
private readonly pendingApprovalByAgeItems;
|
|
2401
|
-
private readonly workloadByProcessItems;
|
|
2402
|
-
private readonly slaComplianceItems;
|
|
2403
|
-
private readonly throughputItems;
|
|
2404
|
-
private pickColorVar;
|
|
2405
2400
|
private getUniqueColorVars;
|
|
2406
2401
|
private asRgbVar;
|
|
2407
2402
|
private asRgbVarWithAlpha;
|
|
2408
2403
|
private withRandomColor;
|
|
2404
|
+
private readonly pendingApprovalByAgeItems;
|
|
2405
|
+
private readonly workloadByProcessItems;
|
|
2406
|
+
private readonly slaComplianceItems;
|
|
2407
|
+
private readonly throughputItems;
|
|
2409
2408
|
private buildThroughputItems;
|
|
2409
|
+
private readonly systemHealthSummaryItems;
|
|
2410
|
+
private readonly throughputDailyItems;
|
|
2411
|
+
private readonly throughputWeeklyItems;
|
|
2412
|
+
private buildDailyThroughput;
|
|
2413
|
+
private buildWeeklyThroughput;
|
|
2414
|
+
private readonly slaViolationsAndDelayItems;
|
|
2415
|
+
private readonly slaComplianceTrendItems;
|
|
2416
|
+
private readonly pendingTasksByAgeItems;
|
|
2417
|
+
private readonly failedProcessesSummaryItems;
|
|
2418
|
+
private readonly failedProcessFailureTrendItems;
|
|
2419
|
+
private readonly failedProcessesByTypeItems;
|
|
2420
|
+
private readonly stuckProcessesItems;
|
|
2421
|
+
private readonly overdueTasksByProcessItems;
|
|
2422
|
+
private readonly tasksNearDeadlineItems;
|
|
2423
|
+
private readonly bottleneckActivitiesItems;
|
|
2424
|
+
private readonly errorsByCategoryItems;
|
|
2425
|
+
private readonly workloadPerUserActiveItems;
|
|
2426
|
+
private readonly workloadPerUserOverdueItems;
|
|
2427
|
+
private readonly workloadPerUserAvgAgeHoursItems;
|
|
2428
|
+
private readonly workloadOverloadedUsersItems;
|
|
2429
|
+
private readonly slaRiskPredictionItems;
|
|
2430
|
+
private barChartDefinition;
|
|
2431
|
+
private donutChartDefinition;
|
|
2432
|
+
private lineChartDefinition;
|
|
2410
2433
|
private readonly workflowPendingApprovalByAgeDataSource;
|
|
2411
2434
|
private readonly workflowWorkloadByProcessDataSource;
|
|
2412
2435
|
private readonly workflowSlaComplianceDataSource;
|
|
2413
2436
|
private readonly workflowThroughputLast8WeeksDataSource;
|
|
2437
|
+
private readonly workflowSystemHealthSummaryDataSource;
|
|
2438
|
+
private readonly workflowThroughputDailyDataSource;
|
|
2439
|
+
private readonly workflowThroughputWeeklyDataSource;
|
|
2440
|
+
private readonly workflowSlaViolationsAndDelayDataSource;
|
|
2441
|
+
private readonly workflowSlaComplianceTrendDataSource;
|
|
2442
|
+
private readonly workflowPendingTasksByAgeDataSource;
|
|
2443
|
+
private readonly workflowFailedProcessesSummaryDataSource;
|
|
2444
|
+
private readonly workflowFailedProcessFailureTrendDataSource;
|
|
2445
|
+
private readonly workflowFailedProcessesByTypeDataSource;
|
|
2446
|
+
private readonly workflowStuckProcessesDataSource;
|
|
2447
|
+
private readonly workflowOverdueTasksByProcessDataSource;
|
|
2448
|
+
private readonly workflowTasksNearDeadlineDataSource;
|
|
2449
|
+
private readonly workflowBottleneckActivitiesDataSource;
|
|
2450
|
+
private readonly workflowErrorsByCategoryDataSource;
|
|
2451
|
+
private readonly workflowWorkloadPerUserActiveDataSource;
|
|
2452
|
+
private readonly workflowWorkloadPerUserOverdueDataSource;
|
|
2453
|
+
private readonly workflowWorkloadPerUserAvgAgeHoursDataSource;
|
|
2454
|
+
private readonly workflowWorkloadOverloadedUsersDataSource;
|
|
2455
|
+
private readonly workflowSlaRiskPredictionDataSource;
|
|
2414
2456
|
items(): Promise<AXPDataSourceDefinition[]>;
|
|
2415
2457
|
}
|
|
2416
2458
|
|