purecloud-platform-client-v2 230.0.0 → 232.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 +22 -3
- package/dist/node/purecloud-platform-client-v2.js +1247 -141
- package/dist/web-amd/purecloud-platform-client-v2.js +1247 -141
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +449 -156
- package/dist/web-cjs/purecloud-platform-client-v2.js +571 -223
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1704 -518
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +31 -6
- package/src/purecloud-platform-client-v2/PureCloudRegionHosts.js +2 -0
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +160 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +25 -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 +83 -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/BusinessRulesApi.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 +238 -4
- 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 +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 +5 -2
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +28 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +187 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +7 -3
- 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 +108 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +22 -10
- 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 +241 -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 +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 -32
- 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 +7 -4
- 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 +31 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { default as qs } from 'qs';
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @module purecloud-platform-client-v2/ApiClient
|
|
9
|
-
* @version
|
|
9
|
+
* @version 232.0.0
|
|
10
10
|
*/
|
|
11
11
|
class ApiClient {
|
|
12
12
|
/**
|
|
@@ -72,6 +72,8 @@ class ApiClient {
|
|
|
72
72
|
MULTI: 'multi'
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
+
this.useLegacyParameterFilter = true;
|
|
76
|
+
|
|
75
77
|
/**
|
|
76
78
|
* @description Value is `true` if local storage exists. Otherwise, false.
|
|
77
79
|
*/
|
|
@@ -1190,12 +1192,35 @@ class ApiClient {
|
|
|
1190
1192
|
return Object.keys(query).reduce((url, key) => !query[key] ? url : `${url}&${key}=${query[key]}`, `${loginBasePath}/${path}?`);
|
|
1191
1193
|
}
|
|
1192
1194
|
|
|
1195
|
+
/**
|
|
1196
|
+
* @description If set to `true`, the ApiClient will continue to use its legacy approach for filtering method parameters (mapped to an API Endpoint's query parameter). This is option is meant to facilitate transition from legacy to current and accurate parameters filtering.
|
|
1197
|
+
* @param {boolean} useLegacyParameterFilter - `false` to use modern/accurate approach (default value), `true` to use legacy approach (i.e. parameters of boolean type and equal to false are ignored/filtered, parameters of type integer/number and equal to 0 are ignored/filtered)
|
|
1198
|
+
*/
|
|
1199
|
+
setUseLegacyParameterFilter(useLegacyParameterFilter) {
|
|
1200
|
+
this.useLegacyParameterFilter = useLegacyParameterFilter;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
getUseLegacyParameterFilter() {
|
|
1204
|
+
return this.useLegacyParameterFilter;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1193
1207
|
/**
|
|
1194
1208
|
* Returns a string representation for an actual parameter.
|
|
1195
1209
|
* @param param The actual parameter.
|
|
1196
1210
|
* @returns {String} The string representation of <code>param</code>.
|
|
1197
1211
|
*/
|
|
1198
1212
|
paramToString(param) {
|
|
1213
|
+
if (this.useLegacyParameterFilter !== true) {
|
|
1214
|
+
if (param !== null && param !== undefined) {
|
|
1215
|
+
if (typeof param === "boolean") {
|
|
1216
|
+
return param.toString().toLowerCase();
|
|
1217
|
+
} else if (param instanceof Boolean) {
|
|
1218
|
+
return param.toString().toLowerCase();
|
|
1219
|
+
} else if (typeof param === "number") {
|
|
1220
|
+
return param.toString();
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1199
1224
|
if (!param) {
|
|
1200
1225
|
return '';
|
|
1201
1226
|
}
|
|
@@ -1359,16 +1384,16 @@ class ApiClient {
|
|
|
1359
1384
|
|
|
1360
1385
|
switch (collectionFormat) {
|
|
1361
1386
|
case 'csv':
|
|
1362
|
-
return param.map(this.paramToString).join(',');
|
|
1387
|
+
return param.map((x) => this.paramToString(x)).join(',');
|
|
1363
1388
|
case 'ssv':
|
|
1364
|
-
return param.map(this.paramToString).join(' ');
|
|
1389
|
+
return param.map((x) => this.paramToString(x)).join(' ');
|
|
1365
1390
|
case 'tsv':
|
|
1366
|
-
return param.map(this.paramToString).join('\t');
|
|
1391
|
+
return param.map((x) => this.paramToString(x)).join('\t');
|
|
1367
1392
|
case 'pipes':
|
|
1368
|
-
return param.map(this.paramToString).join('|');
|
|
1393
|
+
return param.map((x) => this.paramToString(x)).join('|');
|
|
1369
1394
|
case 'multi':
|
|
1370
1395
|
// return the array directly as axios will handle it as expected
|
|
1371
|
-
return param.map(this.paramToString);
|
|
1396
|
+
return param.map((x) => this.paramToString(x));
|
|
1372
1397
|
default:
|
|
1373
1398
|
throw new Error(`Unknown collection format: ${collectionFormat}`);
|
|
1374
1399
|
}
|
|
@@ -5,7 +5,7 @@ class AIStudioApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* AIStudio service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 232.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,6 +20,31 @@ class AIStudioApi {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Delete a summary setting.
|
|
25
|
+
*
|
|
26
|
+
* @param {String} summarySettingId Summary setting id
|
|
27
|
+
*/
|
|
28
|
+
deleteConversationsSummariesSetting(summarySettingId) {
|
|
29
|
+
// verify the required parameter 'summarySettingId' is set
|
|
30
|
+
if (summarySettingId === undefined || summarySettingId === null || summarySettingId === '') {
|
|
31
|
+
throw 'Missing the required parameter "summarySettingId" when calling deleteConversationsSummariesSetting';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return this.apiClient.callApi(
|
|
35
|
+
'/api/v2/conversations/summaries/settings/{summarySettingId}',
|
|
36
|
+
'DELETE',
|
|
37
|
+
{ 'summarySettingId': summarySettingId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
null,
|
|
42
|
+
['PureCloud OAuth'],
|
|
43
|
+
['application/json'],
|
|
44
|
+
['application/json']
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
23
48
|
/**
|
|
24
49
|
* Start the deletion of a guide.
|
|
25
50
|
*
|
|
@@ -46,6 +71,60 @@ class AIStudioApi {
|
|
|
46
71
|
);
|
|
47
72
|
}
|
|
48
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Receive a summary setting.
|
|
76
|
+
*
|
|
77
|
+
* @param {String} summarySettingId Summary setting id
|
|
78
|
+
*/
|
|
79
|
+
getConversationsSummariesSetting(summarySettingId) {
|
|
80
|
+
// verify the required parameter 'summarySettingId' is set
|
|
81
|
+
if (summarySettingId === undefined || summarySettingId === null || summarySettingId === '') {
|
|
82
|
+
throw 'Missing the required parameter "summarySettingId" when calling getConversationsSummariesSetting';
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return this.apiClient.callApi(
|
|
86
|
+
'/api/v2/conversations/summaries/settings/{summarySettingId}',
|
|
87
|
+
'GET',
|
|
88
|
+
{ 'summarySettingId': summarySettingId },
|
|
89
|
+
{ },
|
|
90
|
+
{ },
|
|
91
|
+
{ },
|
|
92
|
+
null,
|
|
93
|
+
['PureCloud OAuth'],
|
|
94
|
+
['application/json'],
|
|
95
|
+
['application/json']
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Get all summary settings.
|
|
101
|
+
*
|
|
102
|
+
* @param {Object} opts Optional parameters
|
|
103
|
+
* @param {String} opts.language Filter by matching language - case insensitive.
|
|
104
|
+
* @param {String} opts.name Filter by partially matching name - case insensitive.
|
|
105
|
+
* @param {Object} opts.sortBy Sort by. Default value dateModified. (default to dateModified)
|
|
106
|
+
* @param {Object} opts.sortOrder Sort Order. Default value desc. (default to desc)
|
|
107
|
+
* @param {Number} opts.pageNumber Page number. (default to 1)
|
|
108
|
+
* @param {Number} opts.pageSize Page size. The maximum page size is 100. (default to 25)
|
|
109
|
+
*/
|
|
110
|
+
getConversationsSummariesSettings(opts) {
|
|
111
|
+
opts = opts || {};
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
return this.apiClient.callApi(
|
|
115
|
+
'/api/v2/conversations/summaries/settings',
|
|
116
|
+
'GET',
|
|
117
|
+
{ },
|
|
118
|
+
{ 'language': opts['language'],'name': opts['name'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
|
|
119
|
+
{ },
|
|
120
|
+
{ },
|
|
121
|
+
null,
|
|
122
|
+
['PureCloud OAuth'],
|
|
123
|
+
['application/json'],
|
|
124
|
+
['application/json']
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
49
128
|
/**
|
|
50
129
|
* Get guide.
|
|
51
130
|
*
|
|
@@ -294,6 +373,56 @@ class AIStudioApi {
|
|
|
294
373
|
);
|
|
295
374
|
}
|
|
296
375
|
|
|
376
|
+
/**
|
|
377
|
+
* Trigger summary preview event generation.
|
|
378
|
+
*
|
|
379
|
+
* @param {Object} body
|
|
380
|
+
*/
|
|
381
|
+
postConversationsSummariesPreview(body) {
|
|
382
|
+
// verify the required parameter 'body' is set
|
|
383
|
+
if (body === undefined || body === null) {
|
|
384
|
+
throw 'Missing the required parameter "body" when calling postConversationsSummariesPreview';
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
return this.apiClient.callApi(
|
|
388
|
+
'/api/v2/conversations/summaries/preview',
|
|
389
|
+
'POST',
|
|
390
|
+
{ },
|
|
391
|
+
{ },
|
|
392
|
+
{ },
|
|
393
|
+
{ },
|
|
394
|
+
body,
|
|
395
|
+
['PureCloud OAuth'],
|
|
396
|
+
['application/json'],
|
|
397
|
+
['application/json']
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Create a summary setting.
|
|
403
|
+
*
|
|
404
|
+
* @param {Object} body
|
|
405
|
+
*/
|
|
406
|
+
postConversationsSummariesSettings(body) {
|
|
407
|
+
// verify the required parameter 'body' is set
|
|
408
|
+
if (body === undefined || body === null) {
|
|
409
|
+
throw 'Missing the required parameter "body" when calling postConversationsSummariesSettings';
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
return this.apiClient.callApi(
|
|
413
|
+
'/api/v2/conversations/summaries/settings',
|
|
414
|
+
'POST',
|
|
415
|
+
{ },
|
|
416
|
+
{ },
|
|
417
|
+
{ },
|
|
418
|
+
{ },
|
|
419
|
+
body,
|
|
420
|
+
['PureCloud OAuth'],
|
|
421
|
+
['application/json'],
|
|
422
|
+
['application/json']
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
|
|
297
426
|
/**
|
|
298
427
|
* Start the publishing of a guide version.
|
|
299
428
|
*
|
|
@@ -412,6 +541,36 @@ class AIStudioApi {
|
|
|
412
541
|
);
|
|
413
542
|
}
|
|
414
543
|
|
|
544
|
+
/**
|
|
545
|
+
* Update a summary setting.
|
|
546
|
+
*
|
|
547
|
+
* @param {String} summarySettingId Summary setting id
|
|
548
|
+
* @param {Object} body
|
|
549
|
+
*/
|
|
550
|
+
putConversationsSummariesSetting(summarySettingId, body) {
|
|
551
|
+
// verify the required parameter 'summarySettingId' is set
|
|
552
|
+
if (summarySettingId === undefined || summarySettingId === null || summarySettingId === '') {
|
|
553
|
+
throw 'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';
|
|
554
|
+
}
|
|
555
|
+
// verify the required parameter 'body' is set
|
|
556
|
+
if (body === undefined || body === null) {
|
|
557
|
+
throw 'Missing the required parameter "body" when calling putConversationsSummariesSetting';
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
return this.apiClient.callApi(
|
|
561
|
+
'/api/v2/conversations/summaries/settings/{summarySettingId}',
|
|
562
|
+
'PUT',
|
|
563
|
+
{ 'summarySettingId': summarySettingId },
|
|
564
|
+
{ },
|
|
565
|
+
{ },
|
|
566
|
+
{ },
|
|
567
|
+
body,
|
|
568
|
+
['PureCloud OAuth'],
|
|
569
|
+
['application/json'],
|
|
570
|
+
['application/json']
|
|
571
|
+
);
|
|
572
|
+
}
|
|
573
|
+
|
|
415
574
|
}
|
|
416
575
|
|
|
417
576
|
|
|
@@ -5,7 +5,7 @@ class AgentCopilotApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* AgentCopilot service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 232.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -45,6 +45,30 @@ class AgentCopilotApi {
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Get information about the support of features for all the languages or only for a certain language.
|
|
50
|
+
*
|
|
51
|
+
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {String} opts.language Which language are the features supported for
|
|
53
|
+
*/
|
|
54
|
+
getAssistantsCopilotFeaturesupport(opts) {
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
return this.apiClient.callApi(
|
|
59
|
+
'/api/v2/assistants/copilot/featuresupport',
|
|
60
|
+
'GET',
|
|
61
|
+
{ },
|
|
62
|
+
{ 'language': opts['language'] },
|
|
63
|
+
{ },
|
|
64
|
+
{ },
|
|
65
|
+
null,
|
|
66
|
+
['PureCloud OAuth'],
|
|
67
|
+
['application/json'],
|
|
68
|
+
['application/json']
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
48
72
|
/**
|
|
49
73
|
* Update agent copilot configuration
|
|
50
74
|
*
|
|
@@ -5,7 +5,7 @@ class AnalyticsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Analytics service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 232.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -937,6 +937,62 @@ class AnalyticsApi {
|
|
|
937
937
|
);
|
|
938
938
|
}
|
|
939
939
|
|
|
940
|
+
/**
|
|
941
|
+
* Get analytics data warehouse file download
|
|
942
|
+
*
|
|
943
|
+
* @param {String} downloadId Unique file Id to download
|
|
944
|
+
* getAnalyticsDataextractionDownload is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
945
|
+
*/
|
|
946
|
+
getAnalyticsDataextractionDownload(downloadId) {
|
|
947
|
+
// verify the required parameter 'downloadId' is set
|
|
948
|
+
if (downloadId === undefined || downloadId === null || downloadId === '') {
|
|
949
|
+
throw 'Missing the required parameter "downloadId" when calling getAnalyticsDataextractionDownload';
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
return this.apiClient.callApi(
|
|
953
|
+
'/api/v2/analytics/dataextraction/downloads/{downloadId}',
|
|
954
|
+
'GET',
|
|
955
|
+
{ 'downloadId': downloadId },
|
|
956
|
+
{ },
|
|
957
|
+
{ },
|
|
958
|
+
{ },
|
|
959
|
+
null,
|
|
960
|
+
['PureCloud OAuth'],
|
|
961
|
+
['application/json'],
|
|
962
|
+
['application/json']
|
|
963
|
+
);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Get metadata on files available for extraction
|
|
968
|
+
*
|
|
969
|
+
* @param {Object} opts Optional parameters
|
|
970
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
971
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
972
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
973
|
+
* @param {String} opts.dataSchema Data schema like conversations
|
|
974
|
+
* @param {Date} opts.dateStart Start DateTime filter. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
975
|
+
* @param {Date} opts.dateEnd End DateTime filter. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
976
|
+
* getAnalyticsDataextractionDownloadsMetadata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
977
|
+
*/
|
|
978
|
+
getAnalyticsDataextractionDownloadsMetadata(opts) {
|
|
979
|
+
opts = opts || {};
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
return this.apiClient.callApi(
|
|
983
|
+
'/api/v2/analytics/dataextraction/downloads/metadata',
|
|
984
|
+
'GET',
|
|
985
|
+
{ },
|
|
986
|
+
{ 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'dataSchema': opts['dataSchema'],'dateStart': opts['dateStart'],'dateEnd': opts['dateEnd'] },
|
|
987
|
+
{ },
|
|
988
|
+
{ },
|
|
989
|
+
null,
|
|
990
|
+
['PureCloud OAuth'],
|
|
991
|
+
['application/json'],
|
|
992
|
+
['application/json']
|
|
993
|
+
);
|
|
994
|
+
}
|
|
995
|
+
|
|
940
996
|
/**
|
|
941
997
|
* Get analytics data retention setting
|
|
942
998
|
*
|
|
@@ -2229,6 +2285,32 @@ class AnalyticsApi {
|
|
|
2229
2285
|
);
|
|
2230
2286
|
}
|
|
2231
2287
|
|
|
2288
|
+
/**
|
|
2289
|
+
* Get download URLs for analytics data warehouse files
|
|
2290
|
+
*
|
|
2291
|
+
* @param {Object} body request
|
|
2292
|
+
* postAnalyticsDataextractionDownloadsBulk is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2293
|
+
*/
|
|
2294
|
+
postAnalyticsDataextractionDownloadsBulk(body) {
|
|
2295
|
+
// verify the required parameter 'body' is set
|
|
2296
|
+
if (body === undefined || body === null) {
|
|
2297
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsDataextractionDownloadsBulk';
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
return this.apiClient.callApi(
|
|
2301
|
+
'/api/v2/analytics/dataextraction/downloads/bulk',
|
|
2302
|
+
'POST',
|
|
2303
|
+
{ },
|
|
2304
|
+
{ },
|
|
2305
|
+
{ },
|
|
2306
|
+
{ },
|
|
2307
|
+
body,
|
|
2308
|
+
['PureCloud OAuth'],
|
|
2309
|
+
['application/json'],
|
|
2310
|
+
['application/json']
|
|
2311
|
+
);
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2232
2314
|
/**
|
|
2233
2315
|
* Query for evaluation aggregates asynchronously
|
|
2234
2316
|
*
|