purecloud-platform-client-v2 155.0.1 → 157.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 (77) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +298 -124
  3. package/dist/web-amd/purecloud-platform-client-v2.js +298 -124
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +298 -124
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +308 -130
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +372 -201
  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 +1 -1
  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/DownloadsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +6 -56
  38. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +3 -2
  51. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/RecordingApi.js +51 -1
  53. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/RoutingApi.js +51 -1
  55. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +75 -1
  74. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +50 -1
  77. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class RoutingApi {
5
5
  /**
6
6
  * Routing service.
7
7
  * @module purecloud-platform-client-v2/api/RoutingApi
8
- * @version 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -125,6 +125,31 @@ class RoutingApi {
125
125
  );
126
126
  }
127
127
 
128
+ /**
129
+ * Delete a routing language
130
+ *
131
+ * @param {String} languageId Language ID
132
+ */
133
+ deleteRoutingLanguage(languageId) {
134
+ // verify the required parameter 'languageId' is set
135
+ if (languageId === undefined || languageId === null) {
136
+ throw 'Missing the required parameter "languageId" when calling deleteRoutingLanguage';
137
+ }
138
+
139
+ return this.apiClient.callApi(
140
+ '/api/v2/routing/languages/{languageId}',
141
+ 'DELETE',
142
+ { 'languageId': languageId },
143
+ { },
144
+ { },
145
+ { },
146
+ null,
147
+ ['PureCloud OAuth'],
148
+ ['application/json'],
149
+ ['application/json']
150
+ );
151
+ }
152
+
128
153
  /**
129
154
  * Delete single predictor.
130
155
  *
@@ -868,6 +893,31 @@ class RoutingApi {
868
893
  );
869
894
  }
870
895
 
896
+ /**
897
+ * Get a routing language
898
+ *
899
+ * @param {String} languageId Language ID
900
+ */
901
+ getRoutingLanguage(languageId) {
902
+ // verify the required parameter 'languageId' is set
903
+ if (languageId === undefined || languageId === null) {
904
+ throw 'Missing the required parameter "languageId" when calling getRoutingLanguage';
905
+ }
906
+
907
+ return this.apiClient.callApi(
908
+ '/api/v2/routing/languages/{languageId}',
909
+ 'GET',
910
+ { 'languageId': languageId },
911
+ { },
912
+ { },
913
+ { },
914
+ null,
915
+ ['PureCloud OAuth'],
916
+ ['application/json'],
917
+ ['application/json']
918
+ );
919
+ }
920
+
871
921
  /**
872
922
  * Get the list of supported languages.
873
923
  *
@@ -5,7 +5,7 @@ class SCIMApi {
5
5
  /**
6
6
  * SCIM service.
7
7
  * @module purecloud-platform-client-v2/api/SCIMApi
8
- * @version 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TeamsApi {
5
5
  /**
6
6
  * Teams service.
7
7
  * @module purecloud-platform-client-v2/api/TeamsApi
8
- * @version 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.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 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UsersApi {
5
5
  /**
6
6
  * Users service.
7
7
  * @module purecloud-platform-client-v2/api/UsersApi
8
- * @version 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UtilitiesApi {
5
5
  /**
6
6
  * Utilities service.
7
7
  * @module purecloud-platform-client-v2/api/UtilitiesApi
8
- * @version 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class VoicemailApi {
5
5
  /**
6
6
  * Voicemail service.
7
7
  * @module purecloud-platform-client-v2/api/VoicemailApi
8
- * @version 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WebChatApi {
5
5
  /**
6
6
  * WebChat service.
7
7
  * @module purecloud-platform-client-v2/api/WebChatApi
8
- * @version 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WebDeploymentsApi {
5
5
  /**
6
6
  * WebDeployments service.
7
7
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
8
- * @version 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -70,6 +70,31 @@ class WebDeploymentsApi {
70
70
  );
71
71
  }
72
72
 
73
+ /**
74
+ * Invalidate JWT
75
+ *
76
+ * @param {Object} opts Optional parameters
77
+ * @param {String} opts.xJourneySessionId The Customer's journey sessionId.
78
+ * @param {String} opts.xJourneySessionType The Customer's journey session type.
79
+ */
80
+ deleteWebdeploymentsTokenRevoke(opts) {
81
+ opts = opts || {};
82
+
83
+
84
+ return this.apiClient.callApi(
85
+ '/api/v2/webdeployments/token/revoke',
86
+ 'DELETE',
87
+ { },
88
+ { },
89
+ { 'X-Journey-Session-Id': opts['xJourneySessionId'],'X-Journey-Session-Type': opts['xJourneySessionType'] },
90
+ { },
91
+ null,
92
+ ['PureCloud OAuth'],
93
+ ['application/json'],
94
+ ['application/json']
95
+ );
96
+ }
97
+
73
98
  /**
74
99
  * Get a configuration version
75
100
  *
@@ -327,6 +352,55 @@ class WebDeploymentsApi {
327
352
  );
328
353
  }
329
354
 
355
+ /**
356
+ * Exchange an oAuth code (obtained using the Authorization Code Flow) for a JWT that can be used by webdeployments.
357
+ *
358
+ * @param {Object} body webDeploymentsOAuthExchangeRequest
359
+ */
360
+ postWebdeploymentsTokenOauthcodegrantjwtexchange(body) {
361
+ // verify the required parameter 'body' is set
362
+ if (body === undefined || body === null) {
363
+ throw 'Missing the required parameter "body" when calling postWebdeploymentsTokenOauthcodegrantjwtexchange';
364
+ }
365
+
366
+ return this.apiClient.callApi(
367
+ '/api/v2/webdeployments/token/oauthcodegrantjwtexchange',
368
+ 'POST',
369
+ { },
370
+ { },
371
+ { },
372
+ { },
373
+ body,
374
+ ['PureCloud OAuth'],
375
+ ['application/json'],
376
+ ['application/json']
377
+ );
378
+ }
379
+
380
+ /**
381
+ * Refresh a JWT.
382
+ *
383
+ * @param {Object} opts Optional parameters
384
+ * @param {Object} opts.body
385
+ */
386
+ postWebdeploymentsTokenRefresh(opts) {
387
+ opts = opts || {};
388
+
389
+
390
+ return this.apiClient.callApi(
391
+ '/api/v2/webdeployments/token/refresh',
392
+ 'POST',
393
+ { },
394
+ { },
395
+ { },
396
+ { },
397
+ opts['body'],
398
+ ['PureCloud OAuth'],
399
+ ['application/json'],
400
+ ['application/json']
401
+ );
402
+ }
403
+
330
404
  /**
331
405
  * Update the configuration draft
332
406
  *
@@ -5,7 +5,7 @@ class WebMessagingApi {
5
5
  /**
6
6
  * WebMessaging service.
7
7
  * @module purecloud-platform-client-v2/api/WebMessagingApi
8
- * @version 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WidgetsApi {
5
5
  /**
6
6
  * Widgets service.
7
7
  * @module purecloud-platform-client-v2/api/WidgetsApi
8
- * @version 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WorkforceManagementApi {
5
5
  /**
6
6
  * WorkforceManagement service.
7
7
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
8
- * @version 155.0.1
8
+ * @version 157.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -475,6 +475,31 @@ class WorkforceManagementApi {
475
475
  );
476
476
  }
477
477
 
478
+ /**
479
+ * Request to fetch the status of the historical adherence bulk job. Only the user who started the operation can query the status
480
+ * Job details are only retained if the initial request returned a 202 ACCEPTED response
481
+ * @param {String} jobId ID of the job to get
482
+ */
483
+ getWorkforcemanagementAdherenceHistoricalBulkJob(jobId) {
484
+ // verify the required parameter 'jobId' is set
485
+ if (jobId === undefined || jobId === null) {
486
+ throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceHistoricalBulkJob';
487
+ }
488
+
489
+ return this.apiClient.callApi(
490
+ '/api/v2/workforcemanagement/adherence/historical/bulk/jobs/{jobId}',
491
+ 'GET',
492
+ { 'jobId': jobId },
493
+ { },
494
+ { },
495
+ { },
496
+ null,
497
+ ['PureCloud OAuth'],
498
+ ['application/json'],
499
+ ['application/json']
500
+ );
501
+ }
502
+
478
503
  /**
479
504
  * Query the status of a historical adherence request operation. Only the user who started the operation can query the status
480
505
  * Job details are only retained if the initial request returned a 202 ACCEPTED response
@@ -2926,6 +2951,30 @@ class WorkforceManagementApi {
2926
2951
  );
2927
2952
  }
2928
2953
 
2954
+ /**
2955
+ * Request a historical adherence report in bulk
2956
+ *
2957
+ * @param {Object} opts Optional parameters
2958
+ * @param {Object} opts.body body
2959
+ */
2960
+ postWorkforcemanagementAdherenceHistoricalBulk(opts) {
2961
+ opts = opts || {};
2962
+
2963
+
2964
+ return this.apiClient.callApi(
2965
+ '/api/v2/workforcemanagement/adherence/historical/bulk',
2966
+ 'POST',
2967
+ { },
2968
+ { },
2969
+ { },
2970
+ { },
2971
+ opts['body'],
2972
+ ['PureCloud OAuth'],
2973
+ ['application/json'],
2974
+ ['application/json']
2975
+ );
2976
+ }
2977
+
2929
2978
  /**
2930
2979
  * Add an adherence explanation for the requested user
2931
2980
  *
@@ -99,7 +99,7 @@ import WorkforceManagementApi from './api/WorkforceManagementApi.js';
99
99
  * </pre>
100
100
  * </p>
101
101
  * @module purecloud-platform-client-v2/index
102
- * @version 155.0.1
102
+ * @version 157.0.0
103
103
  */
104
104
  class platformClient {
105
105
  constructor() {