purecloud-platform-client-v2 207.0.0 → 209.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 +1392 -162
- package/dist/web-amd/purecloud-platform-client-v2.js +1392 -162
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +511 -178
- package/dist/web-cjs/purecloud-platform-client-v2.js +669 -256
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +4261 -3234
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.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 +4 -4
- package/src/purecloud-platform-client-v2/api/ArchitectApi.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/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- 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 +1 -2
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.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 +3 -8
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- 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 +31 -11
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +136 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +11 -5
- 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 +52 -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 +5 -3
- 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 +40 -36
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +55 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +910 -0
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +4 -4
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +55 -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 +12 -12
- 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 +7 -7
- package/src/purecloud-platform-client-v2/index.js +7 -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 209.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -413,18 +413,18 @@ class RoutingApi {
|
|
|
413
413
|
/**
|
|
414
414
|
* Delete a phone number provisioned for SMS.
|
|
415
415
|
*
|
|
416
|
-
* @param {String}
|
|
416
|
+
* @param {String} phoneNumberId phone number
|
|
417
417
|
*/
|
|
418
|
-
deleteRoutingSmsPhonenumber(
|
|
419
|
-
// verify the required parameter '
|
|
420
|
-
if (
|
|
421
|
-
throw 'Missing the required parameter "
|
|
418
|
+
deleteRoutingSmsPhonenumber(phoneNumberId) {
|
|
419
|
+
// verify the required parameter 'phoneNumberId' is set
|
|
420
|
+
if (phoneNumberId === undefined || phoneNumberId === null) {
|
|
421
|
+
throw 'Missing the required parameter "phoneNumberId" when calling deleteRoutingSmsPhonenumber';
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
return this.apiClient.callApi(
|
|
425
|
-
'/api/v2/routing/sms/phonenumbers/{
|
|
425
|
+
'/api/v2/routing/sms/phonenumbers/{phoneNumberId}',
|
|
426
426
|
'DELETE',
|
|
427
|
-
{ '
|
|
427
|
+
{ 'phoneNumberId': phoneNumberId },
|
|
428
428
|
{ },
|
|
429
429
|
{ },
|
|
430
430
|
{ },
|
|
@@ -590,7 +590,7 @@ class RoutingApi {
|
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
/**
|
|
593
|
-
* Remove routing language from user
|
|
593
|
+
* Remove a routing language from a user
|
|
594
594
|
*
|
|
595
595
|
* @param {String} userId User ID
|
|
596
596
|
* @param {String} languageId languageId
|
|
@@ -620,7 +620,7 @@ class RoutingApi {
|
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
/**
|
|
623
|
-
* Remove routing skill from user
|
|
623
|
+
* Remove a routing skill from a user
|
|
624
624
|
*
|
|
625
625
|
* @param {String} userId User ID
|
|
626
626
|
* @param {String} skillId skillId
|
|
@@ -1403,9 +1403,13 @@ class RoutingApi {
|
|
|
1403
1403
|
* Get Estimated Wait Time
|
|
1404
1404
|
*
|
|
1405
1405
|
* @param {String} queueId queueId
|
|
1406
|
-
* @param {
|
|
1406
|
+
* @param {Object} mediaType mediaType
|
|
1407
|
+
* @param {Object} opts Optional parameters
|
|
1408
|
+
* @param {String} opts.labelId Unique id that represents the interaction label used with media type for EWT calculation
|
|
1407
1409
|
*/
|
|
1408
|
-
getRoutingQueueMediatypeEstimatedwaittime(queueId, mediaType) {
|
|
1410
|
+
getRoutingQueueMediatypeEstimatedwaittime(queueId, mediaType, opts) {
|
|
1411
|
+
opts = opts || {};
|
|
1412
|
+
|
|
1409
1413
|
// verify the required parameter 'queueId' is set
|
|
1410
1414
|
if (queueId === undefined || queueId === null) {
|
|
1411
1415
|
throw 'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';
|
|
@@ -1419,7 +1423,7 @@ class RoutingApi {
|
|
|
1419
1423
|
'/api/v2/routing/queues/{queueId}/mediatypes/{mediaType}/estimatedwaittime',
|
|
1420
1424
|
'GET',
|
|
1421
1425
|
{ 'queueId': queueId,'mediaType': mediaType },
|
|
1422
|
-
{
|
|
1426
|
+
{ 'labelId': opts['labelId'] },
|
|
1423
1427
|
{ },
|
|
1424
1428
|
{ },
|
|
1425
1429
|
null,
|
|
@@ -1970,22 +1974,22 @@ class RoutingApi {
|
|
|
1970
1974
|
/**
|
|
1971
1975
|
* Get a phone number provisioned for SMS.
|
|
1972
1976
|
*
|
|
1973
|
-
* @param {String}
|
|
1977
|
+
* @param {String} phoneNumberId phone number
|
|
1974
1978
|
* @param {Object} opts Optional parameters
|
|
1975
1979
|
* @param {Object} opts.expand Expand response with additional information
|
|
1976
1980
|
*/
|
|
1977
|
-
getRoutingSmsPhonenumber(
|
|
1981
|
+
getRoutingSmsPhonenumber(phoneNumberId, opts) {
|
|
1978
1982
|
opts = opts || {};
|
|
1979
1983
|
|
|
1980
|
-
// verify the required parameter '
|
|
1981
|
-
if (
|
|
1982
|
-
throw 'Missing the required parameter "
|
|
1984
|
+
// verify the required parameter 'phoneNumberId' is set
|
|
1985
|
+
if (phoneNumberId === undefined || phoneNumberId === null) {
|
|
1986
|
+
throw 'Missing the required parameter "phoneNumberId" when calling getRoutingSmsPhonenumber';
|
|
1983
1987
|
}
|
|
1984
1988
|
|
|
1985
1989
|
return this.apiClient.callApi(
|
|
1986
|
-
'/api/v2/routing/sms/phonenumbers/{
|
|
1990
|
+
'/api/v2/routing/sms/phonenumbers/{phoneNumberId}',
|
|
1987
1991
|
'GET',
|
|
1988
|
-
{ '
|
|
1992
|
+
{ 'phoneNumberId': phoneNumberId },
|
|
1989
1993
|
{ 'expand': opts['expand'] },
|
|
1990
1994
|
{ },
|
|
1991
1995
|
{ },
|
|
@@ -2399,7 +2403,7 @@ class RoutingApi {
|
|
|
2399
2403
|
}
|
|
2400
2404
|
|
|
2401
2405
|
/**
|
|
2402
|
-
* List routing
|
|
2406
|
+
* List routing languages assigned to a user
|
|
2403
2407
|
*
|
|
2404
2408
|
* @param {String} userId User ID
|
|
2405
2409
|
* @param {Object} opts Optional parameters
|
|
@@ -2430,7 +2434,7 @@ class RoutingApi {
|
|
|
2430
2434
|
}
|
|
2431
2435
|
|
|
2432
2436
|
/**
|
|
2433
|
-
* List routing skills
|
|
2437
|
+
* List routing skills assigned to a user
|
|
2434
2438
|
*
|
|
2435
2439
|
* @param {String} userId User ID
|
|
2436
2440
|
* @param {Object} opts Optional parameters
|
|
@@ -2892,7 +2896,7 @@ class RoutingApi {
|
|
|
2892
2896
|
}
|
|
2893
2897
|
|
|
2894
2898
|
/**
|
|
2895
|
-
* Update routing language proficiency
|
|
2899
|
+
* Update an assigned routing language's proficiency
|
|
2896
2900
|
*
|
|
2897
2901
|
* @param {String} userId User ID
|
|
2898
2902
|
* @param {String} languageId languageId
|
|
@@ -2927,7 +2931,7 @@ class RoutingApi {
|
|
|
2927
2931
|
}
|
|
2928
2932
|
|
|
2929
2933
|
/**
|
|
2930
|
-
*
|
|
2934
|
+
* Assign multiple routing languages to a user. Max 50 routing languages in request body
|
|
2931
2935
|
*
|
|
2932
2936
|
* @param {String} userId User ID
|
|
2933
2937
|
* @param {Array.<Object>} body Language
|
|
@@ -2957,7 +2961,7 @@ class RoutingApi {
|
|
|
2957
2961
|
}
|
|
2958
2962
|
|
|
2959
2963
|
/**
|
|
2960
|
-
*
|
|
2964
|
+
* Assign multiple routing skills to a user
|
|
2961
2965
|
*
|
|
2962
2966
|
* @param {String} userId User ID
|
|
2963
2967
|
* @param {Array.<Object>} body Skill
|
|
@@ -3653,7 +3657,7 @@ class RoutingApi {
|
|
|
3653
3657
|
}
|
|
3654
3658
|
|
|
3655
3659
|
/**
|
|
3656
|
-
*
|
|
3660
|
+
* Assign a routing language to a user
|
|
3657
3661
|
*
|
|
3658
3662
|
* @param {String} userId User ID
|
|
3659
3663
|
* @param {Object} body Language
|
|
@@ -3683,7 +3687,7 @@ class RoutingApi {
|
|
|
3683
3687
|
}
|
|
3684
3688
|
|
|
3685
3689
|
/**
|
|
3686
|
-
*
|
|
3690
|
+
* Assign a routing skill to a user
|
|
3687
3691
|
*
|
|
3688
3692
|
* @param {String} userId User ID
|
|
3689
3693
|
* @param {Object} body Skill
|
|
@@ -3910,13 +3914,13 @@ class RoutingApi {
|
|
|
3910
3914
|
/**
|
|
3911
3915
|
* Update a phone number provisioned for SMS.
|
|
3912
3916
|
*
|
|
3913
|
-
* @param {String}
|
|
3917
|
+
* @param {String} phoneNumberId phone number
|
|
3914
3918
|
* @param {Object} body SmsPhoneNumber
|
|
3915
3919
|
*/
|
|
3916
|
-
putRoutingSmsPhonenumber(
|
|
3917
|
-
// verify the required parameter '
|
|
3918
|
-
if (
|
|
3919
|
-
throw 'Missing the required parameter "
|
|
3920
|
+
putRoutingSmsPhonenumber(phoneNumberId, body) {
|
|
3921
|
+
// verify the required parameter 'phoneNumberId' is set
|
|
3922
|
+
if (phoneNumberId === undefined || phoneNumberId === null) {
|
|
3923
|
+
throw 'Missing the required parameter "phoneNumberId" when calling putRoutingSmsPhonenumber';
|
|
3920
3924
|
}
|
|
3921
3925
|
// verify the required parameter 'body' is set
|
|
3922
3926
|
if (body === undefined || body === null) {
|
|
@@ -3924,9 +3928,9 @@ class RoutingApi {
|
|
|
3924
3928
|
}
|
|
3925
3929
|
|
|
3926
3930
|
return this.apiClient.callApi(
|
|
3927
|
-
'/api/v2/routing/sms/phonenumbers/{
|
|
3931
|
+
'/api/v2/routing/sms/phonenumbers/{phoneNumberId}',
|
|
3928
3932
|
'PUT',
|
|
3929
|
-
{ '
|
|
3933
|
+
{ 'phoneNumberId': phoneNumberId },
|
|
3930
3934
|
{ },
|
|
3931
3935
|
{ },
|
|
3932
3936
|
{ },
|
|
@@ -4083,7 +4087,7 @@ class RoutingApi {
|
|
|
4083
4087
|
}
|
|
4084
4088
|
|
|
4085
4089
|
/**
|
|
4086
|
-
* Update routing skill proficiency
|
|
4090
|
+
* Update an assigned routing skill's proficiency
|
|
4087
4091
|
*
|
|
4088
4092
|
* @param {String} userId User ID
|
|
4089
4093
|
* @param {String} skillId skillId
|
|
@@ -4118,7 +4122,7 @@ class RoutingApi {
|
|
|
4118
4122
|
}
|
|
4119
4123
|
|
|
4120
4124
|
/**
|
|
4121
|
-
*
|
|
4125
|
+
* Assign multiple routing skills to a user, replacing any current assignments
|
|
4122
4126
|
*
|
|
4123
4127
|
* @param {String} userId User ID
|
|
4124
4128
|
* @param {Array.<Object>} body Skill
|
|
@@ -5,7 +5,7 @@ class SearchApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Search service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 209.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -188,6 +188,35 @@ class SearchApi {
|
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
/**
|
|
192
|
+
* Search sites using the q64 value returned from a previous search
|
|
193
|
+
*
|
|
194
|
+
* @param {String} q64 q64
|
|
195
|
+
* @param {Object} opts Optional parameters
|
|
196
|
+
* @param {Array.<String>} opts.expand expand
|
|
197
|
+
*/
|
|
198
|
+
getTelephonyProvidersEdgesSitesSearch(q64, opts) {
|
|
199
|
+
opts = opts || {};
|
|
200
|
+
|
|
201
|
+
// verify the required parameter 'q64' is set
|
|
202
|
+
if (q64 === undefined || q64 === null) {
|
|
203
|
+
throw 'Missing the required parameter "q64" when calling getTelephonyProvidersEdgesSitesSearch';
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return this.apiClient.callApi(
|
|
207
|
+
'/api/v2/telephony/providers/edges/sites/search',
|
|
208
|
+
'GET',
|
|
209
|
+
{ },
|
|
210
|
+
{ 'q64': q64,'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
211
|
+
{ },
|
|
212
|
+
{ },
|
|
213
|
+
null,
|
|
214
|
+
['PureCloud OAuth'],
|
|
215
|
+
['application/json'],
|
|
216
|
+
['application/json']
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
191
220
|
/**
|
|
192
221
|
* Search users using the q64 value returned from a previous search
|
|
193
222
|
*
|
|
@@ -561,6 +590,31 @@ class SearchApi {
|
|
|
561
590
|
);
|
|
562
591
|
}
|
|
563
592
|
|
|
593
|
+
/**
|
|
594
|
+
* Search sites
|
|
595
|
+
*
|
|
596
|
+
* @param {Object} body Search request options
|
|
597
|
+
*/
|
|
598
|
+
postTelephonyProvidersEdgesSitesSearch(body) {
|
|
599
|
+
// verify the required parameter 'body' is set
|
|
600
|
+
if (body === undefined || body === null) {
|
|
601
|
+
throw 'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSitesSearch';
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
return this.apiClient.callApi(
|
|
605
|
+
'/api/v2/telephony/providers/edges/sites/search',
|
|
606
|
+
'POST',
|
|
607
|
+
{ },
|
|
608
|
+
{ },
|
|
609
|
+
{ },
|
|
610
|
+
{ },
|
|
611
|
+
body,
|
|
612
|
+
['PureCloud OAuth'],
|
|
613
|
+
['application/json'],
|
|
614
|
+
['application/json']
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
|
|
564
618
|
/**
|
|
565
619
|
* Search users
|
|
566
620
|
*
|