@livechat/platform-workflows 0.1.2 → 0.1.4
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/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +183 -184
- package/dist/index.mjs +183 -183
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -3187,7 +3187,7 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
3187
3187
|
key: "BIGCOMMERCE_CREATE_BLOG_POST" /* CreateBlogPost */,
|
|
3188
3188
|
type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
|
|
3189
3189
|
url: `${getWorkflowsEnv(
|
|
3190
|
-
"
|
|
3190
|
+
"workflowsFunctionsUrl"
|
|
3191
3191
|
)}/functions/create-bigcommerce-blog-post`,
|
|
3192
3192
|
customization: {
|
|
3193
3193
|
provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
|
|
@@ -3311,7 +3311,7 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
3311
3311
|
key: "BIGCOMMERCE_CREATE_CUSTOMER" /* CreateCustomer */,
|
|
3312
3312
|
type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
|
|
3313
3313
|
url: `${getWorkflowsEnv(
|
|
3314
|
-
"
|
|
3314
|
+
"workflowsFunctionsUrl"
|
|
3315
3315
|
)}/functions/create-bigcommerce-customer`,
|
|
3316
3316
|
customization: {
|
|
3317
3317
|
provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
|
|
@@ -3345,7 +3345,7 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
3345
3345
|
key: "BIGCOMMERCE_UPDATE_CUSTOMER" /* UpdateCustomer */,
|
|
3346
3346
|
type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
|
|
3347
3347
|
url: `${getWorkflowsEnv(
|
|
3348
|
-
"
|
|
3348
|
+
"workflowsFunctionsUrl"
|
|
3349
3349
|
)}/functions/update-bigcommerce-customer`,
|
|
3350
3350
|
customization: {
|
|
3351
3351
|
provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
|
|
@@ -3377,7 +3377,7 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
3377
3377
|
key: "BIGCOMMERCE_CREATE_PRODUCT" /* CreateProduct */,
|
|
3378
3378
|
type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
|
|
3379
3379
|
url: `${getWorkflowsEnv(
|
|
3380
|
-
"
|
|
3380
|
+
"workflowsFunctionsUrl"
|
|
3381
3381
|
)}/functions/create-bigcommerce-product`,
|
|
3382
3382
|
customization: {
|
|
3383
3383
|
provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
|
|
@@ -3408,7 +3408,7 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
3408
3408
|
key: "BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS" /* CreateCustomerAddress */,
|
|
3409
3409
|
type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
|
|
3410
3410
|
url: `${getWorkflowsEnv(
|
|
3411
|
-
"
|
|
3411
|
+
"workflowsFunctionsUrl"
|
|
3412
3412
|
)}/functions/create-bigcommerce-customer-address`,
|
|
3413
3413
|
customization: {
|
|
3414
3414
|
provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
|
|
@@ -3454,7 +3454,7 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
3454
3454
|
key: "BIGCOMMERCE_GET_CUSTOMER" /* GetCustomer */,
|
|
3455
3455
|
type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
|
|
3456
3456
|
url: `${getWorkflowsEnv(
|
|
3457
|
-
"
|
|
3457
|
+
"workflowsFunctionsUrl"
|
|
3458
3458
|
)}/functions/get-bigcommerce-customer`,
|
|
3459
3459
|
customization: {
|
|
3460
3460
|
provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
|
|
@@ -3488,7 +3488,7 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
3488
3488
|
key: "BIGCOMMERCE_GET_CUSTOMER_ADDRESSES" /* GetCustomerAddresses */,
|
|
3489
3489
|
type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
|
|
3490
3490
|
url: `${getWorkflowsEnv(
|
|
3491
|
-
"
|
|
3491
|
+
"workflowsFunctionsUrl"
|
|
3492
3492
|
)}/functions/get-bigcommerce-customer-address`,
|
|
3493
3493
|
customization: {
|
|
3494
3494
|
provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
|
|
@@ -3521,7 +3521,7 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
3521
3521
|
key: "BIGCOMMERCE_GET_PRODUCTS" /* GetProducts */,
|
|
3522
3522
|
type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
|
|
3523
3523
|
url: `${getWorkflowsEnv(
|
|
3524
|
-
"
|
|
3524
|
+
"workflowsFunctionsUrl"
|
|
3525
3525
|
)}/functions/get-bigcommerce-products`,
|
|
3526
3526
|
customization: {
|
|
3527
3527
|
provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
|
|
@@ -3548,7 +3548,7 @@ var bigCommerceTaskTemplates = () => ({
|
|
|
3548
3548
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3549
3549
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3550
3550
|
uri: `${getWorkflowsEnv(
|
|
3551
|
-
"
|
|
3551
|
+
"workflowsFunctionsUrl"
|
|
3552
3552
|
)}/functions/create-bigcommerce-blog-post`,
|
|
3553
3553
|
method: "POST",
|
|
3554
3554
|
body: {
|
|
@@ -3569,7 +3569,7 @@ var bigCommerceTaskTemplates = () => ({
|
|
|
3569
3569
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3570
3570
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3571
3571
|
uri: `${getWorkflowsEnv(
|
|
3572
|
-
"
|
|
3572
|
+
"workflowsFunctionsUrl"
|
|
3573
3573
|
)}/functions/create-bigcommerce-customer`,
|
|
3574
3574
|
method: "POST",
|
|
3575
3575
|
body: {
|
|
@@ -3591,7 +3591,7 @@ var bigCommerceTaskTemplates = () => ({
|
|
|
3591
3591
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3592
3592
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3593
3593
|
uri: `${getWorkflowsEnv(
|
|
3594
|
-
"
|
|
3594
|
+
"workflowsFunctionsUrl"
|
|
3595
3595
|
)}/functions/update-bigcommerce-customer`,
|
|
3596
3596
|
method: "PATCH",
|
|
3597
3597
|
body: {
|
|
@@ -3611,7 +3611,7 @@ var bigCommerceTaskTemplates = () => ({
|
|
|
3611
3611
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3612
3612
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3613
3613
|
uri: `${getWorkflowsEnv(
|
|
3614
|
-
"
|
|
3614
|
+
"workflowsFunctionsUrl"
|
|
3615
3615
|
)}/functions/create-bigcommerce-product`,
|
|
3616
3616
|
method: "POST",
|
|
3617
3617
|
body: {
|
|
@@ -3634,7 +3634,7 @@ var bigCommerceTaskTemplates = () => ({
|
|
|
3634
3634
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3635
3635
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3636
3636
|
uri: `${getWorkflowsEnv(
|
|
3637
|
-
"
|
|
3637
|
+
"workflowsFunctionsUrl"
|
|
3638
3638
|
)}/functions/create-bigcommerce-customer-address`,
|
|
3639
3639
|
method: "POST",
|
|
3640
3640
|
body: {
|
|
@@ -3664,7 +3664,7 @@ var bigCommerceTaskTemplates = () => ({
|
|
|
3664
3664
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3665
3665
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3666
3666
|
uri: `${getWorkflowsEnv(
|
|
3667
|
-
"
|
|
3667
|
+
"workflowsFunctionsUrl"
|
|
3668
3668
|
)}/functions/get-bigcommerce-customer?customer_id=#{customer_id}&customer_email=#{customer_email}`,
|
|
3669
3669
|
method: "GET",
|
|
3670
3670
|
headers: {
|
|
@@ -3681,7 +3681,7 @@ var bigCommerceTaskTemplates = () => ({
|
|
|
3681
3681
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3682
3682
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3683
3683
|
uri: `${getWorkflowsEnv(
|
|
3684
|
-
"
|
|
3684
|
+
"workflowsFunctionsUrl"
|
|
3685
3685
|
)}/functions/get-bigcommerce-customer-addresses?customer_id=#{customer_id}`,
|
|
3686
3686
|
method: "GET",
|
|
3687
3687
|
headers: {
|
|
@@ -3698,7 +3698,7 @@ var bigCommerceTaskTemplates = () => ({
|
|
|
3698
3698
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3699
3699
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3700
3700
|
uri: `${getWorkflowsEnv(
|
|
3701
|
-
"
|
|
3701
|
+
"workflowsFunctionsUrl"
|
|
3702
3702
|
)}/functions/get-bigcommerce-products?limit=200&page=1`,
|
|
3703
3703
|
method: "GET",
|
|
3704
3704
|
headers: {
|
|
@@ -4185,7 +4185,7 @@ var helpdeskTaskConfigs = () => ({
|
|
|
4185
4185
|
key: "HELPDESK_ADD_FOLLOWERS_TO_TICKET" /* AddFollowersToTicket */,
|
|
4186
4186
|
type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
|
|
4187
4187
|
url: `${getWorkflowsEnv(
|
|
4188
|
-
"
|
|
4188
|
+
"workflowsFunctionsUrl"
|
|
4189
4189
|
)}/functions/add-followers-to-helpdesk-ticket`,
|
|
4190
4190
|
customization: {
|
|
4191
4191
|
provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
|
|
@@ -4228,7 +4228,7 @@ var helpdeskTaskConfigs = () => ({
|
|
|
4228
4228
|
key: "HELPDESK_ADD_TAGS_TO_TICKET" /* AddTagsToTicket */,
|
|
4229
4229
|
type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
|
|
4230
4230
|
url: `${getWorkflowsEnv(
|
|
4231
|
-
"
|
|
4231
|
+
"workflowsFunctionsUrl"
|
|
4232
4232
|
)}/functions/add-tags-to-helpdesk-ticket`,
|
|
4233
4233
|
customization: {
|
|
4234
4234
|
provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
|
|
@@ -4270,7 +4270,7 @@ var helpdeskTaskConfigs = () => ({
|
|
|
4270
4270
|
key: "HELPDESK_CREATE_TICKET" /* CreateTicket */,
|
|
4271
4271
|
type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
|
|
4272
4272
|
url: `${getWorkflowsEnv(
|
|
4273
|
-
"
|
|
4273
|
+
"workflowsFunctionsUrl"
|
|
4274
4274
|
)}/functions/create-helpdesk-ticket`,
|
|
4275
4275
|
customization: {
|
|
4276
4276
|
provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
|
|
@@ -4292,7 +4292,7 @@ var helpdeskTaskConfigs = () => ({
|
|
|
4292
4292
|
type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
|
|
4293
4293
|
key: "HELPDESK_CREATE_TRANSACTION" /* CreateTransaction */,
|
|
4294
4294
|
url: `${getWorkflowsEnv(
|
|
4295
|
-
"
|
|
4295
|
+
"workflowsFunctionsUrl"
|
|
4296
4296
|
)}/functions/create-helpdesk-transaction`,
|
|
4297
4297
|
customization: {
|
|
4298
4298
|
provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
|
|
@@ -4377,7 +4377,7 @@ var helpdeskTaskConfigs = () => ({
|
|
|
4377
4377
|
["HELPDESK_FIND_TICKET" /* FindTicket */]: {
|
|
4378
4378
|
key: "HELPDESK_FIND_TICKET" /* FindTicket */,
|
|
4379
4379
|
type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
|
|
4380
|
-
url: `${getWorkflowsEnv("
|
|
4380
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/find-helpdesk-ticket`,
|
|
4381
4381
|
customization: {
|
|
4382
4382
|
provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
|
|
4383
4383
|
product: import_developer_studio_api6.IntegrationDisplayNames.HelpDesk,
|
|
@@ -4402,7 +4402,7 @@ var helpdeskTaskConfigs = () => ({
|
|
|
4402
4402
|
key: "HELPDESK_UPDATE_TICKET" /* UpdateTicket */,
|
|
4403
4403
|
type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
|
|
4404
4404
|
url: `${getWorkflowsEnv(
|
|
4405
|
-
"
|
|
4405
|
+
"workflowsFunctionsUrl"
|
|
4406
4406
|
)}/functions/update-helpdesk-ticket`,
|
|
4407
4407
|
customization: {
|
|
4408
4408
|
provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
|
|
@@ -4439,7 +4439,7 @@ var helpdeskTaskTemplates = () => ({
|
|
|
4439
4439
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4440
4440
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4441
4441
|
uri: `${getWorkflowsEnv(
|
|
4442
|
-
"
|
|
4442
|
+
"workflowsFunctionsUrl"
|
|
4443
4443
|
)}/functions/create-helpdesk-ticket`,
|
|
4444
4444
|
method: "POST",
|
|
4445
4445
|
body: {
|
|
@@ -4465,7 +4465,7 @@ var helpdeskTaskTemplates = () => ({
|
|
|
4465
4465
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4466
4466
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4467
4467
|
uri: `${getWorkflowsEnv(
|
|
4468
|
-
"
|
|
4468
|
+
"workflowsFunctionsUrl"
|
|
4469
4469
|
)}/functions/update-helpdesk-ticket?id=#{ticket_id}`,
|
|
4470
4470
|
method: "PATCH",
|
|
4471
4471
|
headers: {
|
|
@@ -4481,7 +4481,7 @@ var helpdeskTaskTemplates = () => ({
|
|
|
4481
4481
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4482
4482
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4483
4483
|
uri: `${getWorkflowsEnv(
|
|
4484
|
-
"
|
|
4484
|
+
"workflowsFunctionsUrl"
|
|
4485
4485
|
)}/functions/add-followers-to-helpdesk-ticket?id=#{ticket_id}`,
|
|
4486
4486
|
method: "POST",
|
|
4487
4487
|
body: {
|
|
@@ -4500,7 +4500,7 @@ var helpdeskTaskTemplates = () => ({
|
|
|
4500
4500
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4501
4501
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4502
4502
|
uri: `${getWorkflowsEnv(
|
|
4503
|
-
"
|
|
4503
|
+
"workflowsFunctionsUrl"
|
|
4504
4504
|
)}/functions/add-tags-to-helpdesk-ticket?id=#{ticket_id}`,
|
|
4505
4505
|
method: "POST",
|
|
4506
4506
|
body: {
|
|
@@ -4519,7 +4519,7 @@ var helpdeskTaskTemplates = () => ({
|
|
|
4519
4519
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4520
4520
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4521
4521
|
uri: `${getWorkflowsEnv(
|
|
4522
|
-
"
|
|
4522
|
+
"workflowsFunctionsUrl"
|
|
4523
4523
|
)}/functions/create-helpdesk-transaction`,
|
|
4524
4524
|
method: "POST",
|
|
4525
4525
|
body: {
|
|
@@ -4539,7 +4539,7 @@ var helpdeskTaskTemplates = () => ({
|
|
|
4539
4539
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4540
4540
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4541
4541
|
uri: `${getWorkflowsEnv(
|
|
4542
|
-
"
|
|
4542
|
+
"workflowsFunctionsUrl"
|
|
4543
4543
|
)}/functions/find-helpdesk-ticket?id=#{ticket_id}`,
|
|
4544
4544
|
method: "GET",
|
|
4545
4545
|
headers: {
|
|
@@ -4821,7 +4821,7 @@ var hubspotTaskConfigs = () => ({
|
|
|
4821
4821
|
key: "HUBSPOT_CREATE_CONTACT" /* CreateContact */,
|
|
4822
4822
|
type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
|
|
4823
4823
|
url: `${getWorkflowsEnv(
|
|
4824
|
-
"
|
|
4824
|
+
"workflowsFunctionsUrl"
|
|
4825
4825
|
)}/functions/create-hubspot-contact`,
|
|
4826
4826
|
customization: {
|
|
4827
4827
|
provider: import_developer_studio_api7.IntegrationNames.HubSpot,
|
|
@@ -4846,7 +4846,7 @@ var hubspotTaskConfigs = () => ({
|
|
|
4846
4846
|
// [HubSpotTaskNames.DeleteContact]: {
|
|
4847
4847
|
// key: HubSpotTaskNames.DeleteContact,
|
|
4848
4848
|
// type: WorkflowDefinitionTaskType.http,
|
|
4849
|
-
// url: `${getWorkflowsEnv("
|
|
4849
|
+
// url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/delete-hubspot-contact`,
|
|
4850
4850
|
// customization: {
|
|
4851
4851
|
// provider: IntegrationNames.HubSpot,
|
|
4852
4852
|
// product: IntegrationDisplayNames.HubSpot,
|
|
@@ -4870,7 +4870,7 @@ var hubspotTaskConfigs = () => ({
|
|
|
4870
4870
|
["HUBSPOT_GET_CONTACT" /* GetContact */]: {
|
|
4871
4871
|
key: "HUBSPOT_GET_CONTACT" /* GetContact */,
|
|
4872
4872
|
type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
|
|
4873
|
-
url: `${getWorkflowsEnv("
|
|
4873
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/get-hubspot-contact`,
|
|
4874
4874
|
customization: {
|
|
4875
4875
|
provider: import_developer_studio_api7.IntegrationNames.HubSpot,
|
|
4876
4876
|
product: import_developer_studio_api7.IntegrationDisplayNames.HubSpot,
|
|
@@ -4899,7 +4899,7 @@ var hubspotTaskConfigs = () => ({
|
|
|
4899
4899
|
key: "HUBSPOT_UPDATE_CONTACT" /* UpdateContact */,
|
|
4900
4900
|
type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
|
|
4901
4901
|
url: `${getWorkflowsEnv(
|
|
4902
|
-
"
|
|
4902
|
+
"workflowsFunctionsUrl"
|
|
4903
4903
|
)}/functions/update-hubspot-contact`,
|
|
4904
4904
|
customization: {
|
|
4905
4905
|
provider: import_developer_studio_api7.IntegrationNames.HubSpot,
|
|
@@ -4940,7 +4940,7 @@ var hubspotTaskTemplates = () => ({
|
|
|
4940
4940
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4941
4941
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4942
4942
|
uri: `${getWorkflowsEnv(
|
|
4943
|
-
"
|
|
4943
|
+
"workflowsFunctionsUrl"
|
|
4944
4944
|
)}/functions/create-hubspot-contact`,
|
|
4945
4945
|
method: "POST",
|
|
4946
4946
|
body: {
|
|
@@ -4965,7 +4965,7 @@ var hubspotTaskTemplates = () => ({
|
|
|
4965
4965
|
// ...workflowHttpTask.inputParameters,
|
|
4966
4966
|
// http_request: {
|
|
4967
4967
|
// ...workflowHttpTask.inputParameters.http_request,
|
|
4968
|
-
// uri: `${getWorkflowsEnv("
|
|
4968
|
+
// uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/delete-hubspot-contact?contactId=#{contactId}`,
|
|
4969
4969
|
// method: 'DELETE',
|
|
4970
4970
|
// headers: {
|
|
4971
4971
|
// Accept: 'application/json',
|
|
@@ -4980,7 +4980,7 @@ var hubspotTaskTemplates = () => ({
|
|
|
4980
4980
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4981
4981
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4982
4982
|
uri: `${getWorkflowsEnv(
|
|
4983
|
-
"
|
|
4983
|
+
"workflowsFunctionsUrl"
|
|
4984
4984
|
)}/functions/get-hubspot-contact?contactId=#{contactId}`,
|
|
4985
4985
|
method: "GET",
|
|
4986
4986
|
headers: {
|
|
@@ -4996,7 +4996,7 @@ var hubspotTaskTemplates = () => ({
|
|
|
4996
4996
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4997
4997
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4998
4998
|
uri: `${getWorkflowsEnv(
|
|
4999
|
-
"
|
|
4999
|
+
"workflowsFunctionsUrl"
|
|
5000
5000
|
)}/functions/update-hubspot-contact?contactId=#{contactId}`,
|
|
5001
5001
|
method: "PATCH",
|
|
5002
5002
|
body: {
|
|
@@ -5660,7 +5660,7 @@ var livechatTaskConfigs = () => ({
|
|
|
5660
5660
|
key: "LIVECHAT_TRANSFER_CHAT" /* TransferChat */,
|
|
5661
5661
|
type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
|
|
5662
5662
|
url: `${getWorkflowsEnv(
|
|
5663
|
-
"
|
|
5663
|
+
"workflowsFunctionsUrl"
|
|
5664
5664
|
)}/functions/transfer-livechat-chat`,
|
|
5665
5665
|
customization: {
|
|
5666
5666
|
provider: import_developer_studio_api8.IntegrationNames.LiveChat,
|
|
@@ -5729,7 +5729,7 @@ var livechatTaskConfigs = () => ({
|
|
|
5729
5729
|
["LIVECHAT_TAG_CHAT" /* TagChat */]: {
|
|
5730
5730
|
key: "LIVECHAT_TAG_CHAT" /* TagChat */,
|
|
5731
5731
|
type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
|
|
5732
|
-
url: `${getWorkflowsEnv("
|
|
5732
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/tag-livechat-chat`,
|
|
5733
5733
|
customization: {
|
|
5734
5734
|
provider: import_developer_studio_api8.IntegrationNames.LiveChat,
|
|
5735
5735
|
product: import_developer_studio_api8.IntegrationDisplayNames.LiveChat,
|
|
@@ -5761,7 +5761,7 @@ var livechatTaskConfigs = () => ({
|
|
|
5761
5761
|
key: "LIVECHAT_CHAT_TRANSCRIPT" /* GetChatTranscript */,
|
|
5762
5762
|
type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
|
|
5763
5763
|
url: `${getWorkflowsEnv(
|
|
5764
|
-
"
|
|
5764
|
+
"workflowsFunctionsUrl"
|
|
5765
5765
|
)}/functions/get-livechat-chat-transcript`,
|
|
5766
5766
|
customization: {
|
|
5767
5767
|
provider: import_developer_studio_api8.IntegrationNames.LiveChat,
|
|
@@ -5808,7 +5808,7 @@ var livechatTaskConfigs = () => ({
|
|
|
5808
5808
|
key: "LIVECHAT_SEND_MESSAGE" /* SendMessage */,
|
|
5809
5809
|
type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
|
|
5810
5810
|
url: `${getWorkflowsEnv(
|
|
5811
|
-
"
|
|
5811
|
+
"workflowsFunctionsUrl"
|
|
5812
5812
|
)}/functions/send-livechat-agent-message`,
|
|
5813
5813
|
customization: {
|
|
5814
5814
|
provider: import_developer_studio_api8.IntegrationNames.LiveChat,
|
|
@@ -5846,7 +5846,7 @@ var livechatTaskConfigs = () => ({
|
|
|
5846
5846
|
key: "LIVECHAT_SUPERVISE_CHAT" /* SuperviseChat */,
|
|
5847
5847
|
type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
|
|
5848
5848
|
url: `${getWorkflowsEnv(
|
|
5849
|
-
"
|
|
5849
|
+
"workflowsFunctionsUrl"
|
|
5850
5850
|
)}/functions/supervise-livechat-chat`,
|
|
5851
5851
|
customization: {
|
|
5852
5852
|
provider: import_developer_studio_api8.IntegrationNames.LiveChat,
|
|
@@ -5877,7 +5877,7 @@ var livechatTaskTemplates = () => ({
|
|
|
5877
5877
|
taskReferenceName: "livechat_tag_chat",
|
|
5878
5878
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
5879
5879
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
5880
|
-
uri: `${getWorkflowsEnv("
|
|
5880
|
+
uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/tag-livechat-chat`,
|
|
5881
5881
|
method: "POST",
|
|
5882
5882
|
body: {
|
|
5883
5883
|
chat_id: "#{chat_id}",
|
|
@@ -5897,7 +5897,7 @@ var livechatTaskTemplates = () => ({
|
|
|
5897
5897
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
5898
5898
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
5899
5899
|
uri: `${getWorkflowsEnv(
|
|
5900
|
-
"
|
|
5900
|
+
"workflowsFunctionsUrl"
|
|
5901
5901
|
)}/functions/transfer-livechat-chat`,
|
|
5902
5902
|
method: "POST",
|
|
5903
5903
|
body: {
|
|
@@ -5918,7 +5918,7 @@ var livechatTaskTemplates = () => ({
|
|
|
5918
5918
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
5919
5919
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
5920
5920
|
uri: `${getWorkflowsEnv(
|
|
5921
|
-
"
|
|
5921
|
+
"workflowsFunctionsUrl"
|
|
5922
5922
|
)}/functions/get-livechat-chat-transcript?chat_id=#{chat_id}`,
|
|
5923
5923
|
method: "GET",
|
|
5924
5924
|
headers: {
|
|
@@ -5934,7 +5934,7 @@ var livechatTaskTemplates = () => ({
|
|
|
5934
5934
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
5935
5935
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
5936
5936
|
uri: `${getWorkflowsEnv(
|
|
5937
|
-
"
|
|
5937
|
+
"workflowsFunctionsUrl"
|
|
5938
5938
|
)}/functions/send-livechat-agent-message`,
|
|
5939
5939
|
method: "POST",
|
|
5940
5940
|
body: {
|
|
@@ -5955,7 +5955,7 @@ var livechatTaskTemplates = () => ({
|
|
|
5955
5955
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
5956
5956
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
5957
5957
|
uri: `${getWorkflowsEnv(
|
|
5958
|
-
"
|
|
5958
|
+
"workflowsFunctionsUrl"
|
|
5959
5959
|
)}/functions/supervise-livechat-chat`,
|
|
5960
5960
|
method: "POST",
|
|
5961
5961
|
body: {
|
|
@@ -6440,7 +6440,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6440
6440
|
key: "MAILCHIMP_ADD_SUBSCRIBER" /* AddSubscriber */,
|
|
6441
6441
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6442
6442
|
url: `${getWorkflowsEnv(
|
|
6443
|
-
"
|
|
6443
|
+
"workflowsFunctionsUrl"
|
|
6444
6444
|
)}/functions/add-mailchimp-subscriber`,
|
|
6445
6445
|
customization: {
|
|
6446
6446
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6481,7 +6481,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6481
6481
|
key: "MAILCHIMP_ADD_CAMPAIGN" /* AddCampaign */,
|
|
6482
6482
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6483
6483
|
url: `${getWorkflowsEnv(
|
|
6484
|
-
"
|
|
6484
|
+
"workflowsFunctionsUrl"
|
|
6485
6485
|
)}/functions/add-mailchimp-campaign`,
|
|
6486
6486
|
customization: {
|
|
6487
6487
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6524,7 +6524,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6524
6524
|
key: "MAILCHIMP_SEND_CAMPAIGN" /* SendCampaign */,
|
|
6525
6525
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6526
6526
|
url: `${getWorkflowsEnv(
|
|
6527
|
-
"
|
|
6527
|
+
"workflowsFunctionsUrl"
|
|
6528
6528
|
)}/functions/send-mailchimp-campaign`,
|
|
6529
6529
|
customization: {
|
|
6530
6530
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6553,7 +6553,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6553
6553
|
key: "MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER" /* AddOrUpdateSubscriber */,
|
|
6554
6554
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6555
6555
|
url: `${getWorkflowsEnv(
|
|
6556
|
-
"
|
|
6556
|
+
"workflowsFunctionsUrl"
|
|
6557
6557
|
)}/functions/add-or-update-mailchimp-subscriber`,
|
|
6558
6558
|
customization: {
|
|
6559
6559
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6599,7 +6599,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6599
6599
|
key: "MAILCHIMP_UPDATE_SUBSCRIBER" /* UpdateSubscriber */,
|
|
6600
6600
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6601
6601
|
url: `${getWorkflowsEnv(
|
|
6602
|
-
"
|
|
6602
|
+
"workflowsFunctionsUrl"
|
|
6603
6603
|
)}/functions/update-mailchimp-subscriber`,
|
|
6604
6604
|
customization: {
|
|
6605
6605
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6645,7 +6645,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6645
6645
|
key: "MAILCHIMP_ARCHIVE_SUBSCRIBER" /* ArchiveSubscriber */,
|
|
6646
6646
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6647
6647
|
url: `${getWorkflowsEnv(
|
|
6648
|
-
"
|
|
6648
|
+
"workflowsFunctionsUrl"
|
|
6649
6649
|
)}/functions/archive-mailchimp-subscriber`,
|
|
6650
6650
|
customization: {
|
|
6651
6651
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6678,7 +6678,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6678
6678
|
key: "MAILCHIMP_DELETE_SUBSCRIBER" /* DeleteSubscriber */,
|
|
6679
6679
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6680
6680
|
url: `${getWorkflowsEnv(
|
|
6681
|
-
"
|
|
6681
|
+
"workflowsFunctionsUrl"
|
|
6682
6682
|
)}/functions/delete-mailchimp-subscriber`,
|
|
6683
6683
|
customization: {
|
|
6684
6684
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6711,7 +6711,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6711
6711
|
key: "MAILCHIMP_ADD_SUBSCRIBER_TAG" /* AddSubscriberTag */,
|
|
6712
6712
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6713
6713
|
url: `${getWorkflowsEnv(
|
|
6714
|
-
"
|
|
6714
|
+
"workflowsFunctionsUrl"
|
|
6715
6715
|
)}/functions/add-mailchimp-subscriber-tag`,
|
|
6716
6716
|
customization: {
|
|
6717
6717
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6749,7 +6749,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6749
6749
|
key: "MAILCHIMP_ADD_SUBSCRIBER_EVENT" /* AddSubscriberEvent */,
|
|
6750
6750
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6751
6751
|
url: `${getWorkflowsEnv(
|
|
6752
|
-
"
|
|
6752
|
+
"workflowsFunctionsUrl"
|
|
6753
6753
|
)}/functions/add-mailchimp-subscriber-event`,
|
|
6754
6754
|
customization: {
|
|
6755
6755
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6803,7 +6803,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6803
6803
|
key: "MAILCHIMP_ADD_SUBSCRIBER_NOTE" /* AddSubscriberNote */,
|
|
6804
6804
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6805
6805
|
url: `${getWorkflowsEnv(
|
|
6806
|
-
"
|
|
6806
|
+
"workflowsFunctionsUrl"
|
|
6807
6807
|
)}/functions/add-mailchimp-subscriber-note`,
|
|
6808
6808
|
customization: {
|
|
6809
6809
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6841,7 +6841,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6841
6841
|
key: "MAILCHIMP_DELETE_SUBSCRIBER_TAG" /* DeleteSubscriberTag */,
|
|
6842
6842
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6843
6843
|
url: `${getWorkflowsEnv(
|
|
6844
|
-
"
|
|
6844
|
+
"workflowsFunctionsUrl"
|
|
6845
6845
|
)}/functions/delete-mailchimp-subscriber-tag`,
|
|
6846
6846
|
customization: {
|
|
6847
6847
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6878,7 +6878,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6878
6878
|
key: "MAILCHIMP_GET_SUBSCRIBER_TAGS" /* GetSubscriberTags */,
|
|
6879
6879
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6880
6880
|
url: `${getWorkflowsEnv(
|
|
6881
|
-
"
|
|
6881
|
+
"workflowsFunctionsUrl"
|
|
6882
6882
|
)}/functions/get-mailchimp-subscriber-tags`,
|
|
6883
6883
|
customization: {
|
|
6884
6884
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -6941,7 +6941,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6941
6941
|
key: "MAILCHIMP_GET_SUBSCRIBER" /* GetSubscriber */,
|
|
6942
6942
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
6943
6943
|
url: `${getWorkflowsEnv(
|
|
6944
|
-
"
|
|
6944
|
+
"workflowsFunctionsUrl"
|
|
6945
6945
|
)}/functions/get-mailchimp-subscriber`,
|
|
6946
6946
|
customization: {
|
|
6947
6947
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -7114,7 +7114,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
7114
7114
|
key: "MAILCHIMP_GET_SUBSCRIBERS" /* GetSubscribers */,
|
|
7115
7115
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
7116
7116
|
url: `${getWorkflowsEnv(
|
|
7117
|
-
"
|
|
7117
|
+
"workflowsFunctionsUrl"
|
|
7118
7118
|
)}/functions/find-mailchimp-subscribers`,
|
|
7119
7119
|
customization: {
|
|
7120
7120
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -7289,7 +7289,7 @@ var mailchimpTaskConfigs = () => ({
|
|
|
7289
7289
|
key: "MAILCHIMP_FIND_CAMPAIGN" /* FindCampaign */,
|
|
7290
7290
|
type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
|
|
7291
7291
|
url: `${getWorkflowsEnv(
|
|
7292
|
-
"
|
|
7292
|
+
"workflowsFunctionsUrl"
|
|
7293
7293
|
)}/functions/find-mailchimp-campaign`,
|
|
7294
7294
|
customization: {
|
|
7295
7295
|
provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
|
|
@@ -7449,7 +7449,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7449
7449
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7450
7450
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7451
7451
|
uri: `${getWorkflowsEnv(
|
|
7452
|
-
"
|
|
7452
|
+
"workflowsFunctionsUrl"
|
|
7453
7453
|
)}/functions/add-mailchimp-subscriber`,
|
|
7454
7454
|
method: "POST",
|
|
7455
7455
|
body: {
|
|
@@ -7471,7 +7471,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7471
7471
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7472
7472
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7473
7473
|
uri: `${getWorkflowsEnv(
|
|
7474
|
-
"
|
|
7474
|
+
"workflowsFunctionsUrl"
|
|
7475
7475
|
)}/functions/add-mailchimp-campaign`,
|
|
7476
7476
|
method: "POST",
|
|
7477
7477
|
body: {
|
|
@@ -7504,7 +7504,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7504
7504
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7505
7505
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7506
7506
|
uri: `${getWorkflowsEnv(
|
|
7507
|
-
"
|
|
7507
|
+
"workflowsFunctionsUrl"
|
|
7508
7508
|
)}/functions/send-mailchimp-campaign`,
|
|
7509
7509
|
method: "POST",
|
|
7510
7510
|
body: {
|
|
@@ -7523,7 +7523,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7523
7523
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7524
7524
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7525
7525
|
uri: `${getWorkflowsEnv(
|
|
7526
|
-
"
|
|
7526
|
+
"workflowsFunctionsUrl"
|
|
7527
7527
|
)}/functions/add-or-update-mailchimp-subscriber`,
|
|
7528
7528
|
method: "POST",
|
|
7529
7529
|
body: {
|
|
@@ -7545,7 +7545,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7545
7545
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7546
7546
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7547
7547
|
uri: `${getWorkflowsEnv(
|
|
7548
|
-
"
|
|
7548
|
+
"workflowsFunctionsUrl"
|
|
7549
7549
|
)}/functions/update-mailchimp-subscriber`,
|
|
7550
7550
|
method: "POST",
|
|
7551
7551
|
body: {
|
|
@@ -7567,7 +7567,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7567
7567
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7568
7568
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7569
7569
|
uri: `${getWorkflowsEnv(
|
|
7570
|
-
"
|
|
7570
|
+
"workflowsFunctionsUrl"
|
|
7571
7571
|
)}/functions/archive-mailchimp-subscriber`,
|
|
7572
7572
|
method: "POST",
|
|
7573
7573
|
body: {
|
|
@@ -7587,7 +7587,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7587
7587
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7588
7588
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7589
7589
|
uri: `${getWorkflowsEnv(
|
|
7590
|
-
"
|
|
7590
|
+
"workflowsFunctionsUrl"
|
|
7591
7591
|
)}/functions/delete-mailchimp-subscriber`,
|
|
7592
7592
|
method: "POST",
|
|
7593
7593
|
body: {
|
|
@@ -7607,7 +7607,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7607
7607
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7608
7608
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7609
7609
|
uri: `${getWorkflowsEnv(
|
|
7610
|
-
"
|
|
7610
|
+
"workflowsFunctionsUrl"
|
|
7611
7611
|
)}/functions/add-mailchimp-subscriber-tag`,
|
|
7612
7612
|
method: "POST",
|
|
7613
7613
|
body: {
|
|
@@ -7628,7 +7628,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7628
7628
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7629
7629
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7630
7630
|
uri: `${getWorkflowsEnv(
|
|
7631
|
-
"
|
|
7631
|
+
"workflowsFunctionsUrl"
|
|
7632
7632
|
)}/functions/add-mailchimp-subscriber-event`,
|
|
7633
7633
|
method: "POST",
|
|
7634
7634
|
body: {
|
|
@@ -7649,7 +7649,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7649
7649
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7650
7650
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7651
7651
|
uri: `${getWorkflowsEnv(
|
|
7652
|
-
"
|
|
7652
|
+
"workflowsFunctionsUrl"
|
|
7653
7653
|
)}/functions/add-mailchimp-subscriber-note`,
|
|
7654
7654
|
method: "POST",
|
|
7655
7655
|
body: {
|
|
@@ -7670,7 +7670,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7670
7670
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7671
7671
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7672
7672
|
uri: `${getWorkflowsEnv(
|
|
7673
|
-
"
|
|
7673
|
+
"workflowsFunctionsUrl"
|
|
7674
7674
|
)}/functions/delete-mailchimp-subscriber-tag`,
|
|
7675
7675
|
method: "POST",
|
|
7676
7676
|
body: {
|
|
@@ -7691,7 +7691,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7691
7691
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7692
7692
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7693
7693
|
uri: `${getWorkflowsEnv(
|
|
7694
|
-
"
|
|
7694
|
+
"workflowsFunctionsUrl"
|
|
7695
7695
|
)}/functions/get-mailchimp-subscriber-tags?list_id=#{list_id}&email=#{email}`,
|
|
7696
7696
|
method: "GET",
|
|
7697
7697
|
body: {},
|
|
@@ -7708,7 +7708,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7708
7708
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7709
7709
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7710
7710
|
uri: `${getWorkflowsEnv(
|
|
7711
|
-
"
|
|
7711
|
+
"workflowsFunctionsUrl"
|
|
7712
7712
|
)}/functions/get-mailchimp-subscriber?list_id=#{list_id}&email=#{email}`,
|
|
7713
7713
|
method: "GET",
|
|
7714
7714
|
body: {},
|
|
@@ -7725,7 +7725,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7725
7725
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7726
7726
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7727
7727
|
uri: `${getWorkflowsEnv(
|
|
7728
|
-
"
|
|
7728
|
+
"workflowsFunctionsUrl"
|
|
7729
7729
|
)}/functions/find-mailchimp-subscribers?list_id=#{list_id}&query=#{query}`,
|
|
7730
7730
|
method: "GET",
|
|
7731
7731
|
body: {},
|
|
@@ -7742,7 +7742,7 @@ var mailchimpTaskTemplates = () => ({
|
|
|
7742
7742
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7743
7743
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7744
7744
|
uri: `${getWorkflowsEnv(
|
|
7745
|
-
"
|
|
7745
|
+
"workflowsFunctionsUrl"
|
|
7746
7746
|
)}/functions/find-mailchimp-campaign?campaign_id=#{campaign_id}`,
|
|
7747
7747
|
method: "POST",
|
|
7748
7748
|
body: {},
|
|
@@ -7860,7 +7860,7 @@ var openAiTaskConfigs = () => ({
|
|
|
7860
7860
|
key: "OPENAI_EXTRACT_ORDER_REQUEST" /* ExtractOrderRequest */,
|
|
7861
7861
|
type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
|
|
7862
7862
|
url: `${getWorkflowsEnv(
|
|
7863
|
-
"
|
|
7863
|
+
"workflowsFunctionsUrl"
|
|
7864
7864
|
)}/functions/extract-order-from-text`,
|
|
7865
7865
|
customization: {
|
|
7866
7866
|
provider: import_developer_studio_api10.IntegrationNames.OpenAI,
|
|
@@ -7950,7 +7950,7 @@ var openAiTaskConfigs = () => ({
|
|
|
7950
7950
|
key: "OPENAI_ANALYZE_TEXT_SENTIMENT" /* AnalyzeTextSentiment */,
|
|
7951
7951
|
type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
|
|
7952
7952
|
url: `${getWorkflowsEnv(
|
|
7953
|
-
"
|
|
7953
|
+
"workflowsFunctionsUrl"
|
|
7954
7954
|
)}/functions/analyze-text-sentiment`,
|
|
7955
7955
|
customization: {
|
|
7956
7956
|
provider: import_developer_studio_api10.IntegrationNames.OpenAI,
|
|
@@ -7985,7 +7985,7 @@ var openAiTaskConfigs = () => ({
|
|
|
7985
7985
|
["OPENAI_SUMMARIZE_TEXT" /* SummarizeText */]: {
|
|
7986
7986
|
key: "OPENAI_SUMMARIZE_TEXT" /* SummarizeText */,
|
|
7987
7987
|
type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
|
|
7988
|
-
url: `${getWorkflowsEnv("
|
|
7988
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/summarize-text`,
|
|
7989
7989
|
customization: {
|
|
7990
7990
|
provider: import_developer_studio_api10.IntegrationNames.OpenAI,
|
|
7991
7991
|
product: import_developer_studio_api10.IntegrationDisplayNames.OpenAI,
|
|
@@ -8019,7 +8019,7 @@ var openAiTaskConfigs = () => ({
|
|
|
8019
8019
|
["OPENAI_MODERATE_TEXT" /* ModerateText */]: {
|
|
8020
8020
|
key: "OPENAI_MODERATE_TEXT" /* ModerateText */,
|
|
8021
8021
|
type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
|
|
8022
|
-
url: `${getWorkflowsEnv("
|
|
8022
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/moderate-text`,
|
|
8023
8023
|
customization: {
|
|
8024
8024
|
provider: import_developer_studio_api10.IntegrationNames.OpenAI,
|
|
8025
8025
|
product: import_developer_studio_api10.IntegrationDisplayNames.OpenAI,
|
|
@@ -8052,7 +8052,7 @@ var openAiTaskConfigs = () => ({
|
|
|
8052
8052
|
["OPENAI_CATEGORIZE_TEXT" /* CategorizeText */]: {
|
|
8053
8053
|
key: "OPENAI_CATEGORIZE_TEXT" /* CategorizeText */,
|
|
8054
8054
|
type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
|
|
8055
|
-
url: `${getWorkflowsEnv("
|
|
8055
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/categorize-text`,
|
|
8056
8056
|
customization: {
|
|
8057
8057
|
provider: import_developer_studio_api10.IntegrationNames.OpenAI,
|
|
8058
8058
|
product: import_developer_studio_api10.IntegrationDisplayNames.OpenAI,
|
|
@@ -8099,7 +8099,7 @@ var openAiTaskTemplates = () => ({
|
|
|
8099
8099
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8100
8100
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8101
8101
|
uri: `${getWorkflowsEnv(
|
|
8102
|
-
"
|
|
8102
|
+
"workflowsFunctionsUrl"
|
|
8103
8103
|
)}/functions/extract-order-from-text`,
|
|
8104
8104
|
method: "POST",
|
|
8105
8105
|
body: {
|
|
@@ -8118,7 +8118,7 @@ var openAiTaskTemplates = () => ({
|
|
|
8118
8118
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8119
8119
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8120
8120
|
uri: `${getWorkflowsEnv(
|
|
8121
|
-
"
|
|
8121
|
+
"workflowsFunctionsUrl"
|
|
8122
8122
|
)}/functions/analyze-text-sentiment`,
|
|
8123
8123
|
method: "POST",
|
|
8124
8124
|
body: {
|
|
@@ -8136,7 +8136,7 @@ var openAiTaskTemplates = () => ({
|
|
|
8136
8136
|
taskReferenceName: "openai_summarize_text",
|
|
8137
8137
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8138
8138
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8139
|
-
uri: `${getWorkflowsEnv("
|
|
8139
|
+
uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/summarize-text`,
|
|
8140
8140
|
method: "POST",
|
|
8141
8141
|
body: {
|
|
8142
8142
|
text: "#{chat_transcript}"
|
|
@@ -8153,7 +8153,7 @@ var openAiTaskTemplates = () => ({
|
|
|
8153
8153
|
taskReferenceName: "openai_moderate_text",
|
|
8154
8154
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8155
8155
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8156
|
-
uri: `${getWorkflowsEnv("
|
|
8156
|
+
uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/moderate-text`,
|
|
8157
8157
|
method: "POST",
|
|
8158
8158
|
body: {
|
|
8159
8159
|
text: "#{chat_transcript}"
|
|
@@ -8170,7 +8170,7 @@ var openAiTaskTemplates = () => ({
|
|
|
8170
8170
|
taskReferenceName: "openai_categorize_text",
|
|
8171
8171
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8172
8172
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8173
|
-
uri: `${getWorkflowsEnv("
|
|
8173
|
+
uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/categorize-text`,
|
|
8174
8174
|
method: "POST",
|
|
8175
8175
|
body: {
|
|
8176
8176
|
text: "#{chat_transcript}"
|
|
@@ -8610,7 +8610,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8610
8610
|
key: "SHOPIFY_CREATE_CUSTOMER" /* CreateCustomer */,
|
|
8611
8611
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8612
8612
|
url: `${getWorkflowsEnv(
|
|
8613
|
-
"
|
|
8613
|
+
"workflowsFunctionsUrl"
|
|
8614
8614
|
)}/functions/create-shopify-customer`,
|
|
8615
8615
|
customization: {
|
|
8616
8616
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -8634,7 +8634,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8634
8634
|
["SHOPIFY_CREATE_ORDER" /* CreateOrder */]: {
|
|
8635
8635
|
key: "SHOPIFY_CREATE_ORDER" /* CreateOrder */,
|
|
8636
8636
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8637
|
-
url: `${getWorkflowsEnv("
|
|
8637
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/create-shopify-order`,
|
|
8638
8638
|
customization: {
|
|
8639
8639
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
8640
8640
|
product: import_developer_studio_api11.IntegrationDisplayNames.Shopify,
|
|
@@ -8657,7 +8657,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8657
8657
|
key: "SHOPIFY_CREATE_DRAFT_ORDER" /* CreateDraftOrder */,
|
|
8658
8658
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8659
8659
|
url: `${getWorkflowsEnv(
|
|
8660
|
-
"
|
|
8660
|
+
"workflowsFunctionsUrl"
|
|
8661
8661
|
)}/functions/create-shopify-draft-order`,
|
|
8662
8662
|
customization: {
|
|
8663
8663
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -8681,7 +8681,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8681
8681
|
key: "SHOPIFY_CREATE_PRODUCT" /* CreateProduct */,
|
|
8682
8682
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8683
8683
|
url: `${getWorkflowsEnv(
|
|
8684
|
-
"
|
|
8684
|
+
"workflowsFunctionsUrl"
|
|
8685
8685
|
)}/functions/create-shopify-product`,
|
|
8686
8686
|
customization: {
|
|
8687
8687
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -8705,7 +8705,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8705
8705
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8706
8706
|
key: "SHOPIFY_CREATE_PRODUCT_VARIANT" /* CreateProductVariant */,
|
|
8707
8707
|
url: `${getWorkflowsEnv(
|
|
8708
|
-
"
|
|
8708
|
+
"workflowsFunctionsUrl"
|
|
8709
8709
|
)}/functions/create-shopify-product-variant`,
|
|
8710
8710
|
customization: {
|
|
8711
8711
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -8728,7 +8728,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8728
8728
|
["SHOPIFY_GET_CUSTOMER" /* GetCustomer */]: {
|
|
8729
8729
|
key: "SHOPIFY_GET_CUSTOMER" /* GetCustomer */,
|
|
8730
8730
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8731
|
-
url: `${getWorkflowsEnv("
|
|
8731
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/get-shopify-customer`,
|
|
8732
8732
|
customization: {
|
|
8733
8733
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
8734
8734
|
product: import_developer_studio_api11.IntegrationDisplayNames.Shopify,
|
|
@@ -8757,7 +8757,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8757
8757
|
key: "SHOPIFY_GET_CUSTOMER_ORDERS" /* GetCustomerOrders */,
|
|
8758
8758
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8759
8759
|
url: `${getWorkflowsEnv(
|
|
8760
|
-
"
|
|
8760
|
+
"workflowsFunctionsUrl"
|
|
8761
8761
|
)}/functions/get-shopify-customer-orders`,
|
|
8762
8762
|
customization: {
|
|
8763
8763
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -8790,7 +8790,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8790
8790
|
key: "SHOPIFY_GET_CUSTOMER_LAST_ORDER" /* GetCustomerLastOrder */,
|
|
8791
8791
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8792
8792
|
url: `${getWorkflowsEnv(
|
|
8793
|
-
"
|
|
8793
|
+
"workflowsFunctionsUrl"
|
|
8794
8794
|
)}/functions/get-shopify-customer-last-order`,
|
|
8795
8795
|
customization: {
|
|
8796
8796
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -8819,7 +8819,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8819
8819
|
["SHOPIFY_GET_PRODUCT" /* GetProduct */]: {
|
|
8820
8820
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8821
8821
|
key: "SHOPIFY_GET_PRODUCT" /* GetProduct */,
|
|
8822
|
-
url: `${getWorkflowsEnv("
|
|
8822
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/get-shopify-product`,
|
|
8823
8823
|
customization: {
|
|
8824
8824
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
8825
8825
|
product: import_developer_studio_api11.IntegrationDisplayNames.Shopify,
|
|
@@ -8849,7 +8849,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8849
8849
|
key: "SHOPIFY_GET_PRODUCT_VARIANT" /* GetProductVariant */,
|
|
8850
8850
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8851
8851
|
url: `${getWorkflowsEnv(
|
|
8852
|
-
"
|
|
8852
|
+
"workflowsFunctionsUrl"
|
|
8853
8853
|
)}/functions/get-shopify-product-variant`,
|
|
8854
8854
|
customization: {
|
|
8855
8855
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -8883,7 +8883,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8883
8883
|
key: "SHOPIFY_UPDATE_INVENTORY_QUANTITY" /* UpdateInventoryQuantity */,
|
|
8884
8884
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8885
8885
|
url: `${getWorkflowsEnv(
|
|
8886
|
-
"
|
|
8886
|
+
"workflowsFunctionsUrl"
|
|
8887
8887
|
)}/functions/update-shopify-inventory-quantity`,
|
|
8888
8888
|
customization: {
|
|
8889
8889
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -8949,7 +8949,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8949
8949
|
["SHOPIFY_UPDATE_ORDER" /* UpdateOrder */]: {
|
|
8950
8950
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8951
8951
|
key: "SHOPIFY_UPDATE_ORDER" /* UpdateOrder */,
|
|
8952
|
-
url: `${getWorkflowsEnv("
|
|
8952
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/update-shopify-order`,
|
|
8953
8953
|
customization: {
|
|
8954
8954
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
8955
8955
|
product: import_developer_studio_api11.IntegrationDisplayNames.Shopify,
|
|
@@ -8972,7 +8972,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8972
8972
|
key: "SHOPIFY_UPDATE_PRODUCT" /* UpdateProduct */,
|
|
8973
8973
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8974
8974
|
url: `${getWorkflowsEnv(
|
|
8975
|
-
"
|
|
8975
|
+
"workflowsFunctionsUrl"
|
|
8976
8976
|
)}/functions/update-shopify-product`,
|
|
8977
8977
|
customization: {
|
|
8978
8978
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -8996,7 +8996,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
8996
8996
|
key: "SHOPIFY_UPDATE_PRODUCT_VARIANT" /* UpdateProductVariant */,
|
|
8997
8997
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
8998
8998
|
url: `${getWorkflowsEnv(
|
|
8999
|
-
"
|
|
8999
|
+
"workflowsFunctionsUrl"
|
|
9000
9000
|
)}/functions/update-shopify-product-variant`,
|
|
9001
9001
|
customization: {
|
|
9002
9002
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -9020,7 +9020,7 @@ var shopifyTaskConfigs = () => ({
|
|
|
9020
9020
|
key: "SHOPIFY_UPDATE_CUSTOMER" /* UpdateCustomer */,
|
|
9021
9021
|
type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
|
|
9022
9022
|
url: `${getWorkflowsEnv(
|
|
9023
|
-
"
|
|
9023
|
+
"workflowsFunctionsUrl"
|
|
9024
9024
|
)}/functions/update-shopify-customer`,
|
|
9025
9025
|
customization: {
|
|
9026
9026
|
provider: import_developer_studio_api11.IntegrationNames.Shopify,
|
|
@@ -9048,7 +9048,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9048
9048
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9049
9049
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9050
9050
|
uri: `${getWorkflowsEnv(
|
|
9051
|
-
"
|
|
9051
|
+
"workflowsFunctionsUrl"
|
|
9052
9052
|
)}/functions/create-shopify-customer`,
|
|
9053
9053
|
method: "POST",
|
|
9054
9054
|
body: {
|
|
@@ -9070,7 +9070,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9070
9070
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9071
9071
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9072
9072
|
uri: `${getWorkflowsEnv(
|
|
9073
|
-
"
|
|
9073
|
+
"workflowsFunctionsUrl"
|
|
9074
9074
|
)}/functions/create-shopify-order`,
|
|
9075
9075
|
method: "POST",
|
|
9076
9076
|
body: {},
|
|
@@ -9088,7 +9088,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9088
9088
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9089
9089
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9090
9090
|
uri: `${getWorkflowsEnv(
|
|
9091
|
-
"
|
|
9091
|
+
"workflowsFunctionsUrl"
|
|
9092
9092
|
)}/functions/create-shopify-draft-order`,
|
|
9093
9093
|
method: "POST",
|
|
9094
9094
|
body: {},
|
|
@@ -9106,7 +9106,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9106
9106
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9107
9107
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9108
9108
|
uri: `${getWorkflowsEnv(
|
|
9109
|
-
"
|
|
9109
|
+
"workflowsFunctionsUrl"
|
|
9110
9110
|
)}/functions/create-shopify-product`,
|
|
9111
9111
|
method: "POST",
|
|
9112
9112
|
body: {},
|
|
@@ -9124,7 +9124,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9124
9124
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9125
9125
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9126
9126
|
uri: `${getWorkflowsEnv(
|
|
9127
|
-
"
|
|
9127
|
+
"workflowsFunctionsUrl"
|
|
9128
9128
|
)}/functions/create-shopify-product-variant`,
|
|
9129
9129
|
method: "POST",
|
|
9130
9130
|
body: {},
|
|
@@ -9142,7 +9142,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9142
9142
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9143
9143
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9144
9144
|
uri: `${getWorkflowsEnv(
|
|
9145
|
-
"
|
|
9145
|
+
"workflowsFunctionsUrl"
|
|
9146
9146
|
)}/functions/get-shopify-customer?email=#{email}`,
|
|
9147
9147
|
method: "GET",
|
|
9148
9148
|
body: {},
|
|
@@ -9160,7 +9160,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9160
9160
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9161
9161
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9162
9162
|
uri: `${getWorkflowsEnv(
|
|
9163
|
-
"
|
|
9163
|
+
"workflowsFunctionsUrl"
|
|
9164
9164
|
)}/functions/get-shopify-customer-orders?email=#{email}`,
|
|
9165
9165
|
method: "GET",
|
|
9166
9166
|
body: {},
|
|
@@ -9178,7 +9178,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9178
9178
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9179
9179
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9180
9180
|
uri: `${getWorkflowsEnv(
|
|
9181
|
-
"
|
|
9181
|
+
"workflowsFunctionsUrl"
|
|
9182
9182
|
)}/functions/get-shopify-customer-last-order?email=#{email}`,
|
|
9183
9183
|
method: "GET",
|
|
9184
9184
|
body: {},
|
|
@@ -9196,7 +9196,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9196
9196
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9197
9197
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9198
9198
|
uri: `${getWorkflowsEnv(
|
|
9199
|
-
"
|
|
9199
|
+
"workflowsFunctionsUrl"
|
|
9200
9200
|
)}/functions/get-shopify-product?product_id=#{product_id}`,
|
|
9201
9201
|
method: "GET",
|
|
9202
9202
|
body: {},
|
|
@@ -9214,7 +9214,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9214
9214
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9215
9215
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9216
9216
|
uri: `${getWorkflowsEnv(
|
|
9217
|
-
"
|
|
9217
|
+
"workflowsFunctionsUrl"
|
|
9218
9218
|
)}/functions/get-shopify-product-variant?product_id=#{product_id}&title=#{title}`,
|
|
9219
9219
|
method: "GET",
|
|
9220
9220
|
body: {},
|
|
@@ -9232,7 +9232,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9232
9232
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9233
9233
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9234
9234
|
uri: `${getWorkflowsEnv(
|
|
9235
|
-
"
|
|
9235
|
+
"workflowsFunctionsUrl"
|
|
9236
9236
|
)}/functions/update-shopify-inventory-quantity`,
|
|
9237
9237
|
method: "PATCH",
|
|
9238
9238
|
body: {
|
|
@@ -9253,7 +9253,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9253
9253
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9254
9254
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9255
9255
|
uri: `${getWorkflowsEnv(
|
|
9256
|
-
"
|
|
9256
|
+
"workflowsFunctionsUrl"
|
|
9257
9257
|
)}/functions/update-shopify-order`,
|
|
9258
9258
|
method: "PATCH",
|
|
9259
9259
|
body: {},
|
|
@@ -9271,7 +9271,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9271
9271
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9272
9272
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9273
9273
|
uri: `${getWorkflowsEnv(
|
|
9274
|
-
"
|
|
9274
|
+
"workflowsFunctionsUrl"
|
|
9275
9275
|
)}/functions/update-shopify-product`,
|
|
9276
9276
|
method: "PATCH",
|
|
9277
9277
|
body: {},
|
|
@@ -9289,7 +9289,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9289
9289
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9290
9290
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9291
9291
|
uri: `${getWorkflowsEnv(
|
|
9292
|
-
"
|
|
9292
|
+
"workflowsFunctionsUrl"
|
|
9293
9293
|
)}/functions/update-shopify-product-variant`,
|
|
9294
9294
|
method: "PATCH",
|
|
9295
9295
|
body: {},
|
|
@@ -9307,7 +9307,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
9307
9307
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9308
9308
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9309
9309
|
uri: `${getWorkflowsEnv(
|
|
9310
|
-
"
|
|
9310
|
+
"workflowsFunctionsUrl"
|
|
9311
9311
|
)}/functions/update-shopify-customer`,
|
|
9312
9312
|
method: "PATCH",
|
|
9313
9313
|
body: {},
|
|
@@ -9360,7 +9360,6 @@ var shopifyTriggerTemplates = () => ({
|
|
|
9360
9360
|
|
|
9361
9361
|
// src/constants/specification/Slack/index.ts
|
|
9362
9362
|
var import_developer_studio_api12 = require("@livechat/developer-studio-api");
|
|
9363
|
-
var import_src = require("@livechat/developer-studio-api/src");
|
|
9364
9363
|
var SlackTriggerNames = {
|
|
9365
9364
|
ChannelNewMessagePosted: `${import_developer_studio_api12.IntegrationNames.Slack}-${import_developer_studio_api12.SlackEventNames.ChannelNewMessagePosted}`,
|
|
9366
9365
|
MemberNewMention: `${import_developer_studio_api12.IntegrationNames.Slack}-${import_developer_studio_api12.SlackEventNames.MemberNewMention}`
|
|
@@ -9368,8 +9367,8 @@ var SlackTriggerNames = {
|
|
|
9368
9367
|
var slackTaskConfigs = () => ({
|
|
9369
9368
|
["SEND_MESSAGE" /* SendMessage */]: {
|
|
9370
9369
|
key: "SEND_MESSAGE" /* SendMessage */,
|
|
9371
|
-
type:
|
|
9372
|
-
url: `${getWorkflowsEnv("
|
|
9370
|
+
type: import_developer_studio_api12.WorkflowDefinitionTaskType.http,
|
|
9371
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/slack-send-message`,
|
|
9373
9372
|
customization: {
|
|
9374
9373
|
provider: import_developer_studio_api12.IntegrationNames.Slack,
|
|
9375
9374
|
product: import_developer_studio_api12.IntegrationDisplayNames.Slack,
|
|
@@ -9409,8 +9408,8 @@ var slackTaskConfigs = () => ({
|
|
|
9409
9408
|
},
|
|
9410
9409
|
["CREATE_CHANNEL" /* CreateChannel */]: {
|
|
9411
9410
|
key: "CREATE_CHANNEL" /* CreateChannel */,
|
|
9412
|
-
type:
|
|
9413
|
-
url: `${getWorkflowsEnv("
|
|
9411
|
+
type: import_developer_studio_api12.WorkflowDefinitionTaskType.http,
|
|
9412
|
+
url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/slack-create_channel`,
|
|
9414
9413
|
customization: {
|
|
9415
9414
|
provider: import_developer_studio_api12.IntegrationNames.Slack,
|
|
9416
9415
|
product: import_developer_studio_api12.IntegrationDisplayNames.Slack,
|
|
@@ -9455,7 +9454,7 @@ var slackTaskTemplates = () => ({
|
|
|
9455
9454
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9456
9455
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9457
9456
|
uri: `${getWorkflowsEnv(
|
|
9458
|
-
"
|
|
9457
|
+
"workflowsFunctionsUrl"
|
|
9459
9458
|
)}/functions/slack-send-message`,
|
|
9460
9459
|
method: "POST",
|
|
9461
9460
|
body: {
|
|
@@ -9476,7 +9475,7 @@ var slackTaskTemplates = () => ({
|
|
|
9476
9475
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
9477
9476
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
9478
9477
|
uri: `${getWorkflowsEnv(
|
|
9479
|
-
"
|
|
9478
|
+
"workflowsFunctionsUrl"
|
|
9480
9479
|
)}/functions/slack-create-channel`,
|
|
9481
9480
|
method: "POST",
|
|
9482
9481
|
body: {
|
|
@@ -10256,7 +10255,7 @@ var getWorkflowTemplates = () => [
|
|
|
10256
10255
|
asyncComplete: false,
|
|
10257
10256
|
http_request: {
|
|
10258
10257
|
uri: `${getWorkflowsEnv(
|
|
10259
|
-
"
|
|
10258
|
+
"workflowsFunctionsUrl"
|
|
10260
10259
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
10261
10260
|
method: "GET",
|
|
10262
10261
|
headers: {
|
|
@@ -10272,7 +10271,7 @@ var getWorkflowTemplates = () => [
|
|
|
10272
10271
|
inputParameters: {
|
|
10273
10272
|
http_request: {
|
|
10274
10273
|
uri: `${getWorkflowsEnv(
|
|
10275
|
-
"
|
|
10274
|
+
"workflowsFunctionsUrl"
|
|
10276
10275
|
)}/functions/summarize-text`,
|
|
10277
10276
|
body: {
|
|
10278
10277
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
@@ -10293,7 +10292,7 @@ var getWorkflowTemplates = () => [
|
|
|
10293
10292
|
inputParameters: {
|
|
10294
10293
|
http_request: {
|
|
10295
10294
|
uri: `${getWorkflowsEnv(
|
|
10296
|
-
"
|
|
10295
|
+
"workflowsFunctionsUrl"
|
|
10297
10296
|
)}/functions/create-helpdesk-ticket`,
|
|
10298
10297
|
body: {
|
|
10299
10298
|
message: {
|
|
@@ -10379,7 +10378,7 @@ var getWorkflowTemplates = () => [
|
|
|
10379
10378
|
asyncComplete: false,
|
|
10380
10379
|
http_request: {
|
|
10381
10380
|
uri: `${getWorkflowsEnv(
|
|
10382
|
-
"
|
|
10381
|
+
"workflowsFunctionsUrl"
|
|
10383
10382
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
10384
10383
|
method: "GET",
|
|
10385
10384
|
headers: {
|
|
@@ -10395,7 +10394,7 @@ var getWorkflowTemplates = () => [
|
|
|
10395
10394
|
inputParameters: {
|
|
10396
10395
|
http_request: {
|
|
10397
10396
|
uri: `${getWorkflowsEnv(
|
|
10398
|
-
"
|
|
10397
|
+
"workflowsFunctionsUrl"
|
|
10399
10398
|
)}/functions/analyze-text-sentiment`,
|
|
10400
10399
|
body: {
|
|
10401
10400
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
@@ -10416,7 +10415,7 @@ var getWorkflowTemplates = () => [
|
|
|
10416
10415
|
inputParameters: {
|
|
10417
10416
|
http_request: {
|
|
10418
10417
|
uri: `${getWorkflowsEnv(
|
|
10419
|
-
"
|
|
10418
|
+
"workflowsFunctionsUrl"
|
|
10420
10419
|
)}/functions/create-helpdesk-ticket`,
|
|
10421
10420
|
body: {
|
|
10422
10421
|
message: {
|
|
@@ -10444,7 +10443,7 @@ var getWorkflowTemplates = () => [
|
|
|
10444
10443
|
inputParameters: {
|
|
10445
10444
|
http_request: {
|
|
10446
10445
|
uri: `${getWorkflowsEnv(
|
|
10447
|
-
"
|
|
10446
|
+
"workflowsFunctionsUrl"
|
|
10448
10447
|
)}/functions/add-mailchimp-subscriber-event`,
|
|
10449
10448
|
body: {
|
|
10450
10449
|
name: "Competitor Mention",
|
|
@@ -10541,7 +10540,7 @@ var getWorkflowTemplates = () => [
|
|
|
10541
10540
|
asyncComplete: false,
|
|
10542
10541
|
http_request: {
|
|
10543
10542
|
uri: `${getWorkflowsEnv(
|
|
10544
|
-
"
|
|
10543
|
+
"workflowsFunctionsUrl"
|
|
10545
10544
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
10546
10545
|
method: "GET",
|
|
10547
10546
|
headers: {
|
|
@@ -10560,7 +10559,7 @@ var getWorkflowTemplates = () => [
|
|
|
10560
10559
|
http_request: {
|
|
10561
10560
|
method: "POST",
|
|
10562
10561
|
uri: `${getWorkflowsEnv(
|
|
10563
|
-
"
|
|
10562
|
+
"workflowsFunctionsUrl"
|
|
10564
10563
|
)}/functions/summarize-text`,
|
|
10565
10564
|
body: {
|
|
10566
10565
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
@@ -10581,7 +10580,7 @@ var getWorkflowTemplates = () => [
|
|
|
10581
10580
|
http_request: {
|
|
10582
10581
|
method: "POST",
|
|
10583
10582
|
uri: `${getWorkflowsEnv(
|
|
10584
|
-
"
|
|
10583
|
+
"workflowsFunctionsUrl"
|
|
10585
10584
|
)}/functions/create-helpdesk-ticket`,
|
|
10586
10585
|
body: {
|
|
10587
10586
|
requester: {
|
|
@@ -10606,7 +10605,7 @@ var getWorkflowTemplates = () => [
|
|
|
10606
10605
|
inputParameters: {
|
|
10607
10606
|
http_request: {
|
|
10608
10607
|
uri: `${getWorkflowsEnv(
|
|
10609
|
-
"
|
|
10608
|
+
"workflowsFunctionsUrl"
|
|
10610
10609
|
)}/functions/add-mailchimp-subscriber-note`,
|
|
10611
10610
|
body: {
|
|
10612
10611
|
note: "Feedback from chat ID ${workflow.input.body.chat_id}",
|
|
@@ -10701,7 +10700,7 @@ var getWorkflowTemplates = () => [
|
|
|
10701
10700
|
asyncComplete: false,
|
|
10702
10701
|
http_request: {
|
|
10703
10702
|
uri: `${getWorkflowsEnv(
|
|
10704
|
-
"
|
|
10703
|
+
"workflowsFunctionsUrl"
|
|
10705
10704
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
10706
10705
|
method: "GET",
|
|
10707
10706
|
headers: {
|
|
@@ -10717,7 +10716,7 @@ var getWorkflowTemplates = () => [
|
|
|
10717
10716
|
inputParameters: {
|
|
10718
10717
|
http_request: {
|
|
10719
10718
|
uri: `${getWorkflowsEnv(
|
|
10720
|
-
"
|
|
10719
|
+
"workflowsFunctionsUrl"
|
|
10721
10720
|
)}/functions/get-shopify-customer?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
|
|
10722
10721
|
method: "GET",
|
|
10723
10722
|
headers: {
|
|
@@ -10736,7 +10735,7 @@ var getWorkflowTemplates = () => [
|
|
|
10736
10735
|
inputParameters: {
|
|
10737
10736
|
http_request: {
|
|
10738
10737
|
uri: `${getWorkflowsEnv(
|
|
10739
|
-
"
|
|
10738
|
+
"workflowsFunctionsUrl"
|
|
10740
10739
|
)}/functions/analyze-text-sentiment`,
|
|
10741
10740
|
body: {
|
|
10742
10741
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
@@ -10757,7 +10756,7 @@ var getWorkflowTemplates = () => [
|
|
|
10757
10756
|
inputParameters: {
|
|
10758
10757
|
http_request: {
|
|
10759
10758
|
uri: `${getWorkflowsEnv(
|
|
10760
|
-
"
|
|
10759
|
+
"workflowsFunctionsUrl"
|
|
10761
10760
|
)}/functions/add-mailchimp-campaign`,
|
|
10762
10761
|
body: {
|
|
10763
10762
|
type: "regular",
|
|
@@ -10863,7 +10862,7 @@ var getWorkflowTemplates = () => [
|
|
|
10863
10862
|
asyncComplete: false,
|
|
10864
10863
|
http_request: {
|
|
10865
10864
|
uri: `${getWorkflowsEnv(
|
|
10866
|
-
"
|
|
10865
|
+
"workflowsFunctionsUrl"
|
|
10867
10866
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
10868
10867
|
method: "GET",
|
|
10869
10868
|
headers: {
|
|
@@ -10882,7 +10881,7 @@ var getWorkflowTemplates = () => [
|
|
|
10882
10881
|
http_request: {
|
|
10883
10882
|
method: "POST",
|
|
10884
10883
|
uri: `${getWorkflowsEnv(
|
|
10885
|
-
"
|
|
10884
|
+
"workflowsFunctionsUrl"
|
|
10886
10885
|
)}/functions/analyze-text-sentiment`,
|
|
10887
10886
|
body: {
|
|
10888
10887
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
@@ -10903,7 +10902,7 @@ var getWorkflowTemplates = () => [
|
|
|
10903
10902
|
http_request: {
|
|
10904
10903
|
method: "POST",
|
|
10905
10904
|
uri: `${getWorkflowsEnv(
|
|
10906
|
-
"
|
|
10905
|
+
"workflowsFunctionsUrl"
|
|
10907
10906
|
)}/functions/add-or-update-mailchimp-subscriber`,
|
|
10908
10907
|
body: {
|
|
10909
10908
|
list_id: null,
|
|
@@ -10927,7 +10926,7 @@ var getWorkflowTemplates = () => [
|
|
|
10927
10926
|
http_request: {
|
|
10928
10927
|
method: "POST",
|
|
10929
10928
|
uri: `${getWorkflowsEnv(
|
|
10930
|
-
"
|
|
10929
|
+
"workflowsFunctionsUrl"
|
|
10931
10930
|
)}/functions/add-mailchimp-subscriber-tag`,
|
|
10932
10931
|
body: {
|
|
10933
10932
|
list_id: null,
|
|
@@ -11000,7 +10999,7 @@ var getWorkflowTemplates = () => [
|
|
|
11000
10999
|
inputParameters: {
|
|
11001
11000
|
http_request: {
|
|
11002
11001
|
uri: `${getWorkflowsEnv(
|
|
11003
|
-
"
|
|
11002
|
+
"workflowsFunctionsUrl"
|
|
11004
11003
|
)}/functions/send-livechat-agent-message`,
|
|
11005
11004
|
body: {
|
|
11006
11005
|
chat_id: "${workflow.input.body.chat.id}",
|
|
@@ -11085,7 +11084,7 @@ var getWorkflowTemplates = () => [
|
|
|
11085
11084
|
asyncComplete: false,
|
|
11086
11085
|
http_request: {
|
|
11087
11086
|
uri: `${getWorkflowsEnv(
|
|
11088
|
-
"
|
|
11087
|
+
"workflowsFunctionsUrl"
|
|
11089
11088
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
11090
11089
|
method: "GET",
|
|
11091
11090
|
headers: {
|
|
@@ -11103,7 +11102,7 @@ var getWorkflowTemplates = () => [
|
|
|
11103
11102
|
asyncComplete: false,
|
|
11104
11103
|
http_request: {
|
|
11105
11104
|
uri: `${getWorkflowsEnv(
|
|
11106
|
-
"
|
|
11105
|
+
"workflowsFunctionsUrl"
|
|
11107
11106
|
)}/functions/summarize-text`,
|
|
11108
11107
|
body: {
|
|
11109
11108
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
@@ -11124,7 +11123,7 @@ var getWorkflowTemplates = () => [
|
|
|
11124
11123
|
asyncComplete: false,
|
|
11125
11124
|
http_request: {
|
|
11126
11125
|
uri: `${getWorkflowsEnv(
|
|
11127
|
-
"
|
|
11126
|
+
"workflowsFunctionsUrl"
|
|
11128
11127
|
)}/functions/create-helpdesk-ticket`,
|
|
11129
11128
|
body: {
|
|
11130
11129
|
message: {
|
|
@@ -11213,7 +11212,7 @@ var getWorkflowTemplates = () => [
|
|
|
11213
11212
|
asyncComplete: false,
|
|
11214
11213
|
http_request: {
|
|
11215
11214
|
uri: `${getWorkflowsEnv(
|
|
11216
|
-
"
|
|
11215
|
+
"workflowsFunctionsUrl"
|
|
11217
11216
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
|
|
11218
11217
|
method: "GET",
|
|
11219
11218
|
headers: {
|
|
@@ -11231,7 +11230,7 @@ var getWorkflowTemplates = () => [
|
|
|
11231
11230
|
asyncComplete: false,
|
|
11232
11231
|
http_request: {
|
|
11233
11232
|
uri: `${getWorkflowsEnv(
|
|
11234
|
-
"
|
|
11233
|
+
"workflowsFunctionsUrl"
|
|
11235
11234
|
)}/functions/get-shopify-customer-last-order?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
|
|
11236
11235
|
body: {},
|
|
11237
11236
|
method: "GET",
|
|
@@ -11251,7 +11250,7 @@ var getWorkflowTemplates = () => [
|
|
|
11251
11250
|
asyncComplete: false,
|
|
11252
11251
|
http_request: {
|
|
11253
11252
|
uri: `${getWorkflowsEnv(
|
|
11254
|
-
"
|
|
11253
|
+
"workflowsFunctionsUrl"
|
|
11255
11254
|
)}/functions/send-livechat-agent-message`,
|
|
11256
11255
|
body: {
|
|
11257
11256
|
chat_id: "${workflow.input.body.chat.id}",
|
|
@@ -11329,7 +11328,7 @@ var getWorkflowTemplates = () => [
|
|
|
11329
11328
|
asyncComplete: false,
|
|
11330
11329
|
http_request: {
|
|
11331
11330
|
uri: `${getWorkflowsEnv(
|
|
11332
|
-
"
|
|
11331
|
+
"workflowsFunctionsUrl"
|
|
11333
11332
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
11334
11333
|
method: "GET",
|
|
11335
11334
|
headers: {
|
|
@@ -11347,7 +11346,7 @@ var getWorkflowTemplates = () => [
|
|
|
11347
11346
|
asyncComplete: false,
|
|
11348
11347
|
http_request: {
|
|
11349
11348
|
uri: `${getWorkflowsEnv(
|
|
11350
|
-
"
|
|
11349
|
+
"workflowsFunctionsUrl"
|
|
11351
11350
|
)}/functions/create-hubspot-contact`,
|
|
11352
11351
|
body: {
|
|
11353
11352
|
properties: {
|
|
@@ -11427,7 +11426,7 @@ var getWorkflowTemplates = () => [
|
|
|
11427
11426
|
asyncComplete: false,
|
|
11428
11427
|
http_request: {
|
|
11429
11428
|
uri: `${getWorkflowsEnv(
|
|
11430
|
-
"
|
|
11429
|
+
"workflowsFunctionsUrl"
|
|
11431
11430
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
|
|
11432
11431
|
method: "GET",
|
|
11433
11432
|
headers: {
|
|
@@ -11445,7 +11444,7 @@ var getWorkflowTemplates = () => [
|
|
|
11445
11444
|
asyncComplete: false,
|
|
11446
11445
|
http_request: {
|
|
11447
11446
|
uri: `${getWorkflowsEnv(
|
|
11448
|
-
"
|
|
11447
|
+
"workflowsFunctionsUrl"
|
|
11449
11448
|
)}/functions/create-helpdesk-ticket`,
|
|
11450
11449
|
body: {
|
|
11451
11450
|
message: {
|
|
@@ -11538,7 +11537,7 @@ var getWorkflowTemplates = () => [
|
|
|
11538
11537
|
asyncComplete: false,
|
|
11539
11538
|
http_request: {
|
|
11540
11539
|
uri: `${getWorkflowsEnv(
|
|
11541
|
-
"
|
|
11540
|
+
"workflowsFunctionsUrl"
|
|
11542
11541
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
11543
11542
|
method: "GET",
|
|
11544
11543
|
headers: {
|
|
@@ -11556,7 +11555,7 @@ var getWorkflowTemplates = () => [
|
|
|
11556
11555
|
asyncComplete: false,
|
|
11557
11556
|
http_request: {
|
|
11558
11557
|
uri: `${getWorkflowsEnv(
|
|
11559
|
-
"
|
|
11558
|
+
"workflowsFunctionsUrl"
|
|
11560
11559
|
)}/functions/create-hubspot-contact`,
|
|
11561
11560
|
body: {
|
|
11562
11561
|
properties: {
|
|
@@ -11582,7 +11581,7 @@ var getWorkflowTemplates = () => [
|
|
|
11582
11581
|
http_request: {
|
|
11583
11582
|
method: "POST",
|
|
11584
11583
|
uri: `${getWorkflowsEnv(
|
|
11585
|
-
"
|
|
11584
|
+
"workflowsFunctionsUrl"
|
|
11586
11585
|
)}/functions/add-or-update-mailchimp-subscriber`,
|
|
11587
11586
|
body: {
|
|
11588
11587
|
list_id: null,
|
|
@@ -11660,7 +11659,7 @@ var getWorkflowTemplates = () => [
|
|
|
11660
11659
|
asyncComplete: false,
|
|
11661
11660
|
http_request: {
|
|
11662
11661
|
uri: `${getWorkflowsEnv(
|
|
11663
|
-
"
|
|
11662
|
+
"workflowsFunctionsUrl"
|
|
11664
11663
|
)}/functions/supervise-livechat-chat`,
|
|
11665
11664
|
body: {
|
|
11666
11665
|
chat_id: "${workflow.input.body.chat_id}",
|
|
@@ -11682,7 +11681,7 @@ var getWorkflowTemplates = () => [
|
|
|
11682
11681
|
asyncComplete: false,
|
|
11683
11682
|
http_request: {
|
|
11684
11683
|
uri: `${getWorkflowsEnv(
|
|
11685
|
-
"
|
|
11684
|
+
"workflowsFunctionsUrl"
|
|
11686
11685
|
)}/functions/send-livechat-agent-message`,
|
|
11687
11686
|
body: {
|
|
11688
11687
|
chat_id: "${workflow.input.body.chat_id}",
|
|
@@ -11758,7 +11757,7 @@ var getWorkflowTemplates = () => [
|
|
|
11758
11757
|
asyncComplete: false,
|
|
11759
11758
|
http_request: {
|
|
11760
11759
|
uri: `${getWorkflowsEnv(
|
|
11761
|
-
"
|
|
11760
|
+
"workflowsFunctionsUrl"
|
|
11762
11761
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
11763
11762
|
method: "GET",
|
|
11764
11763
|
headers: {
|
|
@@ -11776,7 +11775,7 @@ var getWorkflowTemplates = () => [
|
|
|
11776
11775
|
asyncComplete: false,
|
|
11777
11776
|
http_request: {
|
|
11778
11777
|
uri: `${getWorkflowsEnv(
|
|
11779
|
-
"
|
|
11778
|
+
"workflowsFunctionsUrl"
|
|
11780
11779
|
)}/functions/create-helpdesk-ticket`,
|
|
11781
11780
|
body: {
|
|
11782
11781
|
message: {
|
|
@@ -11867,7 +11866,7 @@ var getWorkflowTemplates = () => [
|
|
|
11867
11866
|
http_request: {
|
|
11868
11867
|
method: "POST",
|
|
11869
11868
|
uri: `${getWorkflowsEnv(
|
|
11870
|
-
"
|
|
11869
|
+
"workflowsFunctionsUrl"
|
|
11871
11870
|
)}/functions/supervise-livechat-chat`,
|
|
11872
11871
|
body: {
|
|
11873
11872
|
chat_id: "${workflow.input.body.chat.id}",
|
|
@@ -11889,7 +11888,7 @@ var getWorkflowTemplates = () => [
|
|
|
11889
11888
|
http_request: {
|
|
11890
11889
|
method: "POST",
|
|
11891
11890
|
uri: `${getWorkflowsEnv(
|
|
11892
|
-
"
|
|
11891
|
+
"workflowsFunctionsUrl"
|
|
11893
11892
|
)}/functions/tag-livechat-chat`,
|
|
11894
11893
|
body: {
|
|
11895
11894
|
chat_id: "${workflow.input.body.chat.id}",
|
|
@@ -11985,7 +11984,7 @@ var getWorkflowTemplates = () => [
|
|
|
11985
11984
|
http_request: {
|
|
11986
11985
|
method: "POST",
|
|
11987
11986
|
uri: `${getWorkflowsEnv(
|
|
11988
|
-
"
|
|
11987
|
+
"workflowsFunctionsUrl"
|
|
11989
11988
|
)}/functions/tag-livechat-chat`,
|
|
11990
11989
|
body: {
|
|
11991
11990
|
chat_id: "${workflow.input.body.chat_id}",
|
|
@@ -12066,7 +12065,7 @@ var getWorkflowTemplates = () => [
|
|
|
12066
12065
|
http_request: {
|
|
12067
12066
|
method: "POST",
|
|
12068
12067
|
uri: `${getWorkflowsEnv(
|
|
12069
|
-
"
|
|
12068
|
+
"workflowsFunctionsUrl"
|
|
12070
12069
|
)}/functions/send-livechat-agent-message`,
|
|
12071
12070
|
body: {
|
|
12072
12071
|
visibility: "all",
|
|
@@ -12089,7 +12088,7 @@ var getWorkflowTemplates = () => [
|
|
|
12089
12088
|
http_request: {
|
|
12090
12089
|
method: "POST",
|
|
12091
12090
|
uri: `${getWorkflowsEnv(
|
|
12092
|
-
"
|
|
12091
|
+
"workflowsFunctionsUrl"
|
|
12093
12092
|
)}/functions/tag-livechat-chat`,
|
|
12094
12093
|
body: {
|
|
12095
12094
|
chat_id: "${workflow.input.body.chat_id}",
|
|
@@ -12167,7 +12166,7 @@ var getWorkflowTemplates = () => [
|
|
|
12167
12166
|
http_request: {
|
|
12168
12167
|
method: "POST",
|
|
12169
12168
|
uri: `${getWorkflowsEnv(
|
|
12170
|
-
"
|
|
12169
|
+
"workflowsFunctionsUrl"
|
|
12171
12170
|
)}/functions/send-livechat-agent-message`,
|
|
12172
12171
|
body: {
|
|
12173
12172
|
visibility: "all",
|
|
@@ -12249,7 +12248,7 @@ var getWorkflowTemplates = () => [
|
|
|
12249
12248
|
http_request: {
|
|
12250
12249
|
method: "POST",
|
|
12251
12250
|
uri: `${getWorkflowsEnv(
|
|
12252
|
-
"
|
|
12251
|
+
"workflowsFunctionsUrl"
|
|
12253
12252
|
)}/functions/tag-livechat-chat`,
|
|
12254
12253
|
body: {
|
|
12255
12254
|
chat_id: "${workflow.input.body.chat_id}",
|
|
@@ -12272,7 +12271,7 @@ var getWorkflowTemplates = () => [
|
|
|
12272
12271
|
http_request: {
|
|
12273
12272
|
method: "POST",
|
|
12274
12273
|
uri: `${getWorkflowsEnv(
|
|
12275
|
-
"
|
|
12274
|
+
"workflowsFunctionsUrl"
|
|
12276
12275
|
)}/functions/supervise-livechat-chat`,
|
|
12277
12276
|
body: {
|
|
12278
12277
|
chat_id: "${workflow.input.body.chat_id}",
|
|
@@ -12294,7 +12293,7 @@ var getWorkflowTemplates = () => [
|
|
|
12294
12293
|
http_request: {
|
|
12295
12294
|
method: "POST",
|
|
12296
12295
|
uri: `${getWorkflowsEnv(
|
|
12297
|
-
"
|
|
12296
|
+
"workflowsFunctionsUrl"
|
|
12298
12297
|
)}/functions/send-livechat-agent-message`,
|
|
12299
12298
|
body: {
|
|
12300
12299
|
visibility: "agents",
|
|
@@ -12370,7 +12369,7 @@ var getWorkflowTemplates = () => [
|
|
|
12370
12369
|
asyncComplete: false,
|
|
12371
12370
|
http_request: {
|
|
12372
12371
|
uri: `${getWorkflowsEnv(
|
|
12373
|
-
"
|
|
12372
|
+
"workflowsFunctionsUrl"
|
|
12374
12373
|
)}/functions/transfer-livechat-chat`,
|
|
12375
12374
|
method: "POST",
|
|
12376
12375
|
body: {
|
|
@@ -12393,7 +12392,7 @@ var getWorkflowTemplates = () => [
|
|
|
12393
12392
|
asyncComplete: false,
|
|
12394
12393
|
http_request: {
|
|
12395
12394
|
uri: `${getWorkflowsEnv(
|
|
12396
|
-
"
|
|
12395
|
+
"workflowsFunctionsUrl"
|
|
12397
12396
|
)}/functions/send-livechat-agent-message`,
|
|
12398
12397
|
method: "POST",
|
|
12399
12398
|
body: {
|
|
@@ -12481,7 +12480,7 @@ var getWorkflowTemplates = () => [
|
|
|
12481
12480
|
asyncComplete: false,
|
|
12482
12481
|
http_request: {
|
|
12483
12482
|
uri: `${getWorkflowsEnv(
|
|
12484
|
-
"
|
|
12483
|
+
"workflowsFunctionsUrl"
|
|
12485
12484
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
12486
12485
|
method: "GET",
|
|
12487
12486
|
headers: {
|
|
@@ -12499,7 +12498,7 @@ var getWorkflowTemplates = () => [
|
|
|
12499
12498
|
asyncComplete: false,
|
|
12500
12499
|
http_request: {
|
|
12501
12500
|
uri: `${getWorkflowsEnv(
|
|
12502
|
-
"
|
|
12501
|
+
"workflowsFunctionsUrl"
|
|
12503
12502
|
)}/functions/summarize-text`,
|
|
12504
12503
|
method: "POST",
|
|
12505
12504
|
body: {
|
|
@@ -12520,7 +12519,7 @@ var getWorkflowTemplates = () => [
|
|
|
12520
12519
|
asyncComplete: false,
|
|
12521
12520
|
http_request: {
|
|
12522
12521
|
uri: `${getWorkflowsEnv(
|
|
12523
|
-
"
|
|
12522
|
+
"workflowsFunctionsUrl"
|
|
12524
12523
|
)}/functions/send-livechat-agent-message`,
|
|
12525
12524
|
method: "POST",
|
|
12526
12525
|
body: {
|
|
@@ -12543,7 +12542,7 @@ var getWorkflowTemplates = () => [
|
|
|
12543
12542
|
asyncComplete: false,
|
|
12544
12543
|
http_request: {
|
|
12545
12544
|
uri: `${getWorkflowsEnv(
|
|
12546
|
-
"
|
|
12545
|
+
"workflowsFunctionsUrl"
|
|
12547
12546
|
)}/functions/tag-livechat-chat`,
|
|
12548
12547
|
method: "POST",
|
|
12549
12548
|
body: {
|
|
@@ -12625,7 +12624,7 @@ var getWorkflowTemplates = () => [
|
|
|
12625
12624
|
asyncComplete: false,
|
|
12626
12625
|
http_request: {
|
|
12627
12626
|
uri: `${getWorkflowsEnv(
|
|
12628
|
-
"
|
|
12627
|
+
"workflowsFunctionsUrl"
|
|
12629
12628
|
)}/functions/transfer-livechat-chat`,
|
|
12630
12629
|
method: "POST",
|
|
12631
12630
|
body: {
|
|
@@ -12648,7 +12647,7 @@ var getWorkflowTemplates = () => [
|
|
|
12648
12647
|
asyncComplete: false,
|
|
12649
12648
|
http_request: {
|
|
12650
12649
|
uri: `${getWorkflowsEnv(
|
|
12651
|
-
"
|
|
12650
|
+
"workflowsFunctionsUrl"
|
|
12652
12651
|
)}/functions/send-livechat-agent-message`,
|
|
12653
12652
|
method: "POST",
|
|
12654
12653
|
body: {
|
|
@@ -12671,7 +12670,7 @@ var getWorkflowTemplates = () => [
|
|
|
12671
12670
|
asyncComplete: false,
|
|
12672
12671
|
http_request: {
|
|
12673
12672
|
uri: `${getWorkflowsEnv(
|
|
12674
|
-
"
|
|
12673
|
+
"workflowsFunctionsUrl"
|
|
12675
12674
|
)}/functions/tag-livechat-chat`,
|
|
12676
12675
|
method: "POST",
|
|
12677
12676
|
body: {
|
|
@@ -12748,7 +12747,7 @@ var getWorkflowTemplates = () => [
|
|
|
12748
12747
|
asyncComplete: false,
|
|
12749
12748
|
http_request: {
|
|
12750
12749
|
uri: `${getWorkflowsEnv(
|
|
12751
|
-
"
|
|
12750
|
+
"workflowsFunctionsUrl"
|
|
12752
12751
|
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
12753
12752
|
method: "GET",
|
|
12754
12753
|
headers: {
|
|
@@ -12766,7 +12765,7 @@ var getWorkflowTemplates = () => [
|
|
|
12766
12765
|
asyncComplete: false,
|
|
12767
12766
|
http_request: {
|
|
12768
12767
|
uri: `${getWorkflowsEnv(
|
|
12769
|
-
"
|
|
12768
|
+
"workflowsFunctionsUrl"
|
|
12770
12769
|
)}/functions/send-livechat-agent-message`,
|
|
12771
12770
|
method: "POST",
|
|
12772
12771
|
body: {
|
|
@@ -12839,7 +12838,7 @@ var getWorkflowTemplates = () => [
|
|
|
12839
12838
|
asyncComplete: false,
|
|
12840
12839
|
http_request: {
|
|
12841
12840
|
uri: `${getWorkflowsEnv(
|
|
12842
|
-
"
|
|
12841
|
+
"workflowsFunctionsUrl"
|
|
12843
12842
|
)}/functions/send-livechat-agent-message`,
|
|
12844
12843
|
method: "POST",
|
|
12845
12844
|
body: {
|
|
@@ -12913,7 +12912,7 @@ var getWorkflowTemplates = () => [
|
|
|
12913
12912
|
asyncComplete: false,
|
|
12914
12913
|
http_request: {
|
|
12915
12914
|
uri: `${getWorkflowsEnv(
|
|
12916
|
-
"
|
|
12915
|
+
"workflowsFunctionsUrl"
|
|
12917
12916
|
)}/functions/tag-livechat-chat`,
|
|
12918
12917
|
method: "POST",
|
|
12919
12918
|
body: {
|
|
@@ -12987,7 +12986,7 @@ var getWorkflowTemplates = () => [
|
|
|
12987
12986
|
asyncComplete: false,
|
|
12988
12987
|
http_request: {
|
|
12989
12988
|
uri: `${getWorkflowsEnv(
|
|
12990
|
-
"
|
|
12989
|
+
"workflowsFunctionsUrl"
|
|
12991
12990
|
)}/functions/transfer-livechat-chat`,
|
|
12992
12991
|
method: "POST",
|
|
12993
12992
|
body: {
|
|
@@ -13647,7 +13646,7 @@ function OneMessagesProvider({ children }) {
|
|
|
13647
13646
|
]);
|
|
13648
13647
|
try {
|
|
13649
13648
|
const response = yield generateAiResponseMutation.mutateAsync({
|
|
13650
|
-
agent_id: getWorkflowsEnv("
|
|
13649
|
+
agent_id: getWorkflowsEnv("workflowAiAgentId"),
|
|
13651
13650
|
account_id: user == null ? void 0 : user.auth.account_id,
|
|
13652
13651
|
organization: user == null ? void 0 : user.auth.organization_id,
|
|
13653
13652
|
token: user == null ? void 0 : user.auth.access_token,
|