purecloud-platform-client-v2 152.0.0 → 154.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 +2 -2
- package/dist/node/purecloud-platform-client-v2.js +485 -81
- package/dist/web-amd/purecloud-platform-client-v2.js +485 -81
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +485 -81
- package/dist/web-cjs/purecloud-platform-client-v2.js +485 -81
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +784 -207
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +5 -4
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +3 -2
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +46 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.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 +3 -3
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.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/IntegrationsApi.js +1 -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 +3 -2
- 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/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/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +31 -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 +6 -6
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +4 -2
- package/src/purecloud-platform-client-v2/api/SCIMApi.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/SpeechTextAnalyticsApi.js +1 -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/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 +325 -1
- 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 154.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -425,6 +425,56 @@ class WorkforceManagementApi {
|
|
|
425
425
|
);
|
|
426
426
|
}
|
|
427
427
|
|
|
428
|
+
/**
|
|
429
|
+
* Get an adherence explanation for the current user
|
|
430
|
+
*
|
|
431
|
+
* @param {String} explanationId The ID of the explanation to update
|
|
432
|
+
*/
|
|
433
|
+
getWorkforcemanagementAdherenceExplanation(explanationId) {
|
|
434
|
+
// verify the required parameter 'explanationId' is set
|
|
435
|
+
if (explanationId === undefined || explanationId === null) {
|
|
436
|
+
throw 'Missing the required parameter "explanationId" when calling getWorkforcemanagementAdherenceExplanation';
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
return this.apiClient.callApi(
|
|
440
|
+
'/api/v2/workforcemanagement/adherence/explanations/{explanationId}',
|
|
441
|
+
'GET',
|
|
442
|
+
{ 'explanationId': explanationId },
|
|
443
|
+
{ },
|
|
444
|
+
{ },
|
|
445
|
+
{ },
|
|
446
|
+
null,
|
|
447
|
+
['PureCloud OAuth'],
|
|
448
|
+
['application/json'],
|
|
449
|
+
['application/json']
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Query the status of an adherence explanation operation. Only the user who started the operation can query the status
|
|
455
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
456
|
+
* @param {String} jobId The ID of the job
|
|
457
|
+
*/
|
|
458
|
+
getWorkforcemanagementAdherenceExplanationsJob(jobId) {
|
|
459
|
+
// verify the required parameter 'jobId' is set
|
|
460
|
+
if (jobId === undefined || jobId === null) {
|
|
461
|
+
throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceExplanationsJob';
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
return this.apiClient.callApi(
|
|
465
|
+
'/api/v2/workforcemanagement/adherence/explanations/jobs/{jobId}',
|
|
466
|
+
'GET',
|
|
467
|
+
{ 'jobId': jobId },
|
|
468
|
+
{ },
|
|
469
|
+
{ },
|
|
470
|
+
{ },
|
|
471
|
+
null,
|
|
472
|
+
['PureCloud OAuth'],
|
|
473
|
+
['application/json'],
|
|
474
|
+
['application/json']
|
|
475
|
+
);
|
|
476
|
+
}
|
|
477
|
+
|
|
428
478
|
/**
|
|
429
479
|
* Query the status of a historical adherence request operation. Only the user who started the operation can query the status
|
|
430
480
|
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
@@ -475,6 +525,36 @@ class WorkforceManagementApi {
|
|
|
475
525
|
);
|
|
476
526
|
}
|
|
477
527
|
|
|
528
|
+
/**
|
|
529
|
+
* Get an adherence explanation
|
|
530
|
+
*
|
|
531
|
+
* @param {String} agentId The ID of the agent to query
|
|
532
|
+
* @param {String} explanationId The ID of the explanation to update
|
|
533
|
+
*/
|
|
534
|
+
getWorkforcemanagementAgentAdherenceExplanation(agentId, explanationId) {
|
|
535
|
+
// verify the required parameter 'agentId' is set
|
|
536
|
+
if (agentId === undefined || agentId === null) {
|
|
537
|
+
throw 'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';
|
|
538
|
+
}
|
|
539
|
+
// verify the required parameter 'explanationId' is set
|
|
540
|
+
if (explanationId === undefined || explanationId === null) {
|
|
541
|
+
throw 'Missing the required parameter "explanationId" when calling getWorkforcemanagementAgentAdherenceExplanation';
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
return this.apiClient.callApi(
|
|
545
|
+
'/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/{explanationId}',
|
|
546
|
+
'GET',
|
|
547
|
+
{ 'agentId': agentId,'explanationId': explanationId },
|
|
548
|
+
{ },
|
|
549
|
+
{ },
|
|
550
|
+
{ },
|
|
551
|
+
null,
|
|
552
|
+
['PureCloud OAuth'],
|
|
553
|
+
['application/json'],
|
|
554
|
+
['application/json']
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
|
|
478
558
|
/**
|
|
479
559
|
* Get the management unit to which the agent belongs
|
|
480
560
|
*
|
|
@@ -2194,6 +2274,31 @@ class WorkforceManagementApi {
|
|
|
2194
2274
|
);
|
|
2195
2275
|
}
|
|
2196
2276
|
|
|
2277
|
+
/**
|
|
2278
|
+
* Request to fetch the status of the historical shrinkage query
|
|
2279
|
+
*
|
|
2280
|
+
* @param {String} jobId jobId
|
|
2281
|
+
*/
|
|
2282
|
+
getWorkforcemanagementShrinkageJob(jobId) {
|
|
2283
|
+
// verify the required parameter 'jobId' is set
|
|
2284
|
+
if (jobId === undefined || jobId === null) {
|
|
2285
|
+
throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementShrinkageJob';
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
return this.apiClient.callApi(
|
|
2289
|
+
'/api/v2/workforcemanagement/shrinkage/jobs/{jobId}',
|
|
2290
|
+
'GET',
|
|
2291
|
+
{ 'jobId': jobId },
|
|
2292
|
+
{ },
|
|
2293
|
+
{ },
|
|
2294
|
+
{ },
|
|
2295
|
+
null,
|
|
2296
|
+
['PureCloud OAuth'],
|
|
2297
|
+
['application/json'],
|
|
2298
|
+
['application/json']
|
|
2299
|
+
);
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2197
2302
|
/**
|
|
2198
2303
|
* Get a time off request for the current user
|
|
2199
2304
|
*
|
|
@@ -2268,6 +2373,41 @@ class WorkforceManagementApi {
|
|
|
2268
2373
|
);
|
|
2269
2374
|
}
|
|
2270
2375
|
|
|
2376
|
+
/**
|
|
2377
|
+
* Update an adherence explanation
|
|
2378
|
+
*
|
|
2379
|
+
* @param {String} agentId The ID of the agent to query
|
|
2380
|
+
* @param {String} explanationId The ID of the explanation to update
|
|
2381
|
+
* @param {Object} body The request body
|
|
2382
|
+
*/
|
|
2383
|
+
patchWorkforcemanagementAgentAdherenceExplanation(agentId, explanationId, body) {
|
|
2384
|
+
// verify the required parameter 'agentId' is set
|
|
2385
|
+
if (agentId === undefined || agentId === null) {
|
|
2386
|
+
throw 'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';
|
|
2387
|
+
}
|
|
2388
|
+
// verify the required parameter 'explanationId' is set
|
|
2389
|
+
if (explanationId === undefined || explanationId === null) {
|
|
2390
|
+
throw 'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';
|
|
2391
|
+
}
|
|
2392
|
+
// verify the required parameter 'body' is set
|
|
2393
|
+
if (body === undefined || body === null) {
|
|
2394
|
+
throw 'Missing the required parameter "body" when calling patchWorkforcemanagementAgentAdherenceExplanation';
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
return this.apiClient.callApi(
|
|
2398
|
+
'/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/{explanationId}',
|
|
2399
|
+
'PATCH',
|
|
2400
|
+
{ 'agentId': agentId,'explanationId': explanationId },
|
|
2401
|
+
{ },
|
|
2402
|
+
{ },
|
|
2403
|
+
{ },
|
|
2404
|
+
body,
|
|
2405
|
+
['PureCloud OAuth'],
|
|
2406
|
+
['application/json'],
|
|
2407
|
+
['application/json']
|
|
2408
|
+
);
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2271
2411
|
/**
|
|
2272
2412
|
* Update business unit
|
|
2273
2413
|
*
|
|
@@ -2707,6 +2847,61 @@ class WorkforceManagementApi {
|
|
|
2707
2847
|
);
|
|
2708
2848
|
}
|
|
2709
2849
|
|
|
2850
|
+
/**
|
|
2851
|
+
* Submit an adherence explanation for the current user
|
|
2852
|
+
*
|
|
2853
|
+
* @param {Object} body The request body
|
|
2854
|
+
*/
|
|
2855
|
+
postWorkforcemanagementAdherenceExplanations(body) {
|
|
2856
|
+
// verify the required parameter 'body' is set
|
|
2857
|
+
if (body === undefined || body === null) {
|
|
2858
|
+
throw 'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanations';
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
return this.apiClient.callApi(
|
|
2862
|
+
'/api/v2/workforcemanagement/adherence/explanations',
|
|
2863
|
+
'POST',
|
|
2864
|
+
{ },
|
|
2865
|
+
{ },
|
|
2866
|
+
{ },
|
|
2867
|
+
{ },
|
|
2868
|
+
body,
|
|
2869
|
+
['PureCloud OAuth'],
|
|
2870
|
+
['application/json'],
|
|
2871
|
+
['application/json']
|
|
2872
|
+
);
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
/**
|
|
2876
|
+
* Query adherence explanations for the current user
|
|
2877
|
+
*
|
|
2878
|
+
* @param {Object} body The request body
|
|
2879
|
+
* @param {Object} opts Optional parameters
|
|
2880
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
2881
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
2882
|
+
*/
|
|
2883
|
+
postWorkforcemanagementAdherenceExplanationsQuery(body, opts) {
|
|
2884
|
+
opts = opts || {};
|
|
2885
|
+
|
|
2886
|
+
// verify the required parameter 'body' is set
|
|
2887
|
+
if (body === undefined || body === null) {
|
|
2888
|
+
throw 'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
return this.apiClient.callApi(
|
|
2892
|
+
'/api/v2/workforcemanagement/adherence/explanations/query',
|
|
2893
|
+
'POST',
|
|
2894
|
+
{ },
|
|
2895
|
+
{ 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
|
|
2896
|
+
{ },
|
|
2897
|
+
{ },
|
|
2898
|
+
body,
|
|
2899
|
+
['PureCloud OAuth'],
|
|
2900
|
+
['application/json'],
|
|
2901
|
+
['application/json']
|
|
2902
|
+
);
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2710
2905
|
/**
|
|
2711
2906
|
* Request a historical adherence report for users across management units
|
|
2712
2907
|
*
|
|
@@ -2731,6 +2926,71 @@ class WorkforceManagementApi {
|
|
|
2731
2926
|
);
|
|
2732
2927
|
}
|
|
2733
2928
|
|
|
2929
|
+
/**
|
|
2930
|
+
* Add an adherence explanation for the requested user
|
|
2931
|
+
*
|
|
2932
|
+
* @param {String} agentId The ID of the agent to query
|
|
2933
|
+
* @param {Object} body The request body
|
|
2934
|
+
*/
|
|
2935
|
+
postWorkforcemanagementAgentAdherenceExplanations(agentId, body) {
|
|
2936
|
+
// verify the required parameter 'agentId' is set
|
|
2937
|
+
if (agentId === undefined || agentId === null) {
|
|
2938
|
+
throw 'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';
|
|
2939
|
+
}
|
|
2940
|
+
// verify the required parameter 'body' is set
|
|
2941
|
+
if (body === undefined || body === null) {
|
|
2942
|
+
throw 'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
return this.apiClient.callApi(
|
|
2946
|
+
'/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations',
|
|
2947
|
+
'POST',
|
|
2948
|
+
{ 'agentId': agentId },
|
|
2949
|
+
{ },
|
|
2950
|
+
{ },
|
|
2951
|
+
{ },
|
|
2952
|
+
body,
|
|
2953
|
+
['PureCloud OAuth'],
|
|
2954
|
+
['application/json'],
|
|
2955
|
+
['application/json']
|
|
2956
|
+
);
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
/**
|
|
2960
|
+
* Query adherence explanations for the given agent across a specified range
|
|
2961
|
+
*
|
|
2962
|
+
* @param {String} agentId The ID of the agent to query
|
|
2963
|
+
* @param {Object} body The request body
|
|
2964
|
+
* @param {Object} opts Optional parameters
|
|
2965
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
2966
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
2967
|
+
*/
|
|
2968
|
+
postWorkforcemanagementAgentAdherenceExplanationsQuery(agentId, body, opts) {
|
|
2969
|
+
opts = opts || {};
|
|
2970
|
+
|
|
2971
|
+
// verify the required parameter 'agentId' is set
|
|
2972
|
+
if (agentId === undefined || agentId === null) {
|
|
2973
|
+
throw 'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';
|
|
2974
|
+
}
|
|
2975
|
+
// verify the required parameter 'body' is set
|
|
2976
|
+
if (body === undefined || body === null) {
|
|
2977
|
+
throw 'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';
|
|
2978
|
+
}
|
|
2979
|
+
|
|
2980
|
+
return this.apiClient.callApi(
|
|
2981
|
+
'/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/query',
|
|
2982
|
+
'POST',
|
|
2983
|
+
{ 'agentId': agentId },
|
|
2984
|
+
{ 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
|
|
2985
|
+
{ },
|
|
2986
|
+
{ },
|
|
2987
|
+
body,
|
|
2988
|
+
['PureCloud OAuth'],
|
|
2989
|
+
['application/json'],
|
|
2990
|
+
['application/json']
|
|
2991
|
+
);
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2734
2994
|
/**
|
|
2735
2995
|
* Get published schedule for the current user
|
|
2736
2996
|
*
|
|
@@ -2784,6 +3044,41 @@ class WorkforceManagementApi {
|
|
|
2784
3044
|
);
|
|
2785
3045
|
}
|
|
2786
3046
|
|
|
3047
|
+
/**
|
|
3048
|
+
* Query adherence explanations across an entire business unit for the requested period
|
|
3049
|
+
*
|
|
3050
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
3051
|
+
* @param {Object} body The request body
|
|
3052
|
+
* @param {Object} opts Optional parameters
|
|
3053
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
3054
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
3055
|
+
*/
|
|
3056
|
+
postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(businessUnitId, body, opts) {
|
|
3057
|
+
opts = opts || {};
|
|
3058
|
+
|
|
3059
|
+
// verify the required parameter 'businessUnitId' is set
|
|
3060
|
+
if (businessUnitId === undefined || businessUnitId === null) {
|
|
3061
|
+
throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';
|
|
3062
|
+
}
|
|
3063
|
+
// verify the required parameter 'body' is set
|
|
3064
|
+
if (body === undefined || body === null) {
|
|
3065
|
+
throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
return this.apiClient.callApi(
|
|
3069
|
+
'/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/explanations/query',
|
|
3070
|
+
'POST',
|
|
3071
|
+
{ 'businessUnitId': businessUnitId },
|
|
3072
|
+
{ 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
|
|
3073
|
+
{ },
|
|
3074
|
+
{ },
|
|
3075
|
+
body,
|
|
3076
|
+
['PureCloud OAuth'],
|
|
3077
|
+
['application/json'],
|
|
3078
|
+
['application/json']
|
|
3079
|
+
);
|
|
3080
|
+
}
|
|
3081
|
+
|
|
2787
3082
|
/**
|
|
2788
3083
|
* Search published schedules
|
|
2789
3084
|
*
|
|
@@ -3611,6 +3906,35 @@ class WorkforceManagementApi {
|
|
|
3611
3906
|
);
|
|
3612
3907
|
}
|
|
3613
3908
|
|
|
3909
|
+
/**
|
|
3910
|
+
* Request a historical shrinkage report
|
|
3911
|
+
* 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.
|
|
3912
|
+
* @param {String} managementUnitId The ID of the management unit
|
|
3913
|
+
* @param {Object} opts Optional parameters
|
|
3914
|
+
* @param {Object} opts.body body
|
|
3915
|
+
*/
|
|
3916
|
+
postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId, opts) {
|
|
3917
|
+
opts = opts || {};
|
|
3918
|
+
|
|
3919
|
+
// verify the required parameter 'managementUnitId' is set
|
|
3920
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
3921
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
return this.apiClient.callApi(
|
|
3925
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs',
|
|
3926
|
+
'POST',
|
|
3927
|
+
{ 'managementUnitId': managementUnitId },
|
|
3928
|
+
{ },
|
|
3929
|
+
{ },
|
|
3930
|
+
{ },
|
|
3931
|
+
opts['body'],
|
|
3932
|
+
['PureCloud OAuth'],
|
|
3933
|
+
['application/json'],
|
|
3934
|
+
['application/json']
|
|
3935
|
+
);
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3614
3938
|
/**
|
|
3615
3939
|
* Creates a new time off limit object under management unit.
|
|
3616
3940
|
* Only one limit object is allowed under management unit, so an attempt to create second object will fail.
|