purecloud-platform-client-v2 180.0.0 → 182.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/node/purecloud-platform-client-v2.js +475 -160
- package/dist/web-amd/purecloud-platform-client-v2.js +475 -160
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +7323 -59790
- package/dist/web-cjs/purecloud-platform-client-v2.js +26569 -65181
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +420 -234
- package/package.json +8 -5
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -74
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +59 -3
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +73 -2
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +71 -0
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +9 -4
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +86 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +92 -2
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +17 -7
- package/src/purecloud-platform-client-v2/index.js +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "purecloud-platform-client-v2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "182.0.0",
|
|
4
4
|
"description": "A JavaScript library to interface with the PureCloud Platform API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/node/purecloud-platform-client-v2.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"url": "https://developer.mypurecloud.com"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"axios": "^
|
|
33
|
+
"axios": "^1.6.1",
|
|
34
34
|
"configparser": "^0.3.9",
|
|
35
35
|
"qs": "^6.10.3",
|
|
36
36
|
"winston": "^3.6.0"
|
|
@@ -39,9 +39,12 @@
|
|
|
39
39
|
"mocha": "~9.2.0",
|
|
40
40
|
"sinon": "13.0.1",
|
|
41
41
|
"expect.js": "~0.3.1",
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@rollup/plugin-
|
|
42
|
+
"@babel/core": "^7.23.3",
|
|
43
|
+
"@babel/preset-env": "^7.23.3",
|
|
44
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
45
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
46
|
+
"@rollup/plugin-json": "^6.0.1",
|
|
47
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
45
48
|
"rollup-plugin-re": "^1.0.7",
|
|
46
49
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
47
50
|
"rollup-plugin-node-globals": "^1.4.0"
|
|
@@ -5,7 +5,7 @@ class ChatApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Chat service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 182.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -144,27 +144,6 @@ class ChatApi {
|
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
/**
|
|
148
|
-
* Get Chat Settings.
|
|
149
|
-
* This route is deprecated, please use /chats/settings instead
|
|
150
|
-
* @deprecated
|
|
151
|
-
*/
|
|
152
|
-
getChatSettings() {
|
|
153
|
-
|
|
154
|
-
return this.apiClient.callApi(
|
|
155
|
-
'/api/v2/chat/settings',
|
|
156
|
-
'GET',
|
|
157
|
-
{ },
|
|
158
|
-
{ },
|
|
159
|
-
{ },
|
|
160
|
-
{ },
|
|
161
|
-
null,
|
|
162
|
-
['PureCloud OAuth'],
|
|
163
|
-
['application/json'],
|
|
164
|
-
['application/json']
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
147
|
/**
|
|
169
148
|
* Get a message
|
|
170
149
|
*
|
|
@@ -413,32 +392,6 @@ class ChatApi {
|
|
|
413
392
|
);
|
|
414
393
|
}
|
|
415
394
|
|
|
416
|
-
/**
|
|
417
|
-
* Patch Chat Settings.
|
|
418
|
-
* This route is deprecated, please use /chats/settings instead
|
|
419
|
-
* @param {Object} body Chat
|
|
420
|
-
* @deprecated
|
|
421
|
-
*/
|
|
422
|
-
patchChatSettings(body) {
|
|
423
|
-
// verify the required parameter 'body' is set
|
|
424
|
-
if (body === undefined || body === null) {
|
|
425
|
-
throw 'Missing the required parameter "body" when calling patchChatSettings';
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
return this.apiClient.callApi(
|
|
429
|
-
'/api/v2/chat/settings',
|
|
430
|
-
'PATCH',
|
|
431
|
-
{ },
|
|
432
|
-
{ },
|
|
433
|
-
{ },
|
|
434
|
-
{ },
|
|
435
|
-
body,
|
|
436
|
-
['PureCloud OAuth'],
|
|
437
|
-
['application/json'],
|
|
438
|
-
['application/json']
|
|
439
|
-
);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
395
|
/**
|
|
443
396
|
* Set properties for a room
|
|
444
397
|
*
|
|
@@ -717,32 +670,6 @@ class ChatApi {
|
|
|
717
670
|
);
|
|
718
671
|
}
|
|
719
672
|
|
|
720
|
-
/**
|
|
721
|
-
* Update Chat Settings.
|
|
722
|
-
* This route is deprecated, please use /chats/settings instead
|
|
723
|
-
* @param {Object} body Chat
|
|
724
|
-
* @deprecated
|
|
725
|
-
*/
|
|
726
|
-
putChatSettings(body) {
|
|
727
|
-
// verify the required parameter 'body' is set
|
|
728
|
-
if (body === undefined || body === null) {
|
|
729
|
-
throw 'Missing the required parameter "body" when calling putChatSettings';
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
return this.apiClient.callApi(
|
|
733
|
-
'/api/v2/chat/settings',
|
|
734
|
-
'PUT',
|
|
735
|
-
{ },
|
|
736
|
-
{ },
|
|
737
|
-
{ },
|
|
738
|
-
{ },
|
|
739
|
-
body,
|
|
740
|
-
['PureCloud OAuth'],
|
|
741
|
-
['application/json'],
|
|
742
|
-
['application/json']
|
|
743
|
-
);
|
|
744
|
-
}
|
|
745
|
-
|
|
746
673
|
/**
|
|
747
674
|
* Update Chat Settings.
|
|
748
675
|
*
|
|
@@ -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 182.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -4050,6 +4050,36 @@ class ConversationsApi {
|
|
|
4050
4050
|
);
|
|
4051
4051
|
}
|
|
4052
4052
|
|
|
4053
|
+
/**
|
|
4054
|
+
* Activate a WhatsApp messaging integration created using the WhatsApp embedded signup flow
|
|
4055
|
+
* Please specify the phone number to associate with this WhatsApp integration from the list of available phone numbers returned to you in the POST call to create the integration. You can then run a GET on the integration to check if its status has been updated to Active
|
|
4056
|
+
* @param {String} integrationId Integration ID
|
|
4057
|
+
* @param {Object} body WhatsAppEmbeddedSignupIntegrationActivationRequest
|
|
4058
|
+
*/
|
|
4059
|
+
patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(integrationId, body) {
|
|
4060
|
+
// verify the required parameter 'integrationId' is set
|
|
4061
|
+
if (integrationId === undefined || integrationId === null) {
|
|
4062
|
+
throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';
|
|
4063
|
+
}
|
|
4064
|
+
// verify the required parameter 'body' is set
|
|
4065
|
+
if (body === undefined || body === null) {
|
|
4066
|
+
throw 'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';
|
|
4067
|
+
}
|
|
4068
|
+
|
|
4069
|
+
return this.apiClient.callApi(
|
|
4070
|
+
'/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup/{integrationId}',
|
|
4071
|
+
'PATCH',
|
|
4072
|
+
{ 'integrationId': integrationId },
|
|
4073
|
+
{ },
|
|
4074
|
+
{ },
|
|
4075
|
+
{ },
|
|
4076
|
+
body,
|
|
4077
|
+
['PureCloud OAuth'],
|
|
4078
|
+
['application/json'],
|
|
4079
|
+
['application/json']
|
|
4080
|
+
);
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4053
4083
|
/**
|
|
4054
4084
|
* Update or activate a WhatsApp messaging integration
|
|
4055
4085
|
* The following steps are required in order to fully activate a WhatsApp Integration: Initially, you will need to get an activation code by sending: an action set to Activate, and an authenticationMethod choosing from Sms or Voice. Finally, once you have been informed of an activation code on selected authenticationMethod, you will need to confirm the code by sending: an action set to Confirm, and the confirmationCode you have received from Whatsapp.
|
|
@@ -6276,9 +6306,10 @@ class ConversationsApi {
|
|
|
6276
6306
|
}
|
|
6277
6307
|
|
|
6278
6308
|
/**
|
|
6279
|
-
* Create a WhatsApp Integration
|
|
6280
|
-
* You must be approved by WhatsApp to use this feature. Your approved e164-formatted phone number and valid WhatsApp certificate for your number are required. Your WhatsApp certificate must have valid base64 encoding. Please paste carefully and do not add any leading or trailing spaces. Do not alter any characters. An integration must be activated within 7 days of certificate generation. If you cannot complete the addition and activation of the number within 7 days, please obtain a new certificate before creating the integration. Integrations created with an invalid number or certificate may immediately incur additional integration fees. Please carefully enter your number and certificate as described.
|
|
6309
|
+
* [This API is deprecated. Use POST /api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup instead] Create a WhatsApp Integration
|
|
6310
|
+
* [This API is deprecated. Use POST /api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup instead] You must be approved by WhatsApp to use this feature. Your approved e164-formatted phone number and valid WhatsApp certificate for your number are required. Your WhatsApp certificate must have valid base64 encoding. Please paste carefully and do not add any leading or trailing spaces. Do not alter any characters. An integration must be activated within 7 days of certificate generation. If you cannot complete the addition and activation of the number within 7 days, please obtain a new certificate before creating the integration. Integrations created with an invalid number or certificate may immediately incur additional integration fees. Please carefully enter your number and certificate as described.
|
|
6281
6311
|
* @param {Object} body WhatsAppIntegrationRequest
|
|
6312
|
+
* @deprecated
|
|
6282
6313
|
*/
|
|
6283
6314
|
postConversationsMessagingIntegrationsWhatsapp(body) {
|
|
6284
6315
|
// verify the required parameter 'body' is set
|
|
@@ -6300,6 +6331,31 @@ class ConversationsApi {
|
|
|
6300
6331
|
);
|
|
6301
6332
|
}
|
|
6302
6333
|
|
|
6334
|
+
/**
|
|
6335
|
+
* Create a WhatsApp Integration using the WhatsApp embedded signup flow
|
|
6336
|
+
* Use the access token returned from the embedded signup flow to obtain a list of available phone numbers that can be associated with the created integration. The returned WhatsApp integration will initially have a createStatus of Initiated until the list of available phone numbers can be obtained from the provider. Please run a GET on the created integration until it returns a createStatus of Completed, and the list of available phone numbers obtained from the provider. You can then specify one of the available phone numbers in the PATCH call on the integration to activate it.
|
|
6337
|
+
* @param {Object} body WhatsAppEmbeddedSignupIntegrationRequest
|
|
6338
|
+
*/
|
|
6339
|
+
postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(body) {
|
|
6340
|
+
// verify the required parameter 'body' is set
|
|
6341
|
+
if (body === undefined || body === null) {
|
|
6342
|
+
throw 'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsWhatsappEmbeddedsignup';
|
|
6343
|
+
}
|
|
6344
|
+
|
|
6345
|
+
return this.apiClient.callApi(
|
|
6346
|
+
'/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup',
|
|
6347
|
+
'POST',
|
|
6348
|
+
{ },
|
|
6349
|
+
{ },
|
|
6350
|
+
{ },
|
|
6351
|
+
{ },
|
|
6352
|
+
body,
|
|
6353
|
+
['PureCloud OAuth'],
|
|
6354
|
+
['application/json'],
|
|
6355
|
+
['application/json']
|
|
6356
|
+
);
|
|
6357
|
+
}
|
|
6358
|
+
|
|
6303
6359
|
/**
|
|
6304
6360
|
* Create a messaging setting
|
|
6305
6361
|
*
|
|
@@ -5,7 +5,7 @@ class JourneyApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Journey service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 182.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -447,6 +447,48 @@ class JourneyApi {
|
|
|
447
447
|
);
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
+
/**
|
|
451
|
+
* Send a ping.
|
|
452
|
+
*
|
|
453
|
+
* @param {String} deploymentId The ID of the deployment sending the ping.
|
|
454
|
+
* @param {String} customerCookieId ID of the customer associated with the ping.
|
|
455
|
+
* @param {String} sessionId UUID of the customer session. Use the same Session Id for all pings, AppEvents and ActionEvents in the session
|
|
456
|
+
* @param {Object} opts Optional parameters
|
|
457
|
+
* @param {String} opts.dl Document Location: 1) Web Page URL if overridden or URL fragment identifier (window.location.hash). OR 2) Application screen name that the ping request was sent from in the app. e.g. 'home' or 'help. Pings without this parameter will not return actions.
|
|
458
|
+
* @param {String} opts.dt Document Title. A human readable name for the page or screen
|
|
459
|
+
* @param {String} opts.appNamespace Namespace of the application (e.g. com.genesys.bancodinero). Used for domain filtering in application sessions
|
|
460
|
+
* @param {Number} opts.sinceLastBeaconMilliseconds How long (milliseconds) since the last app event or beacon was sent. The response may return a pollInternvalMilliseconds to reduce the frequency of pings.
|
|
461
|
+
*/
|
|
462
|
+
getJourneyDeploymentCustomerPing(deploymentId, customerCookieId, sessionId, opts) {
|
|
463
|
+
opts = opts || {};
|
|
464
|
+
|
|
465
|
+
// verify the required parameter 'deploymentId' is set
|
|
466
|
+
if (deploymentId === undefined || deploymentId === null) {
|
|
467
|
+
throw 'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';
|
|
468
|
+
}
|
|
469
|
+
// verify the required parameter 'customerCookieId' is set
|
|
470
|
+
if (customerCookieId === undefined || customerCookieId === null) {
|
|
471
|
+
throw 'Missing the required parameter "customerCookieId" when calling getJourneyDeploymentCustomerPing';
|
|
472
|
+
}
|
|
473
|
+
// verify the required parameter 'sessionId' is set
|
|
474
|
+
if (sessionId === undefined || sessionId === null) {
|
|
475
|
+
throw 'Missing the required parameter "sessionId" when calling getJourneyDeploymentCustomerPing';
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
return this.apiClient.callApi(
|
|
479
|
+
'/api/v2/journey/deployments/{deploymentId}/customers/{customerCookieId}/ping',
|
|
480
|
+
'GET',
|
|
481
|
+
{ 'deploymentId': deploymentId,'customerCookieId': customerCookieId },
|
|
482
|
+
{ 'dl': opts['dl'],'dt': opts['dt'],'appNamespace': opts['appNamespace'],'sessionId': sessionId,'sinceLastBeaconMilliseconds': opts['sinceLastBeaconMilliseconds'] },
|
|
483
|
+
{ },
|
|
484
|
+
{ },
|
|
485
|
+
null,
|
|
486
|
+
['PureCloud OAuth'],
|
|
487
|
+
['application/json'],
|
|
488
|
+
['application/json']
|
|
489
|
+
);
|
|
490
|
+
}
|
|
491
|
+
|
|
450
492
|
/**
|
|
451
493
|
* Retrieve a single outcome.
|
|
452
494
|
*
|
|
@@ -1036,13 +1078,42 @@ class JourneyApi {
|
|
|
1036
1078
|
);
|
|
1037
1079
|
}
|
|
1038
1080
|
|
|
1081
|
+
/**
|
|
1082
|
+
* Sends an action event, which is used for changing the state of actions that have been offered to the user.
|
|
1083
|
+
*
|
|
1084
|
+
* @param {String} deploymentId The ID of the deployment sending the beacon.
|
|
1085
|
+
* @param {Object} body
|
|
1086
|
+
*/
|
|
1087
|
+
postJourneyDeploymentActionevent(deploymentId, body) {
|
|
1088
|
+
// verify the required parameter 'deploymentId' is set
|
|
1089
|
+
if (deploymentId === undefined || deploymentId === null) {
|
|
1090
|
+
throw 'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';
|
|
1091
|
+
}
|
|
1092
|
+
// verify the required parameter 'body' is set
|
|
1093
|
+
if (body === undefined || body === null) {
|
|
1094
|
+
throw 'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
return this.apiClient.callApi(
|
|
1098
|
+
'/api/v2/journey/deployments/{deploymentId}/actionevent',
|
|
1099
|
+
'POST',
|
|
1100
|
+
{ 'deploymentId': deploymentId },
|
|
1101
|
+
{ },
|
|
1102
|
+
{ },
|
|
1103
|
+
{ },
|
|
1104
|
+
body,
|
|
1105
|
+
['PureCloud OAuth'],
|
|
1106
|
+
['application/json'],
|
|
1107
|
+
['application/json']
|
|
1108
|
+
);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1039
1111
|
/**
|
|
1040
1112
|
* Send a journey app event, used for tracking customer activity on an application.
|
|
1041
1113
|
*
|
|
1042
1114
|
* @param {String} deploymentId The ID of the deployment sending the app event.
|
|
1043
1115
|
* @param {Object} opts Optional parameters
|
|
1044
1116
|
* @param {Object} opts.body
|
|
1045
|
-
* postJourneyDeploymentAppevents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1046
1117
|
*/
|
|
1047
1118
|
postJourneyDeploymentAppevents(deploymentId, opts) {
|
|
1048
1119
|
opts = opts || {};
|