purecloud-platform-client-v2 139.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 +214 -100
  3. package/dist/web-amd/purecloud-platform-client-v2.js +214 -100
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +214 -100
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +214 -100
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +180 -10
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  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 +1 -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 +5 -5
  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 +1 -1
  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 +8 -4
  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
@@ -2276,7 +2276,7 @@ class Configuration {
2276
2276
 
2277
2277
  /**
2278
2278
  * @module purecloud-platform-client-v2/ApiClient
2279
- * @version 139.0.0
2279
+ * @version 140.0.0
2280
2280
  */
2281
2281
  class ApiClient {
2282
2282
  /**
@@ -3347,7 +3347,7 @@ class AlertingApi {
3347
3347
  /**
3348
3348
  * Alerting service.
3349
3349
  * @module purecloud-platform-client-v2/api/AlertingApi
3350
- * @version 139.0.0
3350
+ * @version 140.0.0
3351
3351
  */
3352
3352
 
3353
3353
  /**
@@ -3661,7 +3661,7 @@ class AnalyticsApi {
3661
3661
  /**
3662
3662
  * Analytics service.
3663
3663
  * @module purecloud-platform-client-v2/api/AnalyticsApi
3664
- * @version 139.0.0
3664
+ * @version 140.0.0
3665
3665
  */
3666
3666
 
3667
3667
  /**
@@ -4843,7 +4843,7 @@ class ArchitectApi {
4843
4843
  /**
4844
4844
  * Architect service.
4845
4845
  * @module purecloud-platform-client-v2/api/ArchitectApi
4846
- * @version 139.0.0
4846
+ * @version 140.0.0
4847
4847
  */
4848
4848
 
4849
4849
  /**
@@ -7888,7 +7888,7 @@ class AuditApi {
7888
7888
  /**
7889
7889
  * Audit service.
7890
7890
  * @module purecloud-platform-client-v2/api/AuditApi
7891
- * @version 139.0.0
7891
+ * @version 140.0.0
7892
7892
  */
7893
7893
 
7894
7894
  /**
@@ -8059,7 +8059,7 @@ class AuthorizationApi {
8059
8059
  /**
8060
8060
  * Authorization service.
8061
8061
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8062
- * @version 139.0.0
8062
+ * @version 140.0.0
8063
8063
  */
8064
8064
 
8065
8065
  /**
@@ -8664,18 +8664,18 @@ class AuthorizationApi {
8664
8664
  /**
8665
8665
  * Returns a listing of roles and permissions for a user.
8666
8666
  *
8667
- * @param {String} userId User ID
8667
+ * @param {String} subjectId User ID
8668
8668
  */
8669
- getUserRoles(userId) {
8670
- // verify the required parameter 'userId' is set
8671
- if (userId === undefined || userId === null) {
8672
- throw 'Missing the required parameter "userId" when calling getUserRoles';
8669
+ getUserRoles(subjectId) {
8670
+ // verify the required parameter 'subjectId' is set
8671
+ if (subjectId === undefined || subjectId === null) {
8672
+ throw 'Missing the required parameter "subjectId" when calling getUserRoles';
8673
8673
  }
8674
8674
 
8675
8675
  return this.apiClient.callApi(
8676
- '/api/v2/users/{userId}/roles',
8676
+ '/api/v2/users/{subjectId}/roles',
8677
8677
  'GET',
8678
- { 'userId': userId },
8678
+ { 'subjectId': subjectId },
8679
8679
  { },
8680
8680
  { },
8681
8681
  { },
@@ -9209,13 +9209,13 @@ class AuthorizationApi {
9209
9209
  /**
9210
9210
  * Sets the user's roles
9211
9211
  *
9212
- * @param {String} userId User ID
9212
+ * @param {String} subjectId User ID
9213
9213
  * @param {Array.<String>} body List of roles
9214
9214
  */
9215
- putUserRoles(userId, body) {
9216
- // verify the required parameter 'userId' is set
9217
- if (userId === undefined || userId === null) {
9218
- throw 'Missing the required parameter "userId" when calling putUserRoles';
9215
+ putUserRoles(subjectId, body) {
9216
+ // verify the required parameter 'subjectId' is set
9217
+ if (subjectId === undefined || subjectId === null) {
9218
+ throw 'Missing the required parameter "subjectId" when calling putUserRoles';
9219
9219
  }
9220
9220
  // verify the required parameter 'body' is set
9221
9221
  if (body === undefined || body === null) {
@@ -9223,9 +9223,9 @@ class AuthorizationApi {
9223
9223
  }
9224
9224
 
9225
9225
  return this.apiClient.callApi(
9226
- '/api/v2/users/{userId}/roles',
9226
+ '/api/v2/users/{subjectId}/roles',
9227
9227
  'PUT',
9228
- { 'userId': userId },
9228
+ { 'subjectId': subjectId },
9229
9229
  { },
9230
9230
  { },
9231
9231
  { },
@@ -9242,7 +9242,7 @@ class BillingApi {
9242
9242
  /**
9243
9243
  * Billing service.
9244
9244
  * @module purecloud-platform-client-v2/api/BillingApi
9245
- * @version 139.0.0
9245
+ * @version 140.0.0
9246
9246
  */
9247
9247
 
9248
9248
  /**
@@ -9322,7 +9322,7 @@ class ChatApi {
9322
9322
  /**
9323
9323
  * Chat service.
9324
9324
  * @module purecloud-platform-client-v2/api/ChatApi
9325
- * @version 139.0.0
9325
+ * @version 140.0.0
9326
9326
  */
9327
9327
 
9328
9328
  /**
@@ -9413,7 +9413,7 @@ class CoachingApi {
9413
9413
  /**
9414
9414
  * Coaching service.
9415
9415
  * @module purecloud-platform-client-v2/api/CoachingApi
9416
- * @version 139.0.0
9416
+ * @version 140.0.0
9417
9417
  */
9418
9418
 
9419
9419
  /**
@@ -9990,7 +9990,7 @@ class ContentManagementApi {
9990
9990
  /**
9991
9991
  * ContentManagement service.
9992
9992
  * @module purecloud-platform-client-v2/api/ContentManagementApi
9993
- * @version 139.0.0
9993
+ * @version 140.0.0
9994
9994
  */
9995
9995
 
9996
9996
  /**
@@ -11130,7 +11130,7 @@ class ConversationsApi {
11130
11130
  /**
11131
11131
  * Conversations service.
11132
11132
  * @module purecloud-platform-client-v2/api/ConversationsApi
11133
- * @version 139.0.0
11133
+ * @version 140.0.0
11134
11134
  */
11135
11135
 
11136
11136
  /**
@@ -16064,7 +16064,7 @@ class DataExtensionsApi {
16064
16064
  /**
16065
16065
  * DataExtensions service.
16066
16066
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
16067
- * @version 139.0.0
16067
+ * @version 140.0.0
16068
16068
  */
16069
16069
 
16070
16070
  /**
@@ -16150,7 +16150,7 @@ class ExternalContactsApi {
16150
16150
  /**
16151
16151
  * ExternalContacts service.
16152
16152
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
16153
- * @version 139.0.0
16153
+ * @version 140.0.0
16154
16154
  */
16155
16155
 
16156
16156
  /**
@@ -17893,7 +17893,7 @@ class FaxApi {
17893
17893
  /**
17894
17894
  * Fax service.
17895
17895
  * @module purecloud-platform-client-v2/api/FaxApi
17896
- * @version 139.0.0
17896
+ * @version 140.0.0
17897
17897
  */
17898
17898
 
17899
17899
  /**
@@ -18064,7 +18064,7 @@ class FlowsApi {
18064
18064
  /**
18065
18065
  * Flows service.
18066
18066
  * @module purecloud-platform-client-v2/api/FlowsApi
18067
- * @version 139.0.0
18067
+ * @version 140.0.0
18068
18068
  */
18069
18069
 
18070
18070
  /**
@@ -18135,7 +18135,7 @@ class GamificationApi {
18135
18135
  /**
18136
18136
  * Gamification service.
18137
18137
  * @module purecloud-platform-client-v2/api/GamificationApi
18138
- * @version 139.0.0
18138
+ * @version 140.0.0
18139
18139
  */
18140
18140
 
18141
18141
  /**
@@ -18280,7 +18280,7 @@ class GamificationApi {
18280
18280
 
18281
18281
  /**
18282
18282
  * Gamified metric by id
18283
- *
18283
+ * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics/{metricId} instead.
18284
18284
  * @param {String} metricId metric Id
18285
18285
  * @param {Object} opts Optional parameters
18286
18286
  * @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
@@ -18355,7 +18355,7 @@ class GamificationApi {
18355
18355
 
18356
18356
  /**
18357
18357
  * All gamified metrics for a given profile
18358
- *
18358
+ * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
18359
18359
  * @param {Object} opts Optional parameters
18360
18360
  * @param {String} opts.performanceProfileId The profile id of the metrics you are trying to retrieve. The DEFAULT profile is used if nothing is given.
18361
18361
  * @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
@@ -19210,7 +19210,7 @@ class GamificationApi {
19210
19210
 
19211
19211
  /**
19212
19212
  * Creates a gamified metric with a given metric definition and metric objective
19213
- *
19213
+ * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
19214
19214
  * @param {Object} body Metric
19215
19215
  */
19216
19216
  postGamificationMetrics(body) {
@@ -19439,7 +19439,7 @@ class GamificationApi {
19439
19439
 
19440
19440
  /**
19441
19441
  * Updates a metric
19442
- *
19442
+ * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics/{metricId} instead.
19443
19443
  * @param {String} metricId metric Id
19444
19444
  * @param {Object} body Metric
19445
19445
  * @param {Object} opts Optional parameters
@@ -19566,7 +19566,7 @@ class GeneralDataProtectionRegulationApi {
19566
19566
  /**
19567
19567
  * GeneralDataProtectionRegulation service.
19568
19568
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
19569
- * @version 139.0.0
19569
+ * @version 140.0.0
19570
19570
  */
19571
19571
 
19572
19572
  /**
@@ -19696,7 +19696,7 @@ class GeolocationApi {
19696
19696
  /**
19697
19697
  * Geolocation service.
19698
19698
  * @module purecloud-platform-client-v2/api/GeolocationApi
19699
- * @version 139.0.0
19699
+ * @version 140.0.0
19700
19700
  */
19701
19701
 
19702
19702
  /**
@@ -19827,7 +19827,7 @@ class GreetingsApi {
19827
19827
  /**
19828
19828
  * Greetings service.
19829
19829
  * @module purecloud-platform-client-v2/api/GreetingsApi
19830
- * @version 139.0.0
19830
+ * @version 140.0.0
19831
19831
  */
19832
19832
 
19833
19833
  /**
@@ -20282,7 +20282,7 @@ class GroupsApi {
20282
20282
  /**
20283
20283
  * Groups service.
20284
20284
  * @module purecloud-platform-client-v2/api/GroupsApi
20285
- * @version 139.0.0
20285
+ * @version 140.0.0
20286
20286
  */
20287
20287
 
20288
20288
  /**
@@ -20687,7 +20687,7 @@ class IdentityProviderApi {
20687
20687
  /**
20688
20688
  * IdentityProvider service.
20689
20689
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
20690
- * @version 139.0.0
20690
+ * @version 140.0.0
20691
20691
  */
20692
20692
 
20693
20693
  /**
@@ -21443,7 +21443,7 @@ class IntegrationsApi {
21443
21443
  /**
21444
21444
  * Integrations service.
21445
21445
  * @module purecloud-platform-client-v2/api/IntegrationsApi
21446
- * @version 139.0.0
21446
+ * @version 140.0.0
21447
21447
  */
21448
21448
 
21449
21449
  /**
@@ -23120,7 +23120,7 @@ class JourneyApi {
23120
23120
  /**
23121
23121
  * Journey service.
23122
23122
  * @module purecloud-platform-client-v2/api/JourneyApi
23123
- * @version 139.0.0
23123
+ * @version 140.0.0
23124
23124
  */
23125
23125
 
23126
23126
  /**
@@ -23831,7 +23831,7 @@ class KnowledgeApi {
23831
23831
  /**
23832
23832
  * Knowledge service.
23833
23833
  * @module purecloud-platform-client-v2/api/KnowledgeApi
23834
- * @version 139.0.0
23834
+ * @version 140.0.0
23835
23835
  */
23836
23836
 
23837
23837
  /**
@@ -24731,7 +24731,7 @@ class LanguageUnderstandingApi {
24731
24731
  /**
24732
24732
  * LanguageUnderstanding service.
24733
24733
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
24734
- * @version 139.0.0
24734
+ * @version 140.0.0
24735
24735
  */
24736
24736
 
24737
24737
  /**
@@ -25635,7 +25635,7 @@ class LanguagesApi {
25635
25635
  /**
25636
25636
  * Languages service.
25637
25637
  * @module purecloud-platform-client-v2/api/LanguagesApi
25638
- * @version 139.0.0
25638
+ * @version 140.0.0
25639
25639
  */
25640
25640
 
25641
25641
  /**
@@ -25903,7 +25903,7 @@ class LearningApi {
25903
25903
  /**
25904
25904
  * Learning service.
25905
25905
  * @module purecloud-platform-client-v2/api/LearningApi
25906
- * @version 139.0.0
25906
+ * @version 140.0.0
25907
25907
  */
25908
25908
 
25909
25909
  /**
@@ -26101,6 +26101,36 @@ class LearningApi {
26101
26101
  );
26102
26102
  }
26103
26103
 
26104
+ /**
26105
+ * Get a specific Learning Module job status
26106
+ *
26107
+ * @param {String} moduleId The ID of the learning module
26108
+ * @param {String} jobId The ID of the learning module job
26109
+ */
26110
+ getLearningModuleJob(moduleId, jobId) {
26111
+ // verify the required parameter 'moduleId' is set
26112
+ if (moduleId === undefined || moduleId === null) {
26113
+ throw 'Missing the required parameter "moduleId" when calling getLearningModuleJob';
26114
+ }
26115
+ // verify the required parameter 'jobId' is set
26116
+ if (jobId === undefined || jobId === null) {
26117
+ throw 'Missing the required parameter "jobId" when calling getLearningModuleJob';
26118
+ }
26119
+
26120
+ return this.apiClient.callApi(
26121
+ '/api/v2/learning/modules/{moduleId}/jobs/{jobId}',
26122
+ 'GET',
26123
+ { 'moduleId': moduleId,'jobId': jobId },
26124
+ { },
26125
+ { },
26126
+ { },
26127
+ null,
26128
+ ['PureCloud OAuth'],
26129
+ ['application/json'],
26130
+ ['application/json']
26131
+ );
26132
+ }
26133
+
26104
26134
  /**
26105
26135
  * Get a learning module rule
26106
26136
  *
@@ -26246,6 +26276,56 @@ class LearningApi {
26246
26276
  );
26247
26277
  }
26248
26278
 
26279
+ /**
26280
+ * Reassign Learning Assignment
26281
+ * This will reassign the state of the assignment to Assigned and update the assignment to the latest version of the module
26282
+ * @param {String} assignmentId The Learning Assignment ID
26283
+ */
26284
+ postLearningAssignmentReassign(assignmentId) {
26285
+ // verify the required parameter 'assignmentId' is set
26286
+ if (assignmentId === undefined || assignmentId === null) {
26287
+ throw 'Missing the required parameter "assignmentId" when calling postLearningAssignmentReassign';
26288
+ }
26289
+
26290
+ return this.apiClient.callApi(
26291
+ '/api/v2/learning/assignments/{assignmentId}/reassign',
26292
+ 'POST',
26293
+ { 'assignmentId': assignmentId },
26294
+ { },
26295
+ { },
26296
+ { },
26297
+ null,
26298
+ ['PureCloud OAuth'],
26299
+ ['application/json'],
26300
+ ['application/json']
26301
+ );
26302
+ }
26303
+
26304
+ /**
26305
+ * Reset Learning Assignment
26306
+ * This will reset the state of the assignment to Assigned and remove the version of Learning module associated with the assignment
26307
+ * @param {String} assignmentId The Learning Assignment ID
26308
+ */
26309
+ postLearningAssignmentReset(assignmentId) {
26310
+ // verify the required parameter 'assignmentId' is set
26311
+ if (assignmentId === undefined || assignmentId === null) {
26312
+ throw 'Missing the required parameter "assignmentId" when calling postLearningAssignmentReset';
26313
+ }
26314
+
26315
+ return this.apiClient.callApi(
26316
+ '/api/v2/learning/assignments/{assignmentId}/reset',
26317
+ 'POST',
26318
+ { 'assignmentId': assignmentId },
26319
+ { },
26320
+ { },
26321
+ { },
26322
+ null,
26323
+ ['PureCloud OAuth'],
26324
+ ['application/json'],
26325
+ ['application/json']
26326
+ );
26327
+ }
26328
+
26249
26329
  /**
26250
26330
  * Create Learning Assignment
26251
26331
  *
@@ -26343,6 +26423,36 @@ class LearningApi {
26343
26423
  );
26344
26424
  }
26345
26425
 
26426
+ /**
26427
+ * Starts a specified operation on learning module
26428
+ * This will initiate operation specified in the request body for a learning module
26429
+ * @param {String} moduleId The ID of the learning module
26430
+ * @param {Object} body The learning module job request
26431
+ */
26432
+ postLearningModuleJobs(moduleId, body) {
26433
+ // verify the required parameter 'moduleId' is set
26434
+ if (moduleId === undefined || moduleId === null) {
26435
+ throw 'Missing the required parameter "moduleId" when calling postLearningModuleJobs';
26436
+ }
26437
+ // verify the required parameter 'body' is set
26438
+ if (body === undefined || body === null) {
26439
+ throw 'Missing the required parameter "body" when calling postLearningModuleJobs';
26440
+ }
26441
+
26442
+ return this.apiClient.callApi(
26443
+ '/api/v2/learning/modules/{moduleId}/jobs',
26444
+ 'POST',
26445
+ { 'moduleId': moduleId },
26446
+ { },
26447
+ { },
26448
+ { },
26449
+ body,
26450
+ ['PureCloud OAuth'],
26451
+ ['application/json'],
26452
+ ['application/json']
26453
+ );
26454
+ }
26455
+
26346
26456
  /**
26347
26457
  * Publish a Learning module
26348
26458
  *
@@ -26494,7 +26604,7 @@ class LicenseApi {
26494
26604
  /**
26495
26605
  * License service.
26496
26606
  * @module purecloud-platform-client-v2/api/LicenseApi
26497
- * @version 139.0.0
26607
+ * @version 140.0.0
26498
26608
  */
26499
26609
 
26500
26610
  /**
@@ -26732,7 +26842,7 @@ class LocationsApi {
26732
26842
  /**
26733
26843
  * Locations service.
26734
26844
  * @module purecloud-platform-client-v2/api/LocationsApi
26735
- * @version 139.0.0
26845
+ * @version 140.0.0
26736
26846
  */
26737
26847
 
26738
26848
  /**
@@ -26968,7 +27078,7 @@ class MessagingApi {
26968
27078
  /**
26969
27079
  * Messaging service.
26970
27080
  * @module purecloud-platform-client-v2/api/MessagingApi
26971
- * @version 139.0.0
27081
+ * @version 140.0.0
26972
27082
  */
26973
27083
 
26974
27084
  /**
@@ -27119,7 +27229,7 @@ class MobileDevicesApi {
27119
27229
  /**
27120
27230
  * MobileDevices service.
27121
27231
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
27122
- * @version 139.0.0
27232
+ * @version 140.0.0
27123
27233
  */
27124
27234
 
27125
27235
  /**
@@ -27270,7 +27380,7 @@ class NotificationsApi {
27270
27380
  /**
27271
27381
  * Notifications service.
27272
27382
  * @module purecloud-platform-client-v2/api/NotificationsApi
27273
- * @version 139.0.0
27383
+ * @version 140.0.0
27274
27384
  */
27275
27385
 
27276
27386
  /**
@@ -27495,7 +27605,7 @@ class OAuthApi {
27495
27605
  /**
27496
27606
  * OAuth service.
27497
27607
  * @module purecloud-platform-client-v2/api/OAuthApi
27498
- * @version 139.0.0
27608
+ * @version 140.0.0
27499
27609
  */
27500
27610
 
27501
27611
  /**
@@ -27861,7 +27971,7 @@ class ObjectsApi {
27861
27971
  /**
27862
27972
  * Objects service.
27863
27973
  * @module purecloud-platform-client-v2/api/ObjectsApi
27864
- * @version 139.0.0
27974
+ * @version 140.0.0
27865
27975
  */
27866
27976
 
27867
27977
  /**
@@ -28132,7 +28242,7 @@ class OrganizationApi {
28132
28242
  /**
28133
28243
  * Organization service.
28134
28244
  * @module purecloud-platform-client-v2/api/OrganizationApi
28135
- * @version 139.0.0
28245
+ * @version 140.0.0
28136
28246
  */
28137
28247
 
28138
28248
  /**
@@ -28535,7 +28645,7 @@ class OrganizationAuthorizationApi {
28535
28645
  /**
28536
28646
  * OrganizationAuthorization service.
28537
28647
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
28538
- * @version 139.0.0
28648
+ * @version 140.0.0
28539
28649
  */
28540
28650
 
28541
28651
  /**
@@ -29460,7 +29570,7 @@ class OutboundApi {
29460
29570
  /**
29461
29571
  * Outbound service.
29462
29572
  * @module purecloud-platform-client-v2/api/OutboundApi
29463
- * @version 139.0.0
29573
+ * @version 140.0.0
29464
29574
  */
29465
29575
 
29466
29576
  /**
@@ -32715,7 +32825,7 @@ class PresenceApi {
32715
32825
  /**
32716
32826
  * Presence service.
32717
32827
  * @module purecloud-platform-client-v2/api/PresenceApi
32718
- * @version 139.0.0
32828
+ * @version 140.0.0
32719
32829
  */
32720
32830
 
32721
32831
  /**
@@ -33037,7 +33147,7 @@ class QualityApi {
33037
33147
  /**
33038
33148
  * Quality service.
33039
33149
  * @module purecloud-platform-client-v2/api/QualityApi
33040
- * @version 139.0.0
33150
+ * @version 140.0.0
33041
33151
  */
33042
33152
 
33043
33153
  /**
@@ -33795,7 +33905,7 @@ class QualityApi {
33795
33905
  /**
33796
33906
  * Retrieve a list of the latest form versions by context ids
33797
33907
  *
33798
- * @param {Array.<String>} contextId A comma-delimited list of valid survey form context ids
33908
+ * @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.
33799
33909
  * @param {Object} opts Optional parameters
33800
33910
  * @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)
33801
33911
  */
@@ -34615,7 +34725,7 @@ class RecordingApi {
34615
34725
  /**
34616
34726
  * Recording service.
34617
34727
  * @module purecloud-platform-client-v2/api/RecordingApi
34618
- * @version 139.0.0
34728
+ * @version 140.0.0
34619
34729
  */
34620
34730
 
34621
34731
  /**
@@ -36268,7 +36378,7 @@ class ResponseManagementApi {
36268
36378
  /**
36269
36379
  * ResponseManagement service.
36270
36380
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
36271
- * @version 139.0.0
36381
+ * @version 140.0.0
36272
36382
  */
36273
36383
 
36274
36384
  /**
@@ -36752,7 +36862,7 @@ class RoutingApi {
36752
36862
  /**
36753
36863
  * Routing service.
36754
36864
  * @module purecloud-platform-client-v2/api/RoutingApi
36755
- * @version 139.0.0
36865
+ * @version 140.0.0
36756
36866
  */
36757
36867
 
36758
36868
  /**
@@ -37581,16 +37691,20 @@ class RoutingApi {
37581
37691
  }
37582
37692
 
37583
37693
  /**
37584
- * Get a list of Key Performance Indicators available for the predictors.
37694
+ * Get a list of Key Performance Indicators
37585
37695
  *
37696
+ * @param {Object} opts Optional parameters
37697
+ * @param {Object} opts.kpiGroup The Group of Key Performance Indicators to return
37586
37698
  */
37587
- getRoutingPredictorsKeyperformanceindicators() {
37699
+ getRoutingPredictorsKeyperformanceindicators(opts) {
37700
+ opts = opts || {};
37701
+
37588
37702
 
37589
37703
  return this.apiClient.callApi(
37590
37704
  '/api/v2/routing/predictors/keyperformanceindicators',
37591
37705
  'GET',
37592
37706
  { },
37593
- { },
37707
+ { 'kpiGroup': opts['kpiGroup'] },
37594
37708
  { },
37595
37709
  { },
37596
37710
  null,
@@ -39667,7 +39781,7 @@ class SCIMApi {
39667
39781
  /**
39668
39782
  * SCIM service.
39669
39783
  * @module purecloud-platform-client-v2/api/SCIMApi
39670
- * @version 139.0.0
39784
+ * @version 140.0.0
39671
39785
  */
39672
39786
 
39673
39787
  /**
@@ -40544,7 +40658,7 @@ class ScriptsApi {
40544
40658
  /**
40545
40659
  * Scripts service.
40546
40660
  * @module purecloud-platform-client-v2/api/ScriptsApi
40547
- * @version 139.0.0
40661
+ * @version 140.0.0
40548
40662
  */
40549
40663
 
40550
40664
  /**
@@ -40963,7 +41077,7 @@ class SearchApi {
40963
41077
  /**
40964
41078
  * Search service.
40965
41079
  * @module purecloud-platform-client-v2/api/SearchApi
40966
- * @version 139.0.0
41080
+ * @version 140.0.0
40967
41081
  */
40968
41082
 
40969
41083
  /**
@@ -41498,7 +41612,7 @@ class SpeechTextAnalyticsApi {
41498
41612
  /**
41499
41613
  * SpeechTextAnalytics service.
41500
41614
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
41501
- * @version 139.0.0
41615
+ * @version 140.0.0
41502
41616
  */
41503
41617
 
41504
41618
  /**
@@ -42351,7 +42465,7 @@ class StationsApi {
42351
42465
  /**
42352
42466
  * Stations service.
42353
42467
  * @module purecloud-platform-client-v2/api/StationsApi
42354
- * @version 139.0.0
42468
+ * @version 140.0.0
42355
42469
  */
42356
42470
 
42357
42471
  /**
@@ -42498,7 +42612,7 @@ class SuggestApi {
42498
42612
  /**
42499
42613
  * Suggest service.
42500
42614
  * @module purecloud-platform-client-v2/api/SuggestApi
42501
- * @version 139.0.0
42615
+ * @version 140.0.0
42502
42616
  */
42503
42617
 
42504
42618
  /**
@@ -42637,7 +42751,7 @@ class TelephonyApi {
42637
42751
  /**
42638
42752
  * Telephony service.
42639
42753
  * @module purecloud-platform-client-v2/api/TelephonyApi
42640
- * @version 139.0.0
42754
+ * @version 140.0.0
42641
42755
  */
42642
42756
 
42643
42757
  /**
@@ -42745,7 +42859,7 @@ class TelephonyProvidersEdgeApi {
42745
42859
  /**
42746
42860
  * TelephonyProvidersEdge service.
42747
42861
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
42748
- * @version 139.0.0
42862
+ * @version 140.0.0
42749
42863
  */
42750
42864
 
42751
42865
  /**
@@ -46378,7 +46492,7 @@ class TextbotsApi {
46378
46492
  /**
46379
46493
  * Textbots service.
46380
46494
  * @module purecloud-platform-client-v2/api/TextbotsApi
46381
- * @version 139.0.0
46495
+ * @version 140.0.0
46382
46496
  */
46383
46497
 
46384
46498
  /**
@@ -46506,7 +46620,7 @@ class TokensApi {
46506
46620
  /**
46507
46621
  * Tokens service.
46508
46622
  * @module purecloud-platform-client-v2/api/TokensApi
46509
- * @version 139.0.0
46623
+ * @version 140.0.0
46510
46624
  */
46511
46625
 
46512
46626
  /**
@@ -46612,7 +46726,7 @@ class UploadsApi {
46612
46726
  /**
46613
46727
  * Uploads service.
46614
46728
  * @module purecloud-platform-client-v2/api/UploadsApi
46615
- * @version 139.0.0
46729
+ * @version 140.0.0
46616
46730
  */
46617
46731
 
46618
46732
  /**
@@ -46763,7 +46877,7 @@ class UsageApi {
46763
46877
  /**
46764
46878
  * Usage service.
46765
46879
  * @module purecloud-platform-client-v2/api/UsageApi
46766
- * @version 139.0.0
46880
+ * @version 140.0.0
46767
46881
  */
46768
46882
 
46769
46883
  /**
@@ -46834,7 +46948,7 @@ class UserRecordingsApi {
46834
46948
  /**
46835
46949
  * UserRecordings service.
46836
46950
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
46837
- * @version 139.0.0
46951
+ * @version 140.0.0
46838
46952
  */
46839
46953
 
46840
46954
  /**
@@ -47018,7 +47132,7 @@ class UsersApi {
47018
47132
  /**
47019
47133
  * Users service.
47020
47134
  * @module purecloud-platform-client-v2/api/UsersApi
47021
- * @version 139.0.0
47135
+ * @version 140.0.0
47022
47136
  */
47023
47137
 
47024
47138
  /**
@@ -47838,18 +47952,18 @@ class UsersApi {
47838
47952
  /**
47839
47953
  * Returns a listing of roles and permissions for a user.
47840
47954
  *
47841
- * @param {String} userId User ID
47955
+ * @param {String} subjectId User ID
47842
47956
  */
47843
- getUserRoles(userId) {
47844
- // verify the required parameter 'userId' is set
47845
- if (userId === undefined || userId === null) {
47846
- throw 'Missing the required parameter "userId" when calling getUserRoles';
47957
+ getUserRoles(subjectId) {
47958
+ // verify the required parameter 'subjectId' is set
47959
+ if (subjectId === undefined || subjectId === null) {
47960
+ throw 'Missing the required parameter "subjectId" when calling getUserRoles';
47847
47961
  }
47848
47962
 
47849
47963
  return this.apiClient.callApi(
47850
- '/api/v2/users/{userId}/roles',
47964
+ '/api/v2/users/{subjectId}/roles',
47851
47965
  'GET',
47852
- { 'userId': userId },
47966
+ { 'subjectId': subjectId },
47853
47967
  { },
47854
47968
  { },
47855
47969
  { },
@@ -49102,13 +49216,13 @@ class UsersApi {
49102
49216
  /**
49103
49217
  * Sets the user's roles
49104
49218
  *
49105
- * @param {String} userId User ID
49219
+ * @param {String} subjectId User ID
49106
49220
  * @param {Array.<String>} body List of roles
49107
49221
  */
49108
- putUserRoles(userId, body) {
49109
- // verify the required parameter 'userId' is set
49110
- if (userId === undefined || userId === null) {
49111
- throw 'Missing the required parameter "userId" when calling putUserRoles';
49222
+ putUserRoles(subjectId, body) {
49223
+ // verify the required parameter 'subjectId' is set
49224
+ if (subjectId === undefined || subjectId === null) {
49225
+ throw 'Missing the required parameter "subjectId" when calling putUserRoles';
49112
49226
  }
49113
49227
  // verify the required parameter 'body' is set
49114
49228
  if (body === undefined || body === null) {
@@ -49116,9 +49230,9 @@ class UsersApi {
49116
49230
  }
49117
49231
 
49118
49232
  return this.apiClient.callApi(
49119
- '/api/v2/users/{userId}/roles',
49233
+ '/api/v2/users/{subjectId}/roles',
49120
49234
  'PUT',
49121
- { 'userId': userId },
49235
+ { 'subjectId': subjectId },
49122
49236
  { },
49123
49237
  { },
49124
49238
  { },
@@ -49320,7 +49434,7 @@ class UtilitiesApi {
49320
49434
  /**
49321
49435
  * Utilities service.
49322
49436
  * @module purecloud-platform-client-v2/api/UtilitiesApi
49323
- * @version 139.0.0
49437
+ * @version 140.0.0
49324
49438
  */
49325
49439
 
49326
49440
  /**
@@ -49431,7 +49545,7 @@ class VoicemailApi {
49431
49545
  /**
49432
49546
  * Voicemail service.
49433
49547
  * @module purecloud-platform-client-v2/api/VoicemailApi
49434
- * @version 139.0.0
49548
+ * @version 140.0.0
49435
49549
  */
49436
49550
 
49437
49551
  /**
@@ -50098,7 +50212,7 @@ class WebChatApi {
50098
50212
  /**
50099
50213
  * WebChat service.
50100
50214
  * @module purecloud-platform-client-v2/api/WebChatApi
50101
- * @version 139.0.0
50215
+ * @version 140.0.0
50102
50216
  */
50103
50217
 
50104
50218
  /**
@@ -50642,7 +50756,7 @@ class WebDeploymentsApi {
50642
50756
  /**
50643
50757
  * WebDeployments service.
50644
50758
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
50645
- * @version 139.0.0
50759
+ * @version 140.0.0
50646
50760
  */
50647
50761
 
50648
50762
  /**
@@ -50997,7 +51111,7 @@ class WebMessagingApi {
50997
51111
  /**
50998
51112
  * WebMessaging service.
50999
51113
  * @module purecloud-platform-client-v2/api/WebMessagingApi
51000
- * @version 139.0.0
51114
+ * @version 140.0.0
51001
51115
  */
51002
51116
 
51003
51117
  /**
@@ -51043,7 +51157,7 @@ class WidgetsApi {
51043
51157
  /**
51044
51158
  * Widgets service.
51045
51159
  * @module purecloud-platform-client-v2/api/WidgetsApi
51046
- * @version 139.0.0
51160
+ * @version 140.0.0
51047
51161
  */
51048
51162
 
51049
51163
  /**
@@ -51189,7 +51303,7 @@ class WorkforceManagementApi {
51189
51303
  /**
51190
51304
  * WorkforceManagement service.
51191
51305
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
51192
- * @version 139.0.0
51306
+ * @version 140.0.0
51193
51307
  */
51194
51308
 
51195
51309
  /**
@@ -55440,7 +55554,7 @@ class WorkforceManagementApi {
55440
55554
  * </pre>
55441
55555
  * </p>
55442
55556
  * @module purecloud-platform-client-v2/index
55443
- * @version 139.0.0
55557
+ * @version 140.0.0
55444
55558
  */
55445
55559
  class platformClient {
55446
55560
  constructor() {