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