purecloud-platform-client-v2 146.0.0 → 147.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 (74) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +338 -69
  3. package/dist/web-amd/purecloud-platform-client-v2.js +338 -69
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +338 -69
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +338 -69
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +448 -233
  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 +46 -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/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 +1 -1
  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 +3 -2
  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 +1 -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 +135 -1
  47. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/QualityApi.js +4 -4
  49. package/src/purecloud-platform-client-v2/api/RecordingApi.js +31 -1
  50. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  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/TeamsApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/UsersApi.js +31 -1
  67. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +30 -1
  71. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "146.0.0",
3
+ "version": "147.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",
@@ -4,7 +4,7 @@ import { default as qs } from 'qs';
4
4
 
5
5
  /**
6
6
  * @module purecloud-platform-client-v2/ApiClient
7
- * @version 146.0.0
7
+ * @version 147.0.0
8
8
  */
9
9
  class ApiClient {
10
10
  /**
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AnalyticsApi {
5
5
  /**
6
6
  * Analytics service.
7
7
  * @module purecloud-platform-client-v2/api/AnalyticsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -251,6 +251,26 @@ class AnalyticsApi {
251
251
  );
252
252
  }
253
253
 
254
+ /**
255
+ * Get analytics data retention setting
256
+ *
257
+ */
258
+ getAnalyticsDataretentionSettings() {
259
+
260
+ return this.apiClient.callApi(
261
+ '/api/v2/analytics/dataretention/settings',
262
+ 'GET',
263
+ { },
264
+ { },
265
+ { },
266
+ { },
267
+ null,
268
+ ['PureCloud OAuth'],
269
+ ['application/json'],
270
+ ['application/json']
271
+ );
272
+ }
273
+
254
274
  /**
255
275
  * Get all view export requests for a user
256
276
  *
@@ -1151,6 +1171,31 @@ class AnalyticsApi {
1151
1171
  );
1152
1172
  }
1153
1173
 
1174
+ /**
1175
+ * Update analytics data retention setting
1176
+ *
1177
+ * @param {Object} body retentionDays
1178
+ */
1179
+ putAnalyticsDataretentionSettings(body) {
1180
+ // verify the required parameter 'body' is set
1181
+ if (body === undefined || body === null) {
1182
+ throw 'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';
1183
+ }
1184
+
1185
+ return this.apiClient.callApi(
1186
+ '/api/v2/analytics/dataretention/settings',
1187
+ 'PUT',
1188
+ { },
1189
+ { },
1190
+ { },
1191
+ { },
1192
+ body,
1193
+ ['PureCloud OAuth'],
1194
+ ['application/json'],
1195
+ ['application/json']
1196
+ );
1197
+ }
1198
+
1154
1199
  /**
1155
1200
  * Update a scheduled report job.
1156
1201
  *
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuditApi {
5
5
  /**
6
6
  * Audit service.
7
7
  * @module purecloud-platform-client-v2/api/AuditApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuthorizationApi {
5
5
  /**
6
6
  * Authorization service.
7
7
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BillingApi {
5
5
  /**
6
6
  * Billing service.
7
7
  * @module purecloud-platform-client-v2/api/BillingApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ChatApi {
5
5
  /**
6
6
  * Chat service.
7
7
  * @module purecloud-platform-client-v2/api/ChatApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class CoachingApi {
5
5
  /**
6
6
  * Coaching service.
7
7
  * @module purecloud-platform-client-v2/api/CoachingApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ContentManagementApi {
5
5
  /**
6
6
  * ContentManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ConversationsApi {
5
5
  /**
6
6
  * Conversations service.
7
7
  * @module purecloud-platform-client-v2/api/ConversationsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ExternalContactsApi {
5
5
  /**
6
6
  * ExternalContacts service.
7
7
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FlowsApi {
5
5
  /**
6
6
  * Flows service.
7
7
  * @module purecloud-platform-client-v2/api/FlowsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GamificationApi {
5
5
  /**
6
6
  * Gamification service.
7
7
  * @module purecloud-platform-client-v2/api/GamificationApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
5
5
  /**
6
6
  * GeneralDataProtectionRegulation service.
7
7
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeolocationApi {
5
5
  /**
6
6
  * Geolocation service.
7
7
  * @module purecloud-platform-client-v2/api/GeolocationApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GreetingsApi {
5
5
  /**
6
6
  * Greetings service.
7
7
  * @module purecloud-platform-client-v2/api/GreetingsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GroupsApi {
5
5
  /**
6
6
  * Groups service.
7
7
  * @module purecloud-platform-client-v2/api/GroupsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IdentityProviderApi {
5
5
  /**
6
6
  * IdentityProvider service.
7
7
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IntegrationsApi {
5
5
  /**
6
6
  * Integrations service.
7
7
  * @module purecloud-platform-client-v2/api/IntegrationsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -802,6 +802,7 @@ class KnowledgeApi {
802
802
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
803
803
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
804
804
  * @param {String} opts.interval Retrieves the documents modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
805
+ * @param {Array.<String>} opts.documentId Retrieves the specified documents, comma separated values expected.
805
806
  * @param {Array.<String>} opts.categoryId If specified, retrieves documents associated with category ids, comma separated values expected.
806
807
  * @param {Boolean} opts.includeSubcategories Works along with 'categoryId' query parameter. If specified, retrieves documents associated with category ids and its children categories.
807
808
  * @param {Boolean} opts.includeDrafts If includeDrafts is true, Documents in the draft state are also returned in the response.
@@ -820,7 +821,7 @@ class KnowledgeApi {
820
821
  '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents',
821
822
  'GET',
822
823
  { 'knowledgeBaseId': knowledgeBaseId },
823
- { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'interval': opts['interval'],'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'includeSubcategories': opts['includeSubcategories'],'includeDrafts': opts['includeDrafts'],'labelIds': this.apiClient.buildCollectionParam(opts['labelIds'], 'multi'),'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
824
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'interval': opts['interval'],'documentId': this.apiClient.buildCollectionParam(opts['documentId'], 'multi'),'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'includeSubcategories': opts['includeSubcategories'],'includeDrafts': opts['includeDrafts'],'labelIds': this.apiClient.buildCollectionParam(opts['labelIds'], 'multi'),'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
824
825
  { },
825
826
  { },
826
827
  null,
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguagesApi {
5
5
  /**
6
6
  * Languages service.
7
7
  * @module purecloud-platform-client-v2/api/LanguagesApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LearningApi {
5
5
  /**
6
6
  * Learning service.
7
7
  * @module purecloud-platform-client-v2/api/LearningApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LicenseApi {
5
5
  /**
6
6
  * License service.
7
7
  * @module purecloud-platform-client-v2/api/LicenseApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LocationsApi {
5
5
  /**
6
6
  * Locations service.
7
7
  * @module purecloud-platform-client-v2/api/LocationsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class MessagingApi {
5
5
  /**
6
6
  * Messaging service.
7
7
  * @module purecloud-platform-client-v2/api/MessagingApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class MobileDevicesApi {
5
5
  /**
6
6
  * MobileDevices service.
7
7
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class NotificationsApi {
5
5
  /**
6
6
  * Notifications service.
7
7
  * @module purecloud-platform-client-v2/api/NotificationsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OAuthApi {
5
5
  /**
6
6
  * OAuth service.
7
7
  * @module purecloud-platform-client-v2/api/OAuthApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ObjectsApi {
5
5
  /**
6
6
  * Objects service.
7
7
  * @module purecloud-platform-client-v2/api/ObjectsApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OrganizationApi {
5
5
  /**
6
6
  * Organization service.
7
7
  * @module purecloud-platform-client-v2/api/OrganizationApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OrganizationAuthorizationApi {
5
5
  /**
6
6
  * OrganizationAuthorization service.
7
7
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OutboundApi {
5
5
  /**
6
6
  * Outbound service.
7
7
  * @module purecloud-platform-client-v2/api/OutboundApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -305,6 +305,31 @@ class OutboundApi {
305
305
  );
306
306
  }
307
307
 
308
+ /**
309
+ * Delete an Outbound Digital Rule Set
310
+ *
311
+ * @param {String} digitalRuleSetId The Digital Rule Set ID
312
+ */
313
+ deleteOutboundDigitalruleset(digitalRuleSetId) {
314
+ // verify the required parameter 'digitalRuleSetId' is set
315
+ if (digitalRuleSetId === undefined || digitalRuleSetId === null) {
316
+ throw 'Missing the required parameter "digitalRuleSetId" when calling deleteOutboundDigitalruleset';
317
+ }
318
+
319
+ return this.apiClient.callApi(
320
+ '/api/v2/outbound/digitalrulesets/{digitalRuleSetId}',
321
+ 'DELETE',
322
+ { 'digitalRuleSetId': digitalRuleSetId },
323
+ { },
324
+ { },
325
+ { },
326
+ null,
327
+ ['PureCloud OAuth'],
328
+ ['application/json'],
329
+ ['application/json']
330
+ );
331
+ }
332
+
308
333
  /**
309
334
  * Delete dialer DNC list
310
335
  *
@@ -1342,6 +1367,60 @@ class OutboundApi {
1342
1367
  );
1343
1368
  }
1344
1369
 
1370
+ /**
1371
+ * Get an Outbound Digital Rule Set
1372
+ *
1373
+ * @param {String} digitalRuleSetId The Digital Rule Set ID
1374
+ */
1375
+ getOutboundDigitalruleset(digitalRuleSetId) {
1376
+ // verify the required parameter 'digitalRuleSetId' is set
1377
+ if (digitalRuleSetId === undefined || digitalRuleSetId === null) {
1378
+ throw 'Missing the required parameter "digitalRuleSetId" when calling getOutboundDigitalruleset';
1379
+ }
1380
+
1381
+ return this.apiClient.callApi(
1382
+ '/api/v2/outbound/digitalrulesets/{digitalRuleSetId}',
1383
+ 'GET',
1384
+ { 'digitalRuleSetId': digitalRuleSetId },
1385
+ { },
1386
+ { },
1387
+ { },
1388
+ null,
1389
+ ['PureCloud OAuth'],
1390
+ ['application/json'],
1391
+ ['application/json']
1392
+ );
1393
+ }
1394
+
1395
+ /**
1396
+ * Query a list of Outbound Digital Rule Sets
1397
+ *
1398
+ * @param {Object} opts Optional parameters
1399
+ * @param {Number} opts.pageSize Page size. The max that will be returned is 100. (default to 25)
1400
+ * @param {Number} opts.pageNumber Page number (default to 1)
1401
+ * @param {Object} opts.sortBy The field to sort by (default to name)
1402
+ * @param {Object} opts.sortOrder The direction to sort (default to ascending)
1403
+ * @param {String} opts.name Name
1404
+ * @param {Array.<String>} opts.id A list of digital rule set ids to bulk fetch
1405
+ */
1406
+ getOutboundDigitalrulesets(opts) {
1407
+ opts = opts || {};
1408
+
1409
+
1410
+ return this.apiClient.callApi(
1411
+ '/api/v2/outbound/digitalrulesets',
1412
+ 'GET',
1413
+ { },
1414
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi') },
1415
+ { },
1416
+ { },
1417
+ null,
1418
+ ['PureCloud OAuth'],
1419
+ ['application/json'],
1420
+ ['application/json']
1421
+ );
1422
+ }
1423
+
1345
1424
  /**
1346
1425
  * Get dialer DNC list
1347
1426
  *
@@ -2525,6 +2604,31 @@ class OutboundApi {
2525
2604
  );
2526
2605
  }
2527
2606
 
2607
+ /**
2608
+ * Create an Outbound Digital Rule Set
2609
+ *
2610
+ * @param {Object} body Digital Rule Set
2611
+ */
2612
+ postOutboundDigitalrulesets(body) {
2613
+ // verify the required parameter 'body' is set
2614
+ if (body === undefined || body === null) {
2615
+ throw 'Missing the required parameter "body" when calling postOutboundDigitalrulesets';
2616
+ }
2617
+
2618
+ return this.apiClient.callApi(
2619
+ '/api/v2/outbound/digitalrulesets',
2620
+ 'POST',
2621
+ { },
2622
+ { },
2623
+ { },
2624
+ { },
2625
+ body,
2626
+ ['PureCloud OAuth'],
2627
+ ['application/json'],
2628
+ ['application/json']
2629
+ );
2630
+ }
2631
+
2528
2632
  /**
2529
2633
  * Initiate the export of a dnc list.
2530
2634
  * Returns 200 if received OK.
@@ -2989,6 +3093,36 @@ class OutboundApi {
2989
3093
  );
2990
3094
  }
2991
3095
 
3096
+ /**
3097
+ * Update an Outbound Digital Rule Set
3098
+ *
3099
+ * @param {String} digitalRuleSetId The Digital Rule Set ID
3100
+ * @param {Object} body Digital Rule Set
3101
+ */
3102
+ putOutboundDigitalruleset(digitalRuleSetId, body) {
3103
+ // verify the required parameter 'digitalRuleSetId' is set
3104
+ if (digitalRuleSetId === undefined || digitalRuleSetId === null) {
3105
+ throw 'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';
3106
+ }
3107
+ // verify the required parameter 'body' is set
3108
+ if (body === undefined || body === null) {
3109
+ throw 'Missing the required parameter "body" when calling putOutboundDigitalruleset';
3110
+ }
3111
+
3112
+ return this.apiClient.callApi(
3113
+ '/api/v2/outbound/digitalrulesets/{digitalRuleSetId}',
3114
+ 'PUT',
3115
+ { 'digitalRuleSetId': digitalRuleSetId },
3116
+ { },
3117
+ { },
3118
+ { },
3119
+ body,
3120
+ ['PureCloud OAuth'],
3121
+ ['application/json'],
3122
+ ['application/json']
3123
+ );
3124
+ }
3125
+
2992
3126
  /**
2993
3127
  * Update dialer DNC list
2994
3128
  *
@@ -5,7 +5,7 @@ class PresenceApi {
5
5
  /**
6
6
  * Presence service.
7
7
  * @module purecloud-platform-client-v2/api/PresenceApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class QualityApi {
5
5
  /**
6
6
  * Quality service.
7
7
  * @module purecloud-platform-client-v2/api/QualityApi
8
- * @version 146.0.0
8
+ * @version 147.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -515,7 +515,7 @@ class QualityApi {
515
515
  * @param {String} opts.sortBy variable name requested to sort by
516
516
  * @param {String} opts.nextPage next page token
517
517
  * @param {String} opts.previousPage Previous page token
518
- * @param {String} opts.expand Expand
518
+ * @param {Object} opts.expand If 'expand=publishHistory', then each unpublished evaluation form includes a listing of its published versions
519
519
  * @param {String} opts.name Name
520
520
  * @param {String} opts.sortOrder Order to sort results, either asc or desc
521
521
  */
@@ -602,7 +602,7 @@ class QualityApi {
602
602
  * @param {String} opts.sortBy variable name requested to sort by
603
603
  * @param {String} opts.nextPage next page token
604
604
  * @param {String} opts.previousPage Previous page token
605
- * @param {String} opts.expand Expand
605
+ * @param {Object} opts.expand If 'expand=publishHistory', then each unpublished evaluation form includes a listing of its published versions
606
606
  * @param {String} opts.name Name
607
607
  * @param {String} opts.sortOrder Order to sort results, either asc or desc
608
608
  */
@@ -713,7 +713,7 @@ class QualityApi {
713
713
  * @param {String} opts.sortBy variable name requested to sort by
714
714
  * @param {String} opts.nextPage next page token
715
715
  * @param {String} opts.previousPage Previous page token
716
- * @param {String} opts.expand Expand
716
+ * @param {Object} opts.expand If 'expand=publishHistory', then each unpublished evaluation form includes a listing of its published versions
717
717
  * @param {String} opts.name Name
718
718
  * @param {String} opts.sortOrder Order to sort results, either asc or desc
719
719
  */