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