purecloud-platform-client-v2 96.0.0 → 99.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 -2
- package/dist/node/purecloud-platform-client-v2.js +263 -68
- package/dist/web-amd/purecloud-platform-client-v2.js +263 -68
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +263 -68
- package/dist/web-cjs/purecloud-platform-client-v2.js +265 -71
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +541 -386
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
- 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 +4 -2
- package/src/purecloud-platform-client-v2/api/BillingApi.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 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -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/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 +8 -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/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.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 +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +3 -2
- 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 +3 -2
- 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/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 +2 -2
- 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/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +190 -2
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import superagent from 'superagent';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module purecloud-platform-client-v2/ApiClient
|
|
5
|
-
* @version
|
|
5
|
+
* @version 99.0.0
|
|
6
6
|
*/
|
|
7
7
|
class ApiClient {
|
|
8
8
|
/**
|
|
@@ -758,7 +758,7 @@ class ApiClient {
|
|
|
758
758
|
|
|
759
759
|
// set header parameters
|
|
760
760
|
request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
|
|
761
|
-
//request.set({ 'purecloud-sdk': '
|
|
761
|
+
//request.set({ 'purecloud-sdk': '99.0.0' });
|
|
762
762
|
|
|
763
763
|
// set request timeout
|
|
764
764
|
request.timeout(this.timeout);
|
|
@@ -5,7 +5,7 @@ class AuthorizationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Authorization service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 99.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -340,6 +340,8 @@ class AuthorizationApi {
|
|
|
340
340
|
* @param {Object} opts Optional parameters
|
|
341
341
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
342
342
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
343
|
+
* @param {Object} opts.queryType Query filter type
|
|
344
|
+
* @param {String} opts.query Comma-separated list of permissions or domains to query
|
|
343
345
|
*/
|
|
344
346
|
getAuthorizationPermissions(opts) {
|
|
345
347
|
opts = opts || {};
|
|
@@ -349,7 +351,7 @@ class AuthorizationApi {
|
|
|
349
351
|
'/api/v2/authorization/permissions',
|
|
350
352
|
'GET',
|
|
351
353
|
{ },
|
|
352
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
354
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'queryType': opts['queryType'],'query': opts['query'] },
|
|
353
355
|
{ },
|
|
354
356
|
{ },
|
|
355
357
|
null,
|
|
@@ -5,7 +5,7 @@ class KnowledgeApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Knowledge service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 99.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -150,6 +150,7 @@ class KnowledgeApi {
|
|
|
150
150
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
151
151
|
* @param {String} opts.limit Number of entities to return. Maximum of 200.
|
|
152
152
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
153
|
+
* @param {String} opts.name Filter to return the categories that starts with the given category name.
|
|
153
154
|
*/
|
|
154
155
|
getKnowledgeKnowledgebaseLanguageCategories(knowledgeBaseId, languageCode, opts) {
|
|
155
156
|
opts = opts || {};
|
|
@@ -167,7 +168,7 @@ class KnowledgeApi {
|
|
|
167
168
|
'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories',
|
|
168
169
|
'GET',
|
|
169
170
|
{ 'knowledgeBaseId': knowledgeBaseId,'languageCode': languageCode },
|
|
170
|
-
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'] },
|
|
171
|
+
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'name': opts['name'] },
|
|
171
172
|
{ },
|
|
172
173
|
{ },
|
|
173
174
|
null,
|
|
@@ -258,6 +259,7 @@ class KnowledgeApi {
|
|
|
258
259
|
* @param {String} opts.limit Number of entities to return. Maximum of 200.
|
|
259
260
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
260
261
|
* @param {String} opts.categories Filter by categories ids, comma separated values expected.
|
|
262
|
+
* @param {String} opts.title Filter by document title.
|
|
261
263
|
*/
|
|
262
264
|
getKnowledgeKnowledgebaseLanguageDocuments(knowledgeBaseId, languageCode, opts) {
|
|
263
265
|
opts = opts || {};
|
|
@@ -275,7 +277,7 @@ class KnowledgeApi {
|
|
|
275
277
|
'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents',
|
|
276
278
|
'GET',
|
|
277
279
|
{ 'knowledgeBaseId': knowledgeBaseId,'languageCode': languageCode },
|
|
278
|
-
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'categories': opts['categories'] },
|
|
280
|
+
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'categories': opts['categories'],'title': opts['title'] },
|
|
279
281
|
{ },
|
|
280
282
|
{ },
|
|
281
283
|
null,
|
|
@@ -321,7 +323,7 @@ class KnowledgeApi {
|
|
|
321
323
|
}
|
|
322
324
|
|
|
323
325
|
/**
|
|
324
|
-
* Get
|
|
326
|
+
* Get all trainings information for a knowledgebase
|
|
325
327
|
*
|
|
326
328
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
327
329
|
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
@@ -330,6 +332,7 @@ class KnowledgeApi {
|
|
|
330
332
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
331
333
|
* @param {String} opts.limit Number of entities to return. Maximum of 200.
|
|
332
334
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
335
|
+
* @param {Object} opts.knowledgeDocumentsState Return the training with the specified state of the trained documents.
|
|
333
336
|
*/
|
|
334
337
|
getKnowledgeKnowledgebaseLanguageTrainings(knowledgeBaseId, languageCode, opts) {
|
|
335
338
|
opts = opts || {};
|
|
@@ -347,7 +350,7 @@ class KnowledgeApi {
|
|
|
347
350
|
'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings',
|
|
348
351
|
'GET',
|
|
349
352
|
{ 'knowledgeBaseId': knowledgeBaseId,'languageCode': languageCode },
|
|
350
|
-
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'] },
|
|
353
|
+
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'knowledgeDocumentsState': opts['knowledgeDocumentsState'] },
|
|
351
354
|
{ },
|
|
352
355
|
{ },
|
|
353
356
|
null,
|
|
@@ -5,7 +5,7 @@ class QualityApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Quality service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 99.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -599,6 +599,7 @@ class QualityApi {
|
|
|
599
599
|
* @param {Object} opts Optional parameters
|
|
600
600
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
601
601
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
602
|
+
* @param {String} opts.sortOrder Sort order (default to asc)
|
|
602
603
|
*/
|
|
603
604
|
getQualityFormsEvaluationVersions(formId, opts) {
|
|
604
605
|
opts = opts || {};
|
|
@@ -612,7 +613,7 @@ class QualityApi {
|
|
|
612
613
|
'/api/v2/quality/forms/evaluations/{formId}/versions',
|
|
613
614
|
'GET',
|
|
614
615
|
{ 'formId': formId },
|
|
615
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
616
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'] },
|
|
616
617
|
{ },
|
|
617
618
|
{ },
|
|
618
619
|
null,
|
|
@@ -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 99.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1191,6 +1191,7 @@ class RoutingApi {
|
|
|
1191
1191
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1192
1192
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1193
1193
|
* @param {Object} opts.sortBy Sort by (default to name)
|
|
1194
|
+
* @param {Object} opts.sortOrder Sort order (default to ascending)
|
|
1194
1195
|
* @param {String} opts.name Name
|
|
1195
1196
|
*/
|
|
1196
1197
|
getRoutingWrapupcodes(opts) {
|
|
@@ -1201,7 +1202,7 @@ class RoutingApi {
|
|
|
1201
1202
|
'/api/v2/routing/wrapupcodes',
|
|
1202
1203
|
'GET',
|
|
1203
1204
|
{ },
|
|
1204
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'name': opts['name'] },
|
|
1205
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'] },
|
|
1205
1206
|
{ },
|
|
1206
1207
|
{ },
|
|
1207
1208
|
null,
|