purecloud-platform-client-v2 150.0.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 +351 -73
- package/dist/web-amd/purecloud-platform-client-v2.js +351 -73
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +351 -73
- package/dist/web-cjs/purecloud-platform-client-v2.js +351 -73
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +297 -201
- 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 +36 -1
- 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/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +32 -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 +3 -3
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -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 +1 -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 151.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -4351,6 +4351,41 @@ class ConversationsApi {
|
|
|
4351
4351
|
);
|
|
4352
4352
|
}
|
|
4353
4353
|
|
|
4354
|
+
/**
|
|
4355
|
+
* Send message typing event
|
|
4356
|
+
* Send message typing event for existing conversation/communication.
|
|
4357
|
+
* @param {String} conversationId conversationId
|
|
4358
|
+
* @param {String} communicationId communicationId
|
|
4359
|
+
* @param {Object} body MessageTypingEvent
|
|
4360
|
+
*/
|
|
4361
|
+
postConversationsMessageCommunicationTyping(conversationId, communicationId, body) {
|
|
4362
|
+
// verify the required parameter 'conversationId' is set
|
|
4363
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4364
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';
|
|
4365
|
+
}
|
|
4366
|
+
// verify the required parameter 'communicationId' is set
|
|
4367
|
+
if (communicationId === undefined || communicationId === null) {
|
|
4368
|
+
throw 'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';
|
|
4369
|
+
}
|
|
4370
|
+
// verify the required parameter 'body' is set
|
|
4371
|
+
if (body === undefined || body === null) {
|
|
4372
|
+
throw 'Missing the required parameter "body" when calling postConversationsMessageCommunicationTyping';
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
return this.apiClient.callApi(
|
|
4376
|
+
'/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/typing',
|
|
4377
|
+
'POST',
|
|
4378
|
+
{ 'conversationId': conversationId,'communicationId': communicationId },
|
|
4379
|
+
{ },
|
|
4380
|
+
{ },
|
|
4381
|
+
{ },
|
|
4382
|
+
body,
|
|
4383
|
+
['PureCloud OAuth'],
|
|
4384
|
+
['application/json'],
|
|
4385
|
+
['application/json']
|
|
4386
|
+
);
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4354
4389
|
/**
|
|
4355
4390
|
* Get messages in batch
|
|
4356
4391
|
* 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"]
|
|
@@ -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
|
/**
|
|
@@ -259,6 +259,37 @@ class ExternalContactsApi {
|
|
|
259
259
|
);
|
|
260
260
|
}
|
|
261
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
|
+
|
|
262
293
|
/**
|
|
263
294
|
* Fetch a note for an external contact
|
|
264
295
|
*
|
|
@@ -5,7 +5,7 @@ class PresenceApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Presence service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 151.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -99,7 +99,7 @@ class PresenceApi {
|
|
|
99
99
|
* Get a list of Presence Sources
|
|
100
100
|
*
|
|
101
101
|
* @param {Object} opts Optional parameters
|
|
102
|
-
* @param {String} opts.
|
|
102
|
+
* @param {String} opts.deactivated Deactivated query can be TRUE or FALSE (default to false)
|
|
103
103
|
*/
|
|
104
104
|
getPresenceSources(opts) {
|
|
105
105
|
opts = opts || {};
|
|
@@ -109,7 +109,7 @@ class PresenceApi {
|
|
|
109
109
|
'/api/v2/presence/sources',
|
|
110
110
|
'GET',
|
|
111
111
|
{ },
|
|
112
|
-
{ '
|
|
112
|
+
{ 'deactivated': opts['deactivated'] },
|
|
113
113
|
{ },
|
|
114
114
|
{ },
|
|
115
115
|
null,
|
|
@@ -5,7 +5,7 @@ class ProcessAutomationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* ProcessAutomation service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 151.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -46,7 +46,7 @@ class ProcessAutomationApi {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Retrieve a single Trigger matching id
|
|
49
|
+
* Retrieve a single Trigger matching id
|
|
50
50
|
*
|
|
51
51
|
* @param {String} triggerId triggerId
|
|
52
52
|
*/
|
|
@@ -71,13 +71,13 @@ class ProcessAutomationApi {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* Retrieves all triggers
|
|
74
|
+
* Retrieves all triggers, optionally filtered by query parameters.
|
|
75
75
|
*
|
|
76
76
|
* @param {Object} opts Optional parameters
|
|
77
77
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
78
78
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
79
79
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
80
|
-
* @param {String} opts.topicName Topic name
|
|
80
|
+
* @param {String} opts.topicName Topic name(s). Separated by commas
|
|
81
81
|
* @param {Boolean} opts.enabled Boolean indicating desired enabled state of triggers
|
|
82
82
|
*/
|
|
83
83
|
getProcessautomationTriggers(opts) {
|
|
@@ -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 151.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -534,6 +534,31 @@ class SearchApi {
|
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
+
/**
|
|
538
|
+
* Search users assigned to teams
|
|
539
|
+
*
|
|
540
|
+
* @param {Object} body Search request options
|
|
541
|
+
*/
|
|
542
|
+
postUsersSearchTeamsAssign(body) {
|
|
543
|
+
// verify the required parameter 'body' is set
|
|
544
|
+
if (body === undefined || body === null) {
|
|
545
|
+
throw 'Missing the required parameter "body" when calling postUsersSearchTeamsAssign';
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
return this.apiClient.callApi(
|
|
549
|
+
'/api/v2/users/search/teams/assign',
|
|
550
|
+
'POST',
|
|
551
|
+
{ },
|
|
552
|
+
{ },
|
|
553
|
+
{ },
|
|
554
|
+
{ },
|
|
555
|
+
body,
|
|
556
|
+
['PureCloud OAuth'],
|
|
557
|
+
['application/json'],
|
|
558
|
+
['application/json']
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
|
|
537
562
|
/**
|
|
538
563
|
* Search voicemails
|
|
539
564
|
*
|