@webex/contact-center 0.0.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/README.md +81 -0
- package/__mocks__/workerMock.js +15 -0
- package/babel.config.js +15 -0
- package/dist/cc.js +1416 -0
- package/dist/cc.js.map +1 -0
- package/dist/config.js +72 -0
- package/dist/config.js.map +1 -0
- package/dist/constants.js +58 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.js +142 -0
- package/dist/index.js.map +1 -0
- package/dist/logger-proxy.js +115 -0
- package/dist/logger-proxy.js.map +1 -0
- package/dist/metrics/MetricsManager.js +474 -0
- package/dist/metrics/MetricsManager.js.map +1 -0
- package/dist/metrics/behavioral-events.js +322 -0
- package/dist/metrics/behavioral-events.js.map +1 -0
- package/dist/metrics/constants.js +134 -0
- package/dist/metrics/constants.js.map +1 -0
- package/dist/services/WebCallingService.js +323 -0
- package/dist/services/WebCallingService.js.map +1 -0
- package/dist/services/agent/index.js +177 -0
- package/dist/services/agent/index.js.map +1 -0
- package/dist/services/agent/types.js +137 -0
- package/dist/services/agent/types.js.map +1 -0
- package/dist/services/config/Util.js +203 -0
- package/dist/services/config/Util.js.map +1 -0
- package/dist/services/config/constants.js +221 -0
- package/dist/services/config/constants.js.map +1 -0
- package/dist/services/config/index.js +607 -0
- package/dist/services/config/index.js.map +1 -0
- package/dist/services/config/types.js +334 -0
- package/dist/services/config/types.js.map +1 -0
- package/dist/services/constants.js +117 -0
- package/dist/services/constants.js.map +1 -0
- package/dist/services/core/Err.js +43 -0
- package/dist/services/core/Err.js.map +1 -0
- package/dist/services/core/GlobalTypes.js +6 -0
- package/dist/services/core/GlobalTypes.js.map +1 -0
- package/dist/services/core/Utils.js +126 -0
- package/dist/services/core/Utils.js.map +1 -0
- package/dist/services/core/WebexRequest.js +96 -0
- package/dist/services/core/WebexRequest.js.map +1 -0
- package/dist/services/core/aqm-reqs.js +246 -0
- package/dist/services/core/aqm-reqs.js.map +1 -0
- package/dist/services/core/constants.js +109 -0
- package/dist/services/core/constants.js.map +1 -0
- package/dist/services/core/types.js +6 -0
- package/dist/services/core/types.js.map +1 -0
- package/dist/services/core/websocket/WebSocketManager.js +187 -0
- package/dist/services/core/websocket/WebSocketManager.js.map +1 -0
- package/dist/services/core/websocket/connection-service.js +111 -0
- package/dist/services/core/websocket/connection-service.js.map +1 -0
- package/dist/services/core/websocket/keepalive.worker.js +94 -0
- package/dist/services/core/websocket/keepalive.worker.js.map +1 -0
- package/dist/services/core/websocket/types.js +6 -0
- package/dist/services/core/websocket/types.js.map +1 -0
- package/dist/services/index.js +78 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/task/AutoWrapup.js +88 -0
- package/dist/services/task/AutoWrapup.js.map +1 -0
- package/dist/services/task/TaskManager.js +369 -0
- package/dist/services/task/TaskManager.js.map +1 -0
- package/dist/services/task/constants.js +58 -0
- package/dist/services/task/constants.js.map +1 -0
- package/dist/services/task/contact.js +464 -0
- package/dist/services/task/contact.js.map +1 -0
- package/dist/services/task/dialer.js +60 -0
- package/dist/services/task/dialer.js.map +1 -0
- package/dist/services/task/index.js +1188 -0
- package/dist/services/task/index.js.map +1 -0
- package/dist/services/task/types.js +214 -0
- package/dist/services/task/types.js.map +1 -0
- package/dist/types/cc.d.ts +676 -0
- package/dist/types/config.d.ts +66 -0
- package/dist/types/constants.d.ts +45 -0
- package/dist/types/index.d.ts +178 -0
- package/dist/types/logger-proxy.d.ts +71 -0
- package/dist/types/metrics/MetricsManager.d.ts +223 -0
- package/dist/types/metrics/behavioral-events.d.ts +29 -0
- package/dist/types/metrics/constants.d.ts +127 -0
- package/dist/types/services/WebCallingService.d.ts +1 -0
- package/dist/types/services/agent/index.d.ts +46 -0
- package/dist/types/services/agent/types.d.ts +413 -0
- package/dist/types/services/config/Util.d.ts +19 -0
- package/dist/types/services/config/constants.d.ts +203 -0
- package/dist/types/services/config/index.d.ts +171 -0
- package/dist/types/services/config/types.d.ts +1113 -0
- package/dist/types/services/constants.d.ts +97 -0
- package/dist/types/services/core/Err.d.ts +119 -0
- package/dist/types/services/core/GlobalTypes.d.ts +33 -0
- package/dist/types/services/core/Utils.d.ts +36 -0
- package/dist/types/services/core/WebexRequest.d.ts +22 -0
- package/dist/types/services/core/aqm-reqs.d.ts +16 -0
- package/dist/types/services/core/constants.d.ts +85 -0
- package/dist/types/services/core/types.d.ts +47 -0
- package/dist/types/services/core/websocket/WebSocketManager.d.ts +34 -0
- package/dist/types/services/core/websocket/connection-service.d.ts +27 -0
- package/dist/types/services/core/websocket/keepalive.worker.d.ts +2 -0
- package/dist/types/services/core/websocket/types.d.ts +37 -0
- package/dist/types/services/index.d.ts +52 -0
- package/dist/types/services/task/AutoWrapup.d.ts +40 -0
- package/dist/types/services/task/TaskManager.d.ts +1 -0
- package/dist/types/services/task/constants.d.ts +46 -0
- package/dist/types/services/task/contact.d.ts +59 -0
- package/dist/types/services/task/dialer.d.ts +28 -0
- package/dist/types/services/task/index.d.ts +569 -0
- package/dist/types/services/task/types.d.ts +1041 -0
- package/dist/types/types.d.ts +452 -0
- package/dist/types/webex-config.d.ts +53 -0
- package/dist/types/webex.d.ts +7 -0
- package/dist/types.js +292 -0
- package/dist/types.js.map +1 -0
- package/dist/webex-config.js +60 -0
- package/dist/webex-config.js.map +1 -0
- package/dist/webex.js +99 -0
- package/dist/webex.js.map +1 -0
- package/jest.config.js +45 -0
- package/package.json +83 -0
- package/src/cc.ts +1618 -0
- package/src/config.ts +65 -0
- package/src/constants.ts +51 -0
- package/src/index.ts +220 -0
- package/src/logger-proxy.ts +110 -0
- package/src/metrics/MetricsManager.ts +512 -0
- package/src/metrics/behavioral-events.ts +332 -0
- package/src/metrics/constants.ts +135 -0
- package/src/services/WebCallingService.ts +351 -0
- package/src/services/agent/index.ts +149 -0
- package/src/services/agent/types.ts +440 -0
- package/src/services/config/Util.ts +261 -0
- package/src/services/config/constants.ts +249 -0
- package/src/services/config/index.ts +743 -0
- package/src/services/config/types.ts +1117 -0
- package/src/services/constants.ts +111 -0
- package/src/services/core/Err.ts +126 -0
- package/src/services/core/GlobalTypes.ts +34 -0
- package/src/services/core/Utils.ts +132 -0
- package/src/services/core/WebexRequest.ts +103 -0
- package/src/services/core/aqm-reqs.ts +272 -0
- package/src/services/core/constants.ts +106 -0
- package/src/services/core/types.ts +48 -0
- package/src/services/core/websocket/WebSocketManager.ts +196 -0
- package/src/services/core/websocket/connection-service.ts +142 -0
- package/src/services/core/websocket/keepalive.worker.js +88 -0
- package/src/services/core/websocket/types.ts +40 -0
- package/src/services/index.ts +71 -0
- package/src/services/task/AutoWrapup.ts +86 -0
- package/src/services/task/TaskManager.ts +420 -0
- package/src/services/task/constants.ts +52 -0
- package/src/services/task/contact.ts +429 -0
- package/src/services/task/dialer.ts +52 -0
- package/src/services/task/index.ts +1375 -0
- package/src/services/task/types.ts +1113 -0
- package/src/types.ts +639 -0
- package/src/webex-config.ts +54 -0
- package/src/webex.js +96 -0
- package/test/unit/spec/cc.ts +1985 -0
- package/test/unit/spec/metrics/MetricsManager.ts +491 -0
- package/test/unit/spec/metrics/behavioral-events.ts +102 -0
- package/test/unit/spec/services/WebCallingService.ts +416 -0
- package/test/unit/spec/services/agent/index.ts +65 -0
- package/test/unit/spec/services/config/index.ts +1035 -0
- package/test/unit/spec/services/core/Utils.ts +279 -0
- package/test/unit/spec/services/core/WebexRequest.ts +144 -0
- package/test/unit/spec/services/core/aqm-reqs.ts +570 -0
- package/test/unit/spec/services/core/websocket/WebSocketManager.ts +378 -0
- package/test/unit/spec/services/core/websocket/connection-service.ts +178 -0
- package/test/unit/spec/services/task/TaskManager.ts +1351 -0
- package/test/unit/spec/services/task/contact.ts +204 -0
- package/test/unit/spec/services/task/dialer.ts +157 -0
- package/test/unit/spec/services/task/index.ts +1474 -0
- package/tsconfig.json +6 -0
- package/typedoc.json +37 -0
- package/typedoc.md +240 -0
- package/umd/contact-center.min.js +3 -0
- package/umd/contact-center.min.js.map +1 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
export declare const DEFAULT_PAGE = 0;
|
|
2
|
+
/**
|
|
3
|
+
* Default page size for paginated API requests.
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @public
|
|
6
|
+
* @example
|
|
7
|
+
* const pageSize = DEFAULT_PAGE_SIZE; // 100
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
export declare const DEFAULT_PAGE_SIZE = 100;
|
|
11
|
+
/**
|
|
12
|
+
* Agent state ID for 'Available'.
|
|
13
|
+
* @type {string}
|
|
14
|
+
* @public
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
export declare const AGENT_STATE_AVAILABLE_ID = "0";
|
|
18
|
+
/**
|
|
19
|
+
* Agent state label for 'Available'.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @public
|
|
22
|
+
* @ignore
|
|
23
|
+
*/
|
|
24
|
+
export declare const AGENT_STATE_AVAILABLE = "Available";
|
|
25
|
+
/**
|
|
26
|
+
* Description for the 'Available' agent state.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @public
|
|
29
|
+
* @ignore
|
|
30
|
+
*/
|
|
31
|
+
export declare const AGENT_STATE_AVAILABLE_DESCRIPTION = "Agent is available to receive calls";
|
|
32
|
+
/**
|
|
33
|
+
* Default attributes for auxiliary code API requests.
|
|
34
|
+
* @type {string[]}
|
|
35
|
+
* @public
|
|
36
|
+
* @ignore
|
|
37
|
+
*/
|
|
38
|
+
export declare const DEFAULT_AUXCODE_ATTRIBUTES: string[];
|
|
39
|
+
export declare const METHODS: {
|
|
40
|
+
GET_AGENT_CONFIG: string;
|
|
41
|
+
GET_USER_USING_CI: string;
|
|
42
|
+
GET_DESKTOP_PROFILE_BY_ID: string;
|
|
43
|
+
GET_MULTIMEDIA_PROFILE_BY_ID: string;
|
|
44
|
+
GET_LIST_OF_TEAMS: string;
|
|
45
|
+
GET_ALL_TEAMS: string;
|
|
46
|
+
GET_LIST_OF_AUX_CODES: string;
|
|
47
|
+
GET_ALL_AUX_CODES: string;
|
|
48
|
+
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
|
+
GET_DIAL_PLAN_DATA: string;
|
|
54
|
+
GET_QUEUES: string;
|
|
55
|
+
PARSE_AGENT_CONFIGS: string;
|
|
56
|
+
GET_URL_MAPPING_UTIL: string;
|
|
57
|
+
GET_MSFT_CONFIG: string;
|
|
58
|
+
GET_WEBEX_CONFIG: string;
|
|
59
|
+
GET_DEFAULT_AGENT_DN: string;
|
|
60
|
+
GET_FILTERED_DIALPLAN_ENTRIES: string;
|
|
61
|
+
GET_FILTER_AUX_CODES: string;
|
|
62
|
+
GET_DEFAULT_WRAP_UP_CODE: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Maps API endpoint names to functions that generate endpoint URLs for various organization resources.
|
|
66
|
+
* @public
|
|
67
|
+
* @example
|
|
68
|
+
* const url = endPointMap.userByCI('org123', 'agent456');
|
|
69
|
+
*/
|
|
70
|
+
export declare const endPointMap: {
|
|
71
|
+
/**
|
|
72
|
+
* Gets the endpoint for a user by CI user ID.
|
|
73
|
+
* @param orgId - Organization ID.
|
|
74
|
+
* @param agentId - Agent ID.
|
|
75
|
+
* @returns The endpoint URL string.
|
|
76
|
+
* @public
|
|
77
|
+
* @example
|
|
78
|
+
* const url = endPointMap.userByCI('org123', 'agent456');
|
|
79
|
+
* @ignore
|
|
80
|
+
*/
|
|
81
|
+
userByCI: (orgId: string, agentId: string) => string;
|
|
82
|
+
/**
|
|
83
|
+
* Gets the endpoint for a desktop profile.
|
|
84
|
+
* @param orgId - Organization ID.
|
|
85
|
+
* @param desktopProfileId - Desktop profile ID.
|
|
86
|
+
* @returns The endpoint URL string.
|
|
87
|
+
* @public
|
|
88
|
+
* @example
|
|
89
|
+
* const url = endPointMap.desktopProfile('org123', 'profile789');
|
|
90
|
+
* @ignore
|
|
91
|
+
*/
|
|
92
|
+
desktopProfile: (orgId: string, desktopProfileId: string) => string;
|
|
93
|
+
/**
|
|
94
|
+
* Gets the endpoint for a multimedia profile.
|
|
95
|
+
* @param orgId - Organization ID.
|
|
96
|
+
* @param multimediaProfileId - Multimedia profile ID.
|
|
97
|
+
* @returns The endpoint URL string.
|
|
98
|
+
* @public
|
|
99
|
+
* @example
|
|
100
|
+
* const url = endPointMap.multimediaProfile('org123', 'multi456');
|
|
101
|
+
* @ignore
|
|
102
|
+
*/
|
|
103
|
+
multimediaProfile: (orgId: string, multimediaProfileId: string) => string;
|
|
104
|
+
/**
|
|
105
|
+
* Gets the endpoint for listing teams with optional filters.
|
|
106
|
+
* @param orgId - Organization ID.
|
|
107
|
+
* @param page - Page number.
|
|
108
|
+
* @param pageSize - Page size.
|
|
109
|
+
* @param filter - Array of team IDs to filter.
|
|
110
|
+
* @returns The endpoint URL string.
|
|
111
|
+
* @public
|
|
112
|
+
* @example
|
|
113
|
+
* const url = endPointMap.listTeams('org123', 0, 100, ['team1', 'team2']);
|
|
114
|
+
* @ignore
|
|
115
|
+
*/
|
|
116
|
+
listTeams: (orgId: string, page: number, pageSize: number, filter: string[]) => string;
|
|
117
|
+
/**
|
|
118
|
+
* Gets the endpoint for listing auxiliary codes with optional filters and attributes.
|
|
119
|
+
* @param orgId - Organization ID.
|
|
120
|
+
* @param page - Page number.
|
|
121
|
+
* @param pageSize - Page size.
|
|
122
|
+
* @param filter - Array of auxiliary code IDs to filter.
|
|
123
|
+
* @param attributes - Array of attribute names to include.
|
|
124
|
+
* @returns The endpoint URL string.
|
|
125
|
+
* @public
|
|
126
|
+
* @example
|
|
127
|
+
* const url = endPointMap.listAuxCodes('org123', 0, 100, ['aux1'], ['id', 'name']);
|
|
128
|
+
* @ignore
|
|
129
|
+
*/
|
|
130
|
+
listAuxCodes: (orgId: string, page: number, pageSize: number, filter: string[], attributes: string[]) => string;
|
|
131
|
+
/**
|
|
132
|
+
* Gets the endpoint for organization info.
|
|
133
|
+
* @param orgId - Organization ID.
|
|
134
|
+
* @returns The endpoint URL string.
|
|
135
|
+
* @public
|
|
136
|
+
* @example
|
|
137
|
+
* const url = endPointMap.orgInfo('org123');
|
|
138
|
+
* @ignore
|
|
139
|
+
*/
|
|
140
|
+
orgInfo: (orgId: string) => string;
|
|
141
|
+
/**
|
|
142
|
+
* Gets the endpoint for organization settings.
|
|
143
|
+
* @param orgId - Organization ID.
|
|
144
|
+
* @returns The endpoint URL string.
|
|
145
|
+
* @public
|
|
146
|
+
* @example
|
|
147
|
+
* const url = endPointMap.orgSettings('org123');
|
|
148
|
+
* @ignore
|
|
149
|
+
*/
|
|
150
|
+
orgSettings: (orgId: string) => string;
|
|
151
|
+
/**
|
|
152
|
+
* Gets the endpoint for site info.
|
|
153
|
+
* @param orgId - Organization ID.
|
|
154
|
+
* @param siteId - Site ID.
|
|
155
|
+
* @returns The endpoint URL string.
|
|
156
|
+
* @public
|
|
157
|
+
* @example
|
|
158
|
+
* const url = endPointMap.siteInfo('org123', 'site456');
|
|
159
|
+
* @ignore
|
|
160
|
+
*/
|
|
161
|
+
siteInfo: (orgId: string, siteId: string) => string;
|
|
162
|
+
/**
|
|
163
|
+
* Gets the endpoint for tenant configuration data.
|
|
164
|
+
* @param orgId - Organization ID.
|
|
165
|
+
* @returns The endpoint URL string.
|
|
166
|
+
* @public
|
|
167
|
+
* @example
|
|
168
|
+
* const url = endPointMap.tenantData('org123');
|
|
169
|
+
* @ignore
|
|
170
|
+
*/
|
|
171
|
+
tenantData: (orgId: string) => string;
|
|
172
|
+
/**
|
|
173
|
+
* Gets the endpoint for organization URL mapping.
|
|
174
|
+
* @param orgId - Organization ID.
|
|
175
|
+
* @returns The endpoint URL string.
|
|
176
|
+
* @public
|
|
177
|
+
* @example
|
|
178
|
+
* const url = endPointMap.urlMapping('org123');
|
|
179
|
+
* @ignore
|
|
180
|
+
*/
|
|
181
|
+
urlMapping: (orgId: string) => string;
|
|
182
|
+
/**
|
|
183
|
+
* Gets the endpoint for dial plan.
|
|
184
|
+
* @param orgId - Organization ID.
|
|
185
|
+
* @returns The endpoint URL string.
|
|
186
|
+
* @public
|
|
187
|
+
* @example
|
|
188
|
+
* const url = endPointMap.dialPlan('org123');
|
|
189
|
+
* @ignore
|
|
190
|
+
*/
|
|
191
|
+
dialPlan: (orgId: string) => string;
|
|
192
|
+
/**
|
|
193
|
+
* Gets the endpoint for the queue list with custom query parameters.
|
|
194
|
+
* @param orgId - Organization ID.
|
|
195
|
+
* @param queryParams - Query parameters string.
|
|
196
|
+
* @returns The endpoint URL string.
|
|
197
|
+
* @public
|
|
198
|
+
* @example
|
|
199
|
+
* const url = endPointMap.queueList('org123', 'page=0&pageSize=10');
|
|
200
|
+
* @ignore
|
|
201
|
+
*/
|
|
202
|
+
queueList: (orgId: string, queryParams: string) => string;
|
|
203
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module AgentConfigService
|
|
4
|
+
*/
|
|
5
|
+
import { DesktopProfileResponse, ListAuxCodesResponse, AgentResponse, OrgInfo, OrgSettings, TenantData, URLMapping, TeamList, DialPlanEntity, Profile, ListTeamsResponse, AuxCode, MultimediaProfileResponse, SiteInfo, ContactServiceQueue } from './types';
|
|
6
|
+
/**
|
|
7
|
+
* The AgentConfigService class provides methods to fetch agent configuration data.
|
|
8
|
+
* @private
|
|
9
|
+
* @ignore
|
|
10
|
+
*/
|
|
11
|
+
export default class AgentConfigService {
|
|
12
|
+
private webexReq;
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Fetches the agent configuration data for the given orgId and agentId.
|
|
16
|
+
* @param {string} orgId - organization ID for which the agent configuration is to be fetched.
|
|
17
|
+
* @param {string} agentId - agent ID for which the configuration is to be fetched.
|
|
18
|
+
* @returns {Promise<Profile>} - A promise that resolves to the agent configuration profile.
|
|
19
|
+
* @throws {Error} - Throws an error if any API call fails or if the response status is not 200.
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
getAgentConfig(orgId: string, agentId: string): Promise<Profile>;
|
|
23
|
+
/**
|
|
24
|
+
* Fetches the agent configuration data for the given orgId and agentId.
|
|
25
|
+
* @ignore
|
|
26
|
+
* @param {string} orgId - organization ID for which the agent configuration is to be fetched.
|
|
27
|
+
* @param {string} agentId - agent ID for which the configuration is to be fetched.
|
|
28
|
+
* @returns {Promise<AgentResponse>} - A promise that resolves to the agent configuration response.
|
|
29
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
getUserUsingCI(orgId: string, agentId: string): Promise<AgentResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetches the desktop profile data for the given orgId and desktopProfileId.
|
|
35
|
+
* @ignore
|
|
36
|
+
* @param {string} orgId - organization ID for which the desktop profile is to be fetched.
|
|
37
|
+
* @param {string} desktopProfileId - desktop profile ID for which the data is to be fetched.
|
|
38
|
+
* @returns {Promise<DesktopProfileResponse>} - A promise that resolves to the desktop profile response.
|
|
39
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
40
|
+
* @private
|
|
41
|
+
*/
|
|
42
|
+
getDesktopProfileById(orgId: string, desktopProfileId: string): Promise<DesktopProfileResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Fetches the multimedia profile data for the given orgId and multimediaProfileId.
|
|
45
|
+
* @ignore
|
|
46
|
+
* @param {string} orgId - organization ID for which the multimedia profile is to be fetched.
|
|
47
|
+
* @param {string} multimediaProfileId - multimedia profile ID for which the data is to be fetched.
|
|
48
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
49
|
+
* @returns {Promise<MultimediaProfileResponse>} - A promise that resolves to the multimedia profile response.
|
|
50
|
+
* @private
|
|
51
|
+
*/
|
|
52
|
+
getMultimediaProfileById(orgId: string, multimediaProfileId: string): Promise<MultimediaProfileResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* fetches the list of teams for the given orgId.
|
|
55
|
+
* @ignore
|
|
56
|
+
* @param {string} orgId - organization ID for which the teams are to be fetched.
|
|
57
|
+
* @param {number} page - the page number to fetch.
|
|
58
|
+
* @param {number} pageSize - the number of teams to fetch per page.
|
|
59
|
+
* @param {string[]} filter - optional filter criteria for the teams.
|
|
60
|
+
* @param {string[]} attributes - optional attributes to include in the response.
|
|
61
|
+
* @returns {Promise<ListTeamsResponse>} - A promise that resolves to the list of teams response.
|
|
62
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
63
|
+
* @private
|
|
64
|
+
*/
|
|
65
|
+
getListOfTeams(orgId: string, page: number, pageSize: number, filter: string[]): Promise<ListTeamsResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Fetches all teams from all pages for the given orgId
|
|
68
|
+
* @ignore
|
|
69
|
+
* @param {string} orgId - organization ID for which the teams are to be fetched.
|
|
70
|
+
* @param {number} pageSize - the number of teams to fetch per page.
|
|
71
|
+
* @param {string[]} filter - optional filter criteria for the teams.
|
|
72
|
+
* @param {string[]} attributes - optional attributes to include in the response.
|
|
73
|
+
* @returns {Promise<TeamList[]>} - A promise that resolves to the list of teams.
|
|
74
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
75
|
+
* @private
|
|
76
|
+
*/
|
|
77
|
+
getAllTeams(orgId: string, pageSize: number, filter: string[]): Promise<TeamList[]>;
|
|
78
|
+
/**
|
|
79
|
+
* fetches the list of aux codes for the given orgId.
|
|
80
|
+
* @ignore
|
|
81
|
+
* @param {string} orgId - organization ID for which the aux codes are to be fetched.
|
|
82
|
+
* @param {number} page - the page number to fetch.
|
|
83
|
+
* @param {number} pageSize - the number of aux codes to fetch per page.
|
|
84
|
+
* @param {string[]} filter - optional filter criteria for the aux codes.
|
|
85
|
+
* @param {string[]} attributes - optional attributes to include in the response.
|
|
86
|
+
* @returns {Promise<ListAuxCodesResponse>} - A promise that resolves to the list of aux codes response.
|
|
87
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
88
|
+
* @private
|
|
89
|
+
*/
|
|
90
|
+
getListOfAuxCodes(orgId: string, page: number, pageSize: number, filter: string[], attributes: string[]): Promise<ListAuxCodesResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Fetches all aux codes from all pages for the given orgId
|
|
93
|
+
* @ignore
|
|
94
|
+
* @param {string} orgId - organization ID for which the aux codes are to be fetched.
|
|
95
|
+
* @param {number} pageSize - the number of aux codes to fetch per page.
|
|
96
|
+
* @param {string[]} filter - optional filter criteria for the aux codes.
|
|
97
|
+
* @param {string[]} attributes - optional attributes to include in the response.
|
|
98
|
+
* @returns {Promise<AuxCode[]>} - A promise that resolves to the list of aux codes.
|
|
99
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
100
|
+
* @private
|
|
101
|
+
*/
|
|
102
|
+
getAllAuxCodes(orgId: string, pageSize: number, filter: string[], attributes: string[]): Promise<AuxCode[]>;
|
|
103
|
+
/**
|
|
104
|
+
* Fetches the site data for the given orgId and siteId.
|
|
105
|
+
* @ignore
|
|
106
|
+
* @param {string} orgId - organization ID for which the site info is to be fetched.
|
|
107
|
+
* @param {string} siteId - site ID for which the data is to be fetched.
|
|
108
|
+
* @returns {Promise<SiteInfo>} - A promise that resolves to the site info response.
|
|
109
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
110
|
+
* @private
|
|
111
|
+
*/
|
|
112
|
+
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 the dial plan data for the given orgId.
|
|
151
|
+
* @ignore
|
|
152
|
+
* @param {string} orgId - organization ID for which the dial plan data is to be fetched.
|
|
153
|
+
* @returns {Promise<DialPlanEntity[]>} - A promise that resolves to the dial plan data response.
|
|
154
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
155
|
+
* @private
|
|
156
|
+
*/
|
|
157
|
+
getDialPlanData(orgId: string): Promise<DialPlanEntity[]>;
|
|
158
|
+
/**
|
|
159
|
+
* Fetches the list of queues for the given orgId.
|
|
160
|
+
* @ignore
|
|
161
|
+
* @param {string} orgId - organization ID for which the queues are to be fetched.
|
|
162
|
+
* @param {number} page - the page number to fetch.
|
|
163
|
+
* @param {number} pageSize - the number of queues to fetch per page.
|
|
164
|
+
* @param {string} search - optional search string
|
|
165
|
+
* @param {string} filter - optional filter string
|
|
166
|
+
* @returns Promise<ContactServiceQueue[]> - A promise that resolves to the list of contact service queues.
|
|
167
|
+
* @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
|
|
168
|
+
* @private
|
|
169
|
+
*/
|
|
170
|
+
getQueues(orgId: string, page: number, pageSize: number, search?: string, filter?: string): Promise<ContactServiceQueue[]>;
|
|
171
|
+
}
|