purecloud-platform-client-v2 218.1.0 → 220.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 +4 -4
- package/dist/node/purecloud-platform-client-v2.js +1195 -118
- package/dist/web-amd/purecloud-platform-client-v2.js +1195 -118
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +390 -130
- package/dist/web-cjs/purecloud-platform-client-v2.js +390 -130
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1494 -763
- package/package.json +2 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
- 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 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +54 -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 +37 -1
- 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 +399 -5
- 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 +366 -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/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/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 +54 -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 +60 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +11 -11
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +6 -4
- 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 +33 -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 +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/TaskManagementApi.js +66 -10
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +26 -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 -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 +7 -5
- package/src/purecloud-platform-client-v2/index.js +1 -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 220.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -640,6 +640,71 @@ class ExternalContactsApi {
|
|
|
640
640
|
);
|
|
641
641
|
}
|
|
642
642
|
|
|
643
|
+
/**
|
|
644
|
+
* Get the core types from which all schemas are built.
|
|
645
|
+
*
|
|
646
|
+
* @param {String} coreTypeName Name of the core type
|
|
647
|
+
*/
|
|
648
|
+
getExternalcontactsContactsSchemasCoretype(coreTypeName) {
|
|
649
|
+
// verify the required parameter 'coreTypeName' is set
|
|
650
|
+
if (coreTypeName === undefined || coreTypeName === null) {
|
|
651
|
+
throw 'Missing the required parameter "coreTypeName" when calling getExternalcontactsContactsSchemasCoretype';
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
return this.apiClient.callApi(
|
|
655
|
+
'/api/v2/externalcontacts/contacts/schemas/coretypes/{coreTypeName}',
|
|
656
|
+
'GET',
|
|
657
|
+
{ 'coreTypeName': coreTypeName },
|
|
658
|
+
{ },
|
|
659
|
+
{ },
|
|
660
|
+
{ },
|
|
661
|
+
null,
|
|
662
|
+
['PureCloud OAuth'],
|
|
663
|
+
['application/json'],
|
|
664
|
+
['application/json']
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Get the core types from which all schemas are built.
|
|
670
|
+
*
|
|
671
|
+
*/
|
|
672
|
+
getExternalcontactsContactsSchemasCoretypes() {
|
|
673
|
+
|
|
674
|
+
return this.apiClient.callApi(
|
|
675
|
+
'/api/v2/externalcontacts/contacts/schemas/coretypes',
|
|
676
|
+
'GET',
|
|
677
|
+
{ },
|
|
678
|
+
{ },
|
|
679
|
+
{ },
|
|
680
|
+
{ },
|
|
681
|
+
null,
|
|
682
|
+
['PureCloud OAuth'],
|
|
683
|
+
['application/json'],
|
|
684
|
+
['application/json']
|
|
685
|
+
);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Get quantitative limits on schemas
|
|
690
|
+
*
|
|
691
|
+
*/
|
|
692
|
+
getExternalcontactsContactsSchemasLimits() {
|
|
693
|
+
|
|
694
|
+
return this.apiClient.callApi(
|
|
695
|
+
'/api/v2/externalcontacts/contacts/schemas/limits',
|
|
696
|
+
'GET',
|
|
697
|
+
{ },
|
|
698
|
+
{ },
|
|
699
|
+
{ },
|
|
700
|
+
{ },
|
|
701
|
+
null,
|
|
702
|
+
['PureCloud OAuth'],
|
|
703
|
+
['application/json'],
|
|
704
|
+
['application/json']
|
|
705
|
+
);
|
|
706
|
+
}
|
|
707
|
+
|
|
643
708
|
/**
|
|
644
709
|
* Fetch an External Source
|
|
645
710
|
*
|
|
@@ -965,6 +1030,32 @@ class ExternalContactsApi {
|
|
|
965
1030
|
);
|
|
966
1031
|
}
|
|
967
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* List the identifiers for an external organization
|
|
1035
|
+
*
|
|
1036
|
+
* @param {String} externalOrganizationId External Organization ID
|
|
1037
|
+
* getExternalcontactsOrganizationIdentifiers is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1038
|
+
*/
|
|
1039
|
+
getExternalcontactsOrganizationIdentifiers(externalOrganizationId) {
|
|
1040
|
+
// verify the required parameter 'externalOrganizationId' is set
|
|
1041
|
+
if (externalOrganizationId === undefined || externalOrganizationId === null) {
|
|
1042
|
+
throw 'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationIdentifiers';
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
return this.apiClient.callApi(
|
|
1046
|
+
'/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers',
|
|
1047
|
+
'GET',
|
|
1048
|
+
{ 'externalOrganizationId': externalOrganizationId },
|
|
1049
|
+
{ },
|
|
1050
|
+
{ },
|
|
1051
|
+
{ },
|
|
1052
|
+
null,
|
|
1053
|
+
['PureCloud OAuth'],
|
|
1054
|
+
['application/json'],
|
|
1055
|
+
['application/json']
|
|
1056
|
+
);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
968
1059
|
/**
|
|
969
1060
|
* Fetch a note for an external organization
|
|
970
1061
|
*
|
|
@@ -1194,6 +1285,71 @@ class ExternalContactsApi {
|
|
|
1194
1285
|
);
|
|
1195
1286
|
}
|
|
1196
1287
|
|
|
1288
|
+
/**
|
|
1289
|
+
* Get the core types from which all schemas are built.
|
|
1290
|
+
*
|
|
1291
|
+
* @param {String} coreTypeName Name of the core type
|
|
1292
|
+
*/
|
|
1293
|
+
getExternalcontactsOrganizationsSchemasCoretype(coreTypeName) {
|
|
1294
|
+
// verify the required parameter 'coreTypeName' is set
|
|
1295
|
+
if (coreTypeName === undefined || coreTypeName === null) {
|
|
1296
|
+
throw 'Missing the required parameter "coreTypeName" when calling getExternalcontactsOrganizationsSchemasCoretype';
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
return this.apiClient.callApi(
|
|
1300
|
+
'/api/v2/externalcontacts/organizations/schemas/coretypes/{coreTypeName}',
|
|
1301
|
+
'GET',
|
|
1302
|
+
{ 'coreTypeName': coreTypeName },
|
|
1303
|
+
{ },
|
|
1304
|
+
{ },
|
|
1305
|
+
{ },
|
|
1306
|
+
null,
|
|
1307
|
+
['PureCloud OAuth'],
|
|
1308
|
+
['application/json'],
|
|
1309
|
+
['application/json']
|
|
1310
|
+
);
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* Get the core types from which all schemas are built.
|
|
1315
|
+
*
|
|
1316
|
+
*/
|
|
1317
|
+
getExternalcontactsOrganizationsSchemasCoretypes() {
|
|
1318
|
+
|
|
1319
|
+
return this.apiClient.callApi(
|
|
1320
|
+
'/api/v2/externalcontacts/organizations/schemas/coretypes',
|
|
1321
|
+
'GET',
|
|
1322
|
+
{ },
|
|
1323
|
+
{ },
|
|
1324
|
+
{ },
|
|
1325
|
+
{ },
|
|
1326
|
+
null,
|
|
1327
|
+
['PureCloud OAuth'],
|
|
1328
|
+
['application/json'],
|
|
1329
|
+
['application/json']
|
|
1330
|
+
);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Get quantitative limits on schemas
|
|
1335
|
+
*
|
|
1336
|
+
*/
|
|
1337
|
+
getExternalcontactsOrganizationsSchemasLimits() {
|
|
1338
|
+
|
|
1339
|
+
return this.apiClient.callApi(
|
|
1340
|
+
'/api/v2/externalcontacts/organizations/schemas/limits',
|
|
1341
|
+
'GET',
|
|
1342
|
+
{ },
|
|
1343
|
+
{ },
|
|
1344
|
+
{ },
|
|
1345
|
+
{ },
|
|
1346
|
+
null,
|
|
1347
|
+
['PureCloud OAuth'],
|
|
1348
|
+
['application/json'],
|
|
1349
|
+
['application/json']
|
|
1350
|
+
);
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1197
1353
|
/**
|
|
1198
1354
|
* Fetch a relationship
|
|
1199
1355
|
*
|
|
@@ -1224,12 +1380,12 @@ class ExternalContactsApi {
|
|
|
1224
1380
|
}
|
|
1225
1381
|
|
|
1226
1382
|
/**
|
|
1227
|
-
* Look up contacts
|
|
1383
|
+
* Look up contacts based on an attribute. Maximum of 25 values returned.
|
|
1228
1384
|
*
|
|
1229
|
-
* @param {String} lookupVal User supplied value to lookup contacts
|
|
1385
|
+
* @param {String} lookupVal User supplied value to lookup contacts (supports email addresses, e164 phone numbers, Twitter screen names)
|
|
1230
1386
|
* @param {Object} opts Optional parameters
|
|
1231
1387
|
* @param {Array.<String>} opts.expand which field, if any, to expand
|
|
1232
|
-
* @param {String} opts.divisionId Specifies which division to lookup contacts
|
|
1388
|
+
* @param {String} opts.divisionId Specifies which division to lookup contacts in, for the given lookup value (default to *)
|
|
1233
1389
|
*/
|
|
1234
1390
|
getExternalcontactsReversewhitepageslookup(lookupVal, opts) {
|
|
1235
1391
|
opts = opts || {};
|
|
@@ -1491,6 +1647,37 @@ class ExternalContactsApi {
|
|
|
1491
1647
|
);
|
|
1492
1648
|
}
|
|
1493
1649
|
|
|
1650
|
+
/**
|
|
1651
|
+
* Claim or release identifiers for an external organization
|
|
1652
|
+
*
|
|
1653
|
+
* @param {String} externalOrganizationId External Organization ID
|
|
1654
|
+
* @param {Object} body ClaimRequest
|
|
1655
|
+
* patchExternalcontactsOrganizationIdentifiers is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1656
|
+
*/
|
|
1657
|
+
patchExternalcontactsOrganizationIdentifiers(externalOrganizationId, body) {
|
|
1658
|
+
// verify the required parameter 'externalOrganizationId' is set
|
|
1659
|
+
if (externalOrganizationId === undefined || externalOrganizationId === null) {
|
|
1660
|
+
throw 'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';
|
|
1661
|
+
}
|
|
1662
|
+
// verify the required parameter 'body' is set
|
|
1663
|
+
if (body === undefined || body === null) {
|
|
1664
|
+
throw 'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
return this.apiClient.callApi(
|
|
1668
|
+
'/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers',
|
|
1669
|
+
'PATCH',
|
|
1670
|
+
{ 'externalOrganizationId': externalOrganizationId },
|
|
1671
|
+
{ },
|
|
1672
|
+
{ },
|
|
1673
|
+
{ },
|
|
1674
|
+
body,
|
|
1675
|
+
['PureCloud OAuth'],
|
|
1676
|
+
['application/json'],
|
|
1677
|
+
['application/json']
|
|
1678
|
+
);
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1494
1681
|
/**
|
|
1495
1682
|
* Bulk fetch contacts
|
|
1496
1683
|
*
|
|
@@ -1567,6 +1754,36 @@ class ExternalContactsApi {
|
|
|
1567
1754
|
);
|
|
1568
1755
|
}
|
|
1569
1756
|
|
|
1757
|
+
/**
|
|
1758
|
+
* Bulk Enrich Contacts - Run up to 10 Enrich operations per request
|
|
1759
|
+
* See the API endpoint /externalcontacts/contacts/enrich for docs on individual Enrich operations.
|
|
1760
|
+
* @param {Object} body Contact Enrich Requests
|
|
1761
|
+
* @param {Object} opts Optional parameters
|
|
1762
|
+
* @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
|
|
1763
|
+
* postExternalcontactsBulkContactsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1764
|
+
*/
|
|
1765
|
+
postExternalcontactsBulkContactsEnrich(body, opts) {
|
|
1766
|
+
opts = opts || {};
|
|
1767
|
+
|
|
1768
|
+
// verify the required parameter 'body' is set
|
|
1769
|
+
if (body === undefined || body === null) {
|
|
1770
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
return this.apiClient.callApi(
|
|
1774
|
+
'/api/v2/externalcontacts/bulk/contacts/enrich',
|
|
1775
|
+
'POST',
|
|
1776
|
+
{ },
|
|
1777
|
+
{ 'dryRun': opts['dryRun'] },
|
|
1778
|
+
{ },
|
|
1779
|
+
{ },
|
|
1780
|
+
body,
|
|
1781
|
+
['PureCloud OAuth'],
|
|
1782
|
+
['application/json'],
|
|
1783
|
+
['application/json']
|
|
1784
|
+
);
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1570
1787
|
/**
|
|
1571
1788
|
* Bulk remove contacts
|
|
1572
1789
|
*
|
|
@@ -1818,6 +2035,36 @@ class ExternalContactsApi {
|
|
|
1818
2035
|
);
|
|
1819
2036
|
}
|
|
1820
2037
|
|
|
2038
|
+
/**
|
|
2039
|
+
* Bulk enrich external organizations - Run up to 10 Enrich operations per request
|
|
2040
|
+
* See the API endpoint /externalcontacts/organizations/enrich for docs on individual Enrich operations.
|
|
2041
|
+
* @param {Object} body External Organization Enrich Requests
|
|
2042
|
+
* @param {Object} opts Optional parameters
|
|
2043
|
+
* @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
|
|
2044
|
+
* postExternalcontactsBulkOrganizationsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2045
|
+
*/
|
|
2046
|
+
postExternalcontactsBulkOrganizationsEnrich(body, opts) {
|
|
2047
|
+
opts = opts || {};
|
|
2048
|
+
|
|
2049
|
+
// verify the required parameter 'body' is set
|
|
2050
|
+
if (body === undefined || body === null) {
|
|
2051
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
return this.apiClient.callApi(
|
|
2055
|
+
'/api/v2/externalcontacts/bulk/organizations/enrich',
|
|
2056
|
+
'POST',
|
|
2057
|
+
{ },
|
|
2058
|
+
{ 'dryRun': opts['dryRun'] },
|
|
2059
|
+
{ },
|
|
2060
|
+
{ },
|
|
2061
|
+
body,
|
|
2062
|
+
['PureCloud OAuth'],
|
|
2063
|
+
['application/json'],
|
|
2064
|
+
['application/json']
|
|
2065
|
+
);
|
|
2066
|
+
}
|
|
2067
|
+
|
|
1821
2068
|
/**
|
|
1822
2069
|
* Bulk remove organizations
|
|
1823
2070
|
*
|
|
@@ -2048,6 +2295,36 @@ class ExternalContactsApi {
|
|
|
2048
2295
|
);
|
|
2049
2296
|
}
|
|
2050
2297
|
|
|
2298
|
+
/**
|
|
2299
|
+
* Modify or create an External Contact, with powerful behaviors for finding and combining data with pre-existing Contacts.
|
|
2300
|
+
* You may also submit multiple Enrich operations in one request via the Bulk Enrich API at /externalcontacts/bulk/contacts. A 201 response status indicates that a new Contact was created, whereas a 200 status indicates that a Contact was updated or a merge occurred.
|
|
2301
|
+
* @param {Object} body ContactEnrichRequest
|
|
2302
|
+
* @param {Object} opts Optional parameters
|
|
2303
|
+
* @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
|
|
2304
|
+
* postExternalcontactsContactsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2305
|
+
*/
|
|
2306
|
+
postExternalcontactsContactsEnrich(body, opts) {
|
|
2307
|
+
opts = opts || {};
|
|
2308
|
+
|
|
2309
|
+
// verify the required parameter 'body' is set
|
|
2310
|
+
if (body === undefined || body === null) {
|
|
2311
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
return this.apiClient.callApi(
|
|
2315
|
+
'/api/v2/externalcontacts/contacts/enrich',
|
|
2316
|
+
'POST',
|
|
2317
|
+
{ },
|
|
2318
|
+
{ 'dryRun': opts['dryRun'] },
|
|
2319
|
+
{ },
|
|
2320
|
+
{ },
|
|
2321
|
+
body,
|
|
2322
|
+
['PureCloud OAuth'],
|
|
2323
|
+
['application/json'],
|
|
2324
|
+
['application/json']
|
|
2325
|
+
);
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2051
2328
|
/**
|
|
2052
2329
|
* Create bulk export
|
|
2053
2330
|
*
|
|
@@ -2073,6 +2350,32 @@ class ExternalContactsApi {
|
|
|
2073
2350
|
);
|
|
2074
2351
|
}
|
|
2075
2352
|
|
|
2353
|
+
/**
|
|
2354
|
+
* Merge up to 25 contacts into a new contact record
|
|
2355
|
+
* Merge operation may fail if the resulting mergeset exceeds our default limit of 52. The valueOverride field lets you override any of the Contact fields post-merge. If any Contact field is left null in `valueOverride`, it will be taken from the most recently-modified contact in the merge set. Exception for *phone/*email fields: Conflicting data will be moved to any other available phone/email fields in the merged contact.
|
|
2356
|
+
* @param {Object} body MergeRequest
|
|
2357
|
+
* postExternalcontactsContactsMerge is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2358
|
+
*/
|
|
2359
|
+
postExternalcontactsContactsMerge(body) {
|
|
2360
|
+
// verify the required parameter 'body' is set
|
|
2361
|
+
if (body === undefined || body === null) {
|
|
2362
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsContactsMerge';
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
return this.apiClient.callApi(
|
|
2366
|
+
'/api/v2/externalcontacts/contacts/merge',
|
|
2367
|
+
'POST',
|
|
2368
|
+
{ },
|
|
2369
|
+
{ },
|
|
2370
|
+
{ },
|
|
2371
|
+
{ },
|
|
2372
|
+
body,
|
|
2373
|
+
['PureCloud OAuth'],
|
|
2374
|
+
['application/json'],
|
|
2375
|
+
['application/json']
|
|
2376
|
+
);
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2076
2379
|
/**
|
|
2077
2380
|
* Create a schema
|
|
2078
2381
|
*
|
|
@@ -2153,6 +2456,66 @@ class ExternalContactsApi {
|
|
|
2153
2456
|
);
|
|
2154
2457
|
}
|
|
2155
2458
|
|
|
2459
|
+
/**
|
|
2460
|
+
* Fetch a contact using an identifier type and value.
|
|
2461
|
+
* Phone number identifier values must be provided with the country code and a leading + symbol. Example: "+1 704 298 4733"
|
|
2462
|
+
* @param {Object} identifier
|
|
2463
|
+
* @param {Object} opts Optional parameters
|
|
2464
|
+
* @param {Array.<String>} opts.expand which field, if any, to expand
|
|
2465
|
+
* postExternalcontactsIdentifierlookupContacts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2466
|
+
*/
|
|
2467
|
+
postExternalcontactsIdentifierlookupContacts(identifier, opts) {
|
|
2468
|
+
opts = opts || {};
|
|
2469
|
+
|
|
2470
|
+
// verify the required parameter 'identifier' is set
|
|
2471
|
+
if (identifier === undefined || identifier === null) {
|
|
2472
|
+
throw 'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupContacts';
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
return this.apiClient.callApi(
|
|
2476
|
+
'/api/v2/externalcontacts/identifierlookup/contacts',
|
|
2477
|
+
'POST',
|
|
2478
|
+
{ },
|
|
2479
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
2480
|
+
{ },
|
|
2481
|
+
{ },
|
|
2482
|
+
identifier,
|
|
2483
|
+
['PureCloud OAuth'],
|
|
2484
|
+
['application/json'],
|
|
2485
|
+
['application/json']
|
|
2486
|
+
);
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* Fetch an external organization using an identifier type and value.
|
|
2491
|
+
* This endpoint will only accept ExternalId type identifiers.
|
|
2492
|
+
* @param {Object} identifier
|
|
2493
|
+
* @param {Object} opts Optional parameters
|
|
2494
|
+
* @param {Array.<String>} opts.expand which field, if any, to expand
|
|
2495
|
+
* postExternalcontactsIdentifierlookupOrganizations is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2496
|
+
*/
|
|
2497
|
+
postExternalcontactsIdentifierlookupOrganizations(identifier, opts) {
|
|
2498
|
+
opts = opts || {};
|
|
2499
|
+
|
|
2500
|
+
// verify the required parameter 'identifier' is set
|
|
2501
|
+
if (identifier === undefined || identifier === null) {
|
|
2502
|
+
throw 'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupOrganizations';
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
return this.apiClient.callApi(
|
|
2506
|
+
'/api/v2/externalcontacts/identifierlookup/organizations',
|
|
2507
|
+
'POST',
|
|
2508
|
+
{ },
|
|
2509
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
2510
|
+
{ },
|
|
2511
|
+
{ },
|
|
2512
|
+
identifier,
|
|
2513
|
+
['PureCloud OAuth'],
|
|
2514
|
+
['application/json'],
|
|
2515
|
+
['application/json']
|
|
2516
|
+
);
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2156
2519
|
/**
|
|
2157
2520
|
* Create CSV import job
|
|
2158
2521
|
*
|
|
@@ -2280,8 +2643,9 @@ class ExternalContactsApi {
|
|
|
2280
2643
|
|
|
2281
2644
|
/**
|
|
2282
2645
|
* Merge two contacts into a new contact record
|
|
2283
|
-
* Two curated contacts cannot be merged. Refer to the Contact Merging article on the Developer Center for details
|
|
2646
|
+
* Two curated contacts cannot be merged. Refer to the Contact Merging article on the Developer Center for details. Deprecated: This API has been superseded by a new merge API. You are encouraged to instead use /api/v2/externalcontacts/contacts/merge, which supports merging up to 25 Contacts of any type, and overriding specific fields in the resulting Contact.
|
|
2284
2647
|
* @param {Object} body MergeRequest
|
|
2648
|
+
* @deprecated
|
|
2285
2649
|
*/
|
|
2286
2650
|
postExternalcontactsMergeContacts(body) {
|
|
2287
2651
|
// verify the required parameter 'body' is set
|
|
@@ -2358,6 +2722,36 @@ class ExternalContactsApi {
|
|
|
2358
2722
|
);
|
|
2359
2723
|
}
|
|
2360
2724
|
|
|
2725
|
+
/**
|
|
2726
|
+
* Modify or create an External Org, with powerful behaviors for finding and combining data with pre-existing External Orgs.
|
|
2727
|
+
* You may also submit multiple Enrich operations in one request via the Bulk Enrich API at /externalcontacts/bulk/organizations. A 201 response status indicates that a new External Organization was created, whereas a 200 status indicates that an External Organization was updated
|
|
2728
|
+
* @param {Object} body ExternalOrgEnrichRequest
|
|
2729
|
+
* @param {Object} opts Optional parameters
|
|
2730
|
+
* @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
|
|
2731
|
+
* postExternalcontactsOrganizationsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2732
|
+
*/
|
|
2733
|
+
postExternalcontactsOrganizationsEnrich(body, opts) {
|
|
2734
|
+
opts = opts || {};
|
|
2735
|
+
|
|
2736
|
+
// verify the required parameter 'body' is set
|
|
2737
|
+
if (body === undefined || body === null) {
|
|
2738
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
return this.apiClient.callApi(
|
|
2742
|
+
'/api/v2/externalcontacts/organizations/enrich',
|
|
2743
|
+
'POST',
|
|
2744
|
+
{ },
|
|
2745
|
+
{ 'dryRun': opts['dryRun'] },
|
|
2746
|
+
{ },
|
|
2747
|
+
{ },
|
|
2748
|
+
body,
|
|
2749
|
+
['PureCloud OAuth'],
|
|
2750
|
+
['application/json'],
|
|
2751
|
+
['application/json']
|
|
2752
|
+
);
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2361
2755
|
/**
|
|
2362
2756
|
* Create a schema
|
|
2363
2757
|
*
|