purecloud-platform-client-v2 212.0.0 → 212.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 +18 -4
- package/dist/node/purecloud-platform-client-v2.js +699 -234
- package/dist/web-amd/purecloud-platform-client-v2.js +700 -234
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +382 -272
- package/dist/web-cjs/purecloud-platform-client-v2.js +579 -6357
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +613 -226
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +21 -18
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +26 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +57 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +288 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +94 -1
- package/src/purecloud-platform-client-v2/index.js +8 -3
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var https = require('https');
|
|
4
3
|
var axios = require('axios');
|
|
5
4
|
var qs = require('qs');
|
|
6
5
|
|
|
7
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
7
|
|
|
9
|
-
var https__default = /*#__PURE__*/_interopDefaultLegacy(https);
|
|
10
8
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
11
9
|
var qs__default = /*#__PURE__*/_interopDefaultLegacy(qs);
|
|
12
10
|
|
|
@@ -28,6 +26,138 @@ var PureCloudRegionHosts = {
|
|
|
28
26
|
eu_central_2: 'euc2.pure.cloud',
|
|
29
27
|
};
|
|
30
28
|
|
|
29
|
+
class AbstractHttpClient {
|
|
30
|
+
|
|
31
|
+
constructor() {
|
|
32
|
+
this.timeout = 16000;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
setTimeout(timeout) {
|
|
36
|
+
if (timeout === null || timeout === undefined || typeof timeout !== 'number') {
|
|
37
|
+
throw new Error("The 'timeout' property must be a number");
|
|
38
|
+
}
|
|
39
|
+
this.timeout = timeout;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
setHttpsAgent(httpsAgent) {
|
|
43
|
+
if (httpsAgent && typeof httpsAgent !== 'object') {
|
|
44
|
+
throw new Error("The 'httpsAgent' property must be an object");
|
|
45
|
+
}
|
|
46
|
+
this.httpsAgent = httpsAgent;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
request(httpRequestOptions) {
|
|
50
|
+
throw new Error("method must be implemented");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class HttpRequestOptions {
|
|
55
|
+
|
|
56
|
+
constructor(url, method, headers, params, data, timeout) {
|
|
57
|
+
this.setUrl(url);
|
|
58
|
+
this.setMethod(method);
|
|
59
|
+
if (headers) {
|
|
60
|
+
this.setHeaders(headers);
|
|
61
|
+
}
|
|
62
|
+
if (params) {
|
|
63
|
+
this.setParams(params);
|
|
64
|
+
}
|
|
65
|
+
if (data) {
|
|
66
|
+
this.setData(data);
|
|
67
|
+
}
|
|
68
|
+
if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
|
|
69
|
+
else this.timeout = 16000;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Mandatory fields with validation
|
|
73
|
+
setUrl(url) {
|
|
74
|
+
if (!url) throw new Error("The 'url' property is required");
|
|
75
|
+
this.url = url;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
setMethod(method) {
|
|
79
|
+
const validMethods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD'];
|
|
80
|
+
if (!method || !validMethods.includes(method.toUpperCase())) {
|
|
81
|
+
throw new Error("The 'method' property is invalid or missing");
|
|
82
|
+
}
|
|
83
|
+
this.method = method.toUpperCase();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
setData(data) {
|
|
87
|
+
if (data === undefined || data === null) {
|
|
88
|
+
throw new Error("The 'data' property is required");
|
|
89
|
+
}
|
|
90
|
+
this.data = data;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Optional fields
|
|
94
|
+
setParams(params) {
|
|
95
|
+
if (params && typeof params !== 'object') {
|
|
96
|
+
throw new Error("The 'params' property must be an object");
|
|
97
|
+
}
|
|
98
|
+
this.params = params;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Optional fields
|
|
102
|
+
setHeaders(headers) {
|
|
103
|
+
if (headers && typeof headers !== 'object') {
|
|
104
|
+
throw new Error("The 'headers' property must be an object");
|
|
105
|
+
}
|
|
106
|
+
this.headers = headers;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
setTimeout(timeout) {
|
|
110
|
+
if (timeout === undefined || timeout === null || typeof timeout !== 'number') {
|
|
111
|
+
throw new Error("The 'timeout' property must be a number");
|
|
112
|
+
}
|
|
113
|
+
this.timeout = timeout;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Default client is Axios
|
|
119
|
+
class DefaultHttpClient extends AbstractHttpClient{
|
|
120
|
+
|
|
121
|
+
constructor(timeout, httpsAgent) {
|
|
122
|
+
super();
|
|
123
|
+
if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
|
|
124
|
+
else this.timeout = 16000;
|
|
125
|
+
if (httpsAgent !== null && httpsAgent !== undefined) this.setHttpsAgent(httpsAgent);
|
|
126
|
+
else this.httpsAgent;
|
|
127
|
+
this._axiosInstance = axios__default["default"].create({});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
request(httpRequestOptions) {
|
|
131
|
+
if(!(httpRequestOptions instanceof HttpRequestOptions)) {
|
|
132
|
+
throw new Error(`httpRequestOptions must be instance of HttpRequestOptions `);
|
|
133
|
+
}
|
|
134
|
+
const config = this.toAxiosConfig(httpRequestOptions);
|
|
135
|
+
return this._axiosInstance.request(config);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Method to generate Axios-compatible config
|
|
139
|
+
toAxiosConfig(httpRequestOptions) {
|
|
140
|
+
if (!httpRequestOptions.url || !httpRequestOptions.method) {
|
|
141
|
+
throw new Error(
|
|
142
|
+
"Mandatory fields 'url' and 'method' must be set before making a request"
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
var config = {
|
|
147
|
+
url: httpRequestOptions.url,
|
|
148
|
+
method: httpRequestOptions.method
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
if (httpRequestOptions.params) config.params = httpRequestOptions.params;
|
|
152
|
+
if (httpRequestOptions.headers) config.headers = httpRequestOptions.headers;
|
|
153
|
+
if(httpRequestOptions.data) config.data = httpRequestOptions.data;
|
|
154
|
+
if (this.timeout != null && this.timeout != undefined) config.timeout = this.timeout;
|
|
155
|
+
if (this.httpsAgent) config.httpsAgent = this.httpsAgent;
|
|
156
|
+
|
|
157
|
+
return config;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
31
161
|
const logLevels = {
|
|
32
162
|
levels: {
|
|
33
163
|
none: 0,
|
|
@@ -488,141 +618,9 @@ class Configuration {
|
|
|
488
618
|
}
|
|
489
619
|
}
|
|
490
620
|
|
|
491
|
-
class AbstractHttpClient {
|
|
492
|
-
|
|
493
|
-
constructor() {
|
|
494
|
-
this.timeout = 16000;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
setTimeout(timeout) {
|
|
498
|
-
if (timeout === null || timeout === undefined || typeof timeout !== 'number') {
|
|
499
|
-
throw new Error("The 'timeout' property must be a number");
|
|
500
|
-
}
|
|
501
|
-
this.timeout = timeout;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
setHttpsAgent(httpsAgent) {
|
|
505
|
-
if (httpsAgent && typeof httpsAgent !== 'object') {
|
|
506
|
-
throw new Error("The 'httpsAgent' property must be an object");
|
|
507
|
-
}
|
|
508
|
-
this.httpsAgent = httpsAgent;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
request(httpRequestOptions) {
|
|
512
|
-
throw new Error("method must be implemented");
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
class HttpRequestOptions {
|
|
517
|
-
|
|
518
|
-
constructor(url, method, headers, params, data, timeout) {
|
|
519
|
-
this.setUrl(url);
|
|
520
|
-
this.setMethod(method);
|
|
521
|
-
if (headers) {
|
|
522
|
-
this.setHeaders(headers);
|
|
523
|
-
}
|
|
524
|
-
if (params) {
|
|
525
|
-
this.setParams(params);
|
|
526
|
-
}
|
|
527
|
-
if (data) {
|
|
528
|
-
this.setData(data);
|
|
529
|
-
}
|
|
530
|
-
if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
|
|
531
|
-
else this.timeout = 16000;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
// Mandatory fields with validation
|
|
535
|
-
setUrl(url) {
|
|
536
|
-
if (!url) throw new Error("The 'url' property is required");
|
|
537
|
-
this.url = url;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
setMethod(method) {
|
|
541
|
-
const validMethods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD'];
|
|
542
|
-
if (!method || !validMethods.includes(method.toUpperCase())) {
|
|
543
|
-
throw new Error("The 'method' property is invalid or missing");
|
|
544
|
-
}
|
|
545
|
-
this.method = method.toUpperCase();
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
setData(data) {
|
|
549
|
-
if (data === undefined || data === null) {
|
|
550
|
-
throw new Error("The 'data' property is required");
|
|
551
|
-
}
|
|
552
|
-
this.data = data;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
// Optional fields
|
|
556
|
-
setParams(params) {
|
|
557
|
-
if (params && typeof params !== 'object') {
|
|
558
|
-
throw new Error("The 'params' property must be an object");
|
|
559
|
-
}
|
|
560
|
-
this.params = params;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
// Optional fields
|
|
564
|
-
setHeaders(headers) {
|
|
565
|
-
if (headers && typeof headers !== 'object') {
|
|
566
|
-
throw new Error("The 'headers' property must be an object");
|
|
567
|
-
}
|
|
568
|
-
this.headers = headers;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
setTimeout(timeout) {
|
|
572
|
-
if (timeout === undefined || timeout === null || typeof timeout !== 'number') {
|
|
573
|
-
throw new Error("The 'timeout' property must be a number");
|
|
574
|
-
}
|
|
575
|
-
this.timeout = timeout;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
// Default client is Axios
|
|
581
|
-
class DefaultHttpClient extends AbstractHttpClient{
|
|
582
|
-
|
|
583
|
-
constructor(timeout, httpsAgent) {
|
|
584
|
-
super();
|
|
585
|
-
if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
|
|
586
|
-
else this.timeout = 16000;
|
|
587
|
-
if (httpsAgent !== null && httpsAgent !== undefined) this.setHttpsAgent(httpsAgent);
|
|
588
|
-
else this.httpsAgent;
|
|
589
|
-
this._axiosInstance = axios__default["default"].create({});
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
request(httpRequestOptions) {
|
|
593
|
-
if(!(httpRequestOptions instanceof HttpRequestOptions)) {
|
|
594
|
-
throw new Error(`httpRequestOptions must be instance of HttpRequestOptions `);
|
|
595
|
-
}
|
|
596
|
-
const config = this.toAxiosConfig(httpRequestOptions);
|
|
597
|
-
return this._axiosInstance.request(config);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
// Method to generate Axios-compatible config
|
|
601
|
-
toAxiosConfig(httpRequestOptions) {
|
|
602
|
-
if (!httpRequestOptions.url || !httpRequestOptions.method) {
|
|
603
|
-
throw new Error(
|
|
604
|
-
"Mandatory fields 'url' and 'method' must be set before making a request"
|
|
605
|
-
);
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
var config = {
|
|
609
|
-
url: httpRequestOptions.url,
|
|
610
|
-
method: httpRequestOptions.method
|
|
611
|
-
};
|
|
612
|
-
|
|
613
|
-
if (httpRequestOptions.params) config.params = httpRequestOptions.params;
|
|
614
|
-
if (httpRequestOptions.headers) config.headers = httpRequestOptions.headers;
|
|
615
|
-
if(httpRequestOptions.data) config.data = httpRequestOptions.data;
|
|
616
|
-
if (this.timeout != null && this.timeout != undefined) config.timeout = this.timeout;
|
|
617
|
-
if (this.httpsAgent) config.httpsAgent = this.httpsAgent;
|
|
618
|
-
|
|
619
|
-
return config;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
|
|
623
621
|
/**
|
|
624
622
|
* @module purecloud-platform-client-v2/ApiClient
|
|
625
|
-
* @version 212.
|
|
623
|
+
* @version 212.1.0
|
|
626
624
|
*/
|
|
627
625
|
class ApiClient {
|
|
628
626
|
/**
|
|
@@ -869,11 +867,11 @@ class ApiClient {
|
|
|
869
867
|
|
|
870
868
|
agentOptions.rejectUnauthorized = true;
|
|
871
869
|
|
|
872
|
-
this.proxyAgent = new
|
|
870
|
+
this.proxyAgent = new require('https').Agent(agentOptions);
|
|
873
871
|
const httpClient = this.getHttpClient();
|
|
874
872
|
httpClient.setHttpsAgent(this.proxyAgent);
|
|
875
873
|
} else {
|
|
876
|
-
throw new Error("
|
|
874
|
+
throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.");
|
|
877
875
|
}
|
|
878
876
|
}
|
|
879
877
|
|
|
@@ -884,24 +882,28 @@ class ApiClient {
|
|
|
884
882
|
* @param {string} caContent - content for public certs
|
|
885
883
|
*/
|
|
886
884
|
setMTLSContents(certContent, keyContent, caContent) {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
885
|
+
if (typeof window === 'undefined') {
|
|
886
|
+
const agentOptions = {};
|
|
887
|
+
if (certContent) {
|
|
888
|
+
agentOptions.cert = certContent;
|
|
889
|
+
}
|
|
891
890
|
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
891
|
+
if (keyContent) {
|
|
892
|
+
agentOptions.key = keyContent;
|
|
893
|
+
}
|
|
895
894
|
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
895
|
+
if (caContent) {
|
|
896
|
+
agentOptions.ca = caContent;
|
|
897
|
+
}
|
|
899
898
|
|
|
900
|
-
|
|
899
|
+
agentOptions.rejectUnauthorized = true;
|
|
901
900
|
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
901
|
+
this.proxyAgent = new require('https').Agent(agentOptions);
|
|
902
|
+
const httpClient = this.getHttpClient();
|
|
903
|
+
httpClient.setHttpsAgent(this.proxyAgent);
|
|
904
|
+
} else {
|
|
905
|
+
throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.");
|
|
906
|
+
}
|
|
905
907
|
}
|
|
906
908
|
|
|
907
909
|
/**
|
|
@@ -2142,7 +2144,7 @@ class AgentAssistantsApi {
|
|
|
2142
2144
|
/**
|
|
2143
2145
|
* AgentAssistants service.
|
|
2144
2146
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
2145
|
-
* @version 212.
|
|
2147
|
+
* @version 212.1.0
|
|
2146
2148
|
*/
|
|
2147
2149
|
|
|
2148
2150
|
/**
|
|
@@ -2518,7 +2520,7 @@ class AgentCopilotApi {
|
|
|
2518
2520
|
/**
|
|
2519
2521
|
* AgentCopilot service.
|
|
2520
2522
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
2521
|
-
* @version 212.
|
|
2523
|
+
* @version 212.1.0
|
|
2522
2524
|
*/
|
|
2523
2525
|
|
|
2524
2526
|
/**
|
|
@@ -2594,7 +2596,7 @@ class AgentUIApi {
|
|
|
2594
2596
|
/**
|
|
2595
2597
|
* AgentUI service.
|
|
2596
2598
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
2597
|
-
* @version 212.
|
|
2599
|
+
* @version 212.1.0
|
|
2598
2600
|
*/
|
|
2599
2601
|
|
|
2600
2602
|
/**
|
|
@@ -2725,7 +2727,7 @@ class AlertingApi {
|
|
|
2725
2727
|
/**
|
|
2726
2728
|
* Alerting service.
|
|
2727
2729
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
2728
|
-
* @version 212.
|
|
2730
|
+
* @version 212.1.0
|
|
2729
2731
|
*/
|
|
2730
2732
|
|
|
2731
2733
|
/**
|
|
@@ -3386,7 +3388,7 @@ class AnalyticsApi {
|
|
|
3386
3388
|
/**
|
|
3387
3389
|
* Analytics service.
|
|
3388
3390
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
3389
|
-
* @version 212.
|
|
3391
|
+
* @version 212.1.0
|
|
3390
3392
|
*/
|
|
3391
3393
|
|
|
3392
3394
|
/**
|
|
@@ -5733,6 +5735,31 @@ class AnalyticsApi {
|
|
|
5733
5735
|
);
|
|
5734
5736
|
}
|
|
5735
5737
|
|
|
5738
|
+
/**
|
|
5739
|
+
* Query for resolution aggregates
|
|
5740
|
+
*
|
|
5741
|
+
* @param {Object} body query
|
|
5742
|
+
*/
|
|
5743
|
+
postAnalyticsResolutionsAggregatesQuery(body) {
|
|
5744
|
+
// verify the required parameter 'body' is set
|
|
5745
|
+
if (body === undefined || body === null) {
|
|
5746
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsResolutionsAggregatesQuery';
|
|
5747
|
+
}
|
|
5748
|
+
|
|
5749
|
+
return this.apiClient.callApi(
|
|
5750
|
+
'/api/v2/analytics/resolutions/aggregates/query',
|
|
5751
|
+
'POST',
|
|
5752
|
+
{ },
|
|
5753
|
+
{ },
|
|
5754
|
+
{ },
|
|
5755
|
+
{ },
|
|
5756
|
+
body,
|
|
5757
|
+
['PureCloud OAuth'],
|
|
5758
|
+
['application/json'],
|
|
5759
|
+
['application/json']
|
|
5760
|
+
);
|
|
5761
|
+
}
|
|
5762
|
+
|
|
5736
5763
|
/**
|
|
5737
5764
|
* Query for user activity observations
|
|
5738
5765
|
*
|
|
@@ -6185,7 +6212,7 @@ class ArchitectApi {
|
|
|
6185
6212
|
/**
|
|
6186
6213
|
* Architect service.
|
|
6187
6214
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
6188
|
-
* @version 212.
|
|
6215
|
+
* @version 212.1.0
|
|
6189
6216
|
*/
|
|
6190
6217
|
|
|
6191
6218
|
/**
|
|
@@ -10307,7 +10334,7 @@ class AuditApi {
|
|
|
10307
10334
|
/**
|
|
10308
10335
|
* Audit service.
|
|
10309
10336
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
10310
|
-
* @version 212.
|
|
10337
|
+
* @version 212.1.0
|
|
10311
10338
|
*/
|
|
10312
10339
|
|
|
10313
10340
|
/**
|
|
@@ -10508,7 +10535,7 @@ class AuthorizationApi {
|
|
|
10508
10535
|
/**
|
|
10509
10536
|
* Authorization service.
|
|
10510
10537
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
10511
|
-
* @version 212.
|
|
10538
|
+
* @version 212.1.0
|
|
10512
10539
|
*/
|
|
10513
10540
|
|
|
10514
10541
|
/**
|
|
@@ -11791,7 +11818,7 @@ class BillingApi {
|
|
|
11791
11818
|
/**
|
|
11792
11819
|
* Billing service.
|
|
11793
11820
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
11794
|
-
* @version 212.
|
|
11821
|
+
* @version 212.1.0
|
|
11795
11822
|
*/
|
|
11796
11823
|
|
|
11797
11824
|
/**
|
|
@@ -11871,7 +11898,7 @@ class CarrierServicesApi {
|
|
|
11871
11898
|
/**
|
|
11872
11899
|
* CarrierServices service.
|
|
11873
11900
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
11874
|
-
* @version 212.
|
|
11901
|
+
* @version 212.1.0
|
|
11875
11902
|
*/
|
|
11876
11903
|
|
|
11877
11904
|
/**
|
|
@@ -11941,7 +11968,7 @@ class ChatApi {
|
|
|
11941
11968
|
/**
|
|
11942
11969
|
* Chat service.
|
|
11943
11970
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
11944
|
-
* @version 212.
|
|
11971
|
+
* @version 212.1.0
|
|
11945
11972
|
*/
|
|
11946
11973
|
|
|
11947
11974
|
/**
|
|
@@ -12877,7 +12904,7 @@ class CoachingApi {
|
|
|
12877
12904
|
/**
|
|
12878
12905
|
* Coaching service.
|
|
12879
12906
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
12880
|
-
* @version 212.
|
|
12907
|
+
* @version 212.1.0
|
|
12881
12908
|
*/
|
|
12882
12909
|
|
|
12883
12910
|
/**
|
|
@@ -13454,7 +13481,7 @@ class ContentManagementApi {
|
|
|
13454
13481
|
/**
|
|
13455
13482
|
* ContentManagement service.
|
|
13456
13483
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
13457
|
-
* @version 212.
|
|
13484
|
+
* @version 212.1.0
|
|
13458
13485
|
*/
|
|
13459
13486
|
|
|
13460
13487
|
/**
|
|
@@ -14535,7 +14562,7 @@ class ConversationsApi {
|
|
|
14535
14562
|
/**
|
|
14536
14563
|
* Conversations service.
|
|
14537
14564
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
14538
|
-
* @version 212.
|
|
14565
|
+
* @version 212.1.0
|
|
14539
14566
|
*/
|
|
14540
14567
|
|
|
14541
14568
|
/**
|
|
@@ -21680,7 +21707,7 @@ class DataExtensionsApi {
|
|
|
21680
21707
|
/**
|
|
21681
21708
|
* DataExtensions service.
|
|
21682
21709
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
21683
|
-
* @version 212.
|
|
21710
|
+
* @version 212.1.0
|
|
21684
21711
|
*/
|
|
21685
21712
|
|
|
21686
21713
|
/**
|
|
@@ -21766,7 +21793,7 @@ class DataPrivacyApi {
|
|
|
21766
21793
|
/**
|
|
21767
21794
|
* DataPrivacy service.
|
|
21768
21795
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
21769
|
-
* @version 212.
|
|
21796
|
+
* @version 212.1.0
|
|
21770
21797
|
*/
|
|
21771
21798
|
|
|
21772
21799
|
/**
|
|
@@ -21936,7 +21963,7 @@ class DownloadsApi {
|
|
|
21936
21963
|
/**
|
|
21937
21964
|
* Downloads service.
|
|
21938
21965
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
21939
|
-
* @version 212.
|
|
21966
|
+
* @version 212.1.0
|
|
21940
21967
|
*/
|
|
21941
21968
|
|
|
21942
21969
|
/**
|
|
@@ -21988,7 +22015,7 @@ class EmailsApi {
|
|
|
21988
22015
|
/**
|
|
21989
22016
|
* Emails service.
|
|
21990
22017
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
21991
|
-
* @version 212.
|
|
22018
|
+
* @version 212.1.0
|
|
21992
22019
|
*/
|
|
21993
22020
|
|
|
21994
22021
|
/**
|
|
@@ -22053,7 +22080,7 @@ class EmployeeEngagementApi {
|
|
|
22053
22080
|
/**
|
|
22054
22081
|
* EmployeeEngagement service.
|
|
22055
22082
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
22056
|
-
* @version 212.
|
|
22083
|
+
* @version 212.1.0
|
|
22057
22084
|
*/
|
|
22058
22085
|
|
|
22059
22086
|
/**
|
|
@@ -22204,7 +22231,7 @@ class EventsApi {
|
|
|
22204
22231
|
/**
|
|
22205
22232
|
* Events service.
|
|
22206
22233
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
22207
|
-
* @version 212.
|
|
22234
|
+
* @version 212.1.0
|
|
22208
22235
|
*/
|
|
22209
22236
|
|
|
22210
22237
|
/**
|
|
@@ -22300,7 +22327,7 @@ class ExternalContactsApi {
|
|
|
22300
22327
|
/**
|
|
22301
22328
|
* ExternalContacts service.
|
|
22302
22329
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
22303
|
-
* @version 212.
|
|
22330
|
+
* @version 212.1.0
|
|
22304
22331
|
*/
|
|
22305
22332
|
|
|
22306
22333
|
/**
|
|
@@ -24865,7 +24892,7 @@ class FaxApi {
|
|
|
24865
24892
|
/**
|
|
24866
24893
|
* Fax service.
|
|
24867
24894
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
24868
|
-
* @version 212.
|
|
24895
|
+
* @version 212.1.0
|
|
24869
24896
|
*/
|
|
24870
24897
|
|
|
24871
24898
|
/**
|
|
@@ -25080,7 +25107,7 @@ class FlowsApi {
|
|
|
25080
25107
|
/**
|
|
25081
25108
|
* Flows service.
|
|
25082
25109
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
25083
|
-
* @version 212.
|
|
25110
|
+
* @version 212.1.0
|
|
25084
25111
|
*/
|
|
25085
25112
|
|
|
25086
25113
|
/**
|
|
@@ -25263,7 +25290,7 @@ class GamificationApi {
|
|
|
25263
25290
|
/**
|
|
25264
25291
|
* Gamification service.
|
|
25265
25292
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
25266
|
-
* @version 212.
|
|
25293
|
+
* @version 212.1.0
|
|
25267
25294
|
*/
|
|
25268
25295
|
|
|
25269
25296
|
/**
|
|
@@ -25602,6 +25629,62 @@ class GamificationApi {
|
|
|
25602
25629
|
);
|
|
25603
25630
|
}
|
|
25604
25631
|
|
|
25632
|
+
/**
|
|
25633
|
+
* Get insights rankings
|
|
25634
|
+
*
|
|
25635
|
+
* @param {Object} filterType Filter type for the query request.
|
|
25636
|
+
* @param {String} filterId ID for the filter type.
|
|
25637
|
+
* @param {Object} granularity Granularity
|
|
25638
|
+
* @param {String} comparativePeriodStartWorkday The start work day of comparative period. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
25639
|
+
* @param {String} primaryPeriodStartWorkday The start work day of primary period. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
25640
|
+
* @param {Object} sortKey Sort key
|
|
25641
|
+
* @param {Object} opts Optional parameters
|
|
25642
|
+
* @param {String} opts.sortMetricId Sort Metric Id
|
|
25643
|
+
* @param {Number} opts.sectionSize The number of top and bottom users to return before ties
|
|
25644
|
+
* @param {String} opts.userIds A list of up to 100 comma-separated user Ids
|
|
25645
|
+
*/
|
|
25646
|
+
getGamificationInsightsRankings(filterType, filterId, granularity, comparativePeriodStartWorkday, primaryPeriodStartWorkday, sortKey, opts) {
|
|
25647
|
+
opts = opts || {};
|
|
25648
|
+
|
|
25649
|
+
// verify the required parameter 'filterType' is set
|
|
25650
|
+
if (filterType === undefined || filterType === null) {
|
|
25651
|
+
throw 'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';
|
|
25652
|
+
}
|
|
25653
|
+
// verify the required parameter 'filterId' is set
|
|
25654
|
+
if (filterId === undefined || filterId === null) {
|
|
25655
|
+
throw 'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';
|
|
25656
|
+
}
|
|
25657
|
+
// verify the required parameter 'granularity' is set
|
|
25658
|
+
if (granularity === undefined || granularity === null) {
|
|
25659
|
+
throw 'Missing the required parameter "granularity" when calling getGamificationInsightsRankings';
|
|
25660
|
+
}
|
|
25661
|
+
// verify the required parameter 'comparativePeriodStartWorkday' is set
|
|
25662
|
+
if (comparativePeriodStartWorkday === undefined || comparativePeriodStartWorkday === null) {
|
|
25663
|
+
throw 'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsRankings';
|
|
25664
|
+
}
|
|
25665
|
+
// verify the required parameter 'primaryPeriodStartWorkday' is set
|
|
25666
|
+
if (primaryPeriodStartWorkday === undefined || primaryPeriodStartWorkday === null) {
|
|
25667
|
+
throw 'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsRankings';
|
|
25668
|
+
}
|
|
25669
|
+
// verify the required parameter 'sortKey' is set
|
|
25670
|
+
if (sortKey === undefined || sortKey === null) {
|
|
25671
|
+
throw 'Missing the required parameter "sortKey" when calling getGamificationInsightsRankings';
|
|
25672
|
+
}
|
|
25673
|
+
|
|
25674
|
+
return this.apiClient.callApi(
|
|
25675
|
+
'/api/v2/gamification/insights/rankings',
|
|
25676
|
+
'GET',
|
|
25677
|
+
{ },
|
|
25678
|
+
{ 'filterType': filterType,'filterId': filterId,'granularity': granularity,'comparativePeriodStartWorkday': comparativePeriodStartWorkday,'primaryPeriodStartWorkday': primaryPeriodStartWorkday,'sortKey': sortKey,'sortMetricId': opts['sortMetricId'],'sectionSize': opts['sectionSize'],'userIds': opts['userIds'] },
|
|
25679
|
+
{ },
|
|
25680
|
+
{ },
|
|
25681
|
+
null,
|
|
25682
|
+
['PureCloud OAuth'],
|
|
25683
|
+
['application/json'],
|
|
25684
|
+
['application/json']
|
|
25685
|
+
);
|
|
25686
|
+
}
|
|
25687
|
+
|
|
25605
25688
|
/**
|
|
25606
25689
|
* Get insights user trend for the current user
|
|
25607
25690
|
*
|
|
@@ -27349,7 +27432,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
27349
27432
|
/**
|
|
27350
27433
|
* GeneralDataProtectionRegulation service.
|
|
27351
27434
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
27352
|
-
* @version 212.
|
|
27435
|
+
* @version 212.1.0
|
|
27353
27436
|
*/
|
|
27354
27437
|
|
|
27355
27438
|
/**
|
|
@@ -27479,7 +27562,7 @@ class GeolocationApi {
|
|
|
27479
27562
|
/**
|
|
27480
27563
|
* Geolocation service.
|
|
27481
27564
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
27482
|
-
* @version 212.
|
|
27565
|
+
* @version 212.1.0
|
|
27483
27566
|
*/
|
|
27484
27567
|
|
|
27485
27568
|
/**
|
|
@@ -27610,7 +27693,7 @@ class GreetingsApi {
|
|
|
27610
27693
|
/**
|
|
27611
27694
|
* Greetings service.
|
|
27612
27695
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
27613
|
-
* @version 212.
|
|
27696
|
+
* @version 212.1.0
|
|
27614
27697
|
*/
|
|
27615
27698
|
|
|
27616
27699
|
/**
|
|
@@ -28065,7 +28148,7 @@ class GroupsApi {
|
|
|
28065
28148
|
/**
|
|
28066
28149
|
* Groups service.
|
|
28067
28150
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
28068
|
-
* @version 212.
|
|
28151
|
+
* @version 212.1.0
|
|
28069
28152
|
*/
|
|
28070
28153
|
|
|
28071
28154
|
/**
|
|
@@ -28584,7 +28667,7 @@ class IdentityProviderApi {
|
|
|
28584
28667
|
/**
|
|
28585
28668
|
* IdentityProvider service.
|
|
28586
28669
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
28587
|
-
* @version 212.
|
|
28670
|
+
* @version 212.1.0
|
|
28588
28671
|
*/
|
|
28589
28672
|
|
|
28590
28673
|
/**
|
|
@@ -29445,7 +29528,7 @@ class InfrastructureAsCodeApi {
|
|
|
29445
29528
|
/**
|
|
29446
29529
|
* InfrastructureAsCode service.
|
|
29447
29530
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
29448
|
-
* @version 212.
|
|
29531
|
+
* @version 212.1.0
|
|
29449
29532
|
*/
|
|
29450
29533
|
|
|
29451
29534
|
/**
|
|
@@ -29612,7 +29695,7 @@ class IntegrationsApi {
|
|
|
29612
29695
|
/**
|
|
29613
29696
|
* Integrations service.
|
|
29614
29697
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
29615
|
-
* @version 212.
|
|
29698
|
+
* @version 212.1.0
|
|
29616
29699
|
*/
|
|
29617
29700
|
|
|
29618
29701
|
/**
|
|
@@ -32054,7 +32137,7 @@ class JourneyApi {
|
|
|
32054
32137
|
/**
|
|
32055
32138
|
* Journey service.
|
|
32056
32139
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
32057
|
-
* @version 212.
|
|
32140
|
+
* @version 212.1.0
|
|
32058
32141
|
*/
|
|
32059
32142
|
|
|
32060
32143
|
/**
|
|
@@ -34019,7 +34102,7 @@ class KnowledgeApi {
|
|
|
34019
34102
|
/**
|
|
34020
34103
|
* Knowledge service.
|
|
34021
34104
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
34022
|
-
* @version 212.
|
|
34105
|
+
* @version 212.1.0
|
|
34023
34106
|
*/
|
|
34024
34107
|
|
|
34025
34108
|
/**
|
|
@@ -37895,7 +37978,7 @@ class LanguageUnderstandingApi {
|
|
|
37895
37978
|
/**
|
|
37896
37979
|
* LanguageUnderstanding service.
|
|
37897
37980
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
37898
|
-
* @version 212.
|
|
37981
|
+
* @version 212.1.0
|
|
37899
37982
|
*/
|
|
37900
37983
|
|
|
37901
37984
|
/**
|
|
@@ -38928,7 +39011,7 @@ class LanguagesApi {
|
|
|
38928
39011
|
/**
|
|
38929
39012
|
* Languages service.
|
|
38930
39013
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
38931
|
-
* @version 212.
|
|
39014
|
+
* @version 212.1.0
|
|
38932
39015
|
*/
|
|
38933
39016
|
|
|
38934
39017
|
/**
|
|
@@ -39150,7 +39233,7 @@ class LearningApi {
|
|
|
39150
39233
|
/**
|
|
39151
39234
|
* Learning service.
|
|
39152
39235
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
39153
|
-
* @version 212.
|
|
39236
|
+
* @version 212.1.0
|
|
39154
39237
|
*/
|
|
39155
39238
|
|
|
39156
39239
|
/**
|
|
@@ -40179,7 +40262,7 @@ class LicenseApi {
|
|
|
40179
40262
|
/**
|
|
40180
40263
|
* License service.
|
|
40181
40264
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
40182
|
-
* @version 212.
|
|
40265
|
+
* @version 212.1.0
|
|
40183
40266
|
*/
|
|
40184
40267
|
|
|
40185
40268
|
/**
|
|
@@ -40417,7 +40500,7 @@ class LocationsApi {
|
|
|
40417
40500
|
/**
|
|
40418
40501
|
* Locations service.
|
|
40419
40502
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
40420
|
-
* @version 212.
|
|
40503
|
+
* @version 212.1.0
|
|
40421
40504
|
*/
|
|
40422
40505
|
|
|
40423
40506
|
/**
|
|
@@ -40653,7 +40736,7 @@ class LogCaptureApi {
|
|
|
40653
40736
|
/**
|
|
40654
40737
|
* LogCapture service.
|
|
40655
40738
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
40656
|
-
* @version 212.
|
|
40739
|
+
* @version 212.1.0
|
|
40657
40740
|
*/
|
|
40658
40741
|
|
|
40659
40742
|
/**
|
|
@@ -40853,7 +40936,7 @@ class MessagingApi {
|
|
|
40853
40936
|
/**
|
|
40854
40937
|
* Messaging service.
|
|
40855
40938
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
40856
|
-
* @version 212.
|
|
40939
|
+
* @version 212.1.0
|
|
40857
40940
|
*/
|
|
40858
40941
|
|
|
40859
40942
|
/**
|
|
@@ -41212,7 +41295,7 @@ class MobileDevicesApi {
|
|
|
41212
41295
|
/**
|
|
41213
41296
|
* MobileDevices service.
|
|
41214
41297
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
41215
|
-
* @version 212.
|
|
41298
|
+
* @version 212.1.0
|
|
41216
41299
|
*/
|
|
41217
41300
|
|
|
41218
41301
|
/**
|
|
@@ -41363,7 +41446,7 @@ class NotificationsApi {
|
|
|
41363
41446
|
/**
|
|
41364
41447
|
* Notifications service.
|
|
41365
41448
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
41366
|
-
* @version 212.
|
|
41449
|
+
* @version 212.1.0
|
|
41367
41450
|
*/
|
|
41368
41451
|
|
|
41369
41452
|
/**
|
|
@@ -41596,7 +41679,7 @@ class OAuthApi {
|
|
|
41596
41679
|
/**
|
|
41597
41680
|
* OAuth service.
|
|
41598
41681
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
41599
|
-
* @version 212.
|
|
41682
|
+
* @version 212.1.0
|
|
41600
41683
|
*/
|
|
41601
41684
|
|
|
41602
41685
|
/**
|
|
@@ -41962,7 +42045,7 @@ class ObjectsApi {
|
|
|
41962
42045
|
/**
|
|
41963
42046
|
* Objects service.
|
|
41964
42047
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
41965
|
-
* @version 212.
|
|
42048
|
+
* @version 212.1.0
|
|
41966
42049
|
*/
|
|
41967
42050
|
|
|
41968
42051
|
/**
|
|
@@ -42232,7 +42315,7 @@ class OperationalEventsApi {
|
|
|
42232
42315
|
/**
|
|
42233
42316
|
* OperationalEvents service.
|
|
42234
42317
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
42235
|
-
* @version 212.
|
|
42318
|
+
* @version 212.1.0
|
|
42236
42319
|
*/
|
|
42237
42320
|
|
|
42238
42321
|
/**
|
|
@@ -42349,7 +42432,7 @@ class OrganizationApi {
|
|
|
42349
42432
|
/**
|
|
42350
42433
|
* Organization service.
|
|
42351
42434
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
42352
|
-
* @version 212.
|
|
42435
|
+
* @version 212.1.0
|
|
42353
42436
|
*/
|
|
42354
42437
|
|
|
42355
42438
|
/**
|
|
@@ -42891,7 +42974,7 @@ class OrganizationAuthorizationApi {
|
|
|
42891
42974
|
/**
|
|
42892
42975
|
* OrganizationAuthorization service.
|
|
42893
42976
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
42894
|
-
* @version 212.
|
|
42977
|
+
* @version 212.1.0
|
|
42895
42978
|
*/
|
|
42896
42979
|
|
|
42897
42980
|
/**
|
|
@@ -44285,7 +44368,7 @@ class OutboundApi {
|
|
|
44285
44368
|
/**
|
|
44286
44369
|
* Outbound service.
|
|
44287
44370
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
44288
|
-
* @version 212.
|
|
44371
|
+
* @version 212.1.0
|
|
44289
44372
|
*/
|
|
44290
44373
|
|
|
44291
44374
|
/**
|
|
@@ -48832,7 +48915,7 @@ class PresenceApi {
|
|
|
48832
48915
|
/**
|
|
48833
48916
|
* Presence service.
|
|
48834
48917
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
48835
|
-
* @version 212.
|
|
48918
|
+
* @version 212.1.0
|
|
48836
48919
|
*/
|
|
48837
48920
|
|
|
48838
48921
|
/**
|
|
@@ -49576,7 +49659,7 @@ class ProcessAutomationApi {
|
|
|
49576
49659
|
/**
|
|
49577
49660
|
* ProcessAutomation service.
|
|
49578
49661
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
49579
|
-
* @version 212.
|
|
49662
|
+
* @version 212.1.0
|
|
49580
49663
|
*/
|
|
49581
49664
|
|
|
49582
49665
|
/**
|
|
@@ -49815,7 +49898,7 @@ class QualityApi {
|
|
|
49815
49898
|
/**
|
|
49816
49899
|
* Quality service.
|
|
49817
49900
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
49818
|
-
* @version 212.
|
|
49901
|
+
* @version 212.1.0
|
|
49819
49902
|
*/
|
|
49820
49903
|
|
|
49821
49904
|
/**
|
|
@@ -51603,7 +51686,7 @@ class RecordingApi {
|
|
|
51603
51686
|
/**
|
|
51604
51687
|
* Recording service.
|
|
51605
51688
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
51606
|
-
* @version 212.
|
|
51689
|
+
* @version 212.1.0
|
|
51607
51690
|
*/
|
|
51608
51691
|
|
|
51609
51692
|
/**
|
|
@@ -53262,7 +53345,7 @@ class ResponseManagementApi {
|
|
|
53262
53345
|
/**
|
|
53263
53346
|
* ResponseManagement service.
|
|
53264
53347
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
53265
|
-
* @version 212.
|
|
53348
|
+
* @version 212.1.0
|
|
53266
53349
|
*/
|
|
53267
53350
|
|
|
53268
53351
|
/**
|
|
@@ -53772,7 +53855,7 @@ class RoutingApi {
|
|
|
53772
53855
|
/**
|
|
53773
53856
|
* Routing service.
|
|
53774
53857
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
53775
|
-
* @version 212.
|
|
53858
|
+
* @version 212.1.0
|
|
53776
53859
|
*/
|
|
53777
53860
|
|
|
53778
53861
|
/**
|
|
@@ -57924,7 +58007,7 @@ class SCIMApi {
|
|
|
57924
58007
|
/**
|
|
57925
58008
|
* SCIM service.
|
|
57926
58009
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
57927
|
-
* @version 212.
|
|
58010
|
+
* @version 212.1.0
|
|
57928
58011
|
*/
|
|
57929
58012
|
|
|
57930
58013
|
/**
|
|
@@ -58801,7 +58884,7 @@ class ScreenRecordingApi {
|
|
|
58801
58884
|
/**
|
|
58802
58885
|
* ScreenRecording service.
|
|
58803
58886
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
58804
|
-
* @version 212.
|
|
58887
|
+
* @version 212.1.0
|
|
58805
58888
|
*/
|
|
58806
58889
|
|
|
58807
58890
|
/**
|
|
@@ -58846,7 +58929,7 @@ class ScriptsApi {
|
|
|
58846
58929
|
/**
|
|
58847
58930
|
* Scripts service.
|
|
58848
58931
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
58849
|
-
* @version 212.
|
|
58932
|
+
* @version 212.1.0
|
|
58850
58933
|
*/
|
|
58851
58934
|
|
|
58852
58935
|
/**
|
|
@@ -59290,7 +59373,7 @@ class SearchApi {
|
|
|
59290
59373
|
/**
|
|
59291
59374
|
* Search service.
|
|
59292
59375
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
59293
|
-
* @version 212.
|
|
59376
|
+
* @version 212.1.0
|
|
59294
59377
|
*/
|
|
59295
59378
|
|
|
59296
59379
|
/**
|
|
@@ -60033,7 +60116,7 @@ class SettingsApi {
|
|
|
60033
60116
|
/**
|
|
60034
60117
|
* Settings service.
|
|
60035
60118
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
60036
|
-
* @version 212.
|
|
60119
|
+
* @version 212.1.0
|
|
60037
60120
|
*/
|
|
60038
60121
|
|
|
60039
60122
|
/**
|
|
@@ -60253,7 +60336,7 @@ class SocialMediaApi {
|
|
|
60253
60336
|
/**
|
|
60254
60337
|
* SocialMedia service.
|
|
60255
60338
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
60256
|
-
* @version 212.
|
|
60339
|
+
* @version 212.1.0
|
|
60257
60340
|
*/
|
|
60258
60341
|
|
|
60259
60342
|
/**
|
|
@@ -61158,7 +61241,7 @@ class SpeechTextAnalyticsApi {
|
|
|
61158
61241
|
/**
|
|
61159
61242
|
* SpeechTextAnalytics service.
|
|
61160
61243
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
61161
|
-
* @version 212.
|
|
61244
|
+
* @version 212.1.0
|
|
61162
61245
|
*/
|
|
61163
61246
|
|
|
61164
61247
|
/**
|
|
@@ -62493,7 +62576,7 @@ class StationsApi {
|
|
|
62493
62576
|
/**
|
|
62494
62577
|
* Stations service.
|
|
62495
62578
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
62496
|
-
* @version 212.
|
|
62579
|
+
* @version 212.1.0
|
|
62497
62580
|
*/
|
|
62498
62581
|
|
|
62499
62582
|
/**
|
|
@@ -62595,7 +62678,7 @@ class SuggestApi {
|
|
|
62595
62678
|
/**
|
|
62596
62679
|
* Suggest service.
|
|
62597
62680
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
62598
|
-
* @version 212.
|
|
62681
|
+
* @version 212.1.0
|
|
62599
62682
|
*/
|
|
62600
62683
|
|
|
62601
62684
|
/**
|
|
@@ -62734,7 +62817,7 @@ class TaskManagementApi {
|
|
|
62734
62817
|
/**
|
|
62735
62818
|
* TaskManagement service.
|
|
62736
62819
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
62737
|
-
* @version 212.
|
|
62820
|
+
* @version 212.1.0
|
|
62738
62821
|
*/
|
|
62739
62822
|
|
|
62740
62823
|
/**
|
|
@@ -62799,6 +62882,56 @@ class TaskManagementApi {
|
|
|
62799
62882
|
);
|
|
62800
62883
|
}
|
|
62801
62884
|
|
|
62885
|
+
/**
|
|
62886
|
+
* Delete a bulk add job
|
|
62887
|
+
*
|
|
62888
|
+
* @param {String} bulkJobId Bulk job id
|
|
62889
|
+
*/
|
|
62890
|
+
deleteTaskmanagementWorkitemsBulkAddJob(bulkJobId) {
|
|
62891
|
+
// verify the required parameter 'bulkJobId' is set
|
|
62892
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
62893
|
+
throw 'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkAddJob';
|
|
62894
|
+
}
|
|
62895
|
+
|
|
62896
|
+
return this.apiClient.callApi(
|
|
62897
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
|
|
62898
|
+
'DELETE',
|
|
62899
|
+
{ 'bulkJobId': bulkJobId },
|
|
62900
|
+
{ },
|
|
62901
|
+
{ },
|
|
62902
|
+
{ },
|
|
62903
|
+
null,
|
|
62904
|
+
['PureCloud OAuth'],
|
|
62905
|
+
['application/json'],
|
|
62906
|
+
['application/json']
|
|
62907
|
+
);
|
|
62908
|
+
}
|
|
62909
|
+
|
|
62910
|
+
/**
|
|
62911
|
+
* Delete a Bulk job
|
|
62912
|
+
*
|
|
62913
|
+
* @param {String} bulkJobId Bulk job id
|
|
62914
|
+
*/
|
|
62915
|
+
deleteTaskmanagementWorkitemsBulkTerminateJob(bulkJobId) {
|
|
62916
|
+
// verify the required parameter 'bulkJobId' is set
|
|
62917
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
62918
|
+
throw 'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkTerminateJob';
|
|
62919
|
+
}
|
|
62920
|
+
|
|
62921
|
+
return this.apiClient.callApi(
|
|
62922
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
|
|
62923
|
+
'DELETE',
|
|
62924
|
+
{ 'bulkJobId': bulkJobId },
|
|
62925
|
+
{ },
|
|
62926
|
+
{ },
|
|
62927
|
+
{ },
|
|
62928
|
+
null,
|
|
62929
|
+
['PureCloud OAuth'],
|
|
62930
|
+
['application/json'],
|
|
62931
|
+
['application/json']
|
|
62932
|
+
);
|
|
62933
|
+
}
|
|
62934
|
+
|
|
62802
62935
|
/**
|
|
62803
62936
|
* Delete a schema
|
|
62804
62937
|
*
|
|
@@ -63282,6 +63415,133 @@ class TaskManagementApi {
|
|
|
63282
63415
|
);
|
|
63283
63416
|
}
|
|
63284
63417
|
|
|
63418
|
+
/**
|
|
63419
|
+
* Get the bulk add job associated with the job id.
|
|
63420
|
+
*
|
|
63421
|
+
* @param {String} bulkJobId Bulk job id
|
|
63422
|
+
*/
|
|
63423
|
+
getTaskmanagementWorkitemsBulkAddJob(bulkJobId) {
|
|
63424
|
+
// verify the required parameter 'bulkJobId' is set
|
|
63425
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
63426
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJob';
|
|
63427
|
+
}
|
|
63428
|
+
|
|
63429
|
+
return this.apiClient.callApi(
|
|
63430
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
|
|
63431
|
+
'GET',
|
|
63432
|
+
{ 'bulkJobId': bulkJobId },
|
|
63433
|
+
{ },
|
|
63434
|
+
{ },
|
|
63435
|
+
{ },
|
|
63436
|
+
null,
|
|
63437
|
+
['PureCloud OAuth'],
|
|
63438
|
+
['application/json'],
|
|
63439
|
+
['application/json']
|
|
63440
|
+
);
|
|
63441
|
+
}
|
|
63442
|
+
|
|
63443
|
+
/**
|
|
63444
|
+
* Get bulk add job results.
|
|
63445
|
+
*
|
|
63446
|
+
* @param {String} bulkJobId Bulk job id
|
|
63447
|
+
*/
|
|
63448
|
+
getTaskmanagementWorkitemsBulkAddJobResults(bulkJobId) {
|
|
63449
|
+
// verify the required parameter 'bulkJobId' is set
|
|
63450
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
63451
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJobResults';
|
|
63452
|
+
}
|
|
63453
|
+
|
|
63454
|
+
return this.apiClient.callApi(
|
|
63455
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}/results',
|
|
63456
|
+
'GET',
|
|
63457
|
+
{ 'bulkJobId': bulkJobId },
|
|
63458
|
+
{ },
|
|
63459
|
+
{ },
|
|
63460
|
+
{ },
|
|
63461
|
+
null,
|
|
63462
|
+
['PureCloud OAuth'],
|
|
63463
|
+
['application/json'],
|
|
63464
|
+
['application/json']
|
|
63465
|
+
);
|
|
63466
|
+
}
|
|
63467
|
+
|
|
63468
|
+
/**
|
|
63469
|
+
* Get bulk jobs created by the currently logged in user.
|
|
63470
|
+
*
|
|
63471
|
+
* @param {Object} opts Optional parameters
|
|
63472
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
63473
|
+
* @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
|
|
63474
|
+
* @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
|
|
63475
|
+
* @param {Object} opts.action The bulk job action.
|
|
63476
|
+
*/
|
|
63477
|
+
getTaskmanagementWorkitemsBulkJobsUsersMe(opts) {
|
|
63478
|
+
opts = opts || {};
|
|
63479
|
+
|
|
63480
|
+
|
|
63481
|
+
return this.apiClient.callApi(
|
|
63482
|
+
'/api/v2/taskmanagement/workitems/bulk/jobs/users/me',
|
|
63483
|
+
'GET',
|
|
63484
|
+
{ },
|
|
63485
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'action': opts['action'] },
|
|
63486
|
+
{ },
|
|
63487
|
+
{ },
|
|
63488
|
+
null,
|
|
63489
|
+
['PureCloud OAuth'],
|
|
63490
|
+
['application/json'],
|
|
63491
|
+
['application/json']
|
|
63492
|
+
);
|
|
63493
|
+
}
|
|
63494
|
+
|
|
63495
|
+
/**
|
|
63496
|
+
* Get the bulk job associated with the job id.
|
|
63497
|
+
*
|
|
63498
|
+
* @param {String} bulkJobId Bulk job id
|
|
63499
|
+
*/
|
|
63500
|
+
getTaskmanagementWorkitemsBulkTerminateJob(bulkJobId) {
|
|
63501
|
+
// verify the required parameter 'bulkJobId' is set
|
|
63502
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
63503
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJob';
|
|
63504
|
+
}
|
|
63505
|
+
|
|
63506
|
+
return this.apiClient.callApi(
|
|
63507
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
|
|
63508
|
+
'GET',
|
|
63509
|
+
{ 'bulkJobId': bulkJobId },
|
|
63510
|
+
{ },
|
|
63511
|
+
{ },
|
|
63512
|
+
{ },
|
|
63513
|
+
null,
|
|
63514
|
+
['PureCloud OAuth'],
|
|
63515
|
+
['application/json'],
|
|
63516
|
+
['application/json']
|
|
63517
|
+
);
|
|
63518
|
+
}
|
|
63519
|
+
|
|
63520
|
+
/**
|
|
63521
|
+
* Get bulk terminate job results.
|
|
63522
|
+
*
|
|
63523
|
+
* @param {String} bulkJobId Bulk job id
|
|
63524
|
+
*/
|
|
63525
|
+
getTaskmanagementWorkitemsBulkTerminateJobResults(bulkJobId) {
|
|
63526
|
+
// verify the required parameter 'bulkJobId' is set
|
|
63527
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
63528
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJobResults';
|
|
63529
|
+
}
|
|
63530
|
+
|
|
63531
|
+
return this.apiClient.callApi(
|
|
63532
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}/results',
|
|
63533
|
+
'GET',
|
|
63534
|
+
{ 'bulkJobId': bulkJobId },
|
|
63535
|
+
{ },
|
|
63536
|
+
{ },
|
|
63537
|
+
{ },
|
|
63538
|
+
null,
|
|
63539
|
+
['PureCloud OAuth'],
|
|
63540
|
+
['application/json'],
|
|
63541
|
+
['application/json']
|
|
63542
|
+
);
|
|
63543
|
+
}
|
|
63544
|
+
|
|
63285
63545
|
/**
|
|
63286
63546
|
* Get the workitem query job associated with the job id.
|
|
63287
63547
|
*
|
|
@@ -63947,6 +64207,66 @@ class TaskManagementApi {
|
|
|
63947
64207
|
);
|
|
63948
64208
|
}
|
|
63949
64209
|
|
|
64210
|
+
/**
|
|
64211
|
+
* Update workitem bulk add job.
|
|
64212
|
+
*
|
|
64213
|
+
* @param {String} bulkJobId Bulk job id
|
|
64214
|
+
* @param {Object} body Bulk add job update request
|
|
64215
|
+
*/
|
|
64216
|
+
patchTaskmanagementWorkitemsBulkAddJob(bulkJobId, body) {
|
|
64217
|
+
// verify the required parameter 'bulkJobId' is set
|
|
64218
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
64219
|
+
throw 'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';
|
|
64220
|
+
}
|
|
64221
|
+
// verify the required parameter 'body' is set
|
|
64222
|
+
if (body === undefined || body === null) {
|
|
64223
|
+
throw 'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkAddJob';
|
|
64224
|
+
}
|
|
64225
|
+
|
|
64226
|
+
return this.apiClient.callApi(
|
|
64227
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
|
|
64228
|
+
'PATCH',
|
|
64229
|
+
{ 'bulkJobId': bulkJobId },
|
|
64230
|
+
{ },
|
|
64231
|
+
{ },
|
|
64232
|
+
{ },
|
|
64233
|
+
body,
|
|
64234
|
+
['PureCloud OAuth'],
|
|
64235
|
+
['application/json'],
|
|
64236
|
+
['application/json']
|
|
64237
|
+
);
|
|
64238
|
+
}
|
|
64239
|
+
|
|
64240
|
+
/**
|
|
64241
|
+
* Update workitem bulk terminate job.
|
|
64242
|
+
*
|
|
64243
|
+
* @param {String} bulkJobId Bulk job id
|
|
64244
|
+
* @param {Object} body Bulk job update request
|
|
64245
|
+
*/
|
|
64246
|
+
patchTaskmanagementWorkitemsBulkTerminateJob(bulkJobId, body) {
|
|
64247
|
+
// verify the required parameter 'bulkJobId' is set
|
|
64248
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
64249
|
+
throw 'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';
|
|
64250
|
+
}
|
|
64251
|
+
// verify the required parameter 'body' is set
|
|
64252
|
+
if (body === undefined || body === null) {
|
|
64253
|
+
throw 'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkTerminateJob';
|
|
64254
|
+
}
|
|
64255
|
+
|
|
64256
|
+
return this.apiClient.callApi(
|
|
64257
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
|
|
64258
|
+
'PATCH',
|
|
64259
|
+
{ 'bulkJobId': bulkJobId },
|
|
64260
|
+
{ },
|
|
64261
|
+
{ },
|
|
64262
|
+
{ },
|
|
64263
|
+
body,
|
|
64264
|
+
['PureCloud OAuth'],
|
|
64265
|
+
['application/json'],
|
|
64266
|
+
['application/json']
|
|
64267
|
+
);
|
|
64268
|
+
}
|
|
64269
|
+
|
|
63950
64270
|
/**
|
|
63951
64271
|
* Update the attributes of a worktype
|
|
63952
64272
|
*
|
|
@@ -64271,6 +64591,56 @@ class TaskManagementApi {
|
|
|
64271
64591
|
);
|
|
64272
64592
|
}
|
|
64273
64593
|
|
|
64594
|
+
/**
|
|
64595
|
+
* Create a workitem bulk add job.
|
|
64596
|
+
*
|
|
64597
|
+
* @param {Object} body Bulk job definition.
|
|
64598
|
+
*/
|
|
64599
|
+
postTaskmanagementWorkitemsBulkAddJobs(body) {
|
|
64600
|
+
// verify the required parameter 'body' is set
|
|
64601
|
+
if (body === undefined || body === null) {
|
|
64602
|
+
throw 'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkAddJobs';
|
|
64603
|
+
}
|
|
64604
|
+
|
|
64605
|
+
return this.apiClient.callApi(
|
|
64606
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs',
|
|
64607
|
+
'POST',
|
|
64608
|
+
{ },
|
|
64609
|
+
{ },
|
|
64610
|
+
{ },
|
|
64611
|
+
{ },
|
|
64612
|
+
body,
|
|
64613
|
+
['PureCloud OAuth'],
|
|
64614
|
+
['application/json'],
|
|
64615
|
+
['application/json']
|
|
64616
|
+
);
|
|
64617
|
+
}
|
|
64618
|
+
|
|
64619
|
+
/**
|
|
64620
|
+
* Create a workitem bulk terminate job.
|
|
64621
|
+
*
|
|
64622
|
+
* @param {Object} body Bulk job definition.
|
|
64623
|
+
*/
|
|
64624
|
+
postTaskmanagementWorkitemsBulkTerminateJobs(body) {
|
|
64625
|
+
// verify the required parameter 'body' is set
|
|
64626
|
+
if (body === undefined || body === null) {
|
|
64627
|
+
throw 'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkTerminateJobs';
|
|
64628
|
+
}
|
|
64629
|
+
|
|
64630
|
+
return this.apiClient.callApi(
|
|
64631
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs',
|
|
64632
|
+
'POST',
|
|
64633
|
+
{ },
|
|
64634
|
+
{ },
|
|
64635
|
+
{ },
|
|
64636
|
+
{ },
|
|
64637
|
+
body,
|
|
64638
|
+
['PureCloud OAuth'],
|
|
64639
|
+
['application/json'],
|
|
64640
|
+
['application/json']
|
|
64641
|
+
);
|
|
64642
|
+
}
|
|
64643
|
+
|
|
64274
64644
|
/**
|
|
64275
64645
|
* Query for workitems
|
|
64276
64646
|
* This query requires at least one EQ filter on the workbinId, assigneeId or typeId attributes.
|
|
@@ -64553,7 +64923,7 @@ class TeamsApi {
|
|
|
64553
64923
|
/**
|
|
64554
64924
|
* Teams service.
|
|
64555
64925
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
64556
|
-
* @version 212.
|
|
64926
|
+
* @version 212.1.0
|
|
64557
64927
|
*/
|
|
64558
64928
|
|
|
64559
64929
|
/**
|
|
@@ -64858,7 +65228,7 @@ class TelephonyApi {
|
|
|
64858
65228
|
/**
|
|
64859
65229
|
* Telephony service.
|
|
64860
65230
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
64861
|
-
* @version 212.
|
|
65231
|
+
* @version 212.1.0
|
|
64862
65232
|
*/
|
|
64863
65233
|
|
|
64864
65234
|
/**
|
|
@@ -65040,7 +65410,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
65040
65410
|
/**
|
|
65041
65411
|
* TelephonyProvidersEdge service.
|
|
65042
65412
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
65043
|
-
* @version 212.
|
|
65413
|
+
* @version 212.1.0
|
|
65044
65414
|
*/
|
|
65045
65415
|
|
|
65046
65416
|
/**
|
|
@@ -68491,7 +68861,7 @@ class TextbotsApi {
|
|
|
68491
68861
|
/**
|
|
68492
68862
|
* Textbots service.
|
|
68493
68863
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
68494
|
-
* @version 212.
|
|
68864
|
+
* @version 212.1.0
|
|
68495
68865
|
*/
|
|
68496
68866
|
|
|
68497
68867
|
/**
|
|
@@ -68619,7 +68989,7 @@ class TokensApi {
|
|
|
68619
68989
|
/**
|
|
68620
68990
|
* Tokens service.
|
|
68621
68991
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
68622
|
-
* @version 212.
|
|
68992
|
+
* @version 212.1.0
|
|
68623
68993
|
*/
|
|
68624
68994
|
|
|
68625
68995
|
/**
|
|
@@ -68773,7 +69143,7 @@ class UploadsApi {
|
|
|
68773
69143
|
/**
|
|
68774
69144
|
* Uploads service.
|
|
68775
69145
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
68776
|
-
* @version 212.
|
|
69146
|
+
* @version 212.1.0
|
|
68777
69147
|
*/
|
|
68778
69148
|
|
|
68779
69149
|
/**
|
|
@@ -69042,7 +69412,7 @@ class UsageApi {
|
|
|
69042
69412
|
/**
|
|
69043
69413
|
* Usage service.
|
|
69044
69414
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
69045
|
-
* @version 212.
|
|
69415
|
+
* @version 212.1.0
|
|
69046
69416
|
*/
|
|
69047
69417
|
|
|
69048
69418
|
/**
|
|
@@ -69257,7 +69627,7 @@ class UserRecordingsApi {
|
|
|
69257
69627
|
/**
|
|
69258
69628
|
* UserRecordings service.
|
|
69259
69629
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
69260
|
-
* @version 212.
|
|
69630
|
+
* @version 212.1.0
|
|
69261
69631
|
*/
|
|
69262
69632
|
|
|
69263
69633
|
/**
|
|
@@ -69472,7 +69842,7 @@ class UsersApi {
|
|
|
69472
69842
|
/**
|
|
69473
69843
|
* Users service.
|
|
69474
69844
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
69475
|
-
* @version 212.
|
|
69845
|
+
* @version 212.1.0
|
|
69476
69846
|
*/
|
|
69477
69847
|
|
|
69478
69848
|
/**
|
|
@@ -72301,7 +72671,7 @@ class UtilitiesApi {
|
|
|
72301
72671
|
/**
|
|
72302
72672
|
* Utilities service.
|
|
72303
72673
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
72304
|
-
* @version 212.
|
|
72674
|
+
* @version 212.1.0
|
|
72305
72675
|
*/
|
|
72306
72676
|
|
|
72307
72677
|
/**
|
|
@@ -72412,7 +72782,7 @@ class VoicemailApi {
|
|
|
72412
72782
|
/**
|
|
72413
72783
|
* Voicemail service.
|
|
72414
72784
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
72415
|
-
* @version 212.
|
|
72785
|
+
* @version 212.1.0
|
|
72416
72786
|
*/
|
|
72417
72787
|
|
|
72418
72788
|
/**
|
|
@@ -73134,7 +73504,7 @@ class WebChatApi {
|
|
|
73134
73504
|
/**
|
|
73135
73505
|
* WebChat service.
|
|
73136
73506
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
73137
|
-
* @version 212.
|
|
73507
|
+
* @version 212.1.0
|
|
73138
73508
|
*/
|
|
73139
73509
|
|
|
73140
73510
|
/**
|
|
@@ -73685,7 +74055,7 @@ class WebDeploymentsApi {
|
|
|
73685
74055
|
/**
|
|
73686
74056
|
* WebDeployments service.
|
|
73687
74057
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
73688
|
-
* @version 212.
|
|
74058
|
+
* @version 212.1.0
|
|
73689
74059
|
*/
|
|
73690
74060
|
|
|
73691
74061
|
/**
|
|
@@ -74212,7 +74582,7 @@ class WebMessagingApi {
|
|
|
74212
74582
|
/**
|
|
74213
74583
|
* WebMessaging service.
|
|
74214
74584
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
74215
|
-
* @version 212.
|
|
74585
|
+
* @version 212.1.0
|
|
74216
74586
|
*/
|
|
74217
74587
|
|
|
74218
74588
|
/**
|
|
@@ -74258,7 +74628,7 @@ class WidgetsApi {
|
|
|
74258
74628
|
/**
|
|
74259
74629
|
* Widgets service.
|
|
74260
74630
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
74261
|
-
* @version 212.
|
|
74631
|
+
* @version 212.1.0
|
|
74262
74632
|
*/
|
|
74263
74633
|
|
|
74264
74634
|
/**
|
|
@@ -74404,7 +74774,7 @@ class WorkforceManagementApi {
|
|
|
74404
74774
|
/**
|
|
74405
74775
|
* WorkforceManagement service.
|
|
74406
74776
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
74407
|
-
* @version 212.
|
|
74777
|
+
* @version 212.1.0
|
|
74408
74778
|
*/
|
|
74409
74779
|
|
|
74410
74780
|
/**
|
|
@@ -75645,6 +76015,99 @@ class WorkforceManagementApi {
|
|
|
75645
76015
|
);
|
|
75646
76016
|
}
|
|
75647
76017
|
|
|
76018
|
+
/**
|
|
76019
|
+
* Get the latest session for the business unit ID
|
|
76020
|
+
*
|
|
76021
|
+
* @param {String} businessUnitId
|
|
76022
|
+
* getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
76023
|
+
*/
|
|
76024
|
+
getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(businessUnitId) {
|
|
76025
|
+
// verify the required parameter 'businessUnitId' is set
|
|
76026
|
+
if (businessUnitId === undefined || businessUnitId === null) {
|
|
76027
|
+
throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession';
|
|
76028
|
+
}
|
|
76029
|
+
|
|
76030
|
+
return this.apiClient.callApi(
|
|
76031
|
+
'/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session',
|
|
76032
|
+
'GET',
|
|
76033
|
+
{ 'businessUnitId': businessUnitId },
|
|
76034
|
+
{ },
|
|
76035
|
+
{ },
|
|
76036
|
+
{ },
|
|
76037
|
+
null,
|
|
76038
|
+
['PureCloud OAuth'],
|
|
76039
|
+
['application/json'],
|
|
76040
|
+
['application/json']
|
|
76041
|
+
);
|
|
76042
|
+
}
|
|
76043
|
+
|
|
76044
|
+
/**
|
|
76045
|
+
* Get the session details for the session ID
|
|
76046
|
+
*
|
|
76047
|
+
* @param {String} businessUnitId
|
|
76048
|
+
* @param {String} sessionId
|
|
76049
|
+
* getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
76050
|
+
*/
|
|
76051
|
+
getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(businessUnitId, sessionId) {
|
|
76052
|
+
// verify the required parameter 'businessUnitId' is set
|
|
76053
|
+
if (businessUnitId === undefined || businessUnitId === null) {
|
|
76054
|
+
throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';
|
|
76055
|
+
}
|
|
76056
|
+
// verify the required parameter 'sessionId' is set
|
|
76057
|
+
if (sessionId === undefined || sessionId === null) {
|
|
76058
|
+
throw 'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';
|
|
76059
|
+
}
|
|
76060
|
+
|
|
76061
|
+
return this.apiClient.callApi(
|
|
76062
|
+
'/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/{sessionId}',
|
|
76063
|
+
'GET',
|
|
76064
|
+
{ 'businessUnitId': businessUnitId,'sessionId': sessionId },
|
|
76065
|
+
{ },
|
|
76066
|
+
{ },
|
|
76067
|
+
{ },
|
|
76068
|
+
null,
|
|
76069
|
+
['PureCloud OAuth'],
|
|
76070
|
+
['application/json'],
|
|
76071
|
+
['application/json']
|
|
76072
|
+
);
|
|
76073
|
+
}
|
|
76074
|
+
|
|
76075
|
+
/**
|
|
76076
|
+
* Get the snapshot details for the snapshot ID
|
|
76077
|
+
*
|
|
76078
|
+
* @param {String} businessUnitId
|
|
76079
|
+
* @param {String} sessionId
|
|
76080
|
+
* @param {String} snapshotId
|
|
76081
|
+
* getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
76082
|
+
*/
|
|
76083
|
+
getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(businessUnitId, sessionId, snapshotId) {
|
|
76084
|
+
// verify the required parameter 'businessUnitId' is set
|
|
76085
|
+
if (businessUnitId === undefined || businessUnitId === null) {
|
|
76086
|
+
throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
|
|
76087
|
+
}
|
|
76088
|
+
// verify the required parameter 'sessionId' is set
|
|
76089
|
+
if (sessionId === undefined || sessionId === null) {
|
|
76090
|
+
throw 'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
|
|
76091
|
+
}
|
|
76092
|
+
// verify the required parameter 'snapshotId' is set
|
|
76093
|
+
if (snapshotId === undefined || snapshotId === null) {
|
|
76094
|
+
throw 'Missing the required parameter "snapshotId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
|
|
76095
|
+
}
|
|
76096
|
+
|
|
76097
|
+
return this.apiClient.callApi(
|
|
76098
|
+
'/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/{sessionId}/snapshot/{snapshotId}',
|
|
76099
|
+
'GET',
|
|
76100
|
+
{ 'businessUnitId': businessUnitId,'sessionId': sessionId,'snapshotId': snapshotId },
|
|
76101
|
+
{ },
|
|
76102
|
+
{ },
|
|
76103
|
+
{ },
|
|
76104
|
+
null,
|
|
76105
|
+
['PureCloud OAuth'],
|
|
76106
|
+
['application/json'],
|
|
76107
|
+
['application/json']
|
|
76108
|
+
);
|
|
76109
|
+
}
|
|
76110
|
+
|
|
75648
76111
|
/**
|
|
75649
76112
|
* Get all authorized management units in the business unit
|
|
75650
76113
|
*
|
|
@@ -81610,7 +82073,7 @@ class WorkforceManagementApi {
|
|
|
81610
82073
|
* </pre>
|
|
81611
82074
|
* </p>
|
|
81612
82075
|
* @module purecloud-platform-client-v2/index
|
|
81613
|
-
* @version 212.
|
|
82076
|
+
* @version 212.1.0
|
|
81614
82077
|
*/
|
|
81615
82078
|
class platformClient {
|
|
81616
82079
|
constructor() {
|
|
@@ -82029,8 +82492,10 @@ class platformClient {
|
|
|
82029
82492
|
* @property {module:purecloud-platform-client-v2/MyPureCloudRegionHost}
|
|
82030
82493
|
*/
|
|
82031
82494
|
this.PureCloudRegionHosts = PureCloudRegionHosts;
|
|
82032
|
-
|
|
82033
|
-
|
|
82495
|
+
|
|
82496
|
+
this.AbstractHttpClient = AbstractHttpClient;
|
|
82497
|
+
this.DefaultHttpClient = DefaultHttpClient;
|
|
82498
|
+
this.HttpRequestOptions = HttpRequestOptions;
|
|
82034
82499
|
}
|
|
82035
82500
|
}
|
|
82036
82501
|
|