purecloud-platform-client-v2 169.0.0 → 169.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 +2 -2
- package/dist/node/purecloud-platform-client-v2.js +24865 -20195
- package/dist/web-amd/purecloud-platform-client-v2.js +24865 -20195
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +24865 -20195
- package/dist/web-cjs/purecloud-platform-client-v2.js +24865 -20195
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +2314 -2
- 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 +1418 -227
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +142 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +3 -3
- 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 +4 -4
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +171 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.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 +114 -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 +114 -4
- 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 +333 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +260 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +198 -21
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +5 -5
- 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 +6 -6
- 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 +8 -8
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +53 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +136 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +174 -10
- 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 +199 -6
- 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 +80 -2
- 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 +1282 -0
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +32 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +33 -2
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +47 -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 +172 -7
- 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 +6 -6
- 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 +6 -6
- package/src/purecloud-platform-client-v2/index.js +7 -1
|
@@ -5,7 +5,7 @@ class ArchitectApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Architect service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8
|
-
* @version 169.
|
|
8
|
+
* @version 169.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1772,6 +1772,87 @@ class ArchitectApi {
|
|
|
1772
1772
|
);
|
|
1773
1773
|
}
|
|
1774
1774
|
|
|
1775
|
+
/**
|
|
1776
|
+
* Start a process (job) to prepare a download of a singular flow execution data instance by Id
|
|
1777
|
+
* Returns a JobResult object that contains an ID that can be used to check status and/or download links when the process (job) is complete.
|
|
1778
|
+
* @param {String} instanceId Instance ID
|
|
1779
|
+
* @param {Object} opts Optional parameters
|
|
1780
|
+
* @param {Object} opts.expand Expand various details.
|
|
1781
|
+
* Preview Endpoint
|
|
1782
|
+
*/
|
|
1783
|
+
getFlowsInstance(instanceId, opts) {
|
|
1784
|
+
opts = opts || {};
|
|
1785
|
+
|
|
1786
|
+
// verify the required parameter 'instanceId' is set
|
|
1787
|
+
if (instanceId === undefined || instanceId === null) {
|
|
1788
|
+
throw 'Missing the required parameter "instanceId" when calling getFlowsInstance';
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
return this.apiClient.callApi(
|
|
1792
|
+
'/api/v2/flows/instances/{instanceId}',
|
|
1793
|
+
'GET',
|
|
1794
|
+
{ 'instanceId': instanceId },
|
|
1795
|
+
{ 'expand': opts['expand'] },
|
|
1796
|
+
{ },
|
|
1797
|
+
{ },
|
|
1798
|
+
null,
|
|
1799
|
+
['PureCloud OAuth'],
|
|
1800
|
+
['application/json'],
|
|
1801
|
+
['application/json']
|
|
1802
|
+
);
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* Get the status and/or results of an asynchronous flow execution data retrieval job
|
|
1807
|
+
*
|
|
1808
|
+
* @param {String} jobId The asynchronous job ID
|
|
1809
|
+
* Preview Endpoint
|
|
1810
|
+
*/
|
|
1811
|
+
getFlowsInstancesJob(jobId) {
|
|
1812
|
+
// verify the required parameter 'jobId' is set
|
|
1813
|
+
if (jobId === undefined || jobId === null) {
|
|
1814
|
+
throw 'Missing the required parameter "jobId" when calling getFlowsInstancesJob';
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
return this.apiClient.callApi(
|
|
1818
|
+
'/api/v2/flows/instances/jobs/{jobId}',
|
|
1819
|
+
'GET',
|
|
1820
|
+
{ 'jobId': jobId },
|
|
1821
|
+
{ },
|
|
1822
|
+
{ },
|
|
1823
|
+
{ },
|
|
1824
|
+
null,
|
|
1825
|
+
['PureCloud OAuth'],
|
|
1826
|
+
['application/json'],
|
|
1827
|
+
['application/json']
|
|
1828
|
+
);
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Retrieve a list of capabilities that the org can use to query for execution data
|
|
1833
|
+
* Returns the queryable parameters that can be used to build a query for execution data.
|
|
1834
|
+
* @param {Object} opts Optional parameters
|
|
1835
|
+
* @param {Object} opts.expand Expand various query types.
|
|
1836
|
+
* Preview Endpoint
|
|
1837
|
+
*/
|
|
1838
|
+
getFlowsInstancesQuerycapabilities(opts) {
|
|
1839
|
+
opts = opts || {};
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
return this.apiClient.callApi(
|
|
1843
|
+
'/api/v2/flows/instances/querycapabilities',
|
|
1844
|
+
'GET',
|
|
1845
|
+
{ },
|
|
1846
|
+
{ 'expand': opts['expand'] },
|
|
1847
|
+
{ },
|
|
1848
|
+
{ },
|
|
1849
|
+
null,
|
|
1850
|
+
['PureCloud OAuth'],
|
|
1851
|
+
['application/json'],
|
|
1852
|
+
['application/json']
|
|
1853
|
+
);
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1775
1856
|
/**
|
|
1776
1857
|
* Fetch Architect Job Status
|
|
1777
1858
|
*
|
|
@@ -2603,6 +2684,66 @@ class ArchitectApi {
|
|
|
2603
2684
|
);
|
|
2604
2685
|
}
|
|
2605
2686
|
|
|
2687
|
+
/**
|
|
2688
|
+
* Start a process (job) that will prepare a list of execution data IDs for download.
|
|
2689
|
+
* Returns a JobResult object that contains an ID that can be used to check status and/or download links when the process (job) is complete.
|
|
2690
|
+
* @param {Object} body Requested Flow Ids
|
|
2691
|
+
* @param {Object} opts Optional parameters
|
|
2692
|
+
* @param {Object} opts.expand Expand various query types.
|
|
2693
|
+
* Preview Endpoint
|
|
2694
|
+
*/
|
|
2695
|
+
postFlowsInstancesJobs(body, opts) {
|
|
2696
|
+
opts = opts || {};
|
|
2697
|
+
|
|
2698
|
+
// verify the required parameter 'body' is set
|
|
2699
|
+
if (body === undefined || body === null) {
|
|
2700
|
+
throw 'Missing the required parameter "body" when calling postFlowsInstancesJobs';
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
return this.apiClient.callApi(
|
|
2704
|
+
'/api/v2/flows/instances/jobs',
|
|
2705
|
+
'POST',
|
|
2706
|
+
{ },
|
|
2707
|
+
{ 'expand': opts['expand'] },
|
|
2708
|
+
{ },
|
|
2709
|
+
{ },
|
|
2710
|
+
body,
|
|
2711
|
+
['PureCloud OAuth'],
|
|
2712
|
+
['application/json'],
|
|
2713
|
+
['application/json']
|
|
2714
|
+
);
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
/**
|
|
2718
|
+
* Query the database of existing flow histories to look for particular flow criteria
|
|
2719
|
+
* Returns a list of matching flow histories up to 200 max.
|
|
2720
|
+
* @param {Object} body query
|
|
2721
|
+
* @param {Object} opts Optional parameters
|
|
2722
|
+
* @param {Boolean} opts.indexOnly indexes only
|
|
2723
|
+
* Preview Endpoint
|
|
2724
|
+
*/
|
|
2725
|
+
postFlowsInstancesQuery(body, opts) {
|
|
2726
|
+
opts = opts || {};
|
|
2727
|
+
|
|
2728
|
+
// verify the required parameter 'body' is set
|
|
2729
|
+
if (body === undefined || body === null) {
|
|
2730
|
+
throw 'Missing the required parameter "body" when calling postFlowsInstancesQuery';
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
return this.apiClient.callApi(
|
|
2734
|
+
'/api/v2/flows/instances/query',
|
|
2735
|
+
'POST',
|
|
2736
|
+
{ },
|
|
2737
|
+
{ 'indexOnly': opts['indexOnly'] },
|
|
2738
|
+
{ },
|
|
2739
|
+
{ },
|
|
2740
|
+
body,
|
|
2741
|
+
['PureCloud OAuth'],
|
|
2742
|
+
['application/json'],
|
|
2743
|
+
['application/json']
|
|
2744
|
+
);
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2606
2747
|
/**
|
|
2607
2748
|
* Register Architect Job. Returns a URL where a file, such as an Architect flow YAML file, can be PUT which will then initiate the job.
|
|
2608
2749
|
*
|
|
@@ -5,7 +5,7 @@ class AuthorizationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Authorization service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
8
|
-
* @version 169.
|
|
8
|
+
* @version 169.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -246,7 +246,7 @@ class AuthorizationApi {
|
|
|
246
246
|
* @param {String} permission The permission string, including the object to access, e.g. routing:queue:view
|
|
247
247
|
* @param {Object} opts Optional parameters
|
|
248
248
|
* @param {String} opts.name Search term to filter by division name
|
|
249
|
-
|
|
249
|
+
* @deprecated
|
|
250
250
|
*/
|
|
251
251
|
getAuthorizationDivisionspermittedMe(permission, opts) {
|
|
252
252
|
opts = opts || {};
|
|
@@ -308,7 +308,7 @@ class AuthorizationApi {
|
|
|
308
308
|
* @param {Object} opts Optional parameters
|
|
309
309
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
310
310
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
311
|
-
|
|
311
|
+
* @deprecated
|
|
312
312
|
*/
|
|
313
313
|
getAuthorizationDivisionspermittedPagedSubjectId(subjectId, permission, opts) {
|
|
314
314
|
opts = opts || {};
|
|
@@ -5,7 +5,7 @@ class ChatApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Chat service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
8
|
-
* @version 169.
|
|
8
|
+
* @version 169.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -23,7 +23,7 @@ class ChatApi {
|
|
|
23
23
|
/**
|
|
24
24
|
* Get Chat Settings.
|
|
25
25
|
* This route is deprecated, please use /chats/settings instead
|
|
26
|
-
|
|
26
|
+
* @deprecated
|
|
27
27
|
*/
|
|
28
28
|
getChatSettings() {
|
|
29
29
|
|
|
@@ -65,7 +65,7 @@ class ChatApi {
|
|
|
65
65
|
* Patch Chat Settings.
|
|
66
66
|
* This route is deprecated, please use /chats/settings instead
|
|
67
67
|
* @param {Object} body Chat
|
|
68
|
-
|
|
68
|
+
* @deprecated
|
|
69
69
|
*/
|
|
70
70
|
patchChatSettings(body) {
|
|
71
71
|
// verify the required parameter 'body' is set
|
|
@@ -116,7 +116,7 @@ class ChatApi {
|
|
|
116
116
|
* Update Chat Settings.
|
|
117
117
|
* This route is deprecated, please use /chats/settings instead
|
|
118
118
|
* @param {Object} body Chat
|
|
119
|
-
|
|
119
|
+
* @deprecated
|
|
120
120
|
*/
|
|
121
121
|
putChatSettings(body) {
|
|
122
122
|
// verify the required parameter 'body' is set
|
|
@@ -5,7 +5,7 @@ class ContentManagementApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* ContentManagement service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
8
|
-
* @version 169.
|
|
8
|
+
* @version 169.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -292,7 +292,7 @@ class ContentManagementApi {
|
|
|
292
292
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
293
293
|
* @param {String} opts.sortBy name or dateCreated
|
|
294
294
|
* @param {String} opts.sortOrder ascending or descending (default to ascending)
|
|
295
|
-
|
|
295
|
+
* @deprecated
|
|
296
296
|
*/
|
|
297
297
|
getContentmanagementDocuments(workspaceId, opts) {
|
|
298
298
|
opts = opts || {};
|
|
@@ -5,7 +5,7 @@ class ConversationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Conversations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
8
|
-
* @version 169.
|
|
8
|
+
* @version 169.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -345,6 +345,62 @@ class ConversationsApi {
|
|
|
345
345
|
);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Get status for async query for conversation aggregates
|
|
350
|
+
*
|
|
351
|
+
* @param {String} jobId jobId
|
|
352
|
+
* Preview Endpoint
|
|
353
|
+
*/
|
|
354
|
+
getAnalyticsConversationsAggregatesJob(jobId) {
|
|
355
|
+
// verify the required parameter 'jobId' is set
|
|
356
|
+
if (jobId === undefined || jobId === null) {
|
|
357
|
+
throw 'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJob';
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
return this.apiClient.callApi(
|
|
361
|
+
'/api/v2/analytics/conversations/aggregates/jobs/{jobId}',
|
|
362
|
+
'GET',
|
|
363
|
+
{ 'jobId': jobId },
|
|
364
|
+
{ },
|
|
365
|
+
{ },
|
|
366
|
+
{ },
|
|
367
|
+
null,
|
|
368
|
+
['PureCloud OAuth'],
|
|
369
|
+
['application/json'],
|
|
370
|
+
['application/json']
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Fetch a page of results for an async aggregates query
|
|
376
|
+
*
|
|
377
|
+
* @param {String} jobId jobId
|
|
378
|
+
* @param {Object} opts Optional parameters
|
|
379
|
+
* @param {String} opts.cursor Cursor token to retrieve next page
|
|
380
|
+
* Preview Endpoint
|
|
381
|
+
*/
|
|
382
|
+
getAnalyticsConversationsAggregatesJobResults(jobId, opts) {
|
|
383
|
+
opts = opts || {};
|
|
384
|
+
|
|
385
|
+
// verify the required parameter 'jobId' is set
|
|
386
|
+
if (jobId === undefined || jobId === null) {
|
|
387
|
+
throw 'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJobResults';
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
return this.apiClient.callApi(
|
|
391
|
+
'/api/v2/analytics/conversations/aggregates/jobs/{jobId}/results',
|
|
392
|
+
'GET',
|
|
393
|
+
{ 'jobId': jobId },
|
|
394
|
+
{ 'cursor': opts['cursor'] },
|
|
395
|
+
{ },
|
|
396
|
+
{ },
|
|
397
|
+
null,
|
|
398
|
+
['PureCloud OAuth'],
|
|
399
|
+
['application/json'],
|
|
400
|
+
['application/json']
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
|
|
348
404
|
/**
|
|
349
405
|
* Gets multiple conversations by id
|
|
350
406
|
*
|
|
@@ -2443,6 +2499,32 @@ class ConversationsApi {
|
|
|
2443
2499
|
);
|
|
2444
2500
|
}
|
|
2445
2501
|
|
|
2502
|
+
/**
|
|
2503
|
+
* Get video conference details (e.g. the current number of active participants).
|
|
2504
|
+
*
|
|
2505
|
+
* @param {String} conferenceId conferenceId
|
|
2506
|
+
* Preview Endpoint
|
|
2507
|
+
*/
|
|
2508
|
+
getConversationsVideoDetails(conferenceId) {
|
|
2509
|
+
// verify the required parameter 'conferenceId' is set
|
|
2510
|
+
if (conferenceId === undefined || conferenceId === null) {
|
|
2511
|
+
throw 'Missing the required parameter "conferenceId" when calling getConversationsVideoDetails';
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
return this.apiClient.callApi(
|
|
2515
|
+
'/api/v2/conversations/videos/{conferenceId}/details',
|
|
2516
|
+
'GET',
|
|
2517
|
+
{ 'conferenceId': conferenceId },
|
|
2518
|
+
{ },
|
|
2519
|
+
{ },
|
|
2520
|
+
{ },
|
|
2521
|
+
null,
|
|
2522
|
+
['PureCloud OAuth'],
|
|
2523
|
+
['application/json'],
|
|
2524
|
+
['application/json']
|
|
2525
|
+
);
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2446
2528
|
/**
|
|
2447
2529
|
* Get the wrap-up for this conversation communication.
|
|
2448
2530
|
*
|
|
@@ -3754,6 +3836,63 @@ class ConversationsApi {
|
|
|
3754
3836
|
);
|
|
3755
3837
|
}
|
|
3756
3838
|
|
|
3839
|
+
/**
|
|
3840
|
+
* Query for conversation activity observations
|
|
3841
|
+
*
|
|
3842
|
+
* @param {Object} body query
|
|
3843
|
+
* @param {Object} opts Optional parameters
|
|
3844
|
+
* @param {Number} opts.pageSize The desired page size
|
|
3845
|
+
* @param {Number} opts.pageNumber The desired page number
|
|
3846
|
+
* Preview Endpoint
|
|
3847
|
+
*/
|
|
3848
|
+
postAnalyticsConversationsActivityQuery(body, opts) {
|
|
3849
|
+
opts = opts || {};
|
|
3850
|
+
|
|
3851
|
+
// verify the required parameter 'body' is set
|
|
3852
|
+
if (body === undefined || body === null) {
|
|
3853
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
return this.apiClient.callApi(
|
|
3857
|
+
'/api/v2/analytics/conversations/activity/query',
|
|
3858
|
+
'POST',
|
|
3859
|
+
{ },
|
|
3860
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
3861
|
+
{ },
|
|
3862
|
+
{ },
|
|
3863
|
+
body,
|
|
3864
|
+
['PureCloud OAuth'],
|
|
3865
|
+
['application/json'],
|
|
3866
|
+
['application/json']
|
|
3867
|
+
);
|
|
3868
|
+
}
|
|
3869
|
+
|
|
3870
|
+
/**
|
|
3871
|
+
* Query for conversation aggregates asynchronously
|
|
3872
|
+
*
|
|
3873
|
+
* @param {Object} body query
|
|
3874
|
+
* Preview Endpoint
|
|
3875
|
+
*/
|
|
3876
|
+
postAnalyticsConversationsAggregatesJobs(body) {
|
|
3877
|
+
// verify the required parameter 'body' is set
|
|
3878
|
+
if (body === undefined || body === null) {
|
|
3879
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesJobs';
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3882
|
+
return this.apiClient.callApi(
|
|
3883
|
+
'/api/v2/analytics/conversations/aggregates/jobs',
|
|
3884
|
+
'POST',
|
|
3885
|
+
{ },
|
|
3886
|
+
{ },
|
|
3887
|
+
{ },
|
|
3888
|
+
{ },
|
|
3889
|
+
body,
|
|
3890
|
+
['PureCloud OAuth'],
|
|
3891
|
+
['application/json'],
|
|
3892
|
+
['application/json']
|
|
3893
|
+
);
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3757
3896
|
/**
|
|
3758
3897
|
* Query for conversation aggregates
|
|
3759
3898
|
*
|
|
@@ -5148,6 +5287,37 @@ class ConversationsApi {
|
|
|
5148
5287
|
);
|
|
5149
5288
|
}
|
|
5150
5289
|
|
|
5290
|
+
/**
|
|
5291
|
+
* Listen in on the conversation from the point of view of a given participant.
|
|
5292
|
+
*
|
|
5293
|
+
* @param {String} conversationId conversationId
|
|
5294
|
+
* @param {String} participantId participantId
|
|
5295
|
+
* Preview Endpoint
|
|
5296
|
+
*/
|
|
5297
|
+
postConversationsMessageParticipantMonitor(conversationId, participantId) {
|
|
5298
|
+
// verify the required parameter 'conversationId' is set
|
|
5299
|
+
if (conversationId === undefined || conversationId === null) {
|
|
5300
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';
|
|
5301
|
+
}
|
|
5302
|
+
// verify the required parameter 'participantId' is set
|
|
5303
|
+
if (participantId === undefined || participantId === null) {
|
|
5304
|
+
throw 'Missing the required parameter "participantId" when calling postConversationsMessageParticipantMonitor';
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
return this.apiClient.callApi(
|
|
5308
|
+
'/api/v2/conversations/messages/{conversationId}/participants/{participantId}/monitor',
|
|
5309
|
+
'POST',
|
|
5310
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
5311
|
+
{ },
|
|
5312
|
+
{ },
|
|
5313
|
+
{ },
|
|
5314
|
+
null,
|
|
5315
|
+
['PureCloud OAuth'],
|
|
5316
|
+
['application/json'],
|
|
5317
|
+
['application/json']
|
|
5318
|
+
);
|
|
5319
|
+
}
|
|
5320
|
+
|
|
5151
5321
|
/**
|
|
5152
5322
|
* Replace this participant with the specified user and/or address
|
|
5153
5323
|
*
|
|
@@ -5,7 +5,7 @@ class FlowsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Flows service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
8
|
-
* @version 169.
|
|
8
|
+
* @version 169.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,6 +20,119 @@ class FlowsApi {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Get status for async query for Flow aggregates
|
|
25
|
+
*
|
|
26
|
+
* @param {String} jobId jobId
|
|
27
|
+
* Preview Endpoint
|
|
28
|
+
*/
|
|
29
|
+
getAnalyticsFlowsAggregatesJob(jobId) {
|
|
30
|
+
// verify the required parameter 'jobId' is set
|
|
31
|
+
if (jobId === undefined || jobId === null) {
|
|
32
|
+
throw 'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return this.apiClient.callApi(
|
|
36
|
+
'/api/v2/analytics/flows/aggregates/jobs/{jobId}',
|
|
37
|
+
'GET',
|
|
38
|
+
{ 'jobId': jobId },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
{ },
|
|
42
|
+
null,
|
|
43
|
+
['PureCloud OAuth'],
|
|
44
|
+
['application/json'],
|
|
45
|
+
['application/json']
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Fetch a page of results for an async aggregates query
|
|
51
|
+
*
|
|
52
|
+
* @param {String} jobId jobId
|
|
53
|
+
* @param {Object} opts Optional parameters
|
|
54
|
+
* @param {String} opts.cursor Cursor token to retrieve next page
|
|
55
|
+
* Preview Endpoint
|
|
56
|
+
*/
|
|
57
|
+
getAnalyticsFlowsAggregatesJobResults(jobId, opts) {
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
|
|
60
|
+
// verify the required parameter 'jobId' is set
|
|
61
|
+
if (jobId === undefined || jobId === null) {
|
|
62
|
+
throw 'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJobResults';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return this.apiClient.callApi(
|
|
66
|
+
'/api/v2/analytics/flows/aggregates/jobs/{jobId}/results',
|
|
67
|
+
'GET',
|
|
68
|
+
{ 'jobId': jobId },
|
|
69
|
+
{ 'cursor': opts['cursor'] },
|
|
70
|
+
{ },
|
|
71
|
+
{ },
|
|
72
|
+
null,
|
|
73
|
+
['PureCloud OAuth'],
|
|
74
|
+
['application/json'],
|
|
75
|
+
['application/json']
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Query for flow activity observations
|
|
81
|
+
*
|
|
82
|
+
* @param {Object} body query
|
|
83
|
+
* @param {Object} opts Optional parameters
|
|
84
|
+
* @param {Number} opts.pageSize The desired page size
|
|
85
|
+
* @param {Number} opts.pageNumber The desired page number
|
|
86
|
+
* Preview Endpoint
|
|
87
|
+
*/
|
|
88
|
+
postAnalyticsFlowsActivityQuery(body, opts) {
|
|
89
|
+
opts = opts || {};
|
|
90
|
+
|
|
91
|
+
// verify the required parameter 'body' is set
|
|
92
|
+
if (body === undefined || body === null) {
|
|
93
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return this.apiClient.callApi(
|
|
97
|
+
'/api/v2/analytics/flows/activity/query',
|
|
98
|
+
'POST',
|
|
99
|
+
{ },
|
|
100
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
101
|
+
{ },
|
|
102
|
+
{ },
|
|
103
|
+
body,
|
|
104
|
+
['PureCloud OAuth'],
|
|
105
|
+
['application/json'],
|
|
106
|
+
['application/json']
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Query for flow aggregates asynchronously
|
|
112
|
+
*
|
|
113
|
+
* @param {Object} body query
|
|
114
|
+
* Preview Endpoint
|
|
115
|
+
*/
|
|
116
|
+
postAnalyticsFlowsAggregatesJobs(body) {
|
|
117
|
+
// verify the required parameter 'body' is set
|
|
118
|
+
if (body === undefined || body === null) {
|
|
119
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesJobs';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return this.apiClient.callApi(
|
|
123
|
+
'/api/v2/analytics/flows/aggregates/jobs',
|
|
124
|
+
'POST',
|
|
125
|
+
{ },
|
|
126
|
+
{ },
|
|
127
|
+
{ },
|
|
128
|
+
{ },
|
|
129
|
+
body,
|
|
130
|
+
['PureCloud OAuth'],
|
|
131
|
+
['application/json'],
|
|
132
|
+
['application/json']
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
23
136
|
/**
|
|
24
137
|
* Query for flow aggregates
|
|
25
138
|
*
|