purecloud-platform-client-v2 193.0.0 → 195.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 +748 -406
- package/dist/web-amd/purecloud-platform-client-v2.js +748 -406
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +253 -180
- package/dist/web-cjs/purecloud-platform-client-v2.js +253 -180
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +537 -453
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +4 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +147 -3
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +30 -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 +26 -316
- 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/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +7 -7
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +3 -2
- 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 +174 -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 +125 -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 -7
- 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/SpeechTextAnalyticsApi.js +165 -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 -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 +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { default as qs } from 'qs';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @module purecloud-platform-client-v2/ApiClient
|
|
7
|
-
* @version
|
|
7
|
+
* @version 195.0.0
|
|
8
8
|
*/
|
|
9
9
|
class ApiClient {
|
|
10
10
|
/**
|
|
@@ -1079,6 +1079,9 @@ class ApiClient {
|
|
|
1079
1079
|
if (param instanceof Date) {
|
|
1080
1080
|
return param.toJSON();
|
|
1081
1081
|
}
|
|
1082
|
+
if (param instanceof Boolean) {
|
|
1083
|
+
return param.toString().toLowerCase();
|
|
1084
|
+
}
|
|
1082
1085
|
return param.toString();
|
|
1083
1086
|
}
|
|
1084
1087
|
|
|
@@ -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 195.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -126,6 +126,62 @@ class AnalyticsApi {
|
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Get status for async query for agent copilot aggregates
|
|
131
|
+
*
|
|
132
|
+
* @param {String} jobId jobId
|
|
133
|
+
* getAnalyticsAgentcopilotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
134
|
+
*/
|
|
135
|
+
getAnalyticsAgentcopilotsAggregatesJob(jobId) {
|
|
136
|
+
// verify the required parameter 'jobId' is set
|
|
137
|
+
if (jobId === undefined || jobId === null) {
|
|
138
|
+
throw 'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJob';
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return this.apiClient.callApi(
|
|
142
|
+
'/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}',
|
|
143
|
+
'GET',
|
|
144
|
+
{ 'jobId': jobId },
|
|
145
|
+
{ },
|
|
146
|
+
{ },
|
|
147
|
+
{ },
|
|
148
|
+
null,
|
|
149
|
+
['PureCloud OAuth'],
|
|
150
|
+
['application/json'],
|
|
151
|
+
['application/json']
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Fetch a page of results for an async aggregates query
|
|
157
|
+
*
|
|
158
|
+
* @param {String} jobId jobId
|
|
159
|
+
* @param {Object} opts Optional parameters
|
|
160
|
+
* @param {String} opts.cursor Cursor token to retrieve next page
|
|
161
|
+
* getAnalyticsAgentcopilotsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
162
|
+
*/
|
|
163
|
+
getAnalyticsAgentcopilotsAggregatesJobResults(jobId, opts) {
|
|
164
|
+
opts = opts || {};
|
|
165
|
+
|
|
166
|
+
// verify the required parameter 'jobId' is set
|
|
167
|
+
if (jobId === undefined || jobId === null) {
|
|
168
|
+
throw 'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return this.apiClient.callApi(
|
|
172
|
+
'/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results',
|
|
173
|
+
'GET',
|
|
174
|
+
{ 'jobId': jobId },
|
|
175
|
+
{ 'cursor': opts['cursor'] },
|
|
176
|
+
{ },
|
|
177
|
+
{ },
|
|
178
|
+
null,
|
|
179
|
+
['PureCloud OAuth'],
|
|
180
|
+
['application/json'],
|
|
181
|
+
['application/json']
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
129
185
|
/**
|
|
130
186
|
* Get Reporting Turns (division aware).
|
|
131
187
|
* Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
|
|
@@ -884,6 +940,42 @@ class AnalyticsApi {
|
|
|
884
940
|
);
|
|
885
941
|
}
|
|
886
942
|
|
|
943
|
+
/**
|
|
944
|
+
* Get list of dashboard configurations
|
|
945
|
+
*
|
|
946
|
+
* @param {Object} dashboardType List dashboard of given type
|
|
947
|
+
* @param {Object} dashboardAccessFilter Filter dashboard based on the owner of dashboard
|
|
948
|
+
* @param {Object} opts Optional parameters
|
|
949
|
+
* @param {String} opts.sortBy (default to desc)
|
|
950
|
+
* @param {Number} opts.pageNumber (default to 1)
|
|
951
|
+
* @param {Number} opts.pageSize (default to 9)
|
|
952
|
+
*/
|
|
953
|
+
getAnalyticsReportingSettingsDashboardsQuery(dashboardType, dashboardAccessFilter, opts) {
|
|
954
|
+
opts = opts || {};
|
|
955
|
+
|
|
956
|
+
// verify the required parameter 'dashboardType' is set
|
|
957
|
+
if (dashboardType === undefined || dashboardType === null) {
|
|
958
|
+
throw 'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';
|
|
959
|
+
}
|
|
960
|
+
// verify the required parameter 'dashboardAccessFilter' is set
|
|
961
|
+
if (dashboardAccessFilter === undefined || dashboardAccessFilter === null) {
|
|
962
|
+
throw 'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
return this.apiClient.callApi(
|
|
966
|
+
'/api/v2/analytics/reporting/settings/dashboards/query',
|
|
967
|
+
'GET',
|
|
968
|
+
{ },
|
|
969
|
+
{ 'dashboardType': dashboardType,'dashboardAccessFilter': dashboardAccessFilter,'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
|
|
970
|
+
{ },
|
|
971
|
+
{ },
|
|
972
|
+
null,
|
|
973
|
+
['PureCloud OAuth'],
|
|
974
|
+
['application/json'],
|
|
975
|
+
['application/json']
|
|
976
|
+
);
|
|
977
|
+
}
|
|
978
|
+
|
|
887
979
|
/**
|
|
888
980
|
* Get list of dashboards for an user
|
|
889
981
|
*
|
|
@@ -1349,6 +1441,58 @@ class AnalyticsApi {
|
|
|
1349
1441
|
);
|
|
1350
1442
|
}
|
|
1351
1443
|
|
|
1444
|
+
/**
|
|
1445
|
+
* Query for agent copilot aggregates asynchronously
|
|
1446
|
+
*
|
|
1447
|
+
* @param {Object} body query
|
|
1448
|
+
* postAnalyticsAgentcopilotsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1449
|
+
*/
|
|
1450
|
+
postAnalyticsAgentcopilotsAggregatesJobs(body) {
|
|
1451
|
+
// verify the required parameter 'body' is set
|
|
1452
|
+
if (body === undefined || body === null) {
|
|
1453
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesJobs';
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
return this.apiClient.callApi(
|
|
1457
|
+
'/api/v2/analytics/agentcopilots/aggregates/jobs',
|
|
1458
|
+
'POST',
|
|
1459
|
+
{ },
|
|
1460
|
+
{ },
|
|
1461
|
+
{ },
|
|
1462
|
+
{ },
|
|
1463
|
+
body,
|
|
1464
|
+
['PureCloud OAuth'],
|
|
1465
|
+
['application/json'],
|
|
1466
|
+
['application/json']
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Query for agent copilot aggregates
|
|
1472
|
+
*
|
|
1473
|
+
* @param {Object} body query
|
|
1474
|
+
* postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1475
|
+
*/
|
|
1476
|
+
postAnalyticsAgentcopilotsAggregatesQuery(body) {
|
|
1477
|
+
// verify the required parameter 'body' is set
|
|
1478
|
+
if (body === undefined || body === null) {
|
|
1479
|
+
throw 'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
return this.apiClient.callApi(
|
|
1483
|
+
'/api/v2/analytics/agentcopilots/aggregates/query',
|
|
1484
|
+
'POST',
|
|
1485
|
+
{ },
|
|
1486
|
+
{ },
|
|
1487
|
+
{ },
|
|
1488
|
+
{ },
|
|
1489
|
+
body,
|
|
1490
|
+
['PureCloud OAuth'],
|
|
1491
|
+
['application/json'],
|
|
1492
|
+
['application/json']
|
|
1493
|
+
);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1352
1496
|
/**
|
|
1353
1497
|
* Query for bot aggregates asynchronously
|
|
1354
1498
|
*
|
|
@@ -1922,8 +2066,8 @@ class AnalyticsApi {
|
|
|
1922
2066
|
}
|
|
1923
2067
|
|
|
1924
2068
|
/**
|
|
1925
|
-
* Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded
|
|
1926
|
-
*
|
|
2069
|
+
* Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded. Not a source of truth for limits hit but a best effort estimate.
|
|
2070
|
+
* The max property can be used to determine estimated rate limit value hit.
|
|
1927
2071
|
* @param {Object} body query
|
|
1928
2072
|
*/
|
|
1929
2073
|
postAnalyticsRatelimitsAggregatesQuery(body) {
|
|
@@ -5,7 +5,7 @@ class AuditApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Audit service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 195.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -170,6 +170,35 @@ class AuditApi {
|
|
|
170
170
|
);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Often a single action results in multiple audits. The endpoint retrieves all audits created by the same action as the given audit id.
|
|
175
|
+
*
|
|
176
|
+
* @param {Object} body query
|
|
177
|
+
* @param {Object} opts Optional parameters
|
|
178
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
179
|
+
*/
|
|
180
|
+
postAuditsQueryRealtimeRelated(body, opts) {
|
|
181
|
+
opts = opts || {};
|
|
182
|
+
|
|
183
|
+
// verify the required parameter 'body' is set
|
|
184
|
+
if (body === undefined || body === null) {
|
|
185
|
+
throw 'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return this.apiClient.callApi(
|
|
189
|
+
'/api/v2/audits/query/realtime/related',
|
|
190
|
+
'POST',
|
|
191
|
+
{ },
|
|
192
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
193
|
+
{ },
|
|
194
|
+
{ },
|
|
195
|
+
body,
|
|
196
|
+
['PureCloud OAuth'],
|
|
197
|
+
['application/json'],
|
|
198
|
+
['application/json']
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
173
202
|
}
|
|
174
203
|
|
|
175
204
|
|