purecloud-platform-client-v2 173.0.0 → 174.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 +1432 -106
- package/dist/web-amd/purecloud-platform-client-v2.js +1432 -106
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +1432 -106
- package/dist/web-cjs/purecloud-platform-client-v2.js +1432 -106
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1278 -218
- 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 +493 -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/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 +223 -5
- 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/EmailsApi.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 +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +62 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +188 -3
- 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/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 +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 +10 -8
- 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 +7 -6
- 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/SettingsApi.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/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 +2 -2
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +7 -3
- 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 +10 -5
- 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 +363 -6
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class TokensApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Tokens service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 174.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -68,14 +68,18 @@ class TokensApi {
|
|
|
68
68
|
/**
|
|
69
69
|
* Fetch information about the current token
|
|
70
70
|
*
|
|
71
|
+
* @param {Object} opts Optional parameters
|
|
72
|
+
* @param {Boolean} opts.preserveIdleTTL preserveIdleTTL indicates whether the idle token timeout should be reset or preserved. If preserveIdleTTL is true, then TTL value is not reset. If unset or false, the value is reset.
|
|
71
73
|
*/
|
|
72
|
-
getTokensMe() {
|
|
74
|
+
getTokensMe(opts) {
|
|
75
|
+
opts = opts || {};
|
|
76
|
+
|
|
73
77
|
|
|
74
78
|
return this.apiClient.callApi(
|
|
75
79
|
'/api/v2/tokens/me',
|
|
76
80
|
'GET',
|
|
77
81
|
{ },
|
|
78
|
-
{
|
|
82
|
+
{ 'preserveIdleTTL': opts['preserveIdleTTL'] },
|
|
79
83
|
{ },
|
|
80
84
|
{ },
|
|
81
85
|
null,
|
|
@@ -5,7 +5,7 @@ class WebDeploymentsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* WebDeployments service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 174.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -233,8 +233,12 @@ class WebDeploymentsApi {
|
|
|
233
233
|
* Get a deployment
|
|
234
234
|
*
|
|
235
235
|
* @param {String} deploymentId The deployment ID
|
|
236
|
+
* @param {Object} opts Optional parameters
|
|
237
|
+
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
236
238
|
*/
|
|
237
|
-
getWebdeploymentsDeployment(deploymentId) {
|
|
239
|
+
getWebdeploymentsDeployment(deploymentId, opts) {
|
|
240
|
+
opts = opts || {};
|
|
241
|
+
|
|
238
242
|
// verify the required parameter 'deploymentId' is set
|
|
239
243
|
if (deploymentId === undefined || deploymentId === null) {
|
|
240
244
|
throw 'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeployment';
|
|
@@ -244,7 +248,7 @@ class WebDeploymentsApi {
|
|
|
244
248
|
'/api/v2/webdeployments/deployments/{deploymentId}',
|
|
245
249
|
'GET',
|
|
246
250
|
{ 'deploymentId': deploymentId },
|
|
247
|
-
{
|
|
251
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
248
252
|
{ },
|
|
249
253
|
{ },
|
|
250
254
|
null,
|
|
@@ -290,6 +294,7 @@ class WebDeploymentsApi {
|
|
|
290
294
|
* @param {String} deploymentId The deployment ID
|
|
291
295
|
* @param {Object} opts Optional parameters
|
|
292
296
|
* @param {String} opts.type Get active configuration on a deployment
|
|
297
|
+
* @param {Array.<String>} opts.expand Expand instructions for the return value
|
|
293
298
|
*/
|
|
294
299
|
getWebdeploymentsDeploymentConfigurations(deploymentId, opts) {
|
|
295
300
|
opts = opts || {};
|
|
@@ -303,7 +308,7 @@ class WebDeploymentsApi {
|
|
|
303
308
|
'/api/v2/webdeployments/deployments/{deploymentId}/configurations',
|
|
304
309
|
'GET',
|
|
305
310
|
{ 'deploymentId': deploymentId },
|
|
306
|
-
{ 'type': opts['type'] },
|
|
311
|
+
{ 'type': opts['type'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
307
312
|
{ },
|
|
308
313
|
{ },
|
|
309
314
|
null,
|
|
@@ -317,7 +322,7 @@ class WebDeploymentsApi {
|
|
|
317
322
|
* Get deployments
|
|
318
323
|
*
|
|
319
324
|
* @param {Object} opts Optional parameters
|
|
320
|
-
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
325
|
+
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
321
326
|
*/
|
|
322
327
|
getWebdeploymentsDeployments(opts) {
|
|
323
328
|
opts = opts || {};
|
|
@@ -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 174.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -924,8 +924,12 @@ class WorkforceManagementApi {
|
|
|
924
924
|
*
|
|
925
925
|
* @param {String} businessUnitId The ID of the business unit.
|
|
926
926
|
* @param {String} serviceGoalTemplateId The ID of a service goal template to fetch
|
|
927
|
+
* @param {Object} opts Optional parameters
|
|
928
|
+
* @param {Array.<String>} opts.expand Include to access additional data on the service goal template
|
|
927
929
|
*/
|
|
928
|
-
getWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId, serviceGoalTemplateId) {
|
|
930
|
+
getWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId, serviceGoalTemplateId, opts) {
|
|
931
|
+
opts = opts || {};
|
|
932
|
+
|
|
929
933
|
// verify the required parameter 'businessUnitId' is set
|
|
930
934
|
if (businessUnitId === undefined || businessUnitId === null) {
|
|
931
935
|
throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';
|
|
@@ -939,7 +943,7 @@ class WorkforceManagementApi {
|
|
|
939
943
|
'/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}',
|
|
940
944
|
'GET',
|
|
941
945
|
{ 'businessUnitId': businessUnitId,'serviceGoalTemplateId': serviceGoalTemplateId },
|
|
942
|
-
{
|
|
946
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
943
947
|
{ },
|
|
944
948
|
{ },
|
|
945
949
|
null,
|
|
@@ -953,8 +957,12 @@ class WorkforceManagementApi {
|
|
|
953
957
|
* Gets list of service goal templates
|
|
954
958
|
*
|
|
955
959
|
* @param {String} businessUnitId The ID of the business unit.
|
|
960
|
+
* @param {Object} opts Optional parameters
|
|
961
|
+
* @param {Array.<String>} opts.expand Include to access additional data on the service goal template
|
|
956
962
|
*/
|
|
957
|
-
getWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId) {
|
|
963
|
+
getWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId, opts) {
|
|
964
|
+
opts = opts || {};
|
|
965
|
+
|
|
958
966
|
// verify the required parameter 'businessUnitId' is set
|
|
959
967
|
if (businessUnitId === undefined || businessUnitId === null) {
|
|
960
968
|
throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplates';
|
|
@@ -964,7 +972,7 @@ class WorkforceManagementApi {
|
|
|
964
972
|
'/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates',
|
|
965
973
|
'GET',
|
|
966
974
|
{ 'businessUnitId': businessUnitId },
|
|
967
|
-
{
|
|
975
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
968
976
|
{ },
|
|
969
977
|
{ },
|
|
970
978
|
null,
|
|
@@ -1514,6 +1522,51 @@ class WorkforceManagementApi {
|
|
|
1514
1522
|
);
|
|
1515
1523
|
}
|
|
1516
1524
|
|
|
1525
|
+
/**
|
|
1526
|
+
* Get integrations
|
|
1527
|
+
*
|
|
1528
|
+
*/
|
|
1529
|
+
getWorkforcemanagementIntegrationsHris() {
|
|
1530
|
+
|
|
1531
|
+
return this.apiClient.callApi(
|
|
1532
|
+
'/api/v2/workforcemanagement/integrations/hris',
|
|
1533
|
+
'GET',
|
|
1534
|
+
{ },
|
|
1535
|
+
{ },
|
|
1536
|
+
{ },
|
|
1537
|
+
{ },
|
|
1538
|
+
null,
|
|
1539
|
+
['PureCloud OAuth'],
|
|
1540
|
+
['application/json'],
|
|
1541
|
+
['application/json']
|
|
1542
|
+
);
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Query the results of time off types job
|
|
1547
|
+
*
|
|
1548
|
+
* @param {String} jobId The ID of the job.
|
|
1549
|
+
*/
|
|
1550
|
+
getWorkforcemanagementIntegrationsHrisTimeofftypesJob(jobId) {
|
|
1551
|
+
// verify the required parameter 'jobId' is set
|
|
1552
|
+
if (jobId === undefined || jobId === null) {
|
|
1553
|
+
throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementIntegrationsHrisTimeofftypesJob';
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
return this.apiClient.callApi(
|
|
1557
|
+
'/api/v2/workforcemanagement/integrations/hris/timeofftypes/jobs/{jobId}',
|
|
1558
|
+
'GET',
|
|
1559
|
+
{ 'jobId': jobId },
|
|
1560
|
+
{ },
|
|
1561
|
+
{ },
|
|
1562
|
+
{ },
|
|
1563
|
+
null,
|
|
1564
|
+
['PureCloud OAuth'],
|
|
1565
|
+
['application/json'],
|
|
1566
|
+
['application/json']
|
|
1567
|
+
);
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1517
1570
|
/**
|
|
1518
1571
|
* Get management unit
|
|
1519
1572
|
* settings.shortTermForecasting is deprecated and now lives on the business unit
|
|
@@ -1544,7 +1597,7 @@ class WorkforceManagementApi {
|
|
|
1544
1597
|
}
|
|
1545
1598
|
|
|
1546
1599
|
/**
|
|
1547
|
-
* Get activity codes
|
|
1600
|
+
* Deprecated: Instead use /api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes. Get the list of activity codes
|
|
1548
1601
|
*
|
|
1549
1602
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
1550
1603
|
* @deprecated
|
|
@@ -2327,6 +2380,31 @@ class WorkforceManagementApi {
|
|
|
2327
2380
|
);
|
|
2328
2381
|
}
|
|
2329
2382
|
|
|
2383
|
+
/**
|
|
2384
|
+
* Query the results of time off types job
|
|
2385
|
+
*
|
|
2386
|
+
* @param {String} jobId The ID of the job.
|
|
2387
|
+
*/
|
|
2388
|
+
getWorkforcemanagementTimeoffbalanceJob(jobId) {
|
|
2389
|
+
// verify the required parameter 'jobId' is set
|
|
2390
|
+
if (jobId === undefined || jobId === null) {
|
|
2391
|
+
throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementTimeoffbalanceJob';
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
return this.apiClient.callApi(
|
|
2395
|
+
'/api/v2/workforcemanagement/timeoffbalance/jobs/{jobId}',
|
|
2396
|
+
'GET',
|
|
2397
|
+
{ 'jobId': jobId },
|
|
2398
|
+
{ },
|
|
2399
|
+
{ },
|
|
2400
|
+
{ },
|
|
2401
|
+
null,
|
|
2402
|
+
['PureCloud OAuth'],
|
|
2403
|
+
['application/json'],
|
|
2404
|
+
['application/json']
|
|
2405
|
+
);
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2330
2408
|
/**
|
|
2331
2409
|
* Get a time off request for the current user
|
|
2332
2410
|
*
|
|
@@ -2698,6 +2776,45 @@ class WorkforceManagementApi {
|
|
|
2698
2776
|
);
|
|
2699
2777
|
}
|
|
2700
2778
|
|
|
2779
|
+
/**
|
|
2780
|
+
* Set integration status for a time off request.
|
|
2781
|
+
*
|
|
2782
|
+
* @param {String} managementUnitId The ID of the management unit.
|
|
2783
|
+
* @param {String} timeOffRequestId The ID of the time off request.
|
|
2784
|
+
* @param {String} userId The ID of user to whom the time off request belongs.
|
|
2785
|
+
* @param {Object} opts Optional parameters
|
|
2786
|
+
* @param {Object} opts.body body
|
|
2787
|
+
*/
|
|
2788
|
+
patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId, timeOffRequestId, userId, opts) {
|
|
2789
|
+
opts = opts || {};
|
|
2790
|
+
|
|
2791
|
+
// verify the required parameter 'managementUnitId' is set
|
|
2792
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
2793
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';
|
|
2794
|
+
}
|
|
2795
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
2796
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
2797
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';
|
|
2798
|
+
}
|
|
2799
|
+
// verify the required parameter 'userId' is set
|
|
2800
|
+
if (userId === undefined || userId === null) {
|
|
2801
|
+
throw 'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
return this.apiClient.callApi(
|
|
2805
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/{timeOffRequestId}/users/{userId}/integrationstatus',
|
|
2806
|
+
'PATCH',
|
|
2807
|
+
{ 'managementUnitId': managementUnitId,'timeOffRequestId': timeOffRequestId,'userId': userId },
|
|
2808
|
+
{ },
|
|
2809
|
+
{ },
|
|
2810
|
+
{ },
|
|
2811
|
+
opts['body'],
|
|
2812
|
+
['PureCloud OAuth'],
|
|
2813
|
+
['application/json'],
|
|
2814
|
+
['application/json']
|
|
2815
|
+
);
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2701
2818
|
/**
|
|
2702
2819
|
* Update a time off request
|
|
2703
2820
|
*
|
|
@@ -2935,6 +3052,7 @@ class WorkforceManagementApi {
|
|
|
2935
3052
|
*
|
|
2936
3053
|
* @param {Object} opts Optional parameters
|
|
2937
3054
|
* @param {Object} opts.body body
|
|
3055
|
+
* @deprecated
|
|
2938
3056
|
*/
|
|
2939
3057
|
postWorkforcemanagementAdherenceHistorical(opts) {
|
|
2940
3058
|
opts = opts || {};
|
|
@@ -3043,6 +3161,54 @@ class WorkforceManagementApi {
|
|
|
3043
3161
|
);
|
|
3044
3162
|
}
|
|
3045
3163
|
|
|
3164
|
+
/**
|
|
3165
|
+
* Move agents in and out of management unit
|
|
3166
|
+
*
|
|
3167
|
+
* @param {Object} opts Optional parameters
|
|
3168
|
+
* @param {Object} opts.body body
|
|
3169
|
+
*/
|
|
3170
|
+
postWorkforcemanagementAgents(opts) {
|
|
3171
|
+
opts = opts || {};
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
return this.apiClient.callApi(
|
|
3175
|
+
'/api/v2/workforcemanagement/agents',
|
|
3176
|
+
'POST',
|
|
3177
|
+
{ },
|
|
3178
|
+
{ },
|
|
3179
|
+
{ },
|
|
3180
|
+
{ },
|
|
3181
|
+
opts['body'],
|
|
3182
|
+
['PureCloud OAuth'],
|
|
3183
|
+
['application/json'],
|
|
3184
|
+
['application/json']
|
|
3185
|
+
);
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
/**
|
|
3189
|
+
* Query integrations for agents
|
|
3190
|
+
*
|
|
3191
|
+
* @param {Object} opts Optional parameters
|
|
3192
|
+
* @param {Object} opts.body body
|
|
3193
|
+
*/
|
|
3194
|
+
postWorkforcemanagementAgentsIntegrationsHrisQuery(opts) {
|
|
3195
|
+
opts = opts || {};
|
|
3196
|
+
|
|
3197
|
+
|
|
3198
|
+
return this.apiClient.callApi(
|
|
3199
|
+
'/api/v2/workforcemanagement/agents/integrations/hris/query',
|
|
3200
|
+
'POST',
|
|
3201
|
+
{ },
|
|
3202
|
+
{ },
|
|
3203
|
+
{ },
|
|
3204
|
+
{ },
|
|
3205
|
+
opts['body'],
|
|
3206
|
+
['PureCloud OAuth'],
|
|
3207
|
+
['application/json'],
|
|
3208
|
+
['application/json']
|
|
3209
|
+
);
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3046
3212
|
/**
|
|
3047
3213
|
* Get agent possible work shifts for requested time frame
|
|
3048
3214
|
*
|
|
@@ -3865,6 +4031,31 @@ class WorkforceManagementApi {
|
|
|
3865
4031
|
);
|
|
3866
4032
|
}
|
|
3867
4033
|
|
|
4034
|
+
/**
|
|
4035
|
+
* Get list of time off types configured in integration
|
|
4036
|
+
*
|
|
4037
|
+
* @param {String} hrisIntegrationId The ID of the HRIS integration for which time off types are queried.
|
|
4038
|
+
*/
|
|
4039
|
+
postWorkforcemanagementIntegrationsHriTimeofftypesJobs(hrisIntegrationId) {
|
|
4040
|
+
// verify the required parameter 'hrisIntegrationId' is set
|
|
4041
|
+
if (hrisIntegrationId === undefined || hrisIntegrationId === null) {
|
|
4042
|
+
throw 'Missing the required parameter "hrisIntegrationId" when calling postWorkforcemanagementIntegrationsHriTimeofftypesJobs';
|
|
4043
|
+
}
|
|
4044
|
+
|
|
4045
|
+
return this.apiClient.callApi(
|
|
4046
|
+
'/api/v2/workforcemanagement/integrations/hris/{hrisIntegrationId}/timeofftypes/jobs',
|
|
4047
|
+
'POST',
|
|
4048
|
+
{ 'hrisIntegrationId': hrisIntegrationId },
|
|
4049
|
+
{ },
|
|
4050
|
+
{ },
|
|
4051
|
+
{ },
|
|
4052
|
+
null,
|
|
4053
|
+
['PureCloud OAuth'],
|
|
4054
|
+
['application/json'],
|
|
4055
|
+
['application/json']
|
|
4056
|
+
);
|
|
4057
|
+
}
|
|
4058
|
+
|
|
3868
4059
|
/**
|
|
3869
4060
|
* Query published schedules for given given time range for set of users
|
|
3870
4061
|
*
|
|
@@ -4129,6 +4320,35 @@ class WorkforceManagementApi {
|
|
|
4129
4320
|
);
|
|
4130
4321
|
}
|
|
4131
4322
|
|
|
4323
|
+
/**
|
|
4324
|
+
* Retrieves integration statuses for a list of time off requests
|
|
4325
|
+
*
|
|
4326
|
+
* @param {String} managementUnitId The ID of the management unit.
|
|
4327
|
+
* @param {Object} opts Optional parameters
|
|
4328
|
+
* @param {Object} opts.body body
|
|
4329
|
+
*/
|
|
4330
|
+
postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId, opts) {
|
|
4331
|
+
opts = opts || {};
|
|
4332
|
+
|
|
4333
|
+
// verify the required parameter 'managementUnitId' is set
|
|
4334
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
4335
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';
|
|
4336
|
+
}
|
|
4337
|
+
|
|
4338
|
+
return this.apiClient.callApi(
|
|
4339
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/integrationstatus/query',
|
|
4340
|
+
'POST',
|
|
4341
|
+
{ 'managementUnitId': managementUnitId },
|
|
4342
|
+
{ },
|
|
4343
|
+
{ },
|
|
4344
|
+
{ },
|
|
4345
|
+
opts['body'],
|
|
4346
|
+
['PureCloud OAuth'],
|
|
4347
|
+
['application/json'],
|
|
4348
|
+
['application/json']
|
|
4349
|
+
);
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4132
4352
|
/**
|
|
4133
4353
|
* Fetches time off requests matching the conditions specified in the request body
|
|
4134
4354
|
* 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
|
|
@@ -4257,6 +4477,40 @@ class WorkforceManagementApi {
|
|
|
4257
4477
|
);
|
|
4258
4478
|
}
|
|
4259
4479
|
|
|
4480
|
+
/**
|
|
4481
|
+
* Estimates available time off for an agent
|
|
4482
|
+
*
|
|
4483
|
+
* @param {String} managementUnitId The ID of the management unit
|
|
4484
|
+
* @param {String} userId The id of the user for whom the time off request estimate is requested
|
|
4485
|
+
* @param {Object} opts Optional parameters
|
|
4486
|
+
* @param {Object} opts.body body
|
|
4487
|
+
*/
|
|
4488
|
+
postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId, userId, opts) {
|
|
4489
|
+
opts = opts || {};
|
|
4490
|
+
|
|
4491
|
+
// verify the required parameter 'managementUnitId' is set
|
|
4492
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
4493
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';
|
|
4494
|
+
}
|
|
4495
|
+
// verify the required parameter 'userId' is set
|
|
4496
|
+
if (userId === undefined || userId === null) {
|
|
4497
|
+
throw 'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';
|
|
4498
|
+
}
|
|
4499
|
+
|
|
4500
|
+
return this.apiClient.callApi(
|
|
4501
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/estimate',
|
|
4502
|
+
'POST',
|
|
4503
|
+
{ 'managementUnitId': managementUnitId,'userId': userId },
|
|
4504
|
+
{ },
|
|
4505
|
+
{ },
|
|
4506
|
+
{ },
|
|
4507
|
+
opts['body'],
|
|
4508
|
+
['PureCloud OAuth'],
|
|
4509
|
+
['application/json'],
|
|
4510
|
+
['application/json']
|
|
4511
|
+
);
|
|
4512
|
+
}
|
|
4513
|
+
|
|
4260
4514
|
/**
|
|
4261
4515
|
* Matches a shift trade. This route can only be called by the receiving agent
|
|
4262
4516
|
*
|
|
@@ -4699,6 +4953,31 @@ class WorkforceManagementApi {
|
|
|
4699
4953
|
);
|
|
4700
4954
|
}
|
|
4701
4955
|
|
|
4956
|
+
/**
|
|
4957
|
+
* Query time off balances for the current user for specified activity code and dates
|
|
4958
|
+
*
|
|
4959
|
+
* @param {Object} body The request body
|
|
4960
|
+
*/
|
|
4961
|
+
postWorkforcemanagementTimeoffbalanceJobs(body) {
|
|
4962
|
+
// verify the required parameter 'body' is set
|
|
4963
|
+
if (body === undefined || body === null) {
|
|
4964
|
+
throw 'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffbalanceJobs';
|
|
4965
|
+
}
|
|
4966
|
+
|
|
4967
|
+
return this.apiClient.callApi(
|
|
4968
|
+
'/api/v2/workforcemanagement/timeoffbalance/jobs',
|
|
4969
|
+
'POST',
|
|
4970
|
+
{ },
|
|
4971
|
+
{ },
|
|
4972
|
+
{ },
|
|
4973
|
+
{ },
|
|
4974
|
+
body,
|
|
4975
|
+
['PureCloud OAuth'],
|
|
4976
|
+
['application/json'],
|
|
4977
|
+
['application/json']
|
|
4978
|
+
);
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4702
4981
|
/**
|
|
4703
4982
|
* Queries available time off for the current user
|
|
4704
4983
|
*
|
|
@@ -4747,6 +5026,84 @@ class WorkforceManagementApi {
|
|
|
4747
5026
|
);
|
|
4748
5027
|
}
|
|
4749
5028
|
|
|
5029
|
+
/**
|
|
5030
|
+
* Estimates available time off for current user
|
|
5031
|
+
*
|
|
5032
|
+
* @param {Object} opts Optional parameters
|
|
5033
|
+
* @param {Object} opts.body body
|
|
5034
|
+
*/
|
|
5035
|
+
postWorkforcemanagementTimeoffrequestsEstimate(opts) {
|
|
5036
|
+
opts = opts || {};
|
|
5037
|
+
|
|
5038
|
+
|
|
5039
|
+
return this.apiClient.callApi(
|
|
5040
|
+
'/api/v2/workforcemanagement/timeoffrequests/estimate',
|
|
5041
|
+
'POST',
|
|
5042
|
+
{ },
|
|
5043
|
+
{ },
|
|
5044
|
+
{ },
|
|
5045
|
+
{ },
|
|
5046
|
+
opts['body'],
|
|
5047
|
+
['PureCloud OAuth'],
|
|
5048
|
+
['application/json'],
|
|
5049
|
+
['application/json']
|
|
5050
|
+
);
|
|
5051
|
+
}
|
|
5052
|
+
|
|
5053
|
+
/**
|
|
5054
|
+
* Retrieves integration statuses for a list of current user time off requests
|
|
5055
|
+
*
|
|
5056
|
+
* @param {Object} opts Optional parameters
|
|
5057
|
+
* @param {Object} opts.body body
|
|
5058
|
+
*/
|
|
5059
|
+
postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(opts) {
|
|
5060
|
+
opts = opts || {};
|
|
5061
|
+
|
|
5062
|
+
|
|
5063
|
+
return this.apiClient.callApi(
|
|
5064
|
+
'/api/v2/workforcemanagement/timeoffrequests/integrationstatus/query',
|
|
5065
|
+
'POST',
|
|
5066
|
+
{ },
|
|
5067
|
+
{ },
|
|
5068
|
+
{ },
|
|
5069
|
+
{ },
|
|
5070
|
+
opts['body'],
|
|
5071
|
+
['PureCloud OAuth'],
|
|
5072
|
+
['application/json'],
|
|
5073
|
+
['application/json']
|
|
5074
|
+
);
|
|
5075
|
+
}
|
|
5076
|
+
|
|
5077
|
+
/**
|
|
5078
|
+
* Update integrations for agent
|
|
5079
|
+
*
|
|
5080
|
+
* @param {String} agentId The ID of the agent
|
|
5081
|
+
* @param {Object} body body
|
|
5082
|
+
*/
|
|
5083
|
+
putWorkforcemanagementAgentIntegrationsHris(agentId, body) {
|
|
5084
|
+
// verify the required parameter 'agentId' is set
|
|
5085
|
+
if (agentId === undefined || agentId === null) {
|
|
5086
|
+
throw 'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';
|
|
5087
|
+
}
|
|
5088
|
+
// verify the required parameter 'body' is set
|
|
5089
|
+
if (body === undefined || body === null) {
|
|
5090
|
+
throw 'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';
|
|
5091
|
+
}
|
|
5092
|
+
|
|
5093
|
+
return this.apiClient.callApi(
|
|
5094
|
+
'/api/v2/workforcemanagement/agents/{agentId}/integrations/hris',
|
|
5095
|
+
'PUT',
|
|
5096
|
+
{ 'agentId': agentId },
|
|
5097
|
+
{ },
|
|
5098
|
+
{ },
|
|
5099
|
+
{ },
|
|
5100
|
+
body,
|
|
5101
|
+
['PureCloud OAuth'],
|
|
5102
|
+
['application/json'],
|
|
5103
|
+
['application/json']
|
|
5104
|
+
);
|
|
5105
|
+
}
|
|
5106
|
+
|
|
4750
5107
|
/**
|
|
4751
5108
|
* Sets daily values for a date range of time off limit object
|
|
4752
5109
|
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
|