purecloud-platform-client-v2 197.0.0 → 198.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 (87) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +401 -110
  3. package/dist/web-amd/purecloud-platform-client-v2.js +401 -110
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +167 -90
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +170 -91
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +520 -29
  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/AgentUIApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +37 -1
  23. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +2 -2
  29. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/JourneyApi.js +30 -2
  40. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OutboundApi.js +2 -2
  56. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/QualityApi.js +32 -1
  59. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +3 -2
  71. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/UsersApi.js +3 -3
  80. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +222 -27
  87. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class ResponseManagementApi {
5
5
  /**
6
6
  * ResponseManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class RoutingApi {
5
5
  /**
6
6
  * Routing service.
7
7
  * @module purecloud-platform-client-v2/api/RoutingApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SCIMApi {
5
5
  /**
6
6
  * SCIM service.
7
7
  * @module purecloud-platform-client-v2/api/SCIMApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ScreenRecordingApi {
5
5
  /**
6
6
  * ScreenRecording service.
7
7
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ScriptsApi {
5
5
  /**
6
6
  * Scripts service.
7
7
  * @module purecloud-platform-client-v2/api/ScriptsApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SearchApi {
5
5
  /**
6
6
  * Search service.
7
7
  * @module purecloud-platform-client-v2/api/SearchApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SettingsApi {
5
5
  /**
6
6
  * Settings service.
7
7
  * @module purecloud-platform-client-v2/api/SettingsApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
5
5
  /**
6
6
  * SpeechTextAnalytics service.
7
7
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class StationsApi {
5
5
  /**
6
6
  * Stations service.
7
7
  * @module purecloud-platform-client-v2/api/StationsApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SuggestApi {
5
5
  /**
6
6
  * Suggest service.
7
7
  * @module purecloud-platform-client-v2/api/SuggestApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TaskManagementApi {
5
5
  /**
6
6
  * TaskManagement service.
7
7
  * @module purecloud-platform-client-v2/api/TaskManagementApi
8
- * @version 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -650,6 +650,7 @@ class TaskManagementApi {
650
650
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
651
651
  * @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)
652
652
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
653
+ * @param {Array.<String>} opts.fields Comma-separated list of fields. The response will contain only versions created as a result of changes to these fields.
653
654
  * getTaskmanagementWorktypeHistory is a preview method and is subject to both breaking and non-breaking changes at any time without notice
654
655
  */
655
656
  getTaskmanagementWorktypeHistory(worktypeId, opts) {
@@ -664,7 +665,7 @@ class TaskManagementApi {
664
665
  '/api/v2/taskmanagement/worktypes/{worktypeId}/history',
665
666
  'GET',
666
667
  { 'worktypeId': worktypeId },
667
- { 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'] },
668
+ { 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'fields': this.apiClient.buildCollectionParam(opts['fields'], 'multi') },
668
669
  { },
669
670
  { },
670
671
  null,
@@ -5,7 +5,7 @@ class TeamsApi {
5
5
  /**
6
6
  * Teams service.
7
7
  * @module purecloud-platform-client-v2/api/TeamsApi
8
- * @version 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -637,7 +637,7 @@ class UsersApi {
637
637
  *
638
638
  * @param {String} userId User ID
639
639
  * @param {Object} opts Optional parameters
640
- * @param {Array.<String>} opts.expand Which fields, if any, to expand
640
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand. Note, expand parameters are resolved with a best effort approach and not guaranteed to be returned. If requested expand information is absolutely required, it's recommended to use specific API requests instead.
641
641
  * @param {Object} opts.integrationPresenceSource Gets an integration presence for a user instead of their default.
642
642
  * @param {Object} opts.state Search for a user with this state (default to active)
643
643
  */
@@ -1208,7 +1208,7 @@ class UsersApi {
1208
1208
  * @param {Array.<String>} opts.id A list of user IDs to fetch by bulk
1209
1209
  * @param {Array.<String>} opts.jabberId A list of jabberIds to fetch by bulk (cannot be used with the id parameter)
1210
1210
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to ASC)
1211
- * @param {Array.<String>} opts.expand Which fields, if any, to expand
1211
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand. Note, expand parameters are resolved with a best effort approach and not guaranteed to be returned. If requested expand information is absolutely required, it's recommended to use specific API requests instead.
1212
1212
  * @param {Object} opts.integrationPresenceSource Gets an integration presence for users instead of their defaults. This parameter will only be used when presence is provided as an expand. When using this parameter the maximum number of users that can be returned is 100.
1213
1213
  * @param {Object} opts.state Only list users of this state (default to active)
1214
1214
  */
@@ -5,7 +5,7 @@ class UtilitiesApi {
5
5
  /**
6
6
  * Utilities service.
7
7
  * @module purecloud-platform-client-v2/api/UtilitiesApi
8
- * @version 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.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 197.0.0
8
+ * @version 198.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -615,32 +615,6 @@ class WorkforceManagementApi {
615
615
  );
616
616
  }
617
617
 
618
- /**
619
- * To get status of the modeling job.
620
- * This Endpoint is Deprecated, and not recommended to be used.
621
- * @param {String} jobId The id of the modeling job
622
- * @deprecated
623
- */
624
- getWorkforcemanagementAdhocmodelingjob(jobId) {
625
- // verify the required parameter 'jobId' is set
626
- if (jobId === undefined || jobId === null) {
627
- throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAdhocmodelingjob';
628
- }
629
-
630
- return this.apiClient.callApi(
631
- '/api/v2/workforcemanagement/adhocmodelingjobs/{jobId}',
632
- 'GET',
633
- { 'jobId': jobId },
634
- { },
635
- { },
636
- { },
637
- null,
638
- ['PureCloud OAuth'],
639
- ['application/json'],
640
- ['application/json']
641
- );
642
- }
643
-
644
618
  /**
645
619
  * Get an adherence explanation
646
620
  *
@@ -804,6 +778,129 @@ class WorkforceManagementApi {
804
778
  );
805
779
  }
806
780
 
781
+ /**
782
+ * Get an activity plan
783
+ *
784
+ * @param {String} businessUnitId The ID of the business unit
785
+ * @param {String} activityPlanId The ID of the activity plan to fetch
786
+ * getWorkforcemanagementBusinessunitActivityplan is a preview method and is subject to both breaking and non-breaking changes at any time without notice
787
+ */
788
+ getWorkforcemanagementBusinessunitActivityplan(businessUnitId, activityPlanId) {
789
+ // verify the required parameter 'businessUnitId' is set
790
+ if (businessUnitId === undefined || businessUnitId === null) {
791
+ throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';
792
+ }
793
+ // verify the required parameter 'activityPlanId' is set
794
+ if (activityPlanId === undefined || activityPlanId === null) {
795
+ throw 'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';
796
+ }
797
+
798
+ return this.apiClient.callApi(
799
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}',
800
+ 'GET',
801
+ { 'businessUnitId': businessUnitId,'activityPlanId': activityPlanId },
802
+ { },
803
+ { },
804
+ { },
805
+ null,
806
+ ['PureCloud OAuth'],
807
+ ['application/json'],
808
+ ['application/json']
809
+ );
810
+ }
811
+
812
+ /**
813
+ * Gets an activity plan run job
814
+ *
815
+ * @param {String} businessUnitId The ID of the business unit
816
+ * @param {String} activityPlanId The ID of the activity plan associated with the run job
817
+ * @param {String} jobId The ID of the activity plan run job
818
+ * getWorkforcemanagementBusinessunitActivityplanRunsJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
819
+ */
820
+ getWorkforcemanagementBusinessunitActivityplanRunsJob(businessUnitId, activityPlanId, jobId) {
821
+ // verify the required parameter 'businessUnitId' is set
822
+ if (businessUnitId === undefined || businessUnitId === null) {
823
+ throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';
824
+ }
825
+ // verify the required parameter 'activityPlanId' is set
826
+ if (activityPlanId === undefined || activityPlanId === null) {
827
+ throw 'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';
828
+ }
829
+ // verify the required parameter 'jobId' is set
830
+ if (jobId === undefined || jobId === null) {
831
+ throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';
832
+ }
833
+
834
+ return this.apiClient.callApi(
835
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/runs/jobs/{jobId}',
836
+ 'GET',
837
+ { 'businessUnitId': businessUnitId,'activityPlanId': activityPlanId,'jobId': jobId },
838
+ { },
839
+ { },
840
+ { },
841
+ null,
842
+ ['PureCloud OAuth'],
843
+ ['application/json'],
844
+ ['application/json']
845
+ );
846
+ }
847
+
848
+ /**
849
+ * Get activity plans
850
+ *
851
+ * @param {String} businessUnitId The ID of the business unit
852
+ * @param {Object} opts Optional parameters
853
+ * @param {Object} opts.state Optionally filter by activity plan state
854
+ * getWorkforcemanagementBusinessunitActivityplans is a preview method and is subject to both breaking and non-breaking changes at any time without notice
855
+ */
856
+ getWorkforcemanagementBusinessunitActivityplans(businessUnitId, opts) {
857
+ opts = opts || {};
858
+
859
+ // verify the required parameter 'businessUnitId' is set
860
+ if (businessUnitId === undefined || businessUnitId === null) {
861
+ throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplans';
862
+ }
863
+
864
+ return this.apiClient.callApi(
865
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans',
866
+ 'GET',
867
+ { 'businessUnitId': businessUnitId },
868
+ { 'state': opts['state'] },
869
+ { },
870
+ { },
871
+ null,
872
+ ['PureCloud OAuth'],
873
+ ['application/json'],
874
+ ['application/json']
875
+ );
876
+ }
877
+
878
+ /**
879
+ * Gets the latest job for all activity plans in the business unit
880
+ *
881
+ * @param {String} businessUnitId The ID of the business unit
882
+ * getWorkforcemanagementBusinessunitActivityplansJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
883
+ */
884
+ getWorkforcemanagementBusinessunitActivityplansJobs(businessUnitId) {
885
+ // verify the required parameter 'businessUnitId' is set
886
+ if (businessUnitId === undefined || businessUnitId === null) {
887
+ throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplansJobs';
888
+ }
889
+
890
+ return this.apiClient.callApi(
891
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/jobs',
892
+ 'GET',
893
+ { 'businessUnitId': businessUnitId },
894
+ { },
895
+ { },
896
+ { },
897
+ null,
898
+ ['PureCloud OAuth'],
899
+ ['application/json'],
900
+ ['application/json']
901
+ );
902
+ }
903
+
807
904
  /**
808
905
  * Get intraday planning groups for the given date
809
906
  *
@@ -2967,6 +3064,42 @@ class WorkforceManagementApi {
2967
3064
  );
2968
3065
  }
2969
3066
 
3067
+ /**
3068
+ * Update an activity plan
3069
+ * If a job associated with the activity plan is in Processing state the activity plan cannot be updated
3070
+ * @param {String} businessUnitId The ID of the business unit
3071
+ * @param {String} activityPlanId The ID of the activity plan to update
3072
+ * @param {Object} body body
3073
+ * patchWorkforcemanagementBusinessunitActivityplan is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3074
+ */
3075
+ patchWorkforcemanagementBusinessunitActivityplan(businessUnitId, activityPlanId, body) {
3076
+ // verify the required parameter 'businessUnitId' is set
3077
+ if (businessUnitId === undefined || businessUnitId === null) {
3078
+ throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';
3079
+ }
3080
+ // verify the required parameter 'activityPlanId' is set
3081
+ if (activityPlanId === undefined || activityPlanId === null) {
3082
+ throw 'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';
3083
+ }
3084
+ // verify the required parameter 'body' is set
3085
+ if (body === undefined || body === null) {
3086
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivityplan';
3087
+ }
3088
+
3089
+ return this.apiClient.callApi(
3090
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}',
3091
+ 'PATCH',
3092
+ { 'businessUnitId': businessUnitId,'activityPlanId': activityPlanId },
3093
+ { },
3094
+ { },
3095
+ { },
3096
+ body,
3097
+ ['PureCloud OAuth'],
3098
+ ['application/json'],
3099
+ ['application/json']
3100
+ );
3101
+ }
3102
+
2970
3103
  /**
2971
3104
  * Updates the planning group
2972
3105
  *
@@ -3774,6 +3907,68 @@ class WorkforceManagementApi {
3774
3907
  );
3775
3908
  }
3776
3909
 
3910
+ /**
3911
+ * Run an activity plan manually
3912
+ * Triggers a job running the activity plan. The activity plan cannot be updated until the job completes
3913
+ * @param {String} businessUnitId The ID of the business unit
3914
+ * @param {String} activityPlanId The ID of the activity plan to run
3915
+ * postWorkforcemanagementBusinessunitActivityplanRunsJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3916
+ */
3917
+ postWorkforcemanagementBusinessunitActivityplanRunsJobs(businessUnitId, activityPlanId) {
3918
+ // verify the required parameter 'businessUnitId' is set
3919
+ if (businessUnitId === undefined || businessUnitId === null) {
3920
+ throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';
3921
+ }
3922
+ // verify the required parameter 'activityPlanId' is set
3923
+ if (activityPlanId === undefined || activityPlanId === null) {
3924
+ throw 'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';
3925
+ }
3926
+
3927
+ return this.apiClient.callApi(
3928
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/runs/jobs',
3929
+ 'POST',
3930
+ { 'businessUnitId': businessUnitId,'activityPlanId': activityPlanId },
3931
+ { },
3932
+ { },
3933
+ { },
3934
+ null,
3935
+ ['PureCloud OAuth'],
3936
+ ['application/json'],
3937
+ ['application/json']
3938
+ );
3939
+ }
3940
+
3941
+ /**
3942
+ * Create an activity plan
3943
+ *
3944
+ * @param {String} businessUnitId The ID of the business unit
3945
+ * @param {Object} body body
3946
+ * postWorkforcemanagementBusinessunitActivityplans is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3947
+ */
3948
+ postWorkforcemanagementBusinessunitActivityplans(businessUnitId, body) {
3949
+ // verify the required parameter 'businessUnitId' is set
3950
+ if (businessUnitId === undefined || businessUnitId === null) {
3951
+ throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';
3952
+ }
3953
+ // verify the required parameter 'body' is set
3954
+ if (body === undefined || body === null) {
3955
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';
3956
+ }
3957
+
3958
+ return this.apiClient.callApi(
3959
+ '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans',
3960
+ 'POST',
3961
+ { 'businessUnitId': businessUnitId },
3962
+ { },
3963
+ { },
3964
+ { },
3965
+ body,
3966
+ ['PureCloud OAuth'],
3967
+ ['application/json'],
3968
+ ['application/json']
3969
+ );
3970
+ }
3971
+
3777
3972
  /**
3778
3973
  * Query adherence explanations across an entire business unit for the requested period
3779
3974
  *
@@ -109,7 +109,7 @@ import WorkforceManagementApi from './api/WorkforceManagementApi.js';
109
109
  * </pre>
110
110
  * </p>
111
111
  * @module purecloud-platform-client-v2/index
112
- * @version 197.0.0
112
+ * @version 198.0.0
113
113
  */
114
114
  class platformClient {
115
115
  constructor() {