purecloud-platform-client-v2 214.0.0 → 216.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -3
- package/dist/node/purecloud-platform-client-v2.js +649 -118
- package/dist/web-amd/purecloud-platform-client-v2.js +649 -118
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +272 -150
- package/dist/web-cjs/purecloud-platform-client-v2.js +283 -158
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +490 -255
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/AbstractHttpClient.js +29 -0
- package/src/purecloud-platform-client-v2/ApiClient.js +21 -1
- package/src/purecloud-platform-client-v2/DefaultHttpClient.js +41 -0
- 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 +1 -2
- 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 +379 -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 +9 -4
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +21 -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 -31
- 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 +3 -3
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +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 +70 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -49,6 +49,35 @@ class AbstractHttpClient {
|
|
|
49
49
|
request(httpRequestOptions) {
|
|
50
50
|
throw new Error("method must be implemented");
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
enableHooks() {
|
|
54
|
+
throw new Error("method must be implemented");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Set a PreHook function that modifies the request config before execution.
|
|
59
|
+
* @param {(config: object) => object | Promise<object> | void} hookFunction
|
|
60
|
+
*/
|
|
61
|
+
setPreHook(hookFunction) {
|
|
62
|
+
if (typeof hookFunction !== "function" || hookFunction.length !== 1) {
|
|
63
|
+
throw new Error("preHook must be a function that accepts (config)");
|
|
64
|
+
}
|
|
65
|
+
this.preHook = hookFunction;
|
|
66
|
+
this.enableHooks();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Set a PostHook function that processes the response or error after execution.
|
|
71
|
+
* @param {(response: object | null, error: Error | null) => object | Promise<object> | void} hookFunction
|
|
72
|
+
*/
|
|
73
|
+
setPostHook(hookFunction) {
|
|
74
|
+
if (typeof hookFunction !== "function" || hookFunction.length !== 1) {
|
|
75
|
+
throw new Error("postHook must be a function that accepts (response)");
|
|
76
|
+
}
|
|
77
|
+
this.postHook = hookFunction;
|
|
78
|
+
this.enableHooks();
|
|
79
|
+
}
|
|
80
|
+
|
|
52
81
|
}
|
|
53
82
|
|
|
54
83
|
class HttpRequestOptions {
|
|
@@ -127,6 +156,47 @@ class DefaultHttpClient extends AbstractHttpClient{
|
|
|
127
156
|
this._axiosInstance = axios__default["default"].create({});
|
|
128
157
|
}
|
|
129
158
|
|
|
159
|
+
|
|
160
|
+
enableHooks() {
|
|
161
|
+
if (this.preHook && typeof this.preHook === 'function') {
|
|
162
|
+
|
|
163
|
+
if (this.requestInterceptorId !== undefined) {
|
|
164
|
+
axios__default["default"].interceptors.request.eject(this.requestInterceptorId);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
this.requestInterceptorId = this._axiosInstance.interceptors.request.use(
|
|
168
|
+
async (config) => {
|
|
169
|
+
config = await this.preHook(config); // Call the custom pre-hook
|
|
170
|
+
return config
|
|
171
|
+
},
|
|
172
|
+
(error) => {
|
|
173
|
+
// Handle errors before the request is sent
|
|
174
|
+
console.error('Request Pre-Hook Error:', error.message);
|
|
175
|
+
return Promise.reject(error);
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (this.postHook && typeof this.postHook === 'function') {
|
|
181
|
+
// Response interceptor (for post-hooks)
|
|
182
|
+
if (this.responseInterceptorId !== undefined) {
|
|
183
|
+
axios__default["default"].interceptors.response.eject(this.responseInterceptorId);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
this.responseInterceptorId = this._axiosInstance.interceptors.response.use(
|
|
187
|
+
async (response) => {
|
|
188
|
+
response = await this.postHook(response); // Call the custom post-hook
|
|
189
|
+
return response
|
|
190
|
+
},
|
|
191
|
+
async (error) => {
|
|
192
|
+
console.error('Post-Hook: Response Error', error.message);
|
|
193
|
+
// Optionally call post-hook in case of errors
|
|
194
|
+
return Promise.reject(error);
|
|
195
|
+
}
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
130
200
|
request(httpRequestOptions) {
|
|
131
201
|
if(!(httpRequestOptions instanceof HttpRequestOptions)) {
|
|
132
202
|
throw new Error(`httpRequestOptions must be instance of HttpRequestOptions `);
|
|
@@ -620,7 +690,7 @@ class Configuration {
|
|
|
620
690
|
|
|
621
691
|
/**
|
|
622
692
|
* @module purecloud-platform-client-v2/ApiClient
|
|
623
|
-
* @version
|
|
693
|
+
* @version 216.0.0
|
|
624
694
|
*/
|
|
625
695
|
class ApiClient {
|
|
626
696
|
/**
|
|
@@ -875,6 +945,24 @@ class ApiClient {
|
|
|
875
945
|
}
|
|
876
946
|
}
|
|
877
947
|
|
|
948
|
+
/**
|
|
949
|
+
* @description Sets preHook functions for the httpClient
|
|
950
|
+
* @param {string} preHook - method definition for prehook
|
|
951
|
+
*/
|
|
952
|
+
setPreHook(preHook) {
|
|
953
|
+
const httpClient = this.getHttpClient();
|
|
954
|
+
httpClient.setPreHook(preHook);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* @description Sets postHook functions for the httpClient
|
|
959
|
+
* @param {string} postHook - method definition for posthook
|
|
960
|
+
*/
|
|
961
|
+
setPostHook(postHook) {
|
|
962
|
+
const httpClient = this.getHttpClient();
|
|
963
|
+
httpClient.setPostHook(postHook);
|
|
964
|
+
}
|
|
965
|
+
|
|
878
966
|
/**
|
|
879
967
|
* @description Sets the certificate content if MTLS authentication is needed
|
|
880
968
|
* @param {string} certContent - content for certs
|
|
@@ -906,6 +994,8 @@ class ApiClient {
|
|
|
906
994
|
}
|
|
907
995
|
}
|
|
908
996
|
|
|
997
|
+
|
|
998
|
+
|
|
909
999
|
/**
|
|
910
1000
|
* @description Sets the gateway used by the session
|
|
911
1001
|
* @param {object} gateway - Gateway Configuration interface
|
|
@@ -2144,7 +2234,7 @@ class AgentAssistantsApi {
|
|
|
2144
2234
|
/**
|
|
2145
2235
|
* AgentAssistants service.
|
|
2146
2236
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
2147
|
-
* @version
|
|
2237
|
+
* @version 216.0.0
|
|
2148
2238
|
*/
|
|
2149
2239
|
|
|
2150
2240
|
/**
|
|
@@ -2520,7 +2610,7 @@ class AgentCopilotApi {
|
|
|
2520
2610
|
/**
|
|
2521
2611
|
* AgentCopilot service.
|
|
2522
2612
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
2523
|
-
* @version
|
|
2613
|
+
* @version 216.0.0
|
|
2524
2614
|
*/
|
|
2525
2615
|
|
|
2526
2616
|
/**
|
|
@@ -2596,7 +2686,7 @@ class AgentUIApi {
|
|
|
2596
2686
|
/**
|
|
2597
2687
|
* AgentUI service.
|
|
2598
2688
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
2599
|
-
* @version
|
|
2689
|
+
* @version 216.0.0
|
|
2600
2690
|
*/
|
|
2601
2691
|
|
|
2602
2692
|
/**
|
|
@@ -2727,7 +2817,7 @@ class AlertingApi {
|
|
|
2727
2817
|
/**
|
|
2728
2818
|
* Alerting service.
|
|
2729
2819
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
2730
|
-
* @version
|
|
2820
|
+
* @version 216.0.0
|
|
2731
2821
|
*/
|
|
2732
2822
|
|
|
2733
2823
|
/**
|
|
@@ -3432,7 +3522,7 @@ class AnalyticsApi {
|
|
|
3432
3522
|
/**
|
|
3433
3523
|
* Analytics service.
|
|
3434
3524
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
3435
|
-
* @version
|
|
3525
|
+
* @version 216.0.0
|
|
3436
3526
|
*/
|
|
3437
3527
|
|
|
3438
3528
|
/**
|
|
@@ -5865,7 +5955,6 @@ class AnalyticsApi {
|
|
|
5865
5955
|
* Query for summary aggregates
|
|
5866
5956
|
*
|
|
5867
5957
|
* @param {Object} body query
|
|
5868
|
-
* postAnalyticsSummariesAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5869
5958
|
*/
|
|
5870
5959
|
postAnalyticsSummariesAggregatesQuery(body) {
|
|
5871
5960
|
// verify the required parameter 'body' is set
|
|
@@ -6257,7 +6346,7 @@ class ArchitectApi {
|
|
|
6257
6346
|
/**
|
|
6258
6347
|
* Architect service.
|
|
6259
6348
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
6260
|
-
* @version
|
|
6349
|
+
* @version 216.0.0
|
|
6261
6350
|
*/
|
|
6262
6351
|
|
|
6263
6352
|
/**
|
|
@@ -10379,7 +10468,7 @@ class AuditApi {
|
|
|
10379
10468
|
/**
|
|
10380
10469
|
* Audit service.
|
|
10381
10470
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
10382
|
-
* @version
|
|
10471
|
+
* @version 216.0.0
|
|
10383
10472
|
*/
|
|
10384
10473
|
|
|
10385
10474
|
/**
|
|
@@ -10580,7 +10669,7 @@ class AuthorizationApi {
|
|
|
10580
10669
|
/**
|
|
10581
10670
|
* Authorization service.
|
|
10582
10671
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
10583
|
-
* @version
|
|
10672
|
+
* @version 216.0.0
|
|
10584
10673
|
*/
|
|
10585
10674
|
|
|
10586
10675
|
/**
|
|
@@ -10624,6 +10713,37 @@ class AuthorizationApi {
|
|
|
10624
10713
|
);
|
|
10625
10714
|
}
|
|
10626
10715
|
|
|
10716
|
+
/**
|
|
10717
|
+
* Delete an access control policy
|
|
10718
|
+
*
|
|
10719
|
+
* @param {String} targetName The domain:entity:action target to which the policy is applied
|
|
10720
|
+
* @param {String} subjectId The ID of the subject to which the policy is applied
|
|
10721
|
+
* deleteAuthorizationPoliciesTargetSubjectSubjectId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
10722
|
+
*/
|
|
10723
|
+
deleteAuthorizationPoliciesTargetSubjectSubjectId(targetName, subjectId) {
|
|
10724
|
+
// verify the required parameter 'targetName' is set
|
|
10725
|
+
if (targetName === undefined || targetName === null) {
|
|
10726
|
+
throw 'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';
|
|
10727
|
+
}
|
|
10728
|
+
// verify the required parameter 'subjectId' is set
|
|
10729
|
+
if (subjectId === undefined || subjectId === null) {
|
|
10730
|
+
throw 'Missing the required parameter "subjectId" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';
|
|
10731
|
+
}
|
|
10732
|
+
|
|
10733
|
+
return this.apiClient.callApi(
|
|
10734
|
+
'/api/v2/authorization/policies/targets/{targetName}/subject/{subjectId}',
|
|
10735
|
+
'DELETE',
|
|
10736
|
+
{ 'targetName': targetName,'subjectId': subjectId },
|
|
10737
|
+
{ },
|
|
10738
|
+
{ },
|
|
10739
|
+
{ },
|
|
10740
|
+
null,
|
|
10741
|
+
['PureCloud OAuth'],
|
|
10742
|
+
['application/json'],
|
|
10743
|
+
['application/json']
|
|
10744
|
+
);
|
|
10745
|
+
}
|
|
10746
|
+
|
|
10627
10747
|
/**
|
|
10628
10748
|
* Delete an organization role.
|
|
10629
10749
|
*
|
|
@@ -10938,6 +11058,198 @@ class AuthorizationApi {
|
|
|
10938
11058
|
);
|
|
10939
11059
|
}
|
|
10940
11060
|
|
|
11061
|
+
/**
|
|
11062
|
+
* Get a page of access policies for an organization
|
|
11063
|
+
*
|
|
11064
|
+
* @param {Object} opts Optional parameters
|
|
11065
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
11066
|
+
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
|
|
11067
|
+
* getAuthorizationPolicies is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11068
|
+
*/
|
|
11069
|
+
getAuthorizationPolicies(opts) {
|
|
11070
|
+
opts = opts || {};
|
|
11071
|
+
|
|
11072
|
+
|
|
11073
|
+
return this.apiClient.callApi(
|
|
11074
|
+
'/api/v2/authorization/policies',
|
|
11075
|
+
'GET',
|
|
11076
|
+
{ },
|
|
11077
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
11078
|
+
{ },
|
|
11079
|
+
{ },
|
|
11080
|
+
null,
|
|
11081
|
+
['PureCloud OAuth'],
|
|
11082
|
+
['application/json'],
|
|
11083
|
+
['application/json']
|
|
11084
|
+
);
|
|
11085
|
+
}
|
|
11086
|
+
|
|
11087
|
+
/**
|
|
11088
|
+
* Get a page of access policies for a given subject
|
|
11089
|
+
*
|
|
11090
|
+
* @param {String} subjectId The ID of the subject to which policies are applied
|
|
11091
|
+
* @param {Object} opts Optional parameters
|
|
11092
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
11093
|
+
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
|
|
11094
|
+
* getAuthorizationPoliciesSubjectSubjectId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11095
|
+
*/
|
|
11096
|
+
getAuthorizationPoliciesSubjectSubjectId(subjectId, opts) {
|
|
11097
|
+
opts = opts || {};
|
|
11098
|
+
|
|
11099
|
+
// verify the required parameter 'subjectId' is set
|
|
11100
|
+
if (subjectId === undefined || subjectId === null) {
|
|
11101
|
+
throw 'Missing the required parameter "subjectId" when calling getAuthorizationPoliciesSubjectSubjectId';
|
|
11102
|
+
}
|
|
11103
|
+
|
|
11104
|
+
return this.apiClient.callApi(
|
|
11105
|
+
'/api/v2/authorization/policies/subject/{subjectId}',
|
|
11106
|
+
'GET',
|
|
11107
|
+
{ 'subjectId': subjectId },
|
|
11108
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
11109
|
+
{ },
|
|
11110
|
+
{ },
|
|
11111
|
+
null,
|
|
11112
|
+
['PureCloud OAuth'],
|
|
11113
|
+
['application/json'],
|
|
11114
|
+
['application/json']
|
|
11115
|
+
);
|
|
11116
|
+
}
|
|
11117
|
+
|
|
11118
|
+
/**
|
|
11119
|
+
* Get a page of access policies for a given policy target
|
|
11120
|
+
*
|
|
11121
|
+
* @param {String} targetName The domain:entity:action resource target to which policies are applied
|
|
11122
|
+
* @param {Object} opts Optional parameters
|
|
11123
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
11124
|
+
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
|
|
11125
|
+
* getAuthorizationPoliciesTarget is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11126
|
+
*/
|
|
11127
|
+
getAuthorizationPoliciesTarget(targetName, opts) {
|
|
11128
|
+
opts = opts || {};
|
|
11129
|
+
|
|
11130
|
+
// verify the required parameter 'targetName' is set
|
|
11131
|
+
if (targetName === undefined || targetName === null) {
|
|
11132
|
+
throw 'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTarget';
|
|
11133
|
+
}
|
|
11134
|
+
|
|
11135
|
+
return this.apiClient.callApi(
|
|
11136
|
+
'/api/v2/authorization/policies/targets/{targetName}',
|
|
11137
|
+
'GET',
|
|
11138
|
+
{ 'targetName': targetName },
|
|
11139
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
11140
|
+
{ },
|
|
11141
|
+
{ },
|
|
11142
|
+
null,
|
|
11143
|
+
['PureCloud OAuth'],
|
|
11144
|
+
['application/json'],
|
|
11145
|
+
['application/json']
|
|
11146
|
+
);
|
|
11147
|
+
}
|
|
11148
|
+
|
|
11149
|
+
/**
|
|
11150
|
+
* Get an access control policy for a specified resource target and subject
|
|
11151
|
+
*
|
|
11152
|
+
* @param {String} targetName The domain:entity:action resource target to which the policy is applied
|
|
11153
|
+
* @param {String} subjectId The ID of the subject to which the policy is applied
|
|
11154
|
+
* getAuthorizationPoliciesTargetSubjectSubjectId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11155
|
+
*/
|
|
11156
|
+
getAuthorizationPoliciesTargetSubjectSubjectId(targetName, subjectId) {
|
|
11157
|
+
// verify the required parameter 'targetName' is set
|
|
11158
|
+
if (targetName === undefined || targetName === null) {
|
|
11159
|
+
throw 'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';
|
|
11160
|
+
}
|
|
11161
|
+
// verify the required parameter 'subjectId' is set
|
|
11162
|
+
if (subjectId === undefined || subjectId === null) {
|
|
11163
|
+
throw 'Missing the required parameter "subjectId" when calling getAuthorizationPoliciesTargetSubjectSubjectId';
|
|
11164
|
+
}
|
|
11165
|
+
|
|
11166
|
+
return this.apiClient.callApi(
|
|
11167
|
+
'/api/v2/authorization/policies/targets/{targetName}/subject/{subjectId}',
|
|
11168
|
+
'GET',
|
|
11169
|
+
{ 'targetName': targetName,'subjectId': subjectId },
|
|
11170
|
+
{ },
|
|
11171
|
+
{ },
|
|
11172
|
+
{ },
|
|
11173
|
+
null,
|
|
11174
|
+
['PureCloud OAuth'],
|
|
11175
|
+
['application/json'],
|
|
11176
|
+
['application/json']
|
|
11177
|
+
);
|
|
11178
|
+
}
|
|
11179
|
+
|
|
11180
|
+
/**
|
|
11181
|
+
* Get a map of policy targets to valid attributes for those targets
|
|
11182
|
+
*
|
|
11183
|
+
* getAuthorizationPoliciesTargets is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11184
|
+
*/
|
|
11185
|
+
getAuthorizationPoliciesTargets() {
|
|
11186
|
+
|
|
11187
|
+
return this.apiClient.callApi(
|
|
11188
|
+
'/api/v2/authorization/policies/targets',
|
|
11189
|
+
'GET',
|
|
11190
|
+
{ },
|
|
11191
|
+
{ },
|
|
11192
|
+
{ },
|
|
11193
|
+
{ },
|
|
11194
|
+
null,
|
|
11195
|
+
['PureCloud OAuth'],
|
|
11196
|
+
['application/json'],
|
|
11197
|
+
['application/json']
|
|
11198
|
+
);
|
|
11199
|
+
}
|
|
11200
|
+
|
|
11201
|
+
/**
|
|
11202
|
+
* Get an access control policy with the specified policy ID
|
|
11203
|
+
*
|
|
11204
|
+
* @param {String} policyId The ID of the policy to retrieve
|
|
11205
|
+
* getAuthorizationPolicy is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11206
|
+
*/
|
|
11207
|
+
getAuthorizationPolicy(policyId) {
|
|
11208
|
+
// verify the required parameter 'policyId' is set
|
|
11209
|
+
if (policyId === undefined || policyId === null) {
|
|
11210
|
+
throw 'Missing the required parameter "policyId" when calling getAuthorizationPolicy';
|
|
11211
|
+
}
|
|
11212
|
+
|
|
11213
|
+
return this.apiClient.callApi(
|
|
11214
|
+
'/api/v2/authorization/policies/{policyId}',
|
|
11215
|
+
'GET',
|
|
11216
|
+
{ 'policyId': policyId },
|
|
11217
|
+
{ },
|
|
11218
|
+
{ },
|
|
11219
|
+
{ },
|
|
11220
|
+
null,
|
|
11221
|
+
['PureCloud OAuth'],
|
|
11222
|
+
['application/json'],
|
|
11223
|
+
['application/json']
|
|
11224
|
+
);
|
|
11225
|
+
}
|
|
11226
|
+
|
|
11227
|
+
/**
|
|
11228
|
+
* Get the list of attributes used to evaluate an access control policy with the specified policy ID
|
|
11229
|
+
*
|
|
11230
|
+
* @param {String} policyId The ID of the policy to retrieve attributes
|
|
11231
|
+
* getAuthorizationPolicyAttributes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11232
|
+
*/
|
|
11233
|
+
getAuthorizationPolicyAttributes(policyId) {
|
|
11234
|
+
// verify the required parameter 'policyId' is set
|
|
11235
|
+
if (policyId === undefined || policyId === null) {
|
|
11236
|
+
throw 'Missing the required parameter "policyId" when calling getAuthorizationPolicyAttributes';
|
|
11237
|
+
}
|
|
11238
|
+
|
|
11239
|
+
return this.apiClient.callApi(
|
|
11240
|
+
'/api/v2/authorization/policies/{policyId}/attributes',
|
|
11241
|
+
'GET',
|
|
11242
|
+
{ 'policyId': policyId },
|
|
11243
|
+
{ },
|
|
11244
|
+
{ },
|
|
11245
|
+
{ },
|
|
11246
|
+
null,
|
|
11247
|
+
['PureCloud OAuth'],
|
|
11248
|
+
['application/json'],
|
|
11249
|
+
['application/json']
|
|
11250
|
+
);
|
|
11251
|
+
}
|
|
11252
|
+
|
|
10941
11253
|
/**
|
|
10942
11254
|
* Get the list of enabled products
|
|
10943
11255
|
* Gets the list of enabled products. Some example product names are: collaborateFree, collaboratePro, communicate, and engage.
|
|
@@ -11402,6 +11714,99 @@ class AuthorizationApi {
|
|
|
11402
11714
|
);
|
|
11403
11715
|
}
|
|
11404
11716
|
|
|
11717
|
+
/**
|
|
11718
|
+
* Add an access control policy for a specified resource target and subject
|
|
11719
|
+
*
|
|
11720
|
+
* @param {String} targetName The domain:entity:action target to which the policy will be applied
|
|
11721
|
+
* @param {Object} body Access control policy
|
|
11722
|
+
* postAuthorizationPoliciesTarget is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11723
|
+
*/
|
|
11724
|
+
postAuthorizationPoliciesTarget(targetName, body) {
|
|
11725
|
+
// verify the required parameter 'targetName' is set
|
|
11726
|
+
if (targetName === undefined || targetName === null) {
|
|
11727
|
+
throw 'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTarget';
|
|
11728
|
+
}
|
|
11729
|
+
// verify the required parameter 'body' is set
|
|
11730
|
+
if (body === undefined || body === null) {
|
|
11731
|
+
throw 'Missing the required parameter "body" when calling postAuthorizationPoliciesTarget';
|
|
11732
|
+
}
|
|
11733
|
+
|
|
11734
|
+
return this.apiClient.callApi(
|
|
11735
|
+
'/api/v2/authorization/policies/targets/{targetName}',
|
|
11736
|
+
'POST',
|
|
11737
|
+
{ 'targetName': targetName },
|
|
11738
|
+
{ },
|
|
11739
|
+
{ },
|
|
11740
|
+
{ },
|
|
11741
|
+
body,
|
|
11742
|
+
['PureCloud OAuth'],
|
|
11743
|
+
['application/json'],
|
|
11744
|
+
['application/json']
|
|
11745
|
+
);
|
|
11746
|
+
}
|
|
11747
|
+
|
|
11748
|
+
/**
|
|
11749
|
+
* Validate the conditions and attributes of an access control policy for a specified resource target
|
|
11750
|
+
*
|
|
11751
|
+
* @param {String} targetName The domain:entity:action target to which the policy will be applied
|
|
11752
|
+
* @param {Object} body Access control policy
|
|
11753
|
+
* postAuthorizationPoliciesTargetValidate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11754
|
+
*/
|
|
11755
|
+
postAuthorizationPoliciesTargetValidate(targetName, body) {
|
|
11756
|
+
// verify the required parameter 'targetName' is set
|
|
11757
|
+
if (targetName === undefined || targetName === null) {
|
|
11758
|
+
throw 'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';
|
|
11759
|
+
}
|
|
11760
|
+
// verify the required parameter 'body' is set
|
|
11761
|
+
if (body === undefined || body === null) {
|
|
11762
|
+
throw 'Missing the required parameter "body" when calling postAuthorizationPoliciesTargetValidate';
|
|
11763
|
+
}
|
|
11764
|
+
|
|
11765
|
+
return this.apiClient.callApi(
|
|
11766
|
+
'/api/v2/authorization/policies/targets/{targetName}/validate',
|
|
11767
|
+
'POST',
|
|
11768
|
+
{ 'targetName': targetName },
|
|
11769
|
+
{ },
|
|
11770
|
+
{ },
|
|
11771
|
+
{ },
|
|
11772
|
+
body,
|
|
11773
|
+
['PureCloud OAuth'],
|
|
11774
|
+
['application/json'],
|
|
11775
|
+
['application/json']
|
|
11776
|
+
);
|
|
11777
|
+
}
|
|
11778
|
+
|
|
11779
|
+
/**
|
|
11780
|
+
* Simulate a request and evaluate the specified policy ID against the provided values
|
|
11781
|
+
*
|
|
11782
|
+
* @param {String} policyId The ID of the policy to test the simulated data against
|
|
11783
|
+
* @param {Object} body A map of attribute names to type and simulated data value
|
|
11784
|
+
* postAuthorizationPolicySimulate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11785
|
+
*/
|
|
11786
|
+
postAuthorizationPolicySimulate(policyId, body) {
|
|
11787
|
+
// verify the required parameter 'policyId' is set
|
|
11788
|
+
if (policyId === undefined || policyId === null) {
|
|
11789
|
+
throw 'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';
|
|
11790
|
+
}
|
|
11791
|
+
// verify the required parameter 'body' is set
|
|
11792
|
+
if (body === undefined || body === null) {
|
|
11793
|
+
throw 'Missing the required parameter "body" when calling postAuthorizationPolicySimulate';
|
|
11794
|
+
}
|
|
11795
|
+
|
|
11796
|
+
return this.apiClient.callApi(
|
|
11797
|
+
'/api/v2/authorization/policies/{policyId}/simulate',
|
|
11798
|
+
'POST',
|
|
11799
|
+
{ 'policyId': policyId },
|
|
11800
|
+
{ },
|
|
11801
|
+
{ },
|
|
11802
|
+
{ },
|
|
11803
|
+
body,
|
|
11804
|
+
['PureCloud OAuth'],
|
|
11805
|
+
['application/json'],
|
|
11806
|
+
['application/json']
|
|
11807
|
+
);
|
|
11808
|
+
}
|
|
11809
|
+
|
|
11405
11810
|
/**
|
|
11406
11811
|
* Bulk-grant subjects and divisions with an organization role.
|
|
11407
11812
|
*
|
|
@@ -11687,6 +12092,68 @@ class AuthorizationApi {
|
|
|
11687
12092
|
);
|
|
11688
12093
|
}
|
|
11689
12094
|
|
|
12095
|
+
/**
|
|
12096
|
+
* Add an access control policy for a specified resource target and subject, overwriting any existing policy
|
|
12097
|
+
*
|
|
12098
|
+
* @param {String} targetName The domain:entity:action target to which the policy will be applied
|
|
12099
|
+
* @param {Object} body Access control policy
|
|
12100
|
+
* putAuthorizationPoliciesTarget is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
12101
|
+
*/
|
|
12102
|
+
putAuthorizationPoliciesTarget(targetName, body) {
|
|
12103
|
+
// verify the required parameter 'targetName' is set
|
|
12104
|
+
if (targetName === undefined || targetName === null) {
|
|
12105
|
+
throw 'Missing the required parameter "targetName" when calling putAuthorizationPoliciesTarget';
|
|
12106
|
+
}
|
|
12107
|
+
// verify the required parameter 'body' is set
|
|
12108
|
+
if (body === undefined || body === null) {
|
|
12109
|
+
throw 'Missing the required parameter "body" when calling putAuthorizationPoliciesTarget';
|
|
12110
|
+
}
|
|
12111
|
+
|
|
12112
|
+
return this.apiClient.callApi(
|
|
12113
|
+
'/api/v2/authorization/policies/targets/{targetName}',
|
|
12114
|
+
'PUT',
|
|
12115
|
+
{ 'targetName': targetName },
|
|
12116
|
+
{ },
|
|
12117
|
+
{ },
|
|
12118
|
+
{ },
|
|
12119
|
+
body,
|
|
12120
|
+
['PureCloud OAuth'],
|
|
12121
|
+
['application/json'],
|
|
12122
|
+
['application/json']
|
|
12123
|
+
);
|
|
12124
|
+
}
|
|
12125
|
+
|
|
12126
|
+
/**
|
|
12127
|
+
* Update an access control policy with a given ID
|
|
12128
|
+
*
|
|
12129
|
+
* @param {String} policyId The ID of the policy to update
|
|
12130
|
+
* @param {Object} body Access control policy
|
|
12131
|
+
* putAuthorizationPolicy is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
12132
|
+
*/
|
|
12133
|
+
putAuthorizationPolicy(policyId, body) {
|
|
12134
|
+
// verify the required parameter 'policyId' is set
|
|
12135
|
+
if (policyId === undefined || policyId === null) {
|
|
12136
|
+
throw 'Missing the required parameter "policyId" when calling putAuthorizationPolicy';
|
|
12137
|
+
}
|
|
12138
|
+
// verify the required parameter 'body' is set
|
|
12139
|
+
if (body === undefined || body === null) {
|
|
12140
|
+
throw 'Missing the required parameter "body" when calling putAuthorizationPolicy';
|
|
12141
|
+
}
|
|
12142
|
+
|
|
12143
|
+
return this.apiClient.callApi(
|
|
12144
|
+
'/api/v2/authorization/policies/{policyId}',
|
|
12145
|
+
'PUT',
|
|
12146
|
+
{ 'policyId': policyId },
|
|
12147
|
+
{ },
|
|
12148
|
+
{ },
|
|
12149
|
+
{ },
|
|
12150
|
+
body,
|
|
12151
|
+
['PureCloud OAuth'],
|
|
12152
|
+
['application/json'],
|
|
12153
|
+
['application/json']
|
|
12154
|
+
);
|
|
12155
|
+
}
|
|
12156
|
+
|
|
11690
12157
|
/**
|
|
11691
12158
|
* Update an organization role.
|
|
11692
12159
|
* Update
|
|
@@ -11863,7 +12330,7 @@ class BillingApi {
|
|
|
11863
12330
|
/**
|
|
11864
12331
|
* Billing service.
|
|
11865
12332
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
11866
|
-
* @version
|
|
12333
|
+
* @version 216.0.0
|
|
11867
12334
|
*/
|
|
11868
12335
|
|
|
11869
12336
|
/**
|
|
@@ -11943,7 +12410,7 @@ class CarrierServicesApi {
|
|
|
11943
12410
|
/**
|
|
11944
12411
|
* CarrierServices service.
|
|
11945
12412
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
11946
|
-
* @version
|
|
12413
|
+
* @version 216.0.0
|
|
11947
12414
|
*/
|
|
11948
12415
|
|
|
11949
12416
|
/**
|
|
@@ -12013,7 +12480,7 @@ class ChatApi {
|
|
|
12013
12480
|
/**
|
|
12014
12481
|
* Chat service.
|
|
12015
12482
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
12016
|
-
* @version
|
|
12483
|
+
* @version 216.0.0
|
|
12017
12484
|
*/
|
|
12018
12485
|
|
|
12019
12486
|
/**
|
|
@@ -12949,7 +13416,7 @@ class CoachingApi {
|
|
|
12949
13416
|
/**
|
|
12950
13417
|
* Coaching service.
|
|
12951
13418
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
12952
|
-
* @version
|
|
13419
|
+
* @version 216.0.0
|
|
12953
13420
|
*/
|
|
12954
13421
|
|
|
12955
13422
|
/**
|
|
@@ -13526,7 +13993,7 @@ class ContentManagementApi {
|
|
|
13526
13993
|
/**
|
|
13527
13994
|
* ContentManagement service.
|
|
13528
13995
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
13529
|
-
* @version
|
|
13996
|
+
* @version 216.0.0
|
|
13530
13997
|
*/
|
|
13531
13998
|
|
|
13532
13999
|
/**
|
|
@@ -14607,7 +15074,7 @@ class ConversationsApi {
|
|
|
14607
15074
|
/**
|
|
14608
15075
|
* Conversations service.
|
|
14609
15076
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
14610
|
-
* @version
|
|
15077
|
+
* @version 216.0.0
|
|
14611
15078
|
*/
|
|
14612
15079
|
|
|
14613
15080
|
/**
|
|
@@ -21769,7 +22236,7 @@ class DataExtensionsApi {
|
|
|
21769
22236
|
/**
|
|
21770
22237
|
* DataExtensions service.
|
|
21771
22238
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
21772
|
-
* @version
|
|
22239
|
+
* @version 216.0.0
|
|
21773
22240
|
*/
|
|
21774
22241
|
|
|
21775
22242
|
/**
|
|
@@ -21855,7 +22322,7 @@ class DataPrivacyApi {
|
|
|
21855
22322
|
/**
|
|
21856
22323
|
* DataPrivacy service.
|
|
21857
22324
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
21858
|
-
* @version
|
|
22325
|
+
* @version 216.0.0
|
|
21859
22326
|
*/
|
|
21860
22327
|
|
|
21861
22328
|
/**
|
|
@@ -22025,7 +22492,7 @@ class DownloadsApi {
|
|
|
22025
22492
|
/**
|
|
22026
22493
|
* Downloads service.
|
|
22027
22494
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
22028
|
-
* @version
|
|
22495
|
+
* @version 216.0.0
|
|
22029
22496
|
*/
|
|
22030
22497
|
|
|
22031
22498
|
/**
|
|
@@ -22077,7 +22544,7 @@ class EmailsApi {
|
|
|
22077
22544
|
/**
|
|
22078
22545
|
* Emails service.
|
|
22079
22546
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
22080
|
-
* @version
|
|
22547
|
+
* @version 216.0.0
|
|
22081
22548
|
*/
|
|
22082
22549
|
|
|
22083
22550
|
/**
|
|
@@ -22142,7 +22609,7 @@ class EmployeeEngagementApi {
|
|
|
22142
22609
|
/**
|
|
22143
22610
|
* EmployeeEngagement service.
|
|
22144
22611
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
22145
|
-
* @version
|
|
22612
|
+
* @version 216.0.0
|
|
22146
22613
|
*/
|
|
22147
22614
|
|
|
22148
22615
|
/**
|
|
@@ -22293,7 +22760,7 @@ class EventsApi {
|
|
|
22293
22760
|
/**
|
|
22294
22761
|
* Events service.
|
|
22295
22762
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
22296
|
-
* @version
|
|
22763
|
+
* @version 216.0.0
|
|
22297
22764
|
*/
|
|
22298
22765
|
|
|
22299
22766
|
/**
|
|
@@ -22389,7 +22856,7 @@ class ExternalContactsApi {
|
|
|
22389
22856
|
/**
|
|
22390
22857
|
* ExternalContacts service.
|
|
22391
22858
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
22392
|
-
* @version
|
|
22859
|
+
* @version 216.0.0
|
|
22393
22860
|
*/
|
|
22394
22861
|
|
|
22395
22862
|
/**
|
|
@@ -23129,8 +23596,12 @@ class ExternalContactsApi {
|
|
|
23129
23596
|
* Get job based on id
|
|
23130
23597
|
*
|
|
23131
23598
|
* @param {String} jobId Job id
|
|
23599
|
+
* @param {Object} opts Optional parameters
|
|
23600
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand
|
|
23132
23601
|
*/
|
|
23133
|
-
getExternalcontactsImportJob(jobId) {
|
|
23602
|
+
getExternalcontactsImportJob(jobId, opts) {
|
|
23603
|
+
opts = opts || {};
|
|
23604
|
+
|
|
23134
23605
|
// verify the required parameter 'jobId' is set
|
|
23135
23606
|
if (jobId === undefined || jobId === null) {
|
|
23136
23607
|
throw 'Missing the required parameter "jobId" when calling getExternalcontactsImportJob';
|
|
@@ -23140,7 +23611,7 @@ class ExternalContactsApi {
|
|
|
23140
23611
|
'/api/v2/externalcontacts/import/jobs/{jobId}',
|
|
23141
23612
|
'GET',
|
|
23142
23613
|
{ 'jobId': jobId },
|
|
23143
|
-
{
|
|
23614
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
23144
23615
|
{ },
|
|
23145
23616
|
{ },
|
|
23146
23617
|
null,
|
|
@@ -23154,6 +23625,7 @@ class ExternalContactsApi {
|
|
|
23154
23625
|
* List jobs for organization
|
|
23155
23626
|
*
|
|
23156
23627
|
* @param {Object} opts Optional parameters
|
|
23628
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand
|
|
23157
23629
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
23158
23630
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 100. (default to 25)
|
|
23159
23631
|
* @param {Object} opts.sortOrder Direction of sorting. (default to Ascending)
|
|
@@ -23167,7 +23639,7 @@ class ExternalContactsApi {
|
|
|
23167
23639
|
'/api/v2/externalcontacts/import/jobs',
|
|
23168
23640
|
'GET',
|
|
23169
23641
|
{ },
|
|
23170
|
-
{ 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'jobStatus': opts['jobStatus'] },
|
|
23642
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'jobStatus': opts['jobStatus'] },
|
|
23171
23643
|
{ },
|
|
23172
23644
|
{ },
|
|
23173
23645
|
null,
|
|
@@ -24954,7 +25426,7 @@ class FaxApi {
|
|
|
24954
25426
|
/**
|
|
24955
25427
|
* Fax service.
|
|
24956
25428
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
24957
|
-
* @version
|
|
25429
|
+
* @version 216.0.0
|
|
24958
25430
|
*/
|
|
24959
25431
|
|
|
24960
25432
|
/**
|
|
@@ -25169,7 +25641,7 @@ class FlowsApi {
|
|
|
25169
25641
|
/**
|
|
25170
25642
|
* Flows service.
|
|
25171
25643
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
25172
|
-
* @version
|
|
25644
|
+
* @version 216.0.0
|
|
25173
25645
|
*/
|
|
25174
25646
|
|
|
25175
25647
|
/**
|
|
@@ -25352,7 +25824,7 @@ class GamificationApi {
|
|
|
25352
25824
|
/**
|
|
25353
25825
|
* Gamification service.
|
|
25354
25826
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
25355
|
-
* @version
|
|
25827
|
+
* @version 216.0.0
|
|
25356
25828
|
*/
|
|
25357
25829
|
|
|
25358
25830
|
/**
|
|
@@ -27494,7 +27966,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
27494
27966
|
/**
|
|
27495
27967
|
* GeneralDataProtectionRegulation service.
|
|
27496
27968
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
27497
|
-
* @version
|
|
27969
|
+
* @version 216.0.0
|
|
27498
27970
|
*/
|
|
27499
27971
|
|
|
27500
27972
|
/**
|
|
@@ -27624,7 +28096,7 @@ class GeolocationApi {
|
|
|
27624
28096
|
/**
|
|
27625
28097
|
* Geolocation service.
|
|
27626
28098
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
27627
|
-
* @version
|
|
28099
|
+
* @version 216.0.0
|
|
27628
28100
|
*/
|
|
27629
28101
|
|
|
27630
28102
|
/**
|
|
@@ -27755,7 +28227,7 @@ class GreetingsApi {
|
|
|
27755
28227
|
/**
|
|
27756
28228
|
* Greetings service.
|
|
27757
28229
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
27758
|
-
* @version
|
|
28230
|
+
* @version 216.0.0
|
|
27759
28231
|
*/
|
|
27760
28232
|
|
|
27761
28233
|
/**
|
|
@@ -28210,7 +28682,7 @@ class GroupsApi {
|
|
|
28210
28682
|
/**
|
|
28211
28683
|
* Groups service.
|
|
28212
28684
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
28213
|
-
* @version
|
|
28685
|
+
* @version 216.0.0
|
|
28214
28686
|
*/
|
|
28215
28687
|
|
|
28216
28688
|
/**
|
|
@@ -28729,7 +29201,7 @@ class IdentityProviderApi {
|
|
|
28729
29201
|
/**
|
|
28730
29202
|
* IdentityProvider service.
|
|
28731
29203
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
28732
|
-
* @version
|
|
29204
|
+
* @version 216.0.0
|
|
28733
29205
|
*/
|
|
28734
29206
|
|
|
28735
29207
|
/**
|
|
@@ -29590,7 +30062,7 @@ class InfrastructureAsCodeApi {
|
|
|
29590
30062
|
/**
|
|
29591
30063
|
* InfrastructureAsCode service.
|
|
29592
30064
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
29593
|
-
* @version
|
|
30065
|
+
* @version 216.0.0
|
|
29594
30066
|
*/
|
|
29595
30067
|
|
|
29596
30068
|
/**
|
|
@@ -29757,7 +30229,7 @@ class IntegrationsApi {
|
|
|
29757
30229
|
/**
|
|
29758
30230
|
* Integrations service.
|
|
29759
30231
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
29760
|
-
* @version
|
|
30232
|
+
* @version 216.0.0
|
|
29761
30233
|
*/
|
|
29762
30234
|
|
|
29763
30235
|
/**
|
|
@@ -32194,7 +32666,7 @@ class JourneyApi {
|
|
|
32194
32666
|
/**
|
|
32195
32667
|
* Journey service.
|
|
32196
32668
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
32197
|
-
* @version
|
|
32669
|
+
* @version 216.0.0
|
|
32198
32670
|
*/
|
|
32199
32671
|
|
|
32200
32672
|
/**
|
|
@@ -33334,6 +33806,26 @@ class JourneyApi {
|
|
|
33334
33806
|
);
|
|
33335
33807
|
}
|
|
33336
33808
|
|
|
33809
|
+
/**
|
|
33810
|
+
* Get details about the data available for journey queries including oldest and newest event dates
|
|
33811
|
+
*
|
|
33812
|
+
*/
|
|
33813
|
+
getJourneyViewsDataDetails() {
|
|
33814
|
+
|
|
33815
|
+
return this.apiClient.callApi(
|
|
33816
|
+
'/api/v2/journey/views/data/details',
|
|
33817
|
+
'GET',
|
|
33818
|
+
{ },
|
|
33819
|
+
{ },
|
|
33820
|
+
{ },
|
|
33821
|
+
{ },
|
|
33822
|
+
null,
|
|
33823
|
+
['PureCloud OAuth'],
|
|
33824
|
+
['application/json'],
|
|
33825
|
+
['application/json']
|
|
33826
|
+
);
|
|
33827
|
+
}
|
|
33828
|
+
|
|
33337
33829
|
/**
|
|
33338
33830
|
* Get an Event Definition
|
|
33339
33831
|
*
|
|
@@ -34159,7 +34651,7 @@ class KnowledgeApi {
|
|
|
34159
34651
|
/**
|
|
34160
34652
|
* Knowledge service.
|
|
34161
34653
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
34162
|
-
* @version
|
|
34654
|
+
* @version 216.0.0
|
|
34163
34655
|
*/
|
|
34164
34656
|
|
|
34165
34657
|
/**
|
|
@@ -38035,7 +38527,7 @@ class LanguageUnderstandingApi {
|
|
|
38035
38527
|
/**
|
|
38036
38528
|
* LanguageUnderstanding service.
|
|
38037
38529
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
38038
|
-
* @version
|
|
38530
|
+
* @version 216.0.0
|
|
38039
38531
|
*/
|
|
38040
38532
|
|
|
38041
38533
|
/**
|
|
@@ -39068,7 +39560,7 @@ class LanguagesApi {
|
|
|
39068
39560
|
/**
|
|
39069
39561
|
* Languages service.
|
|
39070
39562
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
39071
|
-
* @version
|
|
39563
|
+
* @version 216.0.0
|
|
39072
39564
|
*/
|
|
39073
39565
|
|
|
39074
39566
|
/**
|
|
@@ -39290,7 +39782,7 @@ class LearningApi {
|
|
|
39290
39782
|
/**
|
|
39291
39783
|
* Learning service.
|
|
39292
39784
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
39293
|
-
* @version
|
|
39785
|
+
* @version 216.0.0
|
|
39294
39786
|
*/
|
|
39295
39787
|
|
|
39296
39788
|
/**
|
|
@@ -40319,7 +40811,7 @@ class LicenseApi {
|
|
|
40319
40811
|
/**
|
|
40320
40812
|
* License service.
|
|
40321
40813
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
40322
|
-
* @version
|
|
40814
|
+
* @version 216.0.0
|
|
40323
40815
|
*/
|
|
40324
40816
|
|
|
40325
40817
|
/**
|
|
@@ -40557,7 +41049,7 @@ class LocationsApi {
|
|
|
40557
41049
|
/**
|
|
40558
41050
|
* Locations service.
|
|
40559
41051
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
40560
|
-
* @version
|
|
41052
|
+
* @version 216.0.0
|
|
40561
41053
|
*/
|
|
40562
41054
|
|
|
40563
41055
|
/**
|
|
@@ -40793,7 +41285,7 @@ class LogCaptureApi {
|
|
|
40793
41285
|
/**
|
|
40794
41286
|
* LogCapture service.
|
|
40795
41287
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
40796
|
-
* @version
|
|
41288
|
+
* @version 216.0.0
|
|
40797
41289
|
*/
|
|
40798
41290
|
|
|
40799
41291
|
/**
|
|
@@ -40993,7 +41485,7 @@ class MessagingApi {
|
|
|
40993
41485
|
/**
|
|
40994
41486
|
* Messaging service.
|
|
40995
41487
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
40996
|
-
* @version
|
|
41488
|
+
* @version 216.0.0
|
|
40997
41489
|
*/
|
|
40998
41490
|
|
|
40999
41491
|
/**
|
|
@@ -41352,7 +41844,7 @@ class MobileDevicesApi {
|
|
|
41352
41844
|
/**
|
|
41353
41845
|
* MobileDevices service.
|
|
41354
41846
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
41355
|
-
* @version
|
|
41847
|
+
* @version 216.0.0
|
|
41356
41848
|
*/
|
|
41357
41849
|
|
|
41358
41850
|
/**
|
|
@@ -41503,7 +41995,7 @@ class NotificationsApi {
|
|
|
41503
41995
|
/**
|
|
41504
41996
|
* Notifications service.
|
|
41505
41997
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
41506
|
-
* @version
|
|
41998
|
+
* @version 216.0.0
|
|
41507
41999
|
*/
|
|
41508
42000
|
|
|
41509
42001
|
/**
|
|
@@ -41736,7 +42228,7 @@ class OAuthApi {
|
|
|
41736
42228
|
/**
|
|
41737
42229
|
* OAuth service.
|
|
41738
42230
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
41739
|
-
* @version
|
|
42231
|
+
* @version 216.0.0
|
|
41740
42232
|
*/
|
|
41741
42233
|
|
|
41742
42234
|
/**
|
|
@@ -42102,7 +42594,7 @@ class ObjectsApi {
|
|
|
42102
42594
|
/**
|
|
42103
42595
|
* Objects service.
|
|
42104
42596
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
42105
|
-
* @version
|
|
42597
|
+
* @version 216.0.0
|
|
42106
42598
|
*/
|
|
42107
42599
|
|
|
42108
42600
|
/**
|
|
@@ -42372,7 +42864,7 @@ class OperationalEventsApi {
|
|
|
42372
42864
|
/**
|
|
42373
42865
|
* OperationalEvents service.
|
|
42374
42866
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
42375
|
-
* @version
|
|
42867
|
+
* @version 216.0.0
|
|
42376
42868
|
*/
|
|
42377
42869
|
|
|
42378
42870
|
/**
|
|
@@ -42489,7 +42981,7 @@ class OrganizationApi {
|
|
|
42489
42981
|
/**
|
|
42490
42982
|
* Organization service.
|
|
42491
42983
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
42492
|
-
* @version
|
|
42984
|
+
* @version 216.0.0
|
|
42493
42985
|
*/
|
|
42494
42986
|
|
|
42495
42987
|
/**
|
|
@@ -43031,7 +43523,7 @@ class OrganizationAuthorizationApi {
|
|
|
43031
43523
|
/**
|
|
43032
43524
|
* OrganizationAuthorization service.
|
|
43033
43525
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
43034
|
-
* @version
|
|
43526
|
+
* @version 216.0.0
|
|
43035
43527
|
*/
|
|
43036
43528
|
|
|
43037
43529
|
/**
|
|
@@ -44425,7 +44917,7 @@ class OutboundApi {
|
|
|
44425
44917
|
/**
|
|
44426
44918
|
* Outbound service.
|
|
44427
44919
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
44428
|
-
* @version
|
|
44920
|
+
* @version 216.0.0
|
|
44429
44921
|
*/
|
|
44430
44922
|
|
|
44431
44923
|
/**
|
|
@@ -48976,7 +49468,7 @@ class PresenceApi {
|
|
|
48976
49468
|
/**
|
|
48977
49469
|
* Presence service.
|
|
48978
49470
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
48979
|
-
* @version
|
|
49471
|
+
* @version 216.0.0
|
|
48980
49472
|
*/
|
|
48981
49473
|
|
|
48982
49474
|
/**
|
|
@@ -49720,7 +50212,7 @@ class ProcessAutomationApi {
|
|
|
49720
50212
|
/**
|
|
49721
50213
|
* ProcessAutomation service.
|
|
49722
50214
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
49723
|
-
* @version
|
|
50215
|
+
* @version 216.0.0
|
|
49724
50216
|
*/
|
|
49725
50217
|
|
|
49726
50218
|
/**
|
|
@@ -49959,7 +50451,7 @@ class QualityApi {
|
|
|
49959
50451
|
/**
|
|
49960
50452
|
* Quality service.
|
|
49961
50453
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
49962
|
-
* @version
|
|
50454
|
+
* @version 216.0.0
|
|
49963
50455
|
*/
|
|
49964
50456
|
|
|
49965
50457
|
/**
|
|
@@ -51747,7 +52239,7 @@ class RecordingApi {
|
|
|
51747
52239
|
/**
|
|
51748
52240
|
* Recording service.
|
|
51749
52241
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
51750
|
-
* @version
|
|
52242
|
+
* @version 216.0.0
|
|
51751
52243
|
*/
|
|
51752
52244
|
|
|
51753
52245
|
/**
|
|
@@ -52737,36 +53229,6 @@ class RecordingApi {
|
|
|
52737
53229
|
);
|
|
52738
53230
|
}
|
|
52739
53231
|
|
|
52740
|
-
/**
|
|
52741
|
-
* Update a screen recording session
|
|
52742
|
-
* This API is deprecated and the functionality to stop screen recording will be no longer supported.
|
|
52743
|
-
* @param {String} recordingSessionId Screen recording session ID
|
|
52744
|
-
* @param {Object} opts Optional parameters
|
|
52745
|
-
* @param {Object} opts.body
|
|
52746
|
-
* @deprecated
|
|
52747
|
-
*/
|
|
52748
|
-
patchRecordingsScreensession(recordingSessionId, opts) {
|
|
52749
|
-
opts = opts || {};
|
|
52750
|
-
|
|
52751
|
-
// verify the required parameter 'recordingSessionId' is set
|
|
52752
|
-
if (recordingSessionId === undefined || recordingSessionId === null) {
|
|
52753
|
-
throw 'Missing the required parameter "recordingSessionId" when calling patchRecordingsScreensession';
|
|
52754
|
-
}
|
|
52755
|
-
|
|
52756
|
-
return this.apiClient.callApi(
|
|
52757
|
-
'/api/v2/recordings/screensessions/{recordingSessionId}',
|
|
52758
|
-
'PATCH',
|
|
52759
|
-
{ 'recordingSessionId': recordingSessionId },
|
|
52760
|
-
{ },
|
|
52761
|
-
{ },
|
|
52762
|
-
{ },
|
|
52763
|
-
opts['body'],
|
|
52764
|
-
['PureCloud OAuth'],
|
|
52765
|
-
['application/json'],
|
|
52766
|
-
['application/json']
|
|
52767
|
-
);
|
|
52768
|
-
}
|
|
52769
|
-
|
|
52770
53232
|
/**
|
|
52771
53233
|
* Create annotation
|
|
52772
53234
|
*
|
|
@@ -53406,7 +53868,7 @@ class ResponseManagementApi {
|
|
|
53406
53868
|
/**
|
|
53407
53869
|
* ResponseManagement service.
|
|
53408
53870
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
53409
|
-
* @version
|
|
53871
|
+
* @version 216.0.0
|
|
53410
53872
|
*/
|
|
53411
53873
|
|
|
53412
53874
|
/**
|
|
@@ -53916,7 +54378,7 @@ class RoutingApi {
|
|
|
53916
54378
|
/**
|
|
53917
54379
|
* Routing service.
|
|
53918
54380
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
53919
|
-
* @version
|
|
54381
|
+
* @version 216.0.0
|
|
53920
54382
|
*/
|
|
53921
54383
|
|
|
53922
54384
|
/**
|
|
@@ -58038,7 +58500,7 @@ class SCIMApi {
|
|
|
58038
58500
|
/**
|
|
58039
58501
|
* SCIM service.
|
|
58040
58502
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
58041
|
-
* @version
|
|
58503
|
+
* @version 216.0.0
|
|
58042
58504
|
*/
|
|
58043
58505
|
|
|
58044
58506
|
/**
|
|
@@ -58915,7 +59377,7 @@ class ScreenRecordingApi {
|
|
|
58915
59377
|
/**
|
|
58916
59378
|
* ScreenRecording service.
|
|
58917
59379
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
58918
|
-
* @version
|
|
59380
|
+
* @version 216.0.0
|
|
58919
59381
|
*/
|
|
58920
59382
|
|
|
58921
59383
|
/**
|
|
@@ -58960,7 +59422,7 @@ class ScriptsApi {
|
|
|
58960
59422
|
/**
|
|
58961
59423
|
* Scripts service.
|
|
58962
59424
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
58963
|
-
* @version
|
|
59425
|
+
* @version 216.0.0
|
|
58964
59426
|
*/
|
|
58965
59427
|
|
|
58966
59428
|
/**
|
|
@@ -59404,7 +59866,7 @@ class SearchApi {
|
|
|
59404
59866
|
/**
|
|
59405
59867
|
* Search service.
|
|
59406
59868
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
59407
|
-
* @version
|
|
59869
|
+
* @version 216.0.0
|
|
59408
59870
|
*/
|
|
59409
59871
|
|
|
59410
59872
|
/**
|
|
@@ -60147,7 +60609,7 @@ class SettingsApi {
|
|
|
60147
60609
|
/**
|
|
60148
60610
|
* Settings service.
|
|
60149
60611
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
60150
|
-
* @version
|
|
60612
|
+
* @version 216.0.0
|
|
60151
60613
|
*/
|
|
60152
60614
|
|
|
60153
60615
|
/**
|
|
@@ -60367,7 +60829,7 @@ class SocialMediaApi {
|
|
|
60367
60829
|
/**
|
|
60368
60830
|
* SocialMedia service.
|
|
60369
60831
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
60370
|
-
* @version
|
|
60832
|
+
* @version 216.0.0
|
|
60371
60833
|
*/
|
|
60372
60834
|
|
|
60373
60835
|
/**
|
|
@@ -61272,7 +61734,7 @@ class SpeechTextAnalyticsApi {
|
|
|
61272
61734
|
/**
|
|
61273
61735
|
* SpeechTextAnalytics service.
|
|
61274
61736
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
61275
|
-
* @version
|
|
61737
|
+
* @version 216.0.0
|
|
61276
61738
|
*/
|
|
61277
61739
|
|
|
61278
61740
|
/**
|
|
@@ -61440,12 +61902,12 @@ class SpeechTextAnalyticsApi {
|
|
|
61440
61902
|
* Get the list of Speech and Text Analytics categories
|
|
61441
61903
|
*
|
|
61442
61904
|
* @param {Object} opts Optional parameters
|
|
61443
|
-
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is
|
|
61905
|
+
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 25. (default to 25)
|
|
61444
61906
|
* @param {Number} opts.pageNumber The page number for the listing (default to 1)
|
|
61445
61907
|
* @param {String} opts.name The category name filter applied to the listing
|
|
61446
61908
|
* @param {Object} opts.sortOrder The sort order for the listing (default to asc)
|
|
61447
61909
|
* @param {Object} opts.sortBy The field to sort by for the listing (default to name)
|
|
61448
|
-
* @param {Array.<String>} opts.ids Comma separated Category IDs to filter by. Cannot be used with other filters. Maximum of
|
|
61910
|
+
* @param {Array.<String>} opts.ids Comma separated Category IDs to filter by. Cannot be used with other filters. Maximum of 25 IDs allowed.
|
|
61449
61911
|
*/
|
|
61450
61912
|
getSpeechandtextanalyticsCategories(opts) {
|
|
61451
61913
|
opts = opts || {};
|
|
@@ -62713,7 +63175,7 @@ class StationsApi {
|
|
|
62713
63175
|
/**
|
|
62714
63176
|
* Stations service.
|
|
62715
63177
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
62716
|
-
* @version
|
|
63178
|
+
* @version 216.0.0
|
|
62717
63179
|
*/
|
|
62718
63180
|
|
|
62719
63181
|
/**
|
|
@@ -62815,7 +63277,7 @@ class SuggestApi {
|
|
|
62815
63277
|
/**
|
|
62816
63278
|
* Suggest service.
|
|
62817
63279
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
62818
|
-
* @version
|
|
63280
|
+
* @version 216.0.0
|
|
62819
63281
|
*/
|
|
62820
63282
|
|
|
62821
63283
|
/**
|
|
@@ -62954,7 +63416,7 @@ class TaskManagementApi {
|
|
|
62954
63416
|
/**
|
|
62955
63417
|
* TaskManagement service.
|
|
62956
63418
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
62957
|
-
* @version
|
|
63419
|
+
* @version 216.0.0
|
|
62958
63420
|
*/
|
|
62959
63421
|
|
|
62960
63422
|
/**
|
|
@@ -65060,7 +65522,7 @@ class TeamsApi {
|
|
|
65060
65522
|
/**
|
|
65061
65523
|
* Teams service.
|
|
65062
65524
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
65063
|
-
* @version
|
|
65525
|
+
* @version 216.0.0
|
|
65064
65526
|
*/
|
|
65065
65527
|
|
|
65066
65528
|
/**
|
|
@@ -65365,7 +65827,7 @@ class TelephonyApi {
|
|
|
65365
65827
|
/**
|
|
65366
65828
|
* Telephony service.
|
|
65367
65829
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
65368
|
-
* @version
|
|
65830
|
+
* @version 216.0.0
|
|
65369
65831
|
*/
|
|
65370
65832
|
|
|
65371
65833
|
/**
|
|
@@ -65547,7 +66009,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
65547
66009
|
/**
|
|
65548
66010
|
* TelephonyProvidersEdge service.
|
|
65549
66011
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
65550
|
-
* @version
|
|
66012
|
+
* @version 216.0.0
|
|
65551
66013
|
*/
|
|
65552
66014
|
|
|
65553
66015
|
/**
|
|
@@ -68998,7 +69460,7 @@ class TextbotsApi {
|
|
|
68998
69460
|
/**
|
|
68999
69461
|
* Textbots service.
|
|
69000
69462
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
69001
|
-
* @version
|
|
69463
|
+
* @version 216.0.0
|
|
69002
69464
|
*/
|
|
69003
69465
|
|
|
69004
69466
|
/**
|
|
@@ -69126,7 +69588,7 @@ class TokensApi {
|
|
|
69126
69588
|
/**
|
|
69127
69589
|
* Tokens service.
|
|
69128
69590
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
69129
|
-
* @version
|
|
69591
|
+
* @version 216.0.0
|
|
69130
69592
|
*/
|
|
69131
69593
|
|
|
69132
69594
|
/**
|
|
@@ -69280,7 +69742,7 @@ class UploadsApi {
|
|
|
69280
69742
|
/**
|
|
69281
69743
|
* Uploads service.
|
|
69282
69744
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
69283
|
-
* @version
|
|
69745
|
+
* @version 216.0.0
|
|
69284
69746
|
*/
|
|
69285
69747
|
|
|
69286
69748
|
/**
|
|
@@ -69548,7 +70010,7 @@ class UsageApi {
|
|
|
69548
70010
|
/**
|
|
69549
70011
|
* Usage service.
|
|
69550
70012
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
69551
|
-
* @version
|
|
70013
|
+
* @version 216.0.0
|
|
69552
70014
|
*/
|
|
69553
70015
|
|
|
69554
70016
|
/**
|
|
@@ -69763,7 +70225,7 @@ class UserRecordingsApi {
|
|
|
69763
70225
|
/**
|
|
69764
70226
|
* UserRecordings service.
|
|
69765
70227
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
69766
|
-
* @version
|
|
70228
|
+
* @version 216.0.0
|
|
69767
70229
|
*/
|
|
69768
70230
|
|
|
69769
70231
|
/**
|
|
@@ -69978,7 +70440,7 @@ class UsersApi {
|
|
|
69978
70440
|
/**
|
|
69979
70441
|
* Users service.
|
|
69980
70442
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
69981
|
-
* @version
|
|
70443
|
+
* @version 216.0.0
|
|
69982
70444
|
*/
|
|
69983
70445
|
|
|
69984
70446
|
/**
|
|
@@ -72931,7 +73393,7 @@ class UtilitiesApi {
|
|
|
72931
73393
|
/**
|
|
72932
73394
|
* Utilities service.
|
|
72933
73395
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
72934
|
-
* @version
|
|
73396
|
+
* @version 216.0.0
|
|
72935
73397
|
*/
|
|
72936
73398
|
|
|
72937
73399
|
/**
|
|
@@ -73042,7 +73504,7 @@ class VoicemailApi {
|
|
|
73042
73504
|
/**
|
|
73043
73505
|
* Voicemail service.
|
|
73044
73506
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
73045
|
-
* @version
|
|
73507
|
+
* @version 216.0.0
|
|
73046
73508
|
*/
|
|
73047
73509
|
|
|
73048
73510
|
/**
|
|
@@ -73764,7 +74226,7 @@ class WebChatApi {
|
|
|
73764
74226
|
/**
|
|
73765
74227
|
* WebChat service.
|
|
73766
74228
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
73767
|
-
* @version
|
|
74229
|
+
* @version 216.0.0
|
|
73768
74230
|
*/
|
|
73769
74231
|
|
|
73770
74232
|
/**
|
|
@@ -74315,7 +74777,7 @@ class WebDeploymentsApi {
|
|
|
74315
74777
|
/**
|
|
74316
74778
|
* WebDeployments service.
|
|
74317
74779
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
74318
|
-
* @version
|
|
74780
|
+
* @version 216.0.0
|
|
74319
74781
|
*/
|
|
74320
74782
|
|
|
74321
74783
|
/**
|
|
@@ -74842,7 +75304,7 @@ class WebMessagingApi {
|
|
|
74842
75304
|
/**
|
|
74843
75305
|
* WebMessaging service.
|
|
74844
75306
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
74845
|
-
* @version
|
|
75307
|
+
* @version 216.0.0
|
|
74846
75308
|
*/
|
|
74847
75309
|
|
|
74848
75310
|
/**
|
|
@@ -74888,7 +75350,7 @@ class WidgetsApi {
|
|
|
74888
75350
|
/**
|
|
74889
75351
|
* Widgets service.
|
|
74890
75352
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
74891
|
-
* @version
|
|
75353
|
+
* @version 216.0.0
|
|
74892
75354
|
*/
|
|
74893
75355
|
|
|
74894
75356
|
/**
|
|
@@ -75034,7 +75496,7 @@ class WorkforceManagementApi {
|
|
|
75034
75496
|
/**
|
|
75035
75497
|
* WorkforceManagement service.
|
|
75036
75498
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
75037
|
-
* @version
|
|
75499
|
+
* @version 216.0.0
|
|
75038
75500
|
*/
|
|
75039
75501
|
|
|
75040
75502
|
/**
|
|
@@ -77558,6 +78020,51 @@ class WorkforceManagementApi {
|
|
|
77558
78020
|
);
|
|
77559
78021
|
}
|
|
77560
78022
|
|
|
78023
|
+
/**
|
|
78024
|
+
* Retrieves delete job status for historical data imports associated with the job id
|
|
78025
|
+
*
|
|
78026
|
+
* @param {String} jobId The job ID of the historical data delete request
|
|
78027
|
+
*/
|
|
78028
|
+
getWorkforcemanagementHistoricaldataBulkRemoveJob(jobId) {
|
|
78029
|
+
// verify the required parameter 'jobId' is set
|
|
78030
|
+
if (jobId === undefined || jobId === null) {
|
|
78031
|
+
throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementHistoricaldataBulkRemoveJob';
|
|
78032
|
+
}
|
|
78033
|
+
|
|
78034
|
+
return this.apiClient.callApi(
|
|
78035
|
+
'/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs/{jobId}',
|
|
78036
|
+
'GET',
|
|
78037
|
+
{ 'jobId': jobId },
|
|
78038
|
+
{ },
|
|
78039
|
+
{ },
|
|
78040
|
+
{ },
|
|
78041
|
+
null,
|
|
78042
|
+
['PureCloud OAuth'],
|
|
78043
|
+
['application/json'],
|
|
78044
|
+
['application/json']
|
|
78045
|
+
);
|
|
78046
|
+
}
|
|
78047
|
+
|
|
78048
|
+
/**
|
|
78049
|
+
* Retrieves all delete job status for historical data
|
|
78050
|
+
*
|
|
78051
|
+
*/
|
|
78052
|
+
getWorkforcemanagementHistoricaldataBulkRemoveJobs() {
|
|
78053
|
+
|
|
78054
|
+
return this.apiClient.callApi(
|
|
78055
|
+
'/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs',
|
|
78056
|
+
'GET',
|
|
78057
|
+
{ },
|
|
78058
|
+
{ },
|
|
78059
|
+
{ },
|
|
78060
|
+
{ },
|
|
78061
|
+
null,
|
|
78062
|
+
['PureCloud OAuth'],
|
|
78063
|
+
['application/json'],
|
|
78064
|
+
['application/json']
|
|
78065
|
+
);
|
|
78066
|
+
}
|
|
78067
|
+
|
|
77561
78068
|
/**
|
|
77562
78069
|
* Retrieves delete job status for historical data imports of the organization
|
|
77563
78070
|
*
|
|
@@ -81107,6 +81614,30 @@ class WorkforceManagementApi {
|
|
|
81107
81614
|
);
|
|
81108
81615
|
}
|
|
81109
81616
|
|
|
81617
|
+
/**
|
|
81618
|
+
* Delete the list of the historical data import entries
|
|
81619
|
+
*
|
|
81620
|
+
* @param {Object} opts Optional parameters
|
|
81621
|
+
* @param {Object} opts.body body
|
|
81622
|
+
*/
|
|
81623
|
+
postWorkforcemanagementHistoricaldataBulkRemoveJobs(opts) {
|
|
81624
|
+
opts = opts || {};
|
|
81625
|
+
|
|
81626
|
+
|
|
81627
|
+
return this.apiClient.callApi(
|
|
81628
|
+
'/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs',
|
|
81629
|
+
'POST',
|
|
81630
|
+
{ },
|
|
81631
|
+
{ },
|
|
81632
|
+
{ },
|
|
81633
|
+
{ },
|
|
81634
|
+
opts['body'],
|
|
81635
|
+
['PureCloud OAuth'],
|
|
81636
|
+
['application/json'],
|
|
81637
|
+
['application/json']
|
|
81638
|
+
);
|
|
81639
|
+
}
|
|
81640
|
+
|
|
81110
81641
|
/**
|
|
81111
81642
|
* Delete the entries of the historical data imports in the organization
|
|
81112
81643
|
*
|
|
@@ -82358,7 +82889,7 @@ class WorkforceManagementApi {
|
|
|
82358
82889
|
* </pre>
|
|
82359
82890
|
* </p>
|
|
82360
82891
|
* @module purecloud-platform-client-v2/index
|
|
82361
|
-
* @version
|
|
82892
|
+
* @version 216.0.0
|
|
82362
82893
|
*/
|
|
82363
82894
|
class platformClient {
|
|
82364
82895
|
constructor() {
|