@webex/contact-center 3.12.0 → 3.13.0-next.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/.sdd/manifest.json +887 -0
- package/AGENTS.md +94 -0
- package/ai-docs/ARCHITECTURE.md +168 -0
- package/ai-docs/CONTRACTS.md +64 -0
- package/ai-docs/GETTING_STARTED.md +168 -0
- package/ai-docs/GLOSSARY.md +43 -0
- package/ai-docs/README.md +138 -0
- package/ai-docs/REVIEW_CHECKLIST.md +41 -0
- package/ai-docs/RULES.md +444 -0
- package/ai-docs/SECURITY.md +52 -0
- package/ai-docs/SERVICE_STATE.md +52 -0
- package/ai-docs/SPEC_INDEX.md +65 -0
- package/ai-docs/adr/0001-spec-source-policy.md +55 -0
- package/ai-docs/adr/README.md +8 -0
- package/ai-docs/adr/_adr-template.md +31 -0
- package/ai-docs/contact-center-spec.md +388 -0
- package/ai-docs/features/consult-transfer-list-policy/spec/feature-spec.md +362 -0
- package/ai-docs/features/contact-owner-change-refactor.md +78 -0
- package/ai-docs/features/generated-spec-conformance-fidelity-remediation/spec/feature-spec.md +117 -0
- package/ai-docs/features/residual-warning-coverage-completion/spec/feature-spec.md +203 -0
- package/ai-docs/features/validator-code-fidelity-drift-fix/spec/feature-spec.md +315 -0
- package/ai-docs/patterns/event-driven-patterns.md +485 -0
- package/ai-docs/patterns/testing-patterns.md +480 -0
- package/ai-docs/patterns/typescript-patterns.md +365 -0
- package/ai-docs/templates/README.md +102 -0
- package/ai-docs/templates/documentation/create-agents-md.md +240 -0
- package/ai-docs/templates/documentation/create-architecture-md.md +295 -0
- package/ai-docs/templates/existing-service/bug-fix.md +254 -0
- package/ai-docs/templates/existing-service/feature-enhancement.md +450 -0
- package/ai-docs/templates/new-method/00-master.md +80 -0
- package/ai-docs/templates/new-method/01-requirements.md +232 -0
- package/ai-docs/templates/new-method/02-implementation.md +295 -0
- package/ai-docs/templates/new-method/03-tests.md +201 -0
- package/ai-docs/templates/new-method/04-validation.md +141 -0
- package/ai-docs/templates/new-service/00-master.md +109 -0
- package/ai-docs/templates/new-service/01-pre-questions.md +159 -0
- package/ai-docs/templates/new-service/02-code-generation.md +346 -0
- package/ai-docs/templates/new-service/03-integration.md +178 -0
- package/ai-docs/templates/new-service/04-test-generation.md +205 -0
- package/ai-docs/templates/new-service/05-validation.md +145 -0
- package/dist/cc.js +1102 -47
- package/dist/cc.js.map +1 -1
- package/dist/config.js +13 -0
- package/dist/config.js.map +1 -1
- package/dist/constants.js +46 -3
- package/dist/constants.js.map +1 -1
- package/dist/index.js +86 -17
- package/dist/index.js.map +1 -1
- package/dist/metrics/MetricsManager.js +16 -0
- package/dist/metrics/MetricsManager.js.map +1 -1
- package/dist/metrics/behavioral-events.js +211 -0
- package/dist/metrics/behavioral-events.js.map +1 -1
- package/dist/metrics/constants.js +58 -4
- package/dist/metrics/constants.js.map +1 -1
- package/dist/services/AddressBook.js +18 -15
- package/dist/services/AddressBook.js.map +1 -1
- package/dist/services/AnswerCallOnWebexService.js +202 -0
- package/dist/services/AnswerCallOnWebexService.js.map +1 -0
- package/dist/services/ApiAiAssistant.js +369 -14
- package/dist/services/ApiAiAssistant.js.map +1 -1
- package/dist/services/EntryPoint.js +46 -68
- package/dist/services/EntryPoint.js.map +1 -1
- package/dist/services/Queue.js +27 -22
- package/dist/services/Queue.js.map +1 -1
- package/dist/services/UserPreference.js +427 -0
- package/dist/services/UserPreference.js.map +1 -0
- package/dist/services/WebCallingService.js +287 -37
- package/dist/services/WebCallingService.js.map +1 -1
- package/dist/services/WebexCrossClientService.js +225 -0
- package/dist/services/WebexCrossClientService.js.map +1 -0
- package/dist/services/WxAppTelephonyMercurySync.js +111 -0
- package/dist/services/WxAppTelephonyMercurySync.js.map +1 -0
- package/dist/services/config/Util.js +48 -48
- package/dist/services/config/Util.js.map +1 -1
- package/dist/services/config/constants.js +57 -79
- package/dist/services/config/constants.js.map +1 -1
- package/dist/services/config/index.js +100 -226
- package/dist/services/config/index.js.map +1 -1
- package/dist/services/config/types.js +100 -40
- package/dist/services/config/types.js.map +1 -1
- package/dist/services/constants.js +19 -1
- package/dist/services/constants.js.map +1 -1
- package/dist/services/core/Err.js.map +1 -1
- package/dist/services/core/Utils.js +131 -32
- package/dist/services/core/Utils.js.map +1 -1
- package/dist/services/core/WebexRequest.js +6 -2
- package/dist/services/core/WebexRequest.js.map +1 -1
- package/dist/services/core/aqm-reqs.js +17 -11
- package/dist/services/core/aqm-reqs.js.map +1 -1
- package/dist/services/core/constants.js +9 -1
- package/dist/services/core/constants.js.map +1 -1
- package/dist/services/core/types.js.map +1 -1
- package/dist/services/core/websocket/WebSocketManager.js +26 -6
- package/dist/services/core/websocket/WebSocketManager.js.map +1 -1
- package/dist/services/core/websocket/connection-service.js +3 -1
- package/dist/services/core/websocket/connection-service.js.map +1 -1
- package/dist/services/core/websocket/types.js.map +1 -1
- package/dist/services/index.js +6 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/task/Task.js +955 -0
- package/dist/services/task/Task.js.map +1 -0
- package/dist/services/task/TaskFactory.js +50 -0
- package/dist/services/task/TaskFactory.js.map +1 -0
- package/dist/services/task/TaskManager.js +1275 -504
- package/dist/services/task/TaskManager.js.map +1 -1
- package/dist/services/task/TaskUtils.js +221 -27
- package/dist/services/task/TaskUtils.js.map +1 -1
- package/dist/services/task/WebexCallingUtils.js +70 -0
- package/dist/services/task/WebexCallingUtils.js.map +1 -0
- package/dist/services/task/constants.js +22 -2
- package/dist/services/task/constants.js.map +1 -1
- package/dist/services/task/contact.js +29 -0
- package/dist/services/task/contact.js.map +1 -1
- package/dist/services/task/dialer.js +78 -0
- package/dist/services/task/dialer.js.map +1 -1
- package/dist/services/task/digital/Digital.js +78 -0
- package/dist/services/task/digital/Digital.js.map +1 -0
- package/dist/services/task/state-machine/TaskStateMachine.js +982 -0
- package/dist/services/task/state-machine/TaskStateMachine.js.map +1 -0
- package/dist/services/task/state-machine/actions.js +572 -0
- package/dist/services/task/state-machine/actions.js.map +1 -0
- package/dist/services/task/state-machine/constants.js +161 -0
- package/dist/services/task/state-machine/constants.js.map +1 -0
- package/dist/services/task/state-machine/guards.js +379 -0
- package/dist/services/task/state-machine/guards.js.map +1 -0
- package/dist/services/task/state-machine/index.js +53 -0
- package/dist/services/task/state-machine/index.js.map +1 -0
- package/dist/services/task/state-machine/types.js +54 -0
- package/dist/services/task/state-machine/types.js.map +1 -0
- package/dist/services/task/state-machine/uiControlsComputer.js +703 -0
- package/dist/services/task/state-machine/uiControlsComputer.js.map +1 -0
- package/dist/services/task/taskDataNormalizer.js +99 -0
- package/dist/services/task/taskDataNormalizer.js.map +1 -0
- package/dist/services/task/types.js +259 -5
- package/dist/services/task/types.js.map +1 -1
- package/dist/services/task/voice/Voice.js +1504 -0
- package/dist/services/task/voice/Voice.js.map +1 -0
- package/dist/services/task/voice/WebRTC.js +152 -0
- package/dist/services/task/voice/WebRTC.js.map +1 -0
- package/dist/services/task/voice/wxAppOfferObservability.js +145 -0
- package/dist/services/task/voice/wxAppOfferObservability.js.map +1 -0
- package/dist/services/task/voice/wxAppVoiceMethods.js +395 -0
- package/dist/services/task/voice/wxAppVoiceMethods.js.map +1 -0
- package/dist/services/wxAppDiagnosticLogging.js +159 -0
- package/dist/services/wxAppDiagnosticLogging.js.map +1 -0
- package/dist/services/wxAppTelephonyUtils.js +19 -0
- package/dist/services/wxAppTelephonyUtils.js.map +1 -0
- package/dist/types/cc.d.ts +222 -10
- package/dist/types/config.d.ts +13 -0
- package/dist/types/constants.d.ts +40 -1
- package/dist/types/index.d.ts +58 -22
- package/dist/types/metrics/MetricsManager.d.ts +6 -0
- package/dist/types/metrics/constants.d.ts +52 -1
- package/dist/types/services/AddressBook.d.ts +2 -1
- package/dist/types/services/AnswerCallOnWebexService.d.ts +38 -0
- package/dist/types/services/ApiAiAssistant.d.ts +67 -5
- package/dist/types/services/EntryPoint.d.ts +7 -5
- package/dist/types/services/Queue.d.ts +5 -3
- package/dist/types/services/UserPreference.d.ts +118 -0
- package/dist/types/services/WebexCrossClientService.d.ts +32 -0
- package/dist/types/services/WxAppTelephonyMercurySync.d.ts +28 -0
- package/dist/types/services/config/Util.d.ts +4 -8
- package/dist/types/services/config/constants.d.ts +49 -76
- package/dist/types/services/config/index.d.ts +16 -64
- package/dist/types/services/config/types.d.ts +252 -114
- package/dist/types/services/constants.d.ts +16 -0
- package/dist/types/services/core/Err.d.ts +6 -0
- package/dist/types/services/core/Utils.d.ts +43 -13
- package/dist/types/services/core/WebexRequest.d.ts +1 -0
- package/dist/types/services/core/constants.d.ts +7 -0
- package/dist/types/services/core/types.d.ts +2 -0
- package/dist/types/services/core/websocket/WebSocketManager.d.ts +2 -0
- package/dist/types/services/core/websocket/types.d.ts +1 -1
- package/dist/types/services/index.d.ts +2 -0
- package/dist/types/services/task/Task.d.ts +186 -0
- package/dist/types/services/task/TaskFactory.d.ts +14 -0
- package/dist/types/services/task/TaskUtils.d.ts +54 -2
- package/dist/types/services/task/WebexCallingUtils.d.ts +11 -0
- package/dist/types/services/task/constants.d.ts +20 -0
- package/dist/types/services/task/contact.d.ts +4 -0
- package/dist/types/services/task/dialer.d.ts +30 -0
- package/dist/types/services/task/digital/Digital.d.ts +23 -0
- package/dist/types/services/task/state-machine/TaskStateMachine.d.ts +1442 -0
- package/dist/types/services/task/state-machine/actions.d.ts +10 -0
- package/dist/types/services/task/state-machine/constants.d.ts +107 -0
- package/dist/types/services/task/state-machine/guards.d.ts +103 -0
- package/dist/types/services/task/state-machine/index.d.ts +13 -0
- package/dist/types/services/task/state-machine/types.d.ts +277 -0
- package/dist/types/services/task/state-machine/uiControlsComputer.d.ts +9 -0
- package/dist/types/services/task/taskDataNormalizer.d.ts +10 -0
- package/dist/types/services/task/types.d.ts +790 -66
- package/dist/types/services/task/voice/Voice.d.ts +241 -0
- package/dist/types/services/task/voice/WebRTC.d.ts +54 -0
- package/dist/types/services/task/voice/wxAppOfferObservability.d.ts +39 -0
- package/dist/types/services/task/voice/wxAppVoiceMethods.d.ts +68 -0
- package/dist/types/services/wxAppDiagnosticLogging.d.ts +63 -0
- package/dist/types/services/wxAppTelephonyUtils.d.ts +5 -0
- package/dist/types/types.d.ts +258 -11
- package/dist/types/utils/PageCache.d.ts +20 -3
- package/dist/types/webex.d.ts +1 -0
- package/dist/types.js +204 -6
- package/dist/types.js.map +1 -1
- package/dist/utils/PageCache.js +19 -5
- package/dist/utils/PageCache.js.map +1 -1
- package/dist/webex.js +22 -2
- package/dist/webex.js.map +1 -1
- package/package.json +16 -12
- package/src/cc.ts +1439 -105
- package/src/config.ts +13 -0
- package/src/constants.ts +53 -1
- package/src/index.ts +72 -16
- package/src/metrics/MetricsManager.ts +16 -0
- package/src/metrics/ai-docs/AGENTS.md +350 -0
- package/src/metrics/ai-docs/ARCHITECTURE.md +338 -0
- package/src/metrics/ai-docs/metrics-spec.md +971 -0
- package/src/metrics/behavioral-events.ts +218 -0
- package/src/metrics/constants.ts +63 -4
- package/src/services/AddressBook.ts +17 -6
- package/src/services/AnswerCallOnWebexService.ts +239 -0
- package/src/services/ApiAiAssistant.ts +494 -15
- package/src/services/EntryPoint.ts +59 -60
- package/src/services/Queue.ts +29 -12
- package/src/services/UserPreference.ts +509 -0
- package/src/services/WebCallingService.ts +362 -40
- package/src/services/WebexCrossClientService.ts +298 -0
- package/src/services/WxAppTelephonyMercurySync.ts +142 -0
- package/src/services/agent/ai-docs/AGENTS.md +240 -0
- package/src/services/agent/ai-docs/ARCHITECTURE.md +304 -0
- package/src/services/agent/ai-docs/agent-spec.md +505 -0
- package/src/services/ai-docs/AGENTS.md +386 -0
- package/src/services/ai-docs/services-spec.md +512 -0
- package/src/services/config/Util.ts +54 -84
- package/src/services/config/ai-docs/AGENTS.md +250 -0
- package/src/services/config/ai-docs/ARCHITECTURE.md +413 -0
- package/src/services/config/ai-docs/config-spec.md +669 -0
- package/src/services/config/constants.ts +64 -86
- package/src/services/config/index.ts +116 -277
- package/src/services/config/types.ts +238 -125
- package/src/services/constants.ts +18 -0
- package/src/services/core/Err.ts +3 -0
- package/src/services/core/Utils.ts +151 -37
- package/src/services/core/WebexRequest.ts +3 -1
- package/src/services/core/ai-docs/AGENTS.md +381 -0
- package/src/services/core/ai-docs/ARCHITECTURE.md +698 -0
- package/src/services/core/ai-docs/core-spec.md +797 -0
- package/src/services/core/aqm-reqs.ts +18 -12
- package/src/services/core/constants.ts +8 -0
- package/src/services/core/types.ts +33 -1
- package/src/services/core/websocket/WebSocketManager.ts +37 -8
- package/src/services/core/websocket/connection-service.ts +5 -1
- package/src/services/core/websocket/types.ts +1 -1
- package/src/services/index.ts +4 -0
- package/src/services/task/Task.ts +1211 -0
- package/src/services/task/TaskFactory.ts +82 -0
- package/src/services/task/TaskManager.ts +1551 -584
- package/src/services/task/TaskUtils.ts +316 -25
- package/src/services/task/WebexCallingUtils.ts +136 -0
- package/src/services/task/ai-docs/AGENTS.md +457 -0
- package/src/services/task/ai-docs/ARCHITECTURE.md +595 -0
- package/src/services/task/ai-docs/task-spec.md +1501 -0
- package/src/services/task/constants.ts +21 -0
- package/src/services/task/contact.ts +30 -0
- package/src/services/task/dialer.ts +80 -0
- package/src/services/task/digital/Digital.ts +102 -0
- package/src/services/task/state-machine/TaskStateMachine.ts +1320 -0
- package/src/services/task/state-machine/actions.ts +741 -0
- package/src/services/task/state-machine/ai-docs/AGENTS.md +460 -0
- package/src/services/task/state-machine/ai-docs/ARCHITECTURE.md +1156 -0
- package/src/services/task/state-machine/ai-docs/task-state-machine-spec.md +2247 -0
- package/src/services/task/state-machine/constants.ts +172 -0
- package/src/services/task/state-machine/guards.ts +442 -0
- package/src/services/task/state-machine/index.ts +28 -0
- package/src/services/task/state-machine/types.ts +258 -0
- package/src/services/task/state-machine/uiControlsComputer.ts +1135 -0
- package/src/services/task/taskDataNormalizer.ts +137 -0
- package/src/services/task/types.ts +974 -70
- package/src/services/task/voice/Voice.ts +1878 -0
- package/src/services/task/voice/WebRTC.ts +194 -0
- package/src/services/task/voice/wxAppOfferObservability.ts +204 -0
- package/src/services/task/voice/wxAppVoiceMethods.ts +575 -0
- package/src/services/wxAppDiagnosticLogging.ts +286 -0
- package/src/services/wxAppTelephonyUtils.ts +14 -0
- package/src/types.ts +323 -13
- package/src/utils/AGENTS.md +289 -0
- package/src/utils/PageCache.ts +38 -5
- package/src/utils/ai-docs/utils-spec.md +391 -0
- package/src/webex.js +10 -0
- package/test/unit/fixtures/aiSummaryTestUtils.ts +40 -0
- package/test/unit/spec/cc.ts +4046 -181
- package/test/unit/spec/index.ts +891 -0
- package/test/unit/spec/logger-proxy.ts +70 -0
- package/test/unit/spec/metrics/MetricsManager.ts +25 -0
- package/test/unit/spec/metrics/behavioral-events.ts +60 -0
- package/test/unit/spec/services/AddressBook.ts +37 -6
- package/test/unit/spec/services/AnswerCallOnWebexService.ts +264 -0
- package/test/unit/spec/services/ApiAiAssistant.ts +442 -23
- package/test/unit/spec/services/EntryPoint.ts +87 -40
- package/test/unit/spec/services/Queue.ts +123 -12
- package/test/unit/spec/services/UserPreference.ts +401 -0
- package/test/unit/spec/services/WebCallingService.ts +484 -49
- package/test/unit/spec/services/WebexCrossClientService.ts +509 -0
- package/test/unit/spec/services/WxAppTelephonyMercurySync.ts +136 -0
- package/test/unit/spec/services/config/Util.ts +501 -0
- package/test/unit/spec/services/config/index.ts +318 -548
- package/test/unit/spec/services/core/Utils.ts +447 -8
- package/test/unit/spec/services/core/WebexRequest.ts +8 -7
- package/test/unit/spec/services/core/aqm-reqs.ts +142 -1
- package/test/unit/spec/services/core/websocket/WebSocketManager.ts +132 -56
- package/test/unit/spec/services/core/websocket/connection-service.ts +3 -1
- package/test/unit/spec/services/task/AutoWrapup.ts +63 -0
- package/test/unit/spec/services/task/Task.ts +2723 -0
- package/test/unit/spec/services/task/TaskFactory.ts +116 -0
- package/test/unit/spec/services/task/TaskManager.ts +4800 -1586
- package/test/unit/spec/services/task/TaskUtils.ts +307 -0
- package/test/unit/spec/services/task/WebexCallingUtils.ts +153 -0
- package/test/unit/spec/services/task/contact.ts +33 -0
- package/test/unit/spec/services/task/dialer.ts +190 -0
- package/test/unit/spec/services/task/digital/Digital.ts +105 -0
- package/test/unit/spec/services/task/state-machine/TaskStateMachine.ts +4060 -0
- package/test/unit/spec/services/task/state-machine/guards.ts +839 -0
- package/test/unit/spec/services/task/state-machine/types.ts +18 -0
- package/test/unit/spec/services/task/state-machine/uiControlsComputer.ts +3101 -0
- package/test/unit/spec/services/task/taskTestUtils.ts +87 -0
- package/test/unit/spec/services/task/voice/Voice.ts +2355 -0
- package/test/unit/spec/services/task/voice/WebRTC.ts +235 -0
- package/test/unit/spec/services/task/voice/wxAppOfferObservability.ts +361 -0
- package/test/unit/spec/services/task/voice/wxAppVoiceMethods.ts +719 -0
- package/test/unit/spec/services/wxAppDiagnosticLogging.ts +179 -0
- package/test/unit/spec/wellnessSampleUtils.ts +288 -0
- package/typedoc.md +1 -1
- package/umd/contact-center.min.js +2 -2
- package/umd/contact-center.min.js.map +1 -1
- package/dist/services/task/index.js +0 -1525
- package/dist/services/task/index.js.map +0 -1
- package/dist/types/services/task/index.d.ts +0 -650
- package/src/services/task/index.ts +0 -1801
- package/test/unit/spec/services/task/index.ts +0 -2184
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare const DEFAULT_PAGE = 0;
|
|
2
|
+
/** Desktop Profile access levels for collaboration destination categories. */
|
|
3
|
+
export declare const COLLABORATION_ACCESS: {
|
|
4
|
+
readonly ALL: "ALL";
|
|
5
|
+
readonly SPECIFIC: "SPECIFIC";
|
|
6
|
+
readonly NONE: "NONE";
|
|
7
|
+
};
|
|
2
8
|
/**
|
|
3
9
|
* Default page size for paginated API requests.
|
|
4
10
|
* @type {number}
|
|
@@ -22,6 +28,8 @@ export declare const AGENT_STATE_AVAILABLE_ID = "0";
|
|
|
22
28
|
* @ignore
|
|
23
29
|
*/
|
|
24
30
|
export declare const AGENT_STATE_AVAILABLE = "Available";
|
|
31
|
+
/** System idle-code name reserved for Agent Wellness Break. */
|
|
32
|
+
export declare const WELLBEING_BREAK_IDLE_CODE = "WellbeingBreak";
|
|
25
33
|
/**
|
|
26
34
|
* Description for the 'Available' agent state.
|
|
27
35
|
* @type {string}
|
|
@@ -38,23 +46,18 @@ export declare const AGENT_STATE_AVAILABLE_DESCRIPTION = "Agent is available to
|
|
|
38
46
|
export declare const DEFAULT_AUXCODE_ATTRIBUTES: string[];
|
|
39
47
|
export declare const METHODS: {
|
|
40
48
|
GET_AGENT_CONFIG: string;
|
|
41
|
-
|
|
42
|
-
|
|
49
|
+
GET_ORG_DESKTOP_LOGIN_CONFIG: string;
|
|
50
|
+
GET_USER_DESKTOP_LOGIN_CONFIG: string;
|
|
43
51
|
GET_MULTIMEDIA_PROFILE_BY_ID: string;
|
|
44
52
|
GET_LIST_OF_TEAMS: string;
|
|
45
53
|
GET_ALL_TEAMS: string;
|
|
46
54
|
GET_LIST_OF_AUX_CODES: string;
|
|
47
55
|
GET_ALL_AUX_CODES: string;
|
|
48
56
|
GET_SITE_INFO: string;
|
|
49
|
-
GET_ORG_INFO: string;
|
|
50
|
-
GET_ORGANIZATION_SETTING: string;
|
|
51
|
-
GET_TENANT_DATA: string;
|
|
52
|
-
GET_URL_MAPPING: string;
|
|
53
57
|
GET_DIAL_PLAN_DATA: string;
|
|
54
|
-
|
|
58
|
+
GET_WELLBEING_BREAK_IDLE_CODE: string;
|
|
55
59
|
GET_QUEUES: string;
|
|
56
60
|
PARSE_AGENT_CONFIGS: string;
|
|
57
|
-
GET_URL_MAPPING_UTIL: string;
|
|
58
61
|
GET_MSFT_CONFIG: string;
|
|
59
62
|
GET_WEBEX_CONFIG: string;
|
|
60
63
|
GET_DEFAULT_AGENT_DN: string;
|
|
@@ -66,31 +69,30 @@ export declare const METHODS: {
|
|
|
66
69
|
* Maps API endpoint names to functions that generate endpoint URLs for various organization resources.
|
|
67
70
|
* @public
|
|
68
71
|
* @example
|
|
69
|
-
* const url = endPointMap.
|
|
72
|
+
* const url = endPointMap.userDesktopLogin('org123', 'agent456');
|
|
70
73
|
*/
|
|
71
74
|
export declare const endPointMap: {
|
|
72
75
|
/**
|
|
73
|
-
* Gets the endpoint for
|
|
76
|
+
* Gets the endpoint for the aggregated organization desktop-login configuration.
|
|
74
77
|
* @param orgId - Organization ID.
|
|
75
|
-
* @param agentId - Agent ID.
|
|
76
78
|
* @returns The endpoint URL string.
|
|
77
79
|
* @public
|
|
78
80
|
* @example
|
|
79
|
-
* const url = endPointMap.
|
|
81
|
+
* const url = endPointMap.orgDesktopLogin('org123');
|
|
80
82
|
* @ignore
|
|
81
83
|
*/
|
|
82
|
-
|
|
84
|
+
orgDesktopLogin: (orgId: string) => string;
|
|
83
85
|
/**
|
|
84
|
-
* Gets the endpoint for
|
|
86
|
+
* Gets the endpoint for the aggregated user desktop-login configuration.
|
|
85
87
|
* @param orgId - Organization ID.
|
|
86
|
-
* @param
|
|
88
|
+
* @param ciUserId - CI user ID of the agent.
|
|
87
89
|
* @returns The endpoint URL string.
|
|
88
90
|
* @public
|
|
89
91
|
* @example
|
|
90
|
-
* const url = endPointMap.
|
|
92
|
+
* const url = endPointMap.userDesktopLogin('org123', 'agent456');
|
|
91
93
|
* @ignore
|
|
92
94
|
*/
|
|
93
|
-
|
|
95
|
+
userDesktopLogin: (orgId: string, ciUserId: string) => string;
|
|
94
96
|
/**
|
|
95
97
|
* Gets the endpoint for a multimedia profile.
|
|
96
98
|
* @param orgId - Organization ID.
|
|
@@ -103,18 +105,19 @@ export declare const endPointMap: {
|
|
|
103
105
|
*/
|
|
104
106
|
multimediaProfile: (orgId: string, multimediaProfileId: string) => string;
|
|
105
107
|
/**
|
|
106
|
-
* Gets the endpoint for listing teams
|
|
108
|
+
* Gets the endpoint for listing the teams a user belongs to.
|
|
109
|
+
* The filter value must stay unquoted — the quoted form returns HTTP 400.
|
|
107
110
|
* @param orgId - Organization ID.
|
|
108
111
|
* @param page - Page number.
|
|
109
112
|
* @param pageSize - Page size.
|
|
110
|
-
* @param
|
|
113
|
+
* @param userDbId - Database ID of the user whose teams are requested.
|
|
111
114
|
* @returns The endpoint URL string.
|
|
112
115
|
* @public
|
|
113
116
|
* @example
|
|
114
|
-
* const url = endPointMap.listTeams('org123', 0, 100,
|
|
117
|
+
* const url = endPointMap.listTeams('org123', 0, 100, 'userDb456');
|
|
115
118
|
* @ignore
|
|
116
119
|
*/
|
|
117
|
-
listTeams: (orgId: string, page: number, pageSize: number,
|
|
120
|
+
listTeams: (orgId: string, page: number, pageSize: number, userDbId: string) => string;
|
|
118
121
|
/**
|
|
119
122
|
* Gets the endpoint for listing auxiliary codes with optional filters and attributes.
|
|
120
123
|
* @param orgId - Organization ID.
|
|
@@ -129,26 +132,8 @@ export declare const endPointMap: {
|
|
|
129
132
|
* @ignore
|
|
130
133
|
*/
|
|
131
134
|
listAuxCodes: (orgId: string, page: number, pageSize: number, filter: string[], attributes: string[]) => string;
|
|
132
|
-
/**
|
|
133
|
-
|
|
134
|
-
* @param orgId - Organization ID.
|
|
135
|
-
* @returns The endpoint URL string.
|
|
136
|
-
* @public
|
|
137
|
-
* @example
|
|
138
|
-
* const url = endPointMap.orgInfo('org123');
|
|
139
|
-
* @ignore
|
|
140
|
-
*/
|
|
141
|
-
orgInfo: (orgId: string) => string;
|
|
142
|
-
/**
|
|
143
|
-
* Gets the endpoint for organization settings.
|
|
144
|
-
* @param orgId - Organization ID.
|
|
145
|
-
* @returns The endpoint URL string.
|
|
146
|
-
* @public
|
|
147
|
-
* @example
|
|
148
|
-
* const url = endPointMap.orgSettings('org123');
|
|
149
|
-
* @ignore
|
|
150
|
-
*/
|
|
151
|
-
orgSettings: (orgId: string) => string;
|
|
135
|
+
/** Lists system idle codes without applying the agent Desktop Profile filter. */
|
|
136
|
+
systemIdleCodes: (orgId: string, page: number, pageSize: number) => string;
|
|
152
137
|
/**
|
|
153
138
|
* Gets the endpoint for site info.
|
|
154
139
|
* @param orgId - Organization ID.
|
|
@@ -160,26 +145,6 @@ export declare const endPointMap: {
|
|
|
160
145
|
* @ignore
|
|
161
146
|
*/
|
|
162
147
|
siteInfo: (orgId: string, siteId: string) => string;
|
|
163
|
-
/**
|
|
164
|
-
* Gets the endpoint for tenant configuration data.
|
|
165
|
-
* @param orgId - Organization ID.
|
|
166
|
-
* @returns The endpoint URL string.
|
|
167
|
-
* @public
|
|
168
|
-
* @example
|
|
169
|
-
* const url = endPointMap.tenantData('org123');
|
|
170
|
-
* @ignore
|
|
171
|
-
*/
|
|
172
|
-
tenantData: (orgId: string) => string;
|
|
173
|
-
/**
|
|
174
|
-
* Gets the endpoint for organization URL mapping.
|
|
175
|
-
* @param orgId - Organization ID.
|
|
176
|
-
* @returns The endpoint URL string.
|
|
177
|
-
* @public
|
|
178
|
-
* @example
|
|
179
|
-
* const url = endPointMap.urlMapping('org123');
|
|
180
|
-
* @ignore
|
|
181
|
-
*/
|
|
182
|
-
urlMapping: (orgId: string) => string;
|
|
183
148
|
/**
|
|
184
149
|
* Gets the endpoint for dial plan.
|
|
185
150
|
* @param orgId - Organization ID.
|
|
@@ -190,16 +155,6 @@ export declare const endPointMap: {
|
|
|
190
155
|
* @ignore
|
|
191
156
|
*/
|
|
192
157
|
dialPlan: (orgId: string) => string;
|
|
193
|
-
/**
|
|
194
|
-
* Gets the endpoint for listing AI feature flags.
|
|
195
|
-
* @param orgId - Organization ID.
|
|
196
|
-
* @returns The endpoint URL string.
|
|
197
|
-
* @public
|
|
198
|
-
* @example
|
|
199
|
-
* const url = endPointMap.aiFeatureFlags('org123');
|
|
200
|
-
* @ignore
|
|
201
|
-
*/
|
|
202
|
-
aiFeature: (orgId: string) => string;
|
|
203
158
|
/**
|
|
204
159
|
* Gets the endpoint for the queue list with custom query parameters.
|
|
205
160
|
* @param orgId - Organization ID.
|
|
@@ -212,16 +167,13 @@ export declare const endPointMap: {
|
|
|
212
167
|
*/
|
|
213
168
|
queueList: (orgId: string, queryParams: string) => string;
|
|
214
169
|
/**
|
|
215
|
-
* Gets the
|
|
170
|
+
* Gets the desktop-profile-filtered dial-number mappings used by entry-point destination lists.
|
|
216
171
|
* @param orgId - Organization ID.
|
|
217
172
|
* @param queryParams - Query parameters string.
|
|
218
173
|
* @returns The endpoint URL string.
|
|
219
|
-
* @public
|
|
220
|
-
* @example
|
|
221
|
-
* const url = endPointMap.entryPointList('org123', 'page=0&pageSize=10');
|
|
222
174
|
* @ignore
|
|
223
175
|
*/
|
|
224
|
-
|
|
176
|
+
entryPointDialNumberList: (orgId: string, queryParams: string) => string;
|
|
225
177
|
/**
|
|
226
178
|
* Gets the endpoint for address book entries with custom query parameters.
|
|
227
179
|
* @param orgId - Organization ID.
|
|
@@ -246,4 +198,25 @@ export declare const endPointMap: {
|
|
|
246
198
|
* @ignore
|
|
247
199
|
*/
|
|
248
200
|
outdialAniEntries: (orgId: string, outdialANI: string, queryParams: string) => string;
|
|
201
|
+
/**
|
|
202
|
+
* Gets the endpoint for user preference by user ID.
|
|
203
|
+
* @param orgId - Organization ID.
|
|
204
|
+
* @param userId - User ID.
|
|
205
|
+
* @returns The endpoint URL string.
|
|
206
|
+
* @public
|
|
207
|
+
* @example
|
|
208
|
+
* const url = endPointMap.userPreference('org123', 'user456');
|
|
209
|
+
* @ignore
|
|
210
|
+
*/
|
|
211
|
+
userPreference: (orgId: string, userId: string) => string;
|
|
212
|
+
/**
|
|
213
|
+
* Gets the endpoint for creating user preference.
|
|
214
|
+
* @param orgId - Organization ID.
|
|
215
|
+
* @returns The endpoint URL string.
|
|
216
|
+
* @public
|
|
217
|
+
* @example
|
|
218
|
+
* const url = endPointMap.userPreferenceCreate('org123');
|
|
219
|
+
* @ignore
|
|
220
|
+
*/
|
|
221
|
+
userPreferenceCreate: (orgId: string) => string;
|
|
249
222
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
* @module AgentConfigService
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { ListAuxCodesResponse, OrgDesktopLoginResponse, UserDesktopLoginResponse, TeamList, DialPlanEntity, Profile, ListTeamsResponse, AuxCode, MultimediaProfileResponse, SiteInfo, OutdialAniEntriesResponse, OutdialAniParams } from './types';
|
|
6
6
|
/**
|
|
7
7
|
* The AgentConfigService class provides methods to fetch agent configuration data.
|
|
8
8
|
* @private
|
|
@@ -21,25 +21,24 @@ export default class AgentConfigService {
|
|
|
21
21
|
*/
|
|
22
22
|
getAgentConfig(orgId: string, agentId: string): Promise<Profile>;
|
|
23
23
|
/**
|
|
24
|
-
* Fetches the
|
|
24
|
+
* Fetches the aggregated organization desktop-login configuration for the given orgId.
|
|
25
25
|
* @ignore
|
|
26
|
-
* @param {string} orgId - organization ID for which the
|
|
27
|
-
* @
|
|
28
|
-
* @returns {Promise<AgentResponse>} - A promise that resolves to the agent configuration response.
|
|
26
|
+
* @param {string} orgId - organization ID for which the configuration is to be fetched.
|
|
27
|
+
* @returns {Promise<OrgDesktopLoginResponse>} - A promise that resolves to the organization configuration.
|
|
29
28
|
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
30
29
|
* @private
|
|
31
30
|
*/
|
|
32
|
-
|
|
31
|
+
getOrgDesktopLoginConfig(orgId: string): Promise<OrgDesktopLoginResponse>;
|
|
33
32
|
/**
|
|
34
|
-
* Fetches the desktop
|
|
33
|
+
* Fetches the aggregated user desktop-login configuration for the given orgId and ciUserId.
|
|
35
34
|
* @ignore
|
|
36
|
-
* @param {string} orgId - organization ID for which the
|
|
37
|
-
* @param {string}
|
|
38
|
-
* @returns {Promise<
|
|
35
|
+
* @param {string} orgId - organization ID for which the configuration is to be fetched.
|
|
36
|
+
* @param {string} ciUserId - CI user ID of the agent whose configuration is to be fetched.
|
|
37
|
+
* @returns {Promise<UserDesktopLoginResponse>} - A promise that resolves to the user configuration.
|
|
39
38
|
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
40
39
|
* @private
|
|
41
40
|
*/
|
|
42
|
-
|
|
41
|
+
getUserDesktopLoginConfig(orgId: string, ciUserId: string): Promise<UserDesktopLoginResponse>;
|
|
43
42
|
/**
|
|
44
43
|
* Fetches the multimedia profile data for the given orgId and multimediaProfileId.
|
|
45
44
|
* @ignore
|
|
@@ -51,30 +50,28 @@ export default class AgentConfigService {
|
|
|
51
50
|
*/
|
|
52
51
|
getMultimediaProfileById(orgId: string, multimediaProfileId: string): Promise<MultimediaProfileResponse>;
|
|
53
52
|
/**
|
|
54
|
-
* fetches the list of teams
|
|
53
|
+
* fetches the list of teams the given user belongs to.
|
|
55
54
|
* @ignore
|
|
56
55
|
* @param {string} orgId - organization ID for which the teams are to be fetched.
|
|
57
56
|
* @param {number} page - the page number to fetch.
|
|
58
57
|
* @param {number} pageSize - the number of teams to fetch per page.
|
|
59
|
-
* @param {string
|
|
60
|
-
* @param {string[]} attributes - optional attributes to include in the response.
|
|
58
|
+
* @param {string} userDbId - database ID of the user whose teams are to be fetched.
|
|
61
59
|
* @returns {Promise<ListTeamsResponse>} - A promise that resolves to the list of teams response.
|
|
62
60
|
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
63
61
|
* @private
|
|
64
62
|
*/
|
|
65
|
-
getListOfTeams(orgId: string, page: number, pageSize: number,
|
|
63
|
+
getListOfTeams(orgId: string, page: number, pageSize: number, userDbId: string): Promise<ListTeamsResponse>;
|
|
66
64
|
/**
|
|
67
|
-
* Fetches all teams
|
|
65
|
+
* Fetches all teams the given user belongs to, from all pages
|
|
68
66
|
* @ignore
|
|
69
67
|
* @param {string} orgId - organization ID for which the teams are to be fetched.
|
|
70
68
|
* @param {number} pageSize - the number of teams to fetch per page.
|
|
71
|
-
* @param {string
|
|
72
|
-
* @param {string[]} attributes - optional attributes to include in the response.
|
|
69
|
+
* @param {string} userDbId - database ID of the user whose teams are to be fetched.
|
|
73
70
|
* @returns {Promise<TeamList[]>} - A promise that resolves to the list of teams.
|
|
74
71
|
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
75
72
|
* @private
|
|
76
73
|
*/
|
|
77
|
-
getAllTeams(orgId: string, pageSize: number,
|
|
74
|
+
getAllTeams(orgId: string, pageSize: number, userDbId: string): Promise<TeamList[]>;
|
|
78
75
|
/**
|
|
79
76
|
* fetches the list of aux codes for the given orgId.
|
|
80
77
|
* @ignore
|
|
@@ -110,51 +107,6 @@ export default class AgentConfigService {
|
|
|
110
107
|
* @private
|
|
111
108
|
*/
|
|
112
109
|
getSiteInfo(orgId: string, siteId: string): Promise<SiteInfo>;
|
|
113
|
-
/**
|
|
114
|
-
* Fetches the organization info for the given orgId.
|
|
115
|
-
* @ignore
|
|
116
|
-
* @param {string} orgId - organization ID for which the organization info is to be fetched.
|
|
117
|
-
* @returns {Promise<OrgInfo>} - A promise that resolves to the organization info response.
|
|
118
|
-
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
119
|
-
* @private
|
|
120
|
-
*/
|
|
121
|
-
getOrgInfo(orgId: string): Promise<OrgInfo>;
|
|
122
|
-
/**
|
|
123
|
-
* Fetches the organization settings for the given orgId.
|
|
124
|
-
* @ignore
|
|
125
|
-
* @param {string} orgId - organization ID for which the organization settings are to be fetched.
|
|
126
|
-
* @returns {Promise<OrgSettings>} - A promise that resolves to the organization settings response.
|
|
127
|
-
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
128
|
-
* @private
|
|
129
|
-
*/
|
|
130
|
-
getOrganizationSetting(orgId: string): Promise<OrgSettings>;
|
|
131
|
-
/**
|
|
132
|
-
* Fetches the tenant data for the given orgId.
|
|
133
|
-
* @ignore
|
|
134
|
-
* @param {string} orgId - organization ID for which the tenant data is to be fetched.
|
|
135
|
-
* @returns {Promise<TenantData>} - A promise that resolves to the tenant data response.
|
|
136
|
-
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
137
|
-
* @private
|
|
138
|
-
*/
|
|
139
|
-
getTenantData(orgId: string): Promise<TenantData>;
|
|
140
|
-
/**
|
|
141
|
-
* Fetches the URL mapping data for the given orgId.
|
|
142
|
-
* @ignore
|
|
143
|
-
* @param {string} orgId - organization ID for which the URL mapping is to be fetched.
|
|
144
|
-
* @returns {Promise<URLMapping[]>} - A promise that resolves to the URL mapping response.
|
|
145
|
-
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
146
|
-
* @private
|
|
147
|
-
*/
|
|
148
|
-
getURLMapping(orgId: string): Promise<URLMapping[]>;
|
|
149
|
-
/**
|
|
150
|
-
* Fetches AI feature resources for the organization.
|
|
151
|
-
* @ignore
|
|
152
|
-
* @param {string} orgId - organization ID for which AI feature resources are to be fetched.
|
|
153
|
-
* @returns {Promise<AIFeatureFlagsResponse>} - AI feature resources response.
|
|
154
|
-
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
155
|
-
* @private
|
|
156
|
-
*/
|
|
157
|
-
getAIFeatureFlags(orgId: string): Promise<AIFeatureFlagsResponse>;
|
|
158
110
|
/**
|
|
159
111
|
* Fetches the dial plan data for the given orgId.
|
|
160
112
|
* @ignore
|