purecloud-platform-client-v2 221.0.0 → 223.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 (92) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +1032 -524
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1032 -524
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +498 -392
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +498 -392
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1408 -1008
  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/AgentAssistantsApi.js +3 -2
  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 +1 -1
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +3 -2
  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/BusinessRulesApi.js +5 -6
  21. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +154 -7
  26. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +3 -3
  33. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +150 -1
  43. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +2 -3
  51. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +71 -8
  72. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +51 -1
  73. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +2 -2
  76. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +3 -2
  80. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +514 -416
  92. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class WorkforceManagementApi {
5
5
  /**
6
6
  * WorkforceManagement service.
7
7
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
8
- * @version 221.0.0
8
+ * @version 223.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -3204,6 +3204,7 @@ class WorkforceManagementApi {
3204
3204
  * @param {String} weekDateId The start week date of the initiating shift in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
3205
3205
  * @param {Object} opts Optional parameters
3206
3206
  * @param {Boolean} opts.evaluateMatches Whether to evaluate the matches for violations (default to true)
3207
+ * @param {Boolean} opts.includeCrossWeekShifts Whether to include all shift trades with either the initiating shift or the receiving shift in the week (default to false)
3207
3208
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
3208
3209
  */
3209
3210
  getWorkforcemanagementManagementunitWeekShifttrades(managementUnitId, weekDateId, opts) {
@@ -3222,7 +3223,7 @@ class WorkforceManagementApi {
3222
3223
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades',
3223
3224
  'GET',
3224
3225
  { 'managementUnitId': managementUnitId,'weekDateId': weekDateId },
3225
- { 'evaluateMatches': opts['evaluateMatches'],'forceDownloadService': opts['forceDownloadService'] },
3226
+ { 'evaluateMatches': opts['evaluateMatches'],'includeCrossWeekShifts': opts['includeCrossWeekShifts'],'forceDownloadService': opts['forceDownloadService'] },
3226
3227
  { },
3227
3228
  { },
3228
3229
  null,
@@ -3726,16 +3727,17 @@ class WorkforceManagementApi {
3726
3727
  * Update my alternative shifts trade by trade ID
3727
3728
  *
3728
3729
  * @param {String} tradeId The ID of the alternative shift trade
3729
- * @param {Object} opts Optional parameters
3730
- * @param {Object} opts.body body
3730
+ * @param {Object} body body
3731
3731
  */
3732
- patchWorkforcemanagementAlternativeshiftsTrade(tradeId, opts) {
3733
- opts = opts || {};
3734
-
3732
+ patchWorkforcemanagementAlternativeshiftsTrade(tradeId, body) {
3735
3733
  // verify the required parameter 'tradeId' is set
3736
3734
  if (tradeId === undefined || tradeId === null) {
3737
3735
  throw 'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';
3738
3736
  }
3737
+ // verify the required parameter 'body' is set
3738
+ if (body === undefined || body === null) {
3739
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';
3740
+ }
3739
3741
 
3740
3742
  return this.apiClient.callApi(
3741
3743
  '/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}',
@@ -3744,7 +3746,7 @@ class WorkforceManagementApi {
3744
3746
  { },
3745
3747
  { },
3746
3748
  { },
3747
- opts['body'],
3749
+ body,
3748
3750
  ['PureCloud OAuth'],
3749
3751
  ['application/json'],
3750
3752
  ['application/json']
@@ -3780,16 +3782,17 @@ class WorkforceManagementApi {
3780
3782
  * Update business unit
3781
3783
  *
3782
3784
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
3783
- * @param {Object} opts Optional parameters
3784
- * @param {Object} opts.body body
3785
+ * @param {Object} body body
3785
3786
  */
3786
- patchWorkforcemanagementBusinessunit(businessUnitId, opts) {
3787
- opts = opts || {};
3788
-
3787
+ patchWorkforcemanagementBusinessunit(businessUnitId, body) {
3789
3788
  // verify the required parameter 'businessUnitId' is set
3790
3789
  if (businessUnitId === undefined || businessUnitId === null) {
3791
3790
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';
3792
3791
  }
3792
+ // verify the required parameter 'body' is set
3793
+ if (body === undefined || body === null) {
3794
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';
3795
+ }
3793
3796
 
3794
3797
  return this.apiClient.callApi(
3795
3798
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}',
@@ -3798,7 +3801,7 @@ class WorkforceManagementApi {
3798
3801
  { },
3799
3802
  { },
3800
3803
  { },
3801
- opts['body'],
3804
+ body,
3802
3805
  ['PureCloud OAuth'],
3803
3806
  ['application/json'],
3804
3807
  ['application/json']
@@ -3810,12 +3813,9 @@ class WorkforceManagementApi {
3810
3813
  *
3811
3814
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
3812
3815
  * @param {String} activityCodeId The ID of the activity code to update
3813
- * @param {Object} opts Optional parameters
3814
- * @param {Object} opts.body body
3816
+ * @param {Object} body body
3815
3817
  */
3816
- patchWorkforcemanagementBusinessunitActivitycode(businessUnitId, activityCodeId, opts) {
3817
- opts = opts || {};
3818
-
3818
+ patchWorkforcemanagementBusinessunitActivitycode(businessUnitId, activityCodeId, body) {
3819
3819
  // verify the required parameter 'businessUnitId' is set
3820
3820
  if (businessUnitId === undefined || businessUnitId === null) {
3821
3821
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';
@@ -3824,6 +3824,10 @@ class WorkforceManagementApi {
3824
3824
  if (activityCodeId === undefined || activityCodeId === null) {
3825
3825
  throw 'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';
3826
3826
  }
3827
+ // verify the required parameter 'body' is set
3828
+ if (body === undefined || body === null) {
3829
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivitycode';
3830
+ }
3827
3831
 
3828
3832
  return this.apiClient.callApi(
3829
3833
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}',
@@ -3832,7 +3836,7 @@ class WorkforceManagementApi {
3832
3836
  { },
3833
3837
  { },
3834
3838
  { },
3835
- opts['body'],
3839
+ body,
3836
3840
  ['PureCloud OAuth'],
3837
3841
  ['application/json'],
3838
3842
  ['application/json']
@@ -3878,16 +3882,17 @@ class WorkforceManagementApi {
3878
3882
  * Update alternative shifts settings for a business unit
3879
3883
  *
3880
3884
  * @param {String} businessUnitId The ID of the business unit
3881
- * @param {Object} opts Optional parameters
3882
- * @param {Object} opts.body body
3885
+ * @param {Object} body body
3883
3886
  */
3884
- patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId, opts) {
3885
- opts = opts || {};
3886
-
3887
+ patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId, body) {
3887
3888
  // verify the required parameter 'businessUnitId' is set
3888
3889
  if (businessUnitId === undefined || businessUnitId === null) {
3889
3890
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';
3890
3891
  }
3892
+ // verify the required parameter 'body' is set
3893
+ if (body === undefined || body === null) {
3894
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';
3895
+ }
3891
3896
 
3892
3897
  return this.apiClient.callApi(
3893
3898
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings',
@@ -3896,7 +3901,7 @@ class WorkforceManagementApi {
3896
3901
  { },
3897
3902
  { },
3898
3903
  { },
3899
- opts['body'],
3904
+ body,
3900
3905
  ['PureCloud OAuth'],
3901
3906
  ['application/json'],
3902
3907
  ['application/json']
@@ -3908,12 +3913,9 @@ class WorkforceManagementApi {
3908
3913
  *
3909
3914
  * @param {String} businessUnitId The ID of the business unit.
3910
3915
  * @param {String} planningGroupId The ID of a planning group to update
3911
- * @param {Object} opts Optional parameters
3912
- * @param {Object} opts.body body
3916
+ * @param {Object} body body
3913
3917
  */
3914
- patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId, planningGroupId, opts) {
3915
- opts = opts || {};
3916
-
3918
+ patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId, planningGroupId, body) {
3917
3919
  // verify the required parameter 'businessUnitId' is set
3918
3920
  if (businessUnitId === undefined || businessUnitId === null) {
3919
3921
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';
@@ -3922,6 +3924,10 @@ class WorkforceManagementApi {
3922
3924
  if (planningGroupId === undefined || planningGroupId === null) {
3923
3925
  throw 'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';
3924
3926
  }
3927
+ // verify the required parameter 'body' is set
3928
+ if (body === undefined || body === null) {
3929
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitPlanninggroup';
3930
+ }
3925
3931
 
3926
3932
  return this.apiClient.callApi(
3927
3933
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}',
@@ -3930,7 +3936,7 @@ class WorkforceManagementApi {
3930
3936
  { },
3931
3937
  { },
3932
3938
  { },
3933
- opts['body'],
3939
+ body,
3934
3940
  ['PureCloud OAuth'],
3935
3941
  ['application/json'],
3936
3942
  ['application/json']
@@ -3942,12 +3948,9 @@ class WorkforceManagementApi {
3942
3948
  *
3943
3949
  * @param {String} businessUnitId The ID of the business unit
3944
3950
  * @param {String} runId The ID of the schedule run
3945
- * @param {Object} opts Optional parameters
3946
- * @param {Object} opts.body body
3951
+ * @param {Object} body body
3947
3952
  */
3948
- patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId, runId, opts) {
3949
- opts = opts || {};
3950
-
3953
+ patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId, runId, body) {
3951
3954
  // verify the required parameter 'businessUnitId' is set
3952
3955
  if (businessUnitId === undefined || businessUnitId === null) {
3953
3956
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';
@@ -3956,6 +3959,10 @@ class WorkforceManagementApi {
3956
3959
  if (runId === undefined || runId === null) {
3957
3960
  throw 'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';
3958
3961
  }
3962
+ // verify the required parameter 'body' is set
3963
+ if (body === undefined || body === null) {
3964
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulingRun';
3965
+ }
3959
3966
 
3960
3967
  return this.apiClient.callApi(
3961
3968
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}',
@@ -3964,7 +3971,7 @@ class WorkforceManagementApi {
3964
3971
  { },
3965
3972
  { },
3966
3973
  { },
3967
- opts['body'],
3974
+ body,
3968
3975
  ['PureCloud OAuth'],
3969
3976
  ['application/json'],
3970
3977
  ['application/json']
@@ -3976,12 +3983,9 @@ class WorkforceManagementApi {
3976
3983
  *
3977
3984
  * @param {String} businessUnitId The ID of the business unit.
3978
3985
  * @param {String} serviceGoalTemplateId The ID of a service goal template to update
3979
- * @param {Object} opts Optional parameters
3980
- * @param {Object} opts.body body
3986
+ * @param {Object} body body
3981
3987
  */
3982
- patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId, serviceGoalTemplateId, opts) {
3983
- opts = opts || {};
3984
-
3988
+ patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId, serviceGoalTemplateId, body) {
3985
3989
  // verify the required parameter 'businessUnitId' is set
3986
3990
  if (businessUnitId === undefined || businessUnitId === null) {
3987
3991
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';
@@ -3990,6 +3994,10 @@ class WorkforceManagementApi {
3990
3994
  if (serviceGoalTemplateId === undefined || serviceGoalTemplateId === null) {
3991
3995
  throw 'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';
3992
3996
  }
3997
+ // verify the required parameter 'body' is set
3998
+ if (body === undefined || body === null) {
3999
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';
4000
+ }
3993
4001
 
3994
4002
  return this.apiClient.callApi(
3995
4003
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}',
@@ -3998,7 +4006,7 @@ class WorkforceManagementApi {
3998
4006
  { },
3999
4007
  { },
4000
4008
  { },
4001
- opts['body'],
4009
+ body,
4002
4010
  ['PureCloud OAuth'],
4003
4011
  ['application/json'],
4004
4012
  ['application/json']
@@ -4010,12 +4018,9 @@ class WorkforceManagementApi {
4010
4018
  *
4011
4019
  * @param {String} businessUnitId The ID of the business unit
4012
4020
  * @param {String} staffingGroupId The ID of the staffing group to update
4013
- * @param {Object} opts Optional parameters
4014
- * @param {Object} opts.body body
4021
+ * @param {Object} body body
4015
4022
  */
4016
- patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId, staffingGroupId, opts) {
4017
- opts = opts || {};
4018
-
4023
+ patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId, staffingGroupId, body) {
4019
4024
  // verify the required parameter 'businessUnitId' is set
4020
4025
  if (businessUnitId === undefined || businessUnitId === null) {
4021
4026
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';
@@ -4024,6 +4029,10 @@ class WorkforceManagementApi {
4024
4029
  if (staffingGroupId === undefined || staffingGroupId === null) {
4025
4030
  throw 'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';
4026
4031
  }
4032
+ // verify the required parameter 'body' is set
4033
+ if (body === undefined || body === null) {
4034
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitStaffinggroup';
4035
+ }
4027
4036
 
4028
4037
  return this.apiClient.callApi(
4029
4038
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}',
@@ -4032,7 +4041,7 @@ class WorkforceManagementApi {
4032
4041
  { },
4033
4042
  { },
4034
4043
  { },
4035
- opts['body'],
4044
+ body,
4036
4045
  ['PureCloud OAuth'],
4037
4046
  ['application/json'],
4038
4047
  ['application/json']
@@ -4044,12 +4053,9 @@ class WorkforceManagementApi {
4044
4053
  *
4045
4054
  * @param {String} businessUnitId The ID of the business unit
4046
4055
  * @param {String} timeOffPlanId The ID of the time-off plan to update
4047
- * @param {Object} opts Optional parameters
4048
- * @param {Object} opts.body body
4056
+ * @param {Object} body body
4049
4057
  */
4050
- patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId, timeOffPlanId, opts) {
4051
- opts = opts || {};
4052
-
4058
+ patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId, timeOffPlanId, body) {
4053
4059
  // verify the required parameter 'businessUnitId' is set
4054
4060
  if (businessUnitId === undefined || businessUnitId === null) {
4055
4061
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';
@@ -4058,6 +4064,10 @@ class WorkforceManagementApi {
4058
4064
  if (timeOffPlanId === undefined || timeOffPlanId === null) {
4059
4065
  throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';
4060
4066
  }
4067
+ // verify the required parameter 'body' is set
4068
+ if (body === undefined || body === null) {
4069
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitTimeoffplan';
4070
+ }
4061
4071
 
4062
4072
  return this.apiClient.callApi(
4063
4073
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}',
@@ -4066,7 +4076,7 @@ class WorkforceManagementApi {
4066
4076
  { },
4067
4077
  { },
4068
4078
  { },
4069
- opts['body'],
4079
+ body,
4070
4080
  ['PureCloud OAuth'],
4071
4081
  ['application/json'],
4072
4082
  ['application/json']
@@ -4114,12 +4124,9 @@ class WorkforceManagementApi {
4114
4124
  * @param {String} businessUnitId The ID of the business unit
4115
4125
  * @param {String} bidId The work plan bid id of the bid groups
4116
4126
  * @param {String} bidGroupId Work Plan Bid Group id
4117
- * @param {Object} opts Optional parameters
4118
- * @param {Object} opts.body body
4127
+ * @param {Object} body body
4119
4128
  */
4120
- patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId, bidId, bidGroupId, opts) {
4121
- opts = opts || {};
4122
-
4129
+ patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId, bidId, bidGroupId, body) {
4123
4130
  // verify the required parameter 'businessUnitId' is set
4124
4131
  if (businessUnitId === undefined || businessUnitId === null) {
4125
4132
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';
@@ -4132,6 +4139,10 @@ class WorkforceManagementApi {
4132
4139
  if (bidGroupId === undefined || bidGroupId === null) {
4133
4140
  throw 'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';
4134
4141
  }
4142
+ // verify the required parameter 'body' is set
4143
+ if (body === undefined || body === null) {
4144
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';
4145
+ }
4135
4146
 
4136
4147
  return this.apiClient.callApi(
4137
4148
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}',
@@ -4140,7 +4151,7 @@ class WorkforceManagementApi {
4140
4151
  { },
4141
4152
  { },
4142
4153
  { },
4143
- opts['body'],
4154
+ body,
4144
4155
  ['PureCloud OAuth'],
4145
4156
  ['application/json'],
4146
4157
  ['application/json']
@@ -4153,12 +4164,9 @@ class WorkforceManagementApi {
4153
4164
  * @param {String} businessUnitId The ID of the business unit
4154
4165
  * @param {String} bidId The work plan bid id of the bid groups
4155
4166
  * @param {String} bidGroupId The ID of the work plan bid group
4156
- * @param {Object} opts Optional parameters
4157
- * @param {Object} opts.body body
4167
+ * @param {Object} body body
4158
4168
  */
4159
- patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId, bidId, bidGroupId, opts) {
4160
- opts = opts || {};
4161
-
4169
+ patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId, bidId, bidGroupId, body) {
4162
4170
  // verify the required parameter 'businessUnitId' is set
4163
4171
  if (businessUnitId === undefined || businessUnitId === null) {
4164
4172
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';
@@ -4171,6 +4179,10 @@ class WorkforceManagementApi {
4171
4179
  if (bidGroupId === undefined || bidGroupId === null) {
4172
4180
  throw 'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';
4173
4181
  }
4182
+ // verify the required parameter 'body' is set
4183
+ if (body === undefined || body === null) {
4184
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';
4185
+ }
4174
4186
 
4175
4187
  return this.apiClient.callApi(
4176
4188
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences',
@@ -4179,7 +4191,7 @@ class WorkforceManagementApi {
4179
4191
  { },
4180
4192
  { },
4181
4193
  { },
4182
- opts['body'],
4194
+ body,
4183
4195
  ['PureCloud OAuth'],
4184
4196
  ['application/json'],
4185
4197
  ['application/json']
@@ -4190,16 +4202,17 @@ class WorkforceManagementApi {
4190
4202
  * Update the requested management unit
4191
4203
  *
4192
4204
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
4193
- * @param {Object} opts Optional parameters
4194
- * @param {Object} opts.body body
4205
+ * @param {Object} body body
4195
4206
  */
4196
- patchWorkforcemanagementManagementunit(managementUnitId, opts) {
4197
- opts = opts || {};
4198
-
4207
+ patchWorkforcemanagementManagementunit(managementUnitId, body) {
4199
4208
  // verify the required parameter 'managementUnitId' is set
4200
4209
  if (managementUnitId === undefined || managementUnitId === null) {
4201
4210
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';
4202
4211
  }
4212
+ // verify the required parameter 'body' is set
4213
+ if (body === undefined || body === null) {
4214
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';
4215
+ }
4203
4216
 
4204
4217
  return this.apiClient.callApi(
4205
4218
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}',
@@ -4208,7 +4221,7 @@ class WorkforceManagementApi {
4208
4221
  { },
4209
4222
  { },
4210
4223
  { },
4211
- opts['body'],
4224
+ body,
4212
4225
  ['PureCloud OAuth'],
4213
4226
  ['application/json'],
4214
4227
  ['application/json']
@@ -4219,16 +4232,17 @@ class WorkforceManagementApi {
4219
4232
  * Update agent configurations
4220
4233
  *
4221
4234
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
4222
- * @param {Object} opts Optional parameters
4223
- * @param {Object} opts.body body
4235
+ * @param {Object} body body
4224
4236
  */
4225
- patchWorkforcemanagementManagementunitAgents(managementUnitId, opts) {
4226
- opts = opts || {};
4227
-
4237
+ patchWorkforcemanagementManagementunitAgents(managementUnitId, body) {
4228
4238
  // verify the required parameter 'managementUnitId' is set
4229
4239
  if (managementUnitId === undefined || managementUnitId === null) {
4230
4240
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';
4231
4241
  }
4242
+ // verify the required parameter 'body' is set
4243
+ if (body === undefined || body === null) {
4244
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';
4245
+ }
4232
4246
 
4233
4247
  return this.apiClient.callApi(
4234
4248
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents',
@@ -4237,7 +4251,7 @@ class WorkforceManagementApi {
4237
4251
  { },
4238
4252
  { },
4239
4253
  { },
4240
- opts['body'],
4254
+ body,
4241
4255
  ['PureCloud OAuth'],
4242
4256
  ['application/json'],
4243
4257
  ['application/json']
@@ -4248,16 +4262,17 @@ class WorkforceManagementApi {
4248
4262
  * Updates agent work plan configuration
4249
4263
  *
4250
4264
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
4251
- * @param {Object} opts Optional parameters
4252
- * @param {Object} opts.body body
4265
+ * @param {Object} body body
4253
4266
  */
4254
- patchWorkforcemanagementManagementunitAgentsWorkplansBulk(managementUnitId, opts) {
4255
- opts = opts || {};
4256
-
4267
+ patchWorkforcemanagementManagementunitAgentsWorkplansBulk(managementUnitId, body) {
4257
4268
  // verify the required parameter 'managementUnitId' is set
4258
4269
  if (managementUnitId === undefined || managementUnitId === null) {
4259
4270
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';
4260
4271
  }
4272
+ // verify the required parameter 'body' is set
4273
+ if (body === undefined || body === null) {
4274
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';
4275
+ }
4261
4276
 
4262
4277
  return this.apiClient.callApi(
4263
4278
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/bulk',
@@ -4266,7 +4281,7 @@ class WorkforceManagementApi {
4266
4281
  { },
4267
4282
  { },
4268
4283
  { },
4269
- opts['body'],
4284
+ body,
4270
4285
  ['PureCloud OAuth'],
4271
4286
  ['application/json'],
4272
4287
  ['application/json']
@@ -4278,12 +4293,9 @@ class WorkforceManagementApi {
4278
4293
  * Updates time off limit object properties, but not daily values.
4279
4294
  * @param {String} managementUnitId The ID of the management unit.
4280
4295
  * @param {String} timeOffLimitId The id of time off limit object to update
4281
- * @param {Object} opts Optional parameters
4282
- * @param {Object} opts.body body
4296
+ * @param {Object} body body
4283
4297
  */
4284
- patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId, opts) {
4285
- opts = opts || {};
4286
-
4298
+ patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId, body) {
4287
4299
  // verify the required parameter 'managementUnitId' is set
4288
4300
  if (managementUnitId === undefined || managementUnitId === null) {
4289
4301
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
@@ -4292,6 +4304,10 @@ class WorkforceManagementApi {
4292
4304
  if (timeOffLimitId === undefined || timeOffLimitId === null) {
4293
4305
  throw 'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
4294
4306
  }
4307
+ // verify the required parameter 'body' is set
4308
+ if (body === undefined || body === null) {
4309
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeofflimit';
4310
+ }
4295
4311
 
4296
4312
  return this.apiClient.callApi(
4297
4313
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
@@ -4300,7 +4316,7 @@ class WorkforceManagementApi {
4300
4316
  { },
4301
4317
  { },
4302
4318
  { },
4303
- opts['body'],
4319
+ body,
4304
4320
  ['PureCloud OAuth'],
4305
4321
  ['application/json'],
4306
4322
  ['application/json']
@@ -4312,12 +4328,9 @@ class WorkforceManagementApi {
4312
4328
  *
4313
4329
  * @param {String} managementUnitId The ID of the management unit
4314
4330
  * @param {String} timeOffPlanId The ID of the time off plan to update
4315
- * @param {Object} opts Optional parameters
4316
- * @param {Object} opts.body body
4331
+ * @param {Object} body body
4317
4332
  */
4318
- patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId, opts) {
4319
- opts = opts || {};
4320
-
4333
+ patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId, body) {
4321
4334
  // verify the required parameter 'managementUnitId' is set
4322
4335
  if (managementUnitId === undefined || managementUnitId === null) {
4323
4336
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
@@ -4326,6 +4339,10 @@ class WorkforceManagementApi {
4326
4339
  if (timeOffPlanId === undefined || timeOffPlanId === null) {
4327
4340
  throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
4328
4341
  }
4342
+ // verify the required parameter 'body' is set
4343
+ if (body === undefined || body === null) {
4344
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeoffplan';
4345
+ }
4329
4346
 
4330
4347
  return this.apiClient.callApi(
4331
4348
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
@@ -4334,7 +4351,7 @@ class WorkforceManagementApi {
4334
4351
  { },
4335
4352
  { },
4336
4353
  { },
4337
- opts['body'],
4354
+ body,
4338
4355
  ['PureCloud OAuth'],
4339
4356
  ['application/json'],
4340
4357
  ['application/json']
@@ -4347,12 +4364,9 @@ class WorkforceManagementApi {
4347
4364
  * @param {String} managementUnitId The ID of the management unit.
4348
4365
  * @param {String} timeOffRequestId The ID of the time off request.
4349
4366
  * @param {String} userId The ID of user to whom the time off request belongs.
4350
- * @param {Object} opts Optional parameters
4351
- * @param {Object} opts.body body
4367
+ * @param {Object} body body
4352
4368
  */
4353
- patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId, timeOffRequestId, userId, opts) {
4354
- opts = opts || {};
4355
-
4369
+ patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId, timeOffRequestId, userId, body) {
4356
4370
  // verify the required parameter 'managementUnitId' is set
4357
4371
  if (managementUnitId === undefined || managementUnitId === null) {
4358
4372
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';
@@ -4365,6 +4379,10 @@ class WorkforceManagementApi {
4365
4379
  if (userId === undefined || userId === null) {
4366
4380
  throw 'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';
4367
4381
  }
4382
+ // verify the required parameter 'body' is set
4383
+ if (body === undefined || body === null) {
4384
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';
4385
+ }
4368
4386
 
4369
4387
  return this.apiClient.callApi(
4370
4388
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/{timeOffRequestId}/users/{userId}/integrationstatus',
@@ -4373,7 +4391,7 @@ class WorkforceManagementApi {
4373
4391
  { },
4374
4392
  { },
4375
4393
  { },
4376
- opts['body'],
4394
+ body,
4377
4395
  ['PureCloud OAuth'],
4378
4396
  ['application/json'],
4379
4397
  ['application/json']
@@ -4386,12 +4404,9 @@ class WorkforceManagementApi {
4386
4404
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
4387
4405
  * @param {String} userId The id of the user the requested time off request belongs to
4388
4406
  * @param {String} timeOffRequestId The id of the time off request to update
4389
- * @param {Object} opts Optional parameters
4390
- * @param {Object} opts.body body
4407
+ * @param {Object} body body
4391
4408
  */
4392
- patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId, userId, timeOffRequestId, opts) {
4393
- opts = opts || {};
4394
-
4409
+ patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId, userId, timeOffRequestId, body) {
4395
4410
  // verify the required parameter 'managementUnitId' is set
4396
4411
  if (managementUnitId === undefined || managementUnitId === null) {
4397
4412
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';
@@ -4404,6 +4419,10 @@ class WorkforceManagementApi {
4404
4419
  if (timeOffRequestId === undefined || timeOffRequestId === null) {
4405
4420
  throw 'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';
4406
4421
  }
4422
+ // verify the required parameter 'body' is set
4423
+ if (body === undefined || body === null) {
4424
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';
4425
+ }
4407
4426
 
4408
4427
  return this.apiClient.callApi(
4409
4428
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}',
@@ -4412,7 +4431,7 @@ class WorkforceManagementApi {
4412
4431
  { },
4413
4432
  { },
4414
4433
  { },
4415
- opts['body'],
4434
+ body,
4416
4435
  ['PureCloud OAuth'],
4417
4436
  ['application/json'],
4418
4437
  ['application/json']
@@ -4464,11 +4483,11 @@ class WorkforceManagementApi {
4464
4483
  *
4465
4484
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
4466
4485
  * @param {String} workPlanId The ID of the work plan to update
4486
+ * @param {Object} body body
4467
4487
  * @param {Object} opts Optional parameters
4468
4488
  * @param {Object} opts.validationMode Allows to update work plan even if validation result is invalid
4469
- * @param {Object} opts.body body
4470
4489
  */
4471
- patchWorkforcemanagementManagementunitWorkplan(managementUnitId, workPlanId, opts) {
4490
+ patchWorkforcemanagementManagementunitWorkplan(managementUnitId, workPlanId, body, opts) {
4472
4491
  opts = opts || {};
4473
4492
 
4474
4493
  // verify the required parameter 'managementUnitId' is set
@@ -4479,6 +4498,10 @@ class WorkforceManagementApi {
4479
4498
  if (workPlanId === undefined || workPlanId === null) {
4480
4499
  throw 'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';
4481
4500
  }
4501
+ // verify the required parameter 'body' is set
4502
+ if (body === undefined || body === null) {
4503
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWorkplan';
4504
+ }
4482
4505
 
4483
4506
  return this.apiClient.callApi(
4484
4507
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}',
@@ -4487,7 +4510,7 @@ class WorkforceManagementApi {
4487
4510
  { 'validationMode': opts['validationMode'] },
4488
4511
  { },
4489
4512
  { },
4490
- opts['body'],
4513
+ body,
4491
4514
  ['PureCloud OAuth'],
4492
4515
  ['application/json'],
4493
4516
  ['application/json']
@@ -4499,12 +4522,9 @@ class WorkforceManagementApi {
4499
4522
  *
4500
4523
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
4501
4524
  * @param {String} workPlanRotationId The ID of the work plan rotation to update
4502
- * @param {Object} opts Optional parameters
4503
- * @param {Object} opts.body body
4525
+ * @param {Object} body body
4504
4526
  */
4505
- patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId, workPlanRotationId, opts) {
4506
- opts = opts || {};
4507
-
4527
+ patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId, workPlanRotationId, body) {
4508
4528
  // verify the required parameter 'managementUnitId' is set
4509
4529
  if (managementUnitId === undefined || managementUnitId === null) {
4510
4530
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';
@@ -4513,6 +4533,10 @@ class WorkforceManagementApi {
4513
4533
  if (workPlanRotationId === undefined || workPlanRotationId === null) {
4514
4534
  throw 'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';
4515
4535
  }
4536
+ // verify the required parameter 'body' is set
4537
+ if (body === undefined || body === null) {
4538
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWorkplanrotation';
4539
+ }
4516
4540
 
4517
4541
  return this.apiClient.callApi(
4518
4542
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}',
@@ -4521,7 +4545,7 @@ class WorkforceManagementApi {
4521
4545
  { },
4522
4546
  { },
4523
4547
  { },
4524
- opts['body'],
4548
+ body,
4525
4549
  ['PureCloud OAuth'],
4526
4550
  ['application/json'],
4527
4551
  ['application/json']
@@ -4532,16 +4556,17 @@ class WorkforceManagementApi {
4532
4556
  * Update a time off request for the current user
4533
4557
  *
4534
4558
  * @param {String} timeOffRequestId The ID of the time off request
4535
- * @param {Object} opts Optional parameters
4536
- * @param {Object} opts.body body
4559
+ * @param {Object} body body
4537
4560
  */
4538
- patchWorkforcemanagementTimeoffrequest(timeOffRequestId, opts) {
4539
- opts = opts || {};
4540
-
4561
+ patchWorkforcemanagementTimeoffrequest(timeOffRequestId, body) {
4541
4562
  // verify the required parameter 'timeOffRequestId' is set
4542
4563
  if (timeOffRequestId === undefined || timeOffRequestId === null) {
4543
4564
  throw 'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';
4544
4565
  }
4566
+ // verify the required parameter 'body' is set
4567
+ if (body === undefined || body === null) {
4568
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';
4569
+ }
4545
4570
 
4546
4571
  return this.apiClient.callApi(
4547
4572
  '/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}',
@@ -4550,7 +4575,7 @@ class WorkforceManagementApi {
4550
4575
  { },
4551
4576
  { },
4552
4577
  { },
4553
- opts['body'],
4578
+ body,
4554
4579
  ['PureCloud OAuth'],
4555
4580
  ['application/json'],
4556
4581
  ['application/json']
@@ -4561,16 +4586,17 @@ class WorkforceManagementApi {
4561
4586
  * Update work plan bid ranks for a user
4562
4587
  *
4563
4588
  * @param {String} userId The userId to whom the work plan bid ranks apply.
4564
- * @param {Object} opts Optional parameters
4565
- * @param {Object} opts.body body
4589
+ * @param {Object} body body
4566
4590
  */
4567
- patchWorkforcemanagementUserWorkplanbidranks(userId, opts) {
4568
- opts = opts || {};
4569
-
4591
+ patchWorkforcemanagementUserWorkplanbidranks(userId, body) {
4570
4592
  // verify the required parameter 'userId' is set
4571
4593
  if (userId === undefined || userId === null) {
4572
4594
  throw 'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';
4573
4595
  }
4596
+ // verify the required parameter 'body' is set
4597
+ if (body === undefined || body === null) {
4598
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';
4599
+ }
4574
4600
 
4575
4601
  return this.apiClient.callApi(
4576
4602
  '/api/v2/workforcemanagement/users/{userId}/workplanbidranks',
@@ -4579,7 +4605,7 @@ class WorkforceManagementApi {
4579
4605
  { },
4580
4606
  { },
4581
4607
  { },
4582
- opts['body'],
4608
+ body,
4583
4609
  ['PureCloud OAuth'],
4584
4610
  ['application/json'],
4585
4611
  ['application/json']
@@ -4615,16 +4641,17 @@ class WorkforceManagementApi {
4615
4641
  * Update an agent's work plan bidding preference
4616
4642
  *
4617
4643
  * @param {String} bidId The ID of the work plan bid
4618
- * @param {Object} opts Optional parameters
4619
- * @param {Object} opts.body body
4644
+ * @param {Object} body body
4620
4645
  */
4621
- patchWorkforcemanagementWorkplanbidPreferences(bidId, opts) {
4622
- opts = opts || {};
4623
-
4646
+ patchWorkforcemanagementWorkplanbidPreferences(bidId, body) {
4624
4647
  // verify the required parameter 'bidId' is set
4625
4648
  if (bidId === undefined || bidId === null) {
4626
4649
  throw 'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';
4627
4650
  }
4651
+ // verify the required parameter 'body' is set
4652
+ if (body === undefined || body === null) {
4653
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';
4654
+ }
4628
4655
 
4629
4656
  return this.apiClient.callApi(
4630
4657
  '/api/v2/workforcemanagement/workplanbids/{bidId}/preferences',
@@ -4633,7 +4660,7 @@ class WorkforceManagementApi {
4633
4660
  { },
4634
4661
  { },
4635
4662
  { },
4636
- opts['body'],
4663
+ body,
4637
4664
  ['PureCloud OAuth'],
4638
4665
  ['application/json'],
4639
4666
  ['application/json']
@@ -4723,12 +4750,13 @@ class WorkforceManagementApi {
4723
4750
  /**
4724
4751
  * Request a historical adherence report in bulk
4725
4752
  *
4726
- * @param {Object} opts Optional parameters
4727
- * @param {Object} opts.body body
4753
+ * @param {Object} body body
4728
4754
  */
4729
- postWorkforcemanagementAdherenceHistoricalBulk(opts) {
4730
- opts = opts || {};
4731
-
4755
+ postWorkforcemanagementAdherenceHistoricalBulk(body) {
4756
+ // verify the required parameter 'body' is set
4757
+ if (body === undefined || body === null) {
4758
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceHistoricalBulk';
4759
+ }
4732
4760
 
4733
4761
  return this.apiClient.callApi(
4734
4762
  '/api/v2/workforcemanagement/adherence/historical/bulk',
@@ -4737,7 +4765,7 @@ class WorkforceManagementApi {
4737
4765
  { },
4738
4766
  { },
4739
4767
  { },
4740
- opts['body'],
4768
+ body,
4741
4769
  ['PureCloud OAuth'],
4742
4770
  ['application/json'],
4743
4771
  ['application/json']
@@ -4812,12 +4840,13 @@ class WorkforceManagementApi {
4812
4840
  /**
4813
4841
  * Move agents in and out of management unit
4814
4842
  *
4815
- * @param {Object} opts Optional parameters
4816
- * @param {Object} opts.body body
4843
+ * @param {Object} body body
4817
4844
  */
4818
- postWorkforcemanagementAgents(opts) {
4819
- opts = opts || {};
4820
-
4845
+ postWorkforcemanagementAgents(body) {
4846
+ // verify the required parameter 'body' is set
4847
+ if (body === undefined || body === null) {
4848
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementAgents';
4849
+ }
4821
4850
 
4822
4851
  return this.apiClient.callApi(
4823
4852
  '/api/v2/workforcemanagement/agents',
@@ -4826,7 +4855,7 @@ class WorkforceManagementApi {
4826
4855
  { },
4827
4856
  { },
4828
4857
  { },
4829
- opts['body'],
4858
+ body,
4830
4859
  ['PureCloud OAuth'],
4831
4860
  ['application/json'],
4832
4861
  ['application/json']
@@ -4836,12 +4865,13 @@ class WorkforceManagementApi {
4836
4865
  /**
4837
4866
  * Query integrations for agents
4838
4867
  *
4839
- * @param {Object} opts Optional parameters
4840
- * @param {Object} opts.body body
4868
+ * @param {Object} body body
4841
4869
  */
4842
- postWorkforcemanagementAgentsIntegrationsHrisQuery(opts) {
4843
- opts = opts || {};
4844
-
4870
+ postWorkforcemanagementAgentsIntegrationsHrisQuery(body) {
4871
+ // verify the required parameter 'body' is set
4872
+ if (body === undefined || body === null) {
4873
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementAgentsIntegrationsHrisQuery';
4874
+ }
4845
4875
 
4846
4876
  return this.apiClient.callApi(
4847
4877
  '/api/v2/workforcemanagement/agents/integrations/hris/query',
@@ -4850,7 +4880,7 @@ class WorkforceManagementApi {
4850
4880
  { },
4851
4881
  { },
4852
4882
  { },
4853
- opts['body'],
4883
+ body,
4854
4884
  ['PureCloud OAuth'],
4855
4885
  ['application/json'],
4856
4886
  ['application/json']
@@ -4885,12 +4915,13 @@ class WorkforceManagementApi {
4885
4915
  /**
4886
4916
  * Get published schedule for the current user
4887
4917
  *
4888
- * @param {Object} opts Optional parameters
4889
- * @param {Object} opts.body body
4918
+ * @param {Object} body body
4890
4919
  */
4891
- postWorkforcemanagementAgentschedulesMine(opts) {
4892
- opts = opts || {};
4893
-
4920
+ postWorkforcemanagementAgentschedulesMine(body) {
4921
+ // verify the required parameter 'body' is set
4922
+ if (body === undefined || body === null) {
4923
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesMine';
4924
+ }
4894
4925
 
4895
4926
  return this.apiClient.callApi(
4896
4927
  '/api/v2/workforcemanagement/agentschedules/mine',
@@ -4899,7 +4930,7 @@ class WorkforceManagementApi {
4899
4930
  { },
4900
4931
  { },
4901
4932
  { },
4902
- opts['body'],
4933
+ body,
4903
4934
  ['PureCloud OAuth'],
4904
4935
  ['application/json'],
4905
4936
  ['application/json']
@@ -4985,16 +5016,17 @@ class WorkforceManagementApi {
4985
5016
  * Create a new activity code
4986
5017
  *
4987
5018
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
4988
- * @param {Object} opts Optional parameters
4989
- * @param {Object} opts.body body
5019
+ * @param {Object} body body
4990
5020
  */
4991
- postWorkforcemanagementBusinessunitActivitycodes(businessUnitId, opts) {
4992
- opts = opts || {};
4993
-
5021
+ postWorkforcemanagementBusinessunitActivitycodes(businessUnitId, body) {
4994
5022
  // verify the required parameter 'businessUnitId' is set
4995
5023
  if (businessUnitId === undefined || businessUnitId === null) {
4996
5024
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';
4997
5025
  }
5026
+ // verify the required parameter 'body' is set
5027
+ if (body === undefined || body === null) {
5028
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';
5029
+ }
4998
5030
 
4999
5031
  return this.apiClient.callApi(
5000
5032
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes',
@@ -5003,7 +5035,7 @@ class WorkforceManagementApi {
5003
5035
  { },
5004
5036
  { },
5005
5037
  { },
5006
- opts['body'],
5038
+ body,
5007
5039
  ['PureCloud OAuth'],
5008
5040
  ['application/json'],
5009
5041
  ['application/json']
@@ -5109,18 +5141,22 @@ class WorkforceManagementApi {
5109
5141
  * Search published schedules
5110
5142
  *
5111
5143
  * @param {String} businessUnitId The ID of the business unit
5144
+ * @param {Object} body body
5112
5145
  * @param {Object} opts Optional parameters
5113
5146
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
5114
5147
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
5115
- * @param {Object} opts.body body
5116
5148
  */
5117
- postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId, opts) {
5149
+ postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId, body, opts) {
5118
5150
  opts = opts || {};
5119
5151
 
5120
5152
  // verify the required parameter 'businessUnitId' is set
5121
5153
  if (businessUnitId === undefined || businessUnitId === null) {
5122
5154
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';
5123
5155
  }
5156
+ // verify the required parameter 'body' is set
5157
+ if (body === undefined || body === null) {
5158
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';
5159
+ }
5124
5160
 
5125
5161
  return this.apiClient.callApi(
5126
5162
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search',
@@ -5129,7 +5165,7 @@ class WorkforceManagementApi {
5129
5165
  { 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
5130
5166
  { },
5131
5167
  { },
5132
- opts['body'],
5168
+ body,
5133
5169
  ['PureCloud OAuth'],
5134
5170
  ['application/json'],
5135
5171
  ['application/json']
@@ -5174,17 +5210,21 @@ class WorkforceManagementApi {
5174
5210
  * Get intraday data for the given date for the requested planningGroupIds
5175
5211
  *
5176
5212
  * @param {String} businessUnitId The ID of the business unit
5213
+ * @param {Object} body body
5177
5214
  * @param {Object} opts Optional parameters
5178
5215
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
5179
- * @param {Object} opts.body body
5180
5216
  */
5181
- postWorkforcemanagementBusinessunitIntraday(businessUnitId, opts) {
5217
+ postWorkforcemanagementBusinessunitIntraday(businessUnitId, body, opts) {
5182
5218
  opts = opts || {};
5183
5219
 
5184
5220
  // verify the required parameter 'businessUnitId' is set
5185
5221
  if (businessUnitId === undefined || businessUnitId === null) {
5186
5222
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';
5187
5223
  }
5224
+ // verify the required parameter 'body' is set
5225
+ if (body === undefined || body === null) {
5226
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';
5227
+ }
5188
5228
 
5189
5229
  return this.apiClient.callApi(
5190
5230
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday',
@@ -5193,7 +5233,7 @@ class WorkforceManagementApi {
5193
5233
  { 'forceAsync': opts['forceAsync'] },
5194
5234
  { },
5195
5235
  { },
5196
- opts['body'],
5236
+ body,
5197
5237
  ['PureCloud OAuth'],
5198
5238
  ['application/json'],
5199
5239
  ['application/json']
@@ -5204,16 +5244,17 @@ class WorkforceManagementApi {
5204
5244
  * Adds a new planning group
5205
5245
  *
5206
5246
  * @param {String} businessUnitId The ID of the business unit.
5207
- * @param {Object} opts Optional parameters
5208
- * @param {Object} opts.body body
5247
+ * @param {Object} body body
5209
5248
  */
5210
- postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId, opts) {
5211
- opts = opts || {};
5212
-
5249
+ postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId, body) {
5213
5250
  // verify the required parameter 'businessUnitId' is set
5214
5251
  if (businessUnitId === undefined || businessUnitId === null) {
5215
5252
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';
5216
5253
  }
5254
+ // verify the required parameter 'body' is set
5255
+ if (body === undefined || body === null) {
5256
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';
5257
+ }
5217
5258
 
5218
5259
  return this.apiClient.callApi(
5219
5260
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups',
@@ -5222,7 +5263,7 @@ class WorkforceManagementApi {
5222
5263
  { },
5223
5264
  { },
5224
5265
  { },
5225
- opts['body'],
5266
+ body,
5226
5267
  ['PureCloud OAuth'],
5227
5268
  ['application/json'],
5228
5269
  ['application/json']
@@ -5233,16 +5274,17 @@ class WorkforceManagementApi {
5233
5274
  * Adds a new service goal template
5234
5275
  *
5235
5276
  * @param {String} businessUnitId The ID of the business unit.
5236
- * @param {Object} opts Optional parameters
5237
- * @param {Object} opts.body body
5277
+ * @param {Object} body body
5238
5278
  */
5239
- postWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId, opts) {
5240
- opts = opts || {};
5241
-
5279
+ postWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId, body) {
5242
5280
  // verify the required parameter 'businessUnitId' is set
5243
5281
  if (businessUnitId === undefined || businessUnitId === null) {
5244
5282
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';
5245
5283
  }
5284
+ // verify the required parameter 'body' is set
5285
+ if (body === undefined || body === null) {
5286
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';
5287
+ }
5246
5288
 
5247
5289
  return this.apiClient.callApi(
5248
5290
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates',
@@ -5251,7 +5293,7 @@ class WorkforceManagementApi {
5251
5293
  { },
5252
5294
  { },
5253
5295
  { },
5254
- opts['body'],
5296
+ body,
5255
5297
  ['PureCloud OAuth'],
5256
5298
  ['application/json'],
5257
5299
  ['application/json']
@@ -5262,16 +5304,17 @@ class WorkforceManagementApi {
5262
5304
  * Creates a new staffing group
5263
5305
  *
5264
5306
  * @param {String} businessUnitId The ID of the business unit
5265
- * @param {Object} opts Optional parameters
5266
- * @param {Object} opts.body body
5307
+ * @param {Object} body body
5267
5308
  */
5268
- postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId, opts) {
5269
- opts = opts || {};
5270
-
5309
+ postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId, body) {
5271
5310
  // verify the required parameter 'businessUnitId' is set
5272
5311
  if (businessUnitId === undefined || businessUnitId === null) {
5273
5312
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';
5274
5313
  }
5314
+ // verify the required parameter 'body' is set
5315
+ if (body === undefined || body === null) {
5316
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';
5317
+ }
5275
5318
 
5276
5319
  return this.apiClient.callApi(
5277
5320
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups',
@@ -5280,7 +5323,7 @@ class WorkforceManagementApi {
5280
5323
  { },
5281
5324
  { },
5282
5325
  { },
5283
- opts['body'],
5326
+ body,
5284
5327
  ['PureCloud OAuth'],
5285
5328
  ['application/json'],
5286
5329
  ['application/json']
@@ -5291,16 +5334,17 @@ class WorkforceManagementApi {
5291
5334
  * Gets staffing group associations for a list of user IDs
5292
5335
  *
5293
5336
  * @param {String} businessUnitId The ID of the business unit
5294
- * @param {Object} opts Optional parameters
5295
- * @param {Object} opts.body body
5337
+ * @param {Object} body body
5296
5338
  */
5297
- postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId, opts) {
5298
- opts = opts || {};
5299
-
5339
+ postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId, body) {
5300
5340
  // verify the required parameter 'businessUnitId' is set
5301
5341
  if (businessUnitId === undefined || businessUnitId === null) {
5302
5342
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';
5303
5343
  }
5344
+ // verify the required parameter 'body' is set
5345
+ if (body === undefined || body === null) {
5346
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';
5347
+ }
5304
5348
 
5305
5349
  return this.apiClient.callApi(
5306
5350
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query',
@@ -5309,7 +5353,7 @@ class WorkforceManagementApi {
5309
5353
  { },
5310
5354
  { },
5311
5355
  { },
5312
- opts['body'],
5356
+ body,
5313
5357
  ['PureCloud OAuth'],
5314
5358
  ['application/json'],
5315
5359
  ['application/json']
@@ -5320,16 +5364,17 @@ class WorkforceManagementApi {
5320
5364
  * Creates a new time-off limit object
5321
5365
  *
5322
5366
  * @param {String} businessUnitId The ID of the business unit
5323
- * @param {Object} opts Optional parameters
5324
- * @param {Object} opts.body body
5367
+ * @param {Object} body body
5325
5368
  */
5326
- postWorkforcemanagementBusinessunitTimeofflimits(businessUnitId, opts) {
5327
- opts = opts || {};
5328
-
5369
+ postWorkforcemanagementBusinessunitTimeofflimits(businessUnitId, body) {
5329
5370
  // verify the required parameter 'businessUnitId' is set
5330
5371
  if (businessUnitId === undefined || businessUnitId === null) {
5331
5372
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';
5332
5373
  }
5374
+ // verify the required parameter 'body' is set
5375
+ if (body === undefined || body === null) {
5376
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';
5377
+ }
5333
5378
 
5334
5379
  return this.apiClient.callApi(
5335
5380
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits',
@@ -5338,7 +5383,7 @@ class WorkforceManagementApi {
5338
5383
  { },
5339
5384
  { },
5340
5385
  { },
5341
- opts['body'],
5386
+ body,
5342
5387
  ['PureCloud OAuth'],
5343
5388
  ['application/json'],
5344
5389
  ['application/json']
@@ -5349,16 +5394,17 @@ class WorkforceManagementApi {
5349
5394
  * Retrieves time-off limit related values based on a given set of filters.
5350
5395
  *
5351
5396
  * @param {String} businessUnitId The ID of the business unit
5352
- * @param {Object} opts Optional parameters
5353
- * @param {Object} opts.body body
5397
+ * @param {Object} body body
5354
5398
  */
5355
- postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(businessUnitId, opts) {
5356
- opts = opts || {};
5357
-
5399
+ postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(businessUnitId, body) {
5358
5400
  // verify the required parameter 'businessUnitId' is set
5359
5401
  if (businessUnitId === undefined || businessUnitId === null) {
5360
5402
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';
5361
5403
  }
5404
+ // verify the required parameter 'body' is set
5405
+ if (body === undefined || body === null) {
5406
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';
5407
+ }
5362
5408
 
5363
5409
  return this.apiClient.callApi(
5364
5410
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/values/query',
@@ -5367,7 +5413,7 @@ class WorkforceManagementApi {
5367
5413
  { },
5368
5414
  { },
5369
5415
  { },
5370
- opts['body'],
5416
+ body,
5371
5417
  ['PureCloud OAuth'],
5372
5418
  ['application/json'],
5373
5419
  ['application/json']
@@ -5378,16 +5424,17 @@ class WorkforceManagementApi {
5378
5424
  * Creates a new time-off plan
5379
5425
  *
5380
5426
  * @param {String} businessUnitId The ID of the business unit
5381
- * @param {Object} opts Optional parameters
5382
- * @param {Object} opts.body body
5427
+ * @param {Object} body body
5383
5428
  */
5384
- postWorkforcemanagementBusinessunitTimeoffplans(businessUnitId, opts) {
5385
- opts = opts || {};
5386
-
5429
+ postWorkforcemanagementBusinessunitTimeoffplans(businessUnitId, body) {
5387
5430
  // verify the required parameter 'businessUnitId' is set
5388
5431
  if (businessUnitId === undefined || businessUnitId === null) {
5389
5432
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';
5390
5433
  }
5434
+ // verify the required parameter 'body' is set
5435
+ if (body === undefined || body === null) {
5436
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';
5437
+ }
5391
5438
 
5392
5439
  return this.apiClient.callApi(
5393
5440
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans',
@@ -5396,7 +5443,7 @@ class WorkforceManagementApi {
5396
5443
  { },
5397
5444
  { },
5398
5445
  { },
5399
- opts['body'],
5446
+ body,
5400
5447
  ['PureCloud OAuth'],
5401
5448
  ['application/json'],
5402
5449
  ['application/json']
@@ -5494,12 +5541,9 @@ class WorkforceManagementApi {
5494
5541
  * @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
5495
5542
  * @param {String} weekId First day of schedule week in yyyy-MM-dd format
5496
5543
  * @param {String} scheduleId The ID of the schedule the performance prediction belongs to
5497
- * @param {Object} opts Optional parameters
5498
- * @param {Object} opts.body body
5544
+ * @param {Object} body body
5499
5545
  */
5500
- postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId, weekId, scheduleId, opts) {
5501
- opts = opts || {};
5502
-
5546
+ postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId, weekId, scheduleId, body) {
5503
5547
  // verify the required parameter 'businessUnitId' is set
5504
5548
  if (businessUnitId === undefined || businessUnitId === null) {
5505
5549
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';
@@ -5512,6 +5556,10 @@ class WorkforceManagementApi {
5512
5556
  if (scheduleId === undefined || scheduleId === null) {
5513
5557
  throw 'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';
5514
5558
  }
5559
+ // verify the required parameter 'body' is set
5560
+ if (body === undefined || body === null) {
5561
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';
5562
+ }
5515
5563
 
5516
5564
  return this.apiClient.callApi(
5517
5565
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations',
@@ -5520,7 +5568,7 @@ class WorkforceManagementApi {
5520
5568
  { },
5521
5569
  { },
5522
5570
  { },
5523
- opts['body'],
5571
+ body,
5524
5572
  ['PureCloud OAuth'],
5525
5573
  ['application/json'],
5526
5574
  ['application/json']
@@ -5533,12 +5581,9 @@ class WorkforceManagementApi {
5533
5581
  * @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
5534
5582
  * @param {String} weekId First day of schedule week in yyyy-MM-dd format
5535
5583
  * @param {String} scheduleId The ID of the schedule the performance prediction belongs to
5536
- * @param {Object} opts Optional parameters
5537
- * @param {Object} opts.body body
5584
+ * @param {Object} body body
5538
5585
  */
5539
- postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId, weekId, scheduleId, opts) {
5540
- opts = opts || {};
5541
-
5586
+ postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId, weekId, scheduleId, body) {
5542
5587
  // verify the required parameter 'businessUnitId' is set
5543
5588
  if (businessUnitId === undefined || businessUnitId === null) {
5544
5589
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';
@@ -5551,6 +5596,10 @@ class WorkforceManagementApi {
5551
5596
  if (scheduleId === undefined || scheduleId === null) {
5552
5597
  throw 'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';
5553
5598
  }
5599
+ // verify the required parameter 'body' is set
5600
+ if (body === undefined || body === null) {
5601
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';
5602
+ }
5554
5603
 
5555
5604
  return this.apiClient.callApi(
5556
5605
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/uploadurl',
@@ -5559,7 +5608,7 @@ class WorkforceManagementApi {
5559
5608
  { },
5560
5609
  { },
5561
5610
  { },
5562
- opts['body'],
5611
+ body,
5563
5612
  ['PureCloud OAuth'],
5564
5613
  ['application/json'],
5565
5614
  ['application/json']
@@ -6018,12 +6067,9 @@ class WorkforceManagementApi {
6018
6067
  *
6019
6068
  * @param {String} businessUnitId The ID of the business unit
6020
6069
  * @param {String} bidId The work plan bid id of the bid groups
6021
- * @param {Object} opts Optional parameters
6022
- * @param {Object} opts.body body
6070
+ * @param {Object} body body
6023
6071
  */
6024
- postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId, bidId, opts) {
6025
- opts = opts || {};
6026
-
6072
+ postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId, bidId, body) {
6027
6073
  // verify the required parameter 'businessUnitId' is set
6028
6074
  if (businessUnitId === undefined || businessUnitId === null) {
6029
6075
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';
@@ -6032,6 +6078,10 @@ class WorkforceManagementApi {
6032
6078
  if (bidId === undefined || bidId === null) {
6033
6079
  throw 'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';
6034
6080
  }
6081
+ // verify the required parameter 'body' is set
6082
+ if (body === undefined || body === null) {
6083
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';
6084
+ }
6035
6085
 
6036
6086
  return this.apiClient.callApi(
6037
6087
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups',
@@ -6040,7 +6090,7 @@ class WorkforceManagementApi {
6040
6090
  { },
6041
6091
  { },
6042
6092
  { },
6043
- opts['body'],
6093
+ body,
6044
6094
  ['PureCloud OAuth'],
6045
6095
  ['application/json'],
6046
6096
  ['application/json']
@@ -6051,16 +6101,17 @@ class WorkforceManagementApi {
6051
6101
  * Create a new work plan bid
6052
6102
  *
6053
6103
  * @param {String} businessUnitId The ID of the business unit
6054
- * @param {Object} opts Optional parameters
6055
- * @param {Object} opts.body The work plan bid to be created
6104
+ * @param {Object} body The work plan bid to be created
6056
6105
  */
6057
- postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId, opts) {
6058
- opts = opts || {};
6059
-
6106
+ postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId, body) {
6060
6107
  // verify the required parameter 'businessUnitId' is set
6061
6108
  if (businessUnitId === undefined || businessUnitId === null) {
6062
6109
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';
6063
6110
  }
6111
+ // verify the required parameter 'body' is set
6112
+ if (body === undefined || body === null) {
6113
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';
6114
+ }
6064
6115
 
6065
6116
  return this.apiClient.callApi(
6066
6117
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids',
@@ -6069,7 +6120,7 @@ class WorkforceManagementApi {
6069
6120
  { },
6070
6121
  { },
6071
6122
  { },
6072
- opts['body'],
6123
+ body,
6073
6124
  ['PureCloud OAuth'],
6074
6125
  ['application/json'],
6075
6126
  ['application/json']
@@ -6079,12 +6130,13 @@ class WorkforceManagementApi {
6079
6130
  /**
6080
6131
  * Add a new business unit
6081
6132
  * It may take a minute or two for a new business unit to be available for api operations
6082
- * @param {Object} opts Optional parameters
6083
- * @param {Object} opts.body body
6133
+ * @param {Object} body body
6084
6134
  */
6085
- postWorkforcemanagementBusinessunits(opts) {
6086
- opts = opts || {};
6087
-
6135
+ postWorkforcemanagementBusinessunits(body) {
6136
+ // verify the required parameter 'body' is set
6137
+ if (body === undefined || body === null) {
6138
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';
6139
+ }
6088
6140
 
6089
6141
  return this.apiClient.callApi(
6090
6142
  '/api/v2/workforcemanagement/businessunits',
@@ -6093,7 +6145,7 @@ class WorkforceManagementApi {
6093
6145
  { },
6094
6146
  { },
6095
6147
  { },
6096
- opts['body'],
6148
+ body,
6097
6149
  ['PureCloud OAuth'],
6098
6150
  ['application/json'],
6099
6151
  ['application/json']
@@ -6127,12 +6179,13 @@ class WorkforceManagementApi {
6127
6179
  /**
6128
6180
  * Delete the list of the historical data import entries
6129
6181
  *
6130
- * @param {Object} opts Optional parameters
6131
- * @param {Object} opts.body body
6182
+ * @param {Object} body body
6132
6183
  */
6133
- postWorkforcemanagementHistoricaldataBulkRemoveJobs(opts) {
6134
- opts = opts || {};
6135
-
6184
+ postWorkforcemanagementHistoricaldataBulkRemoveJobs(body) {
6185
+ // verify the required parameter 'body' is set
6186
+ if (body === undefined || body === null) {
6187
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementHistoricaldataBulkRemoveJobs';
6188
+ }
6136
6189
 
6137
6190
  return this.apiClient.callApi(
6138
6191
  '/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs',
@@ -6141,7 +6194,7 @@ class WorkforceManagementApi {
6141
6194
  { },
6142
6195
  { },
6143
6196
  { },
6144
- opts['body'],
6197
+ body,
6145
6198
  ['PureCloud OAuth'],
6146
6199
  ['application/json'],
6147
6200
  ['application/json']
@@ -6172,12 +6225,13 @@ class WorkforceManagementApi {
6172
6225
  /**
6173
6226
  * Trigger validation process for historical import
6174
6227
  *
6175
- * @param {Object} opts Optional parameters
6176
- * @param {Object} opts.body body
6228
+ * @param {Object} body body
6177
6229
  */
6178
- postWorkforcemanagementHistoricaldataValidate(opts) {
6179
- opts = opts || {};
6180
-
6230
+ postWorkforcemanagementHistoricaldataValidate(body) {
6231
+ // verify the required parameter 'body' is set
6232
+ if (body === undefined || body === null) {
6233
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementHistoricaldataValidate';
6234
+ }
6181
6235
 
6182
6236
  return this.apiClient.callApi(
6183
6237
  '/api/v2/workforcemanagement/historicaldata/validate',
@@ -6186,7 +6240,7 @@ class WorkforceManagementApi {
6186
6240
  { },
6187
6241
  { },
6188
6242
  { },
6189
- opts['body'],
6243
+ body,
6190
6244
  ['PureCloud OAuth'],
6191
6245
  ['application/json'],
6192
6246
  ['application/json']
@@ -6222,17 +6276,21 @@ class WorkforceManagementApi {
6222
6276
  * Get agents work plans configuration
6223
6277
  *
6224
6278
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6279
+ * @param {Object} body body
6225
6280
  * @param {Object} opts Optional parameters
6226
6281
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
6227
- * @param {Object} opts.body body
6228
6282
  */
6229
- postWorkforcemanagementManagementunitAgentsWorkplansQuery(managementUnitId, opts) {
6283
+ postWorkforcemanagementManagementunitAgentsWorkplansQuery(managementUnitId, body, opts) {
6230
6284
  opts = opts || {};
6231
6285
 
6232
6286
  // verify the required parameter 'managementUnitId' is set
6233
6287
  if (managementUnitId === undefined || managementUnitId === null) {
6234
6288
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';
6235
6289
  }
6290
+ // verify the required parameter 'body' is set
6291
+ if (body === undefined || body === null) {
6292
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';
6293
+ }
6236
6294
 
6237
6295
  return this.apiClient.callApi(
6238
6296
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/query',
@@ -6241,7 +6299,7 @@ class WorkforceManagementApi {
6241
6299
  { 'forceDownloadService': opts['forceDownloadService'] },
6242
6300
  { },
6243
6301
  { },
6244
- opts['body'],
6302
+ body,
6245
6303
  ['PureCloud OAuth'],
6246
6304
  ['application/json'],
6247
6305
  ['application/json']
@@ -6252,18 +6310,22 @@ class WorkforceManagementApi {
6252
6310
  * Query published schedules for given given time range for set of users
6253
6311
  *
6254
6312
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6313
+ * @param {Object} body body
6255
6314
  * @param {Object} opts Optional parameters
6256
6315
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
6257
6316
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
6258
- * @param {Object} opts.body body
6259
6317
  */
6260
- postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId, opts) {
6318
+ postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId, body, opts) {
6261
6319
  opts = opts || {};
6262
6320
 
6263
6321
  // verify the required parameter 'managementUnitId' is set
6264
6322
  if (managementUnitId === undefined || managementUnitId === null) {
6265
6323
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';
6266
6324
  }
6325
+ // verify the required parameter 'body' is set
6326
+ if (body === undefined || body === null) {
6327
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';
6328
+ }
6267
6329
 
6268
6330
  return this.apiClient.callApi(
6269
6331
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search',
@@ -6272,7 +6334,7 @@ class WorkforceManagementApi {
6272
6334
  { 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
6273
6335
  { },
6274
6336
  { },
6275
- opts['body'],
6337
+ body,
6276
6338
  ['PureCloud OAuth'],
6277
6339
  ['application/json'],
6278
6340
  ['application/json']
@@ -6283,16 +6345,17 @@ class WorkforceManagementApi {
6283
6345
  * Request a historical adherence report
6284
6346
  * The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
6285
6347
  * @param {String} managementUnitId The ID of the management unit
6286
- * @param {Object} opts Optional parameters
6287
- * @param {Object} opts.body body
6348
+ * @param {Object} body body
6288
6349
  */
6289
- postWorkforcemanagementManagementunitHistoricaladherencequery(managementUnitId, opts) {
6290
- opts = opts || {};
6291
-
6350
+ postWorkforcemanagementManagementunitHistoricaladherencequery(managementUnitId, body) {
6292
6351
  // verify the required parameter 'managementUnitId' is set
6293
6352
  if (managementUnitId === undefined || managementUnitId === null) {
6294
6353
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';
6295
6354
  }
6355
+ // verify the required parameter 'body' is set
6356
+ if (body === undefined || body === null) {
6357
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';
6358
+ }
6296
6359
 
6297
6360
  return this.apiClient.callApi(
6298
6361
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery',
@@ -6301,7 +6364,7 @@ class WorkforceManagementApi {
6301
6364
  { },
6302
6365
  { },
6303
6366
  { },
6304
- opts['body'],
6367
+ body,
6305
6368
  ['PureCloud OAuth'],
6306
6369
  ['application/json'],
6307
6370
  ['application/json']
@@ -6312,16 +6375,17 @@ class WorkforceManagementApi {
6312
6375
  * Move the requested management unit to a new business unit
6313
6376
  * Returns status 200 if the management unit is already in the requested business unit
6314
6377
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6315
- * @param {Object} opts Optional parameters
6316
- * @param {Object} opts.body body
6378
+ * @param {Object} body body
6317
6379
  */
6318
- postWorkforcemanagementManagementunitMove(managementUnitId, opts) {
6319
- opts = opts || {};
6320
-
6380
+ postWorkforcemanagementManagementunitMove(managementUnitId, body) {
6321
6381
  // verify the required parameter 'managementUnitId' is set
6322
6382
  if (managementUnitId === undefined || managementUnitId === null) {
6323
6383
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';
6324
6384
  }
6385
+ // verify the required parameter 'body' is set
6386
+ if (body === undefined || body === null) {
6387
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';
6388
+ }
6325
6389
 
6326
6390
  return this.apiClient.callApi(
6327
6391
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/move',
@@ -6330,7 +6394,7 @@ class WorkforceManagementApi {
6330
6394
  { },
6331
6395
  { },
6332
6396
  { },
6333
- opts['body'],
6397
+ body,
6334
6398
  ['PureCloud OAuth'],
6335
6399
  ['application/json'],
6336
6400
  ['application/json']
@@ -6341,17 +6405,18 @@ class WorkforceManagementApi {
6341
6405
  * Query published schedules for given given time range for set of users
6342
6406
  *
6343
6407
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6344
- * @param {Object} opts Optional parameters
6345
- * @param {Object} opts.body body
6408
+ * @param {Object} body body
6346
6409
  * @deprecated
6347
6410
  */
6348
- postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId, opts) {
6349
- opts = opts || {};
6350
-
6411
+ postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId, body) {
6351
6412
  // verify the required parameter 'managementUnitId' is set
6352
6413
  if (managementUnitId === undefined || managementUnitId === null) {
6353
6414
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';
6354
6415
  }
6416
+ // verify the required parameter 'body' is set
6417
+ if (body === undefined || body === null) {
6418
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';
6419
+ }
6355
6420
 
6356
6421
  return this.apiClient.callApi(
6357
6422
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search',
@@ -6360,7 +6425,7 @@ class WorkforceManagementApi {
6360
6425
  { },
6361
6426
  { },
6362
6427
  { },
6363
- opts['body'],
6428
+ body,
6364
6429
  ['PureCloud OAuth'],
6365
6430
  ['application/json'],
6366
6431
  ['application/json']
@@ -6371,16 +6436,17 @@ class WorkforceManagementApi {
6371
6436
  * Request a historical shrinkage report
6372
6437
  * The maximum supported range for historical shrinkage queries is up to 32 days. Historical Shrinkage for a given date range can be queried in two modes - granular and aggregated. To see granular shrinkage information, provide granularity in the request body.
6373
6438
  * @param {String} managementUnitId The ID of the management unit
6374
- * @param {Object} opts Optional parameters
6375
- * @param {Object} opts.body body
6439
+ * @param {Object} body body
6376
6440
  */
6377
- postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId, opts) {
6378
- opts = opts || {};
6379
-
6441
+ postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId, body) {
6380
6442
  // verify the required parameter 'managementUnitId' is set
6381
6443
  if (managementUnitId === undefined || managementUnitId === null) {
6382
6444
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';
6383
6445
  }
6446
+ // verify the required parameter 'body' is set
6447
+ if (body === undefined || body === null) {
6448
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';
6449
+ }
6384
6450
 
6385
6451
  return this.apiClient.callApi(
6386
6452
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs',
@@ -6389,7 +6455,7 @@ class WorkforceManagementApi {
6389
6455
  { },
6390
6456
  { },
6391
6457
  { },
6392
- opts['body'],
6458
+ body,
6393
6459
  ['PureCloud OAuth'],
6394
6460
  ['application/json'],
6395
6461
  ['application/json']
@@ -6400,16 +6466,17 @@ class WorkforceManagementApi {
6400
6466
  * Creates a new time off limit object under management unit.
6401
6467
  * Only one limit object is allowed under management unit, so an attempt to create second object will fail.
6402
6468
  * @param {String} managementUnitId The ID of the management unit.
6403
- * @param {Object} opts Optional parameters
6404
- * @param {Object} opts.body body
6469
+ * @param {Object} body body
6405
6470
  */
6406
- postWorkforcemanagementManagementunitTimeofflimits(managementUnitId, opts) {
6407
- opts = opts || {};
6408
-
6471
+ postWorkforcemanagementManagementunitTimeofflimits(managementUnitId, body) {
6409
6472
  // verify the required parameter 'managementUnitId' is set
6410
6473
  if (managementUnitId === undefined || managementUnitId === null) {
6411
6474
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';
6412
6475
  }
6476
+ // verify the required parameter 'body' is set
6477
+ if (body === undefined || body === null) {
6478
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';
6479
+ }
6413
6480
 
6414
6481
  return this.apiClient.callApi(
6415
6482
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
@@ -6418,7 +6485,7 @@ class WorkforceManagementApi {
6418
6485
  { },
6419
6486
  { },
6420
6487
  { },
6421
- opts['body'],
6488
+ body,
6422
6489
  ['PureCloud OAuth'],
6423
6490
  ['application/json'],
6424
6491
  ['application/json']
@@ -6429,16 +6496,17 @@ class WorkforceManagementApi {
6429
6496
  * Retrieves time off limit related values based on a given set of filters.
6430
6497
  *
6431
6498
  * @param {String} managementUnitId The ID of the management unit.
6432
- * @param {Object} opts Optional parameters
6433
- * @param {Object} opts.body body
6499
+ * @param {Object} body body
6434
6500
  */
6435
- postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId, opts) {
6436
- opts = opts || {};
6437
-
6501
+ postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId, body) {
6438
6502
  // verify the required parameter 'managementUnitId' is set
6439
6503
  if (managementUnitId === undefined || managementUnitId === null) {
6440
6504
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';
6441
6505
  }
6506
+ // verify the required parameter 'body' is set
6507
+ if (body === undefined || body === null) {
6508
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';
6509
+ }
6442
6510
 
6443
6511
  return this.apiClient.callApi(
6444
6512
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query',
@@ -6447,7 +6515,7 @@ class WorkforceManagementApi {
6447
6515
  { },
6448
6516
  { },
6449
6517
  { },
6450
- opts['body'],
6518
+ body,
6451
6519
  ['PureCloud OAuth'],
6452
6520
  ['application/json'],
6453
6521
  ['application/json']
@@ -6458,16 +6526,17 @@ class WorkforceManagementApi {
6458
6526
  * Creates a new time off plan
6459
6527
  *
6460
6528
  * @param {String} managementUnitId The ID of the management unit
6461
- * @param {Object} opts Optional parameters
6462
- * @param {Object} opts.body body
6529
+ * @param {Object} body body
6463
6530
  */
6464
- postWorkforcemanagementManagementunitTimeoffplans(managementUnitId, opts) {
6465
- opts = opts || {};
6466
-
6531
+ postWorkforcemanagementManagementunitTimeoffplans(managementUnitId, body) {
6467
6532
  // verify the required parameter 'managementUnitId' is set
6468
6533
  if (managementUnitId === undefined || managementUnitId === null) {
6469
6534
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';
6470
6535
  }
6536
+ // verify the required parameter 'body' is set
6537
+ if (body === undefined || body === null) {
6538
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';
6539
+ }
6471
6540
 
6472
6541
  return this.apiClient.callApi(
6473
6542
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
@@ -6476,7 +6545,7 @@ class WorkforceManagementApi {
6476
6545
  { },
6477
6546
  { },
6478
6547
  { },
6479
- opts['body'],
6548
+ body,
6480
6549
  ['PureCloud OAuth'],
6481
6550
  ['application/json'],
6482
6551
  ['application/json']
@@ -6487,16 +6556,17 @@ class WorkforceManagementApi {
6487
6556
  * Create a new time off request
6488
6557
  *
6489
6558
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6490
- * @param {Object} opts Optional parameters
6491
- * @param {Object} opts.body body
6559
+ * @param {Object} body body
6492
6560
  */
6493
- postWorkforcemanagementManagementunitTimeoffrequests(managementUnitId, opts) {
6494
- opts = opts || {};
6495
-
6561
+ postWorkforcemanagementManagementunitTimeoffrequests(managementUnitId, body) {
6496
6562
  // verify the required parameter 'managementUnitId' is set
6497
6563
  if (managementUnitId === undefined || managementUnitId === null) {
6498
6564
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';
6499
6565
  }
6566
+ // verify the required parameter 'body' is set
6567
+ if (body === undefined || body === null) {
6568
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';
6569
+ }
6500
6570
 
6501
6571
  return this.apiClient.callApi(
6502
6572
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests',
@@ -6505,7 +6575,7 @@ class WorkforceManagementApi {
6505
6575
  { },
6506
6576
  { },
6507
6577
  { },
6508
- opts['body'],
6578
+ body,
6509
6579
  ['PureCloud OAuth'],
6510
6580
  ['application/json'],
6511
6581
  ['application/json']
@@ -6516,16 +6586,17 @@ class WorkforceManagementApi {
6516
6586
  * Retrieves integration statuses for a list of time off requests
6517
6587
  *
6518
6588
  * @param {String} managementUnitId The ID of the management unit.
6519
- * @param {Object} opts Optional parameters
6520
- * @param {Object} opts.body body
6589
+ * @param {Object} body body
6521
6590
  */
6522
- postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId, opts) {
6523
- opts = opts || {};
6524
-
6591
+ postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId, body) {
6525
6592
  // verify the required parameter 'managementUnitId' is set
6526
6593
  if (managementUnitId === undefined || managementUnitId === null) {
6527
6594
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';
6528
6595
  }
6596
+ // verify the required parameter 'body' is set
6597
+ if (body === undefined || body === null) {
6598
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';
6599
+ }
6529
6600
 
6530
6601
  return this.apiClient.callApi(
6531
6602
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/integrationstatus/query',
@@ -6534,7 +6605,7 @@ class WorkforceManagementApi {
6534
6605
  { },
6535
6606
  { },
6536
6607
  { },
6537
- opts['body'],
6608
+ body,
6538
6609
  ['PureCloud OAuth'],
6539
6610
  ['application/json'],
6540
6611
  ['application/json']
@@ -6545,17 +6616,21 @@ class WorkforceManagementApi {
6545
6616
  * Fetches time off requests matching the conditions specified in the request body
6546
6617
  * Request body requires one of the following: User ID is specified, statuses == [Pending] or date range to be specified and less than or equal to 33 days. All other fields are filters
6547
6618
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6619
+ * @param {Object} body body
6548
6620
  * @param {Object} opts Optional parameters
6549
6621
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
6550
- * @param {Object} opts.body body
6551
6622
  */
6552
- postWorkforcemanagementManagementunitTimeoffrequestsQuery(managementUnitId, opts) {
6623
+ postWorkforcemanagementManagementunitTimeoffrequestsQuery(managementUnitId, body, opts) {
6553
6624
  opts = opts || {};
6554
6625
 
6555
6626
  // verify the required parameter 'managementUnitId' is set
6556
6627
  if (managementUnitId === undefined || managementUnitId === null) {
6557
6628
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';
6558
6629
  }
6630
+ // verify the required parameter 'body' is set
6631
+ if (body === undefined || body === null) {
6632
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';
6633
+ }
6559
6634
 
6560
6635
  return this.apiClient.callApi(
6561
6636
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query',
@@ -6564,7 +6639,7 @@ class WorkforceManagementApi {
6564
6639
  { 'forceDownloadService': opts['forceDownloadService'] },
6565
6640
  { },
6566
6641
  { },
6567
- opts['body'],
6642
+ body,
6568
6643
  ['PureCloud OAuth'],
6569
6644
  ['application/json'],
6570
6645
  ['application/json']
@@ -6575,16 +6650,17 @@ class WorkforceManagementApi {
6575
6650
  * Retrieves daily waitlist position for a list of time off requests
6576
6651
  *
6577
6652
  * @param {String} managementUnitId The ID of the management unit.
6578
- * @param {Object} opts Optional parameters
6579
- * @param {Object} opts.body body
6653
+ * @param {Object} body body
6580
6654
  */
6581
- postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId, opts) {
6582
- opts = opts || {};
6583
-
6655
+ postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId, body) {
6584
6656
  // verify the required parameter 'managementUnitId' is set
6585
6657
  if (managementUnitId === undefined || managementUnitId === null) {
6586
6658
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';
6587
6659
  }
6660
+ // verify the required parameter 'body' is set
6661
+ if (body === undefined || body === null) {
6662
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';
6663
+ }
6588
6664
 
6589
6665
  return this.apiClient.callApi(
6590
6666
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query',
@@ -6593,7 +6669,7 @@ class WorkforceManagementApi {
6593
6669
  { },
6594
6670
  { },
6595
6671
  { },
6596
- opts['body'],
6672
+ body,
6597
6673
  ['PureCloud OAuth'],
6598
6674
  ['application/json'],
6599
6675
  ['application/json']
@@ -6675,12 +6751,9 @@ class WorkforceManagementApi {
6675
6751
  *
6676
6752
  * @param {String} managementUnitId The ID of the management unit
6677
6753
  * @param {String} userId The id of the user for whom the time off request estimate is requested
6678
- * @param {Object} opts Optional parameters
6679
- * @param {Object} opts.body body
6754
+ * @param {Object} body body
6680
6755
  */
6681
- postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId, userId, opts) {
6682
- opts = opts || {};
6683
-
6756
+ postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId, userId, body) {
6684
6757
  // verify the required parameter 'managementUnitId' is set
6685
6758
  if (managementUnitId === undefined || managementUnitId === null) {
6686
6759
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';
@@ -6689,6 +6762,10 @@ class WorkforceManagementApi {
6689
6762
  if (userId === undefined || userId === null) {
6690
6763
  throw 'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';
6691
6764
  }
6765
+ // verify the required parameter 'body' is set
6766
+ if (body === undefined || body === null) {
6767
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';
6768
+ }
6692
6769
 
6693
6770
  return this.apiClient.callApi(
6694
6771
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/estimate',
@@ -6697,7 +6774,7 @@ class WorkforceManagementApi {
6697
6774
  { },
6698
6775
  { },
6699
6776
  { },
6700
- opts['body'],
6777
+ body,
6701
6778
  ['PureCloud OAuth'],
6702
6779
  ['application/json'],
6703
6780
  ['application/json']
@@ -6862,12 +6939,9 @@ class WorkforceManagementApi {
6862
6939
  *
6863
6940
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6864
6941
  * @param {String} workPlanId The ID of the work plan to create a copy
6865
- * @param {Object} opts Optional parameters
6866
- * @param {Object} opts.body body
6942
+ * @param {Object} body body
6867
6943
  */
6868
- postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId, workPlanId, opts) {
6869
- opts = opts || {};
6870
-
6944
+ postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId, workPlanId, body) {
6871
6945
  // verify the required parameter 'managementUnitId' is set
6872
6946
  if (managementUnitId === undefined || managementUnitId === null) {
6873
6947
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';
@@ -6876,6 +6950,10 @@ class WorkforceManagementApi {
6876
6950
  if (workPlanId === undefined || workPlanId === null) {
6877
6951
  throw 'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';
6878
6952
  }
6953
+ // verify the required parameter 'body' is set
6954
+ if (body === undefined || body === null) {
6955
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanCopy';
6956
+ }
6879
6957
 
6880
6958
  return this.apiClient.callApi(
6881
6959
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy',
@@ -6884,7 +6962,7 @@ class WorkforceManagementApi {
6884
6962
  { },
6885
6963
  { },
6886
6964
  { },
6887
- opts['body'],
6965
+ body,
6888
6966
  ['PureCloud OAuth'],
6889
6967
  ['application/json'],
6890
6968
  ['application/json']
@@ -6896,11 +6974,11 @@ class WorkforceManagementApi {
6896
6974
  *
6897
6975
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6898
6976
  * @param {String} workPlanId The ID of the work plan to validate. For new work plan, use the word 'new' for the ID.
6977
+ * @param {Object} body body
6899
6978
  * @param {Object} opts Optional parameters
6900
6979
  * @param {Array.<String>} opts.expand
6901
- * @param {Object} opts.body body
6902
6980
  */
6903
- postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId, workPlanId, opts) {
6981
+ postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId, workPlanId, body, opts) {
6904
6982
  opts = opts || {};
6905
6983
 
6906
6984
  // verify the required parameter 'managementUnitId' is set
@@ -6911,6 +6989,10 @@ class WorkforceManagementApi {
6911
6989
  if (workPlanId === undefined || workPlanId === null) {
6912
6990
  throw 'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';
6913
6991
  }
6992
+ // verify the required parameter 'body' is set
6993
+ if (body === undefined || body === null) {
6994
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanValidate';
6995
+ }
6914
6996
 
6915
6997
  return this.apiClient.callApi(
6916
6998
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/validate',
@@ -6919,7 +7001,7 @@ class WorkforceManagementApi {
6919
7001
  { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
6920
7002
  { },
6921
7003
  { },
6922
- opts['body'],
7004
+ body,
6923
7005
  ['PureCloud OAuth'],
6924
7006
  ['application/json'],
6925
7007
  ['application/json']
@@ -6931,12 +7013,9 @@ class WorkforceManagementApi {
6931
7013
  *
6932
7014
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6933
7015
  * @param {String} workPlanRotationId The ID of the work plan rotation to create a copy
6934
- * @param {Object} opts Optional parameters
6935
- * @param {Object} opts.body body
7016
+ * @param {Object} body body
6936
7017
  */
6937
- postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId, workPlanRotationId, opts) {
6938
- opts = opts || {};
6939
-
7018
+ postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId, workPlanRotationId, body) {
6940
7019
  // verify the required parameter 'managementUnitId' is set
6941
7020
  if (managementUnitId === undefined || managementUnitId === null) {
6942
7021
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';
@@ -6945,6 +7024,10 @@ class WorkforceManagementApi {
6945
7024
  if (workPlanRotationId === undefined || workPlanRotationId === null) {
6946
7025
  throw 'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';
6947
7026
  }
7027
+ // verify the required parameter 'body' is set
7028
+ if (body === undefined || body === null) {
7029
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';
7030
+ }
6948
7031
 
6949
7032
  return this.apiClient.callApi(
6950
7033
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}/copy',
@@ -6953,7 +7036,7 @@ class WorkforceManagementApi {
6953
7036
  { },
6954
7037
  { },
6955
7038
  { },
6956
- opts['body'],
7039
+ body,
6957
7040
  ['PureCloud OAuth'],
6958
7041
  ['application/json'],
6959
7042
  ['application/json']
@@ -6964,16 +7047,17 @@ class WorkforceManagementApi {
6964
7047
  * Create a new work plan rotation
6965
7048
  *
6966
7049
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
6967
- * @param {Object} opts Optional parameters
6968
- * @param {Object} opts.body body
7050
+ * @param {Object} body body
6969
7051
  */
6970
- postWorkforcemanagementManagementunitWorkplanrotations(managementUnitId, opts) {
6971
- opts = opts || {};
6972
-
7052
+ postWorkforcemanagementManagementunitWorkplanrotations(managementUnitId, body) {
6973
7053
  // verify the required parameter 'managementUnitId' is set
6974
7054
  if (managementUnitId === undefined || managementUnitId === null) {
6975
7055
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';
6976
7056
  }
7057
+ // verify the required parameter 'body' is set
7058
+ if (body === undefined || body === null) {
7059
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';
7060
+ }
6977
7061
 
6978
7062
  return this.apiClient.callApi(
6979
7063
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations',
@@ -6982,7 +7066,7 @@ class WorkforceManagementApi {
6982
7066
  { },
6983
7067
  { },
6984
7068
  { },
6985
- opts['body'],
7069
+ body,
6986
7070
  ['PureCloud OAuth'],
6987
7071
  ['application/json'],
6988
7072
  ['application/json']
@@ -6993,17 +7077,21 @@ class WorkforceManagementApi {
6993
7077
  * Create a new work plan
6994
7078
  *
6995
7079
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
7080
+ * @param {Object} body body
6996
7081
  * @param {Object} opts Optional parameters
6997
7082
  * @param {Object} opts.validationMode Allows to create work plan even if the validation result is invalid
6998
- * @param {Object} opts.body body
6999
7083
  */
7000
- postWorkforcemanagementManagementunitWorkplans(managementUnitId, opts) {
7084
+ postWorkforcemanagementManagementunitWorkplans(managementUnitId, body, opts) {
7001
7085
  opts = opts || {};
7002
7086
 
7003
7087
  // verify the required parameter 'managementUnitId' is set
7004
7088
  if (managementUnitId === undefined || managementUnitId === null) {
7005
7089
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';
7006
7090
  }
7091
+ // verify the required parameter 'body' is set
7092
+ if (body === undefined || body === null) {
7093
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';
7094
+ }
7007
7095
 
7008
7096
  return this.apiClient.callApi(
7009
7097
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans',
@@ -7012,7 +7100,7 @@ class WorkforceManagementApi {
7012
7100
  { 'validationMode': opts['validationMode'] },
7013
7101
  { },
7014
7102
  { },
7015
- opts['body'],
7103
+ body,
7016
7104
  ['PureCloud OAuth'],
7017
7105
  ['application/json'],
7018
7106
  ['application/json']
@@ -7022,12 +7110,13 @@ class WorkforceManagementApi {
7022
7110
  /**
7023
7111
  * Add a management unit
7024
7112
  * It may take a minute or two for a new management unit to be available for api operations
7025
- * @param {Object} opts Optional parameters
7026
- * @param {Object} opts.body body
7113
+ * @param {Object} body body
7027
7114
  */
7028
- postWorkforcemanagementManagementunits(opts) {
7029
- opts = opts || {};
7030
-
7115
+ postWorkforcemanagementManagementunits(body) {
7116
+ // verify the required parameter 'body' is set
7117
+ if (body === undefined || body === null) {
7118
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunits';
7119
+ }
7031
7120
 
7032
7121
  return this.apiClient.callApi(
7033
7122
  '/api/v2/workforcemanagement/managementunits',
@@ -7036,7 +7125,7 @@ class WorkforceManagementApi {
7036
7125
  { },
7037
7126
  { },
7038
7127
  { },
7039
- opts['body'],
7128
+ body,
7040
7129
  ['PureCloud OAuth'],
7041
7130
  ['application/json'],
7042
7131
  ['application/json']
@@ -7046,12 +7135,13 @@ class WorkforceManagementApi {
7046
7135
  /**
7047
7136
  * Mark a list of notifications as read or unread
7048
7137
  *
7049
- * @param {Object} opts Optional parameters
7050
- * @param {Object} opts.body body
7138
+ * @param {Object} body body
7051
7139
  */
7052
- postWorkforcemanagementNotificationsUpdate(opts) {
7053
- opts = opts || {};
7054
-
7140
+ postWorkforcemanagementNotificationsUpdate(body) {
7141
+ // verify the required parameter 'body' is set
7142
+ if (body === undefined || body === null) {
7143
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementNotificationsUpdate';
7144
+ }
7055
7145
 
7056
7146
  return this.apiClient.callApi(
7057
7147
  '/api/v2/workforcemanagement/notifications/update',
@@ -7060,7 +7150,7 @@ class WorkforceManagementApi {
7060
7150
  { },
7061
7151
  { },
7062
7152
  { },
7063
- opts['body'],
7153
+ body,
7064
7154
  ['PureCloud OAuth'],
7065
7155
  ['application/json'],
7066
7156
  ['application/json']
@@ -7096,16 +7186,17 @@ class WorkforceManagementApi {
7096
7186
  * Request a teams historical adherence report
7097
7187
  * The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
7098
7188
  * @param {String} teamId The ID of the team
7099
- * @param {Object} opts Optional parameters
7100
- * @param {Object} opts.body body
7189
+ * @param {Object} body body
7101
7190
  */
7102
- postWorkforcemanagementTeamAdherenceHistorical(teamId, opts) {
7103
- opts = opts || {};
7104
-
7191
+ postWorkforcemanagementTeamAdherenceHistorical(teamId, body) {
7105
7192
  // verify the required parameter 'teamId' is set
7106
7193
  if (teamId === undefined || teamId === null) {
7107
7194
  throw 'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';
7108
7195
  }
7196
+ // verify the required parameter 'body' is set
7197
+ if (body === undefined || body === null) {
7198
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';
7199
+ }
7109
7200
 
7110
7201
  return this.apiClient.callApi(
7111
7202
  '/api/v2/workforcemanagement/teams/{teamId}/adherence/historical',
@@ -7114,7 +7205,7 @@ class WorkforceManagementApi {
7114
7205
  { },
7115
7206
  { },
7116
7207
  { },
7117
- opts['body'],
7208
+ body,
7118
7209
  ['PureCloud OAuth'],
7119
7210
  ['application/json'],
7120
7211
  ['application/json']
@@ -7125,16 +7216,17 @@ class WorkforceManagementApi {
7125
7216
  * Request a historical shrinkage report
7126
7217
  * The maximum supported range for historical shrinkage queries is up to 32 days
7127
7218
  * @param {String} teamId The ID of the team
7128
- * @param {Object} opts Optional parameters
7129
- * @param {Object} opts.body body
7219
+ * @param {Object} body body
7130
7220
  */
7131
- postWorkforcemanagementTeamShrinkageJobs(teamId, opts) {
7132
- opts = opts || {};
7133
-
7221
+ postWorkforcemanagementTeamShrinkageJobs(teamId, body) {
7134
7222
  // verify the required parameter 'teamId' is set
7135
7223
  if (teamId === undefined || teamId === null) {
7136
7224
  throw 'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';
7137
7225
  }
7226
+ // verify the required parameter 'body' is set
7227
+ if (body === undefined || body === null) {
7228
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';
7229
+ }
7138
7230
 
7139
7231
  return this.apiClient.callApi(
7140
7232
  '/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs',
@@ -7143,7 +7235,7 @@ class WorkforceManagementApi {
7143
7235
  { },
7144
7236
  { },
7145
7237
  { },
7146
- opts['body'],
7238
+ body,
7147
7239
  ['PureCloud OAuth'],
7148
7240
  ['application/json'],
7149
7241
  ['application/json']
@@ -7178,12 +7270,13 @@ class WorkforceManagementApi {
7178
7270
  /**
7179
7271
  * Queries available time off for the current user
7180
7272
  *
7181
- * @param {Object} opts Optional parameters
7182
- * @param {Object} opts.body body
7273
+ * @param {Object} body body
7183
7274
  */
7184
- postWorkforcemanagementTimeofflimitsAvailableQuery(opts) {
7185
- opts = opts || {};
7186
-
7275
+ postWorkforcemanagementTimeofflimitsAvailableQuery(body) {
7276
+ // verify the required parameter 'body' is set
7277
+ if (body === undefined || body === null) {
7278
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementTimeofflimitsAvailableQuery';
7279
+ }
7187
7280
 
7188
7281
  return this.apiClient.callApi(
7189
7282
  '/api/v2/workforcemanagement/timeofflimits/available/query',
@@ -7192,7 +7285,7 @@ class WorkforceManagementApi {
7192
7285
  { },
7193
7286
  { },
7194
7287
  { },
7195
- opts['body'],
7288
+ body,
7196
7289
  ['PureCloud OAuth'],
7197
7290
  ['application/json'],
7198
7291
  ['application/json']
@@ -7202,12 +7295,13 @@ class WorkforceManagementApi {
7202
7295
  /**
7203
7296
  * Create a time off request for the current user
7204
7297
  *
7205
- * @param {Object} opts Optional parameters
7206
- * @param {Object} opts.body body
7298
+ * @param {Object} body body
7207
7299
  */
7208
- postWorkforcemanagementTimeoffrequests(opts) {
7209
- opts = opts || {};
7210
-
7300
+ postWorkforcemanagementTimeoffrequests(body) {
7301
+ // verify the required parameter 'body' is set
7302
+ if (body === undefined || body === null) {
7303
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequests';
7304
+ }
7211
7305
 
7212
7306
  return this.apiClient.callApi(
7213
7307
  '/api/v2/workforcemanagement/timeoffrequests',
@@ -7216,7 +7310,7 @@ class WorkforceManagementApi {
7216
7310
  { },
7217
7311
  { },
7218
7312
  { },
7219
- opts['body'],
7313
+ body,
7220
7314
  ['PureCloud OAuth'],
7221
7315
  ['application/json'],
7222
7316
  ['application/json']
@@ -7226,12 +7320,13 @@ class WorkforceManagementApi {
7226
7320
  /**
7227
7321
  * Estimates available time off for current user
7228
7322
  *
7229
- * @param {Object} opts Optional parameters
7230
- * @param {Object} opts.body body
7323
+ * @param {Object} body body
7231
7324
  */
7232
- postWorkforcemanagementTimeoffrequestsEstimate(opts) {
7233
- opts = opts || {};
7234
-
7325
+ postWorkforcemanagementTimeoffrequestsEstimate(body) {
7326
+ // verify the required parameter 'body' is set
7327
+ if (body === undefined || body === null) {
7328
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';
7329
+ }
7235
7330
 
7236
7331
  return this.apiClient.callApi(
7237
7332
  '/api/v2/workforcemanagement/timeoffrequests/estimate',
@@ -7240,7 +7335,7 @@ class WorkforceManagementApi {
7240
7335
  { },
7241
7336
  { },
7242
7337
  { },
7243
- opts['body'],
7338
+ body,
7244
7339
  ['PureCloud OAuth'],
7245
7340
  ['application/json'],
7246
7341
  ['application/json']
@@ -7250,12 +7345,13 @@ class WorkforceManagementApi {
7250
7345
  /**
7251
7346
  * Retrieves integration statuses for a list of current user time off requests
7252
7347
  *
7253
- * @param {Object} opts Optional parameters
7254
- * @param {Object} opts.body body
7348
+ * @param {Object} body body
7255
7349
  */
7256
- postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(opts) {
7257
- opts = opts || {};
7258
-
7350
+ postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(body) {
7351
+ // verify the required parameter 'body' is set
7352
+ if (body === undefined || body === null) {
7353
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery';
7354
+ }
7259
7355
 
7260
7356
  return this.apiClient.callApi(
7261
7357
  '/api/v2/workforcemanagement/timeoffrequests/integrationstatus/query',
@@ -7264,7 +7360,7 @@ class WorkforceManagementApi {
7264
7360
  { },
7265
7361
  { },
7266
7362
  { },
7267
- opts['body'],
7363
+ body,
7268
7364
  ['PureCloud OAuth'],
7269
7365
  ['application/json'],
7270
7366
  ['application/json']
@@ -7306,12 +7402,9 @@ class WorkforceManagementApi {
7306
7402
  * Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time-off limit API
7307
7403
  * @param {String} businessUnitId The ID of the business unit
7308
7404
  * @param {String} timeOffLimitId The ID of the time-off limit object to set values for
7309
- * @param {Object} opts Optional parameters
7310
- * @param {Object} opts.body body
7405
+ * @param {Object} body body
7311
7406
  */
7312
- putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId, timeOffLimitId, opts) {
7313
- opts = opts || {};
7314
-
7407
+ putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId, timeOffLimitId, body) {
7315
7408
  // verify the required parameter 'businessUnitId' is set
7316
7409
  if (businessUnitId === undefined || businessUnitId === null) {
7317
7410
  throw 'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';
@@ -7320,6 +7413,10 @@ class WorkforceManagementApi {
7320
7413
  if (timeOffLimitId === undefined || timeOffLimitId === null) {
7321
7414
  throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';
7322
7415
  }
7416
+ // verify the required parameter 'body' is set
7417
+ if (body === undefined || body === null) {
7418
+ throw 'Missing the required parameter "body" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';
7419
+ }
7323
7420
 
7324
7421
  return this.apiClient.callApi(
7325
7422
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values',
@@ -7328,7 +7425,7 @@ class WorkforceManagementApi {
7328
7425
  { },
7329
7426
  { },
7330
7427
  { },
7331
- opts['body'],
7428
+ body,
7332
7429
  ['PureCloud OAuth'],
7333
7430
  ['application/json'],
7334
7431
  ['application/json']
@@ -7340,12 +7437,9 @@ class WorkforceManagementApi {
7340
7437
  * Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
7341
7438
  * @param {String} managementUnitId The ID of the management unit.
7342
7439
  * @param {String} timeOffLimitId The ID of the time off limit object to set values for
7343
- * @param {Object} opts Optional parameters
7344
- * @param {Object} opts.body body
7440
+ * @param {Object} body body
7345
7441
  */
7346
- putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId, timeOffLimitId, opts) {
7347
- opts = opts || {};
7348
-
7442
+ putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId, timeOffLimitId, body) {
7349
7443
  // verify the required parameter 'managementUnitId' is set
7350
7444
  if (managementUnitId === undefined || managementUnitId === null) {
7351
7445
  throw 'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
@@ -7354,6 +7448,10 @@ class WorkforceManagementApi {
7354
7448
  if (timeOffLimitId === undefined || timeOffLimitId === null) {
7355
7449
  throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
7356
7450
  }
7451
+ // verify the required parameter 'body' is set
7452
+ if (body === undefined || body === null) {
7453
+ throw 'Missing the required parameter "body" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
7454
+ }
7357
7455
 
7358
7456
  return this.apiClient.callApi(
7359
7457
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values',
@@ -7362,7 +7460,7 @@ class WorkforceManagementApi {
7362
7460
  { },
7363
7461
  { },
7364
7462
  { },
7365
- opts['body'],
7463
+ body,
7366
7464
  ['PureCloud OAuth'],
7367
7465
  ['application/json'],
7368
7466
  ['application/json']