purecloud-platform-client-v2 138.0.0 → 140.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.
Files changed (73) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +523 -147
  3. package/dist/web-amd/purecloud-platform-client-v2.js +523 -147
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +523 -147
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +523 -147
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +783 -224
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +5 -2
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +15 -15
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +271 -1
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/GamificationApi.js +28 -27
  26. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +5 -5
  34. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/LearningApi.js +111 -1
  37. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/QualityApi.js +2 -2
  49. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/RoutingApi.js +16 -24
  52. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/UsersApi.js +15 -15
  66. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class GeolocationApi {
5
5
  /**
6
6
  * Geolocation service.
7
7
  * @module purecloud-platform-client-v2/api/GeolocationApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GreetingsApi {
5
5
  /**
6
6
  * Greetings service.
7
7
  * @module purecloud-platform-client-v2/api/GreetingsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GroupsApi {
5
5
  /**
6
6
  * Groups service.
7
7
  * @module purecloud-platform-client-v2/api/GroupsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IdentityProviderApi {
5
5
  /**
6
6
  * IdentityProvider service.
7
7
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IntegrationsApi {
5
5
  /**
6
6
  * Integrations service.
7
7
  * @module purecloud-platform-client-v2/api/IntegrationsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -183,7 +183,7 @@ class KnowledgeApi {
183
183
  * @param {Object} opts Optional parameters
184
184
  * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
185
185
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
186
- * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize, use CursorQueryParameters instead.
186
+ * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
187
187
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
188
188
  * @param {String} opts.name Filter to return the categories that starts with the given category name.
189
189
  */
@@ -291,7 +291,7 @@ class KnowledgeApi {
291
291
  * @param {Object} opts Optional parameters
292
292
  * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
293
293
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
294
- * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize, use CursorQueryParameters instead.
294
+ * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
295
295
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
296
296
  * @param {String} opts.categories Filter by categories ids, comma separated values expected.
297
297
  * @param {String} opts.title Filter by document title.
@@ -403,7 +403,7 @@ class KnowledgeApi {
403
403
  * @param {Object} opts Optional parameters
404
404
  * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
405
405
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
406
- * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize, use CursorQueryParameters instead.
406
+ * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
407
407
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
408
408
  * @param {Object} opts.knowledgeDocumentsState Return the training with the specified state of the trained documents.
409
409
  */
@@ -439,7 +439,7 @@ class KnowledgeApi {
439
439
  * @param {Object} opts Optional parameters
440
440
  * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
441
441
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
442
- * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize, use CursorQueryParameters instead.
442
+ * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
443
443
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
444
444
  * @param {String} opts.name Filter by Name.
445
445
  * @param {Object} opts.coreLanguage Filter by core language.
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguagesApi {
5
5
  /**
6
6
  * Languages service.
7
7
  * @module purecloud-platform-client-v2/api/LanguagesApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LearningApi {
5
5
  /**
6
6
  * Learning service.
7
7
  * @module purecloud-platform-client-v2/api/LearningApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -203,6 +203,36 @@ class LearningApi {
203
203
  );
204
204
  }
205
205
 
206
+ /**
207
+ * Get a specific Learning Module job status
208
+ *
209
+ * @param {String} moduleId The ID of the learning module
210
+ * @param {String} jobId The ID of the learning module job
211
+ */
212
+ getLearningModuleJob(moduleId, jobId) {
213
+ // verify the required parameter 'moduleId' is set
214
+ if (moduleId === undefined || moduleId === null) {
215
+ throw 'Missing the required parameter "moduleId" when calling getLearningModuleJob';
216
+ }
217
+ // verify the required parameter 'jobId' is set
218
+ if (jobId === undefined || jobId === null) {
219
+ throw 'Missing the required parameter "jobId" when calling getLearningModuleJob';
220
+ }
221
+
222
+ return this.apiClient.callApi(
223
+ '/api/v2/learning/modules/{moduleId}/jobs/{jobId}',
224
+ 'GET',
225
+ { 'moduleId': moduleId,'jobId': jobId },
226
+ { },
227
+ { },
228
+ { },
229
+ null,
230
+ ['PureCloud OAuth'],
231
+ ['application/json'],
232
+ ['application/json']
233
+ );
234
+ }
235
+
206
236
  /**
207
237
  * Get a learning module rule
208
238
  *
@@ -348,6 +378,56 @@ class LearningApi {
348
378
  );
349
379
  }
350
380
 
381
+ /**
382
+ * Reassign Learning Assignment
383
+ * This will reassign the state of the assignment to Assigned and update the assignment to the latest version of the module
384
+ * @param {String} assignmentId The Learning Assignment ID
385
+ */
386
+ postLearningAssignmentReassign(assignmentId) {
387
+ // verify the required parameter 'assignmentId' is set
388
+ if (assignmentId === undefined || assignmentId === null) {
389
+ throw 'Missing the required parameter "assignmentId" when calling postLearningAssignmentReassign';
390
+ }
391
+
392
+ return this.apiClient.callApi(
393
+ '/api/v2/learning/assignments/{assignmentId}/reassign',
394
+ 'POST',
395
+ { 'assignmentId': assignmentId },
396
+ { },
397
+ { },
398
+ { },
399
+ null,
400
+ ['PureCloud OAuth'],
401
+ ['application/json'],
402
+ ['application/json']
403
+ );
404
+ }
405
+
406
+ /**
407
+ * Reset Learning Assignment
408
+ * This will reset the state of the assignment to Assigned and remove the version of Learning module associated with the assignment
409
+ * @param {String} assignmentId The Learning Assignment ID
410
+ */
411
+ postLearningAssignmentReset(assignmentId) {
412
+ // verify the required parameter 'assignmentId' is set
413
+ if (assignmentId === undefined || assignmentId === null) {
414
+ throw 'Missing the required parameter "assignmentId" when calling postLearningAssignmentReset';
415
+ }
416
+
417
+ return this.apiClient.callApi(
418
+ '/api/v2/learning/assignments/{assignmentId}/reset',
419
+ 'POST',
420
+ { 'assignmentId': assignmentId },
421
+ { },
422
+ { },
423
+ { },
424
+ null,
425
+ ['PureCloud OAuth'],
426
+ ['application/json'],
427
+ ['application/json']
428
+ );
429
+ }
430
+
351
431
  /**
352
432
  * Create Learning Assignment
353
433
  *
@@ -445,6 +525,36 @@ class LearningApi {
445
525
  );
446
526
  }
447
527
 
528
+ /**
529
+ * Starts a specified operation on learning module
530
+ * This will initiate operation specified in the request body for a learning module
531
+ * @param {String} moduleId The ID of the learning module
532
+ * @param {Object} body The learning module job request
533
+ */
534
+ postLearningModuleJobs(moduleId, body) {
535
+ // verify the required parameter 'moduleId' is set
536
+ if (moduleId === undefined || moduleId === null) {
537
+ throw 'Missing the required parameter "moduleId" when calling postLearningModuleJobs';
538
+ }
539
+ // verify the required parameter 'body' is set
540
+ if (body === undefined || body === null) {
541
+ throw 'Missing the required parameter "body" when calling postLearningModuleJobs';
542
+ }
543
+
544
+ return this.apiClient.callApi(
545
+ '/api/v2/learning/modules/{moduleId}/jobs',
546
+ 'POST',
547
+ { 'moduleId': moduleId },
548
+ { },
549
+ { },
550
+ { },
551
+ body,
552
+ ['PureCloud OAuth'],
553
+ ['application/json'],
554
+ ['application/json']
555
+ );
556
+ }
557
+
448
558
  /**
449
559
  * Publish a Learning module
450
560
  *
@@ -5,7 +5,7 @@ class LicenseApi {
5
5
  /**
6
6
  * License service.
7
7
  * @module purecloud-platform-client-v2/api/LicenseApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LocationsApi {
5
5
  /**
6
6
  * Locations service.
7
7
  * @module purecloud-platform-client-v2/api/LocationsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class MessagingApi {
5
5
  /**
6
6
  * Messaging service.
7
7
  * @module purecloud-platform-client-v2/api/MessagingApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class MobileDevicesApi {
5
5
  /**
6
6
  * MobileDevices service.
7
7
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class NotificationsApi {
5
5
  /**
6
6
  * Notifications service.
7
7
  * @module purecloud-platform-client-v2/api/NotificationsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OAuthApi {
5
5
  /**
6
6
  * OAuth service.
7
7
  * @module purecloud-platform-client-v2/api/OAuthApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ObjectsApi {
5
5
  /**
6
6
  * Objects service.
7
7
  * @module purecloud-platform-client-v2/api/ObjectsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OrganizationApi {
5
5
  /**
6
6
  * Organization service.
7
7
  * @module purecloud-platform-client-v2/api/OrganizationApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OrganizationAuthorizationApi {
5
5
  /**
6
6
  * OrganizationAuthorization service.
7
7
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OutboundApi {
5
5
  /**
6
6
  * Outbound service.
7
7
  * @module purecloud-platform-client-v2/api/OutboundApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class PresenceApi {
5
5
  /**
6
6
  * Presence service.
7
7
  * @module purecloud-platform-client-v2/api/PresenceApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class QualityApi {
5
5
  /**
6
6
  * Quality service.
7
7
  * @module purecloud-platform-client-v2/api/QualityApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -763,7 +763,7 @@ class QualityApi {
763
763
  /**
764
764
  * Retrieve a list of the latest form versions by context ids
765
765
  *
766
- * @param {Array.<String>} contextId A comma-delimited list of valid survey form context ids
766
+ * @param {Array.<String>} contextId A comma-delimited list of valid survey form context ids. The maximum number of ids allowed in this list is 100.
767
767
  * @param {Object} opts Optional parameters
768
768
  * @param {Boolean} opts.published If true, the latest published version will be included. If false, only the unpublished version will be included. (default to true)
769
769
  */
@@ -5,7 +5,7 @@ class RecordingApi {
5
5
  /**
6
6
  * Recording service.
7
7
  * @module purecloud-platform-client-v2/api/RecordingApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ResponseManagementApi {
5
5
  /**
6
6
  * ResponseManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class RoutingApi {
5
5
  /**
6
6
  * Routing service.
7
7
  * @module purecloud-platform-client-v2/api/RoutingApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -318,12 +318,8 @@ class RoutingApi {
318
318
  * Delete a phone number provisioned for SMS.
319
319
  *
320
320
  * @param {String} addressId Address ID
321
- * @param {Object} opts Optional parameters
322
- * @param {Boolean} opts.async Delete a phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the deletion of a provisioned phone number. (default to false)
323
321
  */
324
- deleteRoutingSmsPhonenumber(addressId, opts) {
325
- opts = opts || {};
326
-
322
+ deleteRoutingSmsPhonenumber(addressId) {
327
323
  // verify the required parameter 'addressId' is set
328
324
  if (addressId === undefined || addressId === null) {
329
325
  throw 'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';
@@ -333,7 +329,7 @@ class RoutingApi {
333
329
  '/api/v2/routing/sms/phonenumbers/{addressId}',
334
330
  'DELETE',
335
331
  { 'addressId': addressId },
336
- { 'async': opts['async'] },
332
+ { },
337
333
  { },
338
334
  { },
339
335
  null,
@@ -504,7 +500,7 @@ class RoutingApi {
504
500
  * @param {Object} opts Optional parameters
505
501
  * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
506
502
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
507
- * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize, use CursorQueryParameters instead.
503
+ * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
508
504
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
509
505
  * @param {Array.<String>} opts.queueId Queue ID(s) to filter assessments by.
510
506
  */
@@ -815,7 +811,7 @@ class RoutingApi {
815
811
  * @param {Object} opts Optional parameters
816
812
  * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
817
813
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
818
- * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize, use CursorQueryParameters instead.
814
+ * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
819
815
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
820
816
  * @param {Array.<String>} opts.queueId Comma-separated list of queue Ids to filter by.
821
817
  */
@@ -838,16 +834,20 @@ class RoutingApi {
838
834
  }
839
835
 
840
836
  /**
841
- * Get a list of Key Performance Indicators available for the predictors.
837
+ * Get a list of Key Performance Indicators
842
838
  *
839
+ * @param {Object} opts Optional parameters
840
+ * @param {Object} opts.kpiGroup The Group of Key Performance Indicators to return
843
841
  */
844
- getRoutingPredictorsKeyperformanceindicators() {
842
+ getRoutingPredictorsKeyperformanceindicators(opts) {
843
+ opts = opts || {};
844
+
845
845
 
846
846
  return this.apiClient.callApi(
847
847
  '/api/v2/routing/predictors/keyperformanceindicators',
848
848
  'GET',
849
849
  { },
850
- { },
850
+ { 'kpiGroup': opts['kpiGroup'] },
851
851
  { },
852
852
  { },
853
853
  null,
@@ -2487,12 +2487,8 @@ class RoutingApi {
2487
2487
  * Provision a phone number for SMS
2488
2488
  *
2489
2489
  * @param {Object} body SmsPhoneNumber
2490
- * @param {Object} opts Optional parameters
2491
- * @param {Boolean} opts.async Provision a new phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the provisioning of a new phone number. Check the phoneNumber's provisioningStatus for completion of this request. (default to false)
2492
2490
  */
2493
- postRoutingSmsPhonenumbers(body, opts) {
2494
- opts = opts || {};
2495
-
2491
+ postRoutingSmsPhonenumbers(body) {
2496
2492
  // verify the required parameter 'body' is set
2497
2493
  if (body === undefined || body === null) {
2498
2494
  throw 'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';
@@ -2502,7 +2498,7 @@ class RoutingApi {
2502
2498
  '/api/v2/routing/sms/phonenumbers',
2503
2499
  'POST',
2504
2500
  { },
2505
- { 'async': opts['async'] },
2501
+ { },
2506
2502
  { },
2507
2503
  { },
2508
2504
  body,
@@ -2747,12 +2743,8 @@ class RoutingApi {
2747
2743
  *
2748
2744
  * @param {String} addressId Address ID
2749
2745
  * @param {Object} body SmsPhoneNumber
2750
- * @param {Object} opts Optional parameters
2751
- * @param {Boolean} opts.async Update an existing phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the update of a provisioned phone number. Check the phoneNumber's provisioningStatus for the progress of this request. (default to false)
2752
2746
  */
2753
- putRoutingSmsPhonenumber(addressId, body, opts) {
2754
- opts = opts || {};
2755
-
2747
+ putRoutingSmsPhonenumber(addressId, body) {
2756
2748
  // verify the required parameter 'addressId' is set
2757
2749
  if (addressId === undefined || addressId === null) {
2758
2750
  throw 'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';
@@ -2766,7 +2758,7 @@ class RoutingApi {
2766
2758
  '/api/v2/routing/sms/phonenumbers/{addressId}',
2767
2759
  'PUT',
2768
2760
  { 'addressId': addressId },
2769
- { 'async': opts['async'] },
2761
+ { },
2770
2762
  { },
2771
2763
  { },
2772
2764
  body,
@@ -5,7 +5,7 @@ class SCIMApi {
5
5
  /**
6
6
  * SCIM service.
7
7
  * @module purecloud-platform-client-v2/api/SCIMApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ScriptsApi {
5
5
  /**
6
6
  * Scripts service.
7
7
  * @module purecloud-platform-client-v2/api/ScriptsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SearchApi {
5
5
  /**
6
6
  * Search service.
7
7
  * @module purecloud-platform-client-v2/api/SearchApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
5
5
  /**
6
6
  * SpeechTextAnalytics service.
7
7
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class StationsApi {
5
5
  /**
6
6
  * Stations service.
7
7
  * @module purecloud-platform-client-v2/api/StationsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SuggestApi {
5
5
  /**
6
6
  * Suggest service.
7
7
  * @module purecloud-platform-client-v2/api/SuggestApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TelephonyApi {
5
5
  /**
6
6
  * Telephony service.
7
7
  * @module purecloud-platform-client-v2/api/TelephonyApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TelephonyProvidersEdgeApi {
5
5
  /**
6
6
  * TelephonyProvidersEdge service.
7
7
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TextbotsApi {
5
5
  /**
6
6
  * Textbots service.
7
7
  * @module purecloud-platform-client-v2/api/TextbotsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TokensApi {
5
5
  /**
6
6
  * Tokens service.
7
7
  * @module purecloud-platform-client-v2/api/TokensApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UploadsApi {
5
5
  /**
6
6
  * Uploads service.
7
7
  * @module purecloud-platform-client-v2/api/UploadsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UsageApi {
5
5
  /**
6
6
  * Usage service.
7
7
  * @module purecloud-platform-client-v2/api/UsageApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UserRecordingsApi {
5
5
  /**
6
6
  * UserRecordings service.
7
7
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
8
- * @version 138.0.0
8
+ * @version 140.0.0
9
9
  */
10
10
 
11
11
  /**