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,8 +1,7 @@
|
|
|
1
|
-
define(['
|
|
1
|
+
define(['axios', 'qs'], (function (axios, qs) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
4
4
|
|
|
5
|
-
var https__default = /*#__PURE__*/_interopDefaultLegacy(https);
|
|
6
5
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
7
6
|
var qs__default = /*#__PURE__*/_interopDefaultLegacy(qs);
|
|
8
7
|
|
|
@@ -24,6 +23,138 @@ define(['https', 'axios', 'qs'], (function (https, axios, qs) { 'use strict';
|
|
|
24
23
|
eu_central_2: 'euc2.pure.cloud',
|
|
25
24
|
};
|
|
26
25
|
|
|
26
|
+
class AbstractHttpClient {
|
|
27
|
+
|
|
28
|
+
constructor() {
|
|
29
|
+
this.timeout = 16000;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
setTimeout(timeout) {
|
|
33
|
+
if (timeout === null || timeout === undefined || typeof timeout !== 'number') {
|
|
34
|
+
throw new Error("The 'timeout' property must be a number");
|
|
35
|
+
}
|
|
36
|
+
this.timeout = timeout;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
setHttpsAgent(httpsAgent) {
|
|
40
|
+
if (httpsAgent && typeof httpsAgent !== 'object') {
|
|
41
|
+
throw new Error("The 'httpsAgent' property must be an object");
|
|
42
|
+
}
|
|
43
|
+
this.httpsAgent = httpsAgent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
request(httpRequestOptions) {
|
|
47
|
+
throw new Error("method must be implemented");
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
class HttpRequestOptions {
|
|
52
|
+
|
|
53
|
+
constructor(url, method, headers, params, data, timeout) {
|
|
54
|
+
this.setUrl(url);
|
|
55
|
+
this.setMethod(method);
|
|
56
|
+
if (headers) {
|
|
57
|
+
this.setHeaders(headers);
|
|
58
|
+
}
|
|
59
|
+
if (params) {
|
|
60
|
+
this.setParams(params);
|
|
61
|
+
}
|
|
62
|
+
if (data) {
|
|
63
|
+
this.setData(data);
|
|
64
|
+
}
|
|
65
|
+
if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
|
|
66
|
+
else this.timeout = 16000;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Mandatory fields with validation
|
|
70
|
+
setUrl(url) {
|
|
71
|
+
if (!url) throw new Error("The 'url' property is required");
|
|
72
|
+
this.url = url;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
setMethod(method) {
|
|
76
|
+
const validMethods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD'];
|
|
77
|
+
if (!method || !validMethods.includes(method.toUpperCase())) {
|
|
78
|
+
throw new Error("The 'method' property is invalid or missing");
|
|
79
|
+
}
|
|
80
|
+
this.method = method.toUpperCase();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
setData(data) {
|
|
84
|
+
if (data === undefined || data === null) {
|
|
85
|
+
throw new Error("The 'data' property is required");
|
|
86
|
+
}
|
|
87
|
+
this.data = data;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Optional fields
|
|
91
|
+
setParams(params) {
|
|
92
|
+
if (params && typeof params !== 'object') {
|
|
93
|
+
throw new Error("The 'params' property must be an object");
|
|
94
|
+
}
|
|
95
|
+
this.params = params;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Optional fields
|
|
99
|
+
setHeaders(headers) {
|
|
100
|
+
if (headers && typeof headers !== 'object') {
|
|
101
|
+
throw new Error("The 'headers' property must be an object");
|
|
102
|
+
}
|
|
103
|
+
this.headers = headers;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
setTimeout(timeout) {
|
|
107
|
+
if (timeout === undefined || timeout === null || typeof timeout !== 'number') {
|
|
108
|
+
throw new Error("The 'timeout' property must be a number");
|
|
109
|
+
}
|
|
110
|
+
this.timeout = timeout;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Default client is Axios
|
|
116
|
+
class DefaultHttpClient extends AbstractHttpClient{
|
|
117
|
+
|
|
118
|
+
constructor(timeout, httpsAgent) {
|
|
119
|
+
super();
|
|
120
|
+
if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
|
|
121
|
+
else this.timeout = 16000;
|
|
122
|
+
if (httpsAgent !== null && httpsAgent !== undefined) this.setHttpsAgent(httpsAgent);
|
|
123
|
+
else this.httpsAgent;
|
|
124
|
+
this._axiosInstance = axios__default["default"].create({});
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
request(httpRequestOptions) {
|
|
128
|
+
if(!(httpRequestOptions instanceof HttpRequestOptions)) {
|
|
129
|
+
throw new Error(`httpRequestOptions must be instance of HttpRequestOptions `);
|
|
130
|
+
}
|
|
131
|
+
const config = this.toAxiosConfig(httpRequestOptions);
|
|
132
|
+
return this._axiosInstance.request(config);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Method to generate Axios-compatible config
|
|
136
|
+
toAxiosConfig(httpRequestOptions) {
|
|
137
|
+
if (!httpRequestOptions.url || !httpRequestOptions.method) {
|
|
138
|
+
throw new Error(
|
|
139
|
+
"Mandatory fields 'url' and 'method' must be set before making a request"
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
var config = {
|
|
144
|
+
url: httpRequestOptions.url,
|
|
145
|
+
method: httpRequestOptions.method
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
if (httpRequestOptions.params) config.params = httpRequestOptions.params;
|
|
149
|
+
if (httpRequestOptions.headers) config.headers = httpRequestOptions.headers;
|
|
150
|
+
if(httpRequestOptions.data) config.data = httpRequestOptions.data;
|
|
151
|
+
if (this.timeout != null && this.timeout != undefined) config.timeout = this.timeout;
|
|
152
|
+
if (this.httpsAgent) config.httpsAgent = this.httpsAgent;
|
|
153
|
+
|
|
154
|
+
return config;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
27
158
|
const logLevels = {
|
|
28
159
|
levels: {
|
|
29
160
|
none: 0,
|
|
@@ -484,141 +615,9 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
484
615
|
}
|
|
485
616
|
}
|
|
486
617
|
|
|
487
|
-
class AbstractHttpClient {
|
|
488
|
-
|
|
489
|
-
constructor() {
|
|
490
|
-
this.timeout = 16000;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
setTimeout(timeout) {
|
|
494
|
-
if (timeout === null || timeout === undefined || typeof timeout !== 'number') {
|
|
495
|
-
throw new Error("The 'timeout' property must be a number");
|
|
496
|
-
}
|
|
497
|
-
this.timeout = timeout;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
setHttpsAgent(httpsAgent) {
|
|
501
|
-
if (httpsAgent && typeof httpsAgent !== 'object') {
|
|
502
|
-
throw new Error("The 'httpsAgent' property must be an object");
|
|
503
|
-
}
|
|
504
|
-
this.httpsAgent = httpsAgent;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
request(httpRequestOptions) {
|
|
508
|
-
throw new Error("method must be implemented");
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
class HttpRequestOptions {
|
|
513
|
-
|
|
514
|
-
constructor(url, method, headers, params, data, timeout) {
|
|
515
|
-
this.setUrl(url);
|
|
516
|
-
this.setMethod(method);
|
|
517
|
-
if (headers) {
|
|
518
|
-
this.setHeaders(headers);
|
|
519
|
-
}
|
|
520
|
-
if (params) {
|
|
521
|
-
this.setParams(params);
|
|
522
|
-
}
|
|
523
|
-
if (data) {
|
|
524
|
-
this.setData(data);
|
|
525
|
-
}
|
|
526
|
-
if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
|
|
527
|
-
else this.timeout = 16000;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
// Mandatory fields with validation
|
|
531
|
-
setUrl(url) {
|
|
532
|
-
if (!url) throw new Error("The 'url' property is required");
|
|
533
|
-
this.url = url;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
setMethod(method) {
|
|
537
|
-
const validMethods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD'];
|
|
538
|
-
if (!method || !validMethods.includes(method.toUpperCase())) {
|
|
539
|
-
throw new Error("The 'method' property is invalid or missing");
|
|
540
|
-
}
|
|
541
|
-
this.method = method.toUpperCase();
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
setData(data) {
|
|
545
|
-
if (data === undefined || data === null) {
|
|
546
|
-
throw new Error("The 'data' property is required");
|
|
547
|
-
}
|
|
548
|
-
this.data = data;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
// Optional fields
|
|
552
|
-
setParams(params) {
|
|
553
|
-
if (params && typeof params !== 'object') {
|
|
554
|
-
throw new Error("The 'params' property must be an object");
|
|
555
|
-
}
|
|
556
|
-
this.params = params;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
// Optional fields
|
|
560
|
-
setHeaders(headers) {
|
|
561
|
-
if (headers && typeof headers !== 'object') {
|
|
562
|
-
throw new Error("The 'headers' property must be an object");
|
|
563
|
-
}
|
|
564
|
-
this.headers = headers;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
setTimeout(timeout) {
|
|
568
|
-
if (timeout === undefined || timeout === null || typeof timeout !== 'number') {
|
|
569
|
-
throw new Error("The 'timeout' property must be a number");
|
|
570
|
-
}
|
|
571
|
-
this.timeout = timeout;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
// Default client is Axios
|
|
577
|
-
class DefaultHttpClient extends AbstractHttpClient{
|
|
578
|
-
|
|
579
|
-
constructor(timeout, httpsAgent) {
|
|
580
|
-
super();
|
|
581
|
-
if (timeout !== null && timeout !== undefined) this.setTimeout(timeout);
|
|
582
|
-
else this.timeout = 16000;
|
|
583
|
-
if (httpsAgent !== null && httpsAgent !== undefined) this.setHttpsAgent(httpsAgent);
|
|
584
|
-
else this.httpsAgent;
|
|
585
|
-
this._axiosInstance = axios__default["default"].create({});
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
request(httpRequestOptions) {
|
|
589
|
-
if(!(httpRequestOptions instanceof HttpRequestOptions)) {
|
|
590
|
-
throw new Error(`httpRequestOptions must be instance of HttpRequestOptions `);
|
|
591
|
-
}
|
|
592
|
-
const config = this.toAxiosConfig(httpRequestOptions);
|
|
593
|
-
return this._axiosInstance.request(config);
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
// Method to generate Axios-compatible config
|
|
597
|
-
toAxiosConfig(httpRequestOptions) {
|
|
598
|
-
if (!httpRequestOptions.url || !httpRequestOptions.method) {
|
|
599
|
-
throw new Error(
|
|
600
|
-
"Mandatory fields 'url' and 'method' must be set before making a request"
|
|
601
|
-
);
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
var config = {
|
|
605
|
-
url: httpRequestOptions.url,
|
|
606
|
-
method: httpRequestOptions.method
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
if (httpRequestOptions.params) config.params = httpRequestOptions.params;
|
|
610
|
-
if (httpRequestOptions.headers) config.headers = httpRequestOptions.headers;
|
|
611
|
-
if(httpRequestOptions.data) config.data = httpRequestOptions.data;
|
|
612
|
-
if (this.timeout != null && this.timeout != undefined) config.timeout = this.timeout;
|
|
613
|
-
if (this.httpsAgent) config.httpsAgent = this.httpsAgent;
|
|
614
|
-
|
|
615
|
-
return config;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
618
|
/**
|
|
620
619
|
* @module purecloud-platform-client-v2/ApiClient
|
|
621
|
-
* @version 212.
|
|
620
|
+
* @version 212.1.0
|
|
622
621
|
*/
|
|
623
622
|
class ApiClient {
|
|
624
623
|
/**
|
|
@@ -865,11 +864,11 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
865
864
|
|
|
866
865
|
agentOptions.rejectUnauthorized = true;
|
|
867
866
|
|
|
868
|
-
this.proxyAgent = new
|
|
867
|
+
this.proxyAgent = new require('https').Agent(agentOptions);
|
|
869
868
|
const httpClient = this.getHttpClient();
|
|
870
869
|
httpClient.setHttpsAgent(this.proxyAgent);
|
|
871
870
|
} else {
|
|
872
|
-
throw new Error("
|
|
871
|
+
throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.");
|
|
873
872
|
}
|
|
874
873
|
}
|
|
875
874
|
|
|
@@ -880,24 +879,28 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
880
879
|
* @param {string} caContent - content for public certs
|
|
881
880
|
*/
|
|
882
881
|
setMTLSContents(certContent, keyContent, caContent) {
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
882
|
+
if (typeof window === 'undefined') {
|
|
883
|
+
const agentOptions = {};
|
|
884
|
+
if (certContent) {
|
|
885
|
+
agentOptions.cert = certContent;
|
|
886
|
+
}
|
|
887
887
|
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
888
|
+
if (keyContent) {
|
|
889
|
+
agentOptions.key = keyContent;
|
|
890
|
+
}
|
|
891
891
|
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
892
|
+
if (caContent) {
|
|
893
|
+
agentOptions.ca = caContent;
|
|
894
|
+
}
|
|
895
895
|
|
|
896
|
-
|
|
896
|
+
agentOptions.rejectUnauthorized = true;
|
|
897
897
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
898
|
+
this.proxyAgent = new require('https').Agent(agentOptions);
|
|
899
|
+
const httpClient = this.getHttpClient();
|
|
900
|
+
httpClient.setHttpsAgent(this.proxyAgent);
|
|
901
|
+
} else {
|
|
902
|
+
throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.");
|
|
903
|
+
}
|
|
901
904
|
}
|
|
902
905
|
|
|
903
906
|
/**
|
|
@@ -2138,7 +2141,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
2138
2141
|
/**
|
|
2139
2142
|
* AgentAssistants service.
|
|
2140
2143
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
2141
|
-
* @version 212.
|
|
2144
|
+
* @version 212.1.0
|
|
2142
2145
|
*/
|
|
2143
2146
|
|
|
2144
2147
|
/**
|
|
@@ -2514,7 +2517,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
2514
2517
|
/**
|
|
2515
2518
|
* AgentCopilot service.
|
|
2516
2519
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
2517
|
-
* @version 212.
|
|
2520
|
+
* @version 212.1.0
|
|
2518
2521
|
*/
|
|
2519
2522
|
|
|
2520
2523
|
/**
|
|
@@ -2590,7 +2593,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
2590
2593
|
/**
|
|
2591
2594
|
* AgentUI service.
|
|
2592
2595
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
2593
|
-
* @version 212.
|
|
2596
|
+
* @version 212.1.0
|
|
2594
2597
|
*/
|
|
2595
2598
|
|
|
2596
2599
|
/**
|
|
@@ -2721,7 +2724,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
2721
2724
|
/**
|
|
2722
2725
|
* Alerting service.
|
|
2723
2726
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
2724
|
-
* @version 212.
|
|
2727
|
+
* @version 212.1.0
|
|
2725
2728
|
*/
|
|
2726
2729
|
|
|
2727
2730
|
/**
|
|
@@ -3382,7 +3385,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
3382
3385
|
/**
|
|
3383
3386
|
* Analytics service.
|
|
3384
3387
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
3385
|
-
* @version 212.
|
|
3388
|
+
* @version 212.1.0
|
|
3386
3389
|
*/
|
|
3387
3390
|
|
|
3388
3391
|
/**
|
|
@@ -5729,6 +5732,31 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
5729
5732
|
);
|
|
5730
5733
|
}
|
|
5731
5734
|
|
|
5735
|
+
/**
|
|
5736
|
+
* Query for resolution aggregates
|
|
5737
|
+
*
|
|
5738
|
+
* @param {Object} body query
|
|
5739
|
+
*/
|
|
5740
|
+
postAnalyticsResolutionsAggregatesQuery(body) {
|
|
5741
|
+
// verify the required parameter 'body' is set
|
|
5742
|
+
if (body === undefined || body === null) {
|
|
5743
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsResolutionsAggregatesQuery';
|
|
5744
|
+
}
|
|
5745
|
+
|
|
5746
|
+
return this.apiClient.callApi(
|
|
5747
|
+
'/api/v2/analytics/resolutions/aggregates/query',
|
|
5748
|
+
'POST',
|
|
5749
|
+
{ },
|
|
5750
|
+
{ },
|
|
5751
|
+
{ },
|
|
5752
|
+
{ },
|
|
5753
|
+
body,
|
|
5754
|
+
['PureCloud OAuth'],
|
|
5755
|
+
['application/json'],
|
|
5756
|
+
['application/json']
|
|
5757
|
+
);
|
|
5758
|
+
}
|
|
5759
|
+
|
|
5732
5760
|
/**
|
|
5733
5761
|
* Query for user activity observations
|
|
5734
5762
|
*
|
|
@@ -6181,7 +6209,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
6181
6209
|
/**
|
|
6182
6210
|
* Architect service.
|
|
6183
6211
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
6184
|
-
* @version 212.
|
|
6212
|
+
* @version 212.1.0
|
|
6185
6213
|
*/
|
|
6186
6214
|
|
|
6187
6215
|
/**
|
|
@@ -10303,7 +10331,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
10303
10331
|
/**
|
|
10304
10332
|
* Audit service.
|
|
10305
10333
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
10306
|
-
* @version 212.
|
|
10334
|
+
* @version 212.1.0
|
|
10307
10335
|
*/
|
|
10308
10336
|
|
|
10309
10337
|
/**
|
|
@@ -10504,7 +10532,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
10504
10532
|
/**
|
|
10505
10533
|
* Authorization service.
|
|
10506
10534
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
10507
|
-
* @version 212.
|
|
10535
|
+
* @version 212.1.0
|
|
10508
10536
|
*/
|
|
10509
10537
|
|
|
10510
10538
|
/**
|
|
@@ -11787,7 +11815,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
11787
11815
|
/**
|
|
11788
11816
|
* Billing service.
|
|
11789
11817
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
11790
|
-
* @version 212.
|
|
11818
|
+
* @version 212.1.0
|
|
11791
11819
|
*/
|
|
11792
11820
|
|
|
11793
11821
|
/**
|
|
@@ -11867,7 +11895,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
11867
11895
|
/**
|
|
11868
11896
|
* CarrierServices service.
|
|
11869
11897
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
11870
|
-
* @version 212.
|
|
11898
|
+
* @version 212.1.0
|
|
11871
11899
|
*/
|
|
11872
11900
|
|
|
11873
11901
|
/**
|
|
@@ -11937,7 +11965,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
11937
11965
|
/**
|
|
11938
11966
|
* Chat service.
|
|
11939
11967
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
11940
|
-
* @version 212.
|
|
11968
|
+
* @version 212.1.0
|
|
11941
11969
|
*/
|
|
11942
11970
|
|
|
11943
11971
|
/**
|
|
@@ -12873,7 +12901,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
12873
12901
|
/**
|
|
12874
12902
|
* Coaching service.
|
|
12875
12903
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
12876
|
-
* @version 212.
|
|
12904
|
+
* @version 212.1.0
|
|
12877
12905
|
*/
|
|
12878
12906
|
|
|
12879
12907
|
/**
|
|
@@ -13450,7 +13478,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
13450
13478
|
/**
|
|
13451
13479
|
* ContentManagement service.
|
|
13452
13480
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
13453
|
-
* @version 212.
|
|
13481
|
+
* @version 212.1.0
|
|
13454
13482
|
*/
|
|
13455
13483
|
|
|
13456
13484
|
/**
|
|
@@ -14531,7 +14559,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
14531
14559
|
/**
|
|
14532
14560
|
* Conversations service.
|
|
14533
14561
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
14534
|
-
* @version 212.
|
|
14562
|
+
* @version 212.1.0
|
|
14535
14563
|
*/
|
|
14536
14564
|
|
|
14537
14565
|
/**
|
|
@@ -21676,7 +21704,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
21676
21704
|
/**
|
|
21677
21705
|
* DataExtensions service.
|
|
21678
21706
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
21679
|
-
* @version 212.
|
|
21707
|
+
* @version 212.1.0
|
|
21680
21708
|
*/
|
|
21681
21709
|
|
|
21682
21710
|
/**
|
|
@@ -21762,7 +21790,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
21762
21790
|
/**
|
|
21763
21791
|
* DataPrivacy service.
|
|
21764
21792
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
21765
|
-
* @version 212.
|
|
21793
|
+
* @version 212.1.0
|
|
21766
21794
|
*/
|
|
21767
21795
|
|
|
21768
21796
|
/**
|
|
@@ -21932,7 +21960,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
21932
21960
|
/**
|
|
21933
21961
|
* Downloads service.
|
|
21934
21962
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
21935
|
-
* @version 212.
|
|
21963
|
+
* @version 212.1.0
|
|
21936
21964
|
*/
|
|
21937
21965
|
|
|
21938
21966
|
/**
|
|
@@ -21984,7 +22012,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
21984
22012
|
/**
|
|
21985
22013
|
* Emails service.
|
|
21986
22014
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
21987
|
-
* @version 212.
|
|
22015
|
+
* @version 212.1.0
|
|
21988
22016
|
*/
|
|
21989
22017
|
|
|
21990
22018
|
/**
|
|
@@ -22049,7 +22077,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
22049
22077
|
/**
|
|
22050
22078
|
* EmployeeEngagement service.
|
|
22051
22079
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
22052
|
-
* @version 212.
|
|
22080
|
+
* @version 212.1.0
|
|
22053
22081
|
*/
|
|
22054
22082
|
|
|
22055
22083
|
/**
|
|
@@ -22200,7 +22228,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
22200
22228
|
/**
|
|
22201
22229
|
* Events service.
|
|
22202
22230
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
22203
|
-
* @version 212.
|
|
22231
|
+
* @version 212.1.0
|
|
22204
22232
|
*/
|
|
22205
22233
|
|
|
22206
22234
|
/**
|
|
@@ -22296,7 +22324,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
22296
22324
|
/**
|
|
22297
22325
|
* ExternalContacts service.
|
|
22298
22326
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
22299
|
-
* @version 212.
|
|
22327
|
+
* @version 212.1.0
|
|
22300
22328
|
*/
|
|
22301
22329
|
|
|
22302
22330
|
/**
|
|
@@ -24861,7 +24889,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
24861
24889
|
/**
|
|
24862
24890
|
* Fax service.
|
|
24863
24891
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
24864
|
-
* @version 212.
|
|
24892
|
+
* @version 212.1.0
|
|
24865
24893
|
*/
|
|
24866
24894
|
|
|
24867
24895
|
/**
|
|
@@ -25076,7 +25104,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
25076
25104
|
/**
|
|
25077
25105
|
* Flows service.
|
|
25078
25106
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
25079
|
-
* @version 212.
|
|
25107
|
+
* @version 212.1.0
|
|
25080
25108
|
*/
|
|
25081
25109
|
|
|
25082
25110
|
/**
|
|
@@ -25259,7 +25287,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
25259
25287
|
/**
|
|
25260
25288
|
* Gamification service.
|
|
25261
25289
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
25262
|
-
* @version 212.
|
|
25290
|
+
* @version 212.1.0
|
|
25263
25291
|
*/
|
|
25264
25292
|
|
|
25265
25293
|
/**
|
|
@@ -25598,6 +25626,62 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
25598
25626
|
);
|
|
25599
25627
|
}
|
|
25600
25628
|
|
|
25629
|
+
/**
|
|
25630
|
+
* Get insights rankings
|
|
25631
|
+
*
|
|
25632
|
+
* @param {Object} filterType Filter type for the query request.
|
|
25633
|
+
* @param {String} filterId ID for the filter type.
|
|
25634
|
+
* @param {Object} granularity Granularity
|
|
25635
|
+
* @param {String} comparativePeriodStartWorkday The start work day of comparative period. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
25636
|
+
* @param {String} primaryPeriodStartWorkday The start work day of primary period. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
25637
|
+
* @param {Object} sortKey Sort key
|
|
25638
|
+
* @param {Object} opts Optional parameters
|
|
25639
|
+
* @param {String} opts.sortMetricId Sort Metric Id
|
|
25640
|
+
* @param {Number} opts.sectionSize The number of top and bottom users to return before ties
|
|
25641
|
+
* @param {String} opts.userIds A list of up to 100 comma-separated user Ids
|
|
25642
|
+
*/
|
|
25643
|
+
getGamificationInsightsRankings(filterType, filterId, granularity, comparativePeriodStartWorkday, primaryPeriodStartWorkday, sortKey, opts) {
|
|
25644
|
+
opts = opts || {};
|
|
25645
|
+
|
|
25646
|
+
// verify the required parameter 'filterType' is set
|
|
25647
|
+
if (filterType === undefined || filterType === null) {
|
|
25648
|
+
throw 'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';
|
|
25649
|
+
}
|
|
25650
|
+
// verify the required parameter 'filterId' is set
|
|
25651
|
+
if (filterId === undefined || filterId === null) {
|
|
25652
|
+
throw 'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';
|
|
25653
|
+
}
|
|
25654
|
+
// verify the required parameter 'granularity' is set
|
|
25655
|
+
if (granularity === undefined || granularity === null) {
|
|
25656
|
+
throw 'Missing the required parameter "granularity" when calling getGamificationInsightsRankings';
|
|
25657
|
+
}
|
|
25658
|
+
// verify the required parameter 'comparativePeriodStartWorkday' is set
|
|
25659
|
+
if (comparativePeriodStartWorkday === undefined || comparativePeriodStartWorkday === null) {
|
|
25660
|
+
throw 'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsRankings';
|
|
25661
|
+
}
|
|
25662
|
+
// verify the required parameter 'primaryPeriodStartWorkday' is set
|
|
25663
|
+
if (primaryPeriodStartWorkday === undefined || primaryPeriodStartWorkday === null) {
|
|
25664
|
+
throw 'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsRankings';
|
|
25665
|
+
}
|
|
25666
|
+
// verify the required parameter 'sortKey' is set
|
|
25667
|
+
if (sortKey === undefined || sortKey === null) {
|
|
25668
|
+
throw 'Missing the required parameter "sortKey" when calling getGamificationInsightsRankings';
|
|
25669
|
+
}
|
|
25670
|
+
|
|
25671
|
+
return this.apiClient.callApi(
|
|
25672
|
+
'/api/v2/gamification/insights/rankings',
|
|
25673
|
+
'GET',
|
|
25674
|
+
{ },
|
|
25675
|
+
{ 'filterType': filterType,'filterId': filterId,'granularity': granularity,'comparativePeriodStartWorkday': comparativePeriodStartWorkday,'primaryPeriodStartWorkday': primaryPeriodStartWorkday,'sortKey': sortKey,'sortMetricId': opts['sortMetricId'],'sectionSize': opts['sectionSize'],'userIds': opts['userIds'] },
|
|
25676
|
+
{ },
|
|
25677
|
+
{ },
|
|
25678
|
+
null,
|
|
25679
|
+
['PureCloud OAuth'],
|
|
25680
|
+
['application/json'],
|
|
25681
|
+
['application/json']
|
|
25682
|
+
);
|
|
25683
|
+
}
|
|
25684
|
+
|
|
25601
25685
|
/**
|
|
25602
25686
|
* Get insights user trend for the current user
|
|
25603
25687
|
*
|
|
@@ -27345,7 +27429,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
27345
27429
|
/**
|
|
27346
27430
|
* GeneralDataProtectionRegulation service.
|
|
27347
27431
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
27348
|
-
* @version 212.
|
|
27432
|
+
* @version 212.1.0
|
|
27349
27433
|
*/
|
|
27350
27434
|
|
|
27351
27435
|
/**
|
|
@@ -27475,7 +27559,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
27475
27559
|
/**
|
|
27476
27560
|
* Geolocation service.
|
|
27477
27561
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
27478
|
-
* @version 212.
|
|
27562
|
+
* @version 212.1.0
|
|
27479
27563
|
*/
|
|
27480
27564
|
|
|
27481
27565
|
/**
|
|
@@ -27606,7 +27690,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
27606
27690
|
/**
|
|
27607
27691
|
* Greetings service.
|
|
27608
27692
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
27609
|
-
* @version 212.
|
|
27693
|
+
* @version 212.1.0
|
|
27610
27694
|
*/
|
|
27611
27695
|
|
|
27612
27696
|
/**
|
|
@@ -28061,7 +28145,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
28061
28145
|
/**
|
|
28062
28146
|
* Groups service.
|
|
28063
28147
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
28064
|
-
* @version 212.
|
|
28148
|
+
* @version 212.1.0
|
|
28065
28149
|
*/
|
|
28066
28150
|
|
|
28067
28151
|
/**
|
|
@@ -28580,7 +28664,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
28580
28664
|
/**
|
|
28581
28665
|
* IdentityProvider service.
|
|
28582
28666
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
28583
|
-
* @version 212.
|
|
28667
|
+
* @version 212.1.0
|
|
28584
28668
|
*/
|
|
28585
28669
|
|
|
28586
28670
|
/**
|
|
@@ -29441,7 +29525,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
29441
29525
|
/**
|
|
29442
29526
|
* InfrastructureAsCode service.
|
|
29443
29527
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
29444
|
-
* @version 212.
|
|
29528
|
+
* @version 212.1.0
|
|
29445
29529
|
*/
|
|
29446
29530
|
|
|
29447
29531
|
/**
|
|
@@ -29608,7 +29692,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
29608
29692
|
/**
|
|
29609
29693
|
* Integrations service.
|
|
29610
29694
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
29611
|
-
* @version 212.
|
|
29695
|
+
* @version 212.1.0
|
|
29612
29696
|
*/
|
|
29613
29697
|
|
|
29614
29698
|
/**
|
|
@@ -32050,7 +32134,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
32050
32134
|
/**
|
|
32051
32135
|
* Journey service.
|
|
32052
32136
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
32053
|
-
* @version 212.
|
|
32137
|
+
* @version 212.1.0
|
|
32054
32138
|
*/
|
|
32055
32139
|
|
|
32056
32140
|
/**
|
|
@@ -34015,7 +34099,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
34015
34099
|
/**
|
|
34016
34100
|
* Knowledge service.
|
|
34017
34101
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
34018
|
-
* @version 212.
|
|
34102
|
+
* @version 212.1.0
|
|
34019
34103
|
*/
|
|
34020
34104
|
|
|
34021
34105
|
/**
|
|
@@ -37891,7 +37975,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
37891
37975
|
/**
|
|
37892
37976
|
* LanguageUnderstanding service.
|
|
37893
37977
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
37894
|
-
* @version 212.
|
|
37978
|
+
* @version 212.1.0
|
|
37895
37979
|
*/
|
|
37896
37980
|
|
|
37897
37981
|
/**
|
|
@@ -38924,7 +39008,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
38924
39008
|
/**
|
|
38925
39009
|
* Languages service.
|
|
38926
39010
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
38927
|
-
* @version 212.
|
|
39011
|
+
* @version 212.1.0
|
|
38928
39012
|
*/
|
|
38929
39013
|
|
|
38930
39014
|
/**
|
|
@@ -39146,7 +39230,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
39146
39230
|
/**
|
|
39147
39231
|
* Learning service.
|
|
39148
39232
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
39149
|
-
* @version 212.
|
|
39233
|
+
* @version 212.1.0
|
|
39150
39234
|
*/
|
|
39151
39235
|
|
|
39152
39236
|
/**
|
|
@@ -40175,7 +40259,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
40175
40259
|
/**
|
|
40176
40260
|
* License service.
|
|
40177
40261
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
40178
|
-
* @version 212.
|
|
40262
|
+
* @version 212.1.0
|
|
40179
40263
|
*/
|
|
40180
40264
|
|
|
40181
40265
|
/**
|
|
@@ -40413,7 +40497,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
40413
40497
|
/**
|
|
40414
40498
|
* Locations service.
|
|
40415
40499
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
40416
|
-
* @version 212.
|
|
40500
|
+
* @version 212.1.0
|
|
40417
40501
|
*/
|
|
40418
40502
|
|
|
40419
40503
|
/**
|
|
@@ -40649,7 +40733,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
40649
40733
|
/**
|
|
40650
40734
|
* LogCapture service.
|
|
40651
40735
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
40652
|
-
* @version 212.
|
|
40736
|
+
* @version 212.1.0
|
|
40653
40737
|
*/
|
|
40654
40738
|
|
|
40655
40739
|
/**
|
|
@@ -40849,7 +40933,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
40849
40933
|
/**
|
|
40850
40934
|
* Messaging service.
|
|
40851
40935
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
40852
|
-
* @version 212.
|
|
40936
|
+
* @version 212.1.0
|
|
40853
40937
|
*/
|
|
40854
40938
|
|
|
40855
40939
|
/**
|
|
@@ -41208,7 +41292,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
41208
41292
|
/**
|
|
41209
41293
|
* MobileDevices service.
|
|
41210
41294
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
41211
|
-
* @version 212.
|
|
41295
|
+
* @version 212.1.0
|
|
41212
41296
|
*/
|
|
41213
41297
|
|
|
41214
41298
|
/**
|
|
@@ -41359,7 +41443,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
41359
41443
|
/**
|
|
41360
41444
|
* Notifications service.
|
|
41361
41445
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
41362
|
-
* @version 212.
|
|
41446
|
+
* @version 212.1.0
|
|
41363
41447
|
*/
|
|
41364
41448
|
|
|
41365
41449
|
/**
|
|
@@ -41592,7 +41676,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
41592
41676
|
/**
|
|
41593
41677
|
* OAuth service.
|
|
41594
41678
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
41595
|
-
* @version 212.
|
|
41679
|
+
* @version 212.1.0
|
|
41596
41680
|
*/
|
|
41597
41681
|
|
|
41598
41682
|
/**
|
|
@@ -41958,7 +42042,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
41958
42042
|
/**
|
|
41959
42043
|
* Objects service.
|
|
41960
42044
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
41961
|
-
* @version 212.
|
|
42045
|
+
* @version 212.1.0
|
|
41962
42046
|
*/
|
|
41963
42047
|
|
|
41964
42048
|
/**
|
|
@@ -42228,7 +42312,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
42228
42312
|
/**
|
|
42229
42313
|
* OperationalEvents service.
|
|
42230
42314
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
42231
|
-
* @version 212.
|
|
42315
|
+
* @version 212.1.0
|
|
42232
42316
|
*/
|
|
42233
42317
|
|
|
42234
42318
|
/**
|
|
@@ -42345,7 +42429,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
42345
42429
|
/**
|
|
42346
42430
|
* Organization service.
|
|
42347
42431
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
42348
|
-
* @version 212.
|
|
42432
|
+
* @version 212.1.0
|
|
42349
42433
|
*/
|
|
42350
42434
|
|
|
42351
42435
|
/**
|
|
@@ -42887,7 +42971,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
42887
42971
|
/**
|
|
42888
42972
|
* OrganizationAuthorization service.
|
|
42889
42973
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
42890
|
-
* @version 212.
|
|
42974
|
+
* @version 212.1.0
|
|
42891
42975
|
*/
|
|
42892
42976
|
|
|
42893
42977
|
/**
|
|
@@ -44281,7 +44365,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
44281
44365
|
/**
|
|
44282
44366
|
* Outbound service.
|
|
44283
44367
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
44284
|
-
* @version 212.
|
|
44368
|
+
* @version 212.1.0
|
|
44285
44369
|
*/
|
|
44286
44370
|
|
|
44287
44371
|
/**
|
|
@@ -48828,7 +48912,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
48828
48912
|
/**
|
|
48829
48913
|
* Presence service.
|
|
48830
48914
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
48831
|
-
* @version 212.
|
|
48915
|
+
* @version 212.1.0
|
|
48832
48916
|
*/
|
|
48833
48917
|
|
|
48834
48918
|
/**
|
|
@@ -49572,7 +49656,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
49572
49656
|
/**
|
|
49573
49657
|
* ProcessAutomation service.
|
|
49574
49658
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
49575
|
-
* @version 212.
|
|
49659
|
+
* @version 212.1.0
|
|
49576
49660
|
*/
|
|
49577
49661
|
|
|
49578
49662
|
/**
|
|
@@ -49811,7 +49895,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
49811
49895
|
/**
|
|
49812
49896
|
* Quality service.
|
|
49813
49897
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
49814
|
-
* @version 212.
|
|
49898
|
+
* @version 212.1.0
|
|
49815
49899
|
*/
|
|
49816
49900
|
|
|
49817
49901
|
/**
|
|
@@ -51599,7 +51683,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
51599
51683
|
/**
|
|
51600
51684
|
* Recording service.
|
|
51601
51685
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
51602
|
-
* @version 212.
|
|
51686
|
+
* @version 212.1.0
|
|
51603
51687
|
*/
|
|
51604
51688
|
|
|
51605
51689
|
/**
|
|
@@ -53258,7 +53342,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
53258
53342
|
/**
|
|
53259
53343
|
* ResponseManagement service.
|
|
53260
53344
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
53261
|
-
* @version 212.
|
|
53345
|
+
* @version 212.1.0
|
|
53262
53346
|
*/
|
|
53263
53347
|
|
|
53264
53348
|
/**
|
|
@@ -53768,7 +53852,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
53768
53852
|
/**
|
|
53769
53853
|
* Routing service.
|
|
53770
53854
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
53771
|
-
* @version 212.
|
|
53855
|
+
* @version 212.1.0
|
|
53772
53856
|
*/
|
|
53773
53857
|
|
|
53774
53858
|
/**
|
|
@@ -57920,7 +58004,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
57920
58004
|
/**
|
|
57921
58005
|
* SCIM service.
|
|
57922
58006
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
57923
|
-
* @version 212.
|
|
58007
|
+
* @version 212.1.0
|
|
57924
58008
|
*/
|
|
57925
58009
|
|
|
57926
58010
|
/**
|
|
@@ -58797,7 +58881,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
58797
58881
|
/**
|
|
58798
58882
|
* ScreenRecording service.
|
|
58799
58883
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
58800
|
-
* @version 212.
|
|
58884
|
+
* @version 212.1.0
|
|
58801
58885
|
*/
|
|
58802
58886
|
|
|
58803
58887
|
/**
|
|
@@ -58842,7 +58926,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
58842
58926
|
/**
|
|
58843
58927
|
* Scripts service.
|
|
58844
58928
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
58845
|
-
* @version 212.
|
|
58929
|
+
* @version 212.1.0
|
|
58846
58930
|
*/
|
|
58847
58931
|
|
|
58848
58932
|
/**
|
|
@@ -59286,7 +59370,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
59286
59370
|
/**
|
|
59287
59371
|
* Search service.
|
|
59288
59372
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
59289
|
-
* @version 212.
|
|
59373
|
+
* @version 212.1.0
|
|
59290
59374
|
*/
|
|
59291
59375
|
|
|
59292
59376
|
/**
|
|
@@ -60029,7 +60113,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
60029
60113
|
/**
|
|
60030
60114
|
* Settings service.
|
|
60031
60115
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
60032
|
-
* @version 212.
|
|
60116
|
+
* @version 212.1.0
|
|
60033
60117
|
*/
|
|
60034
60118
|
|
|
60035
60119
|
/**
|
|
@@ -60249,7 +60333,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
60249
60333
|
/**
|
|
60250
60334
|
* SocialMedia service.
|
|
60251
60335
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
60252
|
-
* @version 212.
|
|
60336
|
+
* @version 212.1.0
|
|
60253
60337
|
*/
|
|
60254
60338
|
|
|
60255
60339
|
/**
|
|
@@ -61154,7 +61238,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
61154
61238
|
/**
|
|
61155
61239
|
* SpeechTextAnalytics service.
|
|
61156
61240
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
61157
|
-
* @version 212.
|
|
61241
|
+
* @version 212.1.0
|
|
61158
61242
|
*/
|
|
61159
61243
|
|
|
61160
61244
|
/**
|
|
@@ -62489,7 +62573,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
62489
62573
|
/**
|
|
62490
62574
|
* Stations service.
|
|
62491
62575
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
62492
|
-
* @version 212.
|
|
62576
|
+
* @version 212.1.0
|
|
62493
62577
|
*/
|
|
62494
62578
|
|
|
62495
62579
|
/**
|
|
@@ -62591,7 +62675,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
62591
62675
|
/**
|
|
62592
62676
|
* Suggest service.
|
|
62593
62677
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
62594
|
-
* @version 212.
|
|
62678
|
+
* @version 212.1.0
|
|
62595
62679
|
*/
|
|
62596
62680
|
|
|
62597
62681
|
/**
|
|
@@ -62730,7 +62814,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
62730
62814
|
/**
|
|
62731
62815
|
* TaskManagement service.
|
|
62732
62816
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
62733
|
-
* @version 212.
|
|
62817
|
+
* @version 212.1.0
|
|
62734
62818
|
*/
|
|
62735
62819
|
|
|
62736
62820
|
/**
|
|
@@ -62795,6 +62879,56 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
62795
62879
|
);
|
|
62796
62880
|
}
|
|
62797
62881
|
|
|
62882
|
+
/**
|
|
62883
|
+
* Delete a bulk add job
|
|
62884
|
+
*
|
|
62885
|
+
* @param {String} bulkJobId Bulk job id
|
|
62886
|
+
*/
|
|
62887
|
+
deleteTaskmanagementWorkitemsBulkAddJob(bulkJobId) {
|
|
62888
|
+
// verify the required parameter 'bulkJobId' is set
|
|
62889
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
62890
|
+
throw 'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkAddJob';
|
|
62891
|
+
}
|
|
62892
|
+
|
|
62893
|
+
return this.apiClient.callApi(
|
|
62894
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
|
|
62895
|
+
'DELETE',
|
|
62896
|
+
{ 'bulkJobId': bulkJobId },
|
|
62897
|
+
{ },
|
|
62898
|
+
{ },
|
|
62899
|
+
{ },
|
|
62900
|
+
null,
|
|
62901
|
+
['PureCloud OAuth'],
|
|
62902
|
+
['application/json'],
|
|
62903
|
+
['application/json']
|
|
62904
|
+
);
|
|
62905
|
+
}
|
|
62906
|
+
|
|
62907
|
+
/**
|
|
62908
|
+
* Delete a Bulk job
|
|
62909
|
+
*
|
|
62910
|
+
* @param {String} bulkJobId Bulk job id
|
|
62911
|
+
*/
|
|
62912
|
+
deleteTaskmanagementWorkitemsBulkTerminateJob(bulkJobId) {
|
|
62913
|
+
// verify the required parameter 'bulkJobId' is set
|
|
62914
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
62915
|
+
throw 'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkTerminateJob';
|
|
62916
|
+
}
|
|
62917
|
+
|
|
62918
|
+
return this.apiClient.callApi(
|
|
62919
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
|
|
62920
|
+
'DELETE',
|
|
62921
|
+
{ 'bulkJobId': bulkJobId },
|
|
62922
|
+
{ },
|
|
62923
|
+
{ },
|
|
62924
|
+
{ },
|
|
62925
|
+
null,
|
|
62926
|
+
['PureCloud OAuth'],
|
|
62927
|
+
['application/json'],
|
|
62928
|
+
['application/json']
|
|
62929
|
+
);
|
|
62930
|
+
}
|
|
62931
|
+
|
|
62798
62932
|
/**
|
|
62799
62933
|
* Delete a schema
|
|
62800
62934
|
*
|
|
@@ -63278,6 +63412,133 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
63278
63412
|
);
|
|
63279
63413
|
}
|
|
63280
63414
|
|
|
63415
|
+
/**
|
|
63416
|
+
* Get the bulk add job associated with the job id.
|
|
63417
|
+
*
|
|
63418
|
+
* @param {String} bulkJobId Bulk job id
|
|
63419
|
+
*/
|
|
63420
|
+
getTaskmanagementWorkitemsBulkAddJob(bulkJobId) {
|
|
63421
|
+
// verify the required parameter 'bulkJobId' is set
|
|
63422
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
63423
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJob';
|
|
63424
|
+
}
|
|
63425
|
+
|
|
63426
|
+
return this.apiClient.callApi(
|
|
63427
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
|
|
63428
|
+
'GET',
|
|
63429
|
+
{ 'bulkJobId': bulkJobId },
|
|
63430
|
+
{ },
|
|
63431
|
+
{ },
|
|
63432
|
+
{ },
|
|
63433
|
+
null,
|
|
63434
|
+
['PureCloud OAuth'],
|
|
63435
|
+
['application/json'],
|
|
63436
|
+
['application/json']
|
|
63437
|
+
);
|
|
63438
|
+
}
|
|
63439
|
+
|
|
63440
|
+
/**
|
|
63441
|
+
* Get bulk add job results.
|
|
63442
|
+
*
|
|
63443
|
+
* @param {String} bulkJobId Bulk job id
|
|
63444
|
+
*/
|
|
63445
|
+
getTaskmanagementWorkitemsBulkAddJobResults(bulkJobId) {
|
|
63446
|
+
// verify the required parameter 'bulkJobId' is set
|
|
63447
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
63448
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJobResults';
|
|
63449
|
+
}
|
|
63450
|
+
|
|
63451
|
+
return this.apiClient.callApi(
|
|
63452
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}/results',
|
|
63453
|
+
'GET',
|
|
63454
|
+
{ 'bulkJobId': bulkJobId },
|
|
63455
|
+
{ },
|
|
63456
|
+
{ },
|
|
63457
|
+
{ },
|
|
63458
|
+
null,
|
|
63459
|
+
['PureCloud OAuth'],
|
|
63460
|
+
['application/json'],
|
|
63461
|
+
['application/json']
|
|
63462
|
+
);
|
|
63463
|
+
}
|
|
63464
|
+
|
|
63465
|
+
/**
|
|
63466
|
+
* Get bulk jobs created by the currently logged in user.
|
|
63467
|
+
*
|
|
63468
|
+
* @param {Object} opts Optional parameters
|
|
63469
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
63470
|
+
* @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)
|
|
63471
|
+
* @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
|
|
63472
|
+
* @param {Object} opts.action The bulk job action.
|
|
63473
|
+
*/
|
|
63474
|
+
getTaskmanagementWorkitemsBulkJobsUsersMe(opts) {
|
|
63475
|
+
opts = opts || {};
|
|
63476
|
+
|
|
63477
|
+
|
|
63478
|
+
return this.apiClient.callApi(
|
|
63479
|
+
'/api/v2/taskmanagement/workitems/bulk/jobs/users/me',
|
|
63480
|
+
'GET',
|
|
63481
|
+
{ },
|
|
63482
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'action': opts['action'] },
|
|
63483
|
+
{ },
|
|
63484
|
+
{ },
|
|
63485
|
+
null,
|
|
63486
|
+
['PureCloud OAuth'],
|
|
63487
|
+
['application/json'],
|
|
63488
|
+
['application/json']
|
|
63489
|
+
);
|
|
63490
|
+
}
|
|
63491
|
+
|
|
63492
|
+
/**
|
|
63493
|
+
* Get the bulk job associated with the job id.
|
|
63494
|
+
*
|
|
63495
|
+
* @param {String} bulkJobId Bulk job id
|
|
63496
|
+
*/
|
|
63497
|
+
getTaskmanagementWorkitemsBulkTerminateJob(bulkJobId) {
|
|
63498
|
+
// verify the required parameter 'bulkJobId' is set
|
|
63499
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
63500
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJob';
|
|
63501
|
+
}
|
|
63502
|
+
|
|
63503
|
+
return this.apiClient.callApi(
|
|
63504
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
|
|
63505
|
+
'GET',
|
|
63506
|
+
{ 'bulkJobId': bulkJobId },
|
|
63507
|
+
{ },
|
|
63508
|
+
{ },
|
|
63509
|
+
{ },
|
|
63510
|
+
null,
|
|
63511
|
+
['PureCloud OAuth'],
|
|
63512
|
+
['application/json'],
|
|
63513
|
+
['application/json']
|
|
63514
|
+
);
|
|
63515
|
+
}
|
|
63516
|
+
|
|
63517
|
+
/**
|
|
63518
|
+
* Get bulk terminate job results.
|
|
63519
|
+
*
|
|
63520
|
+
* @param {String} bulkJobId Bulk job id
|
|
63521
|
+
*/
|
|
63522
|
+
getTaskmanagementWorkitemsBulkTerminateJobResults(bulkJobId) {
|
|
63523
|
+
// verify the required parameter 'bulkJobId' is set
|
|
63524
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
63525
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJobResults';
|
|
63526
|
+
}
|
|
63527
|
+
|
|
63528
|
+
return this.apiClient.callApi(
|
|
63529
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}/results',
|
|
63530
|
+
'GET',
|
|
63531
|
+
{ 'bulkJobId': bulkJobId },
|
|
63532
|
+
{ },
|
|
63533
|
+
{ },
|
|
63534
|
+
{ },
|
|
63535
|
+
null,
|
|
63536
|
+
['PureCloud OAuth'],
|
|
63537
|
+
['application/json'],
|
|
63538
|
+
['application/json']
|
|
63539
|
+
);
|
|
63540
|
+
}
|
|
63541
|
+
|
|
63281
63542
|
/**
|
|
63282
63543
|
* Get the workitem query job associated with the job id.
|
|
63283
63544
|
*
|
|
@@ -63943,6 +64204,66 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
63943
64204
|
);
|
|
63944
64205
|
}
|
|
63945
64206
|
|
|
64207
|
+
/**
|
|
64208
|
+
* Update workitem bulk add job.
|
|
64209
|
+
*
|
|
64210
|
+
* @param {String} bulkJobId Bulk job id
|
|
64211
|
+
* @param {Object} body Bulk add job update request
|
|
64212
|
+
*/
|
|
64213
|
+
patchTaskmanagementWorkitemsBulkAddJob(bulkJobId, body) {
|
|
64214
|
+
// verify the required parameter 'bulkJobId' is set
|
|
64215
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
64216
|
+
throw 'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';
|
|
64217
|
+
}
|
|
64218
|
+
// verify the required parameter 'body' is set
|
|
64219
|
+
if (body === undefined || body === null) {
|
|
64220
|
+
throw 'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkAddJob';
|
|
64221
|
+
}
|
|
64222
|
+
|
|
64223
|
+
return this.apiClient.callApi(
|
|
64224
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
|
|
64225
|
+
'PATCH',
|
|
64226
|
+
{ 'bulkJobId': bulkJobId },
|
|
64227
|
+
{ },
|
|
64228
|
+
{ },
|
|
64229
|
+
{ },
|
|
64230
|
+
body,
|
|
64231
|
+
['PureCloud OAuth'],
|
|
64232
|
+
['application/json'],
|
|
64233
|
+
['application/json']
|
|
64234
|
+
);
|
|
64235
|
+
}
|
|
64236
|
+
|
|
64237
|
+
/**
|
|
64238
|
+
* Update workitem bulk terminate job.
|
|
64239
|
+
*
|
|
64240
|
+
* @param {String} bulkJobId Bulk job id
|
|
64241
|
+
* @param {Object} body Bulk job update request
|
|
64242
|
+
*/
|
|
64243
|
+
patchTaskmanagementWorkitemsBulkTerminateJob(bulkJobId, body) {
|
|
64244
|
+
// verify the required parameter 'bulkJobId' is set
|
|
64245
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
64246
|
+
throw 'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';
|
|
64247
|
+
}
|
|
64248
|
+
// verify the required parameter 'body' is set
|
|
64249
|
+
if (body === undefined || body === null) {
|
|
64250
|
+
throw 'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkTerminateJob';
|
|
64251
|
+
}
|
|
64252
|
+
|
|
64253
|
+
return this.apiClient.callApi(
|
|
64254
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
|
|
64255
|
+
'PATCH',
|
|
64256
|
+
{ 'bulkJobId': bulkJobId },
|
|
64257
|
+
{ },
|
|
64258
|
+
{ },
|
|
64259
|
+
{ },
|
|
64260
|
+
body,
|
|
64261
|
+
['PureCloud OAuth'],
|
|
64262
|
+
['application/json'],
|
|
64263
|
+
['application/json']
|
|
64264
|
+
);
|
|
64265
|
+
}
|
|
64266
|
+
|
|
63946
64267
|
/**
|
|
63947
64268
|
* Update the attributes of a worktype
|
|
63948
64269
|
*
|
|
@@ -64267,6 +64588,56 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
64267
64588
|
);
|
|
64268
64589
|
}
|
|
64269
64590
|
|
|
64591
|
+
/**
|
|
64592
|
+
* Create a workitem bulk add job.
|
|
64593
|
+
*
|
|
64594
|
+
* @param {Object} body Bulk job definition.
|
|
64595
|
+
*/
|
|
64596
|
+
postTaskmanagementWorkitemsBulkAddJobs(body) {
|
|
64597
|
+
// verify the required parameter 'body' is set
|
|
64598
|
+
if (body === undefined || body === null) {
|
|
64599
|
+
throw 'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkAddJobs';
|
|
64600
|
+
}
|
|
64601
|
+
|
|
64602
|
+
return this.apiClient.callApi(
|
|
64603
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs',
|
|
64604
|
+
'POST',
|
|
64605
|
+
{ },
|
|
64606
|
+
{ },
|
|
64607
|
+
{ },
|
|
64608
|
+
{ },
|
|
64609
|
+
body,
|
|
64610
|
+
['PureCloud OAuth'],
|
|
64611
|
+
['application/json'],
|
|
64612
|
+
['application/json']
|
|
64613
|
+
);
|
|
64614
|
+
}
|
|
64615
|
+
|
|
64616
|
+
/**
|
|
64617
|
+
* Create a workitem bulk terminate job.
|
|
64618
|
+
*
|
|
64619
|
+
* @param {Object} body Bulk job definition.
|
|
64620
|
+
*/
|
|
64621
|
+
postTaskmanagementWorkitemsBulkTerminateJobs(body) {
|
|
64622
|
+
// verify the required parameter 'body' is set
|
|
64623
|
+
if (body === undefined || body === null) {
|
|
64624
|
+
throw 'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkTerminateJobs';
|
|
64625
|
+
}
|
|
64626
|
+
|
|
64627
|
+
return this.apiClient.callApi(
|
|
64628
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs',
|
|
64629
|
+
'POST',
|
|
64630
|
+
{ },
|
|
64631
|
+
{ },
|
|
64632
|
+
{ },
|
|
64633
|
+
{ },
|
|
64634
|
+
body,
|
|
64635
|
+
['PureCloud OAuth'],
|
|
64636
|
+
['application/json'],
|
|
64637
|
+
['application/json']
|
|
64638
|
+
);
|
|
64639
|
+
}
|
|
64640
|
+
|
|
64270
64641
|
/**
|
|
64271
64642
|
* Query for workitems
|
|
64272
64643
|
* This query requires at least one EQ filter on the workbinId, assigneeId or typeId attributes.
|
|
@@ -64549,7 +64920,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
64549
64920
|
/**
|
|
64550
64921
|
* Teams service.
|
|
64551
64922
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
64552
|
-
* @version 212.
|
|
64923
|
+
* @version 212.1.0
|
|
64553
64924
|
*/
|
|
64554
64925
|
|
|
64555
64926
|
/**
|
|
@@ -64854,7 +65225,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
64854
65225
|
/**
|
|
64855
65226
|
* Telephony service.
|
|
64856
65227
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
64857
|
-
* @version 212.
|
|
65228
|
+
* @version 212.1.0
|
|
64858
65229
|
*/
|
|
64859
65230
|
|
|
64860
65231
|
/**
|
|
@@ -65036,7 +65407,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
65036
65407
|
/**
|
|
65037
65408
|
* TelephonyProvidersEdge service.
|
|
65038
65409
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
65039
|
-
* @version 212.
|
|
65410
|
+
* @version 212.1.0
|
|
65040
65411
|
*/
|
|
65041
65412
|
|
|
65042
65413
|
/**
|
|
@@ -68487,7 +68858,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
68487
68858
|
/**
|
|
68488
68859
|
* Textbots service.
|
|
68489
68860
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
68490
|
-
* @version 212.
|
|
68861
|
+
* @version 212.1.0
|
|
68491
68862
|
*/
|
|
68492
68863
|
|
|
68493
68864
|
/**
|
|
@@ -68615,7 +68986,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
68615
68986
|
/**
|
|
68616
68987
|
* Tokens service.
|
|
68617
68988
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
68618
|
-
* @version 212.
|
|
68989
|
+
* @version 212.1.0
|
|
68619
68990
|
*/
|
|
68620
68991
|
|
|
68621
68992
|
/**
|
|
@@ -68769,7 +69140,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
68769
69140
|
/**
|
|
68770
69141
|
* Uploads service.
|
|
68771
69142
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
68772
|
-
* @version 212.
|
|
69143
|
+
* @version 212.1.0
|
|
68773
69144
|
*/
|
|
68774
69145
|
|
|
68775
69146
|
/**
|
|
@@ -69038,7 +69409,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
69038
69409
|
/**
|
|
69039
69410
|
* Usage service.
|
|
69040
69411
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
69041
|
-
* @version 212.
|
|
69412
|
+
* @version 212.1.0
|
|
69042
69413
|
*/
|
|
69043
69414
|
|
|
69044
69415
|
/**
|
|
@@ -69253,7 +69624,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
69253
69624
|
/**
|
|
69254
69625
|
* UserRecordings service.
|
|
69255
69626
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
69256
|
-
* @version 212.
|
|
69627
|
+
* @version 212.1.0
|
|
69257
69628
|
*/
|
|
69258
69629
|
|
|
69259
69630
|
/**
|
|
@@ -69468,7 +69839,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
69468
69839
|
/**
|
|
69469
69840
|
* Users service.
|
|
69470
69841
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
69471
|
-
* @version 212.
|
|
69842
|
+
* @version 212.1.0
|
|
69472
69843
|
*/
|
|
69473
69844
|
|
|
69474
69845
|
/**
|
|
@@ -72297,7 +72668,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
72297
72668
|
/**
|
|
72298
72669
|
* Utilities service.
|
|
72299
72670
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
72300
|
-
* @version 212.
|
|
72671
|
+
* @version 212.1.0
|
|
72301
72672
|
*/
|
|
72302
72673
|
|
|
72303
72674
|
/**
|
|
@@ -72408,7 +72779,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
72408
72779
|
/**
|
|
72409
72780
|
* Voicemail service.
|
|
72410
72781
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
72411
|
-
* @version 212.
|
|
72782
|
+
* @version 212.1.0
|
|
72412
72783
|
*/
|
|
72413
72784
|
|
|
72414
72785
|
/**
|
|
@@ -73130,7 +73501,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
73130
73501
|
/**
|
|
73131
73502
|
* WebChat service.
|
|
73132
73503
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
73133
|
-
* @version 212.
|
|
73504
|
+
* @version 212.1.0
|
|
73134
73505
|
*/
|
|
73135
73506
|
|
|
73136
73507
|
/**
|
|
@@ -73681,7 +74052,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
73681
74052
|
/**
|
|
73682
74053
|
* WebDeployments service.
|
|
73683
74054
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
73684
|
-
* @version 212.
|
|
74055
|
+
* @version 212.1.0
|
|
73685
74056
|
*/
|
|
73686
74057
|
|
|
73687
74058
|
/**
|
|
@@ -74208,7 +74579,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
74208
74579
|
/**
|
|
74209
74580
|
* WebMessaging service.
|
|
74210
74581
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
74211
|
-
* @version 212.
|
|
74582
|
+
* @version 212.1.0
|
|
74212
74583
|
*/
|
|
74213
74584
|
|
|
74214
74585
|
/**
|
|
@@ -74254,7 +74625,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
74254
74625
|
/**
|
|
74255
74626
|
* Widgets service.
|
|
74256
74627
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
74257
|
-
* @version 212.
|
|
74628
|
+
* @version 212.1.0
|
|
74258
74629
|
*/
|
|
74259
74630
|
|
|
74260
74631
|
/**
|
|
@@ -74400,7 +74771,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
74400
74771
|
/**
|
|
74401
74772
|
* WorkforceManagement service.
|
|
74402
74773
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
74403
|
-
* @version 212.
|
|
74774
|
+
* @version 212.1.0
|
|
74404
74775
|
*/
|
|
74405
74776
|
|
|
74406
74777
|
/**
|
|
@@ -75641,6 +76012,99 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
75641
76012
|
);
|
|
75642
76013
|
}
|
|
75643
76014
|
|
|
76015
|
+
/**
|
|
76016
|
+
* Get the latest session for the business unit ID
|
|
76017
|
+
*
|
|
76018
|
+
* @param {String} businessUnitId
|
|
76019
|
+
* getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
76020
|
+
*/
|
|
76021
|
+
getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(businessUnitId) {
|
|
76022
|
+
// verify the required parameter 'businessUnitId' is set
|
|
76023
|
+
if (businessUnitId === undefined || businessUnitId === null) {
|
|
76024
|
+
throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession';
|
|
76025
|
+
}
|
|
76026
|
+
|
|
76027
|
+
return this.apiClient.callApi(
|
|
76028
|
+
'/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session',
|
|
76029
|
+
'GET',
|
|
76030
|
+
{ 'businessUnitId': businessUnitId },
|
|
76031
|
+
{ },
|
|
76032
|
+
{ },
|
|
76033
|
+
{ },
|
|
76034
|
+
null,
|
|
76035
|
+
['PureCloud OAuth'],
|
|
76036
|
+
['application/json'],
|
|
76037
|
+
['application/json']
|
|
76038
|
+
);
|
|
76039
|
+
}
|
|
76040
|
+
|
|
76041
|
+
/**
|
|
76042
|
+
* Get the session details for the session ID
|
|
76043
|
+
*
|
|
76044
|
+
* @param {String} businessUnitId
|
|
76045
|
+
* @param {String} sessionId
|
|
76046
|
+
* getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
76047
|
+
*/
|
|
76048
|
+
getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(businessUnitId, sessionId) {
|
|
76049
|
+
// verify the required parameter 'businessUnitId' is set
|
|
76050
|
+
if (businessUnitId === undefined || businessUnitId === null) {
|
|
76051
|
+
throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';
|
|
76052
|
+
}
|
|
76053
|
+
// verify the required parameter 'sessionId' is set
|
|
76054
|
+
if (sessionId === undefined || sessionId === null) {
|
|
76055
|
+
throw 'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';
|
|
76056
|
+
}
|
|
76057
|
+
|
|
76058
|
+
return this.apiClient.callApi(
|
|
76059
|
+
'/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/{sessionId}',
|
|
76060
|
+
'GET',
|
|
76061
|
+
{ 'businessUnitId': businessUnitId,'sessionId': sessionId },
|
|
76062
|
+
{ },
|
|
76063
|
+
{ },
|
|
76064
|
+
{ },
|
|
76065
|
+
null,
|
|
76066
|
+
['PureCloud OAuth'],
|
|
76067
|
+
['application/json'],
|
|
76068
|
+
['application/json']
|
|
76069
|
+
);
|
|
76070
|
+
}
|
|
76071
|
+
|
|
76072
|
+
/**
|
|
76073
|
+
* Get the snapshot details for the snapshot ID
|
|
76074
|
+
*
|
|
76075
|
+
* @param {String} businessUnitId
|
|
76076
|
+
* @param {String} sessionId
|
|
76077
|
+
* @param {String} snapshotId
|
|
76078
|
+
* getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
76079
|
+
*/
|
|
76080
|
+
getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(businessUnitId, sessionId, snapshotId) {
|
|
76081
|
+
// verify the required parameter 'businessUnitId' is set
|
|
76082
|
+
if (businessUnitId === undefined || businessUnitId === null) {
|
|
76083
|
+
throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
|
|
76084
|
+
}
|
|
76085
|
+
// verify the required parameter 'sessionId' is set
|
|
76086
|
+
if (sessionId === undefined || sessionId === null) {
|
|
76087
|
+
throw 'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
|
|
76088
|
+
}
|
|
76089
|
+
// verify the required parameter 'snapshotId' is set
|
|
76090
|
+
if (snapshotId === undefined || snapshotId === null) {
|
|
76091
|
+
throw 'Missing the required parameter "snapshotId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
|
|
76092
|
+
}
|
|
76093
|
+
|
|
76094
|
+
return this.apiClient.callApi(
|
|
76095
|
+
'/api/v2/workforcemanagement/businessunits/{businessUnitId}/mainforecast/continuousforecast/session/{sessionId}/snapshot/{snapshotId}',
|
|
76096
|
+
'GET',
|
|
76097
|
+
{ 'businessUnitId': businessUnitId,'sessionId': sessionId,'snapshotId': snapshotId },
|
|
76098
|
+
{ },
|
|
76099
|
+
{ },
|
|
76100
|
+
{ },
|
|
76101
|
+
null,
|
|
76102
|
+
['PureCloud OAuth'],
|
|
76103
|
+
['application/json'],
|
|
76104
|
+
['application/json']
|
|
76105
|
+
);
|
|
76106
|
+
}
|
|
76107
|
+
|
|
75644
76108
|
/**
|
|
75645
76109
|
* Get all authorized management units in the business unit
|
|
75646
76110
|
*
|
|
@@ -81606,7 +82070,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
81606
82070
|
* </pre>
|
|
81607
82071
|
* </p>
|
|
81608
82072
|
* @module purecloud-platform-client-v2/index
|
|
81609
|
-
* @version 212.
|
|
82073
|
+
* @version 212.1.0
|
|
81610
82074
|
*/
|
|
81611
82075
|
class platformClient {
|
|
81612
82076
|
constructor() {
|
|
@@ -82025,8 +82489,10 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
82025
82489
|
* @property {module:purecloud-platform-client-v2/MyPureCloudRegionHost}
|
|
82026
82490
|
*/
|
|
82027
82491
|
this.PureCloudRegionHosts = PureCloudRegionHosts;
|
|
82028
|
-
|
|
82029
|
-
|
|
82492
|
+
|
|
82493
|
+
this.AbstractHttpClient = AbstractHttpClient;
|
|
82494
|
+
this.DefaultHttpClient = DefaultHttpClient;
|
|
82495
|
+
this.HttpRequestOptions = HttpRequestOptions;
|
|
82030
82496
|
}
|
|
82031
82497
|
}
|
|
82032
82498
|
|