purecloud-platform-client-v2 149.1.0 → 151.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 +2 -2
- package/dist/node/purecloud-platform-client-v2.js +1114 -77
- package/dist/web-amd/purecloud-platform-client-v2.js +1114 -77
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +1114 -77
- package/dist/web-cjs/purecloud-platform-client-v2.js +1114 -77
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1082 -425
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- 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/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 +81 -8
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +57 -0
- package/src/purecloud-platform-client-v2/api/EventsApi.js +101 -0
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +216 -1
- 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/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- 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/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/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 +185 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +196 -1
- 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 +26 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- 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/TeamsApi.js +93 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -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 +26 -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 +71 -1
- package/src/purecloud-platform-client-v2/index.js +13 -1
|
@@ -5,7 +5,7 @@ class ExternalContactsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* ExternalContacts service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 151.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -234,6 +234,62 @@ class ExternalContactsApi {
|
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
/**
|
|
238
|
+
* List the identifiers for a contact
|
|
239
|
+
*
|
|
240
|
+
* @param {String} contactId ExternalContact ID
|
|
241
|
+
*/
|
|
242
|
+
getExternalcontactsContactIdentifiers(contactId) {
|
|
243
|
+
// verify the required parameter 'contactId' is set
|
|
244
|
+
if (contactId === undefined || contactId === null) {
|
|
245
|
+
throw 'Missing the required parameter "contactId" when calling getExternalcontactsContactIdentifiers';
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return this.apiClient.callApi(
|
|
249
|
+
'/api/v2/externalcontacts/contacts/{contactId}/identifiers',
|
|
250
|
+
'GET',
|
|
251
|
+
{ 'contactId': contactId },
|
|
252
|
+
{ },
|
|
253
|
+
{ },
|
|
254
|
+
{ },
|
|
255
|
+
null,
|
|
256
|
+
['PureCloud OAuth'],
|
|
257
|
+
['application/json'],
|
|
258
|
+
['application/json']
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Retrieve all sessions for a given external contact.
|
|
264
|
+
*
|
|
265
|
+
* @param {String} contactId ExternalContact ID
|
|
266
|
+
* @param {Object} opts Optional parameters
|
|
267
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
268
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
269
|
+
* @param {Boolean} opts.includeMerged Indicates whether to return sessions from all external contacts in the merge-set of the given one.
|
|
270
|
+
*/
|
|
271
|
+
getExternalcontactsContactJourneySessions(contactId, opts) {
|
|
272
|
+
opts = opts || {};
|
|
273
|
+
|
|
274
|
+
// verify the required parameter 'contactId' is set
|
|
275
|
+
if (contactId === undefined || contactId === null) {
|
|
276
|
+
throw 'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySessions';
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return this.apiClient.callApi(
|
|
280
|
+
'/api/v2/externalcontacts/contacts/{contactId}/journey/sessions',
|
|
281
|
+
'GET',
|
|
282
|
+
{ 'contactId': contactId },
|
|
283
|
+
{ 'pageSize': opts['pageSize'],'after': opts['after'],'includeMerged': opts['includeMerged'] },
|
|
284
|
+
{ },
|
|
285
|
+
{ },
|
|
286
|
+
null,
|
|
287
|
+
['PureCloud OAuth'],
|
|
288
|
+
['application/json'],
|
|
289
|
+
['application/json']
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
|
|
237
293
|
/**
|
|
238
294
|
* Fetch a note for an external contact
|
|
239
295
|
*
|
|
@@ -300,6 +356,35 @@ class ExternalContactsApi {
|
|
|
300
356
|
);
|
|
301
357
|
}
|
|
302
358
|
|
|
359
|
+
/**
|
|
360
|
+
* Fetch an unresolved external contact
|
|
361
|
+
*
|
|
362
|
+
* @param {String} contactId ExternalContact ID
|
|
363
|
+
* @param {Object} opts Optional parameters
|
|
364
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand (externalOrganization,externalDataSources)
|
|
365
|
+
*/
|
|
366
|
+
getExternalcontactsContactUnresolved(contactId, opts) {
|
|
367
|
+
opts = opts || {};
|
|
368
|
+
|
|
369
|
+
// verify the required parameter 'contactId' is set
|
|
370
|
+
if (contactId === undefined || contactId === null) {
|
|
371
|
+
throw 'Missing the required parameter "contactId" when calling getExternalcontactsContactUnresolved';
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
return this.apiClient.callApi(
|
|
375
|
+
'/api/v2/externalcontacts/contacts/{contactId}/unresolved',
|
|
376
|
+
'GET',
|
|
377
|
+
{ 'contactId': contactId },
|
|
378
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
379
|
+
{ },
|
|
380
|
+
{ },
|
|
381
|
+
null,
|
|
382
|
+
['PureCloud OAuth'],
|
|
383
|
+
['application/json'],
|
|
384
|
+
['application/json']
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
|
|
303
388
|
/**
|
|
304
389
|
* Search for external contacts
|
|
305
390
|
*
|
|
@@ -877,6 +962,36 @@ class ExternalContactsApi {
|
|
|
877
962
|
);
|
|
878
963
|
}
|
|
879
964
|
|
|
965
|
+
/**
|
|
966
|
+
* Claim or release identifiers for a contact
|
|
967
|
+
*
|
|
968
|
+
* @param {String} contactId ExternalContact ID
|
|
969
|
+
* @param {Object} body ClaimRequest
|
|
970
|
+
*/
|
|
971
|
+
patchExternalcontactsContactIdentifiers(contactId, body) {
|
|
972
|
+
// verify the required parameter 'contactId' is set
|
|
973
|
+
if (contactId === undefined || contactId === null) {
|
|
974
|
+
throw 'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';
|
|
975
|
+
}
|
|
976
|
+
// verify the required parameter 'body' is set
|
|
977
|
+
if (body === undefined || body === null) {
|
|
978
|
+
throw 'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
return this.apiClient.callApi(
|
|
982
|
+
'/api/v2/externalcontacts/contacts/{contactId}/identifiers',
|
|
983
|
+
'PATCH',
|
|
984
|
+
{ 'contactId': contactId },
|
|
985
|
+
{ },
|
|
986
|
+
{ },
|
|
987
|
+
{ },
|
|
988
|
+
body,
|
|
989
|
+
['PureCloud OAuth'],
|
|
990
|
+
['application/json'],
|
|
991
|
+
['application/json']
|
|
992
|
+
);
|
|
993
|
+
}
|
|
994
|
+
|
|
880
995
|
/**
|
|
881
996
|
* Bulk fetch contacts
|
|
882
997
|
*
|
|
@@ -952,6 +1067,31 @@ class ExternalContactsApi {
|
|
|
952
1067
|
);
|
|
953
1068
|
}
|
|
954
1069
|
|
|
1070
|
+
/**
|
|
1071
|
+
* Bulk fetch unresolved ancestor contacts
|
|
1072
|
+
*
|
|
1073
|
+
* @param {Object} body Contact ids
|
|
1074
|
+
*/
|
|
1075
|
+
postExternalcontactsBulkContactsUnresolved(body) {
|
|
1076
|
+
// verify the required parameter 'body' is set
|
|
1077
|
+
if (body === undefined || body === null) {
|
|
1078
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsBulkContactsUnresolved';
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
return this.apiClient.callApi(
|
|
1082
|
+
'/api/v2/externalcontacts/bulk/contacts/unresolved',
|
|
1083
|
+
'POST',
|
|
1084
|
+
{ },
|
|
1085
|
+
{ },
|
|
1086
|
+
{ },
|
|
1087
|
+
{ },
|
|
1088
|
+
body,
|
|
1089
|
+
['PureCloud OAuth'],
|
|
1090
|
+
['application/json'],
|
|
1091
|
+
['application/json']
|
|
1092
|
+
);
|
|
1093
|
+
}
|
|
1094
|
+
|
|
955
1095
|
/**
|
|
956
1096
|
* Bulk update contacts
|
|
957
1097
|
*
|
|
@@ -1307,6 +1447,31 @@ class ExternalContactsApi {
|
|
|
1307
1447
|
);
|
|
1308
1448
|
}
|
|
1309
1449
|
|
|
1450
|
+
/**
|
|
1451
|
+
* Promote an observed contact (ephemeral or identified) to a curated contact
|
|
1452
|
+
*
|
|
1453
|
+
* @param {String} contactId ExternalContact ID
|
|
1454
|
+
*/
|
|
1455
|
+
postExternalcontactsContactPromotion(contactId) {
|
|
1456
|
+
// verify the required parameter 'contactId' is set
|
|
1457
|
+
if (contactId === undefined || contactId === null) {
|
|
1458
|
+
throw 'Missing the required parameter "contactId" when calling postExternalcontactsContactPromotion';
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
return this.apiClient.callApi(
|
|
1462
|
+
'/api/v2/externalcontacts/contacts/{contactId}/promotion',
|
|
1463
|
+
'POST',
|
|
1464
|
+
{ 'contactId': contactId },
|
|
1465
|
+
{ },
|
|
1466
|
+
{ },
|
|
1467
|
+
{ },
|
|
1468
|
+
null,
|
|
1469
|
+
['PureCloud OAuth'],
|
|
1470
|
+
['application/json'],
|
|
1471
|
+
['application/json']
|
|
1472
|
+
);
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1310
1475
|
/**
|
|
1311
1476
|
* Create an external contact
|
|
1312
1477
|
*
|
|
@@ -1357,6 +1522,56 @@ class ExternalContactsApi {
|
|
|
1357
1522
|
);
|
|
1358
1523
|
}
|
|
1359
1524
|
|
|
1525
|
+
/**
|
|
1526
|
+
* Fetch a contact using an identifier type and value.
|
|
1527
|
+
* Phone number identifier values must be provided with the country code and a leading + symbol. Example: "+1 704 298 4733"
|
|
1528
|
+
* @param {Object} identifier
|
|
1529
|
+
*/
|
|
1530
|
+
postExternalcontactsIdentifierlookup(identifier) {
|
|
1531
|
+
// verify the required parameter 'identifier' is set
|
|
1532
|
+
if (identifier === undefined || identifier === null) {
|
|
1533
|
+
throw 'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
return this.apiClient.callApi(
|
|
1537
|
+
'/api/v2/externalcontacts/identifierlookup',
|
|
1538
|
+
'POST',
|
|
1539
|
+
{ },
|
|
1540
|
+
{ },
|
|
1541
|
+
{ },
|
|
1542
|
+
{ },
|
|
1543
|
+
identifier,
|
|
1544
|
+
['PureCloud OAuth'],
|
|
1545
|
+
['application/json'],
|
|
1546
|
+
['application/json']
|
|
1547
|
+
);
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* Merge two contacts into a new contact record
|
|
1552
|
+
*
|
|
1553
|
+
* @param {Object} body MergeRequest
|
|
1554
|
+
*/
|
|
1555
|
+
postExternalcontactsMergeContacts(body) {
|
|
1556
|
+
// verify the required parameter 'body' is set
|
|
1557
|
+
if (body === undefined || body === null) {
|
|
1558
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsMergeContacts';
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
return this.apiClient.callApi(
|
|
1562
|
+
'/api/v2/externalcontacts/merge/contacts',
|
|
1563
|
+
'POST',
|
|
1564
|
+
{ },
|
|
1565
|
+
{ },
|
|
1566
|
+
{ },
|
|
1567
|
+
{ },
|
|
1568
|
+
body,
|
|
1569
|
+
['PureCloud OAuth'],
|
|
1570
|
+
['application/json'],
|
|
1571
|
+
['application/json']
|
|
1572
|
+
);
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1360
1575
|
/**
|
|
1361
1576
|
* Create a note for an external organization
|
|
1362
1577
|
*
|