purecloud-platform-client-v2 136.1.0 → 137.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 +9544 -9538
  3. package/dist/web-amd/purecloud-platform-client-v2.js +9544 -9538
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +9544 -9538
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +9544 -9538
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +5262 -74
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +14 -5
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +56 -56
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +231 -231
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +534 -534
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +31 -31
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +212 -212
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +12 -12
  17. package/src/purecloud-platform-client-v2/api/ChatApi.js +16 -16
  18. package/src/purecloud-platform-client-v2/api/CoachingApi.js +96 -96
  19. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +192 -192
  20. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +808 -808
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +17 -17
  22. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +337 -337
  23. package/src/purecloud-platform-client-v2/api/FaxApi.js +31 -31
  24. package/src/purecloud-platform-client-v2/api/FlowsApi.js +11 -11
  25. package/src/purecloud-platform-client-v2/api/GamificationApi.js +246 -246
  26. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +21 -21
  27. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +26 -26
  28. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +88 -88
  29. package/src/purecloud-platform-client-v2/api/GroupsApi.js +72 -72
  30. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +171 -171
  31. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +311 -311
  32. package/src/purecloud-platform-client-v2/api/JourneyApi.js +146 -146
  33. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +131 -131
  34. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +151 -151
  35. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +51 -51
  36. package/src/purecloud-platform-client-v2/api/LearningApi.js +107 -107
  37. package/src/purecloud-platform-client-v2/api/LicenseApi.js +49 -49
  38. package/src/purecloud-platform-client-v2/api/LocationsApi.js +41 -41
  39. package/src/purecloud-platform-client-v2/api/MessagingApi.js +26 -26
  40. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +26 -26
  41. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +43 -43
  42. package/src/purecloud-platform-client-v2/api/OAuthApi.js +67 -67
  43. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +50 -50
  44. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +81 -81
  45. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +162 -162
  46. package/src/purecloud-platform-client-v2/api/OutboundApi.js +608 -608
  47. package/src/purecloud-platform-client-v2/api/PresenceApi.js +64 -64
  48. package/src/purecloud-platform-client-v2/api/QualityApi.js +285 -285
  49. package/src/purecloud-platform-client-v2/api/RecordingApi.js +302 -302
  50. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +86 -86
  51. package/src/purecloud-platform-client-v2/api/RoutingApi.js +536 -536
  52. package/src/purecloud-platform-client-v2/api/SCIMApi.js +195 -195
  53. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +66 -66
  54. package/src/purecloud-platform-client-v2/api/SearchApi.js +96 -96
  55. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +194 -194
  56. package/src/purecloud-platform-client-v2/api/StationsApi.js +28 -28
  57. package/src/purecloud-platform-client-v2/api/SuggestApi.js +21 -21
  58. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +16 -16
  59. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +657 -657
  60. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +23 -23
  61. package/src/purecloud-platform-client-v2/api/TokensApi.js +21 -21
  62. package/src/purecloud-platform-client-v2/api/UploadsApi.js +26 -26
  63. package/src/purecloud-platform-client-v2/api/UsageApi.js +11 -11
  64. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +31 -31
  65. package/src/purecloud-platform-client-v2/api/UsersApi.js +413 -413
  66. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +21 -21
  67. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +140 -140
  68. package/src/purecloud-platform-client-v2/api/WebChatApi.js +97 -97
  69. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +66 -66
  70. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +6 -6
  71. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +26 -26
  72. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +765 -765
  73. package/src/purecloud-platform-client-v2/index.js +145 -149
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "136.1.0",
3
+ "version": "137.0.0",
4
4
  "description": "A JavaScript library to interface with the PureCloud Platform API",
5
5
  "license": "MIT",
6
6
  "main": "dist/node/purecloud-platform-client-v2.js",
@@ -1,9 +1,10 @@
1
+
1
2
  import superagent from 'superagent';
2
3
  import Configuration from './configuration.js';
3
4
 
4
5
  /**
5
6
  * @module purecloud-platform-client-v2/ApiClient
6
- * @version 136.1.0
7
+ * @version 137.0.0
7
8
  */
8
9
  class ApiClient {
9
10
  /**
@@ -85,10 +86,9 @@ class ApiClient {
85
86
  * @type {Array.<String>}
86
87
  */
87
88
  this.authentications = {
88
- 'PureCloud OAuth': {type: 'oauth2'},
89
- 'Guest Chat JWT': {type: 'apiKey', 'in': 'header', name: 'Authorization'}
89
+ 'Guest Chat JWT': {type: 'apiKey', 'in': 'header', name: 'Authorization'},
90
+ 'PureCloud OAuth': {type: 'oauth2'}
90
91
  };
91
-
92
92
  /**
93
93
  * The default HTTP headers to be included for all API calls.
94
94
  * @type {Array.<String>}
@@ -356,6 +356,9 @@ class ApiClient {
356
356
  { grant_type: 'urn:ietf:params:oauth:grant-type:saml2-bearer' },
357
357
  { orgName: orgName },
358
358
  { assertion: assertion });
359
+ if (this.proxy && request.proxy) {
360
+ request.proxy(this.proxy);
361
+ }
359
362
  var bodyParam = {
360
363
  grant_type: 'urn:ietf:params:oauth:grant-type:saml2-bearer',
361
364
  orgName: orgName,
@@ -434,6 +437,9 @@ class ApiClient {
434
437
  { grant_type: 'authorization_code' },
435
438
  { code: authCode },
436
439
  { redirect_uri: redirectUri });
440
+ if (this.proxy && request.proxy) {
441
+ request.proxy(this.proxy);
442
+ }
437
443
  var bodyParam = {
438
444
  grant_type: 'authorization_code',
439
445
  code: authCode,
@@ -459,6 +465,9 @@ class ApiClient {
459
465
  }
460
466
  var encodedData = Buffer.from(clientId + ':' + clientSecret).toString('base64');
461
467
  var request = this._formAuthRequest(encodedData, { grant_type: 'refresh_token' }, { refresh_token: refreshToken });
468
+ if (this.proxy && request.proxy) {
469
+ request.proxy(this.proxy);
470
+ }
462
471
  var bodyParam = {
463
472
  grant_type: 'refresh_token',
464
473
  refresh_token: refreshToken,
@@ -950,7 +959,7 @@ class ApiClient {
950
959
 
951
960
  // set header parameters
952
961
  request.set(that.defaultHeaders).set(that.normalizeParams(headerParams));
953
- //request.set({ 'purecloud-sdk': '136.1.0' });
962
+ //request.set({ 'purecloud-sdk': '137.0.0' });
954
963
 
955
964
  // set request timeout
956
965
  request.timeout(that.timeout);
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 136.1.0
8
+ * @version 137.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -34,13 +34,13 @@ class AlertingApi {
34
34
  return this.apiClient.callApi(
35
35
  '/api/v2/alerting/interactionstats/alerts/{alertId}',
36
36
  'DELETE',
37
- { 'alertId': alertId },
38
- { },
39
- { },
40
- { },
37
+ { 'alertId': alertId },
38
+ { },
39
+ { },
40
+ { },
41
41
  null,
42
42
  ['PureCloud OAuth'],
43
- ['application/json'],
43
+ ['application/json'],
44
44
  ['application/json']
45
45
  );
46
46
  }
@@ -59,13 +59,13 @@ class AlertingApi {
59
59
  return this.apiClient.callApi(
60
60
  '/api/v2/alerting/interactionstats/rules/{ruleId}',
61
61
  'DELETE',
62
- { 'ruleId': ruleId },
63
- { },
64
- { },
65
- { },
62
+ { 'ruleId': ruleId },
63
+ { },
64
+ { },
65
+ { },
66
66
  null,
67
67
  ['PureCloud OAuth'],
68
- ['application/json'],
68
+ ['application/json'],
69
69
  ['application/json']
70
70
  );
71
71
  }
@@ -79,13 +79,13 @@ class AlertingApi {
79
79
  return this.apiClient.callApi(
80
80
  '/api/v2/alerting/alerts/active',
81
81
  'GET',
82
- { },
83
- { },
84
- { },
85
- { },
82
+ { },
83
+ { },
84
+ { },
85
+ { },
86
86
  null,
87
87
  ['PureCloud OAuth'],
88
- ['application/json'],
88
+ ['application/json'],
89
89
  ['application/json']
90
90
  );
91
91
  }
@@ -108,13 +108,13 @@ class AlertingApi {
108
108
  return this.apiClient.callApi(
109
109
  '/api/v2/alerting/interactionstats/alerts/{alertId}',
110
110
  'GET',
111
- { 'alertId': alertId },
112
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
113
- { },
114
- { },
111
+ { 'alertId': alertId },
112
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
113
+ { },
114
+ { },
115
115
  null,
116
116
  ['PureCloud OAuth'],
117
- ['application/json'],
117
+ ['application/json'],
118
118
  ['application/json']
119
119
  );
120
120
  }
@@ -132,13 +132,13 @@ class AlertingApi {
132
132
  return this.apiClient.callApi(
133
133
  '/api/v2/alerting/interactionstats/alerts',
134
134
  'GET',
135
- { },
136
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
137
- { },
138
- { },
135
+ { },
136
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
137
+ { },
138
+ { },
139
139
  null,
140
140
  ['PureCloud OAuth'],
141
- ['application/json'],
141
+ ['application/json'],
142
142
  ['application/json']
143
143
  );
144
144
  }
@@ -152,13 +152,13 @@ class AlertingApi {
152
152
  return this.apiClient.callApi(
153
153
  '/api/v2/alerting/interactionstats/alerts/unread',
154
154
  'GET',
155
- { },
156
- { },
157
- { },
158
- { },
155
+ { },
156
+ { },
157
+ { },
158
+ { },
159
159
  null,
160
160
  ['PureCloud OAuth'],
161
- ['application/json'],
161
+ ['application/json'],
162
162
  ['application/json']
163
163
  );
164
164
  }
@@ -181,13 +181,13 @@ class AlertingApi {
181
181
  return this.apiClient.callApi(
182
182
  '/api/v2/alerting/interactionstats/rules/{ruleId}',
183
183
  'GET',
184
- { 'ruleId': ruleId },
185
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
186
- { },
187
- { },
184
+ { 'ruleId': ruleId },
185
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
186
+ { },
187
+ { },
188
188
  null,
189
189
  ['PureCloud OAuth'],
190
- ['application/json'],
190
+ ['application/json'],
191
191
  ['application/json']
192
192
  );
193
193
  }
@@ -205,13 +205,13 @@ class AlertingApi {
205
205
  return this.apiClient.callApi(
206
206
  '/api/v2/alerting/interactionstats/rules',
207
207
  'GET',
208
- { },
209
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
210
- { },
211
- { },
208
+ { },
209
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
210
+ { },
211
+ { },
212
212
  null,
213
213
  ['PureCloud OAuth'],
214
- ['application/json'],
214
+ ['application/json'],
215
215
  ['application/json']
216
216
  );
217
217
  }
@@ -234,13 +234,13 @@ class AlertingApi {
234
234
  return this.apiClient.callApi(
235
235
  '/api/v2/alerting/interactionstats/rules',
236
236
  'POST',
237
- { },
238
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
239
- { },
240
- { },
237
+ { },
238
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
239
+ { },
240
+ { },
241
241
  body,
242
242
  ['PureCloud OAuth'],
243
- ['application/json'],
243
+ ['application/json'],
244
244
  ['application/json']
245
245
  );
246
246
  }
@@ -268,13 +268,13 @@ class AlertingApi {
268
268
  return this.apiClient.callApi(
269
269
  '/api/v2/alerting/interactionstats/alerts/{alertId}',
270
270
  'PUT',
271
- { 'alertId': alertId },
272
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
273
- { },
274
- { },
271
+ { 'alertId': alertId },
272
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
273
+ { },
274
+ { },
275
275
  body,
276
276
  ['PureCloud OAuth'],
277
- ['application/json'],
277
+ ['application/json'],
278
278
  ['application/json']
279
279
  );
280
280
  }
@@ -302,13 +302,13 @@ class AlertingApi {
302
302
  return this.apiClient.callApi(
303
303
  '/api/v2/alerting/interactionstats/rules/{ruleId}',
304
304
  'PUT',
305
- { 'ruleId': ruleId },
306
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
307
- { },
308
- { },
305
+ { 'ruleId': ruleId },
306
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
307
+ { },
308
+ { },
309
309
  body,
310
310
  ['PureCloud OAuth'],
311
- ['application/json'],
311
+ ['application/json'],
312
312
  ['application/json']
313
313
  );
314
314
  }