purecloud-platform-client-v2 253.0.0 → 255.0.0
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 +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1886 -311
- package/dist/web-amd/purecloud-platform-client-v2.js +1887 -311
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +635 -310
- package/dist/web-cjs/purecloud-platform-client-v2.js +642 -3129
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1030 -65
- package/package.json +1 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +5 -5
- package/src/purecloud-platform-client-v2/PureCloudRegionHosts.js +1 -0
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -62
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +64 -1
- package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BackgroundAssistantApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +435 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CaseManagementApi.js +207 -125
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +2 -6
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -5
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -5
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -9
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +155 -3
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +268 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -5
- package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +719 -57
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class RoutingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Routing service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 255.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -170,6 +170,36 @@ class RoutingApi {
|
|
|
170
170
|
);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Delete an email setting. Removes the email setting and its associated settings
|
|
175
|
+
*
|
|
176
|
+
* @param {String} emailSettingId Email Setting ID
|
|
177
|
+
* @param {Object} opts Optional parameters
|
|
178
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
179
|
+
*/
|
|
180
|
+
deleteRoutingEmailSettingEmailSettingId(emailSettingId, opts) {
|
|
181
|
+
opts = opts || {};
|
|
182
|
+
|
|
183
|
+
// verify the required parameter 'emailSettingId' is set
|
|
184
|
+
if (emailSettingId === undefined || emailSettingId === null || emailSettingId === '') {
|
|
185
|
+
throw 'Missing the required parameter "emailSettingId" when calling deleteRoutingEmailSettingEmailSettingId';
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return this.apiClient.callApi(
|
|
189
|
+
'/api/v2/routing/email/setting/{emailSettingId}',
|
|
190
|
+
'DELETE',
|
|
191
|
+
{ 'emailSettingId': emailSettingId },
|
|
192
|
+
{ },
|
|
193
|
+
{ },
|
|
194
|
+
{ },
|
|
195
|
+
null,
|
|
196
|
+
['PureCloud OAuth'],
|
|
197
|
+
['application/json'],
|
|
198
|
+
['application/json'],
|
|
199
|
+
opts['customHeaders']
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
173
203
|
/**
|
|
174
204
|
* Delete a routing language
|
|
175
205
|
*
|
|
@@ -1327,6 +1357,63 @@ class RoutingApi {
|
|
|
1327
1357
|
);
|
|
1328
1358
|
}
|
|
1329
1359
|
|
|
1360
|
+
/**
|
|
1361
|
+
* Get a paged list of email routing settings.
|
|
1362
|
+
*
|
|
1363
|
+
* @param {Object} opts Optional parameters
|
|
1364
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1365
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1366
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1367
|
+
*/
|
|
1368
|
+
getRoutingEmailSetting(opts) {
|
|
1369
|
+
opts = opts || {};
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
return this.apiClient.callApi(
|
|
1373
|
+
'/api/v2/routing/email/setting',
|
|
1374
|
+
'GET',
|
|
1375
|
+
{ },
|
|
1376
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
1377
|
+
{ },
|
|
1378
|
+
{ },
|
|
1379
|
+
null,
|
|
1380
|
+
['PureCloud OAuth'],
|
|
1381
|
+
['application/json'],
|
|
1382
|
+
['application/json'],
|
|
1383
|
+
opts['customHeaders']
|
|
1384
|
+
);
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Get email setting. Returns the specified email setting that defines settings for email
|
|
1389
|
+
*
|
|
1390
|
+
* @param {String} emailSettingId Email Setting ID
|
|
1391
|
+
* @param {Object} opts Optional parameters
|
|
1392
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1393
|
+
*/
|
|
1394
|
+
getRoutingEmailSettingEmailSettingId(emailSettingId, opts) {
|
|
1395
|
+
opts = opts || {};
|
|
1396
|
+
|
|
1397
|
+
// verify the required parameter 'emailSettingId' is set
|
|
1398
|
+
if (emailSettingId === undefined || emailSettingId === null || emailSettingId === '') {
|
|
1399
|
+
throw 'Missing the required parameter "emailSettingId" when calling getRoutingEmailSettingEmailSettingId';
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
return this.apiClient.callApi(
|
|
1403
|
+
'/api/v2/routing/email/setting/{emailSettingId}',
|
|
1404
|
+
'GET',
|
|
1405
|
+
{ 'emailSettingId': emailSettingId },
|
|
1406
|
+
{ },
|
|
1407
|
+
{ },
|
|
1408
|
+
{ },
|
|
1409
|
+
null,
|
|
1410
|
+
['PureCloud OAuth'],
|
|
1411
|
+
['application/json'],
|
|
1412
|
+
['application/json'],
|
|
1413
|
+
opts['customHeaders']
|
|
1414
|
+
);
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1330
1417
|
/**
|
|
1331
1418
|
* Get email setup
|
|
1332
1419
|
*
|
|
@@ -2071,7 +2158,7 @@ class RoutingApi {
|
|
|
2071
2158
|
* @param {Object} opts.sortOrder Sort order (default to asc)
|
|
2072
2159
|
* @param {String} opts.name Name
|
|
2073
2160
|
* @param {Array.<String>} opts.id Queue ID(s)
|
|
2074
|
-
* @param {Array.<String>} opts.divisionId Division ID(s)
|
|
2161
|
+
* @param {Array.<String>} opts.divisionId Division ID(s). Including '*' will query for all divisions
|
|
2075
2162
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2076
2163
|
*/
|
|
2077
2164
|
getRoutingQueuesDivisionviews(opts) {
|
|
@@ -2472,7 +2559,7 @@ class RoutingApi {
|
|
|
2472
2559
|
}
|
|
2473
2560
|
|
|
2474
2561
|
/**
|
|
2475
|
-
* Get the list of routing skills.
|
|
2562
|
+
* Get the list of routing skills. View permission enforcement only applies to skills assigned to a division.
|
|
2476
2563
|
*
|
|
2477
2564
|
* @param {Object} opts Optional parameters
|
|
2478
2565
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
@@ -3265,6 +3352,41 @@ class RoutingApi {
|
|
|
3265
3352
|
);
|
|
3266
3353
|
}
|
|
3267
3354
|
|
|
3355
|
+
/**
|
|
3356
|
+
* Update an email setting. Modifies the settings for email setting
|
|
3357
|
+
*
|
|
3358
|
+
* @param {String} emailSettingId Email Setting ID
|
|
3359
|
+
* @param {Object} body EmailSetting
|
|
3360
|
+
* @param {Object} opts Optional parameters
|
|
3361
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
3362
|
+
*/
|
|
3363
|
+
patchRoutingEmailSettingEmailSettingId(emailSettingId, body, opts) {
|
|
3364
|
+
opts = opts || {};
|
|
3365
|
+
|
|
3366
|
+
// verify the required parameter 'emailSettingId' is set
|
|
3367
|
+
if (emailSettingId === undefined || emailSettingId === null || emailSettingId === '') {
|
|
3368
|
+
throw 'Missing the required parameter "emailSettingId" when calling patchRoutingEmailSettingEmailSettingId';
|
|
3369
|
+
}
|
|
3370
|
+
// verify the required parameter 'body' is set
|
|
3371
|
+
if (body === undefined || body === null) {
|
|
3372
|
+
throw 'Missing the required parameter "body" when calling patchRoutingEmailSettingEmailSettingId';
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
return this.apiClient.callApi(
|
|
3376
|
+
'/api/v2/routing/email/setting/{emailSettingId}',
|
|
3377
|
+
'PATCH',
|
|
3378
|
+
{ 'emailSettingId': emailSettingId },
|
|
3379
|
+
{ },
|
|
3380
|
+
{ },
|
|
3381
|
+
{ },
|
|
3382
|
+
body,
|
|
3383
|
+
['PureCloud OAuth'],
|
|
3384
|
+
['application/json'],
|
|
3385
|
+
['application/json'],
|
|
3386
|
+
opts['customHeaders']
|
|
3387
|
+
);
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3268
3390
|
/**
|
|
3269
3391
|
* Update single predictor.
|
|
3270
3392
|
*
|
|
@@ -4227,6 +4349,36 @@ class RoutingApi {
|
|
|
4227
4349
|
);
|
|
4228
4350
|
}
|
|
4229
4351
|
|
|
4352
|
+
/**
|
|
4353
|
+
* Create a new email setting. Used to define various settings, that can then be associated with email domains
|
|
4354
|
+
*
|
|
4355
|
+
* @param {Object} body EmailSetting
|
|
4356
|
+
* @param {Object} opts Optional parameters
|
|
4357
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
4358
|
+
*/
|
|
4359
|
+
postRoutingEmailSetting(body, opts) {
|
|
4360
|
+
opts = opts || {};
|
|
4361
|
+
|
|
4362
|
+
// verify the required parameter 'body' is set
|
|
4363
|
+
if (body === undefined || body === null) {
|
|
4364
|
+
throw 'Missing the required parameter "body" when calling postRoutingEmailSetting';
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4367
|
+
return this.apiClient.callApi(
|
|
4368
|
+
'/api/v2/routing/email/setting',
|
|
4369
|
+
'POST',
|
|
4370
|
+
{ },
|
|
4371
|
+
{ },
|
|
4372
|
+
{ },
|
|
4373
|
+
{ },
|
|
4374
|
+
body,
|
|
4375
|
+
['PureCloud OAuth'],
|
|
4376
|
+
['application/json'],
|
|
4377
|
+
['application/json'],
|
|
4378
|
+
opts['customHeaders']
|
|
4379
|
+
);
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4230
4382
|
/**
|
|
4231
4383
|
* Create Language
|
|
4232
4384
|
*
|
|
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* SpeechTextAnalytics service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 255.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -487,7 +487,7 @@ class SpeechTextAnalyticsApi {
|
|
|
487
487
|
* @param {String} opts.dialect The key for filter the listing by dialect, dialect format is {language}-{country} where language follows ISO 639-1 standard and country follows ISO 3166-1 alpha 2 standard
|
|
488
488
|
* @param {Object} opts.transcriptionEngine Filter by transcription engine, If not provided, all transcription engines will be considered
|
|
489
489
|
* @param {String} opts.nextPage The key for listing the next page
|
|
490
|
-
* @param {Number} opts.pageSize The page size for the listing (default to 500)
|
|
490
|
+
* @param {Number} opts.pageSize The page size for the listing. Default is 500 per page. Note: organizations may store up to 1000 dictionary terms per dialect; use nextPage to paginate beyond the first page when listing a full dialect vocabulary. (default to 500)
|
|
491
491
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
492
492
|
*/
|
|
493
493
|
getSpeechandtextanalyticsDictionaryfeedback(opts) {
|
|
@@ -5,7 +5,7 @@ class TelephonyApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Telephony service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 255.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,6 +20,36 @@ class TelephonyApi {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Delete a link
|
|
25
|
+
*
|
|
26
|
+
* @param {String} targetOrganizationId targetOrganizationId
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29
|
+
*/
|
|
30
|
+
deleteTelephonyOrganizationLinkTargetOrganizationId(targetOrganizationId, opts) {
|
|
31
|
+
opts = opts || {};
|
|
32
|
+
|
|
33
|
+
// verify the required parameter 'targetOrganizationId' is set
|
|
34
|
+
if (targetOrganizationId === undefined || targetOrganizationId === null || targetOrganizationId === '') {
|
|
35
|
+
throw 'Missing the required parameter "targetOrganizationId" when calling deleteTelephonyOrganizationLinkTargetOrganizationId';
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return this.apiClient.callApi(
|
|
39
|
+
'/api/v2/telephony/organization/link/{targetOrganizationId}',
|
|
40
|
+
'DELETE',
|
|
41
|
+
{ 'targetOrganizationId': targetOrganizationId },
|
|
42
|
+
{ },
|
|
43
|
+
{ },
|
|
44
|
+
{ },
|
|
45
|
+
null,
|
|
46
|
+
['PureCloud OAuth'],
|
|
47
|
+
['application/json'],
|
|
48
|
+
['application/json'],
|
|
49
|
+
opts['customHeaders']
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
23
53
|
/**
|
|
24
54
|
* Get an agent's greetings.
|
|
25
55
|
*
|
|
@@ -126,6 +156,88 @@ class TelephonyApi {
|
|
|
126
156
|
);
|
|
127
157
|
}
|
|
128
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Get Number Routings by organizationId
|
|
161
|
+
*
|
|
162
|
+
* @param {Object} opts Optional parameters
|
|
163
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
164
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
165
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
166
|
+
* @param {String} opts.numberId numberId
|
|
167
|
+
* @param {String} opts.activeRoutingOrganizationId activeRoutingOrganizationId
|
|
168
|
+
* @param {String} opts.ownerOrganizationId ownerOrganizationId
|
|
169
|
+
* @param {Object} opts.status status
|
|
170
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
171
|
+
*/
|
|
172
|
+
getTelephonyNumbersRouting(opts) {
|
|
173
|
+
opts = opts || {};
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
return this.apiClient.callApi(
|
|
177
|
+
'/api/v2/telephony/numbers/routing',
|
|
178
|
+
'GET',
|
|
179
|
+
{ },
|
|
180
|
+
{ 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'numberId': opts['numberId'],'activeRoutingOrganizationId': opts['activeRoutingOrganizationId'],'ownerOrganizationId': opts['ownerOrganizationId'],'status': opts['status'] },
|
|
181
|
+
{ },
|
|
182
|
+
{ },
|
|
183
|
+
null,
|
|
184
|
+
['PureCloud OAuth'],
|
|
185
|
+
['application/json'],
|
|
186
|
+
['application/json'],
|
|
187
|
+
opts['customHeaders']
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Get organization links
|
|
193
|
+
*
|
|
194
|
+
* @param {Object} opts Optional parameters
|
|
195
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
196
|
+
*/
|
|
197
|
+
getTelephonyOrganizationLink(opts) {
|
|
198
|
+
opts = opts || {};
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
return this.apiClient.callApi(
|
|
202
|
+
'/api/v2/telephony/organization/link',
|
|
203
|
+
'GET',
|
|
204
|
+
{ },
|
|
205
|
+
{ },
|
|
206
|
+
{ },
|
|
207
|
+
{ },
|
|
208
|
+
null,
|
|
209
|
+
['PureCloud OAuth'],
|
|
210
|
+
['application/json'],
|
|
211
|
+
['application/json'],
|
|
212
|
+
opts['customHeaders']
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Get all the replica regions by primary region
|
|
218
|
+
*
|
|
219
|
+
* @param {Object} opts Optional parameters
|
|
220
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
221
|
+
*/
|
|
222
|
+
getTelephonyOrganizationLinkRegions(opts) {
|
|
223
|
+
opts = opts || {};
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
return this.apiClient.callApi(
|
|
227
|
+
'/api/v2/telephony/organization/link/regions',
|
|
228
|
+
'GET',
|
|
229
|
+
{ },
|
|
230
|
+
{ },
|
|
231
|
+
{ },
|
|
232
|
+
{ },
|
|
233
|
+
null,
|
|
234
|
+
['PureCloud OAuth'],
|
|
235
|
+
['application/json'],
|
|
236
|
+
['application/json'],
|
|
237
|
+
opts['customHeaders']
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
129
241
|
/**
|
|
130
242
|
* Get the global telephony configuration.
|
|
131
243
|
*
|
|
@@ -281,6 +393,161 @@ class TelephonyApi {
|
|
|
281
393
|
);
|
|
282
394
|
}
|
|
283
395
|
|
|
396
|
+
/**
|
|
397
|
+
* Approving a requested link
|
|
398
|
+
*
|
|
399
|
+
* @param {String} requestingOrganizationId requestingOrganizationId
|
|
400
|
+
* @param {Object} body Approval request body
|
|
401
|
+
* @param {Object} opts Optional parameters
|
|
402
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
403
|
+
*/
|
|
404
|
+
patchTelephonyOrganizationLinkApproveRequestingOrganizationId(requestingOrganizationId, body, opts) {
|
|
405
|
+
opts = opts || {};
|
|
406
|
+
|
|
407
|
+
// verify the required parameter 'requestingOrganizationId' is set
|
|
408
|
+
if (requestingOrganizationId === undefined || requestingOrganizationId === null || requestingOrganizationId === '') {
|
|
409
|
+
throw 'Missing the required parameter "requestingOrganizationId" when calling patchTelephonyOrganizationLinkApproveRequestingOrganizationId';
|
|
410
|
+
}
|
|
411
|
+
// verify the required parameter 'body' is set
|
|
412
|
+
if (body === undefined || body === null) {
|
|
413
|
+
throw 'Missing the required parameter "body" when calling patchTelephonyOrganizationLinkApproveRequestingOrganizationId';
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
return this.apiClient.callApi(
|
|
417
|
+
'/api/v2/telephony/organization/link/approve/{requestingOrganizationId}',
|
|
418
|
+
'PATCH',
|
|
419
|
+
{ 'requestingOrganizationId': requestingOrganizationId },
|
|
420
|
+
{ },
|
|
421
|
+
{ },
|
|
422
|
+
{ },
|
|
423
|
+
body,
|
|
424
|
+
['PureCloud OAuth'],
|
|
425
|
+
['application/json'],
|
|
426
|
+
['application/json'],
|
|
427
|
+
opts['customHeaders']
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Update the routing of numbers for one or multiple organizations
|
|
433
|
+
*
|
|
434
|
+
* @param {Array.<Object>} body drRoutingList
|
|
435
|
+
* @param {Object} opts Optional parameters
|
|
436
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
437
|
+
*/
|
|
438
|
+
postTelephonyNumbersRouting(body, opts) {
|
|
439
|
+
opts = opts || {};
|
|
440
|
+
|
|
441
|
+
// verify the required parameter 'body' is set
|
|
442
|
+
if (body === undefined || body === null) {
|
|
443
|
+
throw 'Missing the required parameter "body" when calling postTelephonyNumbersRouting';
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
return this.apiClient.callApi(
|
|
447
|
+
'/api/v2/telephony/numbers/routing',
|
|
448
|
+
'POST',
|
|
449
|
+
{ },
|
|
450
|
+
{ },
|
|
451
|
+
{ },
|
|
452
|
+
{ },
|
|
453
|
+
body,
|
|
454
|
+
['PureCloud OAuth'],
|
|
455
|
+
['application/json'],
|
|
456
|
+
['application/json'],
|
|
457
|
+
opts['customHeaders']
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Re-route all numbers on an organization
|
|
463
|
+
*
|
|
464
|
+
* @param {Object} body Value for all routing request body
|
|
465
|
+
* @param {Object} opts Optional parameters
|
|
466
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
467
|
+
*/
|
|
468
|
+
postTelephonyNumbersRoutingAll(body, opts) {
|
|
469
|
+
opts = opts || {};
|
|
470
|
+
|
|
471
|
+
// verify the required parameter 'body' is set
|
|
472
|
+
if (body === undefined || body === null) {
|
|
473
|
+
throw 'Missing the required parameter "body" when calling postTelephonyNumbersRoutingAll';
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
return this.apiClient.callApi(
|
|
477
|
+
'/api/v2/telephony/numbers/routing/all',
|
|
478
|
+
'POST',
|
|
479
|
+
{ },
|
|
480
|
+
{ },
|
|
481
|
+
{ },
|
|
482
|
+
{ },
|
|
483
|
+
body,
|
|
484
|
+
['PureCloud OAuth'],
|
|
485
|
+
['application/json'],
|
|
486
|
+
['application/json'],
|
|
487
|
+
opts['customHeaders']
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Reset routing for organization
|
|
493
|
+
*
|
|
494
|
+
* @param {Object} body Value for bulk routing request body
|
|
495
|
+
* @param {Object} opts Optional parameters
|
|
496
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
497
|
+
*/
|
|
498
|
+
postTelephonyNumbersRoutingReset(body, opts) {
|
|
499
|
+
opts = opts || {};
|
|
500
|
+
|
|
501
|
+
// verify the required parameter 'body' is set
|
|
502
|
+
if (body === undefined || body === null) {
|
|
503
|
+
throw 'Missing the required parameter "body" when calling postTelephonyNumbersRoutingReset';
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
return this.apiClient.callApi(
|
|
507
|
+
'/api/v2/telephony/numbers/routing/reset',
|
|
508
|
+
'POST',
|
|
509
|
+
{ },
|
|
510
|
+
{ },
|
|
511
|
+
{ },
|
|
512
|
+
{ },
|
|
513
|
+
body,
|
|
514
|
+
['PureCloud OAuth'],
|
|
515
|
+
['application/json'],
|
|
516
|
+
['application/json'],
|
|
517
|
+
opts['customHeaders']
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Create a link with an organization
|
|
523
|
+
*
|
|
524
|
+
* @param {Object} body CreateLinkOrg body
|
|
525
|
+
* @param {Object} opts Optional parameters
|
|
526
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
527
|
+
*/
|
|
528
|
+
postTelephonyOrganizationLink(body, opts) {
|
|
529
|
+
opts = opts || {};
|
|
530
|
+
|
|
531
|
+
// verify the required parameter 'body' is set
|
|
532
|
+
if (body === undefined || body === null) {
|
|
533
|
+
throw 'Missing the required parameter "body" when calling postTelephonyOrganizationLink';
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
return this.apiClient.callApi(
|
|
537
|
+
'/api/v2/telephony/organization/link',
|
|
538
|
+
'POST',
|
|
539
|
+
{ },
|
|
540
|
+
{ },
|
|
541
|
+
{ },
|
|
542
|
+
{ },
|
|
543
|
+
body,
|
|
544
|
+
['PureCloud OAuth'],
|
|
545
|
+
['application/json'],
|
|
546
|
+
['application/json'],
|
|
547
|
+
opts['customHeaders']
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
|
|
284
551
|
/**
|
|
285
552
|
* Request a download of a pcap file to S3
|
|
286
553
|
*
|