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
@@ -399,7 +399,7 @@ class Configuration {
399
399
 
400
400
  /**
401
401
  * @module purecloud-platform-client-v2/ApiClient
402
- * @version 139.0.0
402
+ * @version 140.0.0
403
403
  */
404
404
  class ApiClient {
405
405
  /**
@@ -1477,7 +1477,7 @@ class AlertingApi {
1477
1477
  /**
1478
1478
  * Alerting service.
1479
1479
  * @module purecloud-platform-client-v2/api/AlertingApi
1480
- * @version 139.0.0
1480
+ * @version 140.0.0
1481
1481
  */
1482
1482
 
1483
1483
  /**
@@ -1791,7 +1791,7 @@ class AnalyticsApi {
1791
1791
  /**
1792
1792
  * Analytics service.
1793
1793
  * @module purecloud-platform-client-v2/api/AnalyticsApi
1794
- * @version 139.0.0
1794
+ * @version 140.0.0
1795
1795
  */
1796
1796
 
1797
1797
  /**
@@ -2973,7 +2973,7 @@ class ArchitectApi {
2973
2973
  /**
2974
2974
  * Architect service.
2975
2975
  * @module purecloud-platform-client-v2/api/ArchitectApi
2976
- * @version 139.0.0
2976
+ * @version 140.0.0
2977
2977
  */
2978
2978
 
2979
2979
  /**
@@ -6018,7 +6018,7 @@ class AuditApi {
6018
6018
  /**
6019
6019
  * Audit service.
6020
6020
  * @module purecloud-platform-client-v2/api/AuditApi
6021
- * @version 139.0.0
6021
+ * @version 140.0.0
6022
6022
  */
6023
6023
 
6024
6024
  /**
@@ -6189,7 +6189,7 @@ class AuthorizationApi {
6189
6189
  /**
6190
6190
  * Authorization service.
6191
6191
  * @module purecloud-platform-client-v2/api/AuthorizationApi
6192
- * @version 139.0.0
6192
+ * @version 140.0.0
6193
6193
  */
6194
6194
 
6195
6195
  /**
@@ -6794,18 +6794,18 @@ class AuthorizationApi {
6794
6794
  /**
6795
6795
  * Returns a listing of roles and permissions for a user.
6796
6796
  *
6797
- * @param {String} userId User ID
6797
+ * @param {String} subjectId User ID
6798
6798
  */
6799
- getUserRoles(userId) {
6800
- // verify the required parameter 'userId' is set
6801
- if (userId === undefined || userId === null) {
6802
- throw 'Missing the required parameter "userId" when calling getUserRoles';
6799
+ getUserRoles(subjectId) {
6800
+ // verify the required parameter 'subjectId' is set
6801
+ if (subjectId === undefined || subjectId === null) {
6802
+ throw 'Missing the required parameter "subjectId" when calling getUserRoles';
6803
6803
  }
6804
6804
 
6805
6805
  return this.apiClient.callApi(
6806
- '/api/v2/users/{userId}/roles',
6806
+ '/api/v2/users/{subjectId}/roles',
6807
6807
  'GET',
6808
- { 'userId': userId },
6808
+ { 'subjectId': subjectId },
6809
6809
  { },
6810
6810
  { },
6811
6811
  { },
@@ -7339,13 +7339,13 @@ class AuthorizationApi {
7339
7339
  /**
7340
7340
  * Sets the user's roles
7341
7341
  *
7342
- * @param {String} userId User ID
7342
+ * @param {String} subjectId User ID
7343
7343
  * @param {Array.<String>} body List of roles
7344
7344
  */
7345
- putUserRoles(userId, body) {
7346
- // verify the required parameter 'userId' is set
7347
- if (userId === undefined || userId === null) {
7348
- throw 'Missing the required parameter "userId" when calling putUserRoles';
7345
+ putUserRoles(subjectId, body) {
7346
+ // verify the required parameter 'subjectId' is set
7347
+ if (subjectId === undefined || subjectId === null) {
7348
+ throw 'Missing the required parameter "subjectId" when calling putUserRoles';
7349
7349
  }
7350
7350
  // verify the required parameter 'body' is set
7351
7351
  if (body === undefined || body === null) {
@@ -7353,9 +7353,9 @@ class AuthorizationApi {
7353
7353
  }
7354
7354
 
7355
7355
  return this.apiClient.callApi(
7356
- '/api/v2/users/{userId}/roles',
7356
+ '/api/v2/users/{subjectId}/roles',
7357
7357
  'PUT',
7358
- { 'userId': userId },
7358
+ { 'subjectId': subjectId },
7359
7359
  { },
7360
7360
  { },
7361
7361
  { },
@@ -7372,7 +7372,7 @@ class BillingApi {
7372
7372
  /**
7373
7373
  * Billing service.
7374
7374
  * @module purecloud-platform-client-v2/api/BillingApi
7375
- * @version 139.0.0
7375
+ * @version 140.0.0
7376
7376
  */
7377
7377
 
7378
7378
  /**
@@ -7452,7 +7452,7 @@ class ChatApi {
7452
7452
  /**
7453
7453
  * Chat service.
7454
7454
  * @module purecloud-platform-client-v2/api/ChatApi
7455
- * @version 139.0.0
7455
+ * @version 140.0.0
7456
7456
  */
7457
7457
 
7458
7458
  /**
@@ -7543,7 +7543,7 @@ class CoachingApi {
7543
7543
  /**
7544
7544
  * Coaching service.
7545
7545
  * @module purecloud-platform-client-v2/api/CoachingApi
7546
- * @version 139.0.0
7546
+ * @version 140.0.0
7547
7547
  */
7548
7548
 
7549
7549
  /**
@@ -8120,7 +8120,7 @@ class ContentManagementApi {
8120
8120
  /**
8121
8121
  * ContentManagement service.
8122
8122
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8123
- * @version 139.0.0
8123
+ * @version 140.0.0
8124
8124
  */
8125
8125
 
8126
8126
  /**
@@ -9260,7 +9260,7 @@ class ConversationsApi {
9260
9260
  /**
9261
9261
  * Conversations service.
9262
9262
  * @module purecloud-platform-client-v2/api/ConversationsApi
9263
- * @version 139.0.0
9263
+ * @version 140.0.0
9264
9264
  */
9265
9265
 
9266
9266
  /**
@@ -14194,7 +14194,7 @@ class DataExtensionsApi {
14194
14194
  /**
14195
14195
  * DataExtensions service.
14196
14196
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
14197
- * @version 139.0.0
14197
+ * @version 140.0.0
14198
14198
  */
14199
14199
 
14200
14200
  /**
@@ -14280,7 +14280,7 @@ class ExternalContactsApi {
14280
14280
  /**
14281
14281
  * ExternalContacts service.
14282
14282
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
14283
- * @version 139.0.0
14283
+ * @version 140.0.0
14284
14284
  */
14285
14285
 
14286
14286
  /**
@@ -16023,7 +16023,7 @@ class FaxApi {
16023
16023
  /**
16024
16024
  * Fax service.
16025
16025
  * @module purecloud-platform-client-v2/api/FaxApi
16026
- * @version 139.0.0
16026
+ * @version 140.0.0
16027
16027
  */
16028
16028
 
16029
16029
  /**
@@ -16194,7 +16194,7 @@ class FlowsApi {
16194
16194
  /**
16195
16195
  * Flows service.
16196
16196
  * @module purecloud-platform-client-v2/api/FlowsApi
16197
- * @version 139.0.0
16197
+ * @version 140.0.0
16198
16198
  */
16199
16199
 
16200
16200
  /**
@@ -16265,7 +16265,7 @@ class GamificationApi {
16265
16265
  /**
16266
16266
  * Gamification service.
16267
16267
  * @module purecloud-platform-client-v2/api/GamificationApi
16268
- * @version 139.0.0
16268
+ * @version 140.0.0
16269
16269
  */
16270
16270
 
16271
16271
  /**
@@ -16410,7 +16410,7 @@ class GamificationApi {
16410
16410
 
16411
16411
  /**
16412
16412
  * Gamified metric by id
16413
- *
16413
+ * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics/{metricId} instead.
16414
16414
  * @param {String} metricId metric Id
16415
16415
  * @param {Object} opts Optional parameters
16416
16416
  * @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
@@ -16485,7 +16485,7 @@ class GamificationApi {
16485
16485
 
16486
16486
  /**
16487
16487
  * All gamified metrics for a given profile
16488
- *
16488
+ * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
16489
16489
  * @param {Object} opts Optional parameters
16490
16490
  * @param {String} opts.performanceProfileId The profile id of the metrics you are trying to retrieve. The DEFAULT profile is used if nothing is given.
16491
16491
  * @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
@@ -17340,7 +17340,7 @@ class GamificationApi {
17340
17340
 
17341
17341
  /**
17342
17342
  * Creates a gamified metric with a given metric definition and metric objective
17343
- *
17343
+ * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
17344
17344
  * @param {Object} body Metric
17345
17345
  */
17346
17346
  postGamificationMetrics(body) {
@@ -17569,7 +17569,7 @@ class GamificationApi {
17569
17569
 
17570
17570
  /**
17571
17571
  * Updates a metric
17572
- *
17572
+ * This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics/{metricId} instead.
17573
17573
  * @param {String} metricId metric Id
17574
17574
  * @param {Object} body Metric
17575
17575
  * @param {Object} opts Optional parameters
@@ -17696,7 +17696,7 @@ class GeneralDataProtectionRegulationApi {
17696
17696
  /**
17697
17697
  * GeneralDataProtectionRegulation service.
17698
17698
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
17699
- * @version 139.0.0
17699
+ * @version 140.0.0
17700
17700
  */
17701
17701
 
17702
17702
  /**
@@ -17826,7 +17826,7 @@ class GeolocationApi {
17826
17826
  /**
17827
17827
  * Geolocation service.
17828
17828
  * @module purecloud-platform-client-v2/api/GeolocationApi
17829
- * @version 139.0.0
17829
+ * @version 140.0.0
17830
17830
  */
17831
17831
 
17832
17832
  /**
@@ -17957,7 +17957,7 @@ class GreetingsApi {
17957
17957
  /**
17958
17958
  * Greetings service.
17959
17959
  * @module purecloud-platform-client-v2/api/GreetingsApi
17960
- * @version 139.0.0
17960
+ * @version 140.0.0
17961
17961
  */
17962
17962
 
17963
17963
  /**
@@ -18412,7 +18412,7 @@ class GroupsApi {
18412
18412
  /**
18413
18413
  * Groups service.
18414
18414
  * @module purecloud-platform-client-v2/api/GroupsApi
18415
- * @version 139.0.0
18415
+ * @version 140.0.0
18416
18416
  */
18417
18417
 
18418
18418
  /**
@@ -18817,7 +18817,7 @@ class IdentityProviderApi {
18817
18817
  /**
18818
18818
  * IdentityProvider service.
18819
18819
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
18820
- * @version 139.0.0
18820
+ * @version 140.0.0
18821
18821
  */
18822
18822
 
18823
18823
  /**
@@ -19573,7 +19573,7 @@ class IntegrationsApi {
19573
19573
  /**
19574
19574
  * Integrations service.
19575
19575
  * @module purecloud-platform-client-v2/api/IntegrationsApi
19576
- * @version 139.0.0
19576
+ * @version 140.0.0
19577
19577
  */
19578
19578
 
19579
19579
  /**
@@ -21250,7 +21250,7 @@ class JourneyApi {
21250
21250
  /**
21251
21251
  * Journey service.
21252
21252
  * @module purecloud-platform-client-v2/api/JourneyApi
21253
- * @version 139.0.0
21253
+ * @version 140.0.0
21254
21254
  */
21255
21255
 
21256
21256
  /**
@@ -21961,7 +21961,7 @@ class KnowledgeApi {
21961
21961
  /**
21962
21962
  * Knowledge service.
21963
21963
  * @module purecloud-platform-client-v2/api/KnowledgeApi
21964
- * @version 139.0.0
21964
+ * @version 140.0.0
21965
21965
  */
21966
21966
 
21967
21967
  /**
@@ -22861,7 +22861,7 @@ class LanguageUnderstandingApi {
22861
22861
  /**
22862
22862
  * LanguageUnderstanding service.
22863
22863
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
22864
- * @version 139.0.0
22864
+ * @version 140.0.0
22865
22865
  */
22866
22866
 
22867
22867
  /**
@@ -23765,7 +23765,7 @@ class LanguagesApi {
23765
23765
  /**
23766
23766
  * Languages service.
23767
23767
  * @module purecloud-platform-client-v2/api/LanguagesApi
23768
- * @version 139.0.0
23768
+ * @version 140.0.0
23769
23769
  */
23770
23770
 
23771
23771
  /**
@@ -24033,7 +24033,7 @@ class LearningApi {
24033
24033
  /**
24034
24034
  * Learning service.
24035
24035
  * @module purecloud-platform-client-v2/api/LearningApi
24036
- * @version 139.0.0
24036
+ * @version 140.0.0
24037
24037
  */
24038
24038
 
24039
24039
  /**
@@ -24231,6 +24231,36 @@ class LearningApi {
24231
24231
  );
24232
24232
  }
24233
24233
 
24234
+ /**
24235
+ * Get a specific Learning Module job status
24236
+ *
24237
+ * @param {String} moduleId The ID of the learning module
24238
+ * @param {String} jobId The ID of the learning module job
24239
+ */
24240
+ getLearningModuleJob(moduleId, jobId) {
24241
+ // verify the required parameter 'moduleId' is set
24242
+ if (moduleId === undefined || moduleId === null) {
24243
+ throw 'Missing the required parameter "moduleId" when calling getLearningModuleJob';
24244
+ }
24245
+ // verify the required parameter 'jobId' is set
24246
+ if (jobId === undefined || jobId === null) {
24247
+ throw 'Missing the required parameter "jobId" when calling getLearningModuleJob';
24248
+ }
24249
+
24250
+ return this.apiClient.callApi(
24251
+ '/api/v2/learning/modules/{moduleId}/jobs/{jobId}',
24252
+ 'GET',
24253
+ { 'moduleId': moduleId,'jobId': jobId },
24254
+ { },
24255
+ { },
24256
+ { },
24257
+ null,
24258
+ ['PureCloud OAuth'],
24259
+ ['application/json'],
24260
+ ['application/json']
24261
+ );
24262
+ }
24263
+
24234
24264
  /**
24235
24265
  * Get a learning module rule
24236
24266
  *
@@ -24376,6 +24406,56 @@ class LearningApi {
24376
24406
  );
24377
24407
  }
24378
24408
 
24409
+ /**
24410
+ * Reassign Learning Assignment
24411
+ * This will reassign the state of the assignment to Assigned and update the assignment to the latest version of the module
24412
+ * @param {String} assignmentId The Learning Assignment ID
24413
+ */
24414
+ postLearningAssignmentReassign(assignmentId) {
24415
+ // verify the required parameter 'assignmentId' is set
24416
+ if (assignmentId === undefined || assignmentId === null) {
24417
+ throw 'Missing the required parameter "assignmentId" when calling postLearningAssignmentReassign';
24418
+ }
24419
+
24420
+ return this.apiClient.callApi(
24421
+ '/api/v2/learning/assignments/{assignmentId}/reassign',
24422
+ 'POST',
24423
+ { 'assignmentId': assignmentId },
24424
+ { },
24425
+ { },
24426
+ { },
24427
+ null,
24428
+ ['PureCloud OAuth'],
24429
+ ['application/json'],
24430
+ ['application/json']
24431
+ );
24432
+ }
24433
+
24434
+ /**
24435
+ * Reset Learning Assignment
24436
+ * This will reset the state of the assignment to Assigned and remove the version of Learning module associated with the assignment
24437
+ * @param {String} assignmentId The Learning Assignment ID
24438
+ */
24439
+ postLearningAssignmentReset(assignmentId) {
24440
+ // verify the required parameter 'assignmentId' is set
24441
+ if (assignmentId === undefined || assignmentId === null) {
24442
+ throw 'Missing the required parameter "assignmentId" when calling postLearningAssignmentReset';
24443
+ }
24444
+
24445
+ return this.apiClient.callApi(
24446
+ '/api/v2/learning/assignments/{assignmentId}/reset',
24447
+ 'POST',
24448
+ { 'assignmentId': assignmentId },
24449
+ { },
24450
+ { },
24451
+ { },
24452
+ null,
24453
+ ['PureCloud OAuth'],
24454
+ ['application/json'],
24455
+ ['application/json']
24456
+ );
24457
+ }
24458
+
24379
24459
  /**
24380
24460
  * Create Learning Assignment
24381
24461
  *
@@ -24473,6 +24553,36 @@ class LearningApi {
24473
24553
  );
24474
24554
  }
24475
24555
 
24556
+ /**
24557
+ * Starts a specified operation on learning module
24558
+ * This will initiate operation specified in the request body for a learning module
24559
+ * @param {String} moduleId The ID of the learning module
24560
+ * @param {Object} body The learning module job request
24561
+ */
24562
+ postLearningModuleJobs(moduleId, body) {
24563
+ // verify the required parameter 'moduleId' is set
24564
+ if (moduleId === undefined || moduleId === null) {
24565
+ throw 'Missing the required parameter "moduleId" when calling postLearningModuleJobs';
24566
+ }
24567
+ // verify the required parameter 'body' is set
24568
+ if (body === undefined || body === null) {
24569
+ throw 'Missing the required parameter "body" when calling postLearningModuleJobs';
24570
+ }
24571
+
24572
+ return this.apiClient.callApi(
24573
+ '/api/v2/learning/modules/{moduleId}/jobs',
24574
+ 'POST',
24575
+ { 'moduleId': moduleId },
24576
+ { },
24577
+ { },
24578
+ { },
24579
+ body,
24580
+ ['PureCloud OAuth'],
24581
+ ['application/json'],
24582
+ ['application/json']
24583
+ );
24584
+ }
24585
+
24476
24586
  /**
24477
24587
  * Publish a Learning module
24478
24588
  *
@@ -24624,7 +24734,7 @@ class LicenseApi {
24624
24734
  /**
24625
24735
  * License service.
24626
24736
  * @module purecloud-platform-client-v2/api/LicenseApi
24627
- * @version 139.0.0
24737
+ * @version 140.0.0
24628
24738
  */
24629
24739
 
24630
24740
  /**
@@ -24862,7 +24972,7 @@ class LocationsApi {
24862
24972
  /**
24863
24973
  * Locations service.
24864
24974
  * @module purecloud-platform-client-v2/api/LocationsApi
24865
- * @version 139.0.0
24975
+ * @version 140.0.0
24866
24976
  */
24867
24977
 
24868
24978
  /**
@@ -25098,7 +25208,7 @@ class MessagingApi {
25098
25208
  /**
25099
25209
  * Messaging service.
25100
25210
  * @module purecloud-platform-client-v2/api/MessagingApi
25101
- * @version 139.0.0
25211
+ * @version 140.0.0
25102
25212
  */
25103
25213
 
25104
25214
  /**
@@ -25249,7 +25359,7 @@ class MobileDevicesApi {
25249
25359
  /**
25250
25360
  * MobileDevices service.
25251
25361
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
25252
- * @version 139.0.0
25362
+ * @version 140.0.0
25253
25363
  */
25254
25364
 
25255
25365
  /**
@@ -25400,7 +25510,7 @@ class NotificationsApi {
25400
25510
  /**
25401
25511
  * Notifications service.
25402
25512
  * @module purecloud-platform-client-v2/api/NotificationsApi
25403
- * @version 139.0.0
25513
+ * @version 140.0.0
25404
25514
  */
25405
25515
 
25406
25516
  /**
@@ -25625,7 +25735,7 @@ class OAuthApi {
25625
25735
  /**
25626
25736
  * OAuth service.
25627
25737
  * @module purecloud-platform-client-v2/api/OAuthApi
25628
- * @version 139.0.0
25738
+ * @version 140.0.0
25629
25739
  */
25630
25740
 
25631
25741
  /**
@@ -25991,7 +26101,7 @@ class ObjectsApi {
25991
26101
  /**
25992
26102
  * Objects service.
25993
26103
  * @module purecloud-platform-client-v2/api/ObjectsApi
25994
- * @version 139.0.0
26104
+ * @version 140.0.0
25995
26105
  */
25996
26106
 
25997
26107
  /**
@@ -26262,7 +26372,7 @@ class OrganizationApi {
26262
26372
  /**
26263
26373
  * Organization service.
26264
26374
  * @module purecloud-platform-client-v2/api/OrganizationApi
26265
- * @version 139.0.0
26375
+ * @version 140.0.0
26266
26376
  */
26267
26377
 
26268
26378
  /**
@@ -26665,7 +26775,7 @@ class OrganizationAuthorizationApi {
26665
26775
  /**
26666
26776
  * OrganizationAuthorization service.
26667
26777
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
26668
- * @version 139.0.0
26778
+ * @version 140.0.0
26669
26779
  */
26670
26780
 
26671
26781
  /**
@@ -27590,7 +27700,7 @@ class OutboundApi {
27590
27700
  /**
27591
27701
  * Outbound service.
27592
27702
  * @module purecloud-platform-client-v2/api/OutboundApi
27593
- * @version 139.0.0
27703
+ * @version 140.0.0
27594
27704
  */
27595
27705
 
27596
27706
  /**
@@ -30845,7 +30955,7 @@ class PresenceApi {
30845
30955
  /**
30846
30956
  * Presence service.
30847
30957
  * @module purecloud-platform-client-v2/api/PresenceApi
30848
- * @version 139.0.0
30958
+ * @version 140.0.0
30849
30959
  */
30850
30960
 
30851
30961
  /**
@@ -31167,7 +31277,7 @@ class QualityApi {
31167
31277
  /**
31168
31278
  * Quality service.
31169
31279
  * @module purecloud-platform-client-v2/api/QualityApi
31170
- * @version 139.0.0
31280
+ * @version 140.0.0
31171
31281
  */
31172
31282
 
31173
31283
  /**
@@ -31925,7 +32035,7 @@ class QualityApi {
31925
32035
  /**
31926
32036
  * Retrieve a list of the latest form versions by context ids
31927
32037
  *
31928
- * @param {Array.<String>} contextId A comma-delimited list of valid survey form context ids
32038
+ * @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.
31929
32039
  * @param {Object} opts Optional parameters
31930
32040
  * @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)
31931
32041
  */
@@ -32745,7 +32855,7 @@ class RecordingApi {
32745
32855
  /**
32746
32856
  * Recording service.
32747
32857
  * @module purecloud-platform-client-v2/api/RecordingApi
32748
- * @version 139.0.0
32858
+ * @version 140.0.0
32749
32859
  */
32750
32860
 
32751
32861
  /**
@@ -34398,7 +34508,7 @@ class ResponseManagementApi {
34398
34508
  /**
34399
34509
  * ResponseManagement service.
34400
34510
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
34401
- * @version 139.0.0
34511
+ * @version 140.0.0
34402
34512
  */
34403
34513
 
34404
34514
  /**
@@ -34882,7 +34992,7 @@ class RoutingApi {
34882
34992
  /**
34883
34993
  * Routing service.
34884
34994
  * @module purecloud-platform-client-v2/api/RoutingApi
34885
- * @version 139.0.0
34995
+ * @version 140.0.0
34886
34996
  */
34887
34997
 
34888
34998
  /**
@@ -35711,16 +35821,20 @@ class RoutingApi {
35711
35821
  }
35712
35822
 
35713
35823
  /**
35714
- * Get a list of Key Performance Indicators available for the predictors.
35824
+ * Get a list of Key Performance Indicators
35715
35825
  *
35826
+ * @param {Object} opts Optional parameters
35827
+ * @param {Object} opts.kpiGroup The Group of Key Performance Indicators to return
35716
35828
  */
35717
- getRoutingPredictorsKeyperformanceindicators() {
35829
+ getRoutingPredictorsKeyperformanceindicators(opts) {
35830
+ opts = opts || {};
35831
+
35718
35832
 
35719
35833
  return this.apiClient.callApi(
35720
35834
  '/api/v2/routing/predictors/keyperformanceindicators',
35721
35835
  'GET',
35722
35836
  { },
35723
- { },
35837
+ { 'kpiGroup': opts['kpiGroup'] },
35724
35838
  { },
35725
35839
  { },
35726
35840
  null,
@@ -37797,7 +37911,7 @@ class SCIMApi {
37797
37911
  /**
37798
37912
  * SCIM service.
37799
37913
  * @module purecloud-platform-client-v2/api/SCIMApi
37800
- * @version 139.0.0
37914
+ * @version 140.0.0
37801
37915
  */
37802
37916
 
37803
37917
  /**
@@ -38674,7 +38788,7 @@ class ScriptsApi {
38674
38788
  /**
38675
38789
  * Scripts service.
38676
38790
  * @module purecloud-platform-client-v2/api/ScriptsApi
38677
- * @version 139.0.0
38791
+ * @version 140.0.0
38678
38792
  */
38679
38793
 
38680
38794
  /**
@@ -39093,7 +39207,7 @@ class SearchApi {
39093
39207
  /**
39094
39208
  * Search service.
39095
39209
  * @module purecloud-platform-client-v2/api/SearchApi
39096
- * @version 139.0.0
39210
+ * @version 140.0.0
39097
39211
  */
39098
39212
 
39099
39213
  /**
@@ -39628,7 +39742,7 @@ class SpeechTextAnalyticsApi {
39628
39742
  /**
39629
39743
  * SpeechTextAnalytics service.
39630
39744
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
39631
- * @version 139.0.0
39745
+ * @version 140.0.0
39632
39746
  */
39633
39747
 
39634
39748
  /**
@@ -40481,7 +40595,7 @@ class StationsApi {
40481
40595
  /**
40482
40596
  * Stations service.
40483
40597
  * @module purecloud-platform-client-v2/api/StationsApi
40484
- * @version 139.0.0
40598
+ * @version 140.0.0
40485
40599
  */
40486
40600
 
40487
40601
  /**
@@ -40628,7 +40742,7 @@ class SuggestApi {
40628
40742
  /**
40629
40743
  * Suggest service.
40630
40744
  * @module purecloud-platform-client-v2/api/SuggestApi
40631
- * @version 139.0.0
40745
+ * @version 140.0.0
40632
40746
  */
40633
40747
 
40634
40748
  /**
@@ -40767,7 +40881,7 @@ class TelephonyApi {
40767
40881
  /**
40768
40882
  * Telephony service.
40769
40883
  * @module purecloud-platform-client-v2/api/TelephonyApi
40770
- * @version 139.0.0
40884
+ * @version 140.0.0
40771
40885
  */
40772
40886
 
40773
40887
  /**
@@ -40875,7 +40989,7 @@ class TelephonyProvidersEdgeApi {
40875
40989
  /**
40876
40990
  * TelephonyProvidersEdge service.
40877
40991
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
40878
- * @version 139.0.0
40992
+ * @version 140.0.0
40879
40993
  */
40880
40994
 
40881
40995
  /**
@@ -44508,7 +44622,7 @@ class TextbotsApi {
44508
44622
  /**
44509
44623
  * Textbots service.
44510
44624
  * @module purecloud-platform-client-v2/api/TextbotsApi
44511
- * @version 139.0.0
44625
+ * @version 140.0.0
44512
44626
  */
44513
44627
 
44514
44628
  /**
@@ -44636,7 +44750,7 @@ class TokensApi {
44636
44750
  /**
44637
44751
  * Tokens service.
44638
44752
  * @module purecloud-platform-client-v2/api/TokensApi
44639
- * @version 139.0.0
44753
+ * @version 140.0.0
44640
44754
  */
44641
44755
 
44642
44756
  /**
@@ -44742,7 +44856,7 @@ class UploadsApi {
44742
44856
  /**
44743
44857
  * Uploads service.
44744
44858
  * @module purecloud-platform-client-v2/api/UploadsApi
44745
- * @version 139.0.0
44859
+ * @version 140.0.0
44746
44860
  */
44747
44861
 
44748
44862
  /**
@@ -44893,7 +45007,7 @@ class UsageApi {
44893
45007
  /**
44894
45008
  * Usage service.
44895
45009
  * @module purecloud-platform-client-v2/api/UsageApi
44896
- * @version 139.0.0
45010
+ * @version 140.0.0
44897
45011
  */
44898
45012
 
44899
45013
  /**
@@ -44964,7 +45078,7 @@ class UserRecordingsApi {
44964
45078
  /**
44965
45079
  * UserRecordings service.
44966
45080
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
44967
- * @version 139.0.0
45081
+ * @version 140.0.0
44968
45082
  */
44969
45083
 
44970
45084
  /**
@@ -45148,7 +45262,7 @@ class UsersApi {
45148
45262
  /**
45149
45263
  * Users service.
45150
45264
  * @module purecloud-platform-client-v2/api/UsersApi
45151
- * @version 139.0.0
45265
+ * @version 140.0.0
45152
45266
  */
45153
45267
 
45154
45268
  /**
@@ -45968,18 +46082,18 @@ class UsersApi {
45968
46082
  /**
45969
46083
  * Returns a listing of roles and permissions for a user.
45970
46084
  *
45971
- * @param {String} userId User ID
46085
+ * @param {String} subjectId User ID
45972
46086
  */
45973
- getUserRoles(userId) {
45974
- // verify the required parameter 'userId' is set
45975
- if (userId === undefined || userId === null) {
45976
- throw 'Missing the required parameter "userId" when calling getUserRoles';
46087
+ getUserRoles(subjectId) {
46088
+ // verify the required parameter 'subjectId' is set
46089
+ if (subjectId === undefined || subjectId === null) {
46090
+ throw 'Missing the required parameter "subjectId" when calling getUserRoles';
45977
46091
  }
45978
46092
 
45979
46093
  return this.apiClient.callApi(
45980
- '/api/v2/users/{userId}/roles',
46094
+ '/api/v2/users/{subjectId}/roles',
45981
46095
  'GET',
45982
- { 'userId': userId },
46096
+ { 'subjectId': subjectId },
45983
46097
  { },
45984
46098
  { },
45985
46099
  { },
@@ -47232,13 +47346,13 @@ class UsersApi {
47232
47346
  /**
47233
47347
  * Sets the user's roles
47234
47348
  *
47235
- * @param {String} userId User ID
47349
+ * @param {String} subjectId User ID
47236
47350
  * @param {Array.<String>} body List of roles
47237
47351
  */
47238
- putUserRoles(userId, body) {
47239
- // verify the required parameter 'userId' is set
47240
- if (userId === undefined || userId === null) {
47241
- throw 'Missing the required parameter "userId" when calling putUserRoles';
47352
+ putUserRoles(subjectId, body) {
47353
+ // verify the required parameter 'subjectId' is set
47354
+ if (subjectId === undefined || subjectId === null) {
47355
+ throw 'Missing the required parameter "subjectId" when calling putUserRoles';
47242
47356
  }
47243
47357
  // verify the required parameter 'body' is set
47244
47358
  if (body === undefined || body === null) {
@@ -47246,9 +47360,9 @@ class UsersApi {
47246
47360
  }
47247
47361
 
47248
47362
  return this.apiClient.callApi(
47249
- '/api/v2/users/{userId}/roles',
47363
+ '/api/v2/users/{subjectId}/roles',
47250
47364
  'PUT',
47251
- { 'userId': userId },
47365
+ { 'subjectId': subjectId },
47252
47366
  { },
47253
47367
  { },
47254
47368
  { },
@@ -47450,7 +47564,7 @@ class UtilitiesApi {
47450
47564
  /**
47451
47565
  * Utilities service.
47452
47566
  * @module purecloud-platform-client-v2/api/UtilitiesApi
47453
- * @version 139.0.0
47567
+ * @version 140.0.0
47454
47568
  */
47455
47569
 
47456
47570
  /**
@@ -47561,7 +47675,7 @@ class VoicemailApi {
47561
47675
  /**
47562
47676
  * Voicemail service.
47563
47677
  * @module purecloud-platform-client-v2/api/VoicemailApi
47564
- * @version 139.0.0
47678
+ * @version 140.0.0
47565
47679
  */
47566
47680
 
47567
47681
  /**
@@ -48228,7 +48342,7 @@ class WebChatApi {
48228
48342
  /**
48229
48343
  * WebChat service.
48230
48344
  * @module purecloud-platform-client-v2/api/WebChatApi
48231
- * @version 139.0.0
48345
+ * @version 140.0.0
48232
48346
  */
48233
48347
 
48234
48348
  /**
@@ -48772,7 +48886,7 @@ class WebDeploymentsApi {
48772
48886
  /**
48773
48887
  * WebDeployments service.
48774
48888
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
48775
- * @version 139.0.0
48889
+ * @version 140.0.0
48776
48890
  */
48777
48891
 
48778
48892
  /**
@@ -49127,7 +49241,7 @@ class WebMessagingApi {
49127
49241
  /**
49128
49242
  * WebMessaging service.
49129
49243
  * @module purecloud-platform-client-v2/api/WebMessagingApi
49130
- * @version 139.0.0
49244
+ * @version 140.0.0
49131
49245
  */
49132
49246
 
49133
49247
  /**
@@ -49173,7 +49287,7 @@ class WidgetsApi {
49173
49287
  /**
49174
49288
  * Widgets service.
49175
49289
  * @module purecloud-platform-client-v2/api/WidgetsApi
49176
- * @version 139.0.0
49290
+ * @version 140.0.0
49177
49291
  */
49178
49292
 
49179
49293
  /**
@@ -49319,7 +49433,7 @@ class WorkforceManagementApi {
49319
49433
  /**
49320
49434
  * WorkforceManagement service.
49321
49435
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
49322
- * @version 139.0.0
49436
+ * @version 140.0.0
49323
49437
  */
49324
49438
 
49325
49439
  /**
@@ -53570,7 +53684,7 @@ class WorkforceManagementApi {
53570
53684
  * </pre>
53571
53685
  * </p>
53572
53686
  * @module purecloud-platform-client-v2/index
53573
- * @version 139.0.0
53687
+ * @version 140.0.0
53574
53688
  */
53575
53689
  class platformClient {
53576
53690
  constructor() {