purecloud-platform-client-v2 125.0.0 → 128.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 +810 -171
- package/dist/web-amd/purecloud-platform-client-v2.js +810 -171
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +810 -171
- package/dist/web-cjs/purecloud-platform-client-v2.js +810 -171
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +463 -268
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -26
- 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/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 +1 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.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 -74
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +3 -3
- 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/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 +216 -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/QualityApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +3 -4
- 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 +22 -2
- 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/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +28 -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 +473 -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 128.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -280,6 +280,66 @@ class WorkforceManagementApi {
|
|
|
280
280
|
);
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
+
/**
|
|
284
|
+
* Deletes a time off limit object
|
|
285
|
+
*
|
|
286
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
287
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to delete
|
|
288
|
+
*/
|
|
289
|
+
deleteWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
290
|
+
// verify the required parameter 'managementUnitId' is set
|
|
291
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
292
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
293
|
+
}
|
|
294
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
295
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
296
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return this.apiClient.callApi(
|
|
300
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
301
|
+
'DELETE',
|
|
302
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
303
|
+
{ },
|
|
304
|
+
{ },
|
|
305
|
+
{ },
|
|
306
|
+
null,
|
|
307
|
+
['PureCloud OAuth'],
|
|
308
|
+
['application/json'],
|
|
309
|
+
['application/json']
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Deletes a time off plan
|
|
315
|
+
*
|
|
316
|
+
* @param {String} managementUnitId The management unit ID.
|
|
317
|
+
* @param {String} timeOffPlanId The ID of the time off plan to delete
|
|
318
|
+
*/
|
|
319
|
+
deleteWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
320
|
+
// verify the required parameter 'managementUnitId' is set
|
|
321
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
322
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
323
|
+
}
|
|
324
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
325
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
326
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
return this.apiClient.callApi(
|
|
330
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
331
|
+
'DELETE',
|
|
332
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
333
|
+
{ },
|
|
334
|
+
{ },
|
|
335
|
+
{ },
|
|
336
|
+
null,
|
|
337
|
+
['PureCloud OAuth'],
|
|
338
|
+
['application/json'],
|
|
339
|
+
['application/json']
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
|
|
283
343
|
/**
|
|
284
344
|
* Delete a work plan
|
|
285
345
|
*
|
|
@@ -1521,6 +1581,116 @@ class WorkforceManagementApi {
|
|
|
1521
1581
|
);
|
|
1522
1582
|
}
|
|
1523
1583
|
|
|
1584
|
+
/**
|
|
1585
|
+
* Gets a time off limit object
|
|
1586
|
+
* Returns properties of time off limit object, but not daily values.
|
|
1587
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
1588
|
+
* @param {String} timeOffLimitId The ID of the time off limit to fetch
|
|
1589
|
+
*/
|
|
1590
|
+
getWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
1591
|
+
// verify the required parameter 'managementUnitId' is set
|
|
1592
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
1593
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
1594
|
+
}
|
|
1595
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
1596
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
1597
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
return this.apiClient.callApi(
|
|
1601
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
1602
|
+
'GET',
|
|
1603
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
1604
|
+
{ },
|
|
1605
|
+
{ },
|
|
1606
|
+
{ },
|
|
1607
|
+
null,
|
|
1608
|
+
['PureCloud OAuth'],
|
|
1609
|
+
['application/json'],
|
|
1610
|
+
['application/json']
|
|
1611
|
+
);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* Gets a list of time off limit objects under management unit.
|
|
1616
|
+
* Currently only one time off limit object is allowed under management unit, so the list contains either 0 or 1 element.
|
|
1617
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
1618
|
+
*/
|
|
1619
|
+
getWorkforcemanagementManagementunitTimeofflimits(managementUnitId) {
|
|
1620
|
+
// verify the required parameter 'managementUnitId' is set
|
|
1621
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
1622
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
return this.apiClient.callApi(
|
|
1626
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
1627
|
+
'GET',
|
|
1628
|
+
{ 'managementUnitId': managementUnitId },
|
|
1629
|
+
{ },
|
|
1630
|
+
{ },
|
|
1631
|
+
{ },
|
|
1632
|
+
null,
|
|
1633
|
+
['PureCloud OAuth'],
|
|
1634
|
+
['application/json'],
|
|
1635
|
+
['application/json']
|
|
1636
|
+
);
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* Gets a time off plan
|
|
1641
|
+
*
|
|
1642
|
+
* @param {String} managementUnitId The management unit ID.
|
|
1643
|
+
* @param {String} timeOffPlanId The ID of the time off plan to fetch
|
|
1644
|
+
*/
|
|
1645
|
+
getWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
1646
|
+
// verify the required parameter 'managementUnitId' is set
|
|
1647
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
1648
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
1649
|
+
}
|
|
1650
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
1651
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
1652
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
return this.apiClient.callApi(
|
|
1656
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
1657
|
+
'GET',
|
|
1658
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
1659
|
+
{ },
|
|
1660
|
+
{ },
|
|
1661
|
+
{ },
|
|
1662
|
+
null,
|
|
1663
|
+
['PureCloud OAuth'],
|
|
1664
|
+
['application/json'],
|
|
1665
|
+
['application/json']
|
|
1666
|
+
);
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* Gets a list of time off plans
|
|
1671
|
+
*
|
|
1672
|
+
* @param {String} managementUnitId The management unit ID.
|
|
1673
|
+
*/
|
|
1674
|
+
getWorkforcemanagementManagementunitTimeoffplans(managementUnitId) {
|
|
1675
|
+
// verify the required parameter 'managementUnitId' is set
|
|
1676
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
1677
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
return this.apiClient.callApi(
|
|
1681
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
1682
|
+
'GET',
|
|
1683
|
+
{ 'managementUnitId': managementUnitId },
|
|
1684
|
+
{ },
|
|
1685
|
+
{ },
|
|
1686
|
+
{ },
|
|
1687
|
+
null,
|
|
1688
|
+
['PureCloud OAuth'],
|
|
1689
|
+
['application/json'],
|
|
1690
|
+
['application/json']
|
|
1691
|
+
);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1524
1694
|
/**
|
|
1525
1695
|
* Get a time off request
|
|
1526
1696
|
*
|
|
@@ -1556,6 +1726,41 @@ class WorkforceManagementApi {
|
|
|
1556
1726
|
);
|
|
1557
1727
|
}
|
|
1558
1728
|
|
|
1729
|
+
/**
|
|
1730
|
+
* Retrieves time off limit, allocated and waitlisted values according to specific time off request
|
|
1731
|
+
*
|
|
1732
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
1733
|
+
* @param {String} userId The userId to whom the time off request applies.
|
|
1734
|
+
* @param {String} timeOffRequestId The ID of the time off request, which dates and activityCodeId determine limit values to retrieve
|
|
1735
|
+
*/
|
|
1736
|
+
getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(managementUnitId, userId, timeOffRequestId) {
|
|
1737
|
+
// verify the required parameter 'managementUnitId' is set
|
|
1738
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
1739
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
1740
|
+
}
|
|
1741
|
+
// verify the required parameter 'userId' is set
|
|
1742
|
+
if (userId === undefined || userId === null) {
|
|
1743
|
+
throw 'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
1744
|
+
}
|
|
1745
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
1746
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
1747
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
return this.apiClient.callApi(
|
|
1751
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits',
|
|
1752
|
+
'GET',
|
|
1753
|
+
{ 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
|
|
1754
|
+
{ },
|
|
1755
|
+
{ },
|
|
1756
|
+
{ },
|
|
1757
|
+
null,
|
|
1758
|
+
['PureCloud OAuth'],
|
|
1759
|
+
['application/json'],
|
|
1760
|
+
['application/json']
|
|
1761
|
+
);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1559
1764
|
/**
|
|
1560
1765
|
* Get a list of time off requests for a given user
|
|
1561
1766
|
*
|
|
@@ -1989,6 +2194,31 @@ class WorkforceManagementApi {
|
|
|
1989
2194
|
);
|
|
1990
2195
|
}
|
|
1991
2196
|
|
|
2197
|
+
/**
|
|
2198
|
+
* Get the daily waitlist positions of a time off request for the current user
|
|
2199
|
+
*
|
|
2200
|
+
* @param {String} timeOffRequestId Time Off Request Id
|
|
2201
|
+
*/
|
|
2202
|
+
getWorkforcemanagementTimeoffrequestWaitlistpositions(timeOffRequestId) {
|
|
2203
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
2204
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
2205
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
return this.apiClient.callApi(
|
|
2209
|
+
'/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions',
|
|
2210
|
+
'GET',
|
|
2211
|
+
{ 'timeOffRequestId': timeOffRequestId },
|
|
2212
|
+
{ },
|
|
2213
|
+
{ },
|
|
2214
|
+
{ },
|
|
2215
|
+
null,
|
|
2216
|
+
['PureCloud OAuth'],
|
|
2217
|
+
['application/json'],
|
|
2218
|
+
['application/json']
|
|
2219
|
+
);
|
|
2220
|
+
}
|
|
2221
|
+
|
|
1992
2222
|
/**
|
|
1993
2223
|
* Get a list of time off requests for the current user
|
|
1994
2224
|
*
|
|
@@ -2207,6 +2437,74 @@ class WorkforceManagementApi {
|
|
|
2207
2437
|
);
|
|
2208
2438
|
}
|
|
2209
2439
|
|
|
2440
|
+
/**
|
|
2441
|
+
* Updates a time off limit object.
|
|
2442
|
+
* Updates time off limit object properties, but not daily values.
|
|
2443
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
2444
|
+
* @param {String} timeOffLimitId The id of time off limit object to update
|
|
2445
|
+
* @param {Object} opts Optional parameters
|
|
2446
|
+
* @param {Object} opts.body body
|
|
2447
|
+
*/
|
|
2448
|
+
patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId, opts) {
|
|
2449
|
+
opts = opts || {};
|
|
2450
|
+
|
|
2451
|
+
// verify the required parameter 'managementUnitId' is set
|
|
2452
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
2453
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
2454
|
+
}
|
|
2455
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
2456
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
2457
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
return this.apiClient.callApi(
|
|
2461
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
2462
|
+
'PATCH',
|
|
2463
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
2464
|
+
{ },
|
|
2465
|
+
{ },
|
|
2466
|
+
{ },
|
|
2467
|
+
opts['body'],
|
|
2468
|
+
['PureCloud OAuth'],
|
|
2469
|
+
['application/json'],
|
|
2470
|
+
['application/json']
|
|
2471
|
+
);
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* Updates a time off plan
|
|
2476
|
+
*
|
|
2477
|
+
* @param {String} managementUnitId The management unit ID.
|
|
2478
|
+
* @param {String} timeOffPlanId The ID of the time off plan to update
|
|
2479
|
+
* @param {Object} opts Optional parameters
|
|
2480
|
+
* @param {Object} opts.body body
|
|
2481
|
+
*/
|
|
2482
|
+
patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId, opts) {
|
|
2483
|
+
opts = opts || {};
|
|
2484
|
+
|
|
2485
|
+
// verify the required parameter 'managementUnitId' is set
|
|
2486
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
2487
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
2488
|
+
}
|
|
2489
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
2490
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
2491
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
return this.apiClient.callApi(
|
|
2495
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
2496
|
+
'PATCH',
|
|
2497
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
2498
|
+
{ },
|
|
2499
|
+
{ },
|
|
2500
|
+
{ },
|
|
2501
|
+
opts['body'],
|
|
2502
|
+
['PureCloud OAuth'],
|
|
2503
|
+
['application/json'],
|
|
2504
|
+
['application/json']
|
|
2505
|
+
);
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2210
2508
|
/**
|
|
2211
2509
|
* Update a time off request
|
|
2212
2510
|
*
|
|
@@ -3068,6 +3366,93 @@ class WorkforceManagementApi {
|
|
|
3068
3366
|
);
|
|
3069
3367
|
}
|
|
3070
3368
|
|
|
3369
|
+
/**
|
|
3370
|
+
* Creates a new time off limit object under management unit.
|
|
3371
|
+
* Only one limit object is allowed under management unit, so an attempt to create second object will fail.
|
|
3372
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
3373
|
+
* @param {Object} opts Optional parameters
|
|
3374
|
+
* @param {Object} opts.body body
|
|
3375
|
+
*/
|
|
3376
|
+
postWorkforcemanagementManagementunitTimeofflimits(managementUnitId, opts) {
|
|
3377
|
+
opts = opts || {};
|
|
3378
|
+
|
|
3379
|
+
// verify the required parameter 'managementUnitId' is set
|
|
3380
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
3381
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
return this.apiClient.callApi(
|
|
3385
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
3386
|
+
'POST',
|
|
3387
|
+
{ 'managementUnitId': managementUnitId },
|
|
3388
|
+
{ },
|
|
3389
|
+
{ },
|
|
3390
|
+
{ },
|
|
3391
|
+
opts['body'],
|
|
3392
|
+
['PureCloud OAuth'],
|
|
3393
|
+
['application/json'],
|
|
3394
|
+
['application/json']
|
|
3395
|
+
);
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
/**
|
|
3399
|
+
* Retrieves time off limit related values based on a given set of filters.
|
|
3400
|
+
*
|
|
3401
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
3402
|
+
* @param {Object} opts Optional parameters
|
|
3403
|
+
* @param {Object} opts.body body
|
|
3404
|
+
*/
|
|
3405
|
+
postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId, opts) {
|
|
3406
|
+
opts = opts || {};
|
|
3407
|
+
|
|
3408
|
+
// verify the required parameter 'managementUnitId' is set
|
|
3409
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
3410
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3413
|
+
return this.apiClient.callApi(
|
|
3414
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query',
|
|
3415
|
+
'POST',
|
|
3416
|
+
{ 'managementUnitId': managementUnitId },
|
|
3417
|
+
{ },
|
|
3418
|
+
{ },
|
|
3419
|
+
{ },
|
|
3420
|
+
opts['body'],
|
|
3421
|
+
['PureCloud OAuth'],
|
|
3422
|
+
['application/json'],
|
|
3423
|
+
['application/json']
|
|
3424
|
+
);
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3427
|
+
/**
|
|
3428
|
+
* Creates a new time off plan
|
|
3429
|
+
*
|
|
3430
|
+
* @param {String} managementUnitId The management unit ID.
|
|
3431
|
+
* @param {Object} opts Optional parameters
|
|
3432
|
+
* @param {Object} opts.body body
|
|
3433
|
+
*/
|
|
3434
|
+
postWorkforcemanagementManagementunitTimeoffplans(managementUnitId, opts) {
|
|
3435
|
+
opts = opts || {};
|
|
3436
|
+
|
|
3437
|
+
// verify the required parameter 'managementUnitId' is set
|
|
3438
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
3439
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';
|
|
3440
|
+
}
|
|
3441
|
+
|
|
3442
|
+
return this.apiClient.callApi(
|
|
3443
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
3444
|
+
'POST',
|
|
3445
|
+
{ 'managementUnitId': managementUnitId },
|
|
3446
|
+
{ },
|
|
3447
|
+
{ },
|
|
3448
|
+
{ },
|
|
3449
|
+
opts['body'],
|
|
3450
|
+
['PureCloud OAuth'],
|
|
3451
|
+
['application/json'],
|
|
3452
|
+
['application/json']
|
|
3453
|
+
);
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3071
3456
|
/**
|
|
3072
3457
|
* Create a new time off request
|
|
3073
3458
|
*
|
|
@@ -3126,6 +3511,35 @@ class WorkforceManagementApi {
|
|
|
3126
3511
|
);
|
|
3127
3512
|
}
|
|
3128
3513
|
|
|
3514
|
+
/**
|
|
3515
|
+
* Retrieves daily waitlist position for a list of time off requests
|
|
3516
|
+
*
|
|
3517
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
3518
|
+
* @param {Object} opts Optional parameters
|
|
3519
|
+
* @param {Object} opts.body body
|
|
3520
|
+
*/
|
|
3521
|
+
postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId, opts) {
|
|
3522
|
+
opts = opts || {};
|
|
3523
|
+
|
|
3524
|
+
// verify the required parameter 'managementUnitId' is set
|
|
3525
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
3526
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3529
|
+
return this.apiClient.callApi(
|
|
3530
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query',
|
|
3531
|
+
'POST',
|
|
3532
|
+
{ 'managementUnitId': managementUnitId },
|
|
3533
|
+
{ },
|
|
3534
|
+
{ },
|
|
3535
|
+
{ },
|
|
3536
|
+
opts['body'],
|
|
3537
|
+
['PureCloud OAuth'],
|
|
3538
|
+
['application/json'],
|
|
3539
|
+
['application/json']
|
|
3540
|
+
);
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3129
3543
|
/**
|
|
3130
3544
|
* Matches a shift trade. This route can only be called by the receiving agent
|
|
3131
3545
|
*
|
|
@@ -3509,6 +3923,30 @@ class WorkforceManagementApi {
|
|
|
3509
3923
|
);
|
|
3510
3924
|
}
|
|
3511
3925
|
|
|
3926
|
+
/**
|
|
3927
|
+
* Queries available time off for the current user
|
|
3928
|
+
*
|
|
3929
|
+
* @param {Object} opts Optional parameters
|
|
3930
|
+
* @param {Object} opts.body body
|
|
3931
|
+
*/
|
|
3932
|
+
postWorkforcemanagementTimeofflimitsAvailableQuery(opts) {
|
|
3933
|
+
opts = opts || {};
|
|
3934
|
+
|
|
3935
|
+
|
|
3936
|
+
return this.apiClient.callApi(
|
|
3937
|
+
'/api/v2/workforcemanagement/timeofflimits/available/query',
|
|
3938
|
+
'POST',
|
|
3939
|
+
{ },
|
|
3940
|
+
{ },
|
|
3941
|
+
{ },
|
|
3942
|
+
{ },
|
|
3943
|
+
opts['body'],
|
|
3944
|
+
['PureCloud OAuth'],
|
|
3945
|
+
['application/json'],
|
|
3946
|
+
['application/json']
|
|
3947
|
+
);
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3512
3950
|
/**
|
|
3513
3951
|
* Create a time off request for the current user
|
|
3514
3952
|
*
|
|
@@ -3533,6 +3971,40 @@ class WorkforceManagementApi {
|
|
|
3533
3971
|
);
|
|
3534
3972
|
}
|
|
3535
3973
|
|
|
3974
|
+
/**
|
|
3975
|
+
* Sets daily values for a date range of time off limit object
|
|
3976
|
+
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
|
|
3977
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
3978
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to set values for
|
|
3979
|
+
* @param {Object} opts Optional parameters
|
|
3980
|
+
* @param {Object} opts.body body
|
|
3981
|
+
*/
|
|
3982
|
+
putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId, timeOffLimitId, opts) {
|
|
3983
|
+
opts = opts || {};
|
|
3984
|
+
|
|
3985
|
+
// verify the required parameter 'managementUnitId' is set
|
|
3986
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
3987
|
+
throw 'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
3988
|
+
}
|
|
3989
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
3990
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
3991
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
return this.apiClient.callApi(
|
|
3995
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values',
|
|
3996
|
+
'PUT',
|
|
3997
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
3998
|
+
{ },
|
|
3999
|
+
{ },
|
|
4000
|
+
{ },
|
|
4001
|
+
opts['body'],
|
|
4002
|
+
['PureCloud OAuth'],
|
|
4003
|
+
['application/json'],
|
|
4004
|
+
['application/json']
|
|
4005
|
+
);
|
|
4006
|
+
}
|
|
4007
|
+
|
|
3536
4008
|
}
|
|
3537
4009
|
|
|
3538
4010
|
|