purecloud-platform-client-v2 169.1.0 → 171.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 +6 -4
- package/dist/node/purecloud-platform-client-v2.js +856 -365
- package/dist/web-amd/purecloud-platform-client-v2.js +856 -365
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +856 -365
- package/dist/web-cjs/purecloud-platform-client-v2.js +856 -365
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +413 -66
- 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 +44 -44
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +6 -6
- 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 +6 -4
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +362 -7
- 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 +5 -5
- 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 +9 -9
- 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 +41 -11
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +9 -45
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +30 -29
- 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 +3 -3
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +69 -16
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +16 -16
- 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 +13 -13
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +26 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +5 -5
- 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 +50 -46
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +61 -4
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +3 -3
- 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 +13 -13
- 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 +1 -1
|
@@ -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 171.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -195,6 +195,31 @@ class ConversationsApi {
|
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
/**
|
|
199
|
+
* Delete Instagram messaging integration
|
|
200
|
+
*
|
|
201
|
+
* @param {String} integrationId Integration ID
|
|
202
|
+
*/
|
|
203
|
+
deleteConversationsMessagingIntegrationsInstagramIntegrationId(integrationId) {
|
|
204
|
+
// verify the required parameter 'integrationId' is set
|
|
205
|
+
if (integrationId === undefined || integrationId === null) {
|
|
206
|
+
throw 'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return this.apiClient.callApi(
|
|
210
|
+
'/api/v2/conversations/messaging/integrations/instagram/{integrationId}',
|
|
211
|
+
'DELETE',
|
|
212
|
+
{ 'integrationId': integrationId },
|
|
213
|
+
{ },
|
|
214
|
+
{ },
|
|
215
|
+
{ },
|
|
216
|
+
null,
|
|
217
|
+
['PureCloud OAuth'],
|
|
218
|
+
['application/json'],
|
|
219
|
+
['application/json']
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
198
223
|
/**
|
|
199
224
|
* Delete a LINE messenger integration
|
|
200
225
|
*
|
|
@@ -349,7 +374,7 @@ class ConversationsApi {
|
|
|
349
374
|
* Get status for async query for conversation aggregates
|
|
350
375
|
*
|
|
351
376
|
* @param {String} jobId jobId
|
|
352
|
-
*
|
|
377
|
+
* getAnalyticsConversationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
353
378
|
*/
|
|
354
379
|
getAnalyticsConversationsAggregatesJob(jobId) {
|
|
355
380
|
// verify the required parameter 'jobId' is set
|
|
@@ -377,7 +402,7 @@ class ConversationsApi {
|
|
|
377
402
|
* @param {String} jobId jobId
|
|
378
403
|
* @param {Object} opts Optional parameters
|
|
379
404
|
* @param {String} opts.cursor Cursor token to retrieve next page
|
|
380
|
-
*
|
|
405
|
+
* getAnalyticsConversationsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
381
406
|
*/
|
|
382
407
|
getAnalyticsConversationsAggregatesJobResults(jobId, opts) {
|
|
383
408
|
opts = opts || {};
|
|
@@ -2053,6 +2078,63 @@ class ConversationsApi {
|
|
|
2053
2078
|
);
|
|
2054
2079
|
}
|
|
2055
2080
|
|
|
2081
|
+
/**
|
|
2082
|
+
* Get a list of Instagram Integrations
|
|
2083
|
+
*
|
|
2084
|
+
* @param {Object} opts Optional parameters
|
|
2085
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
2086
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
2087
|
+
* @param {Object} opts.expand Expand instructions for the return value.
|
|
2088
|
+
* @param {String} opts.supportedContentId Filter integrations returned based on the supported content ID
|
|
2089
|
+
* @param {String} opts.messagingSettingId Filter integrations returned based on the setting ID
|
|
2090
|
+
*/
|
|
2091
|
+
getConversationsMessagingIntegrationsInstagram(opts) {
|
|
2092
|
+
opts = opts || {};
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
return this.apiClient.callApi(
|
|
2096
|
+
'/api/v2/conversations/messaging/integrations/instagram',
|
|
2097
|
+
'GET',
|
|
2098
|
+
{ },
|
|
2099
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'expand': opts['expand'],'supportedContent.id': opts['supportedContentId'],'messagingSetting.id': opts['messagingSettingId'] },
|
|
2100
|
+
{ },
|
|
2101
|
+
{ },
|
|
2102
|
+
null,
|
|
2103
|
+
['PureCloud OAuth'],
|
|
2104
|
+
['application/json'],
|
|
2105
|
+
['application/json']
|
|
2106
|
+
);
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* Get Instagram messaging integration
|
|
2111
|
+
*
|
|
2112
|
+
* @param {String} integrationId Integration ID
|
|
2113
|
+
* @param {Object} opts Optional parameters
|
|
2114
|
+
* @param {Object} opts.expand Expand instructions for the return value.
|
|
2115
|
+
*/
|
|
2116
|
+
getConversationsMessagingIntegrationsInstagramIntegrationId(integrationId, opts) {
|
|
2117
|
+
opts = opts || {};
|
|
2118
|
+
|
|
2119
|
+
// verify the required parameter 'integrationId' is set
|
|
2120
|
+
if (integrationId === undefined || integrationId === null) {
|
|
2121
|
+
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
return this.apiClient.callApi(
|
|
2125
|
+
'/api/v2/conversations/messaging/integrations/instagram/{integrationId}',
|
|
2126
|
+
'GET',
|
|
2127
|
+
{ 'integrationId': integrationId },
|
|
2128
|
+
{ 'expand': opts['expand'] },
|
|
2129
|
+
{ },
|
|
2130
|
+
{ },
|
|
2131
|
+
null,
|
|
2132
|
+
['PureCloud OAuth'],
|
|
2133
|
+
['application/json'],
|
|
2134
|
+
['application/json']
|
|
2135
|
+
);
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2056
2138
|
/**
|
|
2057
2139
|
* Get a list of LINE messenger Integrations
|
|
2058
2140
|
*
|
|
@@ -2503,7 +2585,7 @@ class ConversationsApi {
|
|
|
2503
2585
|
* Get video conference details (e.g. the current number of active participants).
|
|
2504
2586
|
*
|
|
2505
2587
|
* @param {String} conferenceId conferenceId
|
|
2506
|
-
*
|
|
2588
|
+
* getConversationsVideoDetails is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2507
2589
|
*/
|
|
2508
2590
|
getConversationsVideoDetails(conferenceId) {
|
|
2509
2591
|
// verify the required parameter 'conferenceId' is set
|
|
@@ -3661,6 +3743,36 @@ class ConversationsApi {
|
|
|
3661
3743
|
);
|
|
3662
3744
|
}
|
|
3663
3745
|
|
|
3746
|
+
/**
|
|
3747
|
+
* Update Instagram messaging integration
|
|
3748
|
+
*
|
|
3749
|
+
* @param {String} integrationId Integration ID
|
|
3750
|
+
* @param {Object} body InstagramIntegrationUpdateRequest
|
|
3751
|
+
*/
|
|
3752
|
+
patchConversationsMessagingIntegrationsInstagramIntegrationId(integrationId, body) {
|
|
3753
|
+
// verify the required parameter 'integrationId' is set
|
|
3754
|
+
if (integrationId === undefined || integrationId === null) {
|
|
3755
|
+
throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
3756
|
+
}
|
|
3757
|
+
// verify the required parameter 'body' is set
|
|
3758
|
+
if (body === undefined || body === null) {
|
|
3759
|
+
throw 'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
return this.apiClient.callApi(
|
|
3763
|
+
'/api/v2/conversations/messaging/integrations/instagram/{integrationId}',
|
|
3764
|
+
'PATCH',
|
|
3765
|
+
{ 'integrationId': integrationId },
|
|
3766
|
+
{ },
|
|
3767
|
+
{ },
|
|
3768
|
+
{ },
|
|
3769
|
+
body,
|
|
3770
|
+
['PureCloud OAuth'],
|
|
3771
|
+
['application/json'],
|
|
3772
|
+
['application/json']
|
|
3773
|
+
);
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3664
3776
|
/**
|
|
3665
3777
|
* Update an Open messaging integration
|
|
3666
3778
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
@@ -3843,7 +3955,7 @@ class ConversationsApi {
|
|
|
3843
3955
|
* @param {Object} opts Optional parameters
|
|
3844
3956
|
* @param {Number} opts.pageSize The desired page size
|
|
3845
3957
|
* @param {Number} opts.pageNumber The desired page number
|
|
3846
|
-
*
|
|
3958
|
+
* postAnalyticsConversationsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3847
3959
|
*/
|
|
3848
3960
|
postAnalyticsConversationsActivityQuery(body, opts) {
|
|
3849
3961
|
opts = opts || {};
|
|
@@ -3871,7 +3983,7 @@ class ConversationsApi {
|
|
|
3871
3983
|
* Query for conversation aggregates asynchronously
|
|
3872
3984
|
*
|
|
3873
3985
|
* @param {Object} body query
|
|
3874
|
-
*
|
|
3986
|
+
* postAnalyticsConversationsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3875
3987
|
*/
|
|
3876
3988
|
postAnalyticsConversationsAggregatesJobs(body) {
|
|
3877
3989
|
// verify the required parameter 'body' is set
|
|
@@ -4122,6 +4234,7 @@ class ConversationsApi {
|
|
|
4122
4234
|
* @param {String} conversationId conversation ID
|
|
4123
4235
|
* @param {String} participantId participant ID
|
|
4124
4236
|
* @param {Object} body Transfer request
|
|
4237
|
+
* @deprecated
|
|
4125
4238
|
*/
|
|
4126
4239
|
postConversationParticipantReplace(conversationId, participantId, body) {
|
|
4127
4240
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4151,6 +4264,111 @@ class ConversationsApi {
|
|
|
4151
4264
|
);
|
|
4152
4265
|
}
|
|
4153
4266
|
|
|
4267
|
+
/**
|
|
4268
|
+
* Replace this participant with the specified agent
|
|
4269
|
+
*
|
|
4270
|
+
* @param {String} conversationId conversation ID
|
|
4271
|
+
* @param {String} participantId participant ID
|
|
4272
|
+
* @param {Object} body Transfer request
|
|
4273
|
+
*/
|
|
4274
|
+
postConversationParticipantReplaceAgent(conversationId, participantId, body) {
|
|
4275
|
+
// verify the required parameter 'conversationId' is set
|
|
4276
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4277
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';
|
|
4278
|
+
}
|
|
4279
|
+
// verify the required parameter 'participantId' is set
|
|
4280
|
+
if (participantId === undefined || participantId === null) {
|
|
4281
|
+
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';
|
|
4282
|
+
}
|
|
4283
|
+
// verify the required parameter 'body' is set
|
|
4284
|
+
if (body === undefined || body === null) {
|
|
4285
|
+
throw 'Missing the required parameter "body" when calling postConversationParticipantReplaceAgent';
|
|
4286
|
+
}
|
|
4287
|
+
|
|
4288
|
+
return this.apiClient.callApi(
|
|
4289
|
+
'/api/v2/conversations/{conversationId}/participants/{participantId}/replace/agent',
|
|
4290
|
+
'POST',
|
|
4291
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4292
|
+
{ },
|
|
4293
|
+
{ },
|
|
4294
|
+
{ },
|
|
4295
|
+
body,
|
|
4296
|
+
['PureCloud OAuth'],
|
|
4297
|
+
['application/json'],
|
|
4298
|
+
['application/json']
|
|
4299
|
+
);
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
/**
|
|
4303
|
+
* Replace this participant with the an external contact
|
|
4304
|
+
*
|
|
4305
|
+
* @param {String} conversationId conversation ID
|
|
4306
|
+
* @param {String} participantId participant ID
|
|
4307
|
+
* @param {Object} body Transfer request
|
|
4308
|
+
*/
|
|
4309
|
+
postConversationParticipantReplaceExternal(conversationId, participantId, body) {
|
|
4310
|
+
// verify the required parameter 'conversationId' is set
|
|
4311
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4312
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';
|
|
4313
|
+
}
|
|
4314
|
+
// verify the required parameter 'participantId' is set
|
|
4315
|
+
if (participantId === undefined || participantId === null) {
|
|
4316
|
+
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';
|
|
4317
|
+
}
|
|
4318
|
+
// verify the required parameter 'body' is set
|
|
4319
|
+
if (body === undefined || body === null) {
|
|
4320
|
+
throw 'Missing the required parameter "body" when calling postConversationParticipantReplaceExternal';
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
return this.apiClient.callApi(
|
|
4324
|
+
'/api/v2/conversations/{conversationId}/participants/{participantId}/replace/external',
|
|
4325
|
+
'POST',
|
|
4326
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4327
|
+
{ },
|
|
4328
|
+
{ },
|
|
4329
|
+
{ },
|
|
4330
|
+
body,
|
|
4331
|
+
['PureCloud OAuth'],
|
|
4332
|
+
['application/json'],
|
|
4333
|
+
['application/json']
|
|
4334
|
+
);
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
/**
|
|
4338
|
+
* Replace this participant with the specified queue
|
|
4339
|
+
*
|
|
4340
|
+
* @param {String} conversationId conversation ID
|
|
4341
|
+
* @param {String} participantId participant ID
|
|
4342
|
+
* @param {Object} body Transfer request
|
|
4343
|
+
*/
|
|
4344
|
+
postConversationParticipantReplaceQueue(conversationId, participantId, body) {
|
|
4345
|
+
// verify the required parameter 'conversationId' is set
|
|
4346
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4347
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';
|
|
4348
|
+
}
|
|
4349
|
+
// verify the required parameter 'participantId' is set
|
|
4350
|
+
if (participantId === undefined || participantId === null) {
|
|
4351
|
+
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';
|
|
4352
|
+
}
|
|
4353
|
+
// verify the required parameter 'body' is set
|
|
4354
|
+
if (body === undefined || body === null) {
|
|
4355
|
+
throw 'Missing the required parameter "body" when calling postConversationParticipantReplaceQueue';
|
|
4356
|
+
}
|
|
4357
|
+
|
|
4358
|
+
return this.apiClient.callApi(
|
|
4359
|
+
'/api/v2/conversations/{conversationId}/participants/{participantId}/replace/queue',
|
|
4360
|
+
'POST',
|
|
4361
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4362
|
+
{ },
|
|
4363
|
+
{ },
|
|
4364
|
+
{ },
|
|
4365
|
+
body,
|
|
4366
|
+
['PureCloud OAuth'],
|
|
4367
|
+
['application/json'],
|
|
4368
|
+
['application/json']
|
|
4369
|
+
);
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4154
4372
|
/**
|
|
4155
4373
|
* Create secure IVR session. Only a participant in the conversation can invoke a secure IVR.
|
|
4156
4374
|
*
|
|
@@ -4290,6 +4508,7 @@ class ConversationsApi {
|
|
|
4290
4508
|
* @param {String} conversationId conversationId
|
|
4291
4509
|
* @param {String} participantId participantId
|
|
4292
4510
|
* @param {Object} body Destination address and initial speak to
|
|
4511
|
+
* @deprecated
|
|
4293
4512
|
*/
|
|
4294
4513
|
postConversationsCallParticipantConsult(conversationId, participantId, body) {
|
|
4295
4514
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4319,6 +4538,111 @@ class ConversationsApi {
|
|
|
4319
4538
|
);
|
|
4320
4539
|
}
|
|
4321
4540
|
|
|
4541
|
+
/**
|
|
4542
|
+
* Initiate a consult transfer to an agent
|
|
4543
|
+
*
|
|
4544
|
+
* @param {String} conversationId conversationId
|
|
4545
|
+
* @param {String} participantId participantId
|
|
4546
|
+
* @param {Object} body Destination agent and initial speak to
|
|
4547
|
+
*/
|
|
4548
|
+
postConversationsCallParticipantConsultAgent(conversationId, participantId, body) {
|
|
4549
|
+
// verify the required parameter 'conversationId' is set
|
|
4550
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4551
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';
|
|
4552
|
+
}
|
|
4553
|
+
// verify the required parameter 'participantId' is set
|
|
4554
|
+
if (participantId === undefined || participantId === null) {
|
|
4555
|
+
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';
|
|
4556
|
+
}
|
|
4557
|
+
// verify the required parameter 'body' is set
|
|
4558
|
+
if (body === undefined || body === null) {
|
|
4559
|
+
throw 'Missing the required parameter "body" when calling postConversationsCallParticipantConsultAgent';
|
|
4560
|
+
}
|
|
4561
|
+
|
|
4562
|
+
return this.apiClient.callApi(
|
|
4563
|
+
'/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/agent',
|
|
4564
|
+
'POST',
|
|
4565
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4566
|
+
{ },
|
|
4567
|
+
{ },
|
|
4568
|
+
{ },
|
|
4569
|
+
body,
|
|
4570
|
+
['PureCloud OAuth'],
|
|
4571
|
+
['application/json'],
|
|
4572
|
+
['application/json']
|
|
4573
|
+
);
|
|
4574
|
+
}
|
|
4575
|
+
|
|
4576
|
+
/**
|
|
4577
|
+
* Initiate a consult transfer to an external contact
|
|
4578
|
+
*
|
|
4579
|
+
* @param {String} conversationId conversationId
|
|
4580
|
+
* @param {String} participantId participantId
|
|
4581
|
+
* @param {Object} body Destination address and initial speak to
|
|
4582
|
+
*/
|
|
4583
|
+
postConversationsCallParticipantConsultExternal(conversationId, participantId, body) {
|
|
4584
|
+
// verify the required parameter 'conversationId' is set
|
|
4585
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4586
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';
|
|
4587
|
+
}
|
|
4588
|
+
// verify the required parameter 'participantId' is set
|
|
4589
|
+
if (participantId === undefined || participantId === null) {
|
|
4590
|
+
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';
|
|
4591
|
+
}
|
|
4592
|
+
// verify the required parameter 'body' is set
|
|
4593
|
+
if (body === undefined || body === null) {
|
|
4594
|
+
throw 'Missing the required parameter "body" when calling postConversationsCallParticipantConsultExternal';
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
return this.apiClient.callApi(
|
|
4598
|
+
'/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/external',
|
|
4599
|
+
'POST',
|
|
4600
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4601
|
+
{ },
|
|
4602
|
+
{ },
|
|
4603
|
+
{ },
|
|
4604
|
+
body,
|
|
4605
|
+
['PureCloud OAuth'],
|
|
4606
|
+
['application/json'],
|
|
4607
|
+
['application/json']
|
|
4608
|
+
);
|
|
4609
|
+
}
|
|
4610
|
+
|
|
4611
|
+
/**
|
|
4612
|
+
* Initiate a consult transfer to a queue
|
|
4613
|
+
*
|
|
4614
|
+
* @param {String} conversationId conversationId
|
|
4615
|
+
* @param {String} participantId participantId
|
|
4616
|
+
* @param {Object} body Destination queue and initial speak to
|
|
4617
|
+
*/
|
|
4618
|
+
postConversationsCallParticipantConsultQueue(conversationId, participantId, body) {
|
|
4619
|
+
// verify the required parameter 'conversationId' is set
|
|
4620
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4621
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';
|
|
4622
|
+
}
|
|
4623
|
+
// verify the required parameter 'participantId' is set
|
|
4624
|
+
if (participantId === undefined || participantId === null) {
|
|
4625
|
+
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';
|
|
4626
|
+
}
|
|
4627
|
+
// verify the required parameter 'body' is set
|
|
4628
|
+
if (body === undefined || body === null) {
|
|
4629
|
+
throw 'Missing the required parameter "body" when calling postConversationsCallParticipantConsultQueue';
|
|
4630
|
+
}
|
|
4631
|
+
|
|
4632
|
+
return this.apiClient.callApi(
|
|
4633
|
+
'/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/queue',
|
|
4634
|
+
'POST',
|
|
4635
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
4636
|
+
{ },
|
|
4637
|
+
{ },
|
|
4638
|
+
{ },
|
|
4639
|
+
body,
|
|
4640
|
+
['PureCloud OAuth'],
|
|
4641
|
+
['application/json'],
|
|
4642
|
+
['application/json']
|
|
4643
|
+
);
|
|
4644
|
+
}
|
|
4645
|
+
|
|
4322
4646
|
/**
|
|
4323
4647
|
* Listen in on the conversation from the point of view of a given participant.
|
|
4324
4648
|
*
|
|
@@ -4355,6 +4679,7 @@ class ConversationsApi {
|
|
|
4355
4679
|
* @param {String} conversationId conversationId
|
|
4356
4680
|
* @param {String} participantId participantId
|
|
4357
4681
|
* @param {Object} body Transfer request
|
|
4682
|
+
* @deprecated
|
|
4358
4683
|
*/
|
|
4359
4684
|
postConversationsCallParticipantReplace(conversationId, participantId, body) {
|
|
4360
4685
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4459,6 +4784,7 @@ class ConversationsApi {
|
|
|
4459
4784
|
* @param {String} conversationId conversationId
|
|
4460
4785
|
* @param {String} participantId participantId
|
|
4461
4786
|
* @param {Object} body Transfer request
|
|
4787
|
+
* @deprecated
|
|
4462
4788
|
*/
|
|
4463
4789
|
postConversationsCallbackParticipantReplace(conversationId, participantId, body) {
|
|
4464
4790
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4698,6 +5024,7 @@ class ConversationsApi {
|
|
|
4698
5024
|
* @param {String} conversationId conversationId
|
|
4699
5025
|
* @param {String} participantId participantId
|
|
4700
5026
|
* @param {Object} body Transfer request
|
|
5027
|
+
* @deprecated
|
|
4701
5028
|
*/
|
|
4702
5029
|
postConversationsChatParticipantReplace(conversationId, participantId, body) {
|
|
4703
5030
|
// verify the required parameter 'conversationId' is set
|
|
@@ -4798,6 +5125,7 @@ class ConversationsApi {
|
|
|
4798
5125
|
* @param {String} participantId participantId
|
|
4799
5126
|
* @param {Object} opts Optional parameters
|
|
4800
5127
|
* @param {Object} opts.body
|
|
5128
|
+
* @deprecated
|
|
4801
5129
|
*/
|
|
4802
5130
|
postConversationsCobrowsesessionParticipantReplace(conversationId, participantId, opts) {
|
|
4803
5131
|
opts = opts || {};
|
|
@@ -4960,6 +5288,7 @@ class ConversationsApi {
|
|
|
4960
5288
|
* @param {String} conversationId conversationId
|
|
4961
5289
|
* @param {String} participantId participantId
|
|
4962
5290
|
* @param {Object} body Transfer request
|
|
5291
|
+
* @deprecated
|
|
4963
5292
|
*/
|
|
4964
5293
|
postConversationsEmailParticipantReplace(conversationId, participantId, body) {
|
|
4965
5294
|
// verify the required parameter 'conversationId' is set
|
|
@@ -5292,7 +5621,7 @@ class ConversationsApi {
|
|
|
5292
5621
|
*
|
|
5293
5622
|
* @param {String} conversationId conversationId
|
|
5294
5623
|
* @param {String} participantId participantId
|
|
5295
|
-
*
|
|
5624
|
+
* postConversationsMessageParticipantMonitor is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5296
5625
|
*/
|
|
5297
5626
|
postConversationsMessageParticipantMonitor(conversationId, participantId) {
|
|
5298
5627
|
// verify the required parameter 'conversationId' is set
|
|
@@ -5324,6 +5653,7 @@ class ConversationsApi {
|
|
|
5324
5653
|
* @param {String} conversationId conversationId
|
|
5325
5654
|
* @param {String} participantId participantId
|
|
5326
5655
|
* @param {Object} body Transfer request
|
|
5656
|
+
* @deprecated
|
|
5327
5657
|
*/
|
|
5328
5658
|
postConversationsMessageParticipantReplace(conversationId, participantId, body) {
|
|
5329
5659
|
// verify the required parameter 'conversationId' is set
|
|
@@ -5453,6 +5783,31 @@ class ConversationsApi {
|
|
|
5453
5783
|
);
|
|
5454
5784
|
}
|
|
5455
5785
|
|
|
5786
|
+
/**
|
|
5787
|
+
* Create Instagram Integration
|
|
5788
|
+
*
|
|
5789
|
+
* @param {Object} body InstagramIntegrationRequest
|
|
5790
|
+
*/
|
|
5791
|
+
postConversationsMessagingIntegrationsInstagram(body) {
|
|
5792
|
+
// verify the required parameter 'body' is set
|
|
5793
|
+
if (body === undefined || body === null) {
|
|
5794
|
+
throw 'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsInstagram';
|
|
5795
|
+
}
|
|
5796
|
+
|
|
5797
|
+
return this.apiClient.callApi(
|
|
5798
|
+
'/api/v2/conversations/messaging/integrations/instagram',
|
|
5799
|
+
'POST',
|
|
5800
|
+
{ },
|
|
5801
|
+
{ },
|
|
5802
|
+
{ },
|
|
5803
|
+
{ },
|
|
5804
|
+
body,
|
|
5805
|
+
['PureCloud OAuth'],
|
|
5806
|
+
['application/json'],
|
|
5807
|
+
['application/json']
|
|
5808
|
+
);
|
|
5809
|
+
}
|
|
5810
|
+
|
|
5456
5811
|
/**
|
|
5457
5812
|
* Create a LINE messenger Integration
|
|
5458
5813
|
*
|
|
@@ -5,7 +5,7 @@ class FlowsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Flows service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 171.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -24,7 +24,7 @@ class FlowsApi {
|
|
|
24
24
|
* Get status for async query for Flow aggregates
|
|
25
25
|
*
|
|
26
26
|
* @param {String} jobId jobId
|
|
27
|
-
*
|
|
27
|
+
* getAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
28
28
|
*/
|
|
29
29
|
getAnalyticsFlowsAggregatesJob(jobId) {
|
|
30
30
|
// verify the required parameter 'jobId' is set
|
|
@@ -52,7 +52,7 @@ class FlowsApi {
|
|
|
52
52
|
* @param {String} jobId jobId
|
|
53
53
|
* @param {Object} opts Optional parameters
|
|
54
54
|
* @param {String} opts.cursor Cursor token to retrieve next page
|
|
55
|
-
*
|
|
55
|
+
* getAnalyticsFlowsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
56
56
|
*/
|
|
57
57
|
getAnalyticsFlowsAggregatesJobResults(jobId, opts) {
|
|
58
58
|
opts = opts || {};
|
|
@@ -83,7 +83,7 @@ class FlowsApi {
|
|
|
83
83
|
* @param {Object} opts Optional parameters
|
|
84
84
|
* @param {Number} opts.pageSize The desired page size
|
|
85
85
|
* @param {Number} opts.pageNumber The desired page number
|
|
86
|
-
*
|
|
86
|
+
* postAnalyticsFlowsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
87
87
|
*/
|
|
88
88
|
postAnalyticsFlowsActivityQuery(body, opts) {
|
|
89
89
|
opts = opts || {};
|
|
@@ -111,7 +111,7 @@ class FlowsApi {
|
|
|
111
111
|
* Query for flow aggregates asynchronously
|
|
112
112
|
*
|
|
113
113
|
* @param {Object} body query
|
|
114
|
-
*
|
|
114
|
+
* postAnalyticsFlowsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
115
115
|
*/
|
|
116
116
|
postAnalyticsFlowsAggregatesJobs(body) {
|
|
117
117
|
// verify the required parameter 'body' is set
|