purecloud-platform-client-v2 158.0.0 → 160.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 (78) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +637 -185
  3. package/dist/web-amd/purecloud-platform-client-v2.js +637 -185
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +637 -185
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +7146 -481
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +444 -169
  9. package/package.json +3 -2
  10. package/src/purecloud-platform-client-v2/ApiClient.js +16 -4
  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 +27 -2
  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/InfrastructureAsCodeApi.js +107 -0
  34. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/JourneyApi.js +95 -1
  36. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +2 -3
  37. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/LearningApi.js +55 -1
  40. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +13 -5
  45. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/OutboundApi.js +60 -1
  50. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/QualityApi.js +5 -4
  53. package/src/purecloud-platform-client-v2/api/RecordingApi.js +2 -102
  54. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/RoutingApi.js +38 -3
  56. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/SearchApi.js +26 -1
  59. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +76 -1
  60. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +3 -2
  65. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/UsersApi.js +32 -1
  71. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +26 -1
  78. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
5
5
  /**
6
6
  * SpeechTextAnalytics service.
7
7
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
8
- * @version 158.0.0
8
+ * @version 160.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -224,6 +224,31 @@ class SpeechTextAnalyticsApi {
224
224
  );
225
225
  }
226
226
 
227
+ /**
228
+ * Get transcription engine settings of a program
229
+ *
230
+ * @param {String} programId The id of the program
231
+ */
232
+ getSpeechandtextanalyticsProgramTranscriptionengines(programId) {
233
+ // verify the required parameter 'programId' is set
234
+ if (programId === undefined || programId === null) {
235
+ throw 'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramTranscriptionengines';
236
+ }
237
+
238
+ return this.apiClient.callApi(
239
+ '/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines',
240
+ 'GET',
241
+ { 'programId': programId },
242
+ { },
243
+ { },
244
+ { },
245
+ null,
246
+ ['PureCloud OAuth'],
247
+ ['application/json'],
248
+ ['application/json']
249
+ );
250
+ }
251
+
227
252
  /**
228
253
  * Get the list of Speech and Text Analytics programs
229
254
  *
@@ -325,6 +350,26 @@ class SpeechTextAnalyticsApi {
325
350
  );
326
351
  }
327
352
 
353
+ /**
354
+ * Get supported dialects for each transcription engine
355
+ *
356
+ */
357
+ getSpeechandtextanalyticsProgramsTranscriptionenginesDialects() {
358
+
359
+ return this.apiClient.callApi(
360
+ '/api/v2/speechandtextanalytics/programs/transcriptionengines/dialects',
361
+ 'GET',
362
+ { },
363
+ { },
364
+ { },
365
+ { },
366
+ null,
367
+ ['PureCloud OAuth'],
368
+ ['application/json'],
369
+ ['application/json']
370
+ );
371
+ }
372
+
328
373
  /**
329
374
  * Get the list of Speech and Text Analytics unpublished programs
330
375
  *
@@ -798,6 +843,36 @@ class SpeechTextAnalyticsApi {
798
843
  );
799
844
  }
800
845
 
846
+ /**
847
+ * Update transcription engine settings of a program
848
+ *
849
+ * @param {String} programId The id of the program
850
+ * @param {Object} body Program transcription engine setting
851
+ */
852
+ putSpeechandtextanalyticsProgramTranscriptionengines(programId, body) {
853
+ // verify the required parameter 'programId' is set
854
+ if (programId === undefined || programId === null) {
855
+ throw 'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';
856
+ }
857
+ // verify the required parameter 'body' is set
858
+ if (body === undefined || body === null) {
859
+ throw 'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';
860
+ }
861
+
862
+ return this.apiClient.callApi(
863
+ '/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines',
864
+ 'PUT',
865
+ { 'programId': programId },
866
+ { },
867
+ { },
868
+ { },
869
+ body,
870
+ ['PureCloud OAuth'],
871
+ ['application/json'],
872
+ ['application/json']
873
+ );
874
+ }
875
+
801
876
  /**
802
877
  * Update Speech And Text Analytics Settings
803
878
  *
@@ -5,7 +5,7 @@ class StationsApi {
5
5
  /**
6
6
  * Stations service.
7
7
  * @module purecloud-platform-client-v2/api/StationsApi
8
- * @version 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -1011,6 +1011,7 @@ class TelephonyProvidersEdgeApi {
1011
1011
  * @param {String} opts.edgeGroupId Filter by edgeGroup.id
1012
1012
  * @param {String} opts.sortBy Sort by (default to name)
1013
1013
  * @param {Boolean} opts.managed Filter by managed
1014
+ * @param {Boolean} opts.showCloudMedia True to show the cloud media devices in the result. (default to true)
1014
1015
  */
1015
1016
  getTelephonyProvidersEdges(opts) {
1016
1017
  opts = opts || {};
@@ -1020,7 +1021,7 @@ class TelephonyProvidersEdgeApi {
1020
1021
  '/api/v2/telephony/providers/edges',
1021
1022
  'GET',
1022
1023
  { },
1023
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'name': opts['name'],'site.id': opts['siteId'],'edgeGroup.id': opts['edgeGroupId'],'sortBy': opts['sortBy'],'managed': opts['managed'] },
1024
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'name': opts['name'],'site.id': opts['siteId'],'edgeGroup.id': opts['edgeGroupId'],'sortBy': opts['sortBy'],'managed': opts['managed'],'showCloudMedia': opts['showCloudMedia'] },
1024
1025
  { },
1025
1026
  { },
1026
1027
  null,
@@ -5,7 +5,7 @@ class TextbotsApi {
5
5
  /**
6
6
  * Textbots service.
7
7
  * @module purecloud-platform-client-v2/api/TextbotsApi
8
- * @version 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -934,6 +934,37 @@ class UsersApi {
934
934
  );
935
935
  }
936
936
 
937
+ /**
938
+ * Get skill groups for a user
939
+ *
940
+ * @param {String} userId User ID
941
+ * @param {Object} opts Optional parameters
942
+ * @param {Number} opts.pageSize Page size (default to 25)
943
+ * @param {String} opts.after The cursor that points to the next page
944
+ * @param {String} opts.before The cursor that points to the previous page
945
+ */
946
+ getUserSkillgroups(userId, opts) {
947
+ opts = opts || {};
948
+
949
+ // verify the required parameter 'userId' is set
950
+ if (userId === undefined || userId === null) {
951
+ throw 'Missing the required parameter "userId" when calling getUserSkillgroups';
952
+ }
953
+
954
+ return this.apiClient.callApi(
955
+ '/api/v2/users/{userId}/skillgroups',
956
+ 'GET',
957
+ { 'userId': userId },
958
+ { 'pageSize': opts['pageSize'],'after': opts['after'],'before': opts['before'] },
959
+ { },
960
+ { },
961
+ null,
962
+ ['PureCloud OAuth'],
963
+ ['application/json'],
964
+ ['application/json']
965
+ );
966
+ }
967
+
937
968
  /**
938
969
  * Get user state information.
939
970
  *
@@ -5,7 +5,7 @@ class UtilitiesApi {
5
5
  /**
6
6
  * Utilities service.
7
7
  * @module purecloud-platform-client-v2/api/UtilitiesApi
8
- * @version 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WebMessagingApi {
5
5
  /**
6
6
  * WebMessaging service.
7
7
  * @module purecloud-platform-client-v2/api/WebMessagingApi
8
- * @version 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.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 158.0.0
8
+ * @version 160.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -3040,6 +3040,31 @@ class WorkforceManagementApi {
3040
3040
  );
3041
3041
  }
3042
3042
 
3043
+ /**
3044
+ * Get agent possible work shifts for requested time frame
3045
+ *
3046
+ * @param {Object} body body
3047
+ */
3048
+ postWorkforcemanagementAgentsMePossibleworkshifts(body) {
3049
+ // verify the required parameter 'body' is set
3050
+ if (body === undefined || body === null) {
3051
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementAgentsMePossibleworkshifts';
3052
+ }
3053
+
3054
+ return this.apiClient.callApi(
3055
+ '/api/v2/workforcemanagement/agents/me/possibleworkshifts',
3056
+ 'POST',
3057
+ { },
3058
+ { },
3059
+ { },
3060
+ { },
3061
+ body,
3062
+ ['PureCloud OAuth'],
3063
+ ['application/json'],
3064
+ ['application/json']
3065
+ );
3066
+ }
3067
+
3043
3068
  /**
3044
3069
  * Get published schedule for the current user
3045
3070
  *
@@ -23,6 +23,7 @@ import GeolocationApi from './api/GeolocationApi.js';
23
23
  import GreetingsApi from './api/GreetingsApi.js';
24
24
  import GroupsApi from './api/GroupsApi.js';
25
25
  import IdentityProviderApi from './api/IdentityProviderApi.js';
26
+ import InfrastructureAsCodeApi from './api/InfrastructureAsCodeApi.js';
26
27
  import IntegrationsApi from './api/IntegrationsApi.js';
27
28
  import JourneyApi from './api/JourneyApi.js';
28
29
  import KnowledgeApi from './api/KnowledgeApi.js';
@@ -99,7 +100,7 @@ import WorkforceManagementApi from './api/WorkforceManagementApi.js';
99
100
  * </pre>
100
101
  * </p>
101
102
  * @module purecloud-platform-client-v2/index
102
- * @version 158.0.0
103
+ * @version 160.0.0
103
104
  */
104
105
  class platformClient {
105
106
  constructor() {
@@ -223,6 +224,11 @@ class platformClient {
223
224
  * @property {module:purecloud-platform-client-v2/api/IdentityProviderApi}
224
225
  */
225
226
  this.IdentityProviderApi = IdentityProviderApi;
227
+ /**
228
+ * The InfrastructureAsCodeApi service constructor.
229
+ * @property {module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi}
230
+ */
231
+ this.InfrastructureAsCodeApi = InfrastructureAsCodeApi;
226
232
  /**
227
233
  * The IntegrationsApi service constructor.
228
234
  * @property {module:purecloud-platform-client-v2/api/IntegrationsApi}