purecloud-platform-client-v2 123.0.0 → 126.1.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 +6 -2
- package/dist/node/purecloud-platform-client-v2.js +941 -137
- package/dist/web-amd/purecloud-platform-client-v2.js +941 -137
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +901 -141
- package/dist/web-cjs/purecloud-platform-client-v2.js +914 -1304
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1177 -50
- 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 -1
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +22 -11
- 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 +96 -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 +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 +31 -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/configuration.js +42 -35
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -256,27 +256,29 @@ class Configuration {
|
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
liveLoadConfig() {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
// do nothing
|
|
259
|
+
if (typeof window === 'undefined') {
|
|
260
|
+
// Please don't remove the typeof window === 'undefined' check here!
|
|
261
|
+
// This safeguards the browser environment from using `fs`, which is only
|
|
262
|
+
// available in node environment.
|
|
263
|
+
this.updateConfigFromFile();
|
|
264
|
+
|
|
265
|
+
if (this.live_reload_config && this.live_reload_config === true) {
|
|
266
|
+
try {
|
|
267
|
+
const fs = require('fs');
|
|
268
|
+
fs.watchFile(this.configPath, { persistent: false }, (eventType, filename) => {
|
|
269
|
+
this.updateConfigFromFile();
|
|
270
|
+
if (!this.live_reload_config) {
|
|
271
|
+
fs.unwatchFile(this.configPath);
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
} catch (err) {
|
|
275
|
+
// do nothing
|
|
276
|
+
}
|
|
278
277
|
}
|
|
278
|
+
return;
|
|
279
279
|
}
|
|
280
|
+
// If in browser, don't read config file, use default values
|
|
281
|
+
this.configPath = '';
|
|
280
282
|
}
|
|
281
283
|
|
|
282
284
|
setConfigPath(path) {
|
|
@@ -287,24 +289,29 @@ class Configuration {
|
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
updateConfigFromFile() {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
+
if (typeof window === 'undefined') {
|
|
293
|
+
// Please don't remove the typeof window === 'undefined' check here!
|
|
294
|
+
// This safeguards the browser environment from using `fs`, which is only
|
|
295
|
+
// available in node environment.
|
|
296
|
+
const ConfigParser = require('configparser');
|
|
292
297
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
298
|
+
try {
|
|
299
|
+
var configparser = new ConfigParser();
|
|
300
|
+
configparser.read(this.configPath); // If no error catched, indicates it's INI format
|
|
301
|
+
this.config = configparser;
|
|
302
|
+
} catch (error) {
|
|
303
|
+
if (error.name && error.name === 'MissingSectionHeaderError') {
|
|
304
|
+
// Not INI format, see if it's JSON format
|
|
305
|
+
const fs = require('fs');
|
|
306
|
+
var configData = fs.readFileSync(this.configPath, 'utf8');
|
|
307
|
+
this.config = {
|
|
308
|
+
_sections: JSON.parse(configData), // To match INI data format
|
|
309
|
+
};
|
|
310
|
+
}
|
|
304
311
|
}
|
|
305
|
-
}
|
|
306
312
|
|
|
307
|
-
|
|
313
|
+
if (this.config) this.updateConfigValues();
|
|
314
|
+
}
|
|
308
315
|
}
|
|
309
316
|
|
|
310
317
|
updateConfigValues() {
|
|
@@ -386,7 +393,7 @@ class Configuration {
|
|
|
386
393
|
|
|
387
394
|
/**
|
|
388
395
|
* @module purecloud-platform-client-v2/ApiClient
|
|
389
|
-
* @version
|
|
396
|
+
* @version 126.1.0
|
|
390
397
|
*/
|
|
391
398
|
class ApiClient {
|
|
392
399
|
/**
|
|
@@ -1333,7 +1340,7 @@ class ApiClient {
|
|
|
1333
1340
|
|
|
1334
1341
|
// set header parameters
|
|
1335
1342
|
request.set(that.defaultHeaders).set(that.normalizeParams(headerParams));
|
|
1336
|
-
//request.set({ 'purecloud-sdk': '
|
|
1343
|
+
//request.set({ 'purecloud-sdk': '126.1.0' });
|
|
1337
1344
|
|
|
1338
1345
|
// set request timeout
|
|
1339
1346
|
request.timeout(that.timeout);
|
|
@@ -1433,7 +1440,7 @@ class AlertingApi {
|
|
|
1433
1440
|
/**
|
|
1434
1441
|
* Alerting service.
|
|
1435
1442
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1436
|
-
* @version
|
|
1443
|
+
* @version 126.1.0
|
|
1437
1444
|
*/
|
|
1438
1445
|
|
|
1439
1446
|
/**
|
|
@@ -1747,7 +1754,7 @@ class AnalyticsApi {
|
|
|
1747
1754
|
/**
|
|
1748
1755
|
* Analytics service.
|
|
1749
1756
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1750
|
-
* @version
|
|
1757
|
+
* @version 126.1.0
|
|
1751
1758
|
*/
|
|
1752
1759
|
|
|
1753
1760
|
/**
|
|
@@ -2343,31 +2350,6 @@ class AnalyticsApi {
|
|
|
2343
2350
|
);
|
|
2344
2351
|
}
|
|
2345
2352
|
|
|
2346
|
-
/**
|
|
2347
|
-
* Patch AnalyticsReportingSettings values for an organization
|
|
2348
|
-
*
|
|
2349
|
-
* @param {Object} body AnalyticsReportingSettingsRequest
|
|
2350
|
-
*/
|
|
2351
|
-
patchAnalyticsReportingSettings(body) {
|
|
2352
|
-
// verify the required parameter 'body' is set
|
|
2353
|
-
if (body === undefined || body === null) {
|
|
2354
|
-
throw 'Missing the required parameter "body" when calling patchAnalyticsReportingSettings';
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
return this.apiClient.callApi(
|
|
2358
|
-
'/api/v2/analytics/reporting/settings',
|
|
2359
|
-
'PATCH',
|
|
2360
|
-
{ },
|
|
2361
|
-
{ },
|
|
2362
|
-
{ },
|
|
2363
|
-
{ },
|
|
2364
|
-
body,
|
|
2365
|
-
['PureCloud OAuth'],
|
|
2366
|
-
['application/json'],
|
|
2367
|
-
['application/json']
|
|
2368
|
-
);
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
2353
|
/**
|
|
2372
2354
|
* Query for bot aggregates
|
|
2373
2355
|
*
|
|
@@ -2909,7 +2891,7 @@ class ArchitectApi {
|
|
|
2909
2891
|
/**
|
|
2910
2892
|
* Architect service.
|
|
2911
2893
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
2912
|
-
* @version
|
|
2894
|
+
* @version 126.1.0
|
|
2913
2895
|
*/
|
|
2914
2896
|
|
|
2915
2897
|
/**
|
|
@@ -5905,7 +5887,7 @@ class AuditApi {
|
|
|
5905
5887
|
/**
|
|
5906
5888
|
* Audit service.
|
|
5907
5889
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
5908
|
-
* @version
|
|
5890
|
+
* @version 126.1.0
|
|
5909
5891
|
*/
|
|
5910
5892
|
|
|
5911
5893
|
/**
|
|
@@ -6076,7 +6058,7 @@ class AuthorizationApi {
|
|
|
6076
6058
|
/**
|
|
6077
6059
|
* Authorization service.
|
|
6078
6060
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
6079
|
-
* @version
|
|
6061
|
+
* @version 126.1.0
|
|
6080
6062
|
*/
|
|
6081
6063
|
|
|
6082
6064
|
/**
|
|
@@ -7259,7 +7241,7 @@ class BillingApi {
|
|
|
7259
7241
|
/**
|
|
7260
7242
|
* Billing service.
|
|
7261
7243
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
7262
|
-
* @version
|
|
7244
|
+
* @version 126.1.0
|
|
7263
7245
|
*/
|
|
7264
7246
|
|
|
7265
7247
|
/**
|
|
@@ -7339,7 +7321,7 @@ class ChatApi {
|
|
|
7339
7321
|
/**
|
|
7340
7322
|
* Chat service.
|
|
7341
7323
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
7342
|
-
* @version
|
|
7324
|
+
* @version 126.1.0
|
|
7343
7325
|
*/
|
|
7344
7326
|
|
|
7345
7327
|
/**
|
|
@@ -7430,7 +7412,7 @@ class CoachingApi {
|
|
|
7430
7412
|
/**
|
|
7431
7413
|
* Coaching service.
|
|
7432
7414
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
7433
|
-
* @version
|
|
7415
|
+
* @version 126.1.0
|
|
7434
7416
|
*/
|
|
7435
7417
|
|
|
7436
7418
|
/**
|
|
@@ -8005,7 +7987,7 @@ class ContentManagementApi {
|
|
|
8005
7987
|
/**
|
|
8006
7988
|
* ContentManagement service.
|
|
8007
7989
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
8008
|
-
* @version
|
|
7990
|
+
* @version 126.1.0
|
|
8009
7991
|
*/
|
|
8010
7992
|
|
|
8011
7993
|
/**
|
|
@@ -9145,7 +9127,7 @@ class ConversationsApi {
|
|
|
9145
9127
|
/**
|
|
9146
9128
|
* Conversations service.
|
|
9147
9129
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
9148
|
-
* @version
|
|
9130
|
+
* @version 126.1.0
|
|
9149
9131
|
*/
|
|
9150
9132
|
|
|
9151
9133
|
/**
|
|
@@ -13534,7 +13516,7 @@ class DataExtensionsApi {
|
|
|
13534
13516
|
/**
|
|
13535
13517
|
* DataExtensions service.
|
|
13536
13518
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
13537
|
-
* @version
|
|
13519
|
+
* @version 126.1.0
|
|
13538
13520
|
*/
|
|
13539
13521
|
|
|
13540
13522
|
/**
|
|
@@ -13620,7 +13602,7 @@ class ExternalContactsApi {
|
|
|
13620
13602
|
/**
|
|
13621
13603
|
* ExternalContacts service.
|
|
13622
13604
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
13623
|
-
* @version
|
|
13605
|
+
* @version 126.1.0
|
|
13624
13606
|
*/
|
|
13625
13607
|
|
|
13626
13608
|
/**
|
|
@@ -15363,7 +15345,7 @@ class FaxApi {
|
|
|
15363
15345
|
/**
|
|
15364
15346
|
* Fax service.
|
|
15365
15347
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
15366
|
-
* @version
|
|
15348
|
+
* @version 126.1.0
|
|
15367
15349
|
*/
|
|
15368
15350
|
|
|
15369
15351
|
/**
|
|
@@ -15534,7 +15516,7 @@ class FlowsApi {
|
|
|
15534
15516
|
/**
|
|
15535
15517
|
* Flows service.
|
|
15536
15518
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
15537
|
-
* @version
|
|
15519
|
+
* @version 126.1.0
|
|
15538
15520
|
*/
|
|
15539
15521
|
|
|
15540
15522
|
/**
|
|
@@ -15605,7 +15587,7 @@ class GamificationApi {
|
|
|
15605
15587
|
/**
|
|
15606
15588
|
* Gamification service.
|
|
15607
15589
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
15608
|
-
* @version
|
|
15590
|
+
* @version 126.1.0
|
|
15609
15591
|
*/
|
|
15610
15592
|
|
|
15611
15593
|
/**
|
|
@@ -16911,7 +16893,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
16911
16893
|
/**
|
|
16912
16894
|
* GeneralDataProtectionRegulation service.
|
|
16913
16895
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
16914
|
-
* @version
|
|
16896
|
+
* @version 126.1.0
|
|
16915
16897
|
*/
|
|
16916
16898
|
|
|
16917
16899
|
/**
|
|
@@ -17041,7 +17023,7 @@ class GeolocationApi {
|
|
|
17041
17023
|
/**
|
|
17042
17024
|
* Geolocation service.
|
|
17043
17025
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
17044
|
-
* @version
|
|
17026
|
+
* @version 126.1.0
|
|
17045
17027
|
*/
|
|
17046
17028
|
|
|
17047
17029
|
/**
|
|
@@ -17172,7 +17154,7 @@ class GreetingsApi {
|
|
|
17172
17154
|
/**
|
|
17173
17155
|
* Greetings service.
|
|
17174
17156
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
17175
|
-
* @version
|
|
17157
|
+
* @version 126.1.0
|
|
17176
17158
|
*/
|
|
17177
17159
|
|
|
17178
17160
|
/**
|
|
@@ -17627,7 +17609,7 @@ class GroupsApi {
|
|
|
17627
17609
|
/**
|
|
17628
17610
|
* Groups service.
|
|
17629
17611
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
17630
|
-
* @version
|
|
17612
|
+
* @version 126.1.0
|
|
17631
17613
|
*/
|
|
17632
17614
|
|
|
17633
17615
|
/**
|
|
@@ -18032,7 +18014,7 @@ class IdentityProviderApi {
|
|
|
18032
18014
|
/**
|
|
18033
18015
|
* IdentityProvider service.
|
|
18034
18016
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
18035
|
-
* @version
|
|
18017
|
+
* @version 126.1.0
|
|
18036
18018
|
*/
|
|
18037
18019
|
|
|
18038
18020
|
/**
|
|
@@ -18788,7 +18770,7 @@ class IntegrationsApi {
|
|
|
18788
18770
|
/**
|
|
18789
18771
|
* Integrations service.
|
|
18790
18772
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
18791
|
-
* @version
|
|
18773
|
+
* @version 126.1.0
|
|
18792
18774
|
*/
|
|
18793
18775
|
|
|
18794
18776
|
/**
|
|
@@ -20434,7 +20416,7 @@ class JourneyApi {
|
|
|
20434
20416
|
/**
|
|
20435
20417
|
* Journey service.
|
|
20436
20418
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
20437
|
-
* @version
|
|
20419
|
+
* @version 126.1.0
|
|
20438
20420
|
*/
|
|
20439
20421
|
|
|
20440
20422
|
/**
|
|
@@ -21145,7 +21127,7 @@ class KnowledgeApi {
|
|
|
21145
21127
|
/**
|
|
21146
21128
|
* Knowledge service.
|
|
21147
21129
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
21148
|
-
* @version
|
|
21130
|
+
* @version 126.1.0
|
|
21149
21131
|
*/
|
|
21150
21132
|
|
|
21151
21133
|
/**
|
|
@@ -22045,7 +22027,7 @@ class LanguageUnderstandingApi {
|
|
|
22045
22027
|
/**
|
|
22046
22028
|
* LanguageUnderstanding service.
|
|
22047
22029
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
22048
|
-
* @version
|
|
22030
|
+
* @version 126.1.0
|
|
22049
22031
|
*/
|
|
22050
22032
|
|
|
22051
22033
|
/**
|
|
@@ -22611,7 +22593,7 @@ class LanguageUnderstandingApi {
|
|
|
22611
22593
|
}
|
|
22612
22594
|
|
|
22613
22595
|
/**
|
|
22614
|
-
* Save information for the draft
|
|
22596
|
+
* Save information for the draft. Either topic draft or intent draft should be sent.
|
|
22615
22597
|
*
|
|
22616
22598
|
* @param {String} minerId Miner ID
|
|
22617
22599
|
* @param {String} draftId Draft ID
|
|
@@ -22855,7 +22837,7 @@ class LanguageUnderstandingApi {
|
|
|
22855
22837
|
}
|
|
22856
22838
|
|
|
22857
22839
|
/**
|
|
22858
|
-
* Start the mining process. Specify date range pair with mediaType
|
|
22840
|
+
* Start the mining process. Specify date range pair with mediaType, queueIds, participantType for mining data from Genesys Cloud. Specify only uploadKey for mining through an external file.
|
|
22859
22841
|
*
|
|
22860
22842
|
* @param {String} minerId Miner ID
|
|
22861
22843
|
* @param {Object} opts Optional parameters
|
|
@@ -22949,7 +22931,7 @@ class LanguagesApi {
|
|
|
22949
22931
|
/**
|
|
22950
22932
|
* Languages service.
|
|
22951
22933
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
22952
|
-
* @version
|
|
22934
|
+
* @version 126.1.0
|
|
22953
22935
|
*/
|
|
22954
22936
|
|
|
22955
22937
|
/**
|
|
@@ -23217,7 +23199,7 @@ class LearningApi {
|
|
|
23217
23199
|
/**
|
|
23218
23200
|
* Learning service.
|
|
23219
23201
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
23220
|
-
* @version
|
|
23202
|
+
* @version 126.1.0
|
|
23221
23203
|
*/
|
|
23222
23204
|
|
|
23223
23205
|
/**
|
|
@@ -23808,7 +23790,7 @@ class LicenseApi {
|
|
|
23808
23790
|
/**
|
|
23809
23791
|
* License service.
|
|
23810
23792
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
23811
|
-
* @version
|
|
23793
|
+
* @version 126.1.0
|
|
23812
23794
|
*/
|
|
23813
23795
|
|
|
23814
23796
|
/**
|
|
@@ -24046,7 +24028,7 @@ class LocationsApi {
|
|
|
24046
24028
|
/**
|
|
24047
24029
|
* Locations service.
|
|
24048
24030
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
24049
|
-
* @version
|
|
24031
|
+
* @version 126.1.0
|
|
24050
24032
|
*/
|
|
24051
24033
|
|
|
24052
24034
|
/**
|
|
@@ -24282,7 +24264,7 @@ class MobileDevicesApi {
|
|
|
24282
24264
|
/**
|
|
24283
24265
|
* MobileDevices service.
|
|
24284
24266
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
24285
|
-
* @version
|
|
24267
|
+
* @version 126.1.0
|
|
24286
24268
|
*/
|
|
24287
24269
|
|
|
24288
24270
|
/**
|
|
@@ -24433,7 +24415,7 @@ class NotificationsApi {
|
|
|
24433
24415
|
/**
|
|
24434
24416
|
* Notifications service.
|
|
24435
24417
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
24436
|
-
* @version
|
|
24418
|
+
* @version 126.1.0
|
|
24437
24419
|
*/
|
|
24438
24420
|
|
|
24439
24421
|
/**
|
|
@@ -24658,7 +24640,7 @@ class OAuthApi {
|
|
|
24658
24640
|
/**
|
|
24659
24641
|
* OAuth service.
|
|
24660
24642
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
24661
|
-
* @version
|
|
24643
|
+
* @version 126.1.0
|
|
24662
24644
|
*/
|
|
24663
24645
|
|
|
24664
24646
|
/**
|
|
@@ -25016,7 +24998,7 @@ class ObjectsApi {
|
|
|
25016
24998
|
/**
|
|
25017
24999
|
* Objects service.
|
|
25018
25000
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
25019
|
-
* @version
|
|
25001
|
+
* @version 126.1.0
|
|
25020
25002
|
*/
|
|
25021
25003
|
|
|
25022
25004
|
/**
|
|
@@ -25287,7 +25269,7 @@ class OrganizationApi {
|
|
|
25287
25269
|
/**
|
|
25288
25270
|
* Organization service.
|
|
25289
25271
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
25290
|
-
* @version
|
|
25272
|
+
* @version 126.1.0
|
|
25291
25273
|
*/
|
|
25292
25274
|
|
|
25293
25275
|
/**
|
|
@@ -25690,7 +25672,7 @@ class OrganizationAuthorizationApi {
|
|
|
25690
25672
|
/**
|
|
25691
25673
|
* OrganizationAuthorization service.
|
|
25692
25674
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
25693
|
-
* @version
|
|
25675
|
+
* @version 126.1.0
|
|
25694
25676
|
*/
|
|
25695
25677
|
|
|
25696
25678
|
/**
|
|
@@ -25730,6 +25712,36 @@ class OrganizationAuthorizationApi {
|
|
|
25730
25712
|
);
|
|
25731
25713
|
}
|
|
25732
25714
|
|
|
25715
|
+
/**
|
|
25716
|
+
* Deletes cloned user
|
|
25717
|
+
*
|
|
25718
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
25719
|
+
* @param {String} trusteeUserId Id of the cloned user to delete
|
|
25720
|
+
*/
|
|
25721
|
+
deleteOrgauthorizationTrusteeCloneduser(trusteeOrgId, trusteeUserId) {
|
|
25722
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
25723
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
25724
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';
|
|
25725
|
+
}
|
|
25726
|
+
// verify the required parameter 'trusteeUserId' is set
|
|
25727
|
+
if (trusteeUserId === undefined || trusteeUserId === null) {
|
|
25728
|
+
throw 'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';
|
|
25729
|
+
}
|
|
25730
|
+
|
|
25731
|
+
return this.apiClient.callApi(
|
|
25732
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}',
|
|
25733
|
+
'DELETE',
|
|
25734
|
+
{ 'trusteeOrgId': trusteeOrgId,'trusteeUserId': trusteeUserId },
|
|
25735
|
+
{ },
|
|
25736
|
+
{ },
|
|
25737
|
+
{ },
|
|
25738
|
+
null,
|
|
25739
|
+
['PureCloud OAuth'],
|
|
25740
|
+
['application/json'],
|
|
25741
|
+
['application/json']
|
|
25742
|
+
);
|
|
25743
|
+
}
|
|
25744
|
+
|
|
25733
25745
|
/**
|
|
25734
25746
|
* Delete Trustee User
|
|
25735
25747
|
*
|
|
@@ -25815,6 +25827,36 @@ class OrganizationAuthorizationApi {
|
|
|
25815
25827
|
);
|
|
25816
25828
|
}
|
|
25817
25829
|
|
|
25830
|
+
/**
|
|
25831
|
+
* Delete Cloned User
|
|
25832
|
+
*
|
|
25833
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
25834
|
+
* @param {String} trusteeUserId Trustee User Id
|
|
25835
|
+
*/
|
|
25836
|
+
deleteOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
|
|
25837
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
25838
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
25839
|
+
throw 'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';
|
|
25840
|
+
}
|
|
25841
|
+
// verify the required parameter 'trusteeUserId' is set
|
|
25842
|
+
if (trusteeUserId === undefined || trusteeUserId === null) {
|
|
25843
|
+
throw 'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';
|
|
25844
|
+
}
|
|
25845
|
+
|
|
25846
|
+
return this.apiClient.callApi(
|
|
25847
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
|
|
25848
|
+
'DELETE',
|
|
25849
|
+
{ 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
|
|
25850
|
+
{ },
|
|
25851
|
+
{ },
|
|
25852
|
+
{ },
|
|
25853
|
+
null,
|
|
25854
|
+
['PureCloud OAuth'],
|
|
25855
|
+
['application/json'],
|
|
25856
|
+
['application/json']
|
|
25857
|
+
);
|
|
25858
|
+
}
|
|
25859
|
+
|
|
25818
25860
|
/**
|
|
25819
25861
|
* Delete Trustee User
|
|
25820
25862
|
*
|
|
@@ -25895,6 +25937,31 @@ class OrganizationAuthorizationApi {
|
|
|
25895
25937
|
);
|
|
25896
25938
|
}
|
|
25897
25939
|
|
|
25940
|
+
/**
|
|
25941
|
+
* The list of cloned users from the trustee organization (i.e. users with a native user record).
|
|
25942
|
+
* There can be no more than 5 cloned users per organization, so results are represented as simple list and not paged
|
|
25943
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
25944
|
+
*/
|
|
25945
|
+
getOrgauthorizationTrusteeClonedusers(trusteeOrgId) {
|
|
25946
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
25947
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
25948
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeClonedusers';
|
|
25949
|
+
}
|
|
25950
|
+
|
|
25951
|
+
return this.apiClient.callApi(
|
|
25952
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers',
|
|
25953
|
+
'GET',
|
|
25954
|
+
{ 'trusteeOrgId': trusteeOrgId },
|
|
25955
|
+
{ },
|
|
25956
|
+
{ },
|
|
25957
|
+
{ },
|
|
25958
|
+
null,
|
|
25959
|
+
['PureCloud OAuth'],
|
|
25960
|
+
['application/json'],
|
|
25961
|
+
['application/json']
|
|
25962
|
+
);
|
|
25963
|
+
}
|
|
25964
|
+
|
|
25898
25965
|
/**
|
|
25899
25966
|
* Get Trustee User
|
|
25900
25967
|
*
|
|
@@ -26010,6 +26077,26 @@ class OrganizationAuthorizationApi {
|
|
|
26010
26077
|
);
|
|
26011
26078
|
}
|
|
26012
26079
|
|
|
26080
|
+
/**
|
|
26081
|
+
* Get organization authorization trust with Customer Care, if one exists.
|
|
26082
|
+
*
|
|
26083
|
+
*/
|
|
26084
|
+
getOrgauthorizationTrusteesDefault() {
|
|
26085
|
+
|
|
26086
|
+
return this.apiClient.callApi(
|
|
26087
|
+
'/api/v2/orgauthorization/trustees/default',
|
|
26088
|
+
'GET',
|
|
26089
|
+
{ },
|
|
26090
|
+
{ },
|
|
26091
|
+
{ },
|
|
26092
|
+
{ },
|
|
26093
|
+
null,
|
|
26094
|
+
['PureCloud OAuth'],
|
|
26095
|
+
['application/json'],
|
|
26096
|
+
['application/json']
|
|
26097
|
+
);
|
|
26098
|
+
}
|
|
26099
|
+
|
|
26013
26100
|
/**
|
|
26014
26101
|
* Get Org Trust
|
|
26015
26102
|
*
|
|
@@ -26035,6 +26122,61 @@ class OrganizationAuthorizationApi {
|
|
|
26035
26122
|
);
|
|
26036
26123
|
}
|
|
26037
26124
|
|
|
26125
|
+
/**
|
|
26126
|
+
* Get Cloned User
|
|
26127
|
+
*
|
|
26128
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
26129
|
+
* @param {String} trusteeUserId Trustee User Id
|
|
26130
|
+
*/
|
|
26131
|
+
getOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
|
|
26132
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
26133
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
26134
|
+
throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';
|
|
26135
|
+
}
|
|
26136
|
+
// verify the required parameter 'trusteeUserId' is set
|
|
26137
|
+
if (trusteeUserId === undefined || trusteeUserId === null) {
|
|
26138
|
+
throw 'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';
|
|
26139
|
+
}
|
|
26140
|
+
|
|
26141
|
+
return this.apiClient.callApi(
|
|
26142
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
|
|
26143
|
+
'GET',
|
|
26144
|
+
{ 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
|
|
26145
|
+
{ },
|
|
26146
|
+
{ },
|
|
26147
|
+
{ },
|
|
26148
|
+
null,
|
|
26149
|
+
['PureCloud OAuth'],
|
|
26150
|
+
['application/json'],
|
|
26151
|
+
['application/json']
|
|
26152
|
+
);
|
|
26153
|
+
}
|
|
26154
|
+
|
|
26155
|
+
/**
|
|
26156
|
+
* The list of cloned users in the trustor organization (i.e. users with a native user record).
|
|
26157
|
+
*
|
|
26158
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
26159
|
+
*/
|
|
26160
|
+
getOrgauthorizationTrustorClonedusers(trustorOrgId) {
|
|
26161
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
26162
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
26163
|
+
throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorClonedusers';
|
|
26164
|
+
}
|
|
26165
|
+
|
|
26166
|
+
return this.apiClient.callApi(
|
|
26167
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers',
|
|
26168
|
+
'GET',
|
|
26169
|
+
{ 'trustorOrgId': trustorOrgId },
|
|
26170
|
+
{ },
|
|
26171
|
+
{ },
|
|
26172
|
+
{ },
|
|
26173
|
+
null,
|
|
26174
|
+
['PureCloud OAuth'],
|
|
26175
|
+
['application/json'],
|
|
26176
|
+
['application/json']
|
|
26177
|
+
);
|
|
26178
|
+
}
|
|
26179
|
+
|
|
26038
26180
|
/**
|
|
26039
26181
|
* Get Trustee User
|
|
26040
26182
|
*
|
|
@@ -26232,6 +26374,31 @@ class OrganizationAuthorizationApi {
|
|
|
26232
26374
|
);
|
|
26233
26375
|
}
|
|
26234
26376
|
|
|
26377
|
+
/**
|
|
26378
|
+
* Create a new organization authorization trust with Customer Care. This is required to grant your regional Customer Care organization access to your organization.
|
|
26379
|
+
*
|
|
26380
|
+
* @param {Object} opts Optional parameters
|
|
26381
|
+
* @param {Boolean} opts.assignDefaultRole Assign Admin role to default pairing with Customer Care
|
|
26382
|
+
* @param {Boolean} opts.autoExpire Automatically expire pairing after 30 days
|
|
26383
|
+
*/
|
|
26384
|
+
postOrgauthorizationTrusteesDefault(opts) {
|
|
26385
|
+
opts = opts || {};
|
|
26386
|
+
|
|
26387
|
+
|
|
26388
|
+
return this.apiClient.callApi(
|
|
26389
|
+
'/api/v2/orgauthorization/trustees/default',
|
|
26390
|
+
'POST',
|
|
26391
|
+
{ },
|
|
26392
|
+
{ 'assignDefaultRole': opts['assignDefaultRole'],'autoExpire': opts['autoExpire'] },
|
|
26393
|
+
{ },
|
|
26394
|
+
{ },
|
|
26395
|
+
null,
|
|
26396
|
+
['PureCloud OAuth'],
|
|
26397
|
+
['application/json'],
|
|
26398
|
+
['application/json']
|
|
26399
|
+
);
|
|
26400
|
+
}
|
|
26401
|
+
|
|
26235
26402
|
/**
|
|
26236
26403
|
* Get Org Trustor Audits
|
|
26237
26404
|
*
|
|
@@ -26364,6 +26531,36 @@ class OrganizationAuthorizationApi {
|
|
|
26364
26531
|
);
|
|
26365
26532
|
}
|
|
26366
26533
|
|
|
26534
|
+
/**
|
|
26535
|
+
* Creates a clone of the trustee user in the trustor org.
|
|
26536
|
+
*
|
|
26537
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
26538
|
+
* @param {String} trusteeUserId Trustee User Id
|
|
26539
|
+
*/
|
|
26540
|
+
putOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
|
|
26541
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
26542
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
26543
|
+
throw 'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';
|
|
26544
|
+
}
|
|
26545
|
+
// verify the required parameter 'trusteeUserId' is set
|
|
26546
|
+
if (trusteeUserId === undefined || trusteeUserId === null) {
|
|
26547
|
+
throw 'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';
|
|
26548
|
+
}
|
|
26549
|
+
|
|
26550
|
+
return this.apiClient.callApi(
|
|
26551
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
|
|
26552
|
+
'PUT',
|
|
26553
|
+
{ 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
|
|
26554
|
+
{ },
|
|
26555
|
+
{ },
|
|
26556
|
+
{ },
|
|
26557
|
+
null,
|
|
26558
|
+
['PureCloud OAuth'],
|
|
26559
|
+
['application/json'],
|
|
26560
|
+
['application/json']
|
|
26561
|
+
);
|
|
26562
|
+
}
|
|
26563
|
+
|
|
26367
26564
|
/**
|
|
26368
26565
|
* Add a Trustee user to the trust.
|
|
26369
26566
|
*
|
|
@@ -26400,7 +26597,7 @@ class OutboundApi {
|
|
|
26400
26597
|
/**
|
|
26401
26598
|
* Outbound service.
|
|
26402
26599
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
26403
|
-
* @version
|
|
26600
|
+
* @version 126.1.0
|
|
26404
26601
|
*/
|
|
26405
26602
|
|
|
26406
26603
|
/**
|
|
@@ -29426,7 +29623,7 @@ class PresenceApi {
|
|
|
29426
29623
|
/**
|
|
29427
29624
|
* Presence service.
|
|
29428
29625
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
29429
|
-
* @version
|
|
29626
|
+
* @version 126.1.0
|
|
29430
29627
|
*/
|
|
29431
29628
|
|
|
29432
29629
|
/**
|
|
@@ -29798,7 +29995,7 @@ class QualityApi {
|
|
|
29798
29995
|
/**
|
|
29799
29996
|
* Quality service.
|
|
29800
29997
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
29801
|
-
* @version
|
|
29998
|
+
* @version 126.1.0
|
|
29802
29999
|
*/
|
|
29803
30000
|
|
|
29804
30001
|
/**
|
|
@@ -30171,7 +30368,7 @@ class QualityApi {
|
|
|
30171
30368
|
|
|
30172
30369
|
/**
|
|
30173
30370
|
* Queries Evaluations and returns a paged list
|
|
30174
|
-
* Query params must include one of conversationId, evaluatorUserId, or agentUserId
|
|
30371
|
+
* Query params must include one of conversationId, evaluatorUserId, or agentUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to 'Never Release' are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date.
|
|
30175
30372
|
* @param {Object} opts Optional parameters
|
|
30176
30373
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
30177
30374
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
@@ -31326,7 +31523,7 @@ class RecordingApi {
|
|
|
31326
31523
|
/**
|
|
31327
31524
|
* Recording service.
|
|
31328
31525
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
31329
|
-
* @version
|
|
31526
|
+
* @version 126.1.0
|
|
31330
31527
|
*/
|
|
31331
31528
|
|
|
31332
31529
|
/**
|
|
@@ -32845,7 +33042,7 @@ class ResponseManagementApi {
|
|
|
32845
33042
|
/**
|
|
32846
33043
|
* ResponseManagement service.
|
|
32847
33044
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
32848
|
-
* @version
|
|
33045
|
+
* @version 126.1.0
|
|
32849
33046
|
*/
|
|
32850
33047
|
|
|
32851
33048
|
/**
|
|
@@ -33170,7 +33367,7 @@ class RoutingApi {
|
|
|
33170
33367
|
/**
|
|
33171
33368
|
* Routing service.
|
|
33172
33369
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
33173
|
-
* @version
|
|
33370
|
+
* @version 126.1.0
|
|
33174
33371
|
*/
|
|
33175
33372
|
|
|
33176
33373
|
/**
|
|
@@ -33483,8 +33680,12 @@ class RoutingApi {
|
|
|
33483
33680
|
* Delete a phone number provisioned for SMS.
|
|
33484
33681
|
*
|
|
33485
33682
|
* @param {String} addressId Address ID
|
|
33683
|
+
* @param {Object} opts Optional parameters
|
|
33684
|
+
* @param {Boolean} opts.async Delete a phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the deletion of a provisioned phone number. (default to false)
|
|
33486
33685
|
*/
|
|
33487
|
-
deleteRoutingSmsPhonenumber(addressId) {
|
|
33686
|
+
deleteRoutingSmsPhonenumber(addressId, opts) {
|
|
33687
|
+
opts = opts || {};
|
|
33688
|
+
|
|
33488
33689
|
// verify the required parameter 'addressId' is set
|
|
33489
33690
|
if (addressId === undefined || addressId === null) {
|
|
33490
33691
|
throw 'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';
|
|
@@ -33494,7 +33695,7 @@ class RoutingApi {
|
|
|
33494
33695
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
33495
33696
|
'DELETE',
|
|
33496
33697
|
{ 'addressId': addressId },
|
|
33497
|
-
{
|
|
33698
|
+
{ 'async': opts['async'] },
|
|
33498
33699
|
{ },
|
|
33499
33700
|
{ },
|
|
33500
33701
|
null,
|
|
@@ -34322,12 +34523,11 @@ class RoutingApi {
|
|
|
34322
34523
|
}
|
|
34323
34524
|
|
|
34324
34525
|
/**
|
|
34325
|
-
* Get a paged listing of simplified queue objects. Can be used to get a digest of all queues in an organization.
|
|
34526
|
+
* Get a paged listing of simplified queue objects, sorted by name. Can be used to get a digest of all queues in an organization.
|
|
34326
34527
|
*
|
|
34327
34528
|
* @param {Object} opts Optional parameters
|
|
34328
34529
|
* @param {Number} opts.pageSize Page size [max value is 500] (default to 25)
|
|
34329
34530
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
34330
|
-
* @param {Object} opts.sortBy Sort by (default to name)
|
|
34331
34531
|
* @param {Object} opts.sortOrder Sort order (default to asc)
|
|
34332
34532
|
*/
|
|
34333
34533
|
getRoutingQueuesDivisionviewsAll(opts) {
|
|
@@ -34338,7 +34538,7 @@ class RoutingApi {
|
|
|
34338
34538
|
'/api/v2/routing/queues/divisionviews/all',
|
|
34339
34539
|
'GET',
|
|
34340
34540
|
{ },
|
|
34341
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'
|
|
34541
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'] },
|
|
34342
34542
|
{ },
|
|
34343
34543
|
{ },
|
|
34344
34544
|
null,
|
|
@@ -34822,7 +35022,7 @@ class RoutingApi {
|
|
|
34822
35022
|
|
|
34823
35023
|
/**
|
|
34824
35024
|
* Update attributes of an in-queue conversation
|
|
34825
|
-
* Returns an object indicating the updated values of all settable attributes. Supported attributes:
|
|
35025
|
+
* Returns an object indicating the updated values of all settable attributes. Supported attributes: skillIds, languageId, and priority.
|
|
34826
35026
|
* @param {String} conversationId Conversation ID
|
|
34827
35027
|
* @param {Object} body Conversation Attributes
|
|
34828
35028
|
*/
|
|
@@ -35641,8 +35841,12 @@ class RoutingApi {
|
|
|
35641
35841
|
* Provision a phone number for SMS
|
|
35642
35842
|
*
|
|
35643
35843
|
* @param {Object} body SmsPhoneNumber
|
|
35844
|
+
* @param {Object} opts Optional parameters
|
|
35845
|
+
* @param {Boolean} opts.async Provision a new phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the provisioning of a new phone number. Check the phoneNumber's provisioningStatus for completion of this request. (default to false)
|
|
35644
35846
|
*/
|
|
35645
|
-
postRoutingSmsPhonenumbers(body) {
|
|
35847
|
+
postRoutingSmsPhonenumbers(body, opts) {
|
|
35848
|
+
opts = opts || {};
|
|
35849
|
+
|
|
35646
35850
|
// verify the required parameter 'body' is set
|
|
35647
35851
|
if (body === undefined || body === null) {
|
|
35648
35852
|
throw 'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';
|
|
@@ -35652,7 +35856,7 @@ class RoutingApi {
|
|
|
35652
35856
|
'/api/v2/routing/sms/phonenumbers',
|
|
35653
35857
|
'POST',
|
|
35654
35858
|
{ },
|
|
35655
|
-
{
|
|
35859
|
+
{ 'async': opts['async'] },
|
|
35656
35860
|
{ },
|
|
35657
35861
|
{ },
|
|
35658
35862
|
body,
|
|
@@ -35897,8 +36101,12 @@ class RoutingApi {
|
|
|
35897
36101
|
*
|
|
35898
36102
|
* @param {String} addressId Address ID
|
|
35899
36103
|
* @param {Object} body SmsPhoneNumber
|
|
36104
|
+
* @param {Object} opts Optional parameters
|
|
36105
|
+
* @param {Boolean} opts.async Update an existing phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the update of a provisioned phone number. Check the phoneNumber's provisioningStatus for the progress of this request. (default to false)
|
|
35900
36106
|
*/
|
|
35901
|
-
putRoutingSmsPhonenumber(addressId, body) {
|
|
36107
|
+
putRoutingSmsPhonenumber(addressId, body, opts) {
|
|
36108
|
+
opts = opts || {};
|
|
36109
|
+
|
|
35902
36110
|
// verify the required parameter 'addressId' is set
|
|
35903
36111
|
if (addressId === undefined || addressId === null) {
|
|
35904
36112
|
throw 'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';
|
|
@@ -35912,7 +36120,7 @@ class RoutingApi {
|
|
|
35912
36120
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
35913
36121
|
'PUT',
|
|
35914
36122
|
{ 'addressId': addressId },
|
|
35915
|
-
{
|
|
36123
|
+
{ 'async': opts['async'] },
|
|
35916
36124
|
{ },
|
|
35917
36125
|
{ },
|
|
35918
36126
|
body,
|
|
@@ -36078,7 +36286,7 @@ class SCIMApi {
|
|
|
36078
36286
|
/**
|
|
36079
36287
|
* SCIM service.
|
|
36080
36288
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
36081
|
-
* @version
|
|
36289
|
+
* @version 126.1.0
|
|
36082
36290
|
*/
|
|
36083
36291
|
|
|
36084
36292
|
/**
|
|
@@ -36955,7 +37163,7 @@ class ScriptsApi {
|
|
|
36955
37163
|
/**
|
|
36956
37164
|
* Scripts service.
|
|
36957
37165
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
36958
|
-
* @version
|
|
37166
|
+
* @version 126.1.0
|
|
36959
37167
|
*/
|
|
36960
37168
|
|
|
36961
37169
|
/**
|
|
@@ -37308,7 +37516,7 @@ class SearchApi {
|
|
|
37308
37516
|
/**
|
|
37309
37517
|
* Search service.
|
|
37310
37518
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
37311
|
-
* @version
|
|
37519
|
+
* @version 126.1.0
|
|
37312
37520
|
*/
|
|
37313
37521
|
|
|
37314
37522
|
/**
|
|
@@ -37843,7 +38051,7 @@ class SpeechTextAnalyticsApi {
|
|
|
37843
38051
|
/**
|
|
37844
38052
|
* SpeechTextAnalytics service.
|
|
37845
38053
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
37846
|
-
* @version
|
|
38054
|
+
* @version 126.1.0
|
|
37847
38055
|
*/
|
|
37848
38056
|
|
|
37849
38057
|
/**
|
|
@@ -37887,6 +38095,51 @@ class SpeechTextAnalyticsApi {
|
|
|
37887
38095
|
);
|
|
37888
38096
|
}
|
|
37889
38097
|
|
|
38098
|
+
/**
|
|
38099
|
+
* Delete All Speech & Text Analytics SentimentFeedback
|
|
38100
|
+
*
|
|
38101
|
+
*/
|
|
38102
|
+
deleteSpeechandtextanalyticsSentimentfeedback() {
|
|
38103
|
+
|
|
38104
|
+
return this.apiClient.callApi(
|
|
38105
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
38106
|
+
'DELETE',
|
|
38107
|
+
{ },
|
|
38108
|
+
{ },
|
|
38109
|
+
{ },
|
|
38110
|
+
{ },
|
|
38111
|
+
null,
|
|
38112
|
+
['PureCloud OAuth'],
|
|
38113
|
+
['application/json'],
|
|
38114
|
+
['application/json']
|
|
38115
|
+
);
|
|
38116
|
+
}
|
|
38117
|
+
|
|
38118
|
+
/**
|
|
38119
|
+
* Delete a Speech & Text Analytics SentimentFeedback by Id
|
|
38120
|
+
*
|
|
38121
|
+
* @param {String} sentimentFeedbackId The Id of the SentimentFeedback
|
|
38122
|
+
*/
|
|
38123
|
+
deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(sentimentFeedbackId) {
|
|
38124
|
+
// verify the required parameter 'sentimentFeedbackId' is set
|
|
38125
|
+
if (sentimentFeedbackId === undefined || sentimentFeedbackId === null) {
|
|
38126
|
+
throw 'Missing the required parameter "sentimentFeedbackId" when calling deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId';
|
|
38127
|
+
}
|
|
38128
|
+
|
|
38129
|
+
return this.apiClient.callApi(
|
|
38130
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId}',
|
|
38131
|
+
'DELETE',
|
|
38132
|
+
{ 'sentimentFeedbackId': sentimentFeedbackId },
|
|
38133
|
+
{ },
|
|
38134
|
+
{ },
|
|
38135
|
+
{ },
|
|
38136
|
+
null,
|
|
38137
|
+
['PureCloud OAuth'],
|
|
38138
|
+
['application/json'],
|
|
38139
|
+
['application/json']
|
|
38140
|
+
);
|
|
38141
|
+
}
|
|
38142
|
+
|
|
37890
38143
|
/**
|
|
37891
38144
|
* Delete a Speech & Text Analytics topic by id
|
|
37892
38145
|
*
|
|
@@ -37969,7 +38222,7 @@ class SpeechTextAnalyticsApi {
|
|
|
37969
38222
|
|
|
37970
38223
|
/**
|
|
37971
38224
|
* Get list of supported Speech & Text Analytics dialects
|
|
37972
|
-
*
|
|
38225
|
+
* This api has been deprecated. Use api/v2/topics/dialects instead
|
|
37973
38226
|
*/
|
|
37974
38227
|
getSpeechandtextanalyticsDialects() {
|
|
37975
38228
|
|
|
@@ -38162,6 +38415,30 @@ class SpeechTextAnalyticsApi {
|
|
|
38162
38415
|
);
|
|
38163
38416
|
}
|
|
38164
38417
|
|
|
38418
|
+
/**
|
|
38419
|
+
* Get the list of Speech & Text Analytics SentimentFeedback
|
|
38420
|
+
*
|
|
38421
|
+
* @param {Object} opts Optional parameters
|
|
38422
|
+
* @param {String} opts.dialect The key for filter the listing by dialect, dialect format is {language}-{country} where language follows ISO 639-1 standard and country follows ISO 3166-1 alpha 2 standard
|
|
38423
|
+
*/
|
|
38424
|
+
getSpeechandtextanalyticsSentimentfeedback(opts) {
|
|
38425
|
+
opts = opts || {};
|
|
38426
|
+
|
|
38427
|
+
|
|
38428
|
+
return this.apiClient.callApi(
|
|
38429
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
38430
|
+
'GET',
|
|
38431
|
+
{ },
|
|
38432
|
+
{ 'dialect': opts['dialect'] },
|
|
38433
|
+
{ },
|
|
38434
|
+
{ },
|
|
38435
|
+
null,
|
|
38436
|
+
['PureCloud OAuth'],
|
|
38437
|
+
['application/json'],
|
|
38438
|
+
['application/json']
|
|
38439
|
+
);
|
|
38440
|
+
}
|
|
38441
|
+
|
|
38165
38442
|
/**
|
|
38166
38443
|
* Get Speech And Text Analytics Settings
|
|
38167
38444
|
*
|
|
@@ -38406,6 +38683,31 @@ class SpeechTextAnalyticsApi {
|
|
|
38406
38683
|
);
|
|
38407
38684
|
}
|
|
38408
38685
|
|
|
38686
|
+
/**
|
|
38687
|
+
* Create a Speech & Text Analytics SentimentFeedback
|
|
38688
|
+
*
|
|
38689
|
+
* @param {Object} body The SentimentFeedback to create
|
|
38690
|
+
*/
|
|
38691
|
+
postSpeechandtextanalyticsSentimentfeedback(body) {
|
|
38692
|
+
// verify the required parameter 'body' is set
|
|
38693
|
+
if (body === undefined || body === null) {
|
|
38694
|
+
throw 'Missing the required parameter "body" when calling postSpeechandtextanalyticsSentimentfeedback';
|
|
38695
|
+
}
|
|
38696
|
+
|
|
38697
|
+
return this.apiClient.callApi(
|
|
38698
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
38699
|
+
'POST',
|
|
38700
|
+
{ },
|
|
38701
|
+
{ },
|
|
38702
|
+
{ },
|
|
38703
|
+
{ },
|
|
38704
|
+
body,
|
|
38705
|
+
['PureCloud OAuth'],
|
|
38706
|
+
['application/json'],
|
|
38707
|
+
['application/json']
|
|
38708
|
+
);
|
|
38709
|
+
}
|
|
38710
|
+
|
|
38409
38711
|
/**
|
|
38410
38712
|
* Create new Speech & Text Analytics topic
|
|
38411
38713
|
*
|
|
@@ -38602,7 +38904,7 @@ class StationsApi {
|
|
|
38602
38904
|
/**
|
|
38603
38905
|
* Stations service.
|
|
38604
38906
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
38605
|
-
* @version
|
|
38907
|
+
* @version 126.1.0
|
|
38606
38908
|
*/
|
|
38607
38909
|
|
|
38608
38910
|
/**
|
|
@@ -38749,7 +39051,7 @@ class SuggestApi {
|
|
|
38749
39051
|
/**
|
|
38750
39052
|
* Suggest service.
|
|
38751
39053
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
38752
|
-
* @version
|
|
39054
|
+
* @version 126.1.0
|
|
38753
39055
|
*/
|
|
38754
39056
|
|
|
38755
39057
|
/**
|
|
@@ -38888,7 +39190,7 @@ class TelephonyApi {
|
|
|
38888
39190
|
/**
|
|
38889
39191
|
* Telephony service.
|
|
38890
39192
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
38891
|
-
* @version
|
|
39193
|
+
* @version 126.1.0
|
|
38892
39194
|
*/
|
|
38893
39195
|
|
|
38894
39196
|
/**
|
|
@@ -38996,7 +39298,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
38996
39298
|
/**
|
|
38997
39299
|
* TelephonyProvidersEdge service.
|
|
38998
39300
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
38999
|
-
* @version
|
|
39301
|
+
* @version 126.1.0
|
|
39000
39302
|
*/
|
|
39001
39303
|
|
|
39002
39304
|
/**
|
|
@@ -42609,7 +42911,7 @@ class TextbotsApi {
|
|
|
42609
42911
|
/**
|
|
42610
42912
|
* Textbots service.
|
|
42611
42913
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
42612
|
-
* @version
|
|
42914
|
+
* @version 126.1.0
|
|
42613
42915
|
*/
|
|
42614
42916
|
|
|
42615
42917
|
/**
|
|
@@ -42710,7 +43012,7 @@ class TokensApi {
|
|
|
42710
43012
|
/**
|
|
42711
43013
|
* Tokens service.
|
|
42712
43014
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
42713
|
-
* @version
|
|
43015
|
+
* @version 126.1.0
|
|
42714
43016
|
*/
|
|
42715
43017
|
|
|
42716
43018
|
/**
|
|
@@ -42816,7 +43118,7 @@ class UploadsApi {
|
|
|
42816
43118
|
/**
|
|
42817
43119
|
* Uploads service.
|
|
42818
43120
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
42819
|
-
* @version
|
|
43121
|
+
* @version 126.1.0
|
|
42820
43122
|
*/
|
|
42821
43123
|
|
|
42822
43124
|
/**
|
|
@@ -42992,7 +43294,7 @@ class UsageApi {
|
|
|
42992
43294
|
/**
|
|
42993
43295
|
* Usage service.
|
|
42994
43296
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
42995
|
-
* @version
|
|
43297
|
+
* @version 126.1.0
|
|
42996
43298
|
*/
|
|
42997
43299
|
|
|
42998
43300
|
/**
|
|
@@ -43063,7 +43365,7 @@ class UserRecordingsApi {
|
|
|
43063
43365
|
/**
|
|
43064
43366
|
* UserRecordings service.
|
|
43065
43367
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
43066
|
-
* @version
|
|
43368
|
+
* @version 126.1.0
|
|
43067
43369
|
*/
|
|
43068
43370
|
|
|
43069
43371
|
/**
|
|
@@ -43247,7 +43549,7 @@ class UsersApi {
|
|
|
43247
43549
|
/**
|
|
43248
43550
|
* Users service.
|
|
43249
43551
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
43250
|
-
* @version
|
|
43552
|
+
* @version 126.1.0
|
|
43251
43553
|
*/
|
|
43252
43554
|
|
|
43253
43555
|
/**
|
|
@@ -45549,7 +45851,7 @@ class UtilitiesApi {
|
|
|
45549
45851
|
/**
|
|
45550
45852
|
* Utilities service.
|
|
45551
45853
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
45552
|
-
* @version
|
|
45854
|
+
* @version 126.1.0
|
|
45553
45855
|
*/
|
|
45554
45856
|
|
|
45555
45857
|
/**
|
|
@@ -45660,7 +45962,7 @@ class VoicemailApi {
|
|
|
45660
45962
|
/**
|
|
45661
45963
|
* Voicemail service.
|
|
45662
45964
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
45663
|
-
* @version
|
|
45965
|
+
* @version 126.1.0
|
|
45664
45966
|
*/
|
|
45665
45967
|
|
|
45666
45968
|
/**
|
|
@@ -46291,13 +46593,43 @@ class VoicemailApi {
|
|
|
46291
46593
|
);
|
|
46292
46594
|
}
|
|
46293
46595
|
|
|
46596
|
+
/**
|
|
46597
|
+
* Update a user's voicemail policy
|
|
46598
|
+
*
|
|
46599
|
+
* @param {String} userId User ID
|
|
46600
|
+
* @param {Object} body The user's voicemail policy
|
|
46601
|
+
*/
|
|
46602
|
+
putVoicemailUserpolicy(userId, body) {
|
|
46603
|
+
// verify the required parameter 'userId' is set
|
|
46604
|
+
if (userId === undefined || userId === null) {
|
|
46605
|
+
throw 'Missing the required parameter "userId" when calling putVoicemailUserpolicy';
|
|
46606
|
+
}
|
|
46607
|
+
// verify the required parameter 'body' is set
|
|
46608
|
+
if (body === undefined || body === null) {
|
|
46609
|
+
throw 'Missing the required parameter "body" when calling putVoicemailUserpolicy';
|
|
46610
|
+
}
|
|
46611
|
+
|
|
46612
|
+
return this.apiClient.callApi(
|
|
46613
|
+
'/api/v2/voicemail/userpolicies/{userId}',
|
|
46614
|
+
'PUT',
|
|
46615
|
+
{ 'userId': userId },
|
|
46616
|
+
{ },
|
|
46617
|
+
{ },
|
|
46618
|
+
{ },
|
|
46619
|
+
body,
|
|
46620
|
+
['PureCloud OAuth'],
|
|
46621
|
+
['application/json'],
|
|
46622
|
+
['application/json']
|
|
46623
|
+
);
|
|
46624
|
+
}
|
|
46625
|
+
|
|
46294
46626
|
}
|
|
46295
46627
|
|
|
46296
46628
|
class WebChatApi {
|
|
46297
46629
|
/**
|
|
46298
46630
|
* WebChat service.
|
|
46299
46631
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
46300
|
-
* @version
|
|
46632
|
+
* @version 126.1.0
|
|
46301
46633
|
*/
|
|
46302
46634
|
|
|
46303
46635
|
/**
|
|
@@ -46841,7 +47173,7 @@ class WebDeploymentsApi {
|
|
|
46841
47173
|
/**
|
|
46842
47174
|
* WebDeployments service.
|
|
46843
47175
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
46844
|
-
* @version
|
|
47176
|
+
* @version 126.1.0
|
|
46845
47177
|
*/
|
|
46846
47178
|
|
|
46847
47179
|
/**
|
|
@@ -47196,7 +47528,7 @@ class WebMessagingApi {
|
|
|
47196
47528
|
/**
|
|
47197
47529
|
* WebMessaging service.
|
|
47198
47530
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
47199
|
-
* @version
|
|
47531
|
+
* @version 126.1.0
|
|
47200
47532
|
*/
|
|
47201
47533
|
|
|
47202
47534
|
/**
|
|
@@ -47242,7 +47574,7 @@ class WidgetsApi {
|
|
|
47242
47574
|
/**
|
|
47243
47575
|
* Widgets service.
|
|
47244
47576
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
47245
|
-
* @version
|
|
47577
|
+
* @version 126.1.0
|
|
47246
47578
|
*/
|
|
47247
47579
|
|
|
47248
47580
|
/**
|
|
@@ -47388,7 +47720,7 @@ class WorkforceManagementApi {
|
|
|
47388
47720
|
/**
|
|
47389
47721
|
* WorkforceManagement service.
|
|
47390
47722
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
47391
|
-
* @version
|
|
47723
|
+
* @version 126.1.0
|
|
47392
47724
|
*/
|
|
47393
47725
|
|
|
47394
47726
|
/**
|
|
@@ -47663,6 +47995,66 @@ class WorkforceManagementApi {
|
|
|
47663
47995
|
);
|
|
47664
47996
|
}
|
|
47665
47997
|
|
|
47998
|
+
/**
|
|
47999
|
+
* Deletes a time off limit object
|
|
48000
|
+
*
|
|
48001
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
48002
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to delete
|
|
48003
|
+
*/
|
|
48004
|
+
deleteWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
48005
|
+
// verify the required parameter 'managementUnitId' is set
|
|
48006
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
48007
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
48008
|
+
}
|
|
48009
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
48010
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
48011
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
48012
|
+
}
|
|
48013
|
+
|
|
48014
|
+
return this.apiClient.callApi(
|
|
48015
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
48016
|
+
'DELETE',
|
|
48017
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
48018
|
+
{ },
|
|
48019
|
+
{ },
|
|
48020
|
+
{ },
|
|
48021
|
+
null,
|
|
48022
|
+
['PureCloud OAuth'],
|
|
48023
|
+
['application/json'],
|
|
48024
|
+
['application/json']
|
|
48025
|
+
);
|
|
48026
|
+
}
|
|
48027
|
+
|
|
48028
|
+
/**
|
|
48029
|
+
* Deletes a time off plan
|
|
48030
|
+
*
|
|
48031
|
+
* @param {String} managementUnitId The management unit ID.
|
|
48032
|
+
* @param {String} timeOffPlanId The ID of the time off plan to delete
|
|
48033
|
+
*/
|
|
48034
|
+
deleteWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
48035
|
+
// verify the required parameter 'managementUnitId' is set
|
|
48036
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
48037
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
48038
|
+
}
|
|
48039
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
48040
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
48041
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
48042
|
+
}
|
|
48043
|
+
|
|
48044
|
+
return this.apiClient.callApi(
|
|
48045
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
48046
|
+
'DELETE',
|
|
48047
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
48048
|
+
{ },
|
|
48049
|
+
{ },
|
|
48050
|
+
{ },
|
|
48051
|
+
null,
|
|
48052
|
+
['PureCloud OAuth'],
|
|
48053
|
+
['application/json'],
|
|
48054
|
+
['application/json']
|
|
48055
|
+
);
|
|
48056
|
+
}
|
|
48057
|
+
|
|
47666
48058
|
/**
|
|
47667
48059
|
* Delete a work plan
|
|
47668
48060
|
*
|
|
@@ -48904,6 +49296,116 @@ class WorkforceManagementApi {
|
|
|
48904
49296
|
);
|
|
48905
49297
|
}
|
|
48906
49298
|
|
|
49299
|
+
/**
|
|
49300
|
+
* Gets a time off limit object
|
|
49301
|
+
* Returns properties of time off limit object, but not daily values.
|
|
49302
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
49303
|
+
* @param {String} timeOffLimitId The ID of the time off limit to fetch
|
|
49304
|
+
*/
|
|
49305
|
+
getWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
49306
|
+
// verify the required parameter 'managementUnitId' is set
|
|
49307
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
49308
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
49309
|
+
}
|
|
49310
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
49311
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
49312
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
49313
|
+
}
|
|
49314
|
+
|
|
49315
|
+
return this.apiClient.callApi(
|
|
49316
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
49317
|
+
'GET',
|
|
49318
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
49319
|
+
{ },
|
|
49320
|
+
{ },
|
|
49321
|
+
{ },
|
|
49322
|
+
null,
|
|
49323
|
+
['PureCloud OAuth'],
|
|
49324
|
+
['application/json'],
|
|
49325
|
+
['application/json']
|
|
49326
|
+
);
|
|
49327
|
+
}
|
|
49328
|
+
|
|
49329
|
+
/**
|
|
49330
|
+
* Gets a list of time off limit objects under management unit.
|
|
49331
|
+
* Currently only one time off limit object is allowed under management unit, so the list contains either 0 or 1 element.
|
|
49332
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
49333
|
+
*/
|
|
49334
|
+
getWorkforcemanagementManagementunitTimeofflimits(managementUnitId) {
|
|
49335
|
+
// verify the required parameter 'managementUnitId' is set
|
|
49336
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
49337
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';
|
|
49338
|
+
}
|
|
49339
|
+
|
|
49340
|
+
return this.apiClient.callApi(
|
|
49341
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
49342
|
+
'GET',
|
|
49343
|
+
{ 'managementUnitId': managementUnitId },
|
|
49344
|
+
{ },
|
|
49345
|
+
{ },
|
|
49346
|
+
{ },
|
|
49347
|
+
null,
|
|
49348
|
+
['PureCloud OAuth'],
|
|
49349
|
+
['application/json'],
|
|
49350
|
+
['application/json']
|
|
49351
|
+
);
|
|
49352
|
+
}
|
|
49353
|
+
|
|
49354
|
+
/**
|
|
49355
|
+
* Gets a time off plan
|
|
49356
|
+
*
|
|
49357
|
+
* @param {String} managementUnitId The management unit ID.
|
|
49358
|
+
* @param {String} timeOffPlanId The ID of the time off plan to fetch
|
|
49359
|
+
*/
|
|
49360
|
+
getWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
49361
|
+
// verify the required parameter 'managementUnitId' is set
|
|
49362
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
49363
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
49364
|
+
}
|
|
49365
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
49366
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
49367
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
49368
|
+
}
|
|
49369
|
+
|
|
49370
|
+
return this.apiClient.callApi(
|
|
49371
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
49372
|
+
'GET',
|
|
49373
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
49374
|
+
{ },
|
|
49375
|
+
{ },
|
|
49376
|
+
{ },
|
|
49377
|
+
null,
|
|
49378
|
+
['PureCloud OAuth'],
|
|
49379
|
+
['application/json'],
|
|
49380
|
+
['application/json']
|
|
49381
|
+
);
|
|
49382
|
+
}
|
|
49383
|
+
|
|
49384
|
+
/**
|
|
49385
|
+
* Gets a list of time off plans
|
|
49386
|
+
*
|
|
49387
|
+
* @param {String} managementUnitId The management unit ID.
|
|
49388
|
+
*/
|
|
49389
|
+
getWorkforcemanagementManagementunitTimeoffplans(managementUnitId) {
|
|
49390
|
+
// verify the required parameter 'managementUnitId' is set
|
|
49391
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
49392
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';
|
|
49393
|
+
}
|
|
49394
|
+
|
|
49395
|
+
return this.apiClient.callApi(
|
|
49396
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
49397
|
+
'GET',
|
|
49398
|
+
{ 'managementUnitId': managementUnitId },
|
|
49399
|
+
{ },
|
|
49400
|
+
{ },
|
|
49401
|
+
{ },
|
|
49402
|
+
null,
|
|
49403
|
+
['PureCloud OAuth'],
|
|
49404
|
+
['application/json'],
|
|
49405
|
+
['application/json']
|
|
49406
|
+
);
|
|
49407
|
+
}
|
|
49408
|
+
|
|
48907
49409
|
/**
|
|
48908
49410
|
* Get a time off request
|
|
48909
49411
|
*
|
|
@@ -48939,6 +49441,41 @@ class WorkforceManagementApi {
|
|
|
48939
49441
|
);
|
|
48940
49442
|
}
|
|
48941
49443
|
|
|
49444
|
+
/**
|
|
49445
|
+
* Retrieves time off limit, allocated and waitlisted values according to specific time off request
|
|
49446
|
+
*
|
|
49447
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
49448
|
+
* @param {String} userId The userId to whom the time off request applies.
|
|
49449
|
+
* @param {String} timeOffRequestId The ID of the time off request, which dates and activityCodeId determine limit values to retrieve
|
|
49450
|
+
*/
|
|
49451
|
+
getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(managementUnitId, userId, timeOffRequestId) {
|
|
49452
|
+
// verify the required parameter 'managementUnitId' is set
|
|
49453
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
49454
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
49455
|
+
}
|
|
49456
|
+
// verify the required parameter 'userId' is set
|
|
49457
|
+
if (userId === undefined || userId === null) {
|
|
49458
|
+
throw 'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
49459
|
+
}
|
|
49460
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
49461
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
49462
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
49463
|
+
}
|
|
49464
|
+
|
|
49465
|
+
return this.apiClient.callApi(
|
|
49466
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits',
|
|
49467
|
+
'GET',
|
|
49468
|
+
{ 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
|
|
49469
|
+
{ },
|
|
49470
|
+
{ },
|
|
49471
|
+
{ },
|
|
49472
|
+
null,
|
|
49473
|
+
['PureCloud OAuth'],
|
|
49474
|
+
['application/json'],
|
|
49475
|
+
['application/json']
|
|
49476
|
+
);
|
|
49477
|
+
}
|
|
49478
|
+
|
|
48942
49479
|
/**
|
|
48943
49480
|
* Get a list of time off requests for a given user
|
|
48944
49481
|
*
|
|
@@ -49372,6 +49909,31 @@ class WorkforceManagementApi {
|
|
|
49372
49909
|
);
|
|
49373
49910
|
}
|
|
49374
49911
|
|
|
49912
|
+
/**
|
|
49913
|
+
* Get the daily waitlist positions of a time off request for the current user
|
|
49914
|
+
*
|
|
49915
|
+
* @param {String} timeOffRequestId Time Off Request Id
|
|
49916
|
+
*/
|
|
49917
|
+
getWorkforcemanagementTimeoffrequestWaitlistpositions(timeOffRequestId) {
|
|
49918
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
49919
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
49920
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';
|
|
49921
|
+
}
|
|
49922
|
+
|
|
49923
|
+
return this.apiClient.callApi(
|
|
49924
|
+
'/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions',
|
|
49925
|
+
'GET',
|
|
49926
|
+
{ 'timeOffRequestId': timeOffRequestId },
|
|
49927
|
+
{ },
|
|
49928
|
+
{ },
|
|
49929
|
+
{ },
|
|
49930
|
+
null,
|
|
49931
|
+
['PureCloud OAuth'],
|
|
49932
|
+
['application/json'],
|
|
49933
|
+
['application/json']
|
|
49934
|
+
);
|
|
49935
|
+
}
|
|
49936
|
+
|
|
49375
49937
|
/**
|
|
49376
49938
|
* Get a list of time off requests for the current user
|
|
49377
49939
|
*
|
|
@@ -49590,6 +50152,74 @@ class WorkforceManagementApi {
|
|
|
49590
50152
|
);
|
|
49591
50153
|
}
|
|
49592
50154
|
|
|
50155
|
+
/**
|
|
50156
|
+
* Updates a time off limit object.
|
|
50157
|
+
* Updates time off limit object properties, but not daily values.
|
|
50158
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
50159
|
+
* @param {String} timeOffLimitId The id of time off limit object to update
|
|
50160
|
+
* @param {Object} opts Optional parameters
|
|
50161
|
+
* @param {Object} opts.body body
|
|
50162
|
+
*/
|
|
50163
|
+
patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId, opts) {
|
|
50164
|
+
opts = opts || {};
|
|
50165
|
+
|
|
50166
|
+
// verify the required parameter 'managementUnitId' is set
|
|
50167
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
50168
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
50169
|
+
}
|
|
50170
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
50171
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
50172
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
50173
|
+
}
|
|
50174
|
+
|
|
50175
|
+
return this.apiClient.callApi(
|
|
50176
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
50177
|
+
'PATCH',
|
|
50178
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
50179
|
+
{ },
|
|
50180
|
+
{ },
|
|
50181
|
+
{ },
|
|
50182
|
+
opts['body'],
|
|
50183
|
+
['PureCloud OAuth'],
|
|
50184
|
+
['application/json'],
|
|
50185
|
+
['application/json']
|
|
50186
|
+
);
|
|
50187
|
+
}
|
|
50188
|
+
|
|
50189
|
+
/**
|
|
50190
|
+
* Updates a time off plan
|
|
50191
|
+
*
|
|
50192
|
+
* @param {String} managementUnitId The management unit ID.
|
|
50193
|
+
* @param {String} timeOffPlanId The ID of the time off plan to update
|
|
50194
|
+
* @param {Object} opts Optional parameters
|
|
50195
|
+
* @param {Object} opts.body body
|
|
50196
|
+
*/
|
|
50197
|
+
patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId, opts) {
|
|
50198
|
+
opts = opts || {};
|
|
50199
|
+
|
|
50200
|
+
// verify the required parameter 'managementUnitId' is set
|
|
50201
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
50202
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
50203
|
+
}
|
|
50204
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
50205
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
50206
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
50207
|
+
}
|
|
50208
|
+
|
|
50209
|
+
return this.apiClient.callApi(
|
|
50210
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
50211
|
+
'PATCH',
|
|
50212
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
50213
|
+
{ },
|
|
50214
|
+
{ },
|
|
50215
|
+
{ },
|
|
50216
|
+
opts['body'],
|
|
50217
|
+
['PureCloud OAuth'],
|
|
50218
|
+
['application/json'],
|
|
50219
|
+
['application/json']
|
|
50220
|
+
);
|
|
50221
|
+
}
|
|
50222
|
+
|
|
49593
50223
|
/**
|
|
49594
50224
|
* Update a time off request
|
|
49595
50225
|
*
|
|
@@ -50451,6 +51081,93 @@ class WorkforceManagementApi {
|
|
|
50451
51081
|
);
|
|
50452
51082
|
}
|
|
50453
51083
|
|
|
51084
|
+
/**
|
|
51085
|
+
* Creates a new time off limit object under management unit.
|
|
51086
|
+
* Only one limit object is allowed under management unit, so an attempt to create second object will fail.
|
|
51087
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
51088
|
+
* @param {Object} opts Optional parameters
|
|
51089
|
+
* @param {Object} opts.body body
|
|
51090
|
+
*/
|
|
51091
|
+
postWorkforcemanagementManagementunitTimeofflimits(managementUnitId, opts) {
|
|
51092
|
+
opts = opts || {};
|
|
51093
|
+
|
|
51094
|
+
// verify the required parameter 'managementUnitId' is set
|
|
51095
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
51096
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';
|
|
51097
|
+
}
|
|
51098
|
+
|
|
51099
|
+
return this.apiClient.callApi(
|
|
51100
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
51101
|
+
'POST',
|
|
51102
|
+
{ 'managementUnitId': managementUnitId },
|
|
51103
|
+
{ },
|
|
51104
|
+
{ },
|
|
51105
|
+
{ },
|
|
51106
|
+
opts['body'],
|
|
51107
|
+
['PureCloud OAuth'],
|
|
51108
|
+
['application/json'],
|
|
51109
|
+
['application/json']
|
|
51110
|
+
);
|
|
51111
|
+
}
|
|
51112
|
+
|
|
51113
|
+
/**
|
|
51114
|
+
* Retrieves time off limit related values based on a given set of filters.
|
|
51115
|
+
*
|
|
51116
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
51117
|
+
* @param {Object} opts Optional parameters
|
|
51118
|
+
* @param {Object} opts.body body
|
|
51119
|
+
*/
|
|
51120
|
+
postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId, opts) {
|
|
51121
|
+
opts = opts || {};
|
|
51122
|
+
|
|
51123
|
+
// verify the required parameter 'managementUnitId' is set
|
|
51124
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
51125
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';
|
|
51126
|
+
}
|
|
51127
|
+
|
|
51128
|
+
return this.apiClient.callApi(
|
|
51129
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query',
|
|
51130
|
+
'POST',
|
|
51131
|
+
{ 'managementUnitId': managementUnitId },
|
|
51132
|
+
{ },
|
|
51133
|
+
{ },
|
|
51134
|
+
{ },
|
|
51135
|
+
opts['body'],
|
|
51136
|
+
['PureCloud OAuth'],
|
|
51137
|
+
['application/json'],
|
|
51138
|
+
['application/json']
|
|
51139
|
+
);
|
|
51140
|
+
}
|
|
51141
|
+
|
|
51142
|
+
/**
|
|
51143
|
+
* Creates a new time off plan
|
|
51144
|
+
*
|
|
51145
|
+
* @param {String} managementUnitId The management unit ID.
|
|
51146
|
+
* @param {Object} opts Optional parameters
|
|
51147
|
+
* @param {Object} opts.body body
|
|
51148
|
+
*/
|
|
51149
|
+
postWorkforcemanagementManagementunitTimeoffplans(managementUnitId, opts) {
|
|
51150
|
+
opts = opts || {};
|
|
51151
|
+
|
|
51152
|
+
// verify the required parameter 'managementUnitId' is set
|
|
51153
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
51154
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';
|
|
51155
|
+
}
|
|
51156
|
+
|
|
51157
|
+
return this.apiClient.callApi(
|
|
51158
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
51159
|
+
'POST',
|
|
51160
|
+
{ 'managementUnitId': managementUnitId },
|
|
51161
|
+
{ },
|
|
51162
|
+
{ },
|
|
51163
|
+
{ },
|
|
51164
|
+
opts['body'],
|
|
51165
|
+
['PureCloud OAuth'],
|
|
51166
|
+
['application/json'],
|
|
51167
|
+
['application/json']
|
|
51168
|
+
);
|
|
51169
|
+
}
|
|
51170
|
+
|
|
50454
51171
|
/**
|
|
50455
51172
|
* Create a new time off request
|
|
50456
51173
|
*
|
|
@@ -50509,6 +51226,35 @@ class WorkforceManagementApi {
|
|
|
50509
51226
|
);
|
|
50510
51227
|
}
|
|
50511
51228
|
|
|
51229
|
+
/**
|
|
51230
|
+
* Retrieves daily waitlist position for a list of time off requests
|
|
51231
|
+
*
|
|
51232
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
51233
|
+
* @param {Object} opts Optional parameters
|
|
51234
|
+
* @param {Object} opts.body body
|
|
51235
|
+
*/
|
|
51236
|
+
postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId, opts) {
|
|
51237
|
+
opts = opts || {};
|
|
51238
|
+
|
|
51239
|
+
// verify the required parameter 'managementUnitId' is set
|
|
51240
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
51241
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';
|
|
51242
|
+
}
|
|
51243
|
+
|
|
51244
|
+
return this.apiClient.callApi(
|
|
51245
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query',
|
|
51246
|
+
'POST',
|
|
51247
|
+
{ 'managementUnitId': managementUnitId },
|
|
51248
|
+
{ },
|
|
51249
|
+
{ },
|
|
51250
|
+
{ },
|
|
51251
|
+
opts['body'],
|
|
51252
|
+
['PureCloud OAuth'],
|
|
51253
|
+
['application/json'],
|
|
51254
|
+
['application/json']
|
|
51255
|
+
);
|
|
51256
|
+
}
|
|
51257
|
+
|
|
50512
51258
|
/**
|
|
50513
51259
|
* Matches a shift trade. This route can only be called by the receiving agent
|
|
50514
51260
|
*
|
|
@@ -50892,6 +51638,30 @@ class WorkforceManagementApi {
|
|
|
50892
51638
|
);
|
|
50893
51639
|
}
|
|
50894
51640
|
|
|
51641
|
+
/**
|
|
51642
|
+
* Queries available time off for the current user
|
|
51643
|
+
*
|
|
51644
|
+
* @param {Object} opts Optional parameters
|
|
51645
|
+
* @param {Object} opts.body body
|
|
51646
|
+
*/
|
|
51647
|
+
postWorkforcemanagementTimeofflimitsAvailableQuery(opts) {
|
|
51648
|
+
opts = opts || {};
|
|
51649
|
+
|
|
51650
|
+
|
|
51651
|
+
return this.apiClient.callApi(
|
|
51652
|
+
'/api/v2/workforcemanagement/timeofflimits/available/query',
|
|
51653
|
+
'POST',
|
|
51654
|
+
{ },
|
|
51655
|
+
{ },
|
|
51656
|
+
{ },
|
|
51657
|
+
{ },
|
|
51658
|
+
opts['body'],
|
|
51659
|
+
['PureCloud OAuth'],
|
|
51660
|
+
['application/json'],
|
|
51661
|
+
['application/json']
|
|
51662
|
+
);
|
|
51663
|
+
}
|
|
51664
|
+
|
|
50895
51665
|
/**
|
|
50896
51666
|
* Create a time off request for the current user
|
|
50897
51667
|
*
|
|
@@ -50916,6 +51686,40 @@ class WorkforceManagementApi {
|
|
|
50916
51686
|
);
|
|
50917
51687
|
}
|
|
50918
51688
|
|
|
51689
|
+
/**
|
|
51690
|
+
* Sets daily values for a date range of time off limit object
|
|
51691
|
+
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
|
|
51692
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
51693
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to set values for
|
|
51694
|
+
* @param {Object} opts Optional parameters
|
|
51695
|
+
* @param {Object} opts.body body
|
|
51696
|
+
*/
|
|
51697
|
+
putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId, timeOffLimitId, opts) {
|
|
51698
|
+
opts = opts || {};
|
|
51699
|
+
|
|
51700
|
+
// verify the required parameter 'managementUnitId' is set
|
|
51701
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
51702
|
+
throw 'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
51703
|
+
}
|
|
51704
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
51705
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
51706
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
51707
|
+
}
|
|
51708
|
+
|
|
51709
|
+
return this.apiClient.callApi(
|
|
51710
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values',
|
|
51711
|
+
'PUT',
|
|
51712
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
51713
|
+
{ },
|
|
51714
|
+
{ },
|
|
51715
|
+
{ },
|
|
51716
|
+
opts['body'],
|
|
51717
|
+
['PureCloud OAuth'],
|
|
51718
|
+
['application/json'],
|
|
51719
|
+
['application/json']
|
|
51720
|
+
);
|
|
51721
|
+
}
|
|
51722
|
+
|
|
50919
51723
|
}
|
|
50920
51724
|
|
|
50921
51725
|
/**
|
|
@@ -50947,7 +51751,7 @@ class WorkforceManagementApi {
|
|
|
50947
51751
|
* </pre>
|
|
50948
51752
|
* </p>
|
|
50949
51753
|
* @module purecloud-platform-client-v2/index
|
|
50950
|
-
* @version
|
|
51754
|
+
* @version 126.1.0
|
|
50951
51755
|
*/
|
|
50952
51756
|
class platformClient {
|
|
50953
51757
|
constructor() {
|