purecloud-platform-client-v2 205.0.0 → 207.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 +102 -3
- package/dist/node/purecloud-platform-client-v2.js +1241 -133
- package/dist/web-amd/purecloud-platform-client-v2.js +1241 -133
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +384 -137
- package/dist/web-cjs/purecloud-platform-client-v2.js +384 -137
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1242 -275
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +40 -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 +7 -6
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +2 -2
- 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 +2 -3
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +9 -5
- 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/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +232 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +191 -4
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -19
- 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 +48 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +101 -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/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 +311 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +7 -3
- 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 +27 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +56 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +2 -2
- 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 +60 -1
- package/src/purecloud-platform-client-v2/configuration.js +81 -0
- 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 207.0.0
|
|
8
8
|
*/
|
|
9
9
|
class ApiClient {
|
|
10
10
|
/**
|
|
@@ -202,6 +202,21 @@ class ApiClient {
|
|
|
202
202
|
this.config.setEnvironment(environment);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
/**
|
|
206
|
+
* @description Sets the gateway used by the session
|
|
207
|
+
* @param {object} gateway - Gateway Configuration interface
|
|
208
|
+
* @param {string} gateway.host - The address of the gateway.
|
|
209
|
+
* @param {string} gateway.protocol - (optional) The protocol to use. It will default to "https" if the parameter is not defined or empty.
|
|
210
|
+
* @param {string} gateway.port - (optional) The port to target. This parameter can be defined if a non default port is used and needs to be specified in the url (value must be greater than 0).
|
|
211
|
+
* @param {string} gateway.path_params_login - (optional) An arbitrary string to be appended to the gateway url path for Login requests.
|
|
212
|
+
* @param {string} gateway.path_params_api - (optional) An arbitrary string to be appended to the gateway url path for API requests.
|
|
213
|
+
* @param {string} gateway.username - (optional) Not used at this stage (for a possible future use).
|
|
214
|
+
* @param {string} gateway.password - (optional) Not used at this stage (for a possible future use).
|
|
215
|
+
*/
|
|
216
|
+
setGateway(gateway) {
|
|
217
|
+
this.config.setGateway(gateway);
|
|
218
|
+
}
|
|
219
|
+
|
|
205
220
|
/**
|
|
206
221
|
* @description Initiates the implicit grant login flow. Will attempt to load the token from local storage, if enabled.
|
|
207
222
|
* @param {string} clientId - The client ID of an OAuth Implicit Grant client
|
|
@@ -266,6 +281,7 @@ class ApiClient {
|
|
|
266
281
|
loginClientCredentialsGrant(clientId, clientSecret) {
|
|
267
282
|
this.clientId = clientId;
|
|
268
283
|
var authHeader = Buffer.from(`${clientId}:${clientSecret}`).toString('base64');
|
|
284
|
+
var loginBasePath = this.config.getConfUrl('login', `https://login.${this.config.environment}`);
|
|
269
285
|
|
|
270
286
|
return new Promise((resolve, reject) => {
|
|
271
287
|
// Block browsers from using client credentials
|
|
@@ -278,7 +294,7 @@ class ApiClient {
|
|
|
278
294
|
}
|
|
279
295
|
axios({
|
|
280
296
|
method: `POST`,
|
|
281
|
-
url:
|
|
297
|
+
url: `${loginBasePath}/oauth/token`,
|
|
282
298
|
headers: headers,
|
|
283
299
|
data: 'grant_type=client_credentials',
|
|
284
300
|
httpsAgent: this.proxyAgent
|
|
@@ -289,7 +305,7 @@ class ApiClient {
|
|
|
289
305
|
'trace',
|
|
290
306
|
response.status,
|
|
291
307
|
'POST',
|
|
292
|
-
|
|
308
|
+
`${loginBasePath}/oauth/token`,
|
|
293
309
|
headers,
|
|
294
310
|
response.headers,
|
|
295
311
|
{ grant_type: 'client_credentials' },
|
|
@@ -299,7 +315,7 @@ class ApiClient {
|
|
|
299
315
|
'debug',
|
|
300
316
|
response.status,
|
|
301
317
|
'POST',
|
|
302
|
-
|
|
318
|
+
`${loginBasePath}/oauth/token`,
|
|
303
319
|
headers,
|
|
304
320
|
undefined,
|
|
305
321
|
{ grant_type: 'client_credentials' },
|
|
@@ -323,7 +339,7 @@ class ApiClient {
|
|
|
323
339
|
'error',
|
|
324
340
|
error.response.status,
|
|
325
341
|
'POST',
|
|
326
|
-
|
|
342
|
+
`${loginBasePath}/oauth/token`,
|
|
327
343
|
headers,
|
|
328
344
|
error.response.headers,
|
|
329
345
|
{ grant_type: 'client_credentials' },
|
|
@@ -344,6 +360,7 @@ class ApiClient {
|
|
|
344
360
|
*/
|
|
345
361
|
loginSaml2BearerGrant(clientId, clientSecret, orgName, assertion) {
|
|
346
362
|
this.clientId = clientId;
|
|
363
|
+
var loginBasePath = this.config.getConfUrl('login', `https://login.${this.config.environment}`);
|
|
347
364
|
return new Promise((resolve, reject) => {
|
|
348
365
|
if (typeof window !== 'undefined') {
|
|
349
366
|
reject(new Error('The saml2bearer grant is not supported in a browser.'));
|
|
@@ -369,7 +386,7 @@ class ApiClient {
|
|
|
369
386
|
'trace',
|
|
370
387
|
response.status,
|
|
371
388
|
'POST',
|
|
372
|
-
|
|
389
|
+
`${loginBasePath}/oauth/token`,
|
|
373
390
|
request.headers,
|
|
374
391
|
response.headers,
|
|
375
392
|
bodyParam,
|
|
@@ -379,7 +396,7 @@ class ApiClient {
|
|
|
379
396
|
'debug',
|
|
380
397
|
response.status,
|
|
381
398
|
'POST',
|
|
382
|
-
|
|
399
|
+
`${loginBasePath}/oauth/token`,
|
|
383
400
|
request.headers,
|
|
384
401
|
undefined,
|
|
385
402
|
bodyParam,
|
|
@@ -403,7 +420,7 @@ class ApiClient {
|
|
|
403
420
|
'error',
|
|
404
421
|
error.response.status,
|
|
405
422
|
'POST',
|
|
406
|
-
|
|
423
|
+
`${loginBasePath}/oauth/token`,
|
|
407
424
|
request.headers,
|
|
408
425
|
error.response.headers,
|
|
409
426
|
bodyParam,
|
|
@@ -424,10 +441,11 @@ class ApiClient {
|
|
|
424
441
|
*/
|
|
425
442
|
authorizePKCEGrant(clientId, codeVerifier, authCode, redirectUri) {
|
|
426
443
|
this.clientId = clientId;
|
|
444
|
+
var loginBasePath = this.config.getConfUrl('login', `https://login.${this.config.environment}`);
|
|
427
445
|
return new Promise((resolve, reject) => {
|
|
428
446
|
var request = axios({
|
|
429
447
|
method: `POST`,
|
|
430
|
-
url:
|
|
448
|
+
url: `${loginBasePath}/oauth/token`,
|
|
431
449
|
headers: {
|
|
432
450
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
433
451
|
},
|
|
@@ -454,7 +472,7 @@ class ApiClient {
|
|
|
454
472
|
'trace',
|
|
455
473
|
response.status,
|
|
456
474
|
'POST',
|
|
457
|
-
|
|
475
|
+
`${loginBasePath}/oauth/token`,
|
|
458
476
|
request.headers,
|
|
459
477
|
response.headers,
|
|
460
478
|
bodyParam,
|
|
@@ -464,7 +482,7 @@ class ApiClient {
|
|
|
464
482
|
'debug',
|
|
465
483
|
response.status,
|
|
466
484
|
'POST',
|
|
467
|
-
|
|
485
|
+
`${loginBasePath}/oauth/token`,
|
|
468
486
|
request.headers,
|
|
469
487
|
undefined,
|
|
470
488
|
bodyParam,
|
|
@@ -488,7 +506,7 @@ class ApiClient {
|
|
|
488
506
|
'error',
|
|
489
507
|
error.response.status,
|
|
490
508
|
'POST',
|
|
491
|
-
|
|
509
|
+
`${loginBasePath}/oauth/token`,
|
|
492
510
|
request.headers,
|
|
493
511
|
error.response.headers,
|
|
494
512
|
bodyParam,
|
|
@@ -812,6 +830,8 @@ class ApiClient {
|
|
|
812
830
|
* @param {function} reject - Promise reject callback
|
|
813
831
|
*/
|
|
814
832
|
_handleCodeAuthorizationResponse(request, bodyParam, resolve, reject) {
|
|
833
|
+
var loginBasePath = this.config.getConfUrl('login', `https://login.${this.config.environment}`);
|
|
834
|
+
|
|
815
835
|
request
|
|
816
836
|
.then((response) => {
|
|
817
837
|
// Logging
|
|
@@ -819,7 +839,7 @@ class ApiClient {
|
|
|
819
839
|
'trace',
|
|
820
840
|
response.status,
|
|
821
841
|
'POST',
|
|
822
|
-
|
|
842
|
+
`${loginBasePath}/oauth/token`,
|
|
823
843
|
request.headers,
|
|
824
844
|
response.headers,
|
|
825
845
|
bodyParam,
|
|
@@ -829,7 +849,7 @@ class ApiClient {
|
|
|
829
849
|
'debug',
|
|
830
850
|
response.status,
|
|
831
851
|
'POST',
|
|
832
|
-
|
|
852
|
+
`${loginBasePath}/oauth/token`,
|
|
833
853
|
request.headers,
|
|
834
854
|
undefined,
|
|
835
855
|
bodyParam,
|
|
@@ -855,7 +875,7 @@ class ApiClient {
|
|
|
855
875
|
'error',
|
|
856
876
|
error.response.status,
|
|
857
877
|
'POST',
|
|
858
|
-
|
|
878
|
+
`${loginBasePath}/oauth/token`,
|
|
859
879
|
request.headers,
|
|
860
880
|
error.response.headers,
|
|
861
881
|
bodyParam,
|
|
@@ -873,9 +893,10 @@ class ApiClient {
|
|
|
873
893
|
* @param {object} data - data to url form encode
|
|
874
894
|
*/
|
|
875
895
|
_formAuthRequest(encodedData, data) {
|
|
896
|
+
var loginBasePath = this.config.getConfUrl('login', `https://login.${this.config.environment}`);
|
|
876
897
|
var request = axios({
|
|
877
898
|
method: `POST`,
|
|
878
|
-
url:
|
|
899
|
+
url: `${loginBasePath}/oauth/token`,
|
|
879
900
|
headers: {
|
|
880
901
|
'Authorization': 'Basic ' + encodedData,
|
|
881
902
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -1064,7 +1085,8 @@ class ApiClient {
|
|
|
1064
1085
|
*/
|
|
1065
1086
|
_buildAuthUrl(path, query) {
|
|
1066
1087
|
if (!query) query = {};
|
|
1067
|
-
|
|
1088
|
+
var loginBasePath = this.config.getConfUrl('login', this.config.authUrl);
|
|
1089
|
+
return Object.keys(query).reduce((url, key) => !query[key] ? url : `${url}&${key}=${query[key]}`, `${loginBasePath}/${path}?`);
|
|
1068
1090
|
}
|
|
1069
1091
|
|
|
1070
1092
|
/**
|
|
@@ -1126,7 +1148,7 @@ class ApiClient {
|
|
|
1126
1148
|
if (!path.match(/^\//)) {
|
|
1127
1149
|
path = `/${path}`;
|
|
1128
1150
|
}
|
|
1129
|
-
var url = this.config.basePath + path;
|
|
1151
|
+
var url = this.config.getConfUrl('api', this.config.basePath) + path;
|
|
1130
1152
|
url = url.replace(/\{([\w-]+)\}/g, (fullMatch, key) => {
|
|
1131
1153
|
var value;
|
|
1132
1154
|
if (pathParams.hasOwnProperty(key)) {
|
|
@@ -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 207.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -856,6 +856,7 @@ class AnalyticsApi {
|
|
|
856
856
|
* @param {Number} opts.pageSize (default to 25)
|
|
857
857
|
* @param {Array.<String>} opts.id A list of user IDs to fetch by bulk
|
|
858
858
|
* @param {Object} opts.state Only list users of this state
|
|
859
|
+
* @param {Boolean} opts.deletedOnly Only list deleted dashboards that are still recoverable
|
|
859
860
|
*/
|
|
860
861
|
getAnalyticsReportingDashboardsUsers(opts) {
|
|
861
862
|
opts = opts || {};
|
|
@@ -865,7 +866,7 @@ class AnalyticsApi {
|
|
|
865
866
|
'/api/v2/analytics/reporting/dashboards/users',
|
|
866
867
|
'GET',
|
|
867
868
|
{ },
|
|
868
|
-
{ 'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'state': opts['state'] },
|
|
869
|
+
{ 'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'state': opts['state'],'deletedOnly': opts['deletedOnly'] },
|
|
869
870
|
{ },
|
|
870
871
|
{ },
|
|
871
872
|
null,
|
|
@@ -987,6 +988,7 @@ class AnalyticsApi {
|
|
|
987
988
|
* @param {Number} opts.pageSize (default to 50)
|
|
988
989
|
* @param {Boolean} opts.publicOnly If true, retrieve only public dashboards
|
|
989
990
|
* @param {Boolean} opts.favoriteOnly If true, retrieve only favorite dashboards
|
|
991
|
+
* @param {Boolean} opts.deletedOnly If true, retrieve only deleted dashboards that are still recoverable
|
|
990
992
|
* @param {String} opts.name retrieve dashboards that match with given name
|
|
991
993
|
*/
|
|
992
994
|
getAnalyticsReportingSettingsUserDashboards(userId, opts) {
|
|
@@ -1001,7 +1003,7 @@ class AnalyticsApi {
|
|
|
1001
1003
|
'/api/v2/analytics/reporting/settings/users/{userId}/dashboards',
|
|
1002
1004
|
'GET',
|
|
1003
1005
|
{ 'userId': userId },
|
|
1004
|
-
{ 'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'publicOnly': opts['publicOnly'],'favoriteOnly': opts['favoriteOnly'],'name': opts['name'] },
|
|
1006
|
+
{ 'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'publicOnly': opts['publicOnly'],'favoriteOnly': opts['favoriteOnly'],'deletedOnly': opts['deletedOnly'],'name': opts['name'] },
|
|
1005
1007
|
{ },
|
|
1006
1008
|
{ },
|
|
1007
1009
|
null,
|
|
@@ -2091,7 +2093,7 @@ class AnalyticsApi {
|
|
|
2091
2093
|
}
|
|
2092
2094
|
|
|
2093
2095
|
/**
|
|
2094
|
-
* Bulk delete dashboards owned by other user(s)
|
|
2096
|
+
* Bulk soft delete dashboards owned by other user(s)
|
|
2095
2097
|
*
|
|
2096
2098
|
* @param {Array.<String>} body List of userIds
|
|
2097
2099
|
*/
|
|
@@ -2141,7 +2143,7 @@ class AnalyticsApi {
|
|
|
2141
2143
|
}
|
|
2142
2144
|
|
|
2143
2145
|
/**
|
|
2144
|
-
* Bulk
|
|
2146
|
+
* Bulk soft delete dashboard configurations
|
|
2145
2147
|
*
|
|
2146
2148
|
* @param {Object} body
|
|
2147
2149
|
*/
|
|
@@ -2327,7 +2329,6 @@ class AnalyticsApi {
|
|
|
2327
2329
|
* Query for task management aggregates
|
|
2328
2330
|
*
|
|
2329
2331
|
* @param {Object} body query
|
|
2330
|
-
* postAnalyticsTaskmanagementAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2331
2332
|
*/
|
|
2332
2333
|
postAnalyticsTaskmanagementAggregatesQuery(body) {
|
|
2333
2334
|
// verify the required parameter 'body' is set
|
|
@@ -5,7 +5,7 @@ class ArchitectApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Architect service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 207.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1750,7 +1750,7 @@ class ArchitectApi {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
|
|
1752
1752
|
/**
|
|
1753
|
-
*
|
|
1753
|
+
* Get flow version configuration
|
|
1754
1754
|
*
|
|
1755
1755
|
* @param {String} flowId Flow ID
|
|
1756
1756
|
* @param {String} versionId Version ID
|
|
@@ -5,7 +5,7 @@ class ContentManagementApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* ContentManagement service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 207.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -394,7 +394,6 @@ class ContentManagementApi {
|
|
|
394
394
|
* This method requires the download sharing URI obtained in the get document response (downloadSharingUri). Documents may be shared between users in the same workspace. Documents may also be shared between any user by creating a content management share.
|
|
395
395
|
* @param {String} sharedId Shared ID
|
|
396
396
|
* @param {Object} opts Optional parameters
|
|
397
|
-
* @param {Boolean} opts.redirect Turn on or off redirect (default to true)
|
|
398
397
|
* @param {Object} opts.disposition Request how the share content will be downloaded: attached as a file or inline. Default is attachment. (default to attachment)
|
|
399
398
|
* @param {String} opts.contentType The requested format for the specified document. If supported, the document will be returned in that format. Example contentType=audio/wav
|
|
400
399
|
* @param {Object} opts.expand Expand some document fields
|
|
@@ -411,7 +410,7 @@ class ContentManagementApi {
|
|
|
411
410
|
'/api/v2/contentmanagement/shared/{sharedId}',
|
|
412
411
|
'GET',
|
|
413
412
|
{ 'sharedId': sharedId },
|
|
414
|
-
{ '
|
|
413
|
+
{ 'disposition': opts['disposition'],'contentType': opts['contentType'],'expand': opts['expand'] },
|
|
415
414
|
{ },
|
|
416
415
|
{ },
|
|
417
416
|
null,
|
|
@@ -5,7 +5,7 @@ class ConversationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Conversations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 207.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -3751,7 +3751,6 @@ class ConversationsApi {
|
|
|
3751
3751
|
* @param {String} conversationId conversationId
|
|
3752
3752
|
* @param {String} participantId participantId
|
|
3753
3753
|
* @param {Object} body Parking update request
|
|
3754
|
-
* patchConversationsEmailParticipantParkingstate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3755
3754
|
*/
|
|
3756
3755
|
patchConversationsEmailParticipantParkingstate(conversationId, participantId, body) {
|
|
3757
3756
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4699,9 +4698,10 @@ class ConversationsApi {
|
|
|
4699
4698
|
|
|
4700
4699
|
/**
|
|
4701
4700
|
* Suggestion feedback.
|
|
4702
|
-
*
|
|
4701
|
+
* Google Agent Assist offering within Genesys will no longer be supported
|
|
4703
4702
|
* @param {String} conversationId Conversation ID
|
|
4704
4703
|
* @param {Object} body SuggestionFeedback
|
|
4704
|
+
* @deprecated
|
|
4705
4705
|
*/
|
|
4706
4706
|
postConversationSuggestionsFeedback(conversationId, body) {
|
|
4707
4707
|
// verify the required parameter 'conversationId' is set
|
|
@@ -5991,8 +5991,12 @@ class ConversationsApi {
|
|
|
5991
5991
|
* Send an inbound message to an Open Messaging integration. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least messaging scope. This will either generate a new Conversation, or be a part of an existing conversation. See https://developer.genesys.cloud/api/digital/openmessaging/ for example usage.
|
|
5992
5992
|
* @param {String} integrationId integrationId
|
|
5993
5993
|
* @param {Object} body NormalizedMessage
|
|
5994
|
+
* @param {Object} opts Optional parameters
|
|
5995
|
+
* @param {Boolean} opts.prefetchConversationId Indicates whether or not to prefetch conversationId (default to false)
|
|
5994
5996
|
*/
|
|
5995
|
-
postConversationsMessageInboundOpenMessage(integrationId, body) {
|
|
5997
|
+
postConversationsMessageInboundOpenMessage(integrationId, body, opts) {
|
|
5998
|
+
opts = opts || {};
|
|
5999
|
+
|
|
5996
6000
|
// verify the required parameter 'integrationId' is set
|
|
5997
6001
|
if (integrationId === undefined || integrationId === null) {
|
|
5998
6002
|
throw 'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';
|
|
@@ -6006,7 +6010,7 @@ class ConversationsApi {
|
|
|
6006
6010
|
'/api/v2/conversations/messages/{integrationId}/inbound/open/message',
|
|
6007
6011
|
'POST',
|
|
6008
6012
|
{ 'integrationId': integrationId },
|
|
6009
|
-
{
|
|
6013
|
+
{ 'prefetchConversationId': opts['prefetchConversationId'] },
|
|
6010
6014
|
{ },
|
|
6011
6015
|
{ },
|
|
6012
6016
|
body,
|