purecloud-platform-client-v2 149.0.0 → 150.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 +833 -74
- package/dist/web-amd/purecloud-platform-client-v2.js +833 -74
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +833 -74
- package/dist/web-cjs/purecloud-platform-client-v2.js +833 -74
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +789 -228
- 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 +46 -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 +185 -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 +1 -1
- 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 +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/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 +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 -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 +1 -1
- package/src/purecloud-platform-client-v2/index.js +13 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class ConversationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Conversations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 150.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1515,8 +1515,12 @@ class ConversationsApi {
|
|
|
1515
1515
|
* Get message
|
|
1516
1516
|
*
|
|
1517
1517
|
* @param {String} messageId messageId
|
|
1518
|
+
* @param {Object} opts Optional parameters
|
|
1519
|
+
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media, stickers) (default to false)
|
|
1518
1520
|
*/
|
|
1519
|
-
getConversationsMessageDetails(messageId) {
|
|
1521
|
+
getConversationsMessageDetails(messageId, opts) {
|
|
1522
|
+
opts = opts || {};
|
|
1523
|
+
|
|
1520
1524
|
// verify the required parameter 'messageId' is set
|
|
1521
1525
|
if (messageId === undefined || messageId === null) {
|
|
1522
1526
|
throw 'Missing the required parameter "messageId" when calling getConversationsMessageDetails';
|
|
@@ -1526,7 +1530,7 @@ class ConversationsApi {
|
|
|
1526
1530
|
'/api/v2/conversations/messages/{messageId}/details',
|
|
1527
1531
|
'GET',
|
|
1528
1532
|
{ 'messageId': messageId },
|
|
1529
|
-
{
|
|
1533
|
+
{ 'useNormalizedMessage': opts['useNormalizedMessage'] },
|
|
1530
1534
|
{ },
|
|
1531
1535
|
{ },
|
|
1532
1536
|
null,
|
|
@@ -1541,8 +1545,12 @@ class ConversationsApi {
|
|
|
1541
1545
|
*
|
|
1542
1546
|
* @param {String} conversationId conversationId
|
|
1543
1547
|
* @param {String} messageId messageId
|
|
1548
|
+
* @param {Object} opts Optional parameters
|
|
1549
|
+
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media, stickers) (default to false)
|
|
1544
1550
|
*/
|
|
1545
|
-
getConversationsMessageMessage(conversationId, messageId) {
|
|
1551
|
+
getConversationsMessageMessage(conversationId, messageId, opts) {
|
|
1552
|
+
opts = opts || {};
|
|
1553
|
+
|
|
1546
1554
|
// verify the required parameter 'conversationId' is set
|
|
1547
1555
|
if (conversationId === undefined || conversationId === null) {
|
|
1548
1556
|
throw 'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';
|
|
@@ -1556,7 +1564,7 @@ class ConversationsApi {
|
|
|
1556
1564
|
'/api/v2/conversations/messages/{conversationId}/messages/{messageId}',
|
|
1557
1565
|
'GET',
|
|
1558
1566
|
{ 'conversationId': conversationId,'messageId': messageId },
|
|
1559
|
-
{
|
|
1567
|
+
{ 'useNormalizedMessage': opts['useNormalizedMessage'] },
|
|
1560
1568
|
{ },
|
|
1561
1569
|
{ },
|
|
1562
1570
|
null,
|
|
@@ -4174,6 +4182,31 @@ class ConversationsApi {
|
|
|
4174
4182
|
);
|
|
4175
4183
|
}
|
|
4176
4184
|
|
|
4185
|
+
/**
|
|
4186
|
+
* Create an email conversation, per API
|
|
4187
|
+
*
|
|
4188
|
+
* @param {Object} body Create agentless email request
|
|
4189
|
+
*/
|
|
4190
|
+
postConversationsEmailsAgentless(body) {
|
|
4191
|
+
// verify the required parameter 'body' is set
|
|
4192
|
+
if (body === undefined || body === null) {
|
|
4193
|
+
throw 'Missing the required parameter "body" when calling postConversationsEmailsAgentless';
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
return this.apiClient.callApi(
|
|
4197
|
+
'/api/v2/conversations/emails/agentless',
|
|
4198
|
+
'POST',
|
|
4199
|
+
{ },
|
|
4200
|
+
{ },
|
|
4201
|
+
{ },
|
|
4202
|
+
{ },
|
|
4203
|
+
body,
|
|
4204
|
+
['PureCloud OAuth'],
|
|
4205
|
+
['application/json'],
|
|
4206
|
+
['application/json']
|
|
4207
|
+
);
|
|
4208
|
+
}
|
|
4209
|
+
|
|
4177
4210
|
/**
|
|
4178
4211
|
* Create Fax Conversation
|
|
4179
4212
|
*
|
|
@@ -4255,8 +4288,12 @@ class ConversationsApi {
|
|
|
4255
4288
|
* @param {String} conversationId conversationId
|
|
4256
4289
|
* @param {String} communicationId communicationId
|
|
4257
4290
|
* @param {Object} body Message
|
|
4291
|
+
* @param {Object} opts Optional parameters
|
|
4292
|
+
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media, stickers) (default to false)
|
|
4258
4293
|
*/
|
|
4259
|
-
postConversationsMessageCommunicationMessages(conversationId, communicationId, body) {
|
|
4294
|
+
postConversationsMessageCommunicationMessages(conversationId, communicationId, body, opts) {
|
|
4295
|
+
opts = opts || {};
|
|
4296
|
+
|
|
4260
4297
|
// verify the required parameter 'conversationId' is set
|
|
4261
4298
|
if (conversationId === undefined || conversationId === null) {
|
|
4262
4299
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';
|
|
@@ -4274,7 +4311,7 @@ class ConversationsApi {
|
|
|
4274
4311
|
'/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages',
|
|
4275
4312
|
'POST',
|
|
4276
4313
|
{ 'conversationId': conversationId,'communicationId': communicationId },
|
|
4277
|
-
{
|
|
4314
|
+
{ 'useNormalizedMessage': opts['useNormalizedMessage'] },
|
|
4278
4315
|
{ },
|
|
4279
4316
|
{ },
|
|
4280
4317
|
body,
|
|
@@ -4319,6 +4356,7 @@ class ConversationsApi {
|
|
|
4319
4356
|
* The path parameter [conversationId] should contain the conversationId of the conversation being filtered. The body should contain the messageId(s) of messages being requested. For example: ["a3069a33b-bbb1-4703-9d68-061d9e9db96e", "55bc6be3-078c-4a49-a4e6-1e05776ed7e8"]
|
|
4320
4357
|
* @param {String} conversationId
|
|
4321
4358
|
* @param {Object} opts Optional parameters
|
|
4359
|
+
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media, stickers) (default to false)
|
|
4322
4360
|
* @param {Array.<String>} opts.body messageIds
|
|
4323
4361
|
*/
|
|
4324
4362
|
postConversationsMessageMessagesBulk(conversationId, opts) {
|
|
@@ -4333,7 +4371,7 @@ class ConversationsApi {
|
|
|
4333
4371
|
'/api/v2/conversations/messages/{conversationId}/messages/bulk',
|
|
4334
4372
|
'POST',
|
|
4335
4373
|
{ 'conversationId': conversationId },
|
|
4336
|
-
{
|
|
4374
|
+
{ 'useNormalizedMessage': opts['useNormalizedMessage'] },
|
|
4337
4375
|
{ },
|
|
4338
4376
|
{ },
|
|
4339
4377
|
opts['body'],
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import ApiClient from '../ApiClient.js';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DownloadsApi {
|
|
5
|
+
/**
|
|
6
|
+
* Downloads service.
|
|
7
|
+
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
8
|
+
* @version 150.0.0
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Constructs a new DownloadsApi.
|
|
13
|
+
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
14
|
+
* @class
|
|
15
|
+
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
16
|
+
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
17
|
+
*/
|
|
18
|
+
constructor(apiClient) {
|
|
19
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Issues a redirect to a signed secure download URL for specified download
|
|
25
|
+
* this method will issue a redirect to the url to the content
|
|
26
|
+
* @param {String} downloadId Download ID
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {String} opts.contentDisposition
|
|
29
|
+
* @param {Boolean} opts.issueRedirect (default to true)
|
|
30
|
+
* @param {Boolean} opts.redirectToAuth (default to true)
|
|
31
|
+
*/
|
|
32
|
+
getDownload(downloadId, opts) {
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
|
|
35
|
+
// verify the required parameter 'downloadId' is set
|
|
36
|
+
if (downloadId === undefined || downloadId === null) {
|
|
37
|
+
throw 'Missing the required parameter "downloadId" when calling getDownload';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return this.apiClient.callApi(
|
|
41
|
+
'/api/v2/downloads/{downloadId}',
|
|
42
|
+
'GET',
|
|
43
|
+
{ 'downloadId': downloadId },
|
|
44
|
+
{ 'contentDisposition': opts['contentDisposition'],'issueRedirect': opts['issueRedirect'],'redirectToAuth': opts['redirectToAuth'] },
|
|
45
|
+
{ },
|
|
46
|
+
{ },
|
|
47
|
+
null,
|
|
48
|
+
['PureCloud OAuth'],
|
|
49
|
+
['application/json'],
|
|
50
|
+
['application/json']
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
export default DownloadsApi;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import ApiClient from '../ApiClient.js';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EventsApi {
|
|
5
|
+
/**
|
|
6
|
+
* Events service.
|
|
7
|
+
* @module purecloud-platform-client-v2/api/EventsApi
|
|
8
|
+
* @version 150.0.0
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Constructs a new EventsApi.
|
|
13
|
+
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
14
|
+
* @class
|
|
15
|
+
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
16
|
+
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
17
|
+
*/
|
|
18
|
+
constructor(apiClient) {
|
|
19
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Publish Conversation Batch Events
|
|
25
|
+
*
|
|
26
|
+
* @param {Object} body batchRequest
|
|
27
|
+
*/
|
|
28
|
+
postEventsConversations(body) {
|
|
29
|
+
// verify the required parameter 'body' is set
|
|
30
|
+
if (body === undefined || body === null) {
|
|
31
|
+
throw 'Missing the required parameter "body" when calling postEventsConversations';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return this.apiClient.callApi(
|
|
35
|
+
'/api/v2/events/conversations',
|
|
36
|
+
'POST',
|
|
37
|
+
{ },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
body,
|
|
42
|
+
['PureCloud OAuth'],
|
|
43
|
+
['application/json'],
|
|
44
|
+
['application/json']
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Publish User Presence Status Batch Events
|
|
50
|
+
*
|
|
51
|
+
* @param {Object} body batchRequest
|
|
52
|
+
*/
|
|
53
|
+
postEventsUsersPresence(body) {
|
|
54
|
+
// verify the required parameter 'body' is set
|
|
55
|
+
if (body === undefined || body === null) {
|
|
56
|
+
throw 'Missing the required parameter "body" when calling postEventsUsersPresence';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return this.apiClient.callApi(
|
|
60
|
+
'/api/v2/events/users/presence',
|
|
61
|
+
'POST',
|
|
62
|
+
{ },
|
|
63
|
+
{ },
|
|
64
|
+
{ },
|
|
65
|
+
{ },
|
|
66
|
+
body,
|
|
67
|
+
['PureCloud OAuth'],
|
|
68
|
+
['application/json'],
|
|
69
|
+
['application/json']
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Publish Agent Routing Status Batch Events
|
|
75
|
+
*
|
|
76
|
+
* @param {Object} body batchRequest
|
|
77
|
+
*/
|
|
78
|
+
postEventsUsersRoutingstatus(body) {
|
|
79
|
+
// verify the required parameter 'body' is set
|
|
80
|
+
if (body === undefined || body === null) {
|
|
81
|
+
throw 'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return this.apiClient.callApi(
|
|
85
|
+
'/api/v2/events/users/routingstatus',
|
|
86
|
+
'POST',
|
|
87
|
+
{ },
|
|
88
|
+
{ },
|
|
89
|
+
{ },
|
|
90
|
+
{ },
|
|
91
|
+
body,
|
|
92
|
+
['PureCloud OAuth'],
|
|
93
|
+
['application/json'],
|
|
94
|
+
['application/json']
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
export default EventsApi;
|
|
@@ -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 150.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -234,6 +234,31 @@ 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
|
+
|
|
237
262
|
/**
|
|
238
263
|
* Fetch a note for an external contact
|
|
239
264
|
*
|
|
@@ -300,6 +325,35 @@ class ExternalContactsApi {
|
|
|
300
325
|
);
|
|
301
326
|
}
|
|
302
327
|
|
|
328
|
+
/**
|
|
329
|
+
* Fetch an unresolved external contact
|
|
330
|
+
*
|
|
331
|
+
* @param {String} contactId ExternalContact ID
|
|
332
|
+
* @param {Object} opts Optional parameters
|
|
333
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand (externalOrganization,externalDataSources)
|
|
334
|
+
*/
|
|
335
|
+
getExternalcontactsContactUnresolved(contactId, opts) {
|
|
336
|
+
opts = opts || {};
|
|
337
|
+
|
|
338
|
+
// verify the required parameter 'contactId' is set
|
|
339
|
+
if (contactId === undefined || contactId === null) {
|
|
340
|
+
throw 'Missing the required parameter "contactId" when calling getExternalcontactsContactUnresolved';
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return this.apiClient.callApi(
|
|
344
|
+
'/api/v2/externalcontacts/contacts/{contactId}/unresolved',
|
|
345
|
+
'GET',
|
|
346
|
+
{ 'contactId': contactId },
|
|
347
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
348
|
+
{ },
|
|
349
|
+
{ },
|
|
350
|
+
null,
|
|
351
|
+
['PureCloud OAuth'],
|
|
352
|
+
['application/json'],
|
|
353
|
+
['application/json']
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
|
|
303
357
|
/**
|
|
304
358
|
* Search for external contacts
|
|
305
359
|
*
|
|
@@ -877,6 +931,36 @@ class ExternalContactsApi {
|
|
|
877
931
|
);
|
|
878
932
|
}
|
|
879
933
|
|
|
934
|
+
/**
|
|
935
|
+
* Claim or release identifiers for a contact
|
|
936
|
+
*
|
|
937
|
+
* @param {String} contactId ExternalContact ID
|
|
938
|
+
* @param {Object} body ClaimRequest
|
|
939
|
+
*/
|
|
940
|
+
patchExternalcontactsContactIdentifiers(contactId, body) {
|
|
941
|
+
// verify the required parameter 'contactId' is set
|
|
942
|
+
if (contactId === undefined || contactId === null) {
|
|
943
|
+
throw 'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';
|
|
944
|
+
}
|
|
945
|
+
// verify the required parameter 'body' is set
|
|
946
|
+
if (body === undefined || body === null) {
|
|
947
|
+
throw 'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
return this.apiClient.callApi(
|
|
951
|
+
'/api/v2/externalcontacts/contacts/{contactId}/identifiers',
|
|
952
|
+
'PATCH',
|
|
953
|
+
{ 'contactId': contactId },
|
|
954
|
+
{ },
|
|
955
|
+
{ },
|
|
956
|
+
{ },
|
|
957
|
+
body,
|
|
958
|
+
['PureCloud OAuth'],
|
|
959
|
+
['application/json'],
|
|
960
|
+
['application/json']
|
|
961
|
+
);
|
|
962
|
+
}
|
|
963
|
+
|
|
880
964
|
/**
|
|
881
965
|
* Bulk fetch contacts
|
|
882
966
|
*
|
|
@@ -952,6 +1036,31 @@ class ExternalContactsApi {
|
|
|
952
1036
|
);
|
|
953
1037
|
}
|
|
954
1038
|
|
|
1039
|
+
/**
|
|
1040
|
+
* Bulk fetch unresolved ancestor contacts
|
|
1041
|
+
*
|
|
1042
|
+
* @param {Object} body Contact ids
|
|
1043
|
+
*/
|
|
1044
|
+
postExternalcontactsBulkContactsUnresolved(body) {
|
|
1045
|
+
// verify the required parameter 'body' is set
|
|
1046
|
+
if (body === undefined || body === null) {
|
|
1047
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsBulkContactsUnresolved';
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
return this.apiClient.callApi(
|
|
1051
|
+
'/api/v2/externalcontacts/bulk/contacts/unresolved',
|
|
1052
|
+
'POST',
|
|
1053
|
+
{ },
|
|
1054
|
+
{ },
|
|
1055
|
+
{ },
|
|
1056
|
+
{ },
|
|
1057
|
+
body,
|
|
1058
|
+
['PureCloud OAuth'],
|
|
1059
|
+
['application/json'],
|
|
1060
|
+
['application/json']
|
|
1061
|
+
);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
955
1064
|
/**
|
|
956
1065
|
* Bulk update contacts
|
|
957
1066
|
*
|
|
@@ -1307,6 +1416,31 @@ class ExternalContactsApi {
|
|
|
1307
1416
|
);
|
|
1308
1417
|
}
|
|
1309
1418
|
|
|
1419
|
+
/**
|
|
1420
|
+
* Promote an observed contact (ephemeral or identified) to a curated contact
|
|
1421
|
+
*
|
|
1422
|
+
* @param {String} contactId ExternalContact ID
|
|
1423
|
+
*/
|
|
1424
|
+
postExternalcontactsContactPromotion(contactId) {
|
|
1425
|
+
// verify the required parameter 'contactId' is set
|
|
1426
|
+
if (contactId === undefined || contactId === null) {
|
|
1427
|
+
throw 'Missing the required parameter "contactId" when calling postExternalcontactsContactPromotion';
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
return this.apiClient.callApi(
|
|
1431
|
+
'/api/v2/externalcontacts/contacts/{contactId}/promotion',
|
|
1432
|
+
'POST',
|
|
1433
|
+
{ 'contactId': contactId },
|
|
1434
|
+
{ },
|
|
1435
|
+
{ },
|
|
1436
|
+
{ },
|
|
1437
|
+
null,
|
|
1438
|
+
['PureCloud OAuth'],
|
|
1439
|
+
['application/json'],
|
|
1440
|
+
['application/json']
|
|
1441
|
+
);
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1310
1444
|
/**
|
|
1311
1445
|
* Create an external contact
|
|
1312
1446
|
*
|
|
@@ -1357,6 +1491,56 @@ class ExternalContactsApi {
|
|
|
1357
1491
|
);
|
|
1358
1492
|
}
|
|
1359
1493
|
|
|
1494
|
+
/**
|
|
1495
|
+
* Fetch a contact using an identifier type and value.
|
|
1496
|
+
* Phone number identifier values must be provided with the country code and a leading + symbol. Example: "+1 704 298 4733"
|
|
1497
|
+
* @param {Object} identifier
|
|
1498
|
+
*/
|
|
1499
|
+
postExternalcontactsIdentifierlookup(identifier) {
|
|
1500
|
+
// verify the required parameter 'identifier' is set
|
|
1501
|
+
if (identifier === undefined || identifier === null) {
|
|
1502
|
+
throw 'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
return this.apiClient.callApi(
|
|
1506
|
+
'/api/v2/externalcontacts/identifierlookup',
|
|
1507
|
+
'POST',
|
|
1508
|
+
{ },
|
|
1509
|
+
{ },
|
|
1510
|
+
{ },
|
|
1511
|
+
{ },
|
|
1512
|
+
identifier,
|
|
1513
|
+
['PureCloud OAuth'],
|
|
1514
|
+
['application/json'],
|
|
1515
|
+
['application/json']
|
|
1516
|
+
);
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* Merge two contacts into a new contact record
|
|
1521
|
+
*
|
|
1522
|
+
* @param {Object} body MergeRequest
|
|
1523
|
+
*/
|
|
1524
|
+
postExternalcontactsMergeContacts(body) {
|
|
1525
|
+
// verify the required parameter 'body' is set
|
|
1526
|
+
if (body === undefined || body === null) {
|
|
1527
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsMergeContacts';
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
return this.apiClient.callApi(
|
|
1531
|
+
'/api/v2/externalcontacts/merge/contacts',
|
|
1532
|
+
'POST',
|
|
1533
|
+
{ },
|
|
1534
|
+
{ },
|
|
1535
|
+
{ },
|
|
1536
|
+
{ },
|
|
1537
|
+
body,
|
|
1538
|
+
['PureCloud OAuth'],
|
|
1539
|
+
['application/json'],
|
|
1540
|
+
['application/json']
|
|
1541
|
+
);
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1360
1544
|
/**
|
|
1361
1545
|
* Create a note for an external organization
|
|
1362
1546
|
*
|