purecloud-platform-client-v2 147.0.0 → 149.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 +2 -2
- package/dist/node/purecloud-platform-client-v2.js +454 -198
- package/dist/web-amd/purecloud-platform-client-v2.js +454 -198
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +454 -198
- package/dist/web-cjs/purecloud-platform-client-v2.js +455 -199
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +526 -312
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -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/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/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 -51
- 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 +3 -2
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -78
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +76 -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/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/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 +243 -0
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +56 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.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/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/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 +3 -2
- 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 +7 -3
- 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 +1 -1
- package/src/purecloud-platform-client-v2/index.js +7 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class GamificationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Gamification service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 149.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -298,31 +298,6 @@ class GamificationApi {
|
|
|
298
298
|
);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
/**
|
|
302
|
-
* All gamified metrics for a given profile
|
|
303
|
-
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
|
|
304
|
-
* @param {Object} opts Optional parameters
|
|
305
|
-
* @param {String} opts.performanceProfileId The profile id of the metrics you are trying to retrieve. The DEFAULT profile is used if nothing is given.
|
|
306
|
-
* @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
307
|
-
*/
|
|
308
|
-
getGamificationMetrics(opts) {
|
|
309
|
-
opts = opts || {};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return this.apiClient.callApi(
|
|
313
|
-
'/api/v2/gamification/metrics',
|
|
314
|
-
'GET',
|
|
315
|
-
{ },
|
|
316
|
-
{ 'performanceProfileId': opts['performanceProfileId'],'workday': opts['workday'] },
|
|
317
|
-
{ },
|
|
318
|
-
{ },
|
|
319
|
-
null,
|
|
320
|
-
['PureCloud OAuth'],
|
|
321
|
-
['application/json'],
|
|
322
|
-
['application/json']
|
|
323
|
-
);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
301
|
/**
|
|
327
302
|
* Performance profile by id
|
|
328
303
|
*
|
|
@@ -1378,31 +1353,6 @@ class GamificationApi {
|
|
|
1378
1353
|
);
|
|
1379
1354
|
}
|
|
1380
1355
|
|
|
1381
|
-
/**
|
|
1382
|
-
* Creates a gamified metric with a given metric definition and metric objective
|
|
1383
|
-
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
|
|
1384
|
-
* @param {Object} body Metric
|
|
1385
|
-
*/
|
|
1386
|
-
postGamificationMetrics(body) {
|
|
1387
|
-
// verify the required parameter 'body' is set
|
|
1388
|
-
if (body === undefined || body === null) {
|
|
1389
|
-
throw 'Missing the required parameter "body" when calling postGamificationMetrics';
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
return this.apiClient.callApi(
|
|
1393
|
-
'/api/v2/gamification/metrics',
|
|
1394
|
-
'POST',
|
|
1395
|
-
{ },
|
|
1396
|
-
{ },
|
|
1397
|
-
{ },
|
|
1398
|
-
{ },
|
|
1399
|
-
body,
|
|
1400
|
-
['PureCloud OAuth'],
|
|
1401
|
-
['application/json'],
|
|
1402
|
-
['application/json']
|
|
1403
|
-
);
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
1356
|
/**
|
|
1407
1357
|
* Activate a performance profile
|
|
1408
1358
|
*
|
|
@@ -5,7 +5,7 @@ class GroupsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Groups service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 149.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -275,6 +275,7 @@ class GroupsApi {
|
|
|
275
275
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
276
276
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
277
277
|
* @param {Array.<String>} opts.id id
|
|
278
|
+
* @param {Array.<String>} opts.jabberId A list of jabberIds to fetch by bulk (cannot be used with the id parameter)
|
|
278
279
|
* @param {Object} opts.sortOrder Ascending or descending sort order (default to ASC)
|
|
279
280
|
*/
|
|
280
281
|
getProfilesGroups(opts) {
|
|
@@ -285,7 +286,7 @@ class GroupsApi {
|
|
|
285
286
|
'/api/v2/profiles/groups',
|
|
286
287
|
'GET',
|
|
287
288
|
{ },
|
|
288
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'sortOrder': opts['sortOrder'] },
|
|
289
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'jabberId': this.apiClient.buildCollectionParam(opts['jabberId'], 'multi'),'sortOrder': opts['sortOrder'] },
|
|
289
290
|
{ },
|
|
290
291
|
{ },
|
|
291
292
|
null,
|
|
@@ -5,7 +5,7 @@ class IntegrationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Integrations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 149.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -763,59 +763,6 @@ class IntegrationsApi {
|
|
|
763
763
|
);
|
|
764
764
|
}
|
|
765
765
|
|
|
766
|
-
/**
|
|
767
|
-
* List all events
|
|
768
|
-
*
|
|
769
|
-
* @param {Object} opts Optional parameters
|
|
770
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
771
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
772
|
-
* @param {String} opts.sortBy Sort by (default to timestamp)
|
|
773
|
-
* @param {String} opts.sortOrder Order by (default to descending)
|
|
774
|
-
* @param {String} opts.entityId Include only events with this entity ID
|
|
775
|
-
*/
|
|
776
|
-
getIntegrationsEventlog(opts) {
|
|
777
|
-
opts = opts || {};
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
return this.apiClient.callApi(
|
|
781
|
-
'/api/v2/integrations/eventlog',
|
|
782
|
-
'GET',
|
|
783
|
-
{ },
|
|
784
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'entityId': opts['entityId'] },
|
|
785
|
-
{ },
|
|
786
|
-
{ },
|
|
787
|
-
null,
|
|
788
|
-
['PureCloud OAuth'],
|
|
789
|
-
['application/json'],
|
|
790
|
-
['application/json']
|
|
791
|
-
);
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* Get a single event
|
|
796
|
-
*
|
|
797
|
-
* @param {String} eventId Event Id
|
|
798
|
-
*/
|
|
799
|
-
getIntegrationsEventlogEventId(eventId) {
|
|
800
|
-
// verify the required parameter 'eventId' is set
|
|
801
|
-
if (eventId === undefined || eventId === null) {
|
|
802
|
-
throw 'Missing the required parameter "eventId" when calling getIntegrationsEventlogEventId';
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
return this.apiClient.callApi(
|
|
806
|
-
'/api/v2/integrations/eventlog/{eventId}',
|
|
807
|
-
'GET',
|
|
808
|
-
{ 'eventId': eventId },
|
|
809
|
-
{ },
|
|
810
|
-
{ },
|
|
811
|
-
{ },
|
|
812
|
-
null,
|
|
813
|
-
['PureCloud OAuth'],
|
|
814
|
-
['application/json'],
|
|
815
|
-
['application/json']
|
|
816
|
-
);
|
|
817
|
-
}
|
|
818
|
-
|
|
819
766
|
/**
|
|
820
767
|
* Get details about a Dialogflow agent
|
|
821
768
|
*
|
|
@@ -1539,30 +1486,6 @@ class IntegrationsApi {
|
|
|
1539
1486
|
);
|
|
1540
1487
|
}
|
|
1541
1488
|
|
|
1542
|
-
/**
|
|
1543
|
-
* Add a vendor connection
|
|
1544
|
-
*
|
|
1545
|
-
* @param {Object} opts Optional parameters
|
|
1546
|
-
* @param {Object} opts.body
|
|
1547
|
-
*/
|
|
1548
|
-
postIntegrationsWorkforcemanagementVendorconnection(opts) {
|
|
1549
|
-
opts = opts || {};
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
return this.apiClient.callApi(
|
|
1553
|
-
'/api/v2/integrations/workforcemanagement/vendorconnection',
|
|
1554
|
-
'POST',
|
|
1555
|
-
{ },
|
|
1556
|
-
{ },
|
|
1557
|
-
{ },
|
|
1558
|
-
{ },
|
|
1559
|
-
opts['body'],
|
|
1560
|
-
['PureCloud OAuth'],
|
|
1561
|
-
['application/json'],
|
|
1562
|
-
['application/json']
|
|
1563
|
-
);
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
1489
|
/**
|
|
1567
1490
|
* Update integration configuration.
|
|
1568
1491
|
*
|
|
@@ -5,7 +5,7 @@ class JourneyApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Journey service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 149.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -180,6 +180,56 @@ class JourneyApi {
|
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Get status of job.
|
|
185
|
+
*
|
|
186
|
+
* @param {String} jobId ID of the job.
|
|
187
|
+
*/
|
|
188
|
+
getJourneyActionmapsEstimatesJob(jobId) {
|
|
189
|
+
// verify the required parameter 'jobId' is set
|
|
190
|
+
if (jobId === undefined || jobId === null) {
|
|
191
|
+
throw 'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJob';
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return this.apiClient.callApi(
|
|
195
|
+
'/api/v2/journey/actionmaps/estimates/jobs/{jobId}',
|
|
196
|
+
'GET',
|
|
197
|
+
{ 'jobId': jobId },
|
|
198
|
+
{ },
|
|
199
|
+
{ },
|
|
200
|
+
{ },
|
|
201
|
+
null,
|
|
202
|
+
['PureCloud OAuth'],
|
|
203
|
+
['application/json'],
|
|
204
|
+
['application/json']
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Get estimates from completed job.
|
|
210
|
+
*
|
|
211
|
+
* @param {String} jobId ID of the job.
|
|
212
|
+
*/
|
|
213
|
+
getJourneyActionmapsEstimatesJobResults(jobId) {
|
|
214
|
+
// verify the required parameter 'jobId' is set
|
|
215
|
+
if (jobId === undefined || jobId === null) {
|
|
216
|
+
throw 'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJobResults';
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
return this.apiClient.callApi(
|
|
220
|
+
'/api/v2/journey/actionmaps/estimates/jobs/{jobId}/results',
|
|
221
|
+
'GET',
|
|
222
|
+
{ 'jobId': jobId },
|
|
223
|
+
{ },
|
|
224
|
+
{ },
|
|
225
|
+
{ },
|
|
226
|
+
null,
|
|
227
|
+
['PureCloud OAuth'],
|
|
228
|
+
['application/json'],
|
|
229
|
+
['application/json']
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
183
233
|
/**
|
|
184
234
|
* Retrieve a single action target.
|
|
185
235
|
*
|
|
@@ -638,6 +688,31 @@ class JourneyApi {
|
|
|
638
688
|
);
|
|
639
689
|
}
|
|
640
690
|
|
|
691
|
+
/**
|
|
692
|
+
* Query for estimates
|
|
693
|
+
*
|
|
694
|
+
* @param {Object} body audience estimator request
|
|
695
|
+
*/
|
|
696
|
+
postJourneyActionmapsEstimatesJobs(body) {
|
|
697
|
+
// verify the required parameter 'body' is set
|
|
698
|
+
if (body === undefined || body === null) {
|
|
699
|
+
throw 'Missing the required parameter "body" when calling postJourneyActionmapsEstimatesJobs';
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
return this.apiClient.callApi(
|
|
703
|
+
'/api/v2/journey/actionmaps/estimates/jobs',
|
|
704
|
+
'POST',
|
|
705
|
+
{ },
|
|
706
|
+
{ },
|
|
707
|
+
{ },
|
|
708
|
+
{ },
|
|
709
|
+
body,
|
|
710
|
+
['PureCloud OAuth'],
|
|
711
|
+
['application/json'],
|
|
712
|
+
['application/json']
|
|
713
|
+
);
|
|
714
|
+
}
|
|
715
|
+
|
|
641
716
|
/**
|
|
642
717
|
* Create a single action template.
|
|
643
718
|
*
|