purecloud-platform-client-v2 186.0.1 → 187.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 (85) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +717 -168
  3. package/dist/web-amd/purecloud-platform-client-v2.js +717 -168
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +271 -134
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +271 -134
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +520 -94
  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 +25 -7
  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/CarrierServicesApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/ChatApi.js +4 -22
  19. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +38 -3
  22. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +106 -1
  35. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +136 -1
  37. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -34
  38. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +63 -1
  39. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/OutboundApi.js +186 -1
  54. package/src/purecloud-platform-client-v2/api/PresenceApi.js +11 -6
  55. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +50 -0
  62. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -27
  72. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/UploadsApi.js +32 -1
  75. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -5,7 +5,7 @@ class IntegrationsApi {
5
5
  /**
6
6
  * Integrations service.
7
7
  * @module purecloud-platform-client-v2/api/IntegrationsApi
8
- * @version 186.0.1
8
+ * @version 187.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -268,6 +268,32 @@ class IntegrationsApi {
268
268
  );
269
269
  }
270
270
 
271
+ /**
272
+ * Get draft function settings for Action
273
+ *
274
+ * @param {String} actionId actionId
275
+ * getIntegrationsActionDraftFunction is a preview method and is subject to both breaking and non-breaking changes at any time without notice
276
+ */
277
+ getIntegrationsActionDraftFunction(actionId) {
278
+ // verify the required parameter 'actionId' is set
279
+ if (actionId === undefined || actionId === null) {
280
+ throw 'Missing the required parameter "actionId" when calling getIntegrationsActionDraftFunction';
281
+ }
282
+
283
+ return this.apiClient.callApi(
284
+ '/api/v2/integrations/actions/{actionId}/draft/function',
285
+ 'GET',
286
+ { 'actionId': actionId },
287
+ { },
288
+ { },
289
+ { },
290
+ null,
291
+ ['PureCloud OAuth'],
292
+ ['application/json'],
293
+ ['application/json']
294
+ );
295
+ }
296
+
271
297
  /**
272
298
  * Retrieve schema for a Draft based on filename.
273
299
  *
@@ -353,6 +379,32 @@ class IntegrationsApi {
353
379
  );
354
380
  }
355
381
 
382
+ /**
383
+ * Get published function settings for Action
384
+ *
385
+ * @param {String} actionId actionId
386
+ * getIntegrationsActionFunction is a preview method and is subject to both breaking and non-breaking changes at any time without notice
387
+ */
388
+ getIntegrationsActionFunction(actionId) {
389
+ // verify the required parameter 'actionId' is set
390
+ if (actionId === undefined || actionId === null) {
391
+ throw 'Missing the required parameter "actionId" when calling getIntegrationsActionFunction';
392
+ }
393
+
394
+ return this.apiClient.callApi(
395
+ '/api/v2/integrations/actions/{actionId}/function',
396
+ 'GET',
397
+ { 'actionId': actionId },
398
+ { },
399
+ { },
400
+ { },
401
+ null,
402
+ ['PureCloud OAuth'],
403
+ ['application/json'],
404
+ ['application/json']
405
+ );
406
+ }
407
+
356
408
  /**
357
409
  * Retrieve schema for an action based on filename.
358
410
  *
@@ -536,6 +588,27 @@ class IntegrationsApi {
536
588
  );
537
589
  }
538
590
 
591
+ /**
592
+ * Get action function settings for Action
593
+ *
594
+ * getIntegrationsActionsFunctionsRuntimes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
595
+ */
596
+ getIntegrationsActionsFunctionsRuntimes() {
597
+
598
+ return this.apiClient.callApi(
599
+ '/api/v2/integrations/actions/functions/runtimes',
600
+ 'GET',
601
+ { },
602
+ { },
603
+ { },
604
+ { },
605
+ null,
606
+ ['PureCloud OAuth'],
607
+ ['application/json'],
608
+ ['application/json']
609
+ );
610
+ }
611
+
539
612
  /**
540
613
  * Get a specific botConnector bot, plus versions, for this integration
541
614
  *
@@ -1519,6 +1592,37 @@ class IntegrationsApi {
1519
1592
  );
1520
1593
  }
1521
1594
 
1595
+ /**
1596
+ * Create upload presigned URL for draft function package file.
1597
+ *
1598
+ * @param {String} actionId actionId
1599
+ * @param {Object} body Input used to request URL upload.
1600
+ * postIntegrationsActionDraftFunctionUpload is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1601
+ */
1602
+ postIntegrationsActionDraftFunctionUpload(actionId, body) {
1603
+ // verify the required parameter 'actionId' is set
1604
+ if (actionId === undefined || actionId === null) {
1605
+ throw 'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';
1606
+ }
1607
+ // verify the required parameter 'body' is set
1608
+ if (body === undefined || body === null) {
1609
+ throw 'Missing the required parameter "body" when calling postIntegrationsActionDraftFunctionUpload';
1610
+ }
1611
+
1612
+ return this.apiClient.callApi(
1613
+ '/api/v2/integrations/actions/{actionId}/draft/function/upload',
1614
+ 'POST',
1615
+ { 'actionId': actionId },
1616
+ { },
1617
+ { },
1618
+ { },
1619
+ body,
1620
+ ['PureCloud OAuth'],
1621
+ ['application/json'],
1622
+ ['application/json']
1623
+ );
1624
+ }
1625
+
1522
1626
  /**
1523
1627
  * Publish a Draft and make it the active Action configuration
1524
1628
  *
@@ -1841,6 +1945,37 @@ class IntegrationsApi {
1841
1945
  );
1842
1946
  }
1843
1947
 
1948
+ /**
1949
+ * Update draft function settings.
1950
+ *
1951
+ * @param {String} actionId actionId
1952
+ * @param {Object} body Input used to update function settings.
1953
+ * putIntegrationsActionDraftFunction is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1954
+ */
1955
+ putIntegrationsActionDraftFunction(actionId, body) {
1956
+ // verify the required parameter 'actionId' is set
1957
+ if (actionId === undefined || actionId === null) {
1958
+ throw 'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';
1959
+ }
1960
+ // verify the required parameter 'body' is set
1961
+ if (body === undefined || body === null) {
1962
+ throw 'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';
1963
+ }
1964
+
1965
+ return this.apiClient.callApi(
1966
+ '/api/v2/integrations/actions/{actionId}/draft/function',
1967
+ 'PUT',
1968
+ { 'actionId': actionId },
1969
+ { },
1970
+ { },
1971
+ { },
1972
+ body,
1973
+ ['PureCloud OAuth'],
1974
+ ['application/json'],
1975
+ ['application/json']
1976
+ );
1977
+ }
1978
+
1844
1979
  /**
1845
1980
  * Set a list of botConnector bots plus versions for this integration
1846
1981
  *
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 186.0.1
8
+ * @version 187.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -772,39 +772,6 @@ class JourneyApi {
772
772
  );
773
773
  }
774
774
 
775
- /**
776
- * Retrieve segment assignments by session ID.
777
- *
778
- * @param {String} sessionId ID of the session to query for segment assignments.
779
- * @param {Object} opts Optional parameters
780
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
781
- * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
782
- * @param {Object} opts.segmentScope Scope to filter on. If not specified, both session-scoped and customer-scoped assignments are returned.
783
- * @param {Object} opts.assignmentState Assignment state to filter on. If not specified, both assigned and unassigned assignments are returned.
784
- * getJourneySessionSegments is a preview method and is subject to both breaking and non-breaking changes at any time without notice
785
- */
786
- getJourneySessionSegments(sessionId, opts) {
787
- opts = opts || {};
788
-
789
- // verify the required parameter 'sessionId' is set
790
- if (sessionId === undefined || sessionId === null) {
791
- throw 'Missing the required parameter "sessionId" when calling getJourneySessionSegments';
792
- }
793
-
794
- return this.apiClient.callApi(
795
- '/api/v2/journey/sessions/{sessionId}/segments',
796
- 'GET',
797
- { 'sessionId': sessionId },
798
- { 'pageSize': opts['pageSize'],'after': opts['after'],'segmentScope': opts['segmentScope'],'assignmentState': opts['assignmentState'] },
799
- { },
800
- { },
801
- null,
802
- ['PureCloud OAuth'],
803
- ['application/json'],
804
- ['application/json']
805
- );
806
- }
807
-
808
775
  /**
809
776
  * Update single action map.
810
777
  *
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 186.0.1
8
+ * @version 187.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -1347,6 +1347,68 @@ class KnowledgeApi {
1347
1347
  );
1348
1348
  }
1349
1349
 
1350
+ /**
1351
+ * Get operations
1352
+ *
1353
+ * @param {String} knowledgeBaseId Knowledge base ID
1354
+ * @param {Object} opts Optional parameters
1355
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
1356
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
1357
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
1358
+ * @param {Array.<String>} opts.userId If specified, retrieves operations associated with user ids, comma separated values expected.
1359
+ * @param {Array.<String>} opts.type If specified, retrieves operations with specified operation type, comma separated values expected.
1360
+ * @param {Array.<String>} opts.status If specified, retrieves operations with specified operation status, comma separated values expected.
1361
+ * @param {String} opts.interval Retrieves the operations 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
1362
+ * getKnowledgeKnowledgebaseOperations is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1363
+ */
1364
+ getKnowledgeKnowledgebaseOperations(knowledgeBaseId, opts) {
1365
+ opts = opts || {};
1366
+
1367
+ // verify the required parameter 'knowledgeBaseId' is set
1368
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
1369
+ throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperations';
1370
+ }
1371
+
1372
+ return this.apiClient.callApi(
1373
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations',
1374
+ 'GET',
1375
+ { 'knowledgeBaseId': knowledgeBaseId },
1376
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'userId': this.apiClient.buildCollectionParam(opts['userId'], 'multi'),'type': this.apiClient.buildCollectionParam(opts['type'], 'multi'),'status': this.apiClient.buildCollectionParam(opts['status'], 'multi'),'interval': opts['interval'] },
1377
+ { },
1378
+ { },
1379
+ null,
1380
+ ['PureCloud OAuth'],
1381
+ ['application/json'],
1382
+ ['application/json']
1383
+ );
1384
+ }
1385
+
1386
+ /**
1387
+ * Get ids of operation creator users and oauth clients
1388
+ *
1389
+ * @param {String} knowledgeBaseId Knowledge base ID
1390
+ * getKnowledgeKnowledgebaseOperationsUsersQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1391
+ */
1392
+ getKnowledgeKnowledgebaseOperationsUsersQuery(knowledgeBaseId) {
1393
+ // verify the required parameter 'knowledgeBaseId' is set
1394
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
1395
+ throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperationsUsersQuery';
1396
+ }
1397
+
1398
+ return this.apiClient.callApi(
1399
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations/users/query',
1400
+ 'GET',
1401
+ { 'knowledgeBaseId': knowledgeBaseId },
1402
+ { },
1403
+ { },
1404
+ { },
1405
+ null,
1406
+ ['PureCloud OAuth'],
1407
+ ['application/json'],
1408
+ ['application/json']
1409
+ );
1410
+ }
1411
+
1350
1412
  /**
1351
1413
  * Get knowledge base unanswered group for a particular groupId
1352
1414
  *
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LogCaptureApi {
5
5
  /**
6
6
  * LogCapture service.
7
7
  * @module purecloud-platform-client-v2/api/LogCaptureApi
8
- * @version 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OperationalEventsApi {
5
5
  /**
6
6
  * OperationalEvents service.
7
7
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
8
- * @version 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.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 186.0.1
8
+ * @version 187.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -492,6 +492,56 @@ class OutboundApi {
492
492
  );
493
493
  }
494
494
 
495
+ /**
496
+ * Delete File Specification Template
497
+ *
498
+ * @param {String} fileSpecificationTemplateId File Specification Template ID
499
+ */
500
+ deleteOutboundFilespecificationtemplate(fileSpecificationTemplateId) {
501
+ // verify the required parameter 'fileSpecificationTemplateId' is set
502
+ if (fileSpecificationTemplateId === undefined || fileSpecificationTemplateId === null) {
503
+ throw 'Missing the required parameter "fileSpecificationTemplateId" when calling deleteOutboundFilespecificationtemplate';
504
+ }
505
+
506
+ return this.apiClient.callApi(
507
+ '/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}',
508
+ 'DELETE',
509
+ { 'fileSpecificationTemplateId': fileSpecificationTemplateId },
510
+ { },
511
+ { },
512
+ { },
513
+ null,
514
+ ['PureCloud OAuth'],
515
+ ['application/json'],
516
+ ['application/json']
517
+ );
518
+ }
519
+
520
+ /**
521
+ * Delete multiple file specification templates.
522
+ *
523
+ * @param {Array.<String>} id File Specification template id(s) to delete
524
+ */
525
+ deleteOutboundFilespecificationtemplatesBulk(id) {
526
+ // verify the required parameter 'id' is set
527
+ if (id === undefined || id === null) {
528
+ throw 'Missing the required parameter "id" when calling deleteOutboundFilespecificationtemplatesBulk';
529
+ }
530
+
531
+ return this.apiClient.callApi(
532
+ '/api/v2/outbound/filespecificationtemplates/bulk',
533
+ 'DELETE',
534
+ { },
535
+ { 'id': this.apiClient.buildCollectionParam(id, 'multi') },
536
+ { },
537
+ { },
538
+ null,
539
+ ['PureCloud OAuth'],
540
+ ['application/json'],
541
+ ['application/json']
542
+ );
543
+ }
544
+
495
545
  /**
496
546
  * Delete Import Template
497
547
  *
@@ -1899,6 +1949,61 @@ class OutboundApi {
1899
1949
  );
1900
1950
  }
1901
1951
 
1952
+ /**
1953
+ * Get File Specification Template
1954
+ *
1955
+ * @param {String} fileSpecificationTemplateId File Specification Template ID
1956
+ */
1957
+ getOutboundFilespecificationtemplate(fileSpecificationTemplateId) {
1958
+ // verify the required parameter 'fileSpecificationTemplateId' is set
1959
+ if (fileSpecificationTemplateId === undefined || fileSpecificationTemplateId === null) {
1960
+ throw 'Missing the required parameter "fileSpecificationTemplateId" when calling getOutboundFilespecificationtemplate';
1961
+ }
1962
+
1963
+ return this.apiClient.callApi(
1964
+ '/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}',
1965
+ 'GET',
1966
+ { 'fileSpecificationTemplateId': fileSpecificationTemplateId },
1967
+ { },
1968
+ { },
1969
+ { },
1970
+ null,
1971
+ ['PureCloud OAuth'],
1972
+ ['application/json'],
1973
+ ['application/json']
1974
+ );
1975
+ }
1976
+
1977
+ /**
1978
+ * Query File Specification Templates
1979
+ *
1980
+ * @param {Object} opts Optional parameters
1981
+ * @param {Number} opts.pageSize Page size. The max that will be returned is 100. (default to 25)
1982
+ * @param {Number} opts.pageNumber Page number (default to 1)
1983
+ * @param {Boolean} opts.allowEmptyResult Whether to return an empty page when there are no results for that page (default to false)
1984
+ * @param {Object} opts.filterType Filter type (default to Prefix)
1985
+ * @param {String} opts.name Name
1986
+ * @param {String} opts.sortBy Sort by
1987
+ * @param {Object} opts.sortOrder Sort order (default to a)
1988
+ */
1989
+ getOutboundFilespecificationtemplates(opts) {
1990
+ opts = opts || {};
1991
+
1992
+
1993
+ return this.apiClient.callApi(
1994
+ '/api/v2/outbound/filespecificationtemplates',
1995
+ 'GET',
1996
+ { },
1997
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'allowEmptyResult': opts['allowEmptyResult'],'filterType': opts['filterType'],'name': opts['name'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
1998
+ { },
1999
+ { },
2000
+ null,
2001
+ ['PureCloud OAuth'],
2002
+ ['application/json'],
2003
+ ['application/json']
2004
+ );
2005
+ }
2006
+
1902
2007
  /**
1903
2008
  * Get Import Template
1904
2009
  *
@@ -3072,6 +3177,31 @@ class OutboundApi {
3072
3177
  );
3073
3178
  }
3074
3179
 
3180
+ /**
3181
+ * Get multiple contact list templates
3182
+ *
3183
+ * @param {Object} body contact list templates to get
3184
+ */
3185
+ postOutboundContactlisttemplatesBulkRetrieve(body) {
3186
+ // verify the required parameter 'body' is set
3187
+ if (body === undefined || body === null) {
3188
+ throw 'Missing the required parameter "body" when calling postOutboundContactlisttemplatesBulkRetrieve';
3189
+ }
3190
+
3191
+ return this.apiClient.callApi(
3192
+ '/api/v2/outbound/contactlisttemplates/bulk/retrieve',
3193
+ 'POST',
3194
+ { },
3195
+ { },
3196
+ { },
3197
+ { },
3198
+ body,
3199
+ ['PureCloud OAuth'],
3200
+ ['application/json'],
3201
+ ['application/json']
3202
+ );
3203
+ }
3204
+
3075
3205
  /**
3076
3206
  * Add phone numbers to a Dialer DNC list.
3077
3207
  *
@@ -3236,6 +3366,31 @@ class OutboundApi {
3236
3366
  );
3237
3367
  }
3238
3368
 
3369
+ /**
3370
+ * Create File Specification Template
3371
+ *
3372
+ * @param {Object} body FileSpecificationTemplate
3373
+ */
3374
+ postOutboundFilespecificationtemplates(body) {
3375
+ // verify the required parameter 'body' is set
3376
+ if (body === undefined || body === null) {
3377
+ throw 'Missing the required parameter "body" when calling postOutboundFilespecificationtemplates';
3378
+ }
3379
+
3380
+ return this.apiClient.callApi(
3381
+ '/api/v2/outbound/filespecificationtemplates',
3382
+ 'POST',
3383
+ { },
3384
+ { },
3385
+ { },
3386
+ { },
3387
+ body,
3388
+ ['PureCloud OAuth'],
3389
+ ['application/json'],
3390
+ ['application/json']
3391
+ );
3392
+ }
3393
+
3239
3394
  /**
3240
3395
  * Create Import Template
3241
3396
  *
@@ -3756,6 +3911,36 @@ class OutboundApi {
3756
3911
  );
3757
3912
  }
3758
3913
 
3914
+ /**
3915
+ * Update File Specification Template
3916
+ *
3917
+ * @param {String} fileSpecificationTemplateId File Specification Template ID
3918
+ * @param {Object} body fileSpecificationTemplate
3919
+ */
3920
+ putOutboundFilespecificationtemplate(fileSpecificationTemplateId, body) {
3921
+ // verify the required parameter 'fileSpecificationTemplateId' is set
3922
+ if (fileSpecificationTemplateId === undefined || fileSpecificationTemplateId === null) {
3923
+ throw 'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';
3924
+ }
3925
+ // verify the required parameter 'body' is set
3926
+ if (body === undefined || body === null) {
3927
+ throw 'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';
3928
+ }
3929
+
3930
+ return this.apiClient.callApi(
3931
+ '/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}',
3932
+ 'PUT',
3933
+ { 'fileSpecificationTemplateId': fileSpecificationTemplateId },
3934
+ { },
3935
+ { },
3936
+ { },
3937
+ body,
3938
+ ['PureCloud OAuth'],
3939
+ ['application/json'],
3940
+ ['application/json']
3941
+ );
3942
+ }
3943
+
3759
3944
  /**
3760
3945
  * Update Import Template
3761
3946
  *