purecloud-platform-client-v2 212.0.0 → 213.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 (91) hide show
  1. package/README.md +18 -4
  2. package/dist/node/purecloud-platform-client-v2.js +767 -255
  3. package/dist/web-amd/purecloud-platform-client-v2.js +768 -255
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +430 -293
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +660 -6380
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +441 -2
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +21 -18
  11. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +28 -2
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +35 -18
  25. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GamificationApi.js +57 -1
  35. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GroupsApi.js +2 -2
  39. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OutboundApi.js +7 -3
  59. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +288 -1
  75. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +119 -1
  91. package/src/purecloud-platform-client-v2/index.js +8 -3
@@ -5,7 +5,7 @@ class TaskManagementApi {
5
5
  /**
6
6
  * TaskManagement service.
7
7
  * @module purecloud-platform-client-v2/api/TaskManagementApi
8
- * @version 212.0.0
8
+ * @version 213.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -70,6 +70,56 @@ class TaskManagementApi {
70
70
  );
71
71
  }
72
72
 
73
+ /**
74
+ * Delete a bulk add job
75
+ *
76
+ * @param {String} bulkJobId Bulk job id
77
+ */
78
+ deleteTaskmanagementWorkitemsBulkAddJob(bulkJobId) {
79
+ // verify the required parameter 'bulkJobId' is set
80
+ if (bulkJobId === undefined || bulkJobId === null) {
81
+ throw 'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkAddJob';
82
+ }
83
+
84
+ return this.apiClient.callApi(
85
+ '/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
86
+ 'DELETE',
87
+ { 'bulkJobId': bulkJobId },
88
+ { },
89
+ { },
90
+ { },
91
+ null,
92
+ ['PureCloud OAuth'],
93
+ ['application/json'],
94
+ ['application/json']
95
+ );
96
+ }
97
+
98
+ /**
99
+ * Delete a Bulk job
100
+ *
101
+ * @param {String} bulkJobId Bulk job id
102
+ */
103
+ deleteTaskmanagementWorkitemsBulkTerminateJob(bulkJobId) {
104
+ // verify the required parameter 'bulkJobId' is set
105
+ if (bulkJobId === undefined || bulkJobId === null) {
106
+ throw 'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkTerminateJob';
107
+ }
108
+
109
+ return this.apiClient.callApi(
110
+ '/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
111
+ 'DELETE',
112
+ { 'bulkJobId': bulkJobId },
113
+ { },
114
+ { },
115
+ { },
116
+ null,
117
+ ['PureCloud OAuth'],
118
+ ['application/json'],
119
+ ['application/json']
120
+ );
121
+ }
122
+
73
123
  /**
74
124
  * Delete a schema
75
125
  *
@@ -553,6 +603,133 @@ class TaskManagementApi {
553
603
  );
554
604
  }
555
605
 
606
+ /**
607
+ * Get the bulk add job associated with the job id.
608
+ *
609
+ * @param {String} bulkJobId Bulk job id
610
+ */
611
+ getTaskmanagementWorkitemsBulkAddJob(bulkJobId) {
612
+ // verify the required parameter 'bulkJobId' is set
613
+ if (bulkJobId === undefined || bulkJobId === null) {
614
+ throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJob';
615
+ }
616
+
617
+ return this.apiClient.callApi(
618
+ '/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
619
+ 'GET',
620
+ { 'bulkJobId': bulkJobId },
621
+ { },
622
+ { },
623
+ { },
624
+ null,
625
+ ['PureCloud OAuth'],
626
+ ['application/json'],
627
+ ['application/json']
628
+ );
629
+ }
630
+
631
+ /**
632
+ * Get bulk add job results.
633
+ *
634
+ * @param {String} bulkJobId Bulk job id
635
+ */
636
+ getTaskmanagementWorkitemsBulkAddJobResults(bulkJobId) {
637
+ // verify the required parameter 'bulkJobId' is set
638
+ if (bulkJobId === undefined || bulkJobId === null) {
639
+ throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJobResults';
640
+ }
641
+
642
+ return this.apiClient.callApi(
643
+ '/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}/results',
644
+ 'GET',
645
+ { 'bulkJobId': bulkJobId },
646
+ { },
647
+ { },
648
+ { },
649
+ null,
650
+ ['PureCloud OAuth'],
651
+ ['application/json'],
652
+ ['application/json']
653
+ );
654
+ }
655
+
656
+ /**
657
+ * Get bulk jobs created by the currently logged in user.
658
+ *
659
+ * @param {Object} opts Optional parameters
660
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
661
+ * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
662
+ * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
663
+ * @param {Object} opts.action The bulk job action.
664
+ */
665
+ getTaskmanagementWorkitemsBulkJobsUsersMe(opts) {
666
+ opts = opts || {};
667
+
668
+
669
+ return this.apiClient.callApi(
670
+ '/api/v2/taskmanagement/workitems/bulk/jobs/users/me',
671
+ 'GET',
672
+ { },
673
+ { 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'action': opts['action'] },
674
+ { },
675
+ { },
676
+ null,
677
+ ['PureCloud OAuth'],
678
+ ['application/json'],
679
+ ['application/json']
680
+ );
681
+ }
682
+
683
+ /**
684
+ * Get the bulk job associated with the job id.
685
+ *
686
+ * @param {String} bulkJobId Bulk job id
687
+ */
688
+ getTaskmanagementWorkitemsBulkTerminateJob(bulkJobId) {
689
+ // verify the required parameter 'bulkJobId' is set
690
+ if (bulkJobId === undefined || bulkJobId === null) {
691
+ throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJob';
692
+ }
693
+
694
+ return this.apiClient.callApi(
695
+ '/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
696
+ 'GET',
697
+ { 'bulkJobId': bulkJobId },
698
+ { },
699
+ { },
700
+ { },
701
+ null,
702
+ ['PureCloud OAuth'],
703
+ ['application/json'],
704
+ ['application/json']
705
+ );
706
+ }
707
+
708
+ /**
709
+ * Get bulk terminate job results.
710
+ *
711
+ * @param {String} bulkJobId Bulk job id
712
+ */
713
+ getTaskmanagementWorkitemsBulkTerminateJobResults(bulkJobId) {
714
+ // verify the required parameter 'bulkJobId' is set
715
+ if (bulkJobId === undefined || bulkJobId === null) {
716
+ throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJobResults';
717
+ }
718
+
719
+ return this.apiClient.callApi(
720
+ '/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}/results',
721
+ 'GET',
722
+ { 'bulkJobId': bulkJobId },
723
+ { },
724
+ { },
725
+ { },
726
+ null,
727
+ ['PureCloud OAuth'],
728
+ ['application/json'],
729
+ ['application/json']
730
+ );
731
+ }
732
+
556
733
  /**
557
734
  * Get the workitem query job associated with the job id.
558
735
  *
@@ -1218,6 +1395,66 @@ class TaskManagementApi {
1218
1395
  );
1219
1396
  }
1220
1397
 
1398
+ /**
1399
+ * Update workitem bulk add job.
1400
+ *
1401
+ * @param {String} bulkJobId Bulk job id
1402
+ * @param {Object} body Bulk add job update request
1403
+ */
1404
+ patchTaskmanagementWorkitemsBulkAddJob(bulkJobId, body) {
1405
+ // verify the required parameter 'bulkJobId' is set
1406
+ if (bulkJobId === undefined || bulkJobId === null) {
1407
+ throw 'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';
1408
+ }
1409
+ // verify the required parameter 'body' is set
1410
+ if (body === undefined || body === null) {
1411
+ throw 'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkAddJob';
1412
+ }
1413
+
1414
+ return this.apiClient.callApi(
1415
+ '/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
1416
+ 'PATCH',
1417
+ { 'bulkJobId': bulkJobId },
1418
+ { },
1419
+ { },
1420
+ { },
1421
+ body,
1422
+ ['PureCloud OAuth'],
1423
+ ['application/json'],
1424
+ ['application/json']
1425
+ );
1426
+ }
1427
+
1428
+ /**
1429
+ * Update workitem bulk terminate job.
1430
+ *
1431
+ * @param {String} bulkJobId Bulk job id
1432
+ * @param {Object} body Bulk job update request
1433
+ */
1434
+ patchTaskmanagementWorkitemsBulkTerminateJob(bulkJobId, body) {
1435
+ // verify the required parameter 'bulkJobId' is set
1436
+ if (bulkJobId === undefined || bulkJobId === null) {
1437
+ throw 'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';
1438
+ }
1439
+ // verify the required parameter 'body' is set
1440
+ if (body === undefined || body === null) {
1441
+ throw 'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkTerminateJob';
1442
+ }
1443
+
1444
+ return this.apiClient.callApi(
1445
+ '/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
1446
+ 'PATCH',
1447
+ { 'bulkJobId': bulkJobId },
1448
+ { },
1449
+ { },
1450
+ { },
1451
+ body,
1452
+ ['PureCloud OAuth'],
1453
+ ['application/json'],
1454
+ ['application/json']
1455
+ );
1456
+ }
1457
+
1221
1458
  /**
1222
1459
  * Update the attributes of a worktype
1223
1460
  *
@@ -1542,6 +1779,56 @@ class TaskManagementApi {
1542
1779
  );
1543
1780
  }
1544
1781
 
1782
+ /**
1783
+ * Create a workitem bulk add job.
1784
+ *
1785
+ * @param {Object} body Bulk job definition.
1786
+ */
1787
+ postTaskmanagementWorkitemsBulkAddJobs(body) {
1788
+ // verify the required parameter 'body' is set
1789
+ if (body === undefined || body === null) {
1790
+ throw 'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkAddJobs';
1791
+ }
1792
+
1793
+ return this.apiClient.callApi(
1794
+ '/api/v2/taskmanagement/workitems/bulk/add/jobs',
1795
+ 'POST',
1796
+ { },
1797
+ { },
1798
+ { },
1799
+ { },
1800
+ body,
1801
+ ['PureCloud OAuth'],
1802
+ ['application/json'],
1803
+ ['application/json']
1804
+ );
1805
+ }
1806
+
1807
+ /**
1808
+ * Create a workitem bulk terminate job.
1809
+ *
1810
+ * @param {Object} body Bulk job definition.
1811
+ */
1812
+ postTaskmanagementWorkitemsBulkTerminateJobs(body) {
1813
+ // verify the required parameter 'body' is set
1814
+ if (body === undefined || body === null) {
1815
+ throw 'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkTerminateJobs';
1816
+ }
1817
+
1818
+ return this.apiClient.callApi(
1819
+ '/api/v2/taskmanagement/workitems/bulk/terminate/jobs',
1820
+ 'POST',
1821
+ { },
1822
+ { },
1823
+ { },
1824
+ { },
1825
+ body,
1826
+ ['PureCloud OAuth'],
1827
+ ['application/json'],
1828
+ ['application/json']
1829
+ );
1830
+ }
1831
+
1545
1832
  /**
1546
1833
  * Query for workitems
1547
1834
  * This query requires at least one EQ filter on the workbinId, assigneeId or typeId attributes.
@@ -5,7 +5,7 @@ class TeamsApi {
5
5
  /**
6
6
  * Teams service.
7
7
  * @module purecloud-platform-client-v2/api/TeamsApi
8
- * @version 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.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 212.0.0
8
+ * @version 213.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -1246,6 +1246,99 @@ class WorkforceManagementApi {
1246
1246
  );
1247
1247
  }
1248
1248
 
1249
+ /**
1250
+ * Get the latest session for the business unit ID
1251
+ *
1252
+ * @param {String} businessUnitId
1253
+ * getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1254
+ */
1255
+ getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(businessUnitId) {
1256
+ // verify the required parameter 'businessUnitId' is set
1257
+ if (businessUnitId === undefined || businessUnitId === null) {
1258
+ throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession';
1259
+ }
1260
+
1261
+ return this.apiClient.callApi(
1262
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session',
1263
+ 'GET',
1264
+ { 'businessUnitId': businessUnitId },
1265
+ { },
1266
+ { },
1267
+ { },
1268
+ null,
1269
+ ['PureCloud OAuth'],
1270
+ ['application/json'],
1271
+ ['application/json']
1272
+ );
1273
+ }
1274
+
1275
+ /**
1276
+ * Get the session details for the session ID
1277
+ *
1278
+ * @param {String} businessUnitId
1279
+ * @param {String} sessionId
1280
+ * getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1281
+ */
1282
+ getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(businessUnitId, sessionId) {
1283
+ // verify the required parameter 'businessUnitId' is set
1284
+ if (businessUnitId === undefined || businessUnitId === null) {
1285
+ throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';
1286
+ }
1287
+ // verify the required parameter 'sessionId' is set
1288
+ if (sessionId === undefined || sessionId === null) {
1289
+ throw 'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';
1290
+ }
1291
+
1292
+ return this.apiClient.callApi(
1293
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/{sessionId}',
1294
+ 'GET',
1295
+ { 'businessUnitId': businessUnitId,'sessionId': sessionId },
1296
+ { },
1297
+ { },
1298
+ { },
1299
+ null,
1300
+ ['PureCloud OAuth'],
1301
+ ['application/json'],
1302
+ ['application/json']
1303
+ );
1304
+ }
1305
+
1306
+ /**
1307
+ * Get the snapshot details for the snapshot ID
1308
+ *
1309
+ * @param {String} businessUnitId
1310
+ * @param {String} sessionId
1311
+ * @param {String} snapshotId
1312
+ * getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1313
+ */
1314
+ getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(businessUnitId, sessionId, snapshotId) {
1315
+ // verify the required parameter 'businessUnitId' is set
1316
+ if (businessUnitId === undefined || businessUnitId === null) {
1317
+ throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
1318
+ }
1319
+ // verify the required parameter 'sessionId' is set
1320
+ if (sessionId === undefined || sessionId === null) {
1321
+ throw 'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
1322
+ }
1323
+ // verify the required parameter 'snapshotId' is set
1324
+ if (snapshotId === undefined || snapshotId === null) {
1325
+ throw 'Missing the required parameter "snapshotId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
1326
+ }
1327
+
1328
+ return this.apiClient.callApi(
1329
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/{sessionId}/snapshot/{snapshotId}',
1330
+ 'GET',
1331
+ { 'businessUnitId': businessUnitId,'sessionId': sessionId,'snapshotId': snapshotId },
1332
+ { },
1333
+ { },
1334
+ { },
1335
+ null,
1336
+ ['PureCloud OAuth'],
1337
+ ['application/json'],
1338
+ ['application/json']
1339
+ );
1340
+ }
1341
+
1249
1342
  /**
1250
1343
  * Get all authorized management units in the business unit
1251
1344
  *
@@ -2476,6 +2569,31 @@ class WorkforceManagementApi {
2476
2569
  );
2477
2570
  }
2478
2571
 
2572
+ /**
2573
+ * Retrieves status of the historical data imports associated with job id
2574
+ *
2575
+ * @param {String} jobId The job Id of the historical data import request
2576
+ */
2577
+ getWorkforcemanagementHistoricaldataImportstatusJobId(jobId) {
2578
+ // verify the required parameter 'jobId' is set
2579
+ if (jobId === undefined || jobId === null) {
2580
+ throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementHistoricaldataImportstatusJobId';
2581
+ }
2582
+
2583
+ return this.apiClient.callApi(
2584
+ '/api/v2/workforcemanagement/historicaldata/importstatus/{jobId}',
2585
+ 'GET',
2586
+ { 'jobId': jobId },
2587
+ { },
2588
+ { },
2589
+ { },
2590
+ null,
2591
+ ['PureCloud OAuth'],
2592
+ ['application/json'],
2593
+ ['application/json']
2594
+ );
2595
+ }
2596
+
2479
2597
  /**
2480
2598
  * Get integrations
2481
2599
  *
@@ -1,5 +1,8 @@
1
1
 
2
2
  import PureCloudRegionHosts from './PureCloudRegionHosts.js';
3
+ import DefaultHttpClient from './DefaultHttpClient.js';
4
+ import AbstractHttpClient from './AbstractHttpClient.js';
5
+ import HttpRequestOptions from './HttpRequestOptions.js';
3
6
  import ApiClient from './ApiClient.js';
4
7
  import AgentAssistantsApi from './api/AgentAssistantsApi.js';
5
8
  import AgentCopilotApi from './api/AgentCopilotApi.js';
@@ -113,7 +116,7 @@ import WorkforceManagementApi from './api/WorkforceManagementApi.js';
113
116
  * </pre>
114
117
  * </p>
115
118
  * @module purecloud-platform-client-v2/index
116
- * @version 212.0.0
119
+ * @version 213.0.0
117
120
  */
118
121
  class platformClient {
119
122
  constructor() {
@@ -532,8 +535,10 @@ class platformClient {
532
535
  * @property {module:purecloud-platform-client-v2/MyPureCloudRegionHost}
533
536
  */
534
537
  this.PureCloudRegionHosts = PureCloudRegionHosts;
535
-
536
-
538
+
539
+ this.AbstractHttpClient = AbstractHttpClient;
540
+ this.DefaultHttpClient = DefaultHttpClient;
541
+ this.HttpRequestOptions = HttpRequestOptions;
537
542
  }
538
543
  }
539
544