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
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Configuration from './configuration.js';
|
|
2
|
-
import https from 'https';
|
|
3
2
|
import DefaultHttpClient from './DefaultHttpClient.js';
|
|
4
3
|
import AbstractHttpClient from './AbstractHttpClient.js';
|
|
5
4
|
import HttpRequestOptions from './HttpRequestOptions.js';
|
|
@@ -7,7 +6,7 @@ import { default as qs } from 'qs';
|
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @module purecloud-platform-client-v2/ApiClient
|
|
10
|
-
* @version 212.
|
|
9
|
+
* @version 212.1.0
|
|
11
10
|
*/
|
|
12
11
|
class ApiClient {
|
|
13
12
|
/**
|
|
@@ -254,11 +253,11 @@ class ApiClient {
|
|
|
254
253
|
|
|
255
254
|
agentOptions.rejectUnauthorized = true
|
|
256
255
|
|
|
257
|
-
this.proxyAgent = new https.Agent(agentOptions);
|
|
256
|
+
this.proxyAgent = new require('https').Agent(agentOptions);
|
|
258
257
|
const httpClient = this.getHttpClient();
|
|
259
258
|
httpClient.setHttpsAgent(this.proxyAgent);
|
|
260
259
|
} else {
|
|
261
|
-
throw new Error("
|
|
260
|
+
throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.");
|
|
262
261
|
}
|
|
263
262
|
}
|
|
264
263
|
|
|
@@ -269,24 +268,28 @@ class ApiClient {
|
|
|
269
268
|
* @param {string} caContent - content for public certs
|
|
270
269
|
*/
|
|
271
270
|
setMTLSContents(certContent, keyContent, caContent) {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
271
|
+
if (typeof window === 'undefined') {
|
|
272
|
+
const agentOptions = {}
|
|
273
|
+
if (certContent) {
|
|
274
|
+
agentOptions.cert = certContent;
|
|
275
|
+
}
|
|
276
276
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
if (keyContent) {
|
|
278
|
+
agentOptions.key = keyContent;
|
|
279
|
+
}
|
|
280
280
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
if (caContent) {
|
|
282
|
+
agentOptions.ca = caContent;
|
|
283
|
+
}
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
agentOptions.rejectUnauthorized = true
|
|
286
286
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
287
|
+
this.proxyAgent = new require('https').Agent(agentOptions);
|
|
288
|
+
const httpClient = this.getHttpClient();
|
|
289
|
+
httpClient.setHttpsAgent(this.proxyAgent);
|
|
290
|
+
} else {
|
|
291
|
+
throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.");
|
|
292
|
+
}
|
|
290
293
|
}
|
|
291
294
|
|
|
292
295
|
/**
|
|
@@ -5,7 +5,7 @@ class AnalyticsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Analytics service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
8
|
-
* @version 212.
|
|
8
|
+
* @version 212.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -2352,6 +2352,31 @@ class AnalyticsApi {
|
|
|
2352
2352
|
);
|
|
2353
2353
|
}
|
|
2354
2354
|
|
|
2355
|
+
/**
|
|
2356
|
+
* Query for resolution aggregates
|
|
2357
|
+
*
|
|
2358
|
+
* @param {Object} body query
|
|
2359
|
+
*/
|
|
2360
|
+
postAnalyticsResolutionsAggregatesQuery(body) {
|
|
2361
|
+
// verify the required parameter 'body' is set
|
|
2362
|
+
if (body === undefined || body === null) {
|
|
2363
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsResolutionsAggregatesQuery';
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
return this.apiClient.callApi(
|
|
2367
|
+
'/api/v2/analytics/resolutions/aggregates/query',
|
|
2368
|
+
'POST',
|
|
2369
|
+
{ },
|
|
2370
|
+
{ },
|
|
2371
|
+
{ },
|
|
2372
|
+
{ },
|
|
2373
|
+
body,
|
|
2374
|
+
['PureCloud OAuth'],
|
|
2375
|
+
['application/json'],
|
|
2376
|
+
['application/json']
|
|
2377
|
+
);
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2355
2380
|
/**
|
|
2356
2381
|
* Query for user activity observations
|
|
2357
2382
|
*
|
|
@@ -5,7 +5,7 @@ class GamificationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Gamification service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
8
|
-
* @version 212.
|
|
8
|
+
* @version 212.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -344,6 +344,62 @@ class GamificationApi {
|
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Get insights rankings
|
|
349
|
+
*
|
|
350
|
+
* @param {Object} filterType Filter type for the query request.
|
|
351
|
+
* @param {String} filterId ID for the filter type.
|
|
352
|
+
* @param {Object} granularity Granularity
|
|
353
|
+
* @param {String} comparativePeriodStartWorkday The start work day of comparative period. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
354
|
+
* @param {String} primaryPeriodStartWorkday The start work day of primary period. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
355
|
+
* @param {Object} sortKey Sort key
|
|
356
|
+
* @param {Object} opts Optional parameters
|
|
357
|
+
* @param {String} opts.sortMetricId Sort Metric Id
|
|
358
|
+
* @param {Number} opts.sectionSize The number of top and bottom users to return before ties
|
|
359
|
+
* @param {String} opts.userIds A list of up to 100 comma-separated user Ids
|
|
360
|
+
*/
|
|
361
|
+
getGamificationInsightsRankings(filterType, filterId, granularity, comparativePeriodStartWorkday, primaryPeriodStartWorkday, sortKey, opts) {
|
|
362
|
+
opts = opts || {};
|
|
363
|
+
|
|
364
|
+
// verify the required parameter 'filterType' is set
|
|
365
|
+
if (filterType === undefined || filterType === null) {
|
|
366
|
+
throw 'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';
|
|
367
|
+
}
|
|
368
|
+
// verify the required parameter 'filterId' is set
|
|
369
|
+
if (filterId === undefined || filterId === null) {
|
|
370
|
+
throw 'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';
|
|
371
|
+
}
|
|
372
|
+
// verify the required parameter 'granularity' is set
|
|
373
|
+
if (granularity === undefined || granularity === null) {
|
|
374
|
+
throw 'Missing the required parameter "granularity" when calling getGamificationInsightsRankings';
|
|
375
|
+
}
|
|
376
|
+
// verify the required parameter 'comparativePeriodStartWorkday' is set
|
|
377
|
+
if (comparativePeriodStartWorkday === undefined || comparativePeriodStartWorkday === null) {
|
|
378
|
+
throw 'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsRankings';
|
|
379
|
+
}
|
|
380
|
+
// verify the required parameter 'primaryPeriodStartWorkday' is set
|
|
381
|
+
if (primaryPeriodStartWorkday === undefined || primaryPeriodStartWorkday === null) {
|
|
382
|
+
throw 'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsRankings';
|
|
383
|
+
}
|
|
384
|
+
// verify the required parameter 'sortKey' is set
|
|
385
|
+
if (sortKey === undefined || sortKey === null) {
|
|
386
|
+
throw 'Missing the required parameter "sortKey" when calling getGamificationInsightsRankings';
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
return this.apiClient.callApi(
|
|
390
|
+
'/api/v2/gamification/insights/rankings',
|
|
391
|
+
'GET',
|
|
392
|
+
{ },
|
|
393
|
+
{ 'filterType': filterType,'filterId': filterId,'granularity': granularity,'comparativePeriodStartWorkday': comparativePeriodStartWorkday,'primaryPeriodStartWorkday': primaryPeriodStartWorkday,'sortKey': sortKey,'sortMetricId': opts['sortMetricId'],'sectionSize': opts['sectionSize'],'userIds': opts['userIds'] },
|
|
394
|
+
{ },
|
|
395
|
+
{ },
|
|
396
|
+
null,
|
|
397
|
+
['PureCloud OAuth'],
|
|
398
|
+
['application/json'],
|
|
399
|
+
['application/json']
|
|
400
|
+
);
|
|
401
|
+
}
|
|
402
|
+
|
|
347
403
|
/**
|
|
348
404
|
* Get insights user trend for the current user
|
|
349
405
|
*
|