purecloud-platform-client-v2 223.0.0 → 225.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 +3 -3
- package/dist/node/purecloud-platform-client-v2.js +3630 -2644
- package/dist/web-amd/purecloud-platform-client-v2.js +3630 -2644
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +2891 -2627
- package/dist/web-cjs/purecloud-platform-client-v2.js +2891 -2627
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +825 -249
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +387 -0
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +13 -13
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +8 -8
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +46 -46
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +124 -122
- package/src/purecloud-platform-client-v2/api/AuditApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +47 -47
- package/src/purecloud-platform-client-v2/api/BillingApi.js +7 -7
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +75 -30
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +38 -38
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +17 -17
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +32 -32
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +620 -344
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +66 -66
- package/src/purecloud-platform-client-v2/api/FaxApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +49 -49
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +101 -14
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +12 -12
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +106 -80
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +68 -68
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +212 -212
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +46 -46
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/LearningApi.js +28 -28
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +7 -7
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +11 -11
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +7 -7
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +59 -59
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +118 -118
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +19 -19
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/QualityApi.js +36 -36
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +42 -42
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +11 -11
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +148 -118
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +19 -19
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +13 -13
- package/src/purecloud-platform-client-v2/api/SearchApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +59 -59
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +33 -33
- package/src/purecloud-platform-client-v2/api/StationsApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +78 -78
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +8 -8
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +134 -93
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/TokensApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/UsageApi.js +7 -7
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/UsersApi.js +123 -93
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +17 -17
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +18 -18
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +332 -326
- package/src/purecloud-platform-client-v2/configuration.js +80 -23
- package/src/purecloud-platform-client-v2/index.js +7 -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 225.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -27,7 +27,7 @@ class ConversationsApi {
|
|
|
27
27
|
*/
|
|
28
28
|
deleteAnalyticsConversationsDetailsJob(jobId) {
|
|
29
29
|
// verify the required parameter 'jobId' is set
|
|
30
|
-
if (jobId === undefined || jobId === null) {
|
|
30
|
+
if (jobId === undefined || jobId === null || jobId === '') {
|
|
31
31
|
throw 'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -54,15 +54,15 @@ class ConversationsApi {
|
|
|
54
54
|
*/
|
|
55
55
|
deleteConversationParticipantCode(conversationId, participantId, addCommunicationCode) {
|
|
56
56
|
// verify the required parameter 'conversationId' is set
|
|
57
|
-
if (conversationId === undefined || conversationId === null) {
|
|
57
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
58
58
|
throw 'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';
|
|
59
59
|
}
|
|
60
60
|
// verify the required parameter 'participantId' is set
|
|
61
|
-
if (participantId === undefined || participantId === null) {
|
|
61
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
62
62
|
throw 'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';
|
|
63
63
|
}
|
|
64
64
|
// verify the required parameter 'addCommunicationCode' is set
|
|
65
|
-
if (addCommunicationCode === undefined || addCommunicationCode === null) {
|
|
65
|
+
if (addCommunicationCode === undefined || addCommunicationCode === null || addCommunicationCode === '') {
|
|
66
66
|
throw 'Missing the required parameter "addCommunicationCode" when calling deleteConversationParticipantCode';
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -88,11 +88,11 @@ class ConversationsApi {
|
|
|
88
88
|
*/
|
|
89
89
|
deleteConversationParticipantFlaggedreason(conversationId, participantId) {
|
|
90
90
|
// verify the required parameter 'conversationId' is set
|
|
91
|
-
if (conversationId === undefined || conversationId === null) {
|
|
91
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
92
92
|
throw 'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';
|
|
93
93
|
}
|
|
94
94
|
// verify the required parameter 'participantId' is set
|
|
95
|
-
if (participantId === undefined || participantId === null) {
|
|
95
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
96
96
|
throw 'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -118,11 +118,11 @@ class ConversationsApi {
|
|
|
118
118
|
*/
|
|
119
119
|
deleteConversationsCallParticipantConsult(conversationId, participantId) {
|
|
120
120
|
// verify the required parameter 'conversationId' is set
|
|
121
|
-
if (conversationId === undefined || conversationId === null) {
|
|
121
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
122
122
|
throw 'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';
|
|
123
123
|
}
|
|
124
124
|
// verify the required parameter 'participantId' is set
|
|
125
|
-
if (participantId === undefined || participantId === null) {
|
|
125
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
126
126
|
throw 'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantConsult';
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -148,11 +148,11 @@ class ConversationsApi {
|
|
|
148
148
|
*/
|
|
149
149
|
deleteConversationsEmailMessagesDraftAttachment(conversationId, attachmentId) {
|
|
150
150
|
// verify the required parameter 'conversationId' is set
|
|
151
|
-
if (conversationId === undefined || conversationId === null) {
|
|
151
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
152
152
|
throw 'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';
|
|
153
153
|
}
|
|
154
154
|
// verify the required parameter 'attachmentId' is set
|
|
155
|
-
if (attachmentId === undefined || attachmentId === null) {
|
|
155
|
+
if (attachmentId === undefined || attachmentId === null || attachmentId === '') {
|
|
156
156
|
throw 'Missing the required parameter "attachmentId" when calling deleteConversationsEmailMessagesDraftAttachment';
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -177,7 +177,7 @@ class ConversationsApi {
|
|
|
177
177
|
*/
|
|
178
178
|
deleteConversationsMessagesCachedmediaCachedMediaItemId(cachedMediaItemId) {
|
|
179
179
|
// verify the required parameter 'cachedMediaItemId' is set
|
|
180
|
-
if (cachedMediaItemId === undefined || cachedMediaItemId === null) {
|
|
180
|
+
if (cachedMediaItemId === undefined || cachedMediaItemId === null || cachedMediaItemId === '') {
|
|
181
181
|
throw 'Missing the required parameter "cachedMediaItemId" when calling deleteConversationsMessagesCachedmediaCachedMediaItemId';
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -202,7 +202,7 @@ class ConversationsApi {
|
|
|
202
202
|
*/
|
|
203
203
|
deleteConversationsMessagingIntegrationsFacebookIntegrationId(integrationId) {
|
|
204
204
|
// verify the required parameter 'integrationId' is set
|
|
205
|
-
if (integrationId === undefined || integrationId === null) {
|
|
205
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
206
206
|
throw 'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsFacebookIntegrationId';
|
|
207
207
|
}
|
|
208
208
|
|
|
@@ -227,7 +227,7 @@ class ConversationsApi {
|
|
|
227
227
|
*/
|
|
228
228
|
deleteConversationsMessagingIntegrationsInstagramIntegrationId(integrationId) {
|
|
229
229
|
// verify the required parameter 'integrationId' is set
|
|
230
|
-
if (integrationId === undefined || integrationId === null) {
|
|
230
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
231
231
|
throw 'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
232
232
|
}
|
|
233
233
|
|
|
@@ -252,7 +252,7 @@ class ConversationsApi {
|
|
|
252
252
|
*/
|
|
253
253
|
deleteConversationsMessagingIntegrationsOpenIntegrationId(integrationId) {
|
|
254
254
|
// verify the required parameter 'integrationId' is set
|
|
255
|
-
if (integrationId === undefined || integrationId === null) {
|
|
255
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
256
256
|
throw 'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsOpenIntegrationId';
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -277,7 +277,7 @@ class ConversationsApi {
|
|
|
277
277
|
*/
|
|
278
278
|
deleteConversationsMessagingIntegrationsTwitterIntegrationId(integrationId) {
|
|
279
279
|
// verify the required parameter 'integrationId' is set
|
|
280
|
-
if (integrationId === undefined || integrationId === null) {
|
|
280
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
281
281
|
throw 'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsTwitterIntegrationId';
|
|
282
282
|
}
|
|
283
283
|
|
|
@@ -302,7 +302,7 @@ class ConversationsApi {
|
|
|
302
302
|
*/
|
|
303
303
|
deleteConversationsMessagingIntegrationsWhatsappIntegrationId(integrationId) {
|
|
304
304
|
// verify the required parameter 'integrationId' is set
|
|
305
|
-
if (integrationId === undefined || integrationId === null) {
|
|
305
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
306
306
|
throw 'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsWhatsappIntegrationId';
|
|
307
307
|
}
|
|
308
308
|
|
|
@@ -327,7 +327,7 @@ class ConversationsApi {
|
|
|
327
327
|
*/
|
|
328
328
|
deleteConversationsMessagingSetting(messageSettingId) {
|
|
329
329
|
// verify the required parameter 'messageSettingId' is set
|
|
330
|
-
if (messageSettingId === undefined || messageSettingId === null) {
|
|
330
|
+
if (messageSettingId === undefined || messageSettingId === null || messageSettingId === '') {
|
|
331
331
|
throw 'Missing the required parameter "messageSettingId" when calling deleteConversationsMessagingSetting';
|
|
332
332
|
}
|
|
333
333
|
|
|
@@ -372,7 +372,7 @@ class ConversationsApi {
|
|
|
372
372
|
*/
|
|
373
373
|
deleteConversationsMessagingSupportedcontentSupportedContentId(supportedContentId) {
|
|
374
374
|
// verify the required parameter 'supportedContentId' is set
|
|
375
|
-
if (supportedContentId === undefined || supportedContentId === null) {
|
|
375
|
+
if (supportedContentId === undefined || supportedContentId === null || supportedContentId === '') {
|
|
376
376
|
throw 'Missing the required parameter "supportedContentId" when calling deleteConversationsMessagingSupportedcontentSupportedContentId';
|
|
377
377
|
}
|
|
378
378
|
|
|
@@ -397,7 +397,7 @@ class ConversationsApi {
|
|
|
397
397
|
*/
|
|
398
398
|
getAnalyticsConversationDetails(conversationId) {
|
|
399
399
|
// verify the required parameter 'conversationId' is set
|
|
400
|
-
if (conversationId === undefined || conversationId === null) {
|
|
400
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
401
401
|
throw 'Missing the required parameter "conversationId" when calling getAnalyticsConversationDetails';
|
|
402
402
|
}
|
|
403
403
|
|
|
@@ -423,7 +423,7 @@ class ConversationsApi {
|
|
|
423
423
|
*/
|
|
424
424
|
getAnalyticsConversationsAggregatesJob(jobId) {
|
|
425
425
|
// verify the required parameter 'jobId' is set
|
|
426
|
-
if (jobId === undefined || jobId === null) {
|
|
426
|
+
if (jobId === undefined || jobId === null || jobId === '') {
|
|
427
427
|
throw 'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJob';
|
|
428
428
|
}
|
|
429
429
|
|
|
@@ -453,7 +453,7 @@ class ConversationsApi {
|
|
|
453
453
|
opts = opts || {};
|
|
454
454
|
|
|
455
455
|
// verify the required parameter 'jobId' is set
|
|
456
|
-
if (jobId === undefined || jobId === null) {
|
|
456
|
+
if (jobId === undefined || jobId === null || jobId === '') {
|
|
457
457
|
throw 'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJobResults';
|
|
458
458
|
}
|
|
459
459
|
|
|
@@ -502,7 +502,7 @@ class ConversationsApi {
|
|
|
502
502
|
*/
|
|
503
503
|
getAnalyticsConversationsDetailsJob(jobId) {
|
|
504
504
|
// verify the required parameter 'jobId' is set
|
|
505
|
-
if (jobId === undefined || jobId === null) {
|
|
505
|
+
if (jobId === undefined || jobId === null || jobId === '') {
|
|
506
506
|
throw 'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJob';
|
|
507
507
|
}
|
|
508
508
|
|
|
@@ -532,7 +532,7 @@ class ConversationsApi {
|
|
|
532
532
|
opts = opts || {};
|
|
533
533
|
|
|
534
534
|
// verify the required parameter 'jobId' is set
|
|
535
|
-
if (jobId === undefined || jobId === null) {
|
|
535
|
+
if (jobId === undefined || jobId === null || jobId === '') {
|
|
536
536
|
throw 'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJobResults';
|
|
537
537
|
}
|
|
538
538
|
|
|
@@ -577,7 +577,7 @@ class ConversationsApi {
|
|
|
577
577
|
*/
|
|
578
578
|
getConversation(conversationId) {
|
|
579
579
|
// verify the required parameter 'conversationId' is set
|
|
580
|
-
if (conversationId === undefined || conversationId === null) {
|
|
580
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
581
581
|
throw 'Missing the required parameter "conversationId" when calling getConversation';
|
|
582
582
|
}
|
|
583
583
|
|
|
@@ -595,6 +595,78 @@ class ConversationsApi {
|
|
|
595
595
|
);
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
+
/**
|
|
599
|
+
* Get message
|
|
600
|
+
*
|
|
601
|
+
* @param {String} conversationId conversationId
|
|
602
|
+
* @param {String} communicationId communicationId
|
|
603
|
+
* @param {String} messageId messageId
|
|
604
|
+
* getConversationCommunicationInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
605
|
+
*/
|
|
606
|
+
getConversationCommunicationInternalmessage(conversationId, communicationId, messageId) {
|
|
607
|
+
// verify the required parameter 'conversationId' is set
|
|
608
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
609
|
+
throw 'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';
|
|
610
|
+
}
|
|
611
|
+
// verify the required parameter 'communicationId' is set
|
|
612
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
613
|
+
throw 'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';
|
|
614
|
+
}
|
|
615
|
+
// verify the required parameter 'messageId' is set
|
|
616
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
617
|
+
throw 'Missing the required parameter "messageId" when calling getConversationCommunicationInternalmessage';
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
return this.apiClient.callApi(
|
|
621
|
+
'/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages/{messageId}',
|
|
622
|
+
'GET',
|
|
623
|
+
{ 'conversationId': conversationId,'communicationId': communicationId,'messageId': messageId },
|
|
624
|
+
{ },
|
|
625
|
+
{ },
|
|
626
|
+
{ },
|
|
627
|
+
null,
|
|
628
|
+
['PureCloud OAuth'],
|
|
629
|
+
['application/json'],
|
|
630
|
+
['application/json']
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Get messages for communication
|
|
636
|
+
*
|
|
637
|
+
* @param {String} conversationId conversationId
|
|
638
|
+
* @param {String} communicationId communicationId
|
|
639
|
+
* @param {Object} opts Optional parameters
|
|
640
|
+
* @param {Number} opts.pageSize Indicates maximum number of results in response. Default page size is 25 results. The maximum page size is 200. (default to 25)
|
|
641
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
642
|
+
* getConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
643
|
+
*/
|
|
644
|
+
getConversationCommunicationInternalmessages(conversationId, communicationId, opts) {
|
|
645
|
+
opts = opts || {};
|
|
646
|
+
|
|
647
|
+
// verify the required parameter 'conversationId' is set
|
|
648
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
649
|
+
throw 'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';
|
|
650
|
+
}
|
|
651
|
+
// verify the required parameter 'communicationId' is set
|
|
652
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
653
|
+
throw 'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
return this.apiClient.callApi(
|
|
657
|
+
'/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages',
|
|
658
|
+
'GET',
|
|
659
|
+
{ 'conversationId': conversationId,'communicationId': communicationId },
|
|
660
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
661
|
+
{ },
|
|
662
|
+
{ },
|
|
663
|
+
null,
|
|
664
|
+
['PureCloud OAuth'],
|
|
665
|
+
['application/json'],
|
|
666
|
+
['application/json']
|
|
667
|
+
);
|
|
668
|
+
}
|
|
669
|
+
|
|
598
670
|
/**
|
|
599
671
|
* Fetch info on a secure session
|
|
600
672
|
*
|
|
@@ -604,15 +676,15 @@ class ConversationsApi {
|
|
|
604
676
|
*/
|
|
605
677
|
getConversationParticipantSecureivrsession(conversationId, participantId, secureSessionId) {
|
|
606
678
|
// verify the required parameter 'conversationId' is set
|
|
607
|
-
if (conversationId === undefined || conversationId === null) {
|
|
679
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
608
680
|
throw 'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';
|
|
609
681
|
}
|
|
610
682
|
// verify the required parameter 'participantId' is set
|
|
611
|
-
if (participantId === undefined || participantId === null) {
|
|
683
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
612
684
|
throw 'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';
|
|
613
685
|
}
|
|
614
686
|
// verify the required parameter 'secureSessionId' is set
|
|
615
|
-
if (secureSessionId === undefined || secureSessionId === null) {
|
|
687
|
+
if (secureSessionId === undefined || secureSessionId === null || secureSessionId === '') {
|
|
616
688
|
throw 'Missing the required parameter "secureSessionId" when calling getConversationParticipantSecureivrsession';
|
|
617
689
|
}
|
|
618
690
|
|
|
@@ -638,11 +710,11 @@ class ConversationsApi {
|
|
|
638
710
|
*/
|
|
639
711
|
getConversationParticipantSecureivrsessions(conversationId, participantId) {
|
|
640
712
|
// verify the required parameter 'conversationId' is set
|
|
641
|
-
if (conversationId === undefined || conversationId === null) {
|
|
713
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
642
714
|
throw 'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';
|
|
643
715
|
}
|
|
644
716
|
// verify the required parameter 'participantId' is set
|
|
645
|
-
if (participantId === undefined || participantId === null) {
|
|
717
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
646
718
|
throw 'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';
|
|
647
719
|
}
|
|
648
720
|
|
|
@@ -672,11 +744,11 @@ class ConversationsApi {
|
|
|
672
744
|
opts = opts || {};
|
|
673
745
|
|
|
674
746
|
// verify the required parameter 'conversationId' is set
|
|
675
|
-
if (conversationId === undefined || conversationId === null) {
|
|
747
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
676
748
|
throw 'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';
|
|
677
749
|
}
|
|
678
750
|
// verify the required parameter 'participantId' is set
|
|
679
|
-
if (participantId === undefined || participantId === null) {
|
|
751
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
680
752
|
throw 'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';
|
|
681
753
|
}
|
|
682
754
|
|
|
@@ -702,11 +774,11 @@ class ConversationsApi {
|
|
|
702
774
|
*/
|
|
703
775
|
getConversationParticipantWrapupcodes(conversationId, participantId) {
|
|
704
776
|
// verify the required parameter 'conversationId' is set
|
|
705
|
-
if (conversationId === undefined || conversationId === null) {
|
|
777
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
706
778
|
throw 'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';
|
|
707
779
|
}
|
|
708
780
|
// verify the required parameter 'participantId' is set
|
|
709
|
-
if (participantId === undefined || participantId === null) {
|
|
781
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
710
782
|
throw 'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';
|
|
711
783
|
}
|
|
712
784
|
|
|
@@ -731,7 +803,7 @@ class ConversationsApi {
|
|
|
731
803
|
*/
|
|
732
804
|
getConversationSecureattributes(conversationId) {
|
|
733
805
|
// verify the required parameter 'conversationId' is set
|
|
734
|
-
if (conversationId === undefined || conversationId === null) {
|
|
806
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
735
807
|
throw 'Missing the required parameter "conversationId" when calling getConversationSecureattributes';
|
|
736
808
|
}
|
|
737
809
|
|
|
@@ -757,11 +829,11 @@ class ConversationsApi {
|
|
|
757
829
|
*/
|
|
758
830
|
getConversationSuggestion(conversationId, suggestionId) {
|
|
759
831
|
// verify the required parameter 'conversationId' is set
|
|
760
|
-
if (conversationId === undefined || conversationId === null) {
|
|
832
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
761
833
|
throw 'Missing the required parameter "conversationId" when calling getConversationSuggestion';
|
|
762
834
|
}
|
|
763
835
|
// verify the required parameter 'suggestionId' is set
|
|
764
|
-
if (suggestionId === undefined || suggestionId === null) {
|
|
836
|
+
if (suggestionId === undefined || suggestionId === null || suggestionId === '') {
|
|
765
837
|
throw 'Missing the required parameter "suggestionId" when calling getConversationSuggestion';
|
|
766
838
|
}
|
|
767
839
|
|
|
@@ -794,7 +866,7 @@ class ConversationsApi {
|
|
|
794
866
|
opts = opts || {};
|
|
795
867
|
|
|
796
868
|
// verify the required parameter 'conversationId' is set
|
|
797
|
-
if (conversationId === undefined || conversationId === null) {
|
|
869
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
798
870
|
throw 'Missing the required parameter "conversationId" when calling getConversationSuggestions';
|
|
799
871
|
}
|
|
800
872
|
|
|
@@ -819,7 +891,7 @@ class ConversationsApi {
|
|
|
819
891
|
*/
|
|
820
892
|
getConversationSummaries(conversationId) {
|
|
821
893
|
// verify the required parameter 'conversationId' is set
|
|
822
|
-
if (conversationId === undefined || conversationId === null) {
|
|
894
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
823
895
|
throw 'Missing the required parameter "conversationId" when calling getConversationSummaries';
|
|
824
896
|
}
|
|
825
897
|
|
|
@@ -868,7 +940,7 @@ class ConversationsApi {
|
|
|
868
940
|
*/
|
|
869
941
|
getConversationsCall(conversationId) {
|
|
870
942
|
// verify the required parameter 'conversationId' is set
|
|
871
|
-
if (conversationId === undefined || conversationId === null) {
|
|
943
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
872
944
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCall';
|
|
873
945
|
}
|
|
874
946
|
|
|
@@ -893,21 +965,21 @@ class ConversationsApi {
|
|
|
893
965
|
* @param {String} participantId participantId
|
|
894
966
|
* @param {String} communicationId communicationId
|
|
895
967
|
* @param {Object} opts Optional parameters
|
|
896
|
-
* @param {Boolean} opts.provisional Indicates
|
|
968
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
897
969
|
*/
|
|
898
970
|
getConversationsCallParticipantCommunicationWrapup(conversationId, participantId, communicationId, opts) {
|
|
899
971
|
opts = opts || {};
|
|
900
972
|
|
|
901
973
|
// verify the required parameter 'conversationId' is set
|
|
902
|
-
if (conversationId === undefined || conversationId === null) {
|
|
974
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
903
975
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';
|
|
904
976
|
}
|
|
905
977
|
// verify the required parameter 'participantId' is set
|
|
906
|
-
if (participantId === undefined || participantId === null) {
|
|
978
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
907
979
|
throw 'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';
|
|
908
980
|
}
|
|
909
981
|
// verify the required parameter 'communicationId' is set
|
|
910
|
-
if (communicationId === undefined || communicationId === null) {
|
|
982
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
911
983
|
throw 'Missing the required parameter "communicationId" when calling getConversationsCallParticipantCommunicationWrapup';
|
|
912
984
|
}
|
|
913
985
|
|
|
@@ -931,17 +1003,17 @@ class ConversationsApi {
|
|
|
931
1003
|
* @param {String} conversationId conversationId
|
|
932
1004
|
* @param {String} participantId participantId
|
|
933
1005
|
* @param {Object} opts Optional parameters
|
|
934
|
-
* @param {Boolean} opts.provisional Indicates
|
|
1006
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
935
1007
|
*/
|
|
936
1008
|
getConversationsCallParticipantWrapup(conversationId, participantId, opts) {
|
|
937
1009
|
opts = opts || {};
|
|
938
1010
|
|
|
939
1011
|
// verify the required parameter 'conversationId' is set
|
|
940
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1012
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
941
1013
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';
|
|
942
1014
|
}
|
|
943
1015
|
// verify the required parameter 'participantId' is set
|
|
944
|
-
if (participantId === undefined || participantId === null) {
|
|
1016
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
945
1017
|
throw 'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapup';
|
|
946
1018
|
}
|
|
947
1019
|
|
|
@@ -967,11 +1039,11 @@ class ConversationsApi {
|
|
|
967
1039
|
*/
|
|
968
1040
|
getConversationsCallParticipantWrapupcodes(conversationId, participantId) {
|
|
969
1041
|
// verify the required parameter 'conversationId' is set
|
|
970
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1042
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
971
1043
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';
|
|
972
1044
|
}
|
|
973
1045
|
// verify the required parameter 'participantId' is set
|
|
974
|
-
if (participantId === undefined || participantId === null) {
|
|
1046
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
975
1047
|
throw 'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapupcodes';
|
|
976
1048
|
}
|
|
977
1049
|
|
|
@@ -996,7 +1068,7 @@ class ConversationsApi {
|
|
|
996
1068
|
*/
|
|
997
1069
|
getConversationsCallback(conversationId) {
|
|
998
1070
|
// verify the required parameter 'conversationId' is set
|
|
999
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1071
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1000
1072
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCallback';
|
|
1001
1073
|
}
|
|
1002
1074
|
|
|
@@ -1021,21 +1093,21 @@ class ConversationsApi {
|
|
|
1021
1093
|
* @param {String} participantId participantId
|
|
1022
1094
|
* @param {String} communicationId communicationId
|
|
1023
1095
|
* @param {Object} opts Optional parameters
|
|
1024
|
-
* @param {Boolean} opts.provisional Indicates
|
|
1096
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
1025
1097
|
*/
|
|
1026
1098
|
getConversationsCallbackParticipantCommunicationWrapup(conversationId, participantId, communicationId, opts) {
|
|
1027
1099
|
opts = opts || {};
|
|
1028
1100
|
|
|
1029
1101
|
// verify the required parameter 'conversationId' is set
|
|
1030
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1102
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1031
1103
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';
|
|
1032
1104
|
}
|
|
1033
1105
|
// verify the required parameter 'participantId' is set
|
|
1034
|
-
if (participantId === undefined || participantId === null) {
|
|
1106
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1035
1107
|
throw 'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';
|
|
1036
1108
|
}
|
|
1037
1109
|
// verify the required parameter 'communicationId' is set
|
|
1038
|
-
if (communicationId === undefined || communicationId === null) {
|
|
1110
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
1039
1111
|
throw 'Missing the required parameter "communicationId" when calling getConversationsCallbackParticipantCommunicationWrapup';
|
|
1040
1112
|
}
|
|
1041
1113
|
|
|
@@ -1059,17 +1131,17 @@ class ConversationsApi {
|
|
|
1059
1131
|
* @param {String} conversationId conversationId
|
|
1060
1132
|
* @param {String} participantId participantId
|
|
1061
1133
|
* @param {Object} opts Optional parameters
|
|
1062
|
-
* @param {Boolean} opts.provisional Indicates
|
|
1134
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
1063
1135
|
*/
|
|
1064
1136
|
getConversationsCallbackParticipantWrapup(conversationId, participantId, opts) {
|
|
1065
1137
|
opts = opts || {};
|
|
1066
1138
|
|
|
1067
1139
|
// verify the required parameter 'conversationId' is set
|
|
1068
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1140
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1069
1141
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';
|
|
1070
1142
|
}
|
|
1071
1143
|
// verify the required parameter 'participantId' is set
|
|
1072
|
-
if (participantId === undefined || participantId === null) {
|
|
1144
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1073
1145
|
throw 'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapup';
|
|
1074
1146
|
}
|
|
1075
1147
|
|
|
@@ -1095,11 +1167,11 @@ class ConversationsApi {
|
|
|
1095
1167
|
*/
|
|
1096
1168
|
getConversationsCallbackParticipantWrapupcodes(conversationId, participantId) {
|
|
1097
1169
|
// verify the required parameter 'conversationId' is set
|
|
1098
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1170
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1099
1171
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';
|
|
1100
1172
|
}
|
|
1101
1173
|
// verify the required parameter 'participantId' is set
|
|
1102
|
-
if (participantId === undefined || participantId === null) {
|
|
1174
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1103
1175
|
throw 'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapupcodes';
|
|
1104
1176
|
}
|
|
1105
1177
|
|
|
@@ -1212,7 +1284,7 @@ class ConversationsApi {
|
|
|
1212
1284
|
*/
|
|
1213
1285
|
getConversationsChat(conversationId) {
|
|
1214
1286
|
// verify the required parameter 'conversationId' is set
|
|
1215
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1287
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1216
1288
|
throw 'Missing the required parameter "conversationId" when calling getConversationsChat';
|
|
1217
1289
|
}
|
|
1218
1290
|
|
|
@@ -1239,11 +1311,11 @@ class ConversationsApi {
|
|
|
1239
1311
|
*/
|
|
1240
1312
|
getConversationsChatMessage(conversationId, messageId) {
|
|
1241
1313
|
// verify the required parameter 'conversationId' is set
|
|
1242
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1314
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1243
1315
|
throw 'Missing the required parameter "conversationId" when calling getConversationsChatMessage';
|
|
1244
1316
|
}
|
|
1245
1317
|
// verify the required parameter 'messageId' is set
|
|
1246
|
-
if (messageId === undefined || messageId === null) {
|
|
1318
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
1247
1319
|
throw 'Missing the required parameter "messageId" when calling getConversationsChatMessage';
|
|
1248
1320
|
}
|
|
1249
1321
|
|
|
@@ -1276,7 +1348,7 @@ class ConversationsApi {
|
|
|
1276
1348
|
opts = opts || {};
|
|
1277
1349
|
|
|
1278
1350
|
// verify the required parameter 'conversationId' is set
|
|
1279
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1351
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1280
1352
|
throw 'Missing the required parameter "conversationId" when calling getConversationsChatMessages';
|
|
1281
1353
|
}
|
|
1282
1354
|
|
|
@@ -1301,22 +1373,22 @@ class ConversationsApi {
|
|
|
1301
1373
|
* @param {String} participantId participantId
|
|
1302
1374
|
* @param {String} communicationId communicationId
|
|
1303
1375
|
* @param {Object} opts Optional parameters
|
|
1304
|
-
* @param {Boolean} opts.provisional Indicates
|
|
1376
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
1305
1377
|
* @deprecated
|
|
1306
1378
|
*/
|
|
1307
1379
|
getConversationsChatParticipantCommunicationWrapup(conversationId, participantId, communicationId, opts) {
|
|
1308
1380
|
opts = opts || {};
|
|
1309
1381
|
|
|
1310
1382
|
// verify the required parameter 'conversationId' is set
|
|
1311
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1383
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1312
1384
|
throw 'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';
|
|
1313
1385
|
}
|
|
1314
1386
|
// verify the required parameter 'participantId' is set
|
|
1315
|
-
if (participantId === undefined || participantId === null) {
|
|
1387
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1316
1388
|
throw 'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';
|
|
1317
1389
|
}
|
|
1318
1390
|
// verify the required parameter 'communicationId' is set
|
|
1319
|
-
if (communicationId === undefined || communicationId === null) {
|
|
1391
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
1320
1392
|
throw 'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';
|
|
1321
1393
|
}
|
|
1322
1394
|
|
|
@@ -1340,18 +1412,18 @@ class ConversationsApi {
|
|
|
1340
1412
|
* @param {String} conversationId conversationId
|
|
1341
1413
|
* @param {String} participantId participantId
|
|
1342
1414
|
* @param {Object} opts Optional parameters
|
|
1343
|
-
* @param {Boolean} opts.provisional Indicates
|
|
1415
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
1344
1416
|
* @deprecated
|
|
1345
1417
|
*/
|
|
1346
1418
|
getConversationsChatParticipantWrapup(conversationId, participantId, opts) {
|
|
1347
1419
|
opts = opts || {};
|
|
1348
1420
|
|
|
1349
1421
|
// verify the required parameter 'conversationId' is set
|
|
1350
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1422
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1351
1423
|
throw 'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';
|
|
1352
1424
|
}
|
|
1353
1425
|
// verify the required parameter 'participantId' is set
|
|
1354
|
-
if (participantId === undefined || participantId === null) {
|
|
1426
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1355
1427
|
throw 'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';
|
|
1356
1428
|
}
|
|
1357
1429
|
|
|
@@ -1378,11 +1450,11 @@ class ConversationsApi {
|
|
|
1378
1450
|
*/
|
|
1379
1451
|
getConversationsChatParticipantWrapupcodes(conversationId, participantId) {
|
|
1380
1452
|
// verify the required parameter 'conversationId' is set
|
|
1381
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1453
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1382
1454
|
throw 'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';
|
|
1383
1455
|
}
|
|
1384
1456
|
// verify the required parameter 'participantId' is set
|
|
1385
|
-
if (participantId === undefined || participantId === null) {
|
|
1457
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1386
1458
|
throw 'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';
|
|
1387
1459
|
}
|
|
1388
1460
|
|
|
@@ -1428,7 +1500,7 @@ class ConversationsApi {
|
|
|
1428
1500
|
*/
|
|
1429
1501
|
getConversationsCobrowsesession(conversationId) {
|
|
1430
1502
|
// verify the required parameter 'conversationId' is set
|
|
1431
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1503
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1432
1504
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCobrowsesession';
|
|
1433
1505
|
}
|
|
1434
1506
|
|
|
@@ -1453,22 +1525,22 @@ class ConversationsApi {
|
|
|
1453
1525
|
* @param {String} participantId participantId
|
|
1454
1526
|
* @param {String} communicationId communicationId
|
|
1455
1527
|
* @param {Object} opts Optional parameters
|
|
1456
|
-
* @param {Boolean} opts.provisional Indicates
|
|
1528
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
1457
1529
|
* @deprecated
|
|
1458
1530
|
*/
|
|
1459
1531
|
getConversationsCobrowsesessionParticipantCommunicationWrapup(conversationId, participantId, communicationId, opts) {
|
|
1460
1532
|
opts = opts || {};
|
|
1461
1533
|
|
|
1462
1534
|
// verify the required parameter 'conversationId' is set
|
|
1463
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1535
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1464
1536
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';
|
|
1465
1537
|
}
|
|
1466
1538
|
// verify the required parameter 'participantId' is set
|
|
1467
|
-
if (participantId === undefined || participantId === null) {
|
|
1539
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1468
1540
|
throw 'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';
|
|
1469
1541
|
}
|
|
1470
1542
|
// verify the required parameter 'communicationId' is set
|
|
1471
|
-
if (communicationId === undefined || communicationId === null) {
|
|
1543
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
1472
1544
|
throw 'Missing the required parameter "communicationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';
|
|
1473
1545
|
}
|
|
1474
1546
|
|
|
@@ -1492,18 +1564,18 @@ class ConversationsApi {
|
|
|
1492
1564
|
* @param {String} conversationId conversationId
|
|
1493
1565
|
* @param {String} participantId participantId
|
|
1494
1566
|
* @param {Object} opts Optional parameters
|
|
1495
|
-
* @param {Boolean} opts.provisional Indicates
|
|
1567
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
1496
1568
|
* @deprecated
|
|
1497
1569
|
*/
|
|
1498
1570
|
getConversationsCobrowsesessionParticipantWrapup(conversationId, participantId, opts) {
|
|
1499
1571
|
opts = opts || {};
|
|
1500
1572
|
|
|
1501
1573
|
// verify the required parameter 'conversationId' is set
|
|
1502
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1574
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1503
1575
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';
|
|
1504
1576
|
}
|
|
1505
1577
|
// verify the required parameter 'participantId' is set
|
|
1506
|
-
if (participantId === undefined || participantId === null) {
|
|
1578
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1507
1579
|
throw 'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapup';
|
|
1508
1580
|
}
|
|
1509
1581
|
|
|
@@ -1530,11 +1602,11 @@ class ConversationsApi {
|
|
|
1530
1602
|
*/
|
|
1531
1603
|
getConversationsCobrowsesessionParticipantWrapupcodes(conversationId, participantId) {
|
|
1532
1604
|
// verify the required parameter 'conversationId' is set
|
|
1533
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1605
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1534
1606
|
throw 'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';
|
|
1535
1607
|
}
|
|
1536
1608
|
// verify the required parameter 'participantId' is set
|
|
1537
|
-
if (participantId === undefined || participantId === null) {
|
|
1609
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1538
1610
|
throw 'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';
|
|
1539
1611
|
}
|
|
1540
1612
|
|
|
@@ -1579,7 +1651,7 @@ class ConversationsApi {
|
|
|
1579
1651
|
*/
|
|
1580
1652
|
getConversationsEmail(conversationId) {
|
|
1581
1653
|
// verify the required parameter 'conversationId' is set
|
|
1582
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1654
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1583
1655
|
throw 'Missing the required parameter "conversationId" when calling getConversationsEmail';
|
|
1584
1656
|
}
|
|
1585
1657
|
|
|
@@ -1605,11 +1677,11 @@ class ConversationsApi {
|
|
|
1605
1677
|
*/
|
|
1606
1678
|
getConversationsEmailMessage(conversationId, messageId) {
|
|
1607
1679
|
// verify the required parameter 'conversationId' is set
|
|
1608
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1680
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1609
1681
|
throw 'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';
|
|
1610
1682
|
}
|
|
1611
1683
|
// verify the required parameter 'messageId' is set
|
|
1612
|
-
if (messageId === undefined || messageId === null) {
|
|
1684
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
1613
1685
|
throw 'Missing the required parameter "messageId" when calling getConversationsEmailMessage';
|
|
1614
1686
|
}
|
|
1615
1687
|
|
|
@@ -1634,7 +1706,7 @@ class ConversationsApi {
|
|
|
1634
1706
|
*/
|
|
1635
1707
|
getConversationsEmailMessages(conversationId) {
|
|
1636
1708
|
// verify the required parameter 'conversationId' is set
|
|
1637
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1709
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1638
1710
|
throw 'Missing the required parameter "conversationId" when calling getConversationsEmailMessages';
|
|
1639
1711
|
}
|
|
1640
1712
|
|
|
@@ -1659,7 +1731,7 @@ class ConversationsApi {
|
|
|
1659
1731
|
*/
|
|
1660
1732
|
getConversationsEmailMessagesDraft(conversationId) {
|
|
1661
1733
|
// verify the required parameter 'conversationId' is set
|
|
1662
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1734
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1663
1735
|
throw 'Missing the required parameter "conversationId" when calling getConversationsEmailMessagesDraft';
|
|
1664
1736
|
}
|
|
1665
1737
|
|
|
@@ -1684,21 +1756,21 @@ class ConversationsApi {
|
|
|
1684
1756
|
* @param {String} participantId participantId
|
|
1685
1757
|
* @param {String} communicationId communicationId
|
|
1686
1758
|
* @param {Object} opts Optional parameters
|
|
1687
|
-
* @param {Boolean} opts.provisional Indicates
|
|
1759
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
1688
1760
|
*/
|
|
1689
1761
|
getConversationsEmailParticipantCommunicationWrapup(conversationId, participantId, communicationId, opts) {
|
|
1690
1762
|
opts = opts || {};
|
|
1691
1763
|
|
|
1692
1764
|
// verify the required parameter 'conversationId' is set
|
|
1693
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1765
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1694
1766
|
throw 'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';
|
|
1695
1767
|
}
|
|
1696
1768
|
// verify the required parameter 'participantId' is set
|
|
1697
|
-
if (participantId === undefined || participantId === null) {
|
|
1769
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1698
1770
|
throw 'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';
|
|
1699
1771
|
}
|
|
1700
1772
|
// verify the required parameter 'communicationId' is set
|
|
1701
|
-
if (communicationId === undefined || communicationId === null) {
|
|
1773
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
1702
1774
|
throw 'Missing the required parameter "communicationId" when calling getConversationsEmailParticipantCommunicationWrapup';
|
|
1703
1775
|
}
|
|
1704
1776
|
|
|
@@ -1722,17 +1794,17 @@ class ConversationsApi {
|
|
|
1722
1794
|
* @param {String} conversationId conversationId
|
|
1723
1795
|
* @param {String} participantId participantId
|
|
1724
1796
|
* @param {Object} opts Optional parameters
|
|
1725
|
-
* @param {Boolean} opts.provisional Indicates
|
|
1797
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
1726
1798
|
*/
|
|
1727
1799
|
getConversationsEmailParticipantWrapup(conversationId, participantId, opts) {
|
|
1728
1800
|
opts = opts || {};
|
|
1729
1801
|
|
|
1730
1802
|
// verify the required parameter 'conversationId' is set
|
|
1731
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1803
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1732
1804
|
throw 'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';
|
|
1733
1805
|
}
|
|
1734
1806
|
// verify the required parameter 'participantId' is set
|
|
1735
|
-
if (participantId === undefined || participantId === null) {
|
|
1807
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1736
1808
|
throw 'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapup';
|
|
1737
1809
|
}
|
|
1738
1810
|
|
|
@@ -1758,11 +1830,11 @@ class ConversationsApi {
|
|
|
1758
1830
|
*/
|
|
1759
1831
|
getConversationsEmailParticipantWrapupcodes(conversationId, participantId) {
|
|
1760
1832
|
// verify the required parameter 'conversationId' is set
|
|
1761
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1833
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1762
1834
|
throw 'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';
|
|
1763
1835
|
}
|
|
1764
1836
|
// verify the required parameter 'participantId' is set
|
|
1765
|
-
if (participantId === undefined || participantId === null) {
|
|
1837
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
1766
1838
|
throw 'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapupcodes';
|
|
1767
1839
|
}
|
|
1768
1840
|
|
|
@@ -1787,7 +1859,7 @@ class ConversationsApi {
|
|
|
1787
1859
|
*/
|
|
1788
1860
|
getConversationsEmailSettings(conversationId) {
|
|
1789
1861
|
// verify the required parameter 'conversationId' is set
|
|
1790
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1862
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1791
1863
|
throw 'Missing the required parameter "conversationId" when calling getConversationsEmailSettings';
|
|
1792
1864
|
}
|
|
1793
1865
|
|
|
@@ -1825,6 +1897,53 @@ class ConversationsApi {
|
|
|
1825
1897
|
);
|
|
1826
1898
|
}
|
|
1827
1899
|
|
|
1900
|
+
/**
|
|
1901
|
+
* Get internal message conversation
|
|
1902
|
+
*
|
|
1903
|
+
* @param {String} conversationId conversationId
|
|
1904
|
+
* getConversationsInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1905
|
+
*/
|
|
1906
|
+
getConversationsInternalmessage(conversationId) {
|
|
1907
|
+
// verify the required parameter 'conversationId' is set
|
|
1908
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1909
|
+
throw 'Missing the required parameter "conversationId" when calling getConversationsInternalmessage';
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
return this.apiClient.callApi(
|
|
1913
|
+
'/api/v2/conversations/internalmessages/{conversationId}',
|
|
1914
|
+
'GET',
|
|
1915
|
+
{ 'conversationId': conversationId },
|
|
1916
|
+
{ },
|
|
1917
|
+
{ },
|
|
1918
|
+
{ },
|
|
1919
|
+
null,
|
|
1920
|
+
['PureCloud OAuth'],
|
|
1921
|
+
['application/json'],
|
|
1922
|
+
['application/json']
|
|
1923
|
+
);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* Get active internal message conversations for the logged in user
|
|
1928
|
+
*
|
|
1929
|
+
* getConversationsInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1930
|
+
*/
|
|
1931
|
+
getConversationsInternalmessages() {
|
|
1932
|
+
|
|
1933
|
+
return this.apiClient.callApi(
|
|
1934
|
+
'/api/v2/conversations/internalmessages',
|
|
1935
|
+
'GET',
|
|
1936
|
+
{ },
|
|
1937
|
+
{ },
|
|
1938
|
+
{ },
|
|
1939
|
+
{ },
|
|
1940
|
+
null,
|
|
1941
|
+
['PureCloud OAuth'],
|
|
1942
|
+
['application/json'],
|
|
1943
|
+
['application/json']
|
|
1944
|
+
);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1828
1947
|
/**
|
|
1829
1948
|
* Get the encryption key configurations
|
|
1830
1949
|
*
|
|
@@ -1832,7 +1951,7 @@ class ConversationsApi {
|
|
|
1832
1951
|
*/
|
|
1833
1952
|
getConversationsKeyconfiguration(keyconfigurationsId) {
|
|
1834
1953
|
// verify the required parameter 'keyconfigurationsId' is set
|
|
1835
|
-
if (keyconfigurationsId === undefined || keyconfigurationsId === null) {
|
|
1954
|
+
if (keyconfigurationsId === undefined || keyconfigurationsId === null || keyconfigurationsId === '') {
|
|
1836
1955
|
throw 'Missing the required parameter "keyconfigurationsId" when calling getConversationsKeyconfiguration';
|
|
1837
1956
|
}
|
|
1838
1957
|
|
|
@@ -1877,7 +1996,7 @@ class ConversationsApi {
|
|
|
1877
1996
|
*/
|
|
1878
1997
|
getConversationsMessage(conversationId) {
|
|
1879
1998
|
// verify the required parameter 'conversationId' is set
|
|
1880
|
-
if (conversationId === undefined || conversationId === null) {
|
|
1999
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1881
2000
|
throw 'Missing the required parameter "conversationId" when calling getConversationsMessage';
|
|
1882
2001
|
}
|
|
1883
2002
|
|
|
@@ -1904,15 +2023,15 @@ class ConversationsApi {
|
|
|
1904
2023
|
*/
|
|
1905
2024
|
getConversationsMessageCommunicationMessagesMediaMediaId(conversationId, communicationId, mediaId) {
|
|
1906
2025
|
// verify the required parameter 'conversationId' is set
|
|
1907
|
-
if (conversationId === undefined || conversationId === null) {
|
|
2026
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1908
2027
|
throw 'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';
|
|
1909
2028
|
}
|
|
1910
2029
|
// verify the required parameter 'communicationId' is set
|
|
1911
|
-
if (communicationId === undefined || communicationId === null) {
|
|
2030
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
1912
2031
|
throw 'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';
|
|
1913
2032
|
}
|
|
1914
2033
|
// verify the required parameter 'mediaId' is set
|
|
1915
|
-
if (mediaId === undefined || mediaId === null) {
|
|
2034
|
+
if (mediaId === undefined || mediaId === null || mediaId === '') {
|
|
1916
2035
|
throw 'Missing the required parameter "mediaId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';
|
|
1917
2036
|
}
|
|
1918
2037
|
|
|
@@ -1941,7 +2060,7 @@ class ConversationsApi {
|
|
|
1941
2060
|
opts = opts || {};
|
|
1942
2061
|
|
|
1943
2062
|
// verify the required parameter 'messageId' is set
|
|
1944
|
-
if (messageId === undefined || messageId === null) {
|
|
2063
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
1945
2064
|
throw 'Missing the required parameter "messageId" when calling getConversationsMessageDetails';
|
|
1946
2065
|
}
|
|
1947
2066
|
|
|
@@ -1971,11 +2090,11 @@ class ConversationsApi {
|
|
|
1971
2090
|
opts = opts || {};
|
|
1972
2091
|
|
|
1973
2092
|
// verify the required parameter 'conversationId' is set
|
|
1974
|
-
if (conversationId === undefined || conversationId === null) {
|
|
2093
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
1975
2094
|
throw 'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';
|
|
1976
2095
|
}
|
|
1977
2096
|
// verify the required parameter 'messageId' is set
|
|
1978
|
-
if (messageId === undefined || messageId === null) {
|
|
2097
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
1979
2098
|
throw 'Missing the required parameter "messageId" when calling getConversationsMessageMessage';
|
|
1980
2099
|
}
|
|
1981
2100
|
|
|
@@ -2000,21 +2119,21 @@ class ConversationsApi {
|
|
|
2000
2119
|
* @param {String} participantId participantId
|
|
2001
2120
|
* @param {String} communicationId communicationId
|
|
2002
2121
|
* @param {Object} opts Optional parameters
|
|
2003
|
-
* @param {Boolean} opts.provisional Indicates
|
|
2122
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
2004
2123
|
*/
|
|
2005
2124
|
getConversationsMessageParticipantCommunicationWrapup(conversationId, participantId, communicationId, opts) {
|
|
2006
2125
|
opts = opts || {};
|
|
2007
2126
|
|
|
2008
2127
|
// verify the required parameter 'conversationId' is set
|
|
2009
|
-
if (conversationId === undefined || conversationId === null) {
|
|
2128
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
2010
2129
|
throw 'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';
|
|
2011
2130
|
}
|
|
2012
2131
|
// verify the required parameter 'participantId' is set
|
|
2013
|
-
if (participantId === undefined || participantId === null) {
|
|
2132
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
2014
2133
|
throw 'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';
|
|
2015
2134
|
}
|
|
2016
2135
|
// verify the required parameter 'communicationId' is set
|
|
2017
|
-
if (communicationId === undefined || communicationId === null) {
|
|
2136
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
2018
2137
|
throw 'Missing the required parameter "communicationId" when calling getConversationsMessageParticipantCommunicationWrapup';
|
|
2019
2138
|
}
|
|
2020
2139
|
|
|
@@ -2038,17 +2157,17 @@ class ConversationsApi {
|
|
|
2038
2157
|
* @param {String} conversationId conversationId
|
|
2039
2158
|
* @param {String} participantId participantId
|
|
2040
2159
|
* @param {Object} opts Optional parameters
|
|
2041
|
-
* @param {Boolean} opts.provisional Indicates
|
|
2160
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
2042
2161
|
*/
|
|
2043
2162
|
getConversationsMessageParticipantWrapup(conversationId, participantId, opts) {
|
|
2044
2163
|
opts = opts || {};
|
|
2045
2164
|
|
|
2046
2165
|
// verify the required parameter 'conversationId' is set
|
|
2047
|
-
if (conversationId === undefined || conversationId === null) {
|
|
2166
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
2048
2167
|
throw 'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';
|
|
2049
2168
|
}
|
|
2050
2169
|
// verify the required parameter 'participantId' is set
|
|
2051
|
-
if (participantId === undefined || participantId === null) {
|
|
2170
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
2052
2171
|
throw 'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapup';
|
|
2053
2172
|
}
|
|
2054
2173
|
|
|
@@ -2074,11 +2193,11 @@ class ConversationsApi {
|
|
|
2074
2193
|
*/
|
|
2075
2194
|
getConversationsMessageParticipantWrapupcodes(conversationId, participantId) {
|
|
2076
2195
|
// verify the required parameter 'conversationId' is set
|
|
2077
|
-
if (conversationId === undefined || conversationId === null) {
|
|
2196
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
2078
2197
|
throw 'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';
|
|
2079
2198
|
}
|
|
2080
2199
|
// verify the required parameter 'participantId' is set
|
|
2081
|
-
if (participantId === undefined || participantId === null) {
|
|
2200
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
2082
2201
|
throw 'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapupcodes';
|
|
2083
2202
|
}
|
|
2084
2203
|
|
|
@@ -2149,7 +2268,7 @@ class ConversationsApi {
|
|
|
2149
2268
|
*/
|
|
2150
2269
|
getConversationsMessagesCachedmediaCachedMediaItemId(cachedMediaItemId) {
|
|
2151
2270
|
// verify the required parameter 'cachedMediaItemId' is set
|
|
2152
|
-
if (cachedMediaItemId === undefined || cachedMediaItemId === null) {
|
|
2271
|
+
if (cachedMediaItemId === undefined || cachedMediaItemId === null || cachedMediaItemId === '') {
|
|
2153
2272
|
throw 'Missing the required parameter "cachedMediaItemId" when calling getConversationsMessagesCachedmediaCachedMediaItemId';
|
|
2154
2273
|
}
|
|
2155
2274
|
|
|
@@ -2215,7 +2334,7 @@ class ConversationsApi {
|
|
|
2215
2334
|
*/
|
|
2216
2335
|
getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(integrationId) {
|
|
2217
2336
|
// verify the required parameter 'integrationId' is set
|
|
2218
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2337
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2219
2338
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';
|
|
2220
2339
|
}
|
|
2221
2340
|
|
|
@@ -2240,7 +2359,7 @@ class ConversationsApi {
|
|
|
2240
2359
|
*/
|
|
2241
2360
|
getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId) {
|
|
2242
2361
|
// verify the required parameter 'integrationId' is set
|
|
2243
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2362
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2244
2363
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';
|
|
2245
2364
|
}
|
|
2246
2365
|
|
|
@@ -2265,7 +2384,7 @@ class ConversationsApi {
|
|
|
2265
2384
|
*/
|
|
2266
2385
|
getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(integrationId) {
|
|
2267
2386
|
// verify the required parameter 'integrationId' is set
|
|
2268
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2387
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2269
2388
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';
|
|
2270
2389
|
}
|
|
2271
2390
|
|
|
@@ -2290,7 +2409,7 @@ class ConversationsApi {
|
|
|
2290
2409
|
*/
|
|
2291
2410
|
getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId) {
|
|
2292
2411
|
// verify the required parameter 'integrationId' is set
|
|
2293
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2412
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2294
2413
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';
|
|
2295
2414
|
}
|
|
2296
2415
|
|
|
@@ -2308,6 +2427,31 @@ class ConversationsApi {
|
|
|
2308
2427
|
);
|
|
2309
2428
|
}
|
|
2310
2429
|
|
|
2430
|
+
/**
|
|
2431
|
+
* Get X (Formally Twitter) messaging integration identity resolution settings
|
|
2432
|
+
*
|
|
2433
|
+
* @param {String} integrationId Integration Id
|
|
2434
|
+
*/
|
|
2435
|
+
getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(integrationId) {
|
|
2436
|
+
// verify the required parameter 'integrationId' is set
|
|
2437
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2438
|
+
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
return this.apiClient.callApi(
|
|
2442
|
+
'/api/v2/conversations/messaging/identityresolution/integrations/twitter/{integrationId}',
|
|
2443
|
+
'GET',
|
|
2444
|
+
{ 'integrationId': integrationId },
|
|
2445
|
+
{ },
|
|
2446
|
+
{ },
|
|
2447
|
+
{ },
|
|
2448
|
+
null,
|
|
2449
|
+
['PureCloud OAuth'],
|
|
2450
|
+
['application/json'],
|
|
2451
|
+
['application/json']
|
|
2452
|
+
);
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2311
2455
|
/**
|
|
2312
2456
|
* Get a whatsApp integration Identity Resolution settings
|
|
2313
2457
|
*
|
|
@@ -2315,7 +2459,7 @@ class ConversationsApi {
|
|
|
2315
2459
|
*/
|
|
2316
2460
|
getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(integrationId) {
|
|
2317
2461
|
// verify the required parameter 'integrationId' is set
|
|
2318
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2462
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2319
2463
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';
|
|
2320
2464
|
}
|
|
2321
2465
|
|
|
@@ -2340,7 +2484,7 @@ class ConversationsApi {
|
|
|
2340
2484
|
*/
|
|
2341
2485
|
getConversationsMessagingIntegrationTwitterOauthSettings(integrationId) {
|
|
2342
2486
|
// verify the required parameter 'integrationId' is set
|
|
2343
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2487
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2344
2488
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationTwitterOauthSettings';
|
|
2345
2489
|
}
|
|
2346
2490
|
|
|
@@ -2425,7 +2569,7 @@ class ConversationsApi {
|
|
|
2425
2569
|
opts = opts || {};
|
|
2426
2570
|
|
|
2427
2571
|
// verify the required parameter 'integrationId' is set
|
|
2428
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2572
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2429
2573
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsFacebookIntegrationId';
|
|
2430
2574
|
}
|
|
2431
2575
|
|
|
@@ -2482,7 +2626,7 @@ class ConversationsApi {
|
|
|
2482
2626
|
opts = opts || {};
|
|
2483
2627
|
|
|
2484
2628
|
// verify the required parameter 'integrationId' is set
|
|
2485
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2629
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2486
2630
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
2487
2631
|
}
|
|
2488
2632
|
|
|
@@ -2539,7 +2683,7 @@ class ConversationsApi {
|
|
|
2539
2683
|
opts = opts || {};
|
|
2540
2684
|
|
|
2541
2685
|
// verify the required parameter 'integrationId' is set
|
|
2542
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2686
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2543
2687
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsOpenIntegrationId';
|
|
2544
2688
|
}
|
|
2545
2689
|
|
|
@@ -2596,7 +2740,7 @@ class ConversationsApi {
|
|
|
2596
2740
|
opts = opts || {};
|
|
2597
2741
|
|
|
2598
2742
|
// verify the required parameter 'integrationId' is set
|
|
2599
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2743
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2600
2744
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsTwitterIntegrationId';
|
|
2601
2745
|
}
|
|
2602
2746
|
|
|
@@ -2673,7 +2817,7 @@ class ConversationsApi {
|
|
|
2673
2817
|
opts = opts || {};
|
|
2674
2818
|
|
|
2675
2819
|
// verify the required parameter 'integrationId' is set
|
|
2676
|
-
if (integrationId === undefined || integrationId === null) {
|
|
2820
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
2677
2821
|
throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsWhatsappIntegrationId';
|
|
2678
2822
|
}
|
|
2679
2823
|
|
|
@@ -2698,7 +2842,7 @@ class ConversationsApi {
|
|
|
2698
2842
|
*/
|
|
2699
2843
|
getConversationsMessagingSetting(messageSettingId) {
|
|
2700
2844
|
// verify the required parameter 'messageSettingId' is set
|
|
2701
|
-
if (messageSettingId === undefined || messageSettingId === null) {
|
|
2845
|
+
if (messageSettingId === undefined || messageSettingId === null || messageSettingId === '') {
|
|
2702
2846
|
throw 'Missing the required parameter "messageSettingId" when calling getConversationsMessagingSetting';
|
|
2703
2847
|
}
|
|
2704
2848
|
|
|
@@ -2813,7 +2957,7 @@ class ConversationsApi {
|
|
|
2813
2957
|
*/
|
|
2814
2958
|
getConversationsMessagingSupportedcontentSupportedContentId(supportedContentId) {
|
|
2815
2959
|
// verify the required parameter 'supportedContentId' is set
|
|
2816
|
-
if (supportedContentId === undefined || supportedContentId === null) {
|
|
2960
|
+
if (supportedContentId === undefined || supportedContentId === null || supportedContentId === '') {
|
|
2817
2961
|
throw 'Missing the required parameter "supportedContentId" when calling getConversationsMessagingSupportedcontentSupportedContentId';
|
|
2818
2962
|
}
|
|
2819
2963
|
|
|
@@ -2858,22 +3002,22 @@ class ConversationsApi {
|
|
|
2858
3002
|
* @param {String} participantId participantId
|
|
2859
3003
|
* @param {String} communicationId communicationId
|
|
2860
3004
|
* @param {Object} opts Optional parameters
|
|
2861
|
-
* @param {Boolean} opts.provisional Indicates
|
|
3005
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
2862
3006
|
* @deprecated
|
|
2863
3007
|
*/
|
|
2864
3008
|
getConversationsScreenshareParticipantCommunicationWrapup(conversationId, participantId, communicationId, opts) {
|
|
2865
3009
|
opts = opts || {};
|
|
2866
3010
|
|
|
2867
3011
|
// verify the required parameter 'conversationId' is set
|
|
2868
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3012
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
2869
3013
|
throw 'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';
|
|
2870
3014
|
}
|
|
2871
3015
|
// verify the required parameter 'participantId' is set
|
|
2872
|
-
if (participantId === undefined || participantId === null) {
|
|
3016
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
2873
3017
|
throw 'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';
|
|
2874
3018
|
}
|
|
2875
3019
|
// verify the required parameter 'communicationId' is set
|
|
2876
|
-
if (communicationId === undefined || communicationId === null) {
|
|
3020
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
2877
3021
|
throw 'Missing the required parameter "communicationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';
|
|
2878
3022
|
}
|
|
2879
3023
|
|
|
@@ -2918,21 +3062,21 @@ class ConversationsApi {
|
|
|
2918
3062
|
* @param {String} participantId participantId
|
|
2919
3063
|
* @param {String} communicationId communicationId
|
|
2920
3064
|
* @param {Object} opts Optional parameters
|
|
2921
|
-
* @param {Boolean} opts.provisional Indicates
|
|
3065
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
2922
3066
|
*/
|
|
2923
3067
|
getConversationsSocialParticipantCommunicationWrapup(conversationId, participantId, communicationId, opts) {
|
|
2924
3068
|
opts = opts || {};
|
|
2925
3069
|
|
|
2926
3070
|
// verify the required parameter 'conversationId' is set
|
|
2927
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3071
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
2928
3072
|
throw 'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';
|
|
2929
3073
|
}
|
|
2930
3074
|
// verify the required parameter 'participantId' is set
|
|
2931
|
-
if (participantId === undefined || participantId === null) {
|
|
3075
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
2932
3076
|
throw 'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';
|
|
2933
3077
|
}
|
|
2934
3078
|
// verify the required parameter 'communicationId' is set
|
|
2935
|
-
if (communicationId === undefined || communicationId === null) {
|
|
3079
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
2936
3080
|
throw 'Missing the required parameter "communicationId" when calling getConversationsSocialParticipantCommunicationWrapup';
|
|
2937
3081
|
}
|
|
2938
3082
|
|
|
@@ -2958,7 +3102,7 @@ class ConversationsApi {
|
|
|
2958
3102
|
*/
|
|
2959
3103
|
getConversationsVideoDetails(conferenceId) {
|
|
2960
3104
|
// verify the required parameter 'conferenceId' is set
|
|
2961
|
-
if (conferenceId === undefined || conferenceId === null) {
|
|
3105
|
+
if (conferenceId === undefined || conferenceId === null || conferenceId === '') {
|
|
2962
3106
|
throw 'Missing the required parameter "conferenceId" when calling getConversationsVideoDetails';
|
|
2963
3107
|
}
|
|
2964
3108
|
|
|
@@ -2983,21 +3127,21 @@ class ConversationsApi {
|
|
|
2983
3127
|
* @param {String} participantId participantId
|
|
2984
3128
|
* @param {String} communicationId communicationId
|
|
2985
3129
|
* @param {Object} opts Optional parameters
|
|
2986
|
-
* @param {Boolean} opts.provisional Indicates
|
|
3130
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
2987
3131
|
*/
|
|
2988
3132
|
getConversationsVideoParticipantCommunicationWrapup(conversationId, participantId, communicationId, opts) {
|
|
2989
3133
|
opts = opts || {};
|
|
2990
3134
|
|
|
2991
3135
|
// verify the required parameter 'conversationId' is set
|
|
2992
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3136
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
2993
3137
|
throw 'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';
|
|
2994
3138
|
}
|
|
2995
3139
|
// verify the required parameter 'participantId' is set
|
|
2996
|
-
if (participantId === undefined || participantId === null) {
|
|
3140
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
2997
3141
|
throw 'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';
|
|
2998
3142
|
}
|
|
2999
3143
|
// verify the required parameter 'communicationId' is set
|
|
3000
|
-
if (communicationId === undefined || communicationId === null) {
|
|
3144
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
3001
3145
|
throw 'Missing the required parameter "communicationId" when calling getConversationsVideoParticipantCommunicationWrapup';
|
|
3002
3146
|
}
|
|
3003
3147
|
|
|
@@ -3023,7 +3167,7 @@ class ConversationsApi {
|
|
|
3023
3167
|
*/
|
|
3024
3168
|
getConversationsVideosMeeting(meetingId) {
|
|
3025
3169
|
// verify the required parameter 'meetingId' is set
|
|
3026
|
-
if (meetingId === undefined || meetingId === null) {
|
|
3170
|
+
if (meetingId === undefined || meetingId === null || meetingId === '') {
|
|
3027
3171
|
throw 'Missing the required parameter "meetingId" when calling getConversationsVideosMeeting';
|
|
3028
3172
|
}
|
|
3029
3173
|
|
|
@@ -3050,11 +3194,11 @@ class ConversationsApi {
|
|
|
3050
3194
|
*/
|
|
3051
3195
|
patchConversationParticipant(conversationId, participantId, body) {
|
|
3052
3196
|
// verify the required parameter 'conversationId' is set
|
|
3053
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3197
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3054
3198
|
throw 'Missing the required parameter "conversationId" when calling patchConversationParticipant';
|
|
3055
3199
|
}
|
|
3056
3200
|
// verify the required parameter 'participantId' is set
|
|
3057
|
-
if (participantId === undefined || participantId === null) {
|
|
3201
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3058
3202
|
throw 'Missing the required parameter "participantId" when calling patchConversationParticipant';
|
|
3059
3203
|
}
|
|
3060
3204
|
// verify the required parameter 'body' is set
|
|
@@ -3085,11 +3229,11 @@ class ConversationsApi {
|
|
|
3085
3229
|
*/
|
|
3086
3230
|
patchConversationParticipantAttributes(conversationId, participantId, body) {
|
|
3087
3231
|
// verify the required parameter 'conversationId' is set
|
|
3088
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3232
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3089
3233
|
throw 'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';
|
|
3090
3234
|
}
|
|
3091
3235
|
// verify the required parameter 'participantId' is set
|
|
3092
|
-
if (participantId === undefined || participantId === null) {
|
|
3236
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3093
3237
|
throw 'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';
|
|
3094
3238
|
}
|
|
3095
3239
|
// verify the required parameter 'body' is set
|
|
@@ -3119,7 +3263,7 @@ class ConversationsApi {
|
|
|
3119
3263
|
*/
|
|
3120
3264
|
patchConversationSecureattributes(conversationId, body) {
|
|
3121
3265
|
// verify the required parameter 'conversationId' is set
|
|
3122
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3266
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3123
3267
|
throw 'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';
|
|
3124
3268
|
}
|
|
3125
3269
|
// verify the required parameter 'body' is set
|
|
@@ -3153,11 +3297,11 @@ class ConversationsApi {
|
|
|
3153
3297
|
opts = opts || {};
|
|
3154
3298
|
|
|
3155
3299
|
// verify the required parameter 'conversationId' is set
|
|
3156
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3300
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3157
3301
|
throw 'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';
|
|
3158
3302
|
}
|
|
3159
3303
|
// verify the required parameter 'summaryId' is set
|
|
3160
|
-
if (summaryId === undefined || summaryId === null) {
|
|
3304
|
+
if (summaryId === undefined || summaryId === null || summaryId === '') {
|
|
3161
3305
|
throw 'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';
|
|
3162
3306
|
}
|
|
3163
3307
|
|
|
@@ -3187,11 +3331,11 @@ class ConversationsApi {
|
|
|
3187
3331
|
opts = opts || {};
|
|
3188
3332
|
|
|
3189
3333
|
// verify the required parameter 'conversationId' is set
|
|
3190
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3334
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3191
3335
|
throw 'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';
|
|
3192
3336
|
}
|
|
3193
3337
|
// verify the required parameter 'summaryId' is set
|
|
3194
|
-
if (summaryId === undefined || summaryId === null) {
|
|
3338
|
+
if (summaryId === undefined || summaryId === null || summaryId === '') {
|
|
3195
3339
|
throw 'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';
|
|
3196
3340
|
}
|
|
3197
3341
|
|
|
@@ -3217,7 +3361,7 @@ class ConversationsApi {
|
|
|
3217
3361
|
*/
|
|
3218
3362
|
patchConversationUtilizationlabel(conversationId, body) {
|
|
3219
3363
|
// verify the required parameter 'conversationId' is set
|
|
3220
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3364
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3221
3365
|
throw 'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';
|
|
3222
3366
|
}
|
|
3223
3367
|
// verify the required parameter 'body' is set
|
|
@@ -3249,15 +3393,15 @@ class ConversationsApi {
|
|
|
3249
3393
|
*/
|
|
3250
3394
|
patchConversationsAftercallworkConversationIdParticipantCommunication(conversationId, participantId, communicationId, body) {
|
|
3251
3395
|
// verify the required parameter 'conversationId' is set
|
|
3252
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3396
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3253
3397
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
|
|
3254
3398
|
}
|
|
3255
3399
|
// verify the required parameter 'participantId' is set
|
|
3256
|
-
if (participantId === undefined || participantId === null) {
|
|
3400
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3257
3401
|
throw 'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
|
|
3258
3402
|
}
|
|
3259
3403
|
// verify the required parameter 'communicationId' is set
|
|
3260
|
-
if (communicationId === undefined || communicationId === null) {
|
|
3404
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
3261
3405
|
throw 'Missing the required parameter "communicationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';
|
|
3262
3406
|
}
|
|
3263
3407
|
// verify the required parameter 'body' is set
|
|
@@ -3287,7 +3431,7 @@ class ConversationsApi {
|
|
|
3287
3431
|
*/
|
|
3288
3432
|
patchConversationsCall(conversationId, body) {
|
|
3289
3433
|
// verify the required parameter 'conversationId' is set
|
|
3290
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3434
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3291
3435
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCall';
|
|
3292
3436
|
}
|
|
3293
3437
|
// verify the required parameter 'body' is set
|
|
@@ -3318,11 +3462,11 @@ class ConversationsApi {
|
|
|
3318
3462
|
*/
|
|
3319
3463
|
patchConversationsCallParticipant(conversationId, participantId, body) {
|
|
3320
3464
|
// verify the required parameter 'conversationId' is set
|
|
3321
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3465
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3322
3466
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';
|
|
3323
3467
|
}
|
|
3324
3468
|
// verify the required parameter 'participantId' is set
|
|
3325
|
-
if (participantId === undefined || participantId === null) {
|
|
3469
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3326
3470
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';
|
|
3327
3471
|
}
|
|
3328
3472
|
// verify the required parameter 'body' is set
|
|
@@ -3353,11 +3497,11 @@ class ConversationsApi {
|
|
|
3353
3497
|
*/
|
|
3354
3498
|
patchConversationsCallParticipantAttributes(conversationId, participantId, body) {
|
|
3355
3499
|
// verify the required parameter 'conversationId' is set
|
|
3356
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3500
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3357
3501
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';
|
|
3358
3502
|
}
|
|
3359
3503
|
// verify the required parameter 'participantId' is set
|
|
3360
|
-
if (participantId === undefined || participantId === null) {
|
|
3504
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3361
3505
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';
|
|
3362
3506
|
}
|
|
3363
3507
|
// verify the required parameter 'body' is set
|
|
@@ -3389,15 +3533,15 @@ class ConversationsApi {
|
|
|
3389
3533
|
*/
|
|
3390
3534
|
patchConversationsCallParticipantCommunication(conversationId, participantId, communicationId, body) {
|
|
3391
3535
|
// verify the required parameter 'conversationId' is set
|
|
3392
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3536
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3393
3537
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';
|
|
3394
3538
|
}
|
|
3395
3539
|
// verify the required parameter 'participantId' is set
|
|
3396
|
-
if (participantId === undefined || participantId === null) {
|
|
3540
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3397
3541
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';
|
|
3398
3542
|
}
|
|
3399
3543
|
// verify the required parameter 'communicationId' is set
|
|
3400
|
-
if (communicationId === undefined || communicationId === null) {
|
|
3544
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
3401
3545
|
throw 'Missing the required parameter "communicationId" when calling patchConversationsCallParticipantCommunication';
|
|
3402
3546
|
}
|
|
3403
3547
|
// verify the required parameter 'body' is set
|
|
@@ -3428,11 +3572,11 @@ class ConversationsApi {
|
|
|
3428
3572
|
*/
|
|
3429
3573
|
patchConversationsCallParticipantConsult(conversationId, participantId, body) {
|
|
3430
3574
|
// verify the required parameter 'conversationId' is set
|
|
3431
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3575
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3432
3576
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';
|
|
3433
3577
|
}
|
|
3434
3578
|
// verify the required parameter 'participantId' is set
|
|
3435
|
-
if (participantId === undefined || participantId === null) {
|
|
3579
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3436
3580
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';
|
|
3437
3581
|
}
|
|
3438
3582
|
// verify the required parameter 'body' is set
|
|
@@ -3462,7 +3606,7 @@ class ConversationsApi {
|
|
|
3462
3606
|
*/
|
|
3463
3607
|
patchConversationsCallback(conversationId, body) {
|
|
3464
3608
|
// verify the required parameter 'conversationId' is set
|
|
3465
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3609
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3466
3610
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCallback';
|
|
3467
3611
|
}
|
|
3468
3612
|
// verify the required parameter 'body' is set
|
|
@@ -3493,11 +3637,11 @@ class ConversationsApi {
|
|
|
3493
3637
|
*/
|
|
3494
3638
|
patchConversationsCallbackParticipant(conversationId, participantId, body) {
|
|
3495
3639
|
// verify the required parameter 'conversationId' is set
|
|
3496
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3640
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3497
3641
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';
|
|
3498
3642
|
}
|
|
3499
3643
|
// verify the required parameter 'participantId' is set
|
|
3500
|
-
if (participantId === undefined || participantId === null) {
|
|
3644
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3501
3645
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';
|
|
3502
3646
|
}
|
|
3503
3647
|
// verify the required parameter 'body' is set
|
|
@@ -3528,11 +3672,11 @@ class ConversationsApi {
|
|
|
3528
3672
|
*/
|
|
3529
3673
|
patchConversationsCallbackParticipantAttributes(conversationId, participantId, body) {
|
|
3530
3674
|
// verify the required parameter 'conversationId' is set
|
|
3531
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3675
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3532
3676
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';
|
|
3533
3677
|
}
|
|
3534
3678
|
// verify the required parameter 'participantId' is set
|
|
3535
|
-
if (participantId === undefined || participantId === null) {
|
|
3679
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3536
3680
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';
|
|
3537
3681
|
}
|
|
3538
3682
|
// verify the required parameter 'body' is set
|
|
@@ -3564,15 +3708,15 @@ class ConversationsApi {
|
|
|
3564
3708
|
*/
|
|
3565
3709
|
patchConversationsCallbackParticipantCommunication(conversationId, participantId, communicationId, body) {
|
|
3566
3710
|
// verify the required parameter 'conversationId' is set
|
|
3567
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3711
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3568
3712
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';
|
|
3569
3713
|
}
|
|
3570
3714
|
// verify the required parameter 'participantId' is set
|
|
3571
|
-
if (participantId === undefined || participantId === null) {
|
|
3715
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3572
3716
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';
|
|
3573
3717
|
}
|
|
3574
3718
|
// verify the required parameter 'communicationId' is set
|
|
3575
|
-
if (communicationId === undefined || communicationId === null) {
|
|
3719
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
3576
3720
|
throw 'Missing the required parameter "communicationId" when calling patchConversationsCallbackParticipantCommunication';
|
|
3577
3721
|
}
|
|
3578
3722
|
// verify the required parameter 'body' is set
|
|
@@ -3628,7 +3772,7 @@ class ConversationsApi {
|
|
|
3628
3772
|
*/
|
|
3629
3773
|
patchConversationsChat(conversationId, body) {
|
|
3630
3774
|
// verify the required parameter 'conversationId' is set
|
|
3631
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3775
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3632
3776
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsChat';
|
|
3633
3777
|
}
|
|
3634
3778
|
// verify the required parameter 'body' is set
|
|
@@ -3660,11 +3804,11 @@ class ConversationsApi {
|
|
|
3660
3804
|
*/
|
|
3661
3805
|
patchConversationsChatParticipant(conversationId, participantId, body) {
|
|
3662
3806
|
// verify the required parameter 'conversationId' is set
|
|
3663
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3807
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3664
3808
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';
|
|
3665
3809
|
}
|
|
3666
3810
|
// verify the required parameter 'participantId' is set
|
|
3667
|
-
if (participantId === undefined || participantId === null) {
|
|
3811
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3668
3812
|
throw 'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';
|
|
3669
3813
|
}
|
|
3670
3814
|
// verify the required parameter 'body' is set
|
|
@@ -3696,11 +3840,11 @@ class ConversationsApi {
|
|
|
3696
3840
|
*/
|
|
3697
3841
|
patchConversationsChatParticipantAttributes(conversationId, participantId, body) {
|
|
3698
3842
|
// verify the required parameter 'conversationId' is set
|
|
3699
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3843
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3700
3844
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';
|
|
3701
3845
|
}
|
|
3702
3846
|
// verify the required parameter 'participantId' is set
|
|
3703
|
-
if (participantId === undefined || participantId === null) {
|
|
3847
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3704
3848
|
throw 'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';
|
|
3705
3849
|
}
|
|
3706
3850
|
// verify the required parameter 'body' is set
|
|
@@ -3733,15 +3877,15 @@ class ConversationsApi {
|
|
|
3733
3877
|
*/
|
|
3734
3878
|
patchConversationsChatParticipantCommunication(conversationId, participantId, communicationId, body) {
|
|
3735
3879
|
// verify the required parameter 'conversationId' is set
|
|
3736
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3880
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3737
3881
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';
|
|
3738
3882
|
}
|
|
3739
3883
|
// verify the required parameter 'participantId' is set
|
|
3740
|
-
if (participantId === undefined || participantId === null) {
|
|
3884
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3741
3885
|
throw 'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';
|
|
3742
3886
|
}
|
|
3743
3887
|
// verify the required parameter 'communicationId' is set
|
|
3744
|
-
if (communicationId === undefined || communicationId === null) {
|
|
3888
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
3745
3889
|
throw 'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';
|
|
3746
3890
|
}
|
|
3747
3891
|
// verify the required parameter 'body' is set
|
|
@@ -3772,7 +3916,7 @@ class ConversationsApi {
|
|
|
3772
3916
|
*/
|
|
3773
3917
|
patchConversationsCobrowsesession(conversationId, body) {
|
|
3774
3918
|
// verify the required parameter 'conversationId' is set
|
|
3775
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3919
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3776
3920
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';
|
|
3777
3921
|
}
|
|
3778
3922
|
// verify the required parameter 'body' is set
|
|
@@ -3807,11 +3951,11 @@ class ConversationsApi {
|
|
|
3807
3951
|
opts = opts || {};
|
|
3808
3952
|
|
|
3809
3953
|
// verify the required parameter 'conversationId' is set
|
|
3810
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3954
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3811
3955
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';
|
|
3812
3956
|
}
|
|
3813
3957
|
// verify the required parameter 'participantId' is set
|
|
3814
|
-
if (participantId === undefined || participantId === null) {
|
|
3958
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3815
3959
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';
|
|
3816
3960
|
}
|
|
3817
3961
|
|
|
@@ -3842,11 +3986,11 @@ class ConversationsApi {
|
|
|
3842
3986
|
opts = opts || {};
|
|
3843
3987
|
|
|
3844
3988
|
// verify the required parameter 'conversationId' is set
|
|
3845
|
-
if (conversationId === undefined || conversationId === null) {
|
|
3989
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3846
3990
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';
|
|
3847
3991
|
}
|
|
3848
3992
|
// verify the required parameter 'participantId' is set
|
|
3849
|
-
if (participantId === undefined || participantId === null) {
|
|
3993
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3850
3994
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantAttributes';
|
|
3851
3995
|
}
|
|
3852
3996
|
|
|
@@ -3875,15 +4019,15 @@ class ConversationsApi {
|
|
|
3875
4019
|
*/
|
|
3876
4020
|
patchConversationsCobrowsesessionParticipantCommunication(conversationId, participantId, communicationId, body) {
|
|
3877
4021
|
// verify the required parameter 'conversationId' is set
|
|
3878
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4022
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3879
4023
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';
|
|
3880
4024
|
}
|
|
3881
4025
|
// verify the required parameter 'participantId' is set
|
|
3882
|
-
if (participantId === undefined || participantId === null) {
|
|
4026
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3883
4027
|
throw 'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';
|
|
3884
4028
|
}
|
|
3885
4029
|
// verify the required parameter 'communicationId' is set
|
|
3886
|
-
if (communicationId === undefined || communicationId === null) {
|
|
4030
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
3887
4031
|
throw 'Missing the required parameter "communicationId" when calling patchConversationsCobrowsesessionParticipantCommunication';
|
|
3888
4032
|
}
|
|
3889
4033
|
// verify the required parameter 'body' is set
|
|
@@ -3913,7 +4057,7 @@ class ConversationsApi {
|
|
|
3913
4057
|
*/
|
|
3914
4058
|
patchConversationsEmail(conversationId, body) {
|
|
3915
4059
|
// verify the required parameter 'conversationId' is set
|
|
3916
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4060
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3917
4061
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsEmail';
|
|
3918
4062
|
}
|
|
3919
4063
|
// verify the required parameter 'body' is set
|
|
@@ -3948,7 +4092,7 @@ class ConversationsApi {
|
|
|
3948
4092
|
opts = opts || {};
|
|
3949
4093
|
|
|
3950
4094
|
// verify the required parameter 'conversationId' is set
|
|
3951
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4095
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3952
4096
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsEmailMessagesDraft';
|
|
3953
4097
|
}
|
|
3954
4098
|
|
|
@@ -3975,11 +4119,11 @@ class ConversationsApi {
|
|
|
3975
4119
|
*/
|
|
3976
4120
|
patchConversationsEmailParticipant(conversationId, participantId, body) {
|
|
3977
4121
|
// verify the required parameter 'conversationId' is set
|
|
3978
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4122
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3979
4123
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';
|
|
3980
4124
|
}
|
|
3981
4125
|
// verify the required parameter 'participantId' is set
|
|
3982
|
-
if (participantId === undefined || participantId === null) {
|
|
4126
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
3983
4127
|
throw 'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';
|
|
3984
4128
|
}
|
|
3985
4129
|
// verify the required parameter 'body' is set
|
|
@@ -4010,11 +4154,11 @@ class ConversationsApi {
|
|
|
4010
4154
|
*/
|
|
4011
4155
|
patchConversationsEmailParticipantAttributes(conversationId, participantId, body) {
|
|
4012
4156
|
// verify the required parameter 'conversationId' is set
|
|
4013
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4157
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4014
4158
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';
|
|
4015
4159
|
}
|
|
4016
4160
|
// verify the required parameter 'participantId' is set
|
|
4017
|
-
if (participantId === undefined || participantId === null) {
|
|
4161
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4018
4162
|
throw 'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';
|
|
4019
4163
|
}
|
|
4020
4164
|
// verify the required parameter 'body' is set
|
|
@@ -4046,15 +4190,15 @@ class ConversationsApi {
|
|
|
4046
4190
|
*/
|
|
4047
4191
|
patchConversationsEmailParticipantCommunication(conversationId, participantId, communicationId, body) {
|
|
4048
4192
|
// verify the required parameter 'conversationId' is set
|
|
4049
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4193
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4050
4194
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';
|
|
4051
4195
|
}
|
|
4052
4196
|
// verify the required parameter 'participantId' is set
|
|
4053
|
-
if (participantId === undefined || participantId === null) {
|
|
4197
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4054
4198
|
throw 'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';
|
|
4055
4199
|
}
|
|
4056
4200
|
// verify the required parameter 'communicationId' is set
|
|
4057
|
-
if (communicationId === undefined || communicationId === null) {
|
|
4201
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
4058
4202
|
throw 'Missing the required parameter "communicationId" when calling patchConversationsEmailParticipantCommunication';
|
|
4059
4203
|
}
|
|
4060
4204
|
// verify the required parameter 'body' is set
|
|
@@ -4085,11 +4229,11 @@ class ConversationsApi {
|
|
|
4085
4229
|
*/
|
|
4086
4230
|
patchConversationsEmailParticipantParkingstate(conversationId, participantId, body) {
|
|
4087
4231
|
// verify the required parameter 'conversationId' is set
|
|
4088
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4232
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4089
4233
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';
|
|
4090
4234
|
}
|
|
4091
4235
|
// verify the required parameter 'participantId' is set
|
|
4092
|
-
if (participantId === undefined || participantId === null) {
|
|
4236
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4093
4237
|
throw 'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';
|
|
4094
4238
|
}
|
|
4095
4239
|
// verify the required parameter 'body' is set
|
|
@@ -4119,7 +4263,7 @@ class ConversationsApi {
|
|
|
4119
4263
|
*/
|
|
4120
4264
|
patchConversationsMessage(conversationId, body) {
|
|
4121
4265
|
// verify the required parameter 'conversationId' is set
|
|
4122
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4266
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4123
4267
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsMessage';
|
|
4124
4268
|
}
|
|
4125
4269
|
// verify the required parameter 'body' is set
|
|
@@ -4153,11 +4297,11 @@ class ConversationsApi {
|
|
|
4153
4297
|
opts = opts || {};
|
|
4154
4298
|
|
|
4155
4299
|
// verify the required parameter 'conversationId' is set
|
|
4156
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4300
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4157
4301
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';
|
|
4158
4302
|
}
|
|
4159
4303
|
// verify the required parameter 'participantId' is set
|
|
4160
|
-
if (participantId === undefined || participantId === null) {
|
|
4304
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4161
4305
|
throw 'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';
|
|
4162
4306
|
}
|
|
4163
4307
|
|
|
@@ -4187,11 +4331,11 @@ class ConversationsApi {
|
|
|
4187
4331
|
opts = opts || {};
|
|
4188
4332
|
|
|
4189
4333
|
// verify the required parameter 'conversationId' is set
|
|
4190
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4334
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4191
4335
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';
|
|
4192
4336
|
}
|
|
4193
4337
|
// verify the required parameter 'participantId' is set
|
|
4194
|
-
if (participantId === undefined || participantId === null) {
|
|
4338
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4195
4339
|
throw 'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantAttributes';
|
|
4196
4340
|
}
|
|
4197
4341
|
|
|
@@ -4219,15 +4363,15 @@ class ConversationsApi {
|
|
|
4219
4363
|
*/
|
|
4220
4364
|
patchConversationsMessageParticipantCommunication(conversationId, participantId, communicationId, body) {
|
|
4221
4365
|
// verify the required parameter 'conversationId' is set
|
|
4222
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4366
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4223
4367
|
throw 'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';
|
|
4224
4368
|
}
|
|
4225
4369
|
// verify the required parameter 'participantId' is set
|
|
4226
|
-
if (participantId === undefined || participantId === null) {
|
|
4370
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4227
4371
|
throw 'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';
|
|
4228
4372
|
}
|
|
4229
4373
|
// verify the required parameter 'communicationId' is set
|
|
4230
|
-
if (communicationId === undefined || communicationId === null) {
|
|
4374
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
4231
4375
|
throw 'Missing the required parameter "communicationId" when calling patchConversationsMessageParticipantCommunication';
|
|
4232
4376
|
}
|
|
4233
4377
|
// verify the required parameter 'body' is set
|
|
@@ -4257,7 +4401,7 @@ class ConversationsApi {
|
|
|
4257
4401
|
*/
|
|
4258
4402
|
patchConversationsMessagingIntegrationsFacebookIntegrationId(integrationId, body) {
|
|
4259
4403
|
// verify the required parameter 'integrationId' is set
|
|
4260
|
-
if (integrationId === undefined || integrationId === null) {
|
|
4404
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
4261
4405
|
throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';
|
|
4262
4406
|
}
|
|
4263
4407
|
// verify the required parameter 'body' is set
|
|
@@ -4287,7 +4431,7 @@ class ConversationsApi {
|
|
|
4287
4431
|
*/
|
|
4288
4432
|
patchConversationsMessagingIntegrationsInstagramIntegrationId(integrationId, body) {
|
|
4289
4433
|
// verify the required parameter 'integrationId' is set
|
|
4290
|
-
if (integrationId === undefined || integrationId === null) {
|
|
4434
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
4291
4435
|
throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';
|
|
4292
4436
|
}
|
|
4293
4437
|
// verify the required parameter 'body' is set
|
|
@@ -4317,7 +4461,7 @@ class ConversationsApi {
|
|
|
4317
4461
|
*/
|
|
4318
4462
|
patchConversationsMessagingIntegrationsOpenIntegrationId(integrationId, body) {
|
|
4319
4463
|
// verify the required parameter 'integrationId' is set
|
|
4320
|
-
if (integrationId === undefined || integrationId === null) {
|
|
4464
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
4321
4465
|
throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';
|
|
4322
4466
|
}
|
|
4323
4467
|
// verify the required parameter 'body' is set
|
|
@@ -4347,7 +4491,7 @@ class ConversationsApi {
|
|
|
4347
4491
|
*/
|
|
4348
4492
|
patchConversationsMessagingIntegrationsTwitterIntegrationId(integrationId, body) {
|
|
4349
4493
|
// verify the required parameter 'integrationId' is set
|
|
4350
|
-
if (integrationId === undefined || integrationId === null) {
|
|
4494
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
4351
4495
|
throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';
|
|
4352
4496
|
}
|
|
4353
4497
|
// verify the required parameter 'body' is set
|
|
@@ -4377,7 +4521,7 @@ class ConversationsApi {
|
|
|
4377
4521
|
*/
|
|
4378
4522
|
patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(integrationId, body) {
|
|
4379
4523
|
// verify the required parameter 'integrationId' is set
|
|
4380
|
-
if (integrationId === undefined || integrationId === null) {
|
|
4524
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
4381
4525
|
throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';
|
|
4382
4526
|
}
|
|
4383
4527
|
// verify the required parameter 'body' is set
|
|
@@ -4407,7 +4551,7 @@ class ConversationsApi {
|
|
|
4407
4551
|
*/
|
|
4408
4552
|
patchConversationsMessagingIntegrationsWhatsappIntegrationId(integrationId, body) {
|
|
4409
4553
|
// verify the required parameter 'integrationId' is set
|
|
4410
|
-
if (integrationId === undefined || integrationId === null) {
|
|
4554
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
4411
4555
|
throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';
|
|
4412
4556
|
}
|
|
4413
4557
|
// verify the required parameter 'body' is set
|
|
@@ -4437,7 +4581,7 @@ class ConversationsApi {
|
|
|
4437
4581
|
*/
|
|
4438
4582
|
patchConversationsMessagingSetting(messageSettingId, body) {
|
|
4439
4583
|
// verify the required parameter 'messageSettingId' is set
|
|
4440
|
-
if (messageSettingId === undefined || messageSettingId === null) {
|
|
4584
|
+
if (messageSettingId === undefined || messageSettingId === null || messageSettingId === '') {
|
|
4441
4585
|
throw 'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';
|
|
4442
4586
|
}
|
|
4443
4587
|
// verify the required parameter 'body' is set
|
|
@@ -4467,7 +4611,7 @@ class ConversationsApi {
|
|
|
4467
4611
|
*/
|
|
4468
4612
|
patchConversationsMessagingSupportedcontentSupportedContentId(supportedContentId, body) {
|
|
4469
4613
|
// verify the required parameter 'supportedContentId' is set
|
|
4470
|
-
if (supportedContentId === undefined || supportedContentId === null) {
|
|
4614
|
+
if (supportedContentId === undefined || supportedContentId === null || supportedContentId === '') {
|
|
4471
4615
|
throw 'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';
|
|
4472
4616
|
}
|
|
4473
4617
|
// verify the required parameter 'body' is set
|
|
@@ -4522,7 +4666,7 @@ class ConversationsApi {
|
|
|
4522
4666
|
*/
|
|
4523
4667
|
postAnalyticsConversationDetailsProperties(conversationId, body) {
|
|
4524
4668
|
// verify the required parameter 'conversationId' is set
|
|
4525
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4669
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4526
4670
|
throw 'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';
|
|
4527
4671
|
}
|
|
4528
4672
|
// verify the required parameter 'body' is set
|
|
@@ -4683,7 +4827,7 @@ class ConversationsApi {
|
|
|
4683
4827
|
*/
|
|
4684
4828
|
postConversationAssign(conversationId, body) {
|
|
4685
4829
|
// verify the required parameter 'conversationId' is set
|
|
4686
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4830
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4687
4831
|
throw 'Missing the required parameter "conversationId" when calling postConversationAssign';
|
|
4688
4832
|
}
|
|
4689
4833
|
// verify the required parameter 'body' is set
|
|
@@ -4712,7 +4856,7 @@ class ConversationsApi {
|
|
|
4712
4856
|
*/
|
|
4713
4857
|
postConversationBarge(conversationId) {
|
|
4714
4858
|
// verify the required parameter 'conversationId' is set
|
|
4715
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4859
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4716
4860
|
throw 'Missing the required parameter "conversationId" when calling postConversationBarge';
|
|
4717
4861
|
}
|
|
4718
4862
|
|
|
@@ -4737,7 +4881,7 @@ class ConversationsApi {
|
|
|
4737
4881
|
*/
|
|
4738
4882
|
postConversationCobrowse(conversationId) {
|
|
4739
4883
|
// verify the required parameter 'conversationId' is set
|
|
4740
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4884
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4741
4885
|
throw 'Missing the required parameter "conversationId" when calling postConversationCobrowse';
|
|
4742
4886
|
}
|
|
4743
4887
|
|
|
@@ -4755,6 +4899,42 @@ class ConversationsApi {
|
|
|
4755
4899
|
);
|
|
4756
4900
|
}
|
|
4757
4901
|
|
|
4902
|
+
/**
|
|
4903
|
+
* Send internal message
|
|
4904
|
+
* Send a new internal message for an existing communication.
|
|
4905
|
+
* @param {String} conversationId conversationId
|
|
4906
|
+
* @param {String} communicationId communicationId
|
|
4907
|
+
* @param {Object} body Message
|
|
4908
|
+
* postConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4909
|
+
*/
|
|
4910
|
+
postConversationCommunicationInternalmessages(conversationId, communicationId, body) {
|
|
4911
|
+
// verify the required parameter 'conversationId' is set
|
|
4912
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4913
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';
|
|
4914
|
+
}
|
|
4915
|
+
// verify the required parameter 'communicationId' is set
|
|
4916
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
4917
|
+
throw 'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';
|
|
4918
|
+
}
|
|
4919
|
+
// verify the required parameter 'body' is set
|
|
4920
|
+
if (body === undefined || body === null) {
|
|
4921
|
+
throw 'Missing the required parameter "body" when calling postConversationCommunicationInternalmessages';
|
|
4922
|
+
}
|
|
4923
|
+
|
|
4924
|
+
return this.apiClient.callApi(
|
|
4925
|
+
'/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages',
|
|
4926
|
+
'POST',
|
|
4927
|
+
{ 'conversationId': conversationId,'communicationId': communicationId },
|
|
4928
|
+
{ },
|
|
4929
|
+
{ },
|
|
4930
|
+
{ },
|
|
4931
|
+
body,
|
|
4932
|
+
['PureCloud OAuth'],
|
|
4933
|
+
['application/json'],
|
|
4934
|
+
['application/json']
|
|
4935
|
+
);
|
|
4936
|
+
}
|
|
4937
|
+
|
|
4758
4938
|
/**
|
|
4759
4939
|
* Performs a full conversation teardown. Issues disconnect requests for any connected media. Applies a system wrap-up code to any participants that are pending wrap-up. This is not intended to be the normal way of ending interactions but is available in the event of problems with the application to allow a resynchronization of state across all components. It is recommended that users submit a support case if they are relying on this endpoint systematically as there is likely something that needs investigation.
|
|
4760
4940
|
*
|
|
@@ -4762,7 +4942,7 @@ class ConversationsApi {
|
|
|
4762
4942
|
*/
|
|
4763
4943
|
postConversationDisconnect(conversationId) {
|
|
4764
4944
|
// verify the required parameter 'conversationId' is set
|
|
4765
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4945
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4766
4946
|
throw 'Missing the required parameter "conversationId" when calling postConversationDisconnect';
|
|
4767
4947
|
}
|
|
4768
4948
|
|
|
@@ -4792,11 +4972,11 @@ class ConversationsApi {
|
|
|
4792
4972
|
opts = opts || {};
|
|
4793
4973
|
|
|
4794
4974
|
// verify the required parameter 'conversationId' is set
|
|
4795
|
-
if (conversationId === undefined || conversationId === null) {
|
|
4975
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4796
4976
|
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';
|
|
4797
4977
|
}
|
|
4798
4978
|
// verify the required parameter 'participantId' is set
|
|
4799
|
-
if (participantId === undefined || participantId === null) {
|
|
4979
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4800
4980
|
throw 'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';
|
|
4801
4981
|
}
|
|
4802
4982
|
|
|
@@ -4826,11 +5006,11 @@ class ConversationsApi {
|
|
|
4826
5006
|
opts = opts || {};
|
|
4827
5007
|
|
|
4828
5008
|
// verify the required parameter 'conversationId' is set
|
|
4829
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5009
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4830
5010
|
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';
|
|
4831
5011
|
}
|
|
4832
5012
|
// verify the required parameter 'participantId' is set
|
|
4833
|
-
if (participantId === undefined || participantId === null) {
|
|
5013
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4834
5014
|
throw 'Missing the required parameter "participantId" when calling postConversationParticipantDigits';
|
|
4835
5015
|
}
|
|
4836
5016
|
|
|
@@ -4848,6 +5028,42 @@ class ConversationsApi {
|
|
|
4848
5028
|
);
|
|
4849
5029
|
}
|
|
4850
5030
|
|
|
5031
|
+
/**
|
|
5032
|
+
* Setup internal message communication with user
|
|
5033
|
+
* The target user of the digital consultation must have the `conversation:internalMessaging:accept` permission.
|
|
5034
|
+
* @param {String} conversationId conversation ID
|
|
5035
|
+
* @param {String} participantId participant ID
|
|
5036
|
+
* @param {Object} body Confer request
|
|
5037
|
+
* postConversationParticipantInternalmessagesUsersCommunications is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5038
|
+
*/
|
|
5039
|
+
postConversationParticipantInternalmessagesUsersCommunications(conversationId, participantId, body) {
|
|
5040
|
+
// verify the required parameter 'conversationId' is set
|
|
5041
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5042
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';
|
|
5043
|
+
}
|
|
5044
|
+
// verify the required parameter 'participantId' is set
|
|
5045
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5046
|
+
throw 'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';
|
|
5047
|
+
}
|
|
5048
|
+
// verify the required parameter 'body' is set
|
|
5049
|
+
if (body === undefined || body === null) {
|
|
5050
|
+
throw 'Missing the required parameter "body" when calling postConversationParticipantInternalmessagesUsersCommunications';
|
|
5051
|
+
}
|
|
5052
|
+
|
|
5053
|
+
return this.apiClient.callApi(
|
|
5054
|
+
'/api/v2/conversations/{conversationId}/participants/{participantId}/internalmessages/users/communications',
|
|
5055
|
+
'POST',
|
|
5056
|
+
{ 'conversationId': conversationId,'participantId': participantId },
|
|
5057
|
+
{ },
|
|
5058
|
+
{ },
|
|
5059
|
+
{ },
|
|
5060
|
+
body,
|
|
5061
|
+
['PureCloud OAuth'],
|
|
5062
|
+
['application/json'],
|
|
5063
|
+
['application/json']
|
|
5064
|
+
);
|
|
5065
|
+
}
|
|
5066
|
+
|
|
4851
5067
|
/**
|
|
4852
5068
|
* Replace this participant with the specified user and/or address
|
|
4853
5069
|
*
|
|
@@ -4857,11 +5073,11 @@ class ConversationsApi {
|
|
|
4857
5073
|
*/
|
|
4858
5074
|
postConversationParticipantReplace(conversationId, participantId, body) {
|
|
4859
5075
|
// verify the required parameter 'conversationId' is set
|
|
4860
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5076
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4861
5077
|
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';
|
|
4862
5078
|
}
|
|
4863
5079
|
// verify the required parameter 'participantId' is set
|
|
4864
|
-
if (participantId === undefined || participantId === null) {
|
|
5080
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4865
5081
|
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplace';
|
|
4866
5082
|
}
|
|
4867
5083
|
// verify the required parameter 'body' is set
|
|
@@ -4892,11 +5108,11 @@ class ConversationsApi {
|
|
|
4892
5108
|
*/
|
|
4893
5109
|
postConversationParticipantReplaceAgent(conversationId, participantId, body) {
|
|
4894
5110
|
// verify the required parameter 'conversationId' is set
|
|
4895
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5111
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4896
5112
|
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';
|
|
4897
5113
|
}
|
|
4898
5114
|
// verify the required parameter 'participantId' is set
|
|
4899
|
-
if (participantId === undefined || participantId === null) {
|
|
5115
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4900
5116
|
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';
|
|
4901
5117
|
}
|
|
4902
5118
|
// verify the required parameter 'body' is set
|
|
@@ -4927,11 +5143,11 @@ class ConversationsApi {
|
|
|
4927
5143
|
*/
|
|
4928
5144
|
postConversationParticipantReplaceExternal(conversationId, participantId, body) {
|
|
4929
5145
|
// verify the required parameter 'conversationId' is set
|
|
4930
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5146
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4931
5147
|
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';
|
|
4932
5148
|
}
|
|
4933
5149
|
// verify the required parameter 'participantId' is set
|
|
4934
|
-
if (participantId === undefined || participantId === null) {
|
|
5150
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4935
5151
|
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';
|
|
4936
5152
|
}
|
|
4937
5153
|
// verify the required parameter 'body' is set
|
|
@@ -4962,11 +5178,11 @@ class ConversationsApi {
|
|
|
4962
5178
|
*/
|
|
4963
5179
|
postConversationParticipantReplaceQueue(conversationId, participantId, body) {
|
|
4964
5180
|
// verify the required parameter 'conversationId' is set
|
|
4965
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5181
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
4966
5182
|
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';
|
|
4967
5183
|
}
|
|
4968
5184
|
// verify the required parameter 'participantId' is set
|
|
4969
|
-
if (participantId === undefined || participantId === null) {
|
|
5185
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
4970
5186
|
throw 'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';
|
|
4971
5187
|
}
|
|
4972
5188
|
// verify the required parameter 'body' is set
|
|
@@ -5000,11 +5216,11 @@ class ConversationsApi {
|
|
|
5000
5216
|
opts = opts || {};
|
|
5001
5217
|
|
|
5002
5218
|
// verify the required parameter 'conversationId' is set
|
|
5003
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5219
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5004
5220
|
throw 'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';
|
|
5005
5221
|
}
|
|
5006
5222
|
// verify the required parameter 'participantId' is set
|
|
5007
|
-
if (participantId === undefined || participantId === null) {
|
|
5223
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5008
5224
|
throw 'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';
|
|
5009
5225
|
}
|
|
5010
5226
|
|
|
@@ -5031,11 +5247,11 @@ class ConversationsApi {
|
|
|
5031
5247
|
*/
|
|
5032
5248
|
postConversationSuggestionEngagement(conversationId, suggestionId, body) {
|
|
5033
5249
|
// verify the required parameter 'conversationId' is set
|
|
5034
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5250
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5035
5251
|
throw 'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';
|
|
5036
5252
|
}
|
|
5037
5253
|
// verify the required parameter 'suggestionId' is set
|
|
5038
|
-
if (suggestionId === undefined || suggestionId === null) {
|
|
5254
|
+
if (suggestionId === undefined || suggestionId === null || suggestionId === '') {
|
|
5039
5255
|
throw 'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';
|
|
5040
5256
|
}
|
|
5041
5257
|
// verify the required parameter 'body' is set
|
|
@@ -5066,7 +5282,7 @@ class ConversationsApi {
|
|
|
5066
5282
|
*/
|
|
5067
5283
|
postConversationSuggestionsFeedback(conversationId, body) {
|
|
5068
5284
|
// verify the required parameter 'conversationId' is set
|
|
5069
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5285
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5070
5286
|
throw 'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';
|
|
5071
5287
|
}
|
|
5072
5288
|
// verify the required parameter 'body' is set
|
|
@@ -5100,11 +5316,11 @@ class ConversationsApi {
|
|
|
5100
5316
|
opts = opts || {};
|
|
5101
5317
|
|
|
5102
5318
|
// verify the required parameter 'conversationId' is set
|
|
5103
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5319
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5104
5320
|
throw 'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';
|
|
5105
5321
|
}
|
|
5106
5322
|
// verify the required parameter 'summaryId' is set
|
|
5107
|
-
if (summaryId === undefined || summaryId === null) {
|
|
5323
|
+
if (summaryId === undefined || summaryId === null || summaryId === '') {
|
|
5108
5324
|
throw 'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';
|
|
5109
5325
|
}
|
|
5110
5326
|
|
|
@@ -5130,7 +5346,7 @@ class ConversationsApi {
|
|
|
5130
5346
|
*/
|
|
5131
5347
|
postConversationsCall(conversationId, body) {
|
|
5132
5348
|
// verify the required parameter 'conversationId' is set
|
|
5133
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5349
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5134
5350
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCall';
|
|
5135
5351
|
}
|
|
5136
5352
|
// verify the required parameter 'body' is set
|
|
@@ -5160,11 +5376,11 @@ class ConversationsApi {
|
|
|
5160
5376
|
*/
|
|
5161
5377
|
postConversationsCallParticipantBarge(conversationId, participantId) {
|
|
5162
5378
|
// verify the required parameter 'conversationId' is set
|
|
5163
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5379
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5164
5380
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';
|
|
5165
5381
|
}
|
|
5166
5382
|
// verify the required parameter 'participantId' is set
|
|
5167
|
-
if (participantId === undefined || participantId === null) {
|
|
5383
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5168
5384
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantBarge';
|
|
5169
5385
|
}
|
|
5170
5386
|
|
|
@@ -5190,11 +5406,11 @@ class ConversationsApi {
|
|
|
5190
5406
|
*/
|
|
5191
5407
|
postConversationsCallParticipantCoach(conversationId, participantId) {
|
|
5192
5408
|
// verify the required parameter 'conversationId' is set
|
|
5193
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5409
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5194
5410
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';
|
|
5195
5411
|
}
|
|
5196
5412
|
// verify the required parameter 'participantId' is set
|
|
5197
|
-
if (participantId === undefined || participantId === null) {
|
|
5413
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5198
5414
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantCoach';
|
|
5199
5415
|
}
|
|
5200
5416
|
|
|
@@ -5225,15 +5441,15 @@ class ConversationsApi {
|
|
|
5225
5441
|
opts = opts || {};
|
|
5226
5442
|
|
|
5227
5443
|
// verify the required parameter 'conversationId' is set
|
|
5228
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5444
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5229
5445
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';
|
|
5230
5446
|
}
|
|
5231
5447
|
// verify the required parameter 'participantId' is set
|
|
5232
|
-
if (participantId === undefined || participantId === null) {
|
|
5448
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5233
5449
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';
|
|
5234
5450
|
}
|
|
5235
5451
|
// verify the required parameter 'communicationId' is set
|
|
5236
|
-
if (communicationId === undefined || communicationId === null) {
|
|
5452
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
5237
5453
|
throw 'Missing the required parameter "communicationId" when calling postConversationsCallParticipantCommunicationWrapup';
|
|
5238
5454
|
}
|
|
5239
5455
|
|
|
@@ -5260,11 +5476,11 @@ class ConversationsApi {
|
|
|
5260
5476
|
*/
|
|
5261
5477
|
postConversationsCallParticipantConsult(conversationId, participantId, body) {
|
|
5262
5478
|
// verify the required parameter 'conversationId' is set
|
|
5263
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5479
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5264
5480
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';
|
|
5265
5481
|
}
|
|
5266
5482
|
// verify the required parameter 'participantId' is set
|
|
5267
|
-
if (participantId === undefined || participantId === null) {
|
|
5483
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5268
5484
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';
|
|
5269
5485
|
}
|
|
5270
5486
|
// verify the required parameter 'body' is set
|
|
@@ -5295,11 +5511,11 @@ class ConversationsApi {
|
|
|
5295
5511
|
*/
|
|
5296
5512
|
postConversationsCallParticipantConsultAgent(conversationId, participantId, body) {
|
|
5297
5513
|
// verify the required parameter 'conversationId' is set
|
|
5298
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5514
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5299
5515
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';
|
|
5300
5516
|
}
|
|
5301
5517
|
// verify the required parameter 'participantId' is set
|
|
5302
|
-
if (participantId === undefined || participantId === null) {
|
|
5518
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5303
5519
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';
|
|
5304
5520
|
}
|
|
5305
5521
|
// verify the required parameter 'body' is set
|
|
@@ -5330,11 +5546,11 @@ class ConversationsApi {
|
|
|
5330
5546
|
*/
|
|
5331
5547
|
postConversationsCallParticipantConsultExternal(conversationId, participantId, body) {
|
|
5332
5548
|
// verify the required parameter 'conversationId' is set
|
|
5333
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5549
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5334
5550
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';
|
|
5335
5551
|
}
|
|
5336
5552
|
// verify the required parameter 'participantId' is set
|
|
5337
|
-
if (participantId === undefined || participantId === null) {
|
|
5553
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5338
5554
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';
|
|
5339
5555
|
}
|
|
5340
5556
|
// verify the required parameter 'body' is set
|
|
@@ -5365,11 +5581,11 @@ class ConversationsApi {
|
|
|
5365
5581
|
*/
|
|
5366
5582
|
postConversationsCallParticipantConsultQueue(conversationId, participantId, body) {
|
|
5367
5583
|
// verify the required parameter 'conversationId' is set
|
|
5368
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5584
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5369
5585
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';
|
|
5370
5586
|
}
|
|
5371
5587
|
// verify the required parameter 'participantId' is set
|
|
5372
|
-
if (participantId === undefined || participantId === null) {
|
|
5588
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5373
5589
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';
|
|
5374
5590
|
}
|
|
5375
5591
|
// verify the required parameter 'body' is set
|
|
@@ -5399,11 +5615,11 @@ class ConversationsApi {
|
|
|
5399
5615
|
*/
|
|
5400
5616
|
postConversationsCallParticipantMonitor(conversationId, participantId) {
|
|
5401
5617
|
// verify the required parameter 'conversationId' is set
|
|
5402
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5618
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5403
5619
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';
|
|
5404
5620
|
}
|
|
5405
5621
|
// verify the required parameter 'participantId' is set
|
|
5406
|
-
if (participantId === undefined || participantId === null) {
|
|
5622
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5407
5623
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantMonitor';
|
|
5408
5624
|
}
|
|
5409
5625
|
|
|
@@ -5430,11 +5646,11 @@ class ConversationsApi {
|
|
|
5430
5646
|
*/
|
|
5431
5647
|
postConversationsCallParticipantReplace(conversationId, participantId, body) {
|
|
5432
5648
|
// verify the required parameter 'conversationId' is set
|
|
5433
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5649
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5434
5650
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';
|
|
5435
5651
|
}
|
|
5436
5652
|
// verify the required parameter 'participantId' is set
|
|
5437
|
-
if (participantId === undefined || participantId === null) {
|
|
5653
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5438
5654
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';
|
|
5439
5655
|
}
|
|
5440
5656
|
// verify the required parameter 'body' is set
|
|
@@ -5464,7 +5680,7 @@ class ConversationsApi {
|
|
|
5464
5680
|
*/
|
|
5465
5681
|
postConversationsCallParticipants(conversationId, body) {
|
|
5466
5682
|
// verify the required parameter 'conversationId' is set
|
|
5467
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5683
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5468
5684
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';
|
|
5469
5685
|
}
|
|
5470
5686
|
// verify the required parameter 'body' is set
|
|
@@ -5499,15 +5715,15 @@ class ConversationsApi {
|
|
|
5499
5715
|
opts = opts || {};
|
|
5500
5716
|
|
|
5501
5717
|
// verify the required parameter 'conversationId' is set
|
|
5502
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5718
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5503
5719
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';
|
|
5504
5720
|
}
|
|
5505
5721
|
// verify the required parameter 'participantId' is set
|
|
5506
|
-
if (participantId === undefined || participantId === null) {
|
|
5722
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5507
5723
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';
|
|
5508
5724
|
}
|
|
5509
5725
|
// verify the required parameter 'communicationId' is set
|
|
5510
|
-
if (communicationId === undefined || communicationId === null) {
|
|
5726
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
5511
5727
|
throw 'Missing the required parameter "communicationId" when calling postConversationsCallbackParticipantCommunicationWrapup';
|
|
5512
5728
|
}
|
|
5513
5729
|
|
|
@@ -5534,11 +5750,11 @@ class ConversationsApi {
|
|
|
5534
5750
|
*/
|
|
5535
5751
|
postConversationsCallbackParticipantReplace(conversationId, participantId, body) {
|
|
5536
5752
|
// verify the required parameter 'conversationId' is set
|
|
5537
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5753
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5538
5754
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';
|
|
5539
5755
|
}
|
|
5540
5756
|
// verify the required parameter 'participantId' is set
|
|
5541
|
-
if (participantId === undefined || participantId === null) {
|
|
5757
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5542
5758
|
throw 'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';
|
|
5543
5759
|
}
|
|
5544
5760
|
// verify the required parameter 'body' is set
|
|
@@ -5670,11 +5886,11 @@ class ConversationsApi {
|
|
|
5670
5886
|
*/
|
|
5671
5887
|
postConversationsChatCommunicationMessages(conversationId, communicationId, body) {
|
|
5672
5888
|
// verify the required parameter 'conversationId' is set
|
|
5673
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5889
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5674
5890
|
throw 'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';
|
|
5675
5891
|
}
|
|
5676
5892
|
// verify the required parameter 'communicationId' is set
|
|
5677
|
-
if (communicationId === undefined || communicationId === null) {
|
|
5893
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
5678
5894
|
throw 'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';
|
|
5679
5895
|
}
|
|
5680
5896
|
// verify the required parameter 'body' is set
|
|
@@ -5705,11 +5921,11 @@ class ConversationsApi {
|
|
|
5705
5921
|
*/
|
|
5706
5922
|
postConversationsChatCommunicationTyping(conversationId, communicationId) {
|
|
5707
5923
|
// verify the required parameter 'conversationId' is set
|
|
5708
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5924
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5709
5925
|
throw 'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';
|
|
5710
5926
|
}
|
|
5711
5927
|
// verify the required parameter 'communicationId' is set
|
|
5712
|
-
if (communicationId === undefined || communicationId === null) {
|
|
5928
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
5713
5929
|
throw 'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';
|
|
5714
5930
|
}
|
|
5715
5931
|
|
|
@@ -5741,15 +5957,15 @@ class ConversationsApi {
|
|
|
5741
5957
|
opts = opts || {};
|
|
5742
5958
|
|
|
5743
5959
|
// verify the required parameter 'conversationId' is set
|
|
5744
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5960
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5745
5961
|
throw 'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';
|
|
5746
5962
|
}
|
|
5747
5963
|
// verify the required parameter 'participantId' is set
|
|
5748
|
-
if (participantId === undefined || participantId === null) {
|
|
5964
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5749
5965
|
throw 'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';
|
|
5750
5966
|
}
|
|
5751
5967
|
// verify the required parameter 'communicationId' is set
|
|
5752
|
-
if (communicationId === undefined || communicationId === null) {
|
|
5968
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
5753
5969
|
throw 'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';
|
|
5754
5970
|
}
|
|
5755
5971
|
|
|
@@ -5777,11 +5993,11 @@ class ConversationsApi {
|
|
|
5777
5993
|
*/
|
|
5778
5994
|
postConversationsChatParticipantReplace(conversationId, participantId, body) {
|
|
5779
5995
|
// verify the required parameter 'conversationId' is set
|
|
5780
|
-
if (conversationId === undefined || conversationId === null) {
|
|
5996
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5781
5997
|
throw 'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';
|
|
5782
5998
|
}
|
|
5783
5999
|
// verify the required parameter 'participantId' is set
|
|
5784
|
-
if (participantId === undefined || participantId === null) {
|
|
6000
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5785
6001
|
throw 'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';
|
|
5786
6002
|
}
|
|
5787
6003
|
// verify the required parameter 'body' is set
|
|
@@ -5843,15 +6059,15 @@ class ConversationsApi {
|
|
|
5843
6059
|
opts = opts || {};
|
|
5844
6060
|
|
|
5845
6061
|
// verify the required parameter 'conversationId' is set
|
|
5846
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6062
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5847
6063
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';
|
|
5848
6064
|
}
|
|
5849
6065
|
// verify the required parameter 'participantId' is set
|
|
5850
|
-
if (participantId === undefined || participantId === null) {
|
|
6066
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5851
6067
|
throw 'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';
|
|
5852
6068
|
}
|
|
5853
6069
|
// verify the required parameter 'communicationId' is set
|
|
5854
|
-
if (communicationId === undefined || communicationId === null) {
|
|
6070
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
5855
6071
|
throw 'Missing the required parameter "communicationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';
|
|
5856
6072
|
}
|
|
5857
6073
|
|
|
@@ -5882,11 +6098,11 @@ class ConversationsApi {
|
|
|
5882
6098
|
opts = opts || {};
|
|
5883
6099
|
|
|
5884
6100
|
// verify the required parameter 'conversationId' is set
|
|
5885
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6101
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5886
6102
|
throw 'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';
|
|
5887
6103
|
}
|
|
5888
6104
|
// verify the required parameter 'participantId' is set
|
|
5889
|
-
if (participantId === undefined || participantId === null) {
|
|
6105
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
5890
6106
|
throw 'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantReplace';
|
|
5891
6107
|
}
|
|
5892
6108
|
|
|
@@ -5912,7 +6128,7 @@ class ConversationsApi {
|
|
|
5912
6128
|
*/
|
|
5913
6129
|
postConversationsEmailInboundmessages(conversationId, body) {
|
|
5914
6130
|
// verify the required parameter 'conversationId' is set
|
|
5915
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6131
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5916
6132
|
throw 'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';
|
|
5917
6133
|
}
|
|
5918
6134
|
// verify the required parameter 'body' is set
|
|
@@ -5942,7 +6158,7 @@ class ConversationsApi {
|
|
|
5942
6158
|
*/
|
|
5943
6159
|
postConversationsEmailMessages(conversationId, body) {
|
|
5944
6160
|
// verify the required parameter 'conversationId' is set
|
|
5945
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6161
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5946
6162
|
throw 'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';
|
|
5947
6163
|
}
|
|
5948
6164
|
// verify the required parameter 'body' is set
|
|
@@ -5972,7 +6188,7 @@ class ConversationsApi {
|
|
|
5972
6188
|
*/
|
|
5973
6189
|
postConversationsEmailMessagesDraftAttachmentsCopy(conversationId, body) {
|
|
5974
6190
|
// verify the required parameter 'conversationId' is set
|
|
5975
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6191
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5976
6192
|
throw 'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';
|
|
5977
6193
|
}
|
|
5978
6194
|
// verify the required parameter 'body' is set
|
|
@@ -6007,15 +6223,15 @@ class ConversationsApi {
|
|
|
6007
6223
|
opts = opts || {};
|
|
6008
6224
|
|
|
6009
6225
|
// verify the required parameter 'conversationId' is set
|
|
6010
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6226
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6011
6227
|
throw 'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';
|
|
6012
6228
|
}
|
|
6013
6229
|
// verify the required parameter 'participantId' is set
|
|
6014
|
-
if (participantId === undefined || participantId === null) {
|
|
6230
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
6015
6231
|
throw 'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';
|
|
6016
6232
|
}
|
|
6017
6233
|
// verify the required parameter 'communicationId' is set
|
|
6018
|
-
if (communicationId === undefined || communicationId === null) {
|
|
6234
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
6019
6235
|
throw 'Missing the required parameter "communicationId" when calling postConversationsEmailParticipantCommunicationWrapup';
|
|
6020
6236
|
}
|
|
6021
6237
|
|
|
@@ -6042,11 +6258,11 @@ class ConversationsApi {
|
|
|
6042
6258
|
*/
|
|
6043
6259
|
postConversationsEmailParticipantReplace(conversationId, participantId, body) {
|
|
6044
6260
|
// verify the required parameter 'conversationId' is set
|
|
6045
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6261
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6046
6262
|
throw 'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';
|
|
6047
6263
|
}
|
|
6048
6264
|
// verify the required parameter 'participantId' is set
|
|
6049
|
-
if (participantId === undefined || participantId === null) {
|
|
6265
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
6050
6266
|
throw 'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';
|
|
6051
6267
|
}
|
|
6052
6268
|
// verify the required parameter 'body' is set
|
|
@@ -6075,7 +6291,7 @@ class ConversationsApi {
|
|
|
6075
6291
|
*/
|
|
6076
6292
|
postConversationsEmailReconnect(conversationId) {
|
|
6077
6293
|
// verify the required parameter 'conversationId' is set
|
|
6078
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6294
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6079
6295
|
throw 'Missing the required parameter "conversationId" when calling postConversationsEmailReconnect';
|
|
6080
6296
|
}
|
|
6081
6297
|
|
|
@@ -6231,11 +6447,11 @@ class ConversationsApi {
|
|
|
6231
6447
|
opts = opts || {};
|
|
6232
6448
|
|
|
6233
6449
|
// verify the required parameter 'conversationId' is set
|
|
6234
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6450
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6235
6451
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';
|
|
6236
6452
|
}
|
|
6237
6453
|
// verify the required parameter 'communicationId' is set
|
|
6238
|
-
if (communicationId === undefined || communicationId === null) {
|
|
6454
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
6239
6455
|
throw 'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';
|
|
6240
6456
|
}
|
|
6241
6457
|
// verify the required parameter 'body' is set
|
|
@@ -6266,11 +6482,11 @@ class ConversationsApi {
|
|
|
6266
6482
|
*/
|
|
6267
6483
|
postConversationsMessageCommunicationMessagesMedia(conversationId, communicationId) {
|
|
6268
6484
|
// verify the required parameter 'conversationId' is set
|
|
6269
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6485
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6270
6486
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';
|
|
6271
6487
|
}
|
|
6272
6488
|
// verify the required parameter 'communicationId' is set
|
|
6273
|
-
if (communicationId === undefined || communicationId === null) {
|
|
6489
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
6274
6490
|
throw 'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMedia';
|
|
6275
6491
|
}
|
|
6276
6492
|
|
|
@@ -6297,11 +6513,11 @@ class ConversationsApi {
|
|
|
6297
6513
|
*/
|
|
6298
6514
|
postConversationsMessageCommunicationMessagesMediaUploads(conversationId, communicationId, body) {
|
|
6299
6515
|
// verify the required parameter 'conversationId' is set
|
|
6300
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6516
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6301
6517
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';
|
|
6302
6518
|
}
|
|
6303
6519
|
// verify the required parameter 'communicationId' is set
|
|
6304
|
-
if (communicationId === undefined || communicationId === null) {
|
|
6520
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
6305
6521
|
throw 'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';
|
|
6306
6522
|
}
|
|
6307
6523
|
// verify the required parameter 'body' is set
|
|
@@ -6332,11 +6548,11 @@ class ConversationsApi {
|
|
|
6332
6548
|
*/
|
|
6333
6549
|
postConversationsMessageCommunicationSocialmediaMessages(conversationId, communicationId, body) {
|
|
6334
6550
|
// verify the required parameter 'conversationId' is set
|
|
6335
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6551
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6336
6552
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';
|
|
6337
6553
|
}
|
|
6338
6554
|
// verify the required parameter 'communicationId' is set
|
|
6339
|
-
if (communicationId === undefined || communicationId === null) {
|
|
6555
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
6340
6556
|
throw 'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';
|
|
6341
6557
|
}
|
|
6342
6558
|
// verify the required parameter 'body' is set
|
|
@@ -6367,11 +6583,11 @@ class ConversationsApi {
|
|
|
6367
6583
|
*/
|
|
6368
6584
|
postConversationsMessageCommunicationTyping(conversationId, communicationId, body) {
|
|
6369
6585
|
// verify the required parameter 'conversationId' is set
|
|
6370
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6586
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6371
6587
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';
|
|
6372
6588
|
}
|
|
6373
6589
|
// verify the required parameter 'communicationId' is set
|
|
6374
|
-
if (communicationId === undefined || communicationId === null) {
|
|
6590
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
6375
6591
|
throw 'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';
|
|
6376
6592
|
}
|
|
6377
6593
|
// verify the required parameter 'body' is set
|
|
@@ -6401,7 +6617,7 @@ class ConversationsApi {
|
|
|
6401
6617
|
*/
|
|
6402
6618
|
postConversationsMessageInboundOpenEvent(integrationId, body) {
|
|
6403
6619
|
// verify the required parameter 'integrationId' is set
|
|
6404
|
-
if (integrationId === undefined || integrationId === null) {
|
|
6620
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
6405
6621
|
throw 'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';
|
|
6406
6622
|
}
|
|
6407
6623
|
// verify the required parameter 'body' is set
|
|
@@ -6435,7 +6651,7 @@ class ConversationsApi {
|
|
|
6435
6651
|
opts = opts || {};
|
|
6436
6652
|
|
|
6437
6653
|
// verify the required parameter 'integrationId' is set
|
|
6438
|
-
if (integrationId === undefined || integrationId === null) {
|
|
6654
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
6439
6655
|
throw 'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';
|
|
6440
6656
|
}
|
|
6441
6657
|
// verify the required parameter 'body' is set
|
|
@@ -6465,7 +6681,7 @@ class ConversationsApi {
|
|
|
6465
6681
|
*/
|
|
6466
6682
|
postConversationsMessageInboundOpenReceipt(integrationId, body) {
|
|
6467
6683
|
// verify the required parameter 'integrationId' is set
|
|
6468
|
-
if (integrationId === undefined || integrationId === null) {
|
|
6684
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
6469
6685
|
throw 'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';
|
|
6470
6686
|
}
|
|
6471
6687
|
// verify the required parameter 'body' is set
|
|
@@ -6487,6 +6703,36 @@ class ConversationsApi {
|
|
|
6487
6703
|
);
|
|
6488
6704
|
}
|
|
6489
6705
|
|
|
6706
|
+
/**
|
|
6707
|
+
* Send inbound Open Response
|
|
6708
|
+
* Send an inbound response for a structured 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 be a part of an existing conversation. See https://developer.genesys.cloud/api/digital/openmessaging/ for example usage.
|
|
6709
|
+
* @param {String} integrationId integrationId
|
|
6710
|
+
* @param {Object} body OpenInboundStructuredResponseMessage
|
|
6711
|
+
*/
|
|
6712
|
+
postConversationsMessageInboundOpenStructuredResponse(integrationId, body) {
|
|
6713
|
+
// verify the required parameter 'integrationId' is set
|
|
6714
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
6715
|
+
throw 'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';
|
|
6716
|
+
}
|
|
6717
|
+
// verify the required parameter 'body' is set
|
|
6718
|
+
if (body === undefined || body === null) {
|
|
6719
|
+
throw 'Missing the required parameter "body" when calling postConversationsMessageInboundOpenStructuredResponse';
|
|
6720
|
+
}
|
|
6721
|
+
|
|
6722
|
+
return this.apiClient.callApi(
|
|
6723
|
+
'/api/v2/conversations/messages/{integrationId}/inbound/open/structured/response',
|
|
6724
|
+
'POST',
|
|
6725
|
+
{ 'integrationId': integrationId },
|
|
6726
|
+
{ },
|
|
6727
|
+
{ },
|
|
6728
|
+
{ },
|
|
6729
|
+
body,
|
|
6730
|
+
['PureCloud OAuth'],
|
|
6731
|
+
['application/json'],
|
|
6732
|
+
['application/json']
|
|
6733
|
+
);
|
|
6734
|
+
}
|
|
6735
|
+
|
|
6490
6736
|
/**
|
|
6491
6737
|
* Get messages in batch
|
|
6492
6738
|
* The path parameter [conversationId] should contain the conversationId of the conversation being filtered. The body should contain the messageId(s) of messages being requested. For example: ["a3069a33b-bbb1-4703-9d68-061d9e9db96e", "55bc6be3-078c-4a49-a4e6-1e05776ed7e8"]
|
|
@@ -6499,7 +6745,7 @@ class ConversationsApi {
|
|
|
6499
6745
|
opts = opts || {};
|
|
6500
6746
|
|
|
6501
6747
|
// verify the required parameter 'conversationId' is set
|
|
6502
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6748
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6503
6749
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';
|
|
6504
6750
|
}
|
|
6505
6751
|
|
|
@@ -6530,15 +6776,15 @@ class ConversationsApi {
|
|
|
6530
6776
|
opts = opts || {};
|
|
6531
6777
|
|
|
6532
6778
|
// verify the required parameter 'conversationId' is set
|
|
6533
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6779
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6534
6780
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';
|
|
6535
6781
|
}
|
|
6536
6782
|
// verify the required parameter 'participantId' is set
|
|
6537
|
-
if (participantId === undefined || participantId === null) {
|
|
6783
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
6538
6784
|
throw 'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';
|
|
6539
6785
|
}
|
|
6540
6786
|
// verify the required parameter 'communicationId' is set
|
|
6541
|
-
if (communicationId === undefined || communicationId === null) {
|
|
6787
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
6542
6788
|
throw 'Missing the required parameter "communicationId" when calling postConversationsMessageParticipantCommunicationWrapup';
|
|
6543
6789
|
}
|
|
6544
6790
|
|
|
@@ -6564,11 +6810,11 @@ class ConversationsApi {
|
|
|
6564
6810
|
*/
|
|
6565
6811
|
postConversationsMessageParticipantMonitor(conversationId, participantId) {
|
|
6566
6812
|
// verify the required parameter 'conversationId' is set
|
|
6567
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6813
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6568
6814
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';
|
|
6569
6815
|
}
|
|
6570
6816
|
// verify the required parameter 'participantId' is set
|
|
6571
|
-
if (participantId === undefined || participantId === null) {
|
|
6817
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
6572
6818
|
throw 'Missing the required parameter "participantId" when calling postConversationsMessageParticipantMonitor';
|
|
6573
6819
|
}
|
|
6574
6820
|
|
|
@@ -6595,11 +6841,11 @@ class ConversationsApi {
|
|
|
6595
6841
|
*/
|
|
6596
6842
|
postConversationsMessageParticipantReplace(conversationId, participantId, body) {
|
|
6597
6843
|
// verify the required parameter 'conversationId' is set
|
|
6598
|
-
if (conversationId === undefined || conversationId === null) {
|
|
6844
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6599
6845
|
throw 'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';
|
|
6600
6846
|
}
|
|
6601
6847
|
// verify the required parameter 'participantId' is set
|
|
6602
|
-
if (participantId === undefined || participantId === null) {
|
|
6848
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
6603
6849
|
throw 'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';
|
|
6604
6850
|
}
|
|
6605
6851
|
// verify the required parameter 'body' is set
|
|
@@ -6941,15 +7187,15 @@ class ConversationsApi {
|
|
|
6941
7187
|
opts = opts || {};
|
|
6942
7188
|
|
|
6943
7189
|
// verify the required parameter 'conversationId' is set
|
|
6944
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7190
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6945
7191
|
throw 'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';
|
|
6946
7192
|
}
|
|
6947
7193
|
// verify the required parameter 'participantId' is set
|
|
6948
|
-
if (participantId === undefined || participantId === null) {
|
|
7194
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
6949
7195
|
throw 'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';
|
|
6950
7196
|
}
|
|
6951
7197
|
// verify the required parameter 'communicationId' is set
|
|
6952
|
-
if (communicationId === undefined || communicationId === null) {
|
|
7198
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
6953
7199
|
throw 'Missing the required parameter "communicationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';
|
|
6954
7200
|
}
|
|
6955
7201
|
|
|
@@ -6980,15 +7226,15 @@ class ConversationsApi {
|
|
|
6980
7226
|
opts = opts || {};
|
|
6981
7227
|
|
|
6982
7228
|
// verify the required parameter 'conversationId' is set
|
|
6983
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7229
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
6984
7230
|
throw 'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';
|
|
6985
7231
|
}
|
|
6986
7232
|
// verify the required parameter 'participantId' is set
|
|
6987
|
-
if (participantId === undefined || participantId === null) {
|
|
7233
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
6988
7234
|
throw 'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';
|
|
6989
7235
|
}
|
|
6990
7236
|
// verify the required parameter 'communicationId' is set
|
|
6991
|
-
if (communicationId === undefined || communicationId === null) {
|
|
7237
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
6992
7238
|
throw 'Missing the required parameter "communicationId" when calling postConversationsSocialParticipantCommunicationWrapup';
|
|
6993
7239
|
}
|
|
6994
7240
|
|
|
@@ -7015,11 +7261,11 @@ class ConversationsApi {
|
|
|
7015
7261
|
*/
|
|
7016
7262
|
postConversationsVideoAgentconferenceCommunication(conversationId, communicationId) {
|
|
7017
7263
|
// verify the required parameter 'conversationId' is set
|
|
7018
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7264
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7019
7265
|
throw 'Missing the required parameter "conversationId" when calling postConversationsVideoAgentconferenceCommunication';
|
|
7020
7266
|
}
|
|
7021
7267
|
// verify the required parameter 'communicationId' is set
|
|
7022
|
-
if (communicationId === undefined || communicationId === null) {
|
|
7268
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
7023
7269
|
throw 'Missing the required parameter "communicationId" when calling postConversationsVideoAgentconferenceCommunication';
|
|
7024
7270
|
}
|
|
7025
7271
|
|
|
@@ -7050,15 +7296,15 @@ class ConversationsApi {
|
|
|
7050
7296
|
opts = opts || {};
|
|
7051
7297
|
|
|
7052
7298
|
// verify the required parameter 'conversationId' is set
|
|
7053
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7299
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7054
7300
|
throw 'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';
|
|
7055
7301
|
}
|
|
7056
7302
|
// verify the required parameter 'participantId' is set
|
|
7057
|
-
if (participantId === undefined || participantId === null) {
|
|
7303
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
7058
7304
|
throw 'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';
|
|
7059
7305
|
}
|
|
7060
7306
|
// verify the required parameter 'communicationId' is set
|
|
7061
|
-
if (communicationId === undefined || communicationId === null) {
|
|
7307
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
7062
7308
|
throw 'Missing the required parameter "communicationId" when calling postConversationsVideoParticipantCommunicationWrapup';
|
|
7063
7309
|
}
|
|
7064
7310
|
|
|
@@ -7110,11 +7356,11 @@ class ConversationsApi {
|
|
|
7110
7356
|
*/
|
|
7111
7357
|
putConversationParticipantFlaggedreason(conversationId, participantId) {
|
|
7112
7358
|
// verify the required parameter 'conversationId' is set
|
|
7113
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7359
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7114
7360
|
throw 'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';
|
|
7115
7361
|
}
|
|
7116
7362
|
// verify the required parameter 'participantId' is set
|
|
7117
|
-
if (participantId === undefined || participantId === null) {
|
|
7363
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
7118
7364
|
throw 'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';
|
|
7119
7365
|
}
|
|
7120
7366
|
|
|
@@ -7140,7 +7386,7 @@ class ConversationsApi {
|
|
|
7140
7386
|
*/
|
|
7141
7387
|
putConversationSecureattributes(conversationId, body) {
|
|
7142
7388
|
// verify the required parameter 'conversationId' is set
|
|
7143
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7389
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7144
7390
|
throw 'Missing the required parameter "conversationId" when calling putConversationSecureattributes';
|
|
7145
7391
|
}
|
|
7146
7392
|
// verify the required parameter 'body' is set
|
|
@@ -7170,7 +7416,7 @@ class ConversationsApi {
|
|
|
7170
7416
|
*/
|
|
7171
7417
|
putConversationTags(conversationId, body) {
|
|
7172
7418
|
// verify the required parameter 'conversationId' is set
|
|
7173
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7419
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7174
7420
|
throw 'Missing the required parameter "conversationId" when calling putConversationTags';
|
|
7175
7421
|
}
|
|
7176
7422
|
// verify the required parameter 'body' is set
|
|
@@ -7202,15 +7448,15 @@ class ConversationsApi {
|
|
|
7202
7448
|
*/
|
|
7203
7449
|
putConversationsCallParticipantCommunicationUuidata(conversationId, participantId, communicationId, body) {
|
|
7204
7450
|
// verify the required parameter 'conversationId' is set
|
|
7205
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7451
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7206
7452
|
throw 'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';
|
|
7207
7453
|
}
|
|
7208
7454
|
// verify the required parameter 'participantId' is set
|
|
7209
|
-
if (participantId === undefined || participantId === null) {
|
|
7455
|
+
if (participantId === undefined || participantId === null || participantId === '') {
|
|
7210
7456
|
throw 'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';
|
|
7211
7457
|
}
|
|
7212
7458
|
// verify the required parameter 'communicationId' is set
|
|
7213
|
-
if (communicationId === undefined || communicationId === null) {
|
|
7459
|
+
if (communicationId === undefined || communicationId === null || communicationId === '') {
|
|
7214
7460
|
throw 'Missing the required parameter "communicationId" when calling putConversationsCallParticipantCommunicationUuidata';
|
|
7215
7461
|
}
|
|
7216
7462
|
// verify the required parameter 'body' is set
|
|
@@ -7240,7 +7486,7 @@ class ConversationsApi {
|
|
|
7240
7486
|
*/
|
|
7241
7487
|
putConversationsCallRecordingstate(conversationId, body) {
|
|
7242
7488
|
// verify the required parameter 'conversationId' is set
|
|
7243
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7489
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7244
7490
|
throw 'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';
|
|
7245
7491
|
}
|
|
7246
7492
|
// verify the required parameter 'body' is set
|
|
@@ -7270,7 +7516,7 @@ class ConversationsApi {
|
|
|
7270
7516
|
*/
|
|
7271
7517
|
putConversationsCallbackRecordingstate(conversationId, body) {
|
|
7272
7518
|
// verify the required parameter 'conversationId' is set
|
|
7273
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7519
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7274
7520
|
throw 'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';
|
|
7275
7521
|
}
|
|
7276
7522
|
// verify the required parameter 'body' is set
|
|
@@ -7301,7 +7547,7 @@ class ConversationsApi {
|
|
|
7301
7547
|
*/
|
|
7302
7548
|
putConversationsChatRecordingstate(conversationId, body) {
|
|
7303
7549
|
// verify the required parameter 'conversationId' is set
|
|
7304
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7550
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7305
7551
|
throw 'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';
|
|
7306
7552
|
}
|
|
7307
7553
|
// verify the required parameter 'body' is set
|
|
@@ -7332,7 +7578,7 @@ class ConversationsApi {
|
|
|
7332
7578
|
*/
|
|
7333
7579
|
putConversationsCobrowsesessionRecordingstate(conversationId, body) {
|
|
7334
7580
|
// verify the required parameter 'conversationId' is set
|
|
7335
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7581
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7336
7582
|
throw 'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';
|
|
7337
7583
|
}
|
|
7338
7584
|
// verify the required parameter 'body' is set
|
|
@@ -7362,7 +7608,7 @@ class ConversationsApi {
|
|
|
7362
7608
|
*/
|
|
7363
7609
|
putConversationsEmailMessagesDraft(conversationId, body) {
|
|
7364
7610
|
// verify the required parameter 'conversationId' is set
|
|
7365
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7611
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7366
7612
|
throw 'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';
|
|
7367
7613
|
}
|
|
7368
7614
|
// verify the required parameter 'body' is set
|
|
@@ -7392,7 +7638,7 @@ class ConversationsApi {
|
|
|
7392
7638
|
*/
|
|
7393
7639
|
putConversationsEmailRecordingstate(conversationId, body) {
|
|
7394
7640
|
// verify the required parameter 'conversationId' is set
|
|
7395
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7641
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7396
7642
|
throw 'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';
|
|
7397
7643
|
}
|
|
7398
7644
|
// verify the required parameter 'body' is set
|
|
@@ -7422,7 +7668,7 @@ class ConversationsApi {
|
|
|
7422
7668
|
*/
|
|
7423
7669
|
putConversationsKeyconfiguration(keyconfigurationsId, body) {
|
|
7424
7670
|
// verify the required parameter 'keyconfigurationsId' is set
|
|
7425
|
-
if (keyconfigurationsId === undefined || keyconfigurationsId === null) {
|
|
7671
|
+
if (keyconfigurationsId === undefined || keyconfigurationsId === null || keyconfigurationsId === '') {
|
|
7426
7672
|
throw 'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';
|
|
7427
7673
|
}
|
|
7428
7674
|
// verify the required parameter 'body' is set
|
|
@@ -7452,7 +7698,7 @@ class ConversationsApi {
|
|
|
7452
7698
|
*/
|
|
7453
7699
|
putConversationsMessageRecordingstate(conversationId, body) {
|
|
7454
7700
|
// verify the required parameter 'conversationId' is set
|
|
7455
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7701
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7456
7702
|
throw 'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';
|
|
7457
7703
|
}
|
|
7458
7704
|
// verify the required parameter 'body' is set
|
|
@@ -7483,7 +7729,7 @@ class ConversationsApi {
|
|
|
7483
7729
|
*/
|
|
7484
7730
|
putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(integrationId, body) {
|
|
7485
7731
|
// verify the required parameter 'integrationId' is set
|
|
7486
|
-
if (integrationId === undefined || integrationId === null) {
|
|
7732
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
7487
7733
|
throw 'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';
|
|
7488
7734
|
}
|
|
7489
7735
|
// verify the required parameter 'body' is set
|
|
@@ -7513,7 +7759,7 @@ class ConversationsApi {
|
|
|
7513
7759
|
*/
|
|
7514
7760
|
putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId, body) {
|
|
7515
7761
|
// verify the required parameter 'integrationId' is set
|
|
7516
|
-
if (integrationId === undefined || integrationId === null) {
|
|
7762
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
7517
7763
|
throw 'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';
|
|
7518
7764
|
}
|
|
7519
7765
|
// verify the required parameter 'body' is set
|
|
@@ -7543,7 +7789,7 @@ class ConversationsApi {
|
|
|
7543
7789
|
*/
|
|
7544
7790
|
putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(integrationId, body) {
|
|
7545
7791
|
// verify the required parameter 'integrationId' is set
|
|
7546
|
-
if (integrationId === undefined || integrationId === null) {
|
|
7792
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
7547
7793
|
throw 'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';
|
|
7548
7794
|
}
|
|
7549
7795
|
// verify the required parameter 'body' is set
|
|
@@ -7573,7 +7819,7 @@ class ConversationsApi {
|
|
|
7573
7819
|
*/
|
|
7574
7820
|
putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId, body) {
|
|
7575
7821
|
// verify the required parameter 'integrationId' is set
|
|
7576
|
-
if (integrationId === undefined || integrationId === null) {
|
|
7822
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
7577
7823
|
throw 'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';
|
|
7578
7824
|
}
|
|
7579
7825
|
// verify the required parameter 'body' is set
|
|
@@ -7595,6 +7841,36 @@ class ConversationsApi {
|
|
|
7595
7841
|
);
|
|
7596
7842
|
}
|
|
7597
7843
|
|
|
7844
|
+
/**
|
|
7845
|
+
* Create an identity resolution settings for an X (Formally Twitter) messaging integration
|
|
7846
|
+
*
|
|
7847
|
+
* @param {String} integrationId Integration Id
|
|
7848
|
+
* @param {Object} body IdentityResolutionConfig
|
|
7849
|
+
*/
|
|
7850
|
+
putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(integrationId, body) {
|
|
7851
|
+
// verify the required parameter 'integrationId' is set
|
|
7852
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
7853
|
+
throw 'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';
|
|
7854
|
+
}
|
|
7855
|
+
// verify the required parameter 'body' is set
|
|
7856
|
+
if (body === undefined || body === null) {
|
|
7857
|
+
throw 'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';
|
|
7858
|
+
}
|
|
7859
|
+
|
|
7860
|
+
return this.apiClient.callApi(
|
|
7861
|
+
'/api/v2/conversations/messaging/identityresolution/integrations/twitter/{integrationId}',
|
|
7862
|
+
'PUT',
|
|
7863
|
+
{ 'integrationId': integrationId },
|
|
7864
|
+
{ },
|
|
7865
|
+
{ },
|
|
7866
|
+
{ },
|
|
7867
|
+
body,
|
|
7868
|
+
['PureCloud OAuth'],
|
|
7869
|
+
['application/json'],
|
|
7870
|
+
['application/json']
|
|
7871
|
+
);
|
|
7872
|
+
}
|
|
7873
|
+
|
|
7598
7874
|
/**
|
|
7599
7875
|
* Update a whatsApp integration Identity Resolution settings
|
|
7600
7876
|
*
|
|
@@ -7603,7 +7879,7 @@ class ConversationsApi {
|
|
|
7603
7879
|
*/
|
|
7604
7880
|
putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(integrationId, body) {
|
|
7605
7881
|
// verify the required parameter 'integrationId' is set
|
|
7606
|
-
if (integrationId === undefined || integrationId === null) {
|
|
7882
|
+
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
7607
7883
|
throw 'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';
|
|
7608
7884
|
}
|
|
7609
7885
|
// verify the required parameter 'body' is set
|
|
@@ -7709,7 +7985,7 @@ class ConversationsApi {
|
|
|
7709
7985
|
*/
|
|
7710
7986
|
putConversationsScreenshareRecordingstate(conversationId, body) {
|
|
7711
7987
|
// verify the required parameter 'conversationId' is set
|
|
7712
|
-
if (conversationId === undefined || conversationId === null) {
|
|
7988
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7713
7989
|
throw 'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';
|
|
7714
7990
|
}
|
|
7715
7991
|
// verify the required parameter 'body' is set
|
|
@@ -7739,7 +8015,7 @@ class ConversationsApi {
|
|
|
7739
8015
|
*/
|
|
7740
8016
|
putConversationsSocialRecordingstate(conversationId, body) {
|
|
7741
8017
|
// verify the required parameter 'conversationId' is set
|
|
7742
|
-
if (conversationId === undefined || conversationId === null) {
|
|
8018
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7743
8019
|
throw 'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';
|
|
7744
8020
|
}
|
|
7745
8021
|
// verify the required parameter 'body' is set
|
|
@@ -7769,7 +8045,7 @@ class ConversationsApi {
|
|
|
7769
8045
|
*/
|
|
7770
8046
|
putConversationsVideoRecordingstate(conversationId, body) {
|
|
7771
8047
|
// verify the required parameter 'conversationId' is set
|
|
7772
|
-
if (conversationId === undefined || conversationId === null) {
|
|
8048
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
7773
8049
|
throw 'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';
|
|
7774
8050
|
}
|
|
7775
8051
|
// verify the required parameter 'body' is set
|