@webex/contact-center 3.12.0-next.17 → 3.12.0-next.170
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 +62 -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 +385 -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 +888 -49
- package/dist/cc.js.map +1 -1
- package/dist/config.js +13 -0
- package/dist/config.js.map +1 -1
- package/dist/constants.js +38 -3
- package/dist/constants.js.map +1 -1
- package/dist/index.js +54 -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 +185 -0
- package/dist/metrics/behavioral-events.js.map +1 -1
- package/dist/metrics/constants.js +54 -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 +10 -2
- 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 +56 -78
- 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 +93 -24
- package/dist/services/config/types.js.map +1 -1
- package/dist/services/constants.js +11 -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 +19 -2
- package/dist/services/core/websocket/WebSocketManager.js.map +1 -1
- package/dist/services/core/websocket/types.js.map +1 -1
- package/dist/services/index.js +1 -1
- 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 +1272 -605
- 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 +19 -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/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 +215 -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 +152 -9
- package/dist/types/config.d.ts +13 -0
- package/dist/types/constants.d.ts +36 -1
- package/dist/types/index.d.ts +54 -20
- package/dist/types/metrics/MetricsManager.d.ts +6 -0
- package/dist/types/metrics/constants.d.ts +48 -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 +240 -114
- package/dist/types/services/constants.d.ts +9 -0
- package/dist/types/services/core/Err.d.ts +2 -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 +1 -0
- package/dist/types/services/core/websocket/types.d.ts +1 -1
- package/dist/types/services/index.d.ts +1 -1
- 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 +17 -0
- package/dist/types/services/task/contact.d.ts +4 -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 +738 -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 +213 -11
- package/dist/types/utils/PageCache.d.ts +20 -3
- package/dist/types/webex.d.ts +1 -0
- package/dist/types.js +168 -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 +1137 -67
- package/src/config.ts +13 -0
- package/src/constants.ts +39 -1
- package/src/index.ts +62 -15
- 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 +190 -0
- package/src/metrics/constants.ts +59 -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 +16 -2
- 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 +63 -85
- package/src/services/config/index.ts +116 -277
- package/src/services/config/types.ts +229 -125
- package/src/services/constants.ts +10 -0
- package/src/services/core/Err.ts +1 -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 +28 -2
- package/src/services/core/websocket/types.ts +1 -1
- package/src/services/index.ts +1 -1
- package/src/services/task/Task.ts +1211 -0
- package/src/services/task/TaskFactory.ts +82 -0
- package/src/services/task/TaskManager.ts +1585 -724
- 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 +18 -0
- package/src/services/task/contact.ts +30 -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 +918 -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 +272 -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 +3553 -107
- package/test/unit/spec/index.ts +885 -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 +45 -1
- 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 +317 -547
- 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 +129 -53
- 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 +4734 -1769
- 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/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 -1530
- 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 -1806
- package/test/unit/spec/services/task/index.ts +0 -2205
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// making query params configurable for List Teams and List Aux Codes API
|
|
2
2
|
export const DEFAULT_PAGE = 0;
|
|
3
3
|
|
|
4
|
+
/** Desktop Profile access levels for collaboration destination categories. */
|
|
5
|
+
export const COLLABORATION_ACCESS = {
|
|
6
|
+
ALL: 'ALL',
|
|
7
|
+
SPECIFIC: 'SPECIFIC',
|
|
8
|
+
NONE: 'NONE',
|
|
9
|
+
} as const;
|
|
10
|
+
|
|
4
11
|
/**
|
|
5
12
|
* Default page size for paginated API requests.
|
|
6
13
|
* @type {number}
|
|
@@ -27,6 +34,12 @@ export const AGENT_STATE_AVAILABLE_ID = '0';
|
|
|
27
34
|
*/
|
|
28
35
|
export const AGENT_STATE_AVAILABLE = 'Available';
|
|
29
36
|
|
|
37
|
+
/** System idle-code name reserved for Agent Wellness Break. */
|
|
38
|
+
export const WELLBEING_BREAK_IDLE_CODE = 'WellbeingBreak';
|
|
39
|
+
|
|
40
|
+
/** Backend sentinel indicating wellness-break reminders are enabled. @internal */
|
|
41
|
+
export const WELLNESS_BREAK_REMINDERS_ENABLED = 'ENABLED';
|
|
42
|
+
|
|
30
43
|
/**
|
|
31
44
|
* Description for the 'Available' agent state.
|
|
32
45
|
* @type {string}
|
|
@@ -54,25 +67,20 @@ export const DEFAULT_AUXCODE_ATTRIBUTES = [
|
|
|
54
67
|
export const METHODS = {
|
|
55
68
|
// AgentConfigService methods
|
|
56
69
|
GET_AGENT_CONFIG: 'getAgentConfig',
|
|
57
|
-
|
|
58
|
-
|
|
70
|
+
GET_ORG_DESKTOP_LOGIN_CONFIG: 'getOrgDesktopLoginConfig',
|
|
71
|
+
GET_USER_DESKTOP_LOGIN_CONFIG: 'getUserDesktopLoginConfig',
|
|
59
72
|
GET_MULTIMEDIA_PROFILE_BY_ID: 'getMultimediaProfileById',
|
|
60
73
|
GET_LIST_OF_TEAMS: 'getListOfTeams',
|
|
61
74
|
GET_ALL_TEAMS: 'getAllTeams',
|
|
62
75
|
GET_LIST_OF_AUX_CODES: 'getListOfAuxCodes',
|
|
63
76
|
GET_ALL_AUX_CODES: 'getAllAuxCodes',
|
|
64
77
|
GET_SITE_INFO: 'getSiteInfo',
|
|
65
|
-
GET_ORG_INFO: 'getOrgInfo',
|
|
66
|
-
GET_ORGANIZATION_SETTING: 'getOrganizationSetting',
|
|
67
|
-
GET_TENANT_DATA: 'getTenantData',
|
|
68
|
-
GET_URL_MAPPING: 'getURLMapping',
|
|
69
78
|
GET_DIAL_PLAN_DATA: 'getDialPlanData',
|
|
70
|
-
|
|
79
|
+
GET_WELLBEING_BREAK_IDLE_CODE: 'getWellbeingBreakIdleCode',
|
|
71
80
|
GET_QUEUES: 'getQueues',
|
|
72
81
|
|
|
73
82
|
// Util methods
|
|
74
83
|
PARSE_AGENT_CONFIGS: 'parseAgentConfigs',
|
|
75
|
-
GET_URL_MAPPING_UTIL: 'getUrlMapping',
|
|
76
84
|
GET_MSFT_CONFIG: 'getMsftConfig',
|
|
77
85
|
GET_WEBEX_CONFIG: 'getWebexConfig',
|
|
78
86
|
GET_DEFAULT_AGENT_DN: 'getDefaultAgentDN',
|
|
@@ -85,34 +93,32 @@ export const METHODS = {
|
|
|
85
93
|
* Maps API endpoint names to functions that generate endpoint URLs for various organization resources.
|
|
86
94
|
* @public
|
|
87
95
|
* @example
|
|
88
|
-
* const url = endPointMap.
|
|
96
|
+
* const url = endPointMap.userDesktopLogin('org123', 'agent456');
|
|
89
97
|
*/
|
|
90
98
|
export const endPointMap = {
|
|
91
99
|
/**
|
|
92
|
-
* Gets the endpoint for
|
|
100
|
+
* Gets the endpoint for the aggregated organization desktop-login configuration.
|
|
93
101
|
* @param orgId - Organization ID.
|
|
94
|
-
* @param agentId - Agent ID.
|
|
95
102
|
* @returns The endpoint URL string.
|
|
96
103
|
* @public
|
|
97
104
|
* @example
|
|
98
|
-
* const url = endPointMap.
|
|
105
|
+
* const url = endPointMap.orgDesktopLogin('org123');
|
|
99
106
|
* @ignore
|
|
100
107
|
*/
|
|
101
|
-
|
|
102
|
-
`organization/${orgId}/user/by-ci-user-id/${agentId}`,
|
|
108
|
+
orgDesktopLogin: (orgId: string) => `organization/${orgId}/desktop-login`,
|
|
103
109
|
|
|
104
110
|
/**
|
|
105
|
-
* Gets the endpoint for
|
|
111
|
+
* Gets the endpoint for the aggregated user desktop-login configuration.
|
|
106
112
|
* @param orgId - Organization ID.
|
|
107
|
-
* @param
|
|
113
|
+
* @param ciUserId - CI user ID of the agent.
|
|
108
114
|
* @returns The endpoint URL string.
|
|
109
115
|
* @public
|
|
110
116
|
* @example
|
|
111
|
-
* const url = endPointMap.
|
|
117
|
+
* const url = endPointMap.userDesktopLogin('org123', 'agent456');
|
|
112
118
|
* @ignore
|
|
113
119
|
*/
|
|
114
|
-
|
|
115
|
-
`organization/${orgId}/
|
|
120
|
+
userDesktopLogin: (orgId: string, ciUserId: string) =>
|
|
121
|
+
`organization/${orgId}/v2/user/by-ci-user-id/${ciUserId}/desktop-login`,
|
|
116
122
|
|
|
117
123
|
/**
|
|
118
124
|
* Gets the endpoint for a multimedia profile.
|
|
@@ -128,21 +134,21 @@ export const endPointMap = {
|
|
|
128
134
|
`organization/${orgId}/multimedia-profile/${multimediaProfileId}`,
|
|
129
135
|
|
|
130
136
|
/**
|
|
131
|
-
* Gets the endpoint for listing teams
|
|
137
|
+
* Gets the endpoint for listing the teams a user belongs to.
|
|
138
|
+
* The filter value must stay unquoted — the quoted form returns HTTP 400.
|
|
132
139
|
* @param orgId - Organization ID.
|
|
133
140
|
* @param page - Page number.
|
|
134
141
|
* @param pageSize - Page size.
|
|
135
|
-
* @param
|
|
142
|
+
* @param userDbId - Database ID of the user whose teams are requested.
|
|
136
143
|
* @returns The endpoint URL string.
|
|
137
144
|
* @public
|
|
138
145
|
* @example
|
|
139
|
-
* const url = endPointMap.listTeams('org123', 0, 100,
|
|
146
|
+
* const url = endPointMap.listTeams('org123', 0, 100, 'userDb456');
|
|
140
147
|
* @ignore
|
|
141
148
|
*/
|
|
142
|
-
listTeams: (orgId: string, page: number, pageSize: number,
|
|
143
|
-
`organization/${orgId}/v2/team?page=${page}&pageSize=${pageSize}
|
|
144
|
-
|
|
145
|
-
}`,
|
|
149
|
+
listTeams: (orgId: string, page: number, pageSize: number, userDbId: string) =>
|
|
150
|
+
`organization/${orgId}/v2/team?page=${page}&pageSize=${pageSize}` +
|
|
151
|
+
`&agentView=true&filter=userId==${userDbId}`,
|
|
146
152
|
|
|
147
153
|
/**
|
|
148
154
|
* Gets the endpoint for listing auxiliary codes with optional filters and attributes.
|
|
@@ -168,27 +174,10 @@ export const endPointMap = {
|
|
|
168
174
|
filter && filter.length > 0 ? `&filter=id=in=(${filter})` : ''
|
|
169
175
|
}&attributes=${attributes}&desktopProfileFilter=true`,
|
|
170
176
|
|
|
171
|
-
/**
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
* @public
|
|
176
|
-
* @example
|
|
177
|
-
* const url = endPointMap.orgInfo('org123');
|
|
178
|
-
* @ignore
|
|
179
|
-
*/
|
|
180
|
-
orgInfo: (orgId: string) => `organization/${orgId}`,
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Gets the endpoint for organization settings.
|
|
184
|
-
* @param orgId - Organization ID.
|
|
185
|
-
* @returns The endpoint URL string.
|
|
186
|
-
* @public
|
|
187
|
-
* @example
|
|
188
|
-
* const url = endPointMap.orgSettings('org123');
|
|
189
|
-
* @ignore
|
|
190
|
-
*/
|
|
191
|
-
orgSettings: (orgId: string) => `organization/${orgId}/v2/organization-setting?agentView=true`,
|
|
177
|
+
/** Lists system idle codes without applying the agent Desktop Profile filter. */
|
|
178
|
+
systemIdleCodes: (orgId: string, page: number, pageSize: number) =>
|
|
179
|
+
`organization/${orgId}/v2/auxiliary-code?page=${page}&pageSize=${pageSize}` +
|
|
180
|
+
'&workType=IDLE_CODE&customFilter=isSystemCode==true&desktopProfileFilter=false',
|
|
192
181
|
|
|
193
182
|
/**
|
|
194
183
|
* Gets the endpoint for site info.
|
|
@@ -202,28 +191,6 @@ export const endPointMap = {
|
|
|
202
191
|
*/
|
|
203
192
|
siteInfo: (orgId: string, siteId: string) => `organization/${orgId}/site/${siteId}`,
|
|
204
193
|
|
|
205
|
-
/**
|
|
206
|
-
* Gets the endpoint for tenant configuration data.
|
|
207
|
-
* @param orgId - Organization ID.
|
|
208
|
-
* @returns The endpoint URL string.
|
|
209
|
-
* @public
|
|
210
|
-
* @example
|
|
211
|
-
* const url = endPointMap.tenantData('org123');
|
|
212
|
-
* @ignore
|
|
213
|
-
*/
|
|
214
|
-
tenantData: (orgId: string) => `organization/${orgId}/v2/tenant-configuration?agentView=true`,
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Gets the endpoint for organization URL mapping.
|
|
218
|
-
* @param orgId - Organization ID.
|
|
219
|
-
* @returns The endpoint URL string.
|
|
220
|
-
* @public
|
|
221
|
-
* @example
|
|
222
|
-
* const url = endPointMap.urlMapping('org123');
|
|
223
|
-
* @ignore
|
|
224
|
-
*/
|
|
225
|
-
urlMapping: (orgId: string) => `organization/${orgId}/v2/org-url-mapping?sort=name,ASC`,
|
|
226
|
-
|
|
227
194
|
/**
|
|
228
195
|
* Gets the endpoint for dial plan.
|
|
229
196
|
* @param orgId - Organization ID.
|
|
@@ -234,16 +201,6 @@ export const endPointMap = {
|
|
|
234
201
|
* @ignore
|
|
235
202
|
*/
|
|
236
203
|
dialPlan: (orgId: string) => `organization/${orgId}/dial-plan?agentView=true`,
|
|
237
|
-
/**
|
|
238
|
-
* Gets the endpoint for listing AI feature flags.
|
|
239
|
-
* @param orgId - Organization ID.
|
|
240
|
-
* @returns The endpoint URL string.
|
|
241
|
-
* @public
|
|
242
|
-
* @example
|
|
243
|
-
* const url = endPointMap.aiFeatureFlags('org123');
|
|
244
|
-
* @ignore
|
|
245
|
-
*/
|
|
246
|
-
aiFeature: (orgId: string) => `organization/${orgId}/v2/ai-feature?page=0&pageSize=100`,
|
|
247
204
|
|
|
248
205
|
/**
|
|
249
206
|
* Gets the endpoint for the queue list with custom query parameters.
|
|
@@ -258,17 +215,14 @@ export const endPointMap = {
|
|
|
258
215
|
queueList: (orgId: string, queryParams: string) =>
|
|
259
216
|
`/organization/${orgId}/v2/contact-service-queue?${queryParams}`,
|
|
260
217
|
/**
|
|
261
|
-
* Gets the
|
|
218
|
+
* Gets the desktop-profile-filtered dial-number mappings used by entry-point destination lists.
|
|
262
219
|
* @param orgId - Organization ID.
|
|
263
220
|
* @param queryParams - Query parameters string.
|
|
264
221
|
* @returns The endpoint URL string.
|
|
265
|
-
* @public
|
|
266
|
-
* @example
|
|
267
|
-
* const url = endPointMap.entryPointList('org123', 'page=0&pageSize=10');
|
|
268
222
|
* @ignore
|
|
269
223
|
*/
|
|
270
|
-
|
|
271
|
-
`/organization/${orgId}/
|
|
224
|
+
entryPointDialNumberList: (orgId: string, queryParams: string) =>
|
|
225
|
+
`/organization/${orgId}/v3/dial-number?${queryParams}`,
|
|
272
226
|
/**
|
|
273
227
|
* Gets the endpoint for address book entries with custom query parameters.
|
|
274
228
|
* @param orgId - Organization ID.
|
|
@@ -298,4 +252,28 @@ export const endPointMap = {
|
|
|
298
252
|
`organization/${orgId}/v2/outdial-ani/${outdialANI}/entry${
|
|
299
253
|
queryParams ? `?${queryParams}` : ''
|
|
300
254
|
}`,
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Gets the endpoint for user preference by user ID.
|
|
258
|
+
* @param orgId - Organization ID.
|
|
259
|
+
* @param userId - User ID.
|
|
260
|
+
* @returns The endpoint URL string.
|
|
261
|
+
* @public
|
|
262
|
+
* @example
|
|
263
|
+
* const url = endPointMap.userPreference('org123', 'user456');
|
|
264
|
+
* @ignore
|
|
265
|
+
*/
|
|
266
|
+
userPreference: (orgId: string, userId: string) =>
|
|
267
|
+
`organization/${orgId}/user-preference/${userId}`,
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Gets the endpoint for creating user preference.
|
|
271
|
+
* @param orgId - Organization ID.
|
|
272
|
+
* @returns The endpoint URL string.
|
|
273
|
+
* @public
|
|
274
|
+
* @example
|
|
275
|
+
* const url = endPointMap.userPreferenceCreate('org123');
|
|
276
|
+
* @ignore
|
|
277
|
+
*/
|
|
278
|
+
userPreferenceCreate: (orgId: string) => `organization/${orgId}/user-preference`,
|
|
301
279
|
};
|