@livechat/platform-workflows 0.0.48 → 0.0.50
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.js +486 -215
- package/dist/index.mjs +486 -215
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2190,7 +2190,6 @@ var systemTriggerTemplates = {
|
|
|
2190
2190
|
};
|
|
2191
2191
|
|
|
2192
2192
|
// src/views/Flows/Definitions/Mocks/BigCommerce/index.ts
|
|
2193
|
-
var config2 = getWorkflowsConfig();
|
|
2194
2193
|
var bigCommerceProductBody = {
|
|
2195
2194
|
id: {
|
|
2196
2195
|
type: "number",
|
|
@@ -2530,7 +2529,9 @@ var bigCommerceTaskConfigs = {
|
|
|
2530
2529
|
["BIGCOMMERCE_CREATE_BLOG_POST" /* CreateBlogPost */]: {
|
|
2531
2530
|
key: "BIGCOMMERCE_CREATE_BLOG_POST" /* CreateBlogPost */,
|
|
2532
2531
|
type: WorkflowDefinitionTaskType2.http,
|
|
2533
|
-
url: `${
|
|
2532
|
+
url: `${getWorkflowsEnv(
|
|
2533
|
+
"workflowsApiUr"
|
|
2534
|
+
)}/functions/create-bigcommerce-blog-post`,
|
|
2534
2535
|
customization: {
|
|
2535
2536
|
provider: IntegrationNames.BigCommerce,
|
|
2536
2537
|
product: IntegrationDisplayNames.BigCommerce,
|
|
@@ -2653,7 +2654,9 @@ var bigCommerceTaskConfigs = {
|
|
|
2653
2654
|
["BIGCOMMERCE_CREATE_CUSTOMER" /* CreateCustomer */]: {
|
|
2654
2655
|
key: "BIGCOMMERCE_CREATE_CUSTOMER" /* CreateCustomer */,
|
|
2655
2656
|
type: WorkflowDefinitionTaskType2.http,
|
|
2656
|
-
url: `${
|
|
2657
|
+
url: `${getWorkflowsEnv(
|
|
2658
|
+
"workflowsApiUr"
|
|
2659
|
+
)}/functions/create-bigcommerce-customer`,
|
|
2657
2660
|
customization: {
|
|
2658
2661
|
provider: IntegrationNames.BigCommerce,
|
|
2659
2662
|
product: IntegrationDisplayNames.BigCommerce,
|
|
@@ -2686,7 +2689,9 @@ var bigCommerceTaskConfigs = {
|
|
|
2686
2689
|
["BIGCOMMERCE_UPDATE_CUSTOMER" /* UpdateCustomer */]: {
|
|
2687
2690
|
key: "BIGCOMMERCE_UPDATE_CUSTOMER" /* UpdateCustomer */,
|
|
2688
2691
|
type: WorkflowDefinitionTaskType2.http,
|
|
2689
|
-
url: `${
|
|
2692
|
+
url: `${getWorkflowsEnv(
|
|
2693
|
+
"workflowsApiUr"
|
|
2694
|
+
)}/functions/update-bigcommerce-customer`,
|
|
2690
2695
|
customization: {
|
|
2691
2696
|
provider: IntegrationNames.BigCommerce,
|
|
2692
2697
|
product: IntegrationDisplayNames.BigCommerce,
|
|
@@ -2717,7 +2722,9 @@ var bigCommerceTaskConfigs = {
|
|
|
2717
2722
|
["BIGCOMMERCE_CREATE_PRODUCT" /* CreateProduct */]: {
|
|
2718
2723
|
key: "BIGCOMMERCE_CREATE_PRODUCT" /* CreateProduct */,
|
|
2719
2724
|
type: WorkflowDefinitionTaskType2.http,
|
|
2720
|
-
url: `${
|
|
2725
|
+
url: `${getWorkflowsEnv(
|
|
2726
|
+
"workflowsApiUr"
|
|
2727
|
+
)}/functions/create-bigcommerce-product`,
|
|
2721
2728
|
customization: {
|
|
2722
2729
|
provider: IntegrationNames.BigCommerce,
|
|
2723
2730
|
product: IntegrationDisplayNames.BigCommerce,
|
|
@@ -2747,7 +2754,9 @@ var bigCommerceTaskConfigs = {
|
|
|
2747
2754
|
["BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS" /* CreateCustomerAddress */]: {
|
|
2748
2755
|
key: "BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS" /* CreateCustomerAddress */,
|
|
2749
2756
|
type: WorkflowDefinitionTaskType2.http,
|
|
2750
|
-
url: `${
|
|
2757
|
+
url: `${getWorkflowsEnv(
|
|
2758
|
+
"workflowsApiUr"
|
|
2759
|
+
)}/functions/create-bigcommerce-customer-address`,
|
|
2751
2760
|
customization: {
|
|
2752
2761
|
provider: IntegrationNames.BigCommerce,
|
|
2753
2762
|
product: IntegrationDisplayNames.BigCommerce,
|
|
@@ -2792,7 +2801,9 @@ var bigCommerceTaskConfigs = {
|
|
|
2792
2801
|
["BIGCOMMERCE_GET_CUSTOMER" /* GetCustomer */]: {
|
|
2793
2802
|
key: "BIGCOMMERCE_GET_CUSTOMER" /* GetCustomer */,
|
|
2794
2803
|
type: WorkflowDefinitionTaskType2.http,
|
|
2795
|
-
url: `${
|
|
2804
|
+
url: `${getWorkflowsEnv(
|
|
2805
|
+
"workflowsApiUr"
|
|
2806
|
+
)}/functions/get-bigcommerce-customer`,
|
|
2796
2807
|
customization: {
|
|
2797
2808
|
provider: IntegrationNames.BigCommerce,
|
|
2798
2809
|
product: IntegrationDisplayNames.BigCommerce,
|
|
@@ -2825,7 +2836,9 @@ var bigCommerceTaskConfigs = {
|
|
|
2825
2836
|
["BIGCOMMERCE_GET_CUSTOMER_ADDRESSES" /* GetCustomerAddresses */]: {
|
|
2826
2837
|
key: "BIGCOMMERCE_GET_CUSTOMER_ADDRESSES" /* GetCustomerAddresses */,
|
|
2827
2838
|
type: WorkflowDefinitionTaskType2.http,
|
|
2828
|
-
url: `${
|
|
2839
|
+
url: `${getWorkflowsEnv(
|
|
2840
|
+
"workflowsApiUr"
|
|
2841
|
+
)}/functions/get-bigcommerce-customer-address`,
|
|
2829
2842
|
customization: {
|
|
2830
2843
|
provider: IntegrationNames.BigCommerce,
|
|
2831
2844
|
product: IntegrationDisplayNames.BigCommerce,
|
|
@@ -2857,7 +2870,9 @@ var bigCommerceTaskConfigs = {
|
|
|
2857
2870
|
["BIGCOMMERCE_GET_PRODUCTS" /* GetProducts */]: {
|
|
2858
2871
|
key: "BIGCOMMERCE_GET_PRODUCTS" /* GetProducts */,
|
|
2859
2872
|
type: WorkflowDefinitionTaskType2.http,
|
|
2860
|
-
url: `${
|
|
2873
|
+
url: `${getWorkflowsEnv(
|
|
2874
|
+
"workflowsApiUr"
|
|
2875
|
+
)}/functions/get-bigcommerce-products`,
|
|
2861
2876
|
customization: {
|
|
2862
2877
|
provider: IntegrationNames.BigCommerce,
|
|
2863
2878
|
product: IntegrationDisplayNames.BigCommerce,
|
|
@@ -2883,7 +2898,9 @@ var bigCommerceTaskTemplates = {
|
|
|
2883
2898
|
taskReferenceName: "bigcommerce_create_blog_post",
|
|
2884
2899
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
2885
2900
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
2886
|
-
uri: `${
|
|
2901
|
+
uri: `${getWorkflowsEnv(
|
|
2902
|
+
"workflowsApiUr"
|
|
2903
|
+
)}/functions/create-bigcommerce-blog-post`,
|
|
2887
2904
|
method: "POST",
|
|
2888
2905
|
body: {
|
|
2889
2906
|
title: "Blog post title",
|
|
@@ -2902,7 +2919,9 @@ var bigCommerceTaskTemplates = {
|
|
|
2902
2919
|
taskReferenceName: "bigcommerce_create_customer",
|
|
2903
2920
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
2904
2921
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
2905
|
-
uri: `${
|
|
2922
|
+
uri: `${getWorkflowsEnv(
|
|
2923
|
+
"workflowsApiUr"
|
|
2924
|
+
)}/functions/create-bigcommerce-customer`,
|
|
2906
2925
|
method: "POST",
|
|
2907
2926
|
body: {
|
|
2908
2927
|
first_name: "#{first_name}",
|
|
@@ -2922,7 +2941,9 @@ var bigCommerceTaskTemplates = {
|
|
|
2922
2941
|
taskReferenceName: "bigcommerce_update_customer",
|
|
2923
2942
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
2924
2943
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
2925
|
-
uri: `${
|
|
2944
|
+
uri: `${getWorkflowsEnv(
|
|
2945
|
+
"workflowsApiUr"
|
|
2946
|
+
)}/functions/update-bigcommerce-customer`,
|
|
2926
2947
|
method: "PATCH",
|
|
2927
2948
|
body: {
|
|
2928
2949
|
id: "#{customer_id}"
|
|
@@ -2940,7 +2961,9 @@ var bigCommerceTaskTemplates = {
|
|
|
2940
2961
|
taskReferenceName: "bigcommerce_create_product",
|
|
2941
2962
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
2942
2963
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
2943
|
-
uri: `${
|
|
2964
|
+
uri: `${getWorkflowsEnv(
|
|
2965
|
+
"workflowsApiUr"
|
|
2966
|
+
)}/functions/create-bigcommerce-product`,
|
|
2944
2967
|
method: "POST",
|
|
2945
2968
|
body: {
|
|
2946
2969
|
name: "Product name",
|
|
@@ -2961,7 +2984,9 @@ var bigCommerceTaskTemplates = {
|
|
|
2961
2984
|
taskReferenceName: "bigcommerce_create_customer_address",
|
|
2962
2985
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
2963
2986
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
2964
|
-
uri: `${
|
|
2987
|
+
uri: `${getWorkflowsEnv(
|
|
2988
|
+
"workflowsApiUr"
|
|
2989
|
+
)}/functions/create-bigcommerce-customer-address`,
|
|
2965
2990
|
method: "POST",
|
|
2966
2991
|
body: {
|
|
2967
2992
|
customer_id: "#{customer_id}",
|
|
@@ -2989,7 +3014,9 @@ var bigCommerceTaskTemplates = {
|
|
|
2989
3014
|
taskReferenceName: "bigcommerce_get_customer",
|
|
2990
3015
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
2991
3016
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
2992
|
-
uri: `${
|
|
3017
|
+
uri: `${getWorkflowsEnv(
|
|
3018
|
+
"workflowsApiUr"
|
|
3019
|
+
)}/functions/get-bigcommerce-customer?customer_id=#{customer_id}&customer_email=#{customer_email}`,
|
|
2993
3020
|
method: "GET",
|
|
2994
3021
|
headers: {
|
|
2995
3022
|
Accept: "application/json",
|
|
@@ -3004,7 +3031,9 @@ var bigCommerceTaskTemplates = {
|
|
|
3004
3031
|
taskReferenceName: "bigcommerce_get_customer_addresses",
|
|
3005
3032
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3006
3033
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3007
|
-
uri: `${
|
|
3034
|
+
uri: `${getWorkflowsEnv(
|
|
3035
|
+
"workflowsApiUr"
|
|
3036
|
+
)}/functions/get-bigcommerce-customer-addresses?customer_id=#{customer_id}`,
|
|
3008
3037
|
method: "GET",
|
|
3009
3038
|
headers: {
|
|
3010
3039
|
Accept: "application/json",
|
|
@@ -3019,7 +3048,9 @@ var bigCommerceTaskTemplates = {
|
|
|
3019
3048
|
taskReferenceName: "bigcommerce_get_products",
|
|
3020
3049
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3021
3050
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3022
|
-
uri: `${
|
|
3051
|
+
uri: `${getWorkflowsEnv(
|
|
3052
|
+
"workflowsApiUr"
|
|
3053
|
+
)}/functions/get-bigcommerce-products?limit=200&page=1`,
|
|
3023
3054
|
method: "GET",
|
|
3024
3055
|
headers: {
|
|
3025
3056
|
Accept: "application/json",
|
|
@@ -3306,7 +3337,6 @@ import {
|
|
|
3306
3337
|
IntegrationNames as IntegrationNames2,
|
|
3307
3338
|
WorkflowDefinitionTaskType as WorkflowDefinitionTaskType3
|
|
3308
3339
|
} from "@livechat/developer-studio-api";
|
|
3309
|
-
var config3 = getWorkflowsConfig();
|
|
3310
3340
|
var helpdeskTicketResponse = WORKFLOW_HTTP_TASK_OUTPUT_SCHEMA({
|
|
3311
3341
|
type: "object",
|
|
3312
3342
|
properties: {
|
|
@@ -3463,7 +3493,9 @@ var helpdeskTaskConfigs = {
|
|
|
3463
3493
|
["HELPDESK_ADD_FOLLOWERS_TO_TICKET" /* AddFollowersToTicket */]: {
|
|
3464
3494
|
key: "HELPDESK_ADD_FOLLOWERS_TO_TICKET" /* AddFollowersToTicket */,
|
|
3465
3495
|
type: WorkflowDefinitionTaskType3.http,
|
|
3466
|
-
url: `${
|
|
3496
|
+
url: `${getWorkflowsEnv(
|
|
3497
|
+
"workflowsApiUr"
|
|
3498
|
+
)}/functions/add-followers-to-helpdesk-ticket`,
|
|
3467
3499
|
customization: {
|
|
3468
3500
|
provider: `${IntegrationNames2.Text}-${PRODUCT_TYPE.HD}`,
|
|
3469
3501
|
product: PRODUCT_NAMES.helpdesk,
|
|
@@ -3498,7 +3530,9 @@ var helpdeskTaskConfigs = {
|
|
|
3498
3530
|
["HELPDESK_ADD_TAGS_TO_TICKET" /* AddTagsToTicket */]: {
|
|
3499
3531
|
key: "HELPDESK_ADD_TAGS_TO_TICKET" /* AddTagsToTicket */,
|
|
3500
3532
|
type: WorkflowDefinitionTaskType3.http,
|
|
3501
|
-
url: `${
|
|
3533
|
+
url: `${getWorkflowsEnv(
|
|
3534
|
+
"workflowsApiUr"
|
|
3535
|
+
)}/functions/add-tags-to-helpdesk-ticket`,
|
|
3502
3536
|
customization: {
|
|
3503
3537
|
provider: `${IntegrationNames2.Text}-${PRODUCT_TYPE.HD}`,
|
|
3504
3538
|
product: PRODUCT_NAMES.helpdesk,
|
|
@@ -3532,7 +3566,9 @@ var helpdeskTaskConfigs = {
|
|
|
3532
3566
|
["HELPDESK_CREATE_TICKET" /* CreateTicket */]: {
|
|
3533
3567
|
key: "HELPDESK_CREATE_TICKET" /* CreateTicket */,
|
|
3534
3568
|
type: WorkflowDefinitionTaskType3.http,
|
|
3535
|
-
url: `${
|
|
3569
|
+
url: `${getWorkflowsEnv(
|
|
3570
|
+
"workflowsApiUr"
|
|
3571
|
+
)}/functions/create-helpdesk-ticket`,
|
|
3536
3572
|
customization: {
|
|
3537
3573
|
provider: `${IntegrationNames2.Text}-${PRODUCT_TYPE.HD}`,
|
|
3538
3574
|
product: PRODUCT_NAMES.helpdesk,
|
|
@@ -3553,7 +3589,9 @@ var helpdeskTaskConfigs = {
|
|
|
3553
3589
|
["HELPDESK_CREATE_TRANSACTION" /* CreateTransaction */]: {
|
|
3554
3590
|
type: WorkflowDefinitionTaskType3.http,
|
|
3555
3591
|
key: "HELPDESK_CREATE_TRANSACTION" /* CreateTransaction */,
|
|
3556
|
-
url: `${
|
|
3592
|
+
url: `${getWorkflowsEnv(
|
|
3593
|
+
"workflowsApiUr"
|
|
3594
|
+
)}/functions/create-helpdesk-transaction`,
|
|
3557
3595
|
customization: {
|
|
3558
3596
|
provider: `${IntegrationNames2.Text}-${PRODUCT_TYPE.HD}`,
|
|
3559
3597
|
product: PRODUCT_NAMES.helpdesk,
|
|
@@ -3640,7 +3678,7 @@ var helpdeskTaskConfigs = {
|
|
|
3640
3678
|
["HELPDESK_FIND_TICKET" /* FindTicket */]: {
|
|
3641
3679
|
key: "HELPDESK_FIND_TICKET" /* FindTicket */,
|
|
3642
3680
|
type: WorkflowDefinitionTaskType3.http,
|
|
3643
|
-
url: `${
|
|
3681
|
+
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/find-helpdesk-ticket`,
|
|
3644
3682
|
customization: {
|
|
3645
3683
|
provider: `${IntegrationNames2.Text}-${PRODUCT_TYPE.HD}`,
|
|
3646
3684
|
product: PRODUCT_NAMES.helpdesk,
|
|
@@ -3667,7 +3705,9 @@ var helpdeskTaskConfigs = {
|
|
|
3667
3705
|
["HELPDESK_UPDATE_TICKET" /* UpdateTicket */]: {
|
|
3668
3706
|
key: "HELPDESK_UPDATE_TICKET" /* UpdateTicket */,
|
|
3669
3707
|
type: WorkflowDefinitionTaskType3.http,
|
|
3670
|
-
url: `${
|
|
3708
|
+
url: `${getWorkflowsEnv(
|
|
3709
|
+
"workflowsApiUr"
|
|
3710
|
+
)}/functions/update-helpdesk-ticket`,
|
|
3671
3711
|
customization: {
|
|
3672
3712
|
provider: `${IntegrationNames2.Text}-${PRODUCT_TYPE.HD}`,
|
|
3673
3713
|
product: PRODUCT_NAMES.helpdesk,
|
|
@@ -3705,7 +3745,9 @@ var helpdeskTaskTemplates = {
|
|
|
3705
3745
|
taskReferenceName: "helpdesk_create_ticket",
|
|
3706
3746
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3707
3747
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3708
|
-
uri: `${
|
|
3748
|
+
uri: `${getWorkflowsEnv(
|
|
3749
|
+
"workflowsApiUr"
|
|
3750
|
+
)}/functions/create-helpdesk-ticket`,
|
|
3709
3751
|
method: "POST",
|
|
3710
3752
|
body: {
|
|
3711
3753
|
requester: {
|
|
@@ -3729,7 +3771,9 @@ var helpdeskTaskTemplates = {
|
|
|
3729
3771
|
taskReferenceName: "helpdesk_add_followers_to_ticket",
|
|
3730
3772
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3731
3773
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3732
|
-
uri: `${
|
|
3774
|
+
uri: `${getWorkflowsEnv(
|
|
3775
|
+
"workflowsApiUr"
|
|
3776
|
+
)}/functions/add-followers-to-helpdesk-ticket`,
|
|
3733
3777
|
method: "POST",
|
|
3734
3778
|
body: {
|
|
3735
3779
|
id: "#{id}",
|
|
@@ -3747,7 +3791,9 @@ var helpdeskTaskTemplates = {
|
|
|
3747
3791
|
taskReferenceName: "helpdesk_add_tags_to_ticket",
|
|
3748
3792
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3749
3793
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3750
|
-
uri: `${
|
|
3794
|
+
uri: `${getWorkflowsEnv(
|
|
3795
|
+
"workflowsApiUr"
|
|
3796
|
+
)}/functions/add-tags-to-helpdesk-ticket`,
|
|
3751
3797
|
method: "POST",
|
|
3752
3798
|
body: {
|
|
3753
3799
|
id: "#{id}",
|
|
@@ -3765,7 +3811,9 @@ var helpdeskTaskTemplates = {
|
|
|
3765
3811
|
taskReferenceName: "helpdesk_create_transaction",
|
|
3766
3812
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3767
3813
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3768
|
-
uri: `${
|
|
3814
|
+
uri: `${getWorkflowsEnv(
|
|
3815
|
+
"workflowsApiUr"
|
|
3816
|
+
)}/functions/create-helpdesk-transaction`,
|
|
3769
3817
|
method: "POST",
|
|
3770
3818
|
body: {
|
|
3771
3819
|
ticketID: "#{ticket_id}",
|
|
@@ -3783,7 +3831,9 @@ var helpdeskTaskTemplates = {
|
|
|
3783
3831
|
taskReferenceName: "helpdesk_find_ticket",
|
|
3784
3832
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3785
3833
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3786
|
-
uri: `${
|
|
3834
|
+
uri: `${getWorkflowsEnv(
|
|
3835
|
+
"workflowsApiUr"
|
|
3836
|
+
)}/functions/find-helpdesk-ticket?id=#{ticket_id}`,
|
|
3787
3837
|
method: "GET",
|
|
3788
3838
|
headers: {
|
|
3789
3839
|
Accept: "application/json",
|
|
@@ -3797,7 +3847,9 @@ var helpdeskTaskTemplates = {
|
|
|
3797
3847
|
taskReferenceName: "helpdesk_update_ticket",
|
|
3798
3848
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3799
3849
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3800
|
-
uri: `${
|
|
3850
|
+
uri: `${getWorkflowsEnv(
|
|
3851
|
+
"workflowsApiUr"
|
|
3852
|
+
)}/functions/update-helpdesk-ticket?id=#{ticket_id}`,
|
|
3801
3853
|
method: "PATCH",
|
|
3802
3854
|
headers: {
|
|
3803
3855
|
Accept: "application/json",
|
|
@@ -3815,7 +3867,6 @@ import {
|
|
|
3815
3867
|
IntegrationNames as IntegrationNames3,
|
|
3816
3868
|
WorkflowDefinitionTaskType as WorkflowDefinitionTaskType4
|
|
3817
3869
|
} from "@livechat/developer-studio-api";
|
|
3818
|
-
var config4 = getWorkflowsConfig();
|
|
3819
3870
|
var hubspotContactProperties = {
|
|
3820
3871
|
company: {
|
|
3821
3872
|
type: "string",
|
|
@@ -3853,7 +3904,9 @@ var hubspotTaskConfigs = {
|
|
|
3853
3904
|
["HUBSPOT_CREATE_CONTACT" /* CreateContact */]: {
|
|
3854
3905
|
key: "HUBSPOT_CREATE_CONTACT" /* CreateContact */,
|
|
3855
3906
|
type: WorkflowDefinitionTaskType4.http,
|
|
3856
|
-
url: `${
|
|
3907
|
+
url: `${getWorkflowsEnv(
|
|
3908
|
+
"workflowsApiUr"
|
|
3909
|
+
)}/functions/create-hubspot-contact`,
|
|
3857
3910
|
customization: {
|
|
3858
3911
|
provider: IntegrationNames3.HubSpot,
|
|
3859
3912
|
product: IntegrationDisplayNames2.HubSpot,
|
|
@@ -3878,7 +3931,7 @@ var hubspotTaskConfigs = {
|
|
|
3878
3931
|
// [HubSpotTaskNames.DeleteContact]: {
|
|
3879
3932
|
// key: HubSpotTaskNames.DeleteContact,
|
|
3880
3933
|
// type: WorkflowDefinitionTaskType.http,
|
|
3881
|
-
// url: `${
|
|
3934
|
+
// url: `${getWorkflowsEnv("workflowsApiUr")}/functions/delete-hubspot-contact`,
|
|
3882
3935
|
// customization: {
|
|
3883
3936
|
// provider: IntegrationNames.HubSpot,
|
|
3884
3937
|
// product: IntegrationDisplayNames.HubSpot,
|
|
@@ -3903,7 +3956,7 @@ var hubspotTaskConfigs = {
|
|
|
3903
3956
|
["HUBSPOT_GET_CONTACT" /* GetContact */]: {
|
|
3904
3957
|
key: "HUBSPOT_GET_CONTACT" /* GetContact */,
|
|
3905
3958
|
type: WorkflowDefinitionTaskType4.http,
|
|
3906
|
-
url: `${
|
|
3959
|
+
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-hubspot-contact`,
|
|
3907
3960
|
customization: {
|
|
3908
3961
|
provider: IntegrationNames3.HubSpot,
|
|
3909
3962
|
product: IntegrationDisplayNames2.HubSpot,
|
|
@@ -3932,7 +3985,9 @@ var hubspotTaskConfigs = {
|
|
|
3932
3985
|
["HUBSPOT_UPDATE_CONTACT" /* UpdateContact */]: {
|
|
3933
3986
|
key: "HUBSPOT_UPDATE_CONTACT" /* UpdateContact */,
|
|
3934
3987
|
type: WorkflowDefinitionTaskType4.http,
|
|
3935
|
-
url: `${
|
|
3988
|
+
url: `${getWorkflowsEnv(
|
|
3989
|
+
"workflowsApiUr"
|
|
3990
|
+
)}/functions/update-hubspot-contact`,
|
|
3936
3991
|
customization: {
|
|
3937
3992
|
provider: IntegrationNames3.HubSpot,
|
|
3938
3993
|
product: IntegrationDisplayNames2.HubSpot,
|
|
@@ -3972,7 +4027,9 @@ var hubspotTaskTemplates = {
|
|
|
3972
4027
|
taskReferenceName: "hubspot_create_contact",
|
|
3973
4028
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
3974
4029
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
3975
|
-
uri: `${
|
|
4030
|
+
uri: `${getWorkflowsEnv(
|
|
4031
|
+
"workflowsApiUr"
|
|
4032
|
+
)}/functions/create-hubspot-contact`,
|
|
3976
4033
|
method: "POST",
|
|
3977
4034
|
body: {
|
|
3978
4035
|
properties: {
|
|
@@ -3996,7 +4053,7 @@ var hubspotTaskTemplates = {
|
|
|
3996
4053
|
// ...workflowHttpTask.inputParameters,
|
|
3997
4054
|
// http_request: {
|
|
3998
4055
|
// ...workflowHttpTask.inputParameters.http_request,
|
|
3999
|
-
// uri: `${
|
|
4056
|
+
// uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/delete-hubspot-contact?contactId=#{contactId}`,
|
|
4000
4057
|
// method: 'DELETE',
|
|
4001
4058
|
// headers: {
|
|
4002
4059
|
// Accept: 'application/json',
|
|
@@ -4010,7 +4067,9 @@ var hubspotTaskTemplates = {
|
|
|
4010
4067
|
taskReferenceName: "hubspot_get_contact",
|
|
4011
4068
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4012
4069
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4013
|
-
uri: `${
|
|
4070
|
+
uri: `${getWorkflowsEnv(
|
|
4071
|
+
"workflowsApiUr"
|
|
4072
|
+
)}/functions/get-hubspot-contact?contactId=#{contactId}`,
|
|
4014
4073
|
method: "GET",
|
|
4015
4074
|
headers: {
|
|
4016
4075
|
Accept: "application/json",
|
|
@@ -4024,7 +4083,9 @@ var hubspotTaskTemplates = {
|
|
|
4024
4083
|
taskReferenceName: "hubspot_update_contact",
|
|
4025
4084
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4026
4085
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4027
|
-
uri: `${
|
|
4086
|
+
uri: `${getWorkflowsEnv(
|
|
4087
|
+
"workflowsApiUr"
|
|
4088
|
+
)}/functions/update-hubspot-contact?contactId=#{contactId}`,
|
|
4028
4089
|
method: "PATCH",
|
|
4029
4090
|
body: {
|
|
4030
4091
|
properties: {
|
|
@@ -4122,7 +4183,6 @@ import {
|
|
|
4122
4183
|
TextLivechatEventNames,
|
|
4123
4184
|
WorkflowDefinitionTaskType as WorkflowDefinitionTaskType5
|
|
4124
4185
|
} from "@livechat/developer-studio-api";
|
|
4125
|
-
var config5 = getWorkflowsConfig();
|
|
4126
4186
|
var webhookSpecs = {
|
|
4127
4187
|
new_chat: {
|
|
4128
4188
|
output: {
|
|
@@ -4691,7 +4751,9 @@ var livechatTaskConfigs = {
|
|
|
4691
4751
|
["LIVECHAT_TRANSFER_CHAT" /* TransferChat */]: {
|
|
4692
4752
|
key: "LIVECHAT_TRANSFER_CHAT" /* TransferChat */,
|
|
4693
4753
|
type: WorkflowDefinitionTaskType5.http,
|
|
4694
|
-
url: `${
|
|
4754
|
+
url: `${getWorkflowsEnv(
|
|
4755
|
+
"workflowsApiUr"
|
|
4756
|
+
)}/functions/transfer-livechat-chat`,
|
|
4695
4757
|
customization: {
|
|
4696
4758
|
provider: `${IntegrationNames4.Text}-${PRODUCT_TYPE.LC}`,
|
|
4697
4759
|
product: PRODUCT_NAMES.livechat,
|
|
@@ -4734,7 +4796,7 @@ var livechatTaskConfigs = {
|
|
|
4734
4796
|
["LIVECHAT_TAG_CHAT" /* TagChat */]: {
|
|
4735
4797
|
key: "LIVECHAT_TAG_CHAT" /* TagChat */,
|
|
4736
4798
|
type: WorkflowDefinitionTaskType5.http,
|
|
4737
|
-
url: `${
|
|
4799
|
+
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/tag-livechat-chat`,
|
|
4738
4800
|
customization: {
|
|
4739
4801
|
provider: `${IntegrationNames4.Text}-${PRODUCT_TYPE.LC}`,
|
|
4740
4802
|
product: PRODUCT_NAMES.livechat,
|
|
@@ -4770,7 +4832,9 @@ var livechatTaskConfigs = {
|
|
|
4770
4832
|
["LIVECHAT_CHAT_TRANSCRIPT" /* GetChatTranscript */]: {
|
|
4771
4833
|
key: "LIVECHAT_CHAT_TRANSCRIPT" /* GetChatTranscript */,
|
|
4772
4834
|
type: WorkflowDefinitionTaskType5.http,
|
|
4773
|
-
url: `${
|
|
4835
|
+
url: `${getWorkflowsEnv(
|
|
4836
|
+
"workflowsApiUr"
|
|
4837
|
+
)}/functions/get-livechat-chat-transcript`,
|
|
4774
4838
|
customization: {
|
|
4775
4839
|
provider: `${IntegrationNames4.Text}-${PRODUCT_TYPE.LC}`,
|
|
4776
4840
|
product: PRODUCT_NAMES.livechat,
|
|
@@ -4819,7 +4883,9 @@ var livechatTaskConfigs = {
|
|
|
4819
4883
|
["LIVECHAT_SEND_MESSAGE" /* SendMessage */]: {
|
|
4820
4884
|
key: "LIVECHAT_SEND_MESSAGE" /* SendMessage */,
|
|
4821
4885
|
type: WorkflowDefinitionTaskType5.http,
|
|
4822
|
-
url: `${
|
|
4886
|
+
url: `${getWorkflowsEnv(
|
|
4887
|
+
"workflowsApiUr"
|
|
4888
|
+
)}/functions/send-livechat-agent-message`,
|
|
4823
4889
|
customization: {
|
|
4824
4890
|
provider: `${IntegrationNames4.Text}-${PRODUCT_TYPE.LC}`,
|
|
4825
4891
|
product: PRODUCT_NAMES.livechat,
|
|
@@ -4858,7 +4924,9 @@ var livechatTaskConfigs = {
|
|
|
4858
4924
|
["LIVECHAT_SUPERVISE_CHAT" /* SuperviseChat */]: {
|
|
4859
4925
|
key: "LIVECHAT_SUPERVISE_CHAT" /* SuperviseChat */,
|
|
4860
4926
|
type: WorkflowDefinitionTaskType5.http,
|
|
4861
|
-
url: `${
|
|
4927
|
+
url: `${getWorkflowsEnv(
|
|
4928
|
+
"workflowsApiUr"
|
|
4929
|
+
)}/functions/supervise-livechat-chat`,
|
|
4862
4930
|
customization: {
|
|
4863
4931
|
provider: `${IntegrationNames4.Text}-${PRODUCT_TYPE.LC}`,
|
|
4864
4932
|
product: PRODUCT_NAMES.livechat,
|
|
@@ -4891,7 +4959,7 @@ var livechatTaskTemplates = {
|
|
|
4891
4959
|
taskReferenceName: "livechat_tag_chat",
|
|
4892
4960
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4893
4961
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4894
|
-
uri: `${
|
|
4962
|
+
uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/tag-livechat-chat`,
|
|
4895
4963
|
method: "POST",
|
|
4896
4964
|
body: {
|
|
4897
4965
|
chat_id: "#{chat_id}",
|
|
@@ -4910,7 +4978,9 @@ var livechatTaskTemplates = {
|
|
|
4910
4978
|
taskReferenceName: "livechat_transfer_chat",
|
|
4911
4979
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4912
4980
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4913
|
-
uri: `${
|
|
4981
|
+
uri: `${getWorkflowsEnv(
|
|
4982
|
+
"workflowsApiUr"
|
|
4983
|
+
)}/functions/transfer-livechat-chat`,
|
|
4914
4984
|
method: "POST",
|
|
4915
4985
|
body: {
|
|
4916
4986
|
chat_id: "#{chat_id}",
|
|
@@ -4929,7 +4999,9 @@ var livechatTaskTemplates = {
|
|
|
4929
4999
|
taskReferenceName: "livechat_get_chat_transcript",
|
|
4930
5000
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4931
5001
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4932
|
-
uri: `${
|
|
5002
|
+
uri: `${getWorkflowsEnv(
|
|
5003
|
+
"workflowsApiUr"
|
|
5004
|
+
)}/functions/get-livechat-chat-transcript?chat_id=#{chat_id}`,
|
|
4933
5005
|
method: "GET",
|
|
4934
5006
|
headers: {
|
|
4935
5007
|
Accept: "application/json",
|
|
@@ -4943,7 +5015,9 @@ var livechatTaskTemplates = {
|
|
|
4943
5015
|
taskReferenceName: "livechat_send_message",
|
|
4944
5016
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4945
5017
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4946
|
-
uri: `${
|
|
5018
|
+
uri: `${getWorkflowsEnv(
|
|
5019
|
+
"workflowsApiUr"
|
|
5020
|
+
)}/functions/send-livechat-agent-message`,
|
|
4947
5021
|
method: "POST",
|
|
4948
5022
|
body: {
|
|
4949
5023
|
chat_id: "#{chat_id}",
|
|
@@ -4962,7 +5036,9 @@ var livechatTaskTemplates = {
|
|
|
4962
5036
|
taskReferenceName: "livechat_supervise_chat",
|
|
4963
5037
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
4964
5038
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
4965
|
-
uri: `${
|
|
5039
|
+
uri: `${getWorkflowsEnv(
|
|
5040
|
+
"workflowsApiUr"
|
|
5041
|
+
)}/functions/supervise-livechat-chat`,
|
|
4966
5042
|
method: "POST",
|
|
4967
5043
|
body: {
|
|
4968
5044
|
chat_id: "#{chat_id}",
|
|
@@ -5272,7 +5348,6 @@ import {
|
|
|
5272
5348
|
MailchimpEventNames,
|
|
5273
5349
|
WorkflowDefinitionTaskType as WorkflowDefinitionTaskType6
|
|
5274
5350
|
} from "@livechat/developer-studio-api";
|
|
5275
|
-
var config6 = getWorkflowsConfig();
|
|
5276
5351
|
var mailchimpCampaignTrackingBody = {
|
|
5277
5352
|
type: "object",
|
|
5278
5353
|
required: ["opens", "html_clicks", "text_clicks"],
|
|
@@ -5459,7 +5534,9 @@ var mailchimpTaskConfigs = {
|
|
|
5459
5534
|
["MAILCHIMP_ADD_SUBSCRIBER" /* AddSubscriber */]: {
|
|
5460
5535
|
key: "MAILCHIMP_ADD_SUBSCRIBER" /* AddSubscriber */,
|
|
5461
5536
|
type: WorkflowDefinitionTaskType6.http,
|
|
5462
|
-
url: `${
|
|
5537
|
+
url: `${getWorkflowsEnv(
|
|
5538
|
+
"workflowsApiUr"
|
|
5539
|
+
)}/functions/add-mailchimp-subscriber`,
|
|
5463
5540
|
customization: {
|
|
5464
5541
|
provider: IntegrationNames5.Mailchimp,
|
|
5465
5542
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5502,7 +5579,9 @@ var mailchimpTaskConfigs = {
|
|
|
5502
5579
|
["MAILCHIMP_ADD_CAMPAIGN" /* AddCampaign */]: {
|
|
5503
5580
|
key: "MAILCHIMP_ADD_CAMPAIGN" /* AddCampaign */,
|
|
5504
5581
|
type: WorkflowDefinitionTaskType6.http,
|
|
5505
|
-
url: `${
|
|
5582
|
+
url: `${getWorkflowsEnv(
|
|
5583
|
+
"workflowsApiUr"
|
|
5584
|
+
)}/functions/add-mailchimp-campaign`,
|
|
5506
5585
|
customization: {
|
|
5507
5586
|
provider: IntegrationNames5.Mailchimp,
|
|
5508
5587
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5547,7 +5626,9 @@ var mailchimpTaskConfigs = {
|
|
|
5547
5626
|
["MAILCHIMP_SEND_CAMPAIGN" /* SendCampaign */]: {
|
|
5548
5627
|
key: "MAILCHIMP_SEND_CAMPAIGN" /* SendCampaign */,
|
|
5549
5628
|
type: WorkflowDefinitionTaskType6.http,
|
|
5550
|
-
url: `${
|
|
5629
|
+
url: `${getWorkflowsEnv(
|
|
5630
|
+
"workflowsApiUr"
|
|
5631
|
+
)}/functions/send-mailchimp-campaign`,
|
|
5551
5632
|
customization: {
|
|
5552
5633
|
provider: IntegrationNames5.Mailchimp,
|
|
5553
5634
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5578,7 +5659,9 @@ var mailchimpTaskConfigs = {
|
|
|
5578
5659
|
["MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER" /* AddOrUpdateSubscriber */]: {
|
|
5579
5660
|
key: "MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER" /* AddOrUpdateSubscriber */,
|
|
5580
5661
|
type: WorkflowDefinitionTaskType6.http,
|
|
5581
|
-
url: `${
|
|
5662
|
+
url: `${getWorkflowsEnv(
|
|
5663
|
+
"workflowsApiUr"
|
|
5664
|
+
)}/functions/add-or-update-mailchimp-subscriber`,
|
|
5582
5665
|
customization: {
|
|
5583
5666
|
provider: IntegrationNames5.Mailchimp,
|
|
5584
5667
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5626,7 +5709,9 @@ var mailchimpTaskConfigs = {
|
|
|
5626
5709
|
["MAILCHIMP_UPDATE_SUBSCRIBER" /* UpdateSubscriber */]: {
|
|
5627
5710
|
key: "MAILCHIMP_UPDATE_SUBSCRIBER" /* UpdateSubscriber */,
|
|
5628
5711
|
type: WorkflowDefinitionTaskType6.http,
|
|
5629
|
-
url: `${
|
|
5712
|
+
url: `${getWorkflowsEnv(
|
|
5713
|
+
"workflowsApiUr"
|
|
5714
|
+
)}/functions/update-mailchimp-subscriber`,
|
|
5630
5715
|
customization: {
|
|
5631
5716
|
provider: IntegrationNames5.Mailchimp,
|
|
5632
5717
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5674,7 +5759,9 @@ var mailchimpTaskConfigs = {
|
|
|
5674
5759
|
["MAILCHIMP_ARCHIVE_SUBSCRIBER" /* ArchiveSubscriber */]: {
|
|
5675
5760
|
key: "MAILCHIMP_ARCHIVE_SUBSCRIBER" /* ArchiveSubscriber */,
|
|
5676
5761
|
type: WorkflowDefinitionTaskType6.http,
|
|
5677
|
-
url: `${
|
|
5762
|
+
url: `${getWorkflowsEnv(
|
|
5763
|
+
"workflowsApiUr"
|
|
5764
|
+
)}/functions/archive-mailchimp-subscriber`,
|
|
5678
5765
|
customization: {
|
|
5679
5766
|
provider: IntegrationNames5.Mailchimp,
|
|
5680
5767
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5709,7 +5796,9 @@ var mailchimpTaskConfigs = {
|
|
|
5709
5796
|
["MAILCHIMP_DELETE_SUBSCRIBER" /* DeleteSubscriber */]: {
|
|
5710
5797
|
key: "MAILCHIMP_DELETE_SUBSCRIBER" /* DeleteSubscriber */,
|
|
5711
5798
|
type: WorkflowDefinitionTaskType6.http,
|
|
5712
|
-
url: `${
|
|
5799
|
+
url: `${getWorkflowsEnv(
|
|
5800
|
+
"workflowsApiUr"
|
|
5801
|
+
)}/functions/delete-mailchimp-subscriber`,
|
|
5713
5802
|
customization: {
|
|
5714
5803
|
provider: IntegrationNames5.Mailchimp,
|
|
5715
5804
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5744,7 +5833,9 @@ var mailchimpTaskConfigs = {
|
|
|
5744
5833
|
["MAILCHIMP_ADD_SUBSCRIBER_TAG" /* AddSubscriberTag */]: {
|
|
5745
5834
|
key: "MAILCHIMP_ADD_SUBSCRIBER_TAG" /* AddSubscriberTag */,
|
|
5746
5835
|
type: WorkflowDefinitionTaskType6.http,
|
|
5747
|
-
url: `${
|
|
5836
|
+
url: `${getWorkflowsEnv(
|
|
5837
|
+
"workflowsApiUr"
|
|
5838
|
+
)}/functions/add-mailchimp-subscriber-tag`,
|
|
5748
5839
|
customization: {
|
|
5749
5840
|
provider: IntegrationNames5.Mailchimp,
|
|
5750
5841
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5784,7 +5875,9 @@ var mailchimpTaskConfigs = {
|
|
|
5784
5875
|
["MAILCHIMP_ADD_SUBSCRIBER_EVENT" /* AddSubscriberEvent */]: {
|
|
5785
5876
|
key: "MAILCHIMP_ADD_SUBSCRIBER_EVENT" /* AddSubscriberEvent */,
|
|
5786
5877
|
type: WorkflowDefinitionTaskType6.http,
|
|
5787
|
-
url: `${
|
|
5878
|
+
url: `${getWorkflowsEnv(
|
|
5879
|
+
"workflowsApiUr"
|
|
5880
|
+
)}/functions/add-mailchimp-subscriber-event`,
|
|
5788
5881
|
customization: {
|
|
5789
5882
|
provider: IntegrationNames5.Mailchimp,
|
|
5790
5883
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5840,7 +5933,9 @@ var mailchimpTaskConfigs = {
|
|
|
5840
5933
|
["MAILCHIMP_ADD_SUBSCRIBER_NOTE" /* AddSubscriberNote */]: {
|
|
5841
5934
|
key: "MAILCHIMP_ADD_SUBSCRIBER_NOTE" /* AddSubscriberNote */,
|
|
5842
5935
|
type: WorkflowDefinitionTaskType6.http,
|
|
5843
|
-
url: `${
|
|
5936
|
+
url: `${getWorkflowsEnv(
|
|
5937
|
+
"workflowsApiUr"
|
|
5938
|
+
)}/functions/add-mailchimp-subscriber-note`,
|
|
5844
5939
|
customization: {
|
|
5845
5940
|
provider: IntegrationNames5.Mailchimp,
|
|
5846
5941
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5880,7 +5975,9 @@ var mailchimpTaskConfigs = {
|
|
|
5880
5975
|
["MAILCHIMP_DELETE_SUBSCRIBER_TAG" /* DeleteSubscriberTag */]: {
|
|
5881
5976
|
key: "MAILCHIMP_DELETE_SUBSCRIBER_TAG" /* DeleteSubscriberTag */,
|
|
5882
5977
|
type: WorkflowDefinitionTaskType6.http,
|
|
5883
|
-
url: `${
|
|
5978
|
+
url: `${getWorkflowsEnv(
|
|
5979
|
+
"workflowsApiUr"
|
|
5980
|
+
)}/functions/delete-mailchimp-subscriber-tag`,
|
|
5884
5981
|
customization: {
|
|
5885
5982
|
provider: IntegrationNames5.Mailchimp,
|
|
5886
5983
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5919,7 +6016,9 @@ var mailchimpTaskConfigs = {
|
|
|
5919
6016
|
["MAILCHIMP_GET_SUBSCRIBER_TAGS" /* GetSubscriberTags */]: {
|
|
5920
6017
|
key: "MAILCHIMP_GET_SUBSCRIBER_TAGS" /* GetSubscriberTags */,
|
|
5921
6018
|
type: WorkflowDefinitionTaskType6.http,
|
|
5922
|
-
url: `${
|
|
6019
|
+
url: `${getWorkflowsEnv(
|
|
6020
|
+
"workflowsApiUr"
|
|
6021
|
+
)}/functions/get-mailchimp-subscriber-tags`,
|
|
5923
6022
|
customization: {
|
|
5924
6023
|
provider: IntegrationNames5.Mailchimp,
|
|
5925
6024
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -5984,7 +6083,9 @@ var mailchimpTaskConfigs = {
|
|
|
5984
6083
|
["MAILCHIMP_GET_SUBSCRIBER" /* GetSubscriber */]: {
|
|
5985
6084
|
key: "MAILCHIMP_GET_SUBSCRIBER" /* GetSubscriber */,
|
|
5986
6085
|
type: WorkflowDefinitionTaskType6.http,
|
|
5987
|
-
url: `${
|
|
6086
|
+
url: `${getWorkflowsEnv(
|
|
6087
|
+
"workflowsApiUr"
|
|
6088
|
+
)}/functions/get-mailchimp-subscriber`,
|
|
5988
6089
|
customization: {
|
|
5989
6090
|
provider: IntegrationNames5.Mailchimp,
|
|
5990
6091
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -6159,7 +6260,9 @@ var mailchimpTaskConfigs = {
|
|
|
6159
6260
|
["MAILCHIMP_GET_SUBSCRIBERS" /* GetSubscribers */]: {
|
|
6160
6261
|
key: "MAILCHIMP_GET_SUBSCRIBERS" /* GetSubscribers */,
|
|
6161
6262
|
type: WorkflowDefinitionTaskType6.http,
|
|
6162
|
-
url: `${
|
|
6263
|
+
url: `${getWorkflowsEnv(
|
|
6264
|
+
"workflowsApiUr"
|
|
6265
|
+
)}/functions/find-mailchimp-subscribers`,
|
|
6163
6266
|
customization: {
|
|
6164
6267
|
provider: IntegrationNames5.Mailchimp,
|
|
6165
6268
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -6335,7 +6438,9 @@ var mailchimpTaskConfigs = {
|
|
|
6335
6438
|
["MAILCHIMP_FIND_CAMPAIGN" /* FindCampaign */]: {
|
|
6336
6439
|
key: "MAILCHIMP_FIND_CAMPAIGN" /* FindCampaign */,
|
|
6337
6440
|
type: WorkflowDefinitionTaskType6.http,
|
|
6338
|
-
url: `${
|
|
6441
|
+
url: `${getWorkflowsEnv(
|
|
6442
|
+
"workflowsApiUr"
|
|
6443
|
+
)}/functions/find-mailchimp-campaign`,
|
|
6339
6444
|
customization: {
|
|
6340
6445
|
provider: IntegrationNames5.Mailchimp,
|
|
6341
6446
|
product: IntegrationDisplayNames3.Mailchimp,
|
|
@@ -6497,7 +6602,9 @@ var mailchimpTaskTemplates = {
|
|
|
6497
6602
|
taskReferenceName: "mailchimp_add_contact",
|
|
6498
6603
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6499
6604
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6500
|
-
uri: `${
|
|
6605
|
+
uri: `${getWorkflowsEnv(
|
|
6606
|
+
"workflowsApiUr"
|
|
6607
|
+
)}/functions/add-mailchimp-subscriber`,
|
|
6501
6608
|
method: "POST",
|
|
6502
6609
|
body: {
|
|
6503
6610
|
list_id: null,
|
|
@@ -6517,7 +6624,9 @@ var mailchimpTaskTemplates = {
|
|
|
6517
6624
|
taskReferenceName: "mailchimp_add_campaign",
|
|
6518
6625
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6519
6626
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6520
|
-
uri: `${
|
|
6627
|
+
uri: `${getWorkflowsEnv(
|
|
6628
|
+
"workflowsApiUr"
|
|
6629
|
+
)}/functions/add-mailchimp-campaign`,
|
|
6521
6630
|
method: "POST",
|
|
6522
6631
|
body: {
|
|
6523
6632
|
type: null,
|
|
@@ -6548,7 +6657,9 @@ var mailchimpTaskTemplates = {
|
|
|
6548
6657
|
taskReferenceName: "mailchimp_send_campaign",
|
|
6549
6658
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6550
6659
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6551
|
-
uri: `${
|
|
6660
|
+
uri: `${getWorkflowsEnv(
|
|
6661
|
+
"workflowsApiUr"
|
|
6662
|
+
)}/functions/send-mailchimp-campaign`,
|
|
6552
6663
|
method: "POST",
|
|
6553
6664
|
body: {
|
|
6554
6665
|
campaign_id: null
|
|
@@ -6565,7 +6676,9 @@ var mailchimpTaskTemplates = {
|
|
|
6565
6676
|
taskReferenceName: "mailchimp_add_or_update_subscriber",
|
|
6566
6677
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6567
6678
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6568
|
-
uri: `${
|
|
6679
|
+
uri: `${getWorkflowsEnv(
|
|
6680
|
+
"workflowsApiUr"
|
|
6681
|
+
)}/functions/add-or-update-mailchimp-subscriber`,
|
|
6569
6682
|
method: "POST",
|
|
6570
6683
|
body: {
|
|
6571
6684
|
list_id: null,
|
|
@@ -6585,7 +6698,9 @@ var mailchimpTaskTemplates = {
|
|
|
6585
6698
|
taskReferenceName: "mailchimp_update_subscriber",
|
|
6586
6699
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6587
6700
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6588
|
-
uri: `${
|
|
6701
|
+
uri: `${getWorkflowsEnv(
|
|
6702
|
+
"workflowsApiUr"
|
|
6703
|
+
)}/functions/update-mailchimp-subscriber`,
|
|
6589
6704
|
method: "POST",
|
|
6590
6705
|
body: {
|
|
6591
6706
|
list_id: null,
|
|
@@ -6605,7 +6720,9 @@ var mailchimpTaskTemplates = {
|
|
|
6605
6720
|
taskReferenceName: "mailchimp_archive_subscriber",
|
|
6606
6721
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6607
6722
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6608
|
-
uri: `${
|
|
6723
|
+
uri: `${getWorkflowsEnv(
|
|
6724
|
+
"workflowsApiUr"
|
|
6725
|
+
)}/functions/archive-mailchimp-subscriber`,
|
|
6609
6726
|
method: "POST",
|
|
6610
6727
|
body: {
|
|
6611
6728
|
list_id: null,
|
|
@@ -6623,7 +6740,9 @@ var mailchimpTaskTemplates = {
|
|
|
6623
6740
|
taskReferenceName: "mailchimp_delete_subscriber",
|
|
6624
6741
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6625
6742
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6626
|
-
uri: `${
|
|
6743
|
+
uri: `${getWorkflowsEnv(
|
|
6744
|
+
"workflowsApiUr"
|
|
6745
|
+
)}/functions/delete-mailchimp-subscriber`,
|
|
6627
6746
|
method: "POST",
|
|
6628
6747
|
body: {
|
|
6629
6748
|
list_id: null,
|
|
@@ -6641,7 +6760,9 @@ var mailchimpTaskTemplates = {
|
|
|
6641
6760
|
taskReferenceName: "mailchimp_add_subscriber_tag",
|
|
6642
6761
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6643
6762
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6644
|
-
uri: `${
|
|
6763
|
+
uri: `${getWorkflowsEnv(
|
|
6764
|
+
"workflowsApiUr"
|
|
6765
|
+
)}/functions/add-mailchimp-subscriber-tag`,
|
|
6645
6766
|
method: "POST",
|
|
6646
6767
|
body: {
|
|
6647
6768
|
list_id: null,
|
|
@@ -6660,7 +6781,9 @@ var mailchimpTaskTemplates = {
|
|
|
6660
6781
|
taskReferenceName: "mailchimp_add_subscriber_event",
|
|
6661
6782
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6662
6783
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6663
|
-
uri: `${
|
|
6784
|
+
uri: `${getWorkflowsEnv(
|
|
6785
|
+
"workflowsApiUr"
|
|
6786
|
+
)}/functions/add-mailchimp-subscriber-event`,
|
|
6664
6787
|
method: "POST",
|
|
6665
6788
|
body: {
|
|
6666
6789
|
list_id: null,
|
|
@@ -6679,7 +6802,9 @@ var mailchimpTaskTemplates = {
|
|
|
6679
6802
|
taskReferenceName: "mailchimp_add_subscriber_note",
|
|
6680
6803
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6681
6804
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6682
|
-
uri: `${
|
|
6805
|
+
uri: `${getWorkflowsEnv(
|
|
6806
|
+
"workflowsApiUr"
|
|
6807
|
+
)}/functions/add-mailchimp-subscriber-note`,
|
|
6683
6808
|
method: "POST",
|
|
6684
6809
|
body: {
|
|
6685
6810
|
list_id: null,
|
|
@@ -6698,7 +6823,9 @@ var mailchimpTaskTemplates = {
|
|
|
6698
6823
|
taskReferenceName: "mailchimp_delete_subscriber_tag",
|
|
6699
6824
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6700
6825
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6701
|
-
uri: `${
|
|
6826
|
+
uri: `${getWorkflowsEnv(
|
|
6827
|
+
"workflowsApiUr"
|
|
6828
|
+
)}/functions/delete-mailchimp-subscriber-tag`,
|
|
6702
6829
|
method: "POST",
|
|
6703
6830
|
body: {
|
|
6704
6831
|
list_id: null,
|
|
@@ -6717,7 +6844,9 @@ var mailchimpTaskTemplates = {
|
|
|
6717
6844
|
taskReferenceName: "mailchimp_get_subscriber_tags",
|
|
6718
6845
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6719
6846
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6720
|
-
uri: `${
|
|
6847
|
+
uri: `${getWorkflowsEnv(
|
|
6848
|
+
"workflowsApiUr"
|
|
6849
|
+
)}/functions/get-mailchimp-subscriber-tags?list_id=#{list_id}&email=#{email}`,
|
|
6721
6850
|
method: "GET",
|
|
6722
6851
|
body: {},
|
|
6723
6852
|
headers: {
|
|
@@ -6732,7 +6861,9 @@ var mailchimpTaskTemplates = {
|
|
|
6732
6861
|
taskReferenceName: "mailchimp_get_subscriber",
|
|
6733
6862
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6734
6863
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6735
|
-
uri: `${
|
|
6864
|
+
uri: `${getWorkflowsEnv(
|
|
6865
|
+
"workflowsApiUr"
|
|
6866
|
+
)}/functions/get-mailchimp-subscriber?list_id=#{list_id}&email=#{email}`,
|
|
6736
6867
|
method: "GET",
|
|
6737
6868
|
body: {},
|
|
6738
6869
|
headers: {
|
|
@@ -6747,7 +6878,9 @@ var mailchimpTaskTemplates = {
|
|
|
6747
6878
|
taskReferenceName: "mailchimp_get_subscribers",
|
|
6748
6879
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6749
6880
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6750
|
-
uri: `${
|
|
6881
|
+
uri: `${getWorkflowsEnv(
|
|
6882
|
+
"workflowsApiUr"
|
|
6883
|
+
)}/functions/find-mailchimp-subscribers?list_id=#{list_id}&query=#{query}`,
|
|
6751
6884
|
method: "GET",
|
|
6752
6885
|
body: {},
|
|
6753
6886
|
headers: {
|
|
@@ -6762,7 +6895,9 @@ var mailchimpTaskTemplates = {
|
|
|
6762
6895
|
taskReferenceName: "mailchimp_find_campaign",
|
|
6763
6896
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
6764
6897
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
6765
|
-
uri: `${
|
|
6898
|
+
uri: `${getWorkflowsEnv(
|
|
6899
|
+
"workflowsApiUr"
|
|
6900
|
+
)}/functions/find-mailchimp-campaign?campaign_id=#{campaign_id}`,
|
|
6766
6901
|
method: "POST",
|
|
6767
6902
|
body: {},
|
|
6768
6903
|
headers: {
|
|
@@ -6874,12 +7009,13 @@ var mailchimpTriggerTemplates = {
|
|
|
6874
7009
|
|
|
6875
7010
|
// src/views/Flows/Definitions/Mocks/OpenAI/index.ts
|
|
6876
7011
|
import { WorkflowDefinitionTaskType as WorkflowDefinitionTaskType7 } from "@livechat/developer-studio-api";
|
|
6877
|
-
var config7 = getWorkflowsConfig();
|
|
6878
7012
|
var openAiTaskConfigs = {
|
|
6879
7013
|
["OPENAI_EXTRACT_ORDER_REQUEST" /* ExtractOrderRequest */]: {
|
|
6880
7014
|
key: "OPENAI_EXTRACT_ORDER_REQUEST" /* ExtractOrderRequest */,
|
|
6881
7015
|
type: WorkflowDefinitionTaskType7.http,
|
|
6882
|
-
url: `${
|
|
7016
|
+
url: `${getWorkflowsEnv(
|
|
7017
|
+
"workflowsApiUr"
|
|
7018
|
+
)}/functions/extract-order-from-text`,
|
|
6883
7019
|
customization: {
|
|
6884
7020
|
provider: OTHER_PRODUCT_TYPE.OPENAI,
|
|
6885
7021
|
product: "OpenAI",
|
|
@@ -6968,7 +7104,9 @@ var openAiTaskConfigs = {
|
|
|
6968
7104
|
["OPENAI_ANALYZE_TEXT_SENTIMENT" /* AnalyzeTextSentiment */]: {
|
|
6969
7105
|
key: "OPENAI_ANALYZE_TEXT_SENTIMENT" /* AnalyzeTextSentiment */,
|
|
6970
7106
|
type: WorkflowDefinitionTaskType7.http,
|
|
6971
|
-
url: `${
|
|
7107
|
+
url: `${getWorkflowsEnv(
|
|
7108
|
+
"workflowsApiUr"
|
|
7109
|
+
)}/functions/analyze-text-sentiment`,
|
|
6972
7110
|
customization: {
|
|
6973
7111
|
provider: OTHER_PRODUCT_TYPE.OPENAI,
|
|
6974
7112
|
product: "OpenAI",
|
|
@@ -7003,7 +7141,7 @@ var openAiTaskConfigs = {
|
|
|
7003
7141
|
["OPENAI_SUMMARIZE_TEXT" /* SummarizeText */]: {
|
|
7004
7142
|
key: "OPENAI_SUMMARIZE_TEXT" /* SummarizeText */,
|
|
7005
7143
|
type: WorkflowDefinitionTaskType7.http,
|
|
7006
|
-
url: `${
|
|
7144
|
+
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
|
|
7007
7145
|
customization: {
|
|
7008
7146
|
provider: OTHER_PRODUCT_TYPE.OPENAI,
|
|
7009
7147
|
product: "OpenAI",
|
|
@@ -7038,7 +7176,7 @@ var openAiTaskConfigs = {
|
|
|
7038
7176
|
["OPENAI_MODERATE_TEXT" /* ModerateText */]: {
|
|
7039
7177
|
key: "OPENAI_MODERATE_TEXT" /* ModerateText */,
|
|
7040
7178
|
type: WorkflowDefinitionTaskType7.http,
|
|
7041
|
-
url: `${
|
|
7179
|
+
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
|
|
7042
7180
|
customization: {
|
|
7043
7181
|
provider: OTHER_PRODUCT_TYPE.OPENAI,
|
|
7044
7182
|
product: "OpenAI",
|
|
@@ -7072,7 +7210,7 @@ var openAiTaskConfigs = {
|
|
|
7072
7210
|
["OPENAI_CATEGORIZE_TEXT" /* CategorizeText */]: {
|
|
7073
7211
|
key: "OPENAI_CATEGORIZE_TEXT" /* CategorizeText */,
|
|
7074
7212
|
type: WorkflowDefinitionTaskType7.http,
|
|
7075
|
-
url: `${
|
|
7213
|
+
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
|
|
7076
7214
|
customization: {
|
|
7077
7215
|
provider: OTHER_PRODUCT_TYPE.OPENAI,
|
|
7078
7216
|
product: "OpenAI",
|
|
@@ -7119,7 +7257,9 @@ var openAiTaskTemplates = {
|
|
|
7119
7257
|
taskReferenceName: "openai_extract_order_request",
|
|
7120
7258
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7121
7259
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7122
|
-
uri: `${
|
|
7260
|
+
uri: `${getWorkflowsEnv(
|
|
7261
|
+
"workflowsApiUr"
|
|
7262
|
+
)}/functions/extract-order-from-text`,
|
|
7123
7263
|
method: "POST",
|
|
7124
7264
|
body: {
|
|
7125
7265
|
text: "#{chat_transcript}"
|
|
@@ -7136,7 +7276,9 @@ var openAiTaskTemplates = {
|
|
|
7136
7276
|
taskReferenceName: "openai_text_sentiment",
|
|
7137
7277
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7138
7278
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7139
|
-
uri: `${
|
|
7279
|
+
uri: `${getWorkflowsEnv(
|
|
7280
|
+
"workflowsApiUr"
|
|
7281
|
+
)}/functions/analyze-text-sentiment`,
|
|
7140
7282
|
method: "POST",
|
|
7141
7283
|
body: {
|
|
7142
7284
|
text: "#{chat_transcript}"
|
|
@@ -7153,7 +7295,7 @@ var openAiTaskTemplates = {
|
|
|
7153
7295
|
taskReferenceName: "openai_summarize_text",
|
|
7154
7296
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7155
7297
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7156
|
-
uri: `${
|
|
7298
|
+
uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
|
|
7157
7299
|
method: "POST",
|
|
7158
7300
|
body: {
|
|
7159
7301
|
text: "#{chat_transcript}"
|
|
@@ -7170,7 +7312,7 @@ var openAiTaskTemplates = {
|
|
|
7170
7312
|
taskReferenceName: "openai_moderate_text",
|
|
7171
7313
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7172
7314
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7173
|
-
uri: `${
|
|
7315
|
+
uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
|
|
7174
7316
|
method: "POST",
|
|
7175
7317
|
body: {
|
|
7176
7318
|
text: "#{chat_transcript}"
|
|
@@ -7187,7 +7329,7 @@ var openAiTaskTemplates = {
|
|
|
7187
7329
|
taskReferenceName: "openai_categorize_text",
|
|
7188
7330
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
7189
7331
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
7190
|
-
uri: `${
|
|
7332
|
+
uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
|
|
7191
7333
|
method: "POST",
|
|
7192
7334
|
body: {
|
|
7193
7335
|
text: "#{chat_transcript}"
|
|
@@ -7208,7 +7350,6 @@ import {
|
|
|
7208
7350
|
ShopifyEventNames,
|
|
7209
7351
|
WorkflowDefinitionTaskType as WorkflowDefinitionTaskType8
|
|
7210
7352
|
} from "@livechat/developer-studio-api";
|
|
7211
|
-
var config8 = getWorkflowsConfig();
|
|
7212
7353
|
var shopifyCustomerAddressBody = {
|
|
7213
7354
|
id: {
|
|
7214
7355
|
type: "number",
|
|
@@ -7632,7 +7773,9 @@ var shopifyTaskConfigs = {
|
|
|
7632
7773
|
["SHOPIFY_CREATE_CUSTOMER" /* CreateCustomer */]: {
|
|
7633
7774
|
key: "SHOPIFY_CREATE_CUSTOMER" /* CreateCustomer */,
|
|
7634
7775
|
type: WorkflowDefinitionTaskType8.http,
|
|
7635
|
-
url: `${
|
|
7776
|
+
url: `${getWorkflowsEnv(
|
|
7777
|
+
"workflowsApiUr"
|
|
7778
|
+
)}/functions/create-shopify-customer`,
|
|
7636
7779
|
customization: {
|
|
7637
7780
|
provider: IntegrationNames6.Shopify,
|
|
7638
7781
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7656,7 +7799,9 @@ var shopifyTaskConfigs = {
|
|
|
7656
7799
|
["SHOPIFY_CREATE_ORDER" /* CreateOrder */]: {
|
|
7657
7800
|
key: "SHOPIFY_CREATE_ORDER" /* CreateOrder */,
|
|
7658
7801
|
type: WorkflowDefinitionTaskType8.http,
|
|
7659
|
-
url: `${
|
|
7802
|
+
url: `${getWorkflowsEnv(
|
|
7803
|
+
"workflowsApiUr"
|
|
7804
|
+
)}/functions/create-shopify-order`,
|
|
7660
7805
|
customization: {
|
|
7661
7806
|
provider: IntegrationNames6.Shopify,
|
|
7662
7807
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7679,7 +7824,9 @@ var shopifyTaskConfigs = {
|
|
|
7679
7824
|
["SHOPIFY_CREATE_DRAFT_ORDER" /* CreateDraftOrder */]: {
|
|
7680
7825
|
key: "SHOPIFY_CREATE_DRAFT_ORDER" /* CreateDraftOrder */,
|
|
7681
7826
|
type: WorkflowDefinitionTaskType8.http,
|
|
7682
|
-
url: `${
|
|
7827
|
+
url: `${getWorkflowsEnv(
|
|
7828
|
+
"workflowsApiUr"
|
|
7829
|
+
)}/functions/create-shopify-draft-order`,
|
|
7683
7830
|
customization: {
|
|
7684
7831
|
provider: IntegrationNames6.Shopify,
|
|
7685
7832
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7702,7 +7849,9 @@ var shopifyTaskConfigs = {
|
|
|
7702
7849
|
["SHOPIFY_CREATE_PRODUCT" /* CreateProduct */]: {
|
|
7703
7850
|
key: "SHOPIFY_CREATE_PRODUCT" /* CreateProduct */,
|
|
7704
7851
|
type: WorkflowDefinitionTaskType8.http,
|
|
7705
|
-
url: `${
|
|
7852
|
+
url: `${getWorkflowsEnv(
|
|
7853
|
+
"workflowsApiUr"
|
|
7854
|
+
)}/functions/create-shopify-product`,
|
|
7706
7855
|
customization: {
|
|
7707
7856
|
provider: IntegrationNames6.Shopify,
|
|
7708
7857
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7725,7 +7874,9 @@ var shopifyTaskConfigs = {
|
|
|
7725
7874
|
["SHOPIFY_CREATE_PRODUCT_VARIANT" /* CreateProductVariant */]: {
|
|
7726
7875
|
type: WorkflowDefinitionTaskType8.http,
|
|
7727
7876
|
key: "SHOPIFY_CREATE_PRODUCT_VARIANT" /* CreateProductVariant */,
|
|
7728
|
-
url: `${
|
|
7877
|
+
url: `${getWorkflowsEnv(
|
|
7878
|
+
"workflowsApiUr"
|
|
7879
|
+
)}/functions/create-shopify-product-variant`,
|
|
7729
7880
|
customization: {
|
|
7730
7881
|
provider: IntegrationNames6.Shopify,
|
|
7731
7882
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7748,7 +7899,9 @@ var shopifyTaskConfigs = {
|
|
|
7748
7899
|
["SHOPIFY_GET_CUSTOMER" /* GetCustomer */]: {
|
|
7749
7900
|
key: "SHOPIFY_GET_CUSTOMER" /* GetCustomer */,
|
|
7750
7901
|
type: WorkflowDefinitionTaskType8.http,
|
|
7751
|
-
url: `${
|
|
7902
|
+
url: `${getWorkflowsEnv(
|
|
7903
|
+
"workflowsApiUr"
|
|
7904
|
+
)}/functions/get-shopify-customer`,
|
|
7752
7905
|
customization: {
|
|
7753
7906
|
provider: IntegrationNames6.Shopify,
|
|
7754
7907
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7777,7 +7930,9 @@ var shopifyTaskConfigs = {
|
|
|
7777
7930
|
["SHOPIFY_GET_CUSTOMER_ORDERS" /* GetCustomerOrders */]: {
|
|
7778
7931
|
key: "SHOPIFY_GET_CUSTOMER_ORDERS" /* GetCustomerOrders */,
|
|
7779
7932
|
type: WorkflowDefinitionTaskType8.http,
|
|
7780
|
-
url: `${
|
|
7933
|
+
url: `${getWorkflowsEnv(
|
|
7934
|
+
"workflowsApiUr"
|
|
7935
|
+
)}/functions/get-shopify-customer-orders`,
|
|
7781
7936
|
customization: {
|
|
7782
7937
|
provider: IntegrationNames6.Shopify,
|
|
7783
7938
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7809,7 +7964,9 @@ var shopifyTaskConfigs = {
|
|
|
7809
7964
|
["SHOPIFY_GET_CUSTOMER_LAST_ORDER" /* GetCustomerLastOrder */]: {
|
|
7810
7965
|
key: "SHOPIFY_GET_CUSTOMER_LAST_ORDER" /* GetCustomerLastOrder */,
|
|
7811
7966
|
type: WorkflowDefinitionTaskType8.http,
|
|
7812
|
-
url: `${
|
|
7967
|
+
url: `${getWorkflowsEnv(
|
|
7968
|
+
"workflowsApiUr"
|
|
7969
|
+
)}/functions/get-shopify-customer-last-order`,
|
|
7813
7970
|
customization: {
|
|
7814
7971
|
provider: IntegrationNames6.Shopify,
|
|
7815
7972
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7838,7 +7995,7 @@ var shopifyTaskConfigs = {
|
|
|
7838
7995
|
["SHOPIFY_GET_PRODUCT" /* GetProduct */]: {
|
|
7839
7996
|
type: WorkflowDefinitionTaskType8.http,
|
|
7840
7997
|
key: "SHOPIFY_GET_PRODUCT" /* GetProduct */,
|
|
7841
|
-
url: `${
|
|
7998
|
+
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-shopify-product`,
|
|
7842
7999
|
customization: {
|
|
7843
8000
|
provider: IntegrationNames6.Shopify,
|
|
7844
8001
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7868,7 +8025,9 @@ var shopifyTaskConfigs = {
|
|
|
7868
8025
|
["SHOPIFY_GET_PRODUCT_VARIANT" /* GetProductVariant */]: {
|
|
7869
8026
|
key: "SHOPIFY_GET_PRODUCT_VARIANT" /* GetProductVariant */,
|
|
7870
8027
|
type: WorkflowDefinitionTaskType8.http,
|
|
7871
|
-
url: `${
|
|
8028
|
+
url: `${getWorkflowsEnv(
|
|
8029
|
+
"workflowsApiUr"
|
|
8030
|
+
)}/functions/get-shopify-product-variant`,
|
|
7872
8031
|
customization: {
|
|
7873
8032
|
provider: IntegrationNames6.Shopify,
|
|
7874
8033
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7901,7 +8060,9 @@ var shopifyTaskConfigs = {
|
|
|
7901
8060
|
["SHOPIFY_UPDATE_INVENTORY_QUANTITY" /* UpdateInventoryQuantity */]: {
|
|
7902
8061
|
key: "SHOPIFY_UPDATE_INVENTORY_QUANTITY" /* UpdateInventoryQuantity */,
|
|
7903
8062
|
type: WorkflowDefinitionTaskType8.http,
|
|
7904
|
-
url: `${
|
|
8063
|
+
url: `${getWorkflowsEnv(
|
|
8064
|
+
"workflowsApiUr"
|
|
8065
|
+
)}/functions/update-shopify-inventory-quantity`,
|
|
7905
8066
|
customization: {
|
|
7906
8067
|
provider: IntegrationNames6.Shopify,
|
|
7907
8068
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7967,7 +8128,9 @@ var shopifyTaskConfigs = {
|
|
|
7967
8128
|
["SHOPIFY_UPDATE_ORDER" /* UpdateOrder */]: {
|
|
7968
8129
|
type: WorkflowDefinitionTaskType8.http,
|
|
7969
8130
|
key: "SHOPIFY_UPDATE_ORDER" /* UpdateOrder */,
|
|
7970
|
-
url: `${
|
|
8131
|
+
url: `${getWorkflowsEnv(
|
|
8132
|
+
"workflowsApiUr"
|
|
8133
|
+
)}/functions/update-shopify-order`,
|
|
7971
8134
|
customization: {
|
|
7972
8135
|
provider: IntegrationNames6.Shopify,
|
|
7973
8136
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -7990,7 +8153,9 @@ var shopifyTaskConfigs = {
|
|
|
7990
8153
|
["SHOPIFY_UPDATE_PRODUCT" /* UpdateProduct */]: {
|
|
7991
8154
|
key: "SHOPIFY_UPDATE_PRODUCT" /* UpdateProduct */,
|
|
7992
8155
|
type: WorkflowDefinitionTaskType8.http,
|
|
7993
|
-
url: `${
|
|
8156
|
+
url: `${getWorkflowsEnv(
|
|
8157
|
+
"workflowsApiUr"
|
|
8158
|
+
)}/functions/update-shopify-product`,
|
|
7994
8159
|
customization: {
|
|
7995
8160
|
provider: IntegrationNames6.Shopify,
|
|
7996
8161
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -8013,7 +8178,9 @@ var shopifyTaskConfigs = {
|
|
|
8013
8178
|
["SHOPIFY_UPDATE_PRODUCT_VARIANT" /* UpdateProductVariant */]: {
|
|
8014
8179
|
key: "SHOPIFY_UPDATE_PRODUCT_VARIANT" /* UpdateProductVariant */,
|
|
8015
8180
|
type: WorkflowDefinitionTaskType8.http,
|
|
8016
|
-
url: `${
|
|
8181
|
+
url: `${getWorkflowsEnv(
|
|
8182
|
+
"workflowsApiUr"
|
|
8183
|
+
)}/functions/update-shopify-product-variant`,
|
|
8017
8184
|
customization: {
|
|
8018
8185
|
provider: IntegrationNames6.Shopify,
|
|
8019
8186
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -8036,7 +8203,9 @@ var shopifyTaskConfigs = {
|
|
|
8036
8203
|
["SHOPIFY_UPDATE_CUSTOMER" /* UpdateCustomer */]: {
|
|
8037
8204
|
key: "SHOPIFY_UPDATE_CUSTOMER" /* UpdateCustomer */,
|
|
8038
8205
|
type: WorkflowDefinitionTaskType8.http,
|
|
8039
|
-
url: `${
|
|
8206
|
+
url: `${getWorkflowsEnv(
|
|
8207
|
+
"workflowsApiUr"
|
|
8208
|
+
)}/functions/update-shopify-customer`,
|
|
8040
8209
|
customization: {
|
|
8041
8210
|
provider: IntegrationNames6.Shopify,
|
|
8042
8211
|
product: IntegrationDisplayNames4.Shopify,
|
|
@@ -8063,7 +8232,9 @@ var shopifyTaskTemplates = {
|
|
|
8063
8232
|
taskReferenceName: "shopify_create_customer",
|
|
8064
8233
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8065
8234
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8066
|
-
uri: `${
|
|
8235
|
+
uri: `${getWorkflowsEnv(
|
|
8236
|
+
"workflowsApiUr"
|
|
8237
|
+
)}/functions/create-shopify-customer`,
|
|
8067
8238
|
method: "POST",
|
|
8068
8239
|
body: {
|
|
8069
8240
|
first_name: "#{first_name}",
|
|
@@ -8083,7 +8254,9 @@ var shopifyTaskTemplates = {
|
|
|
8083
8254
|
taskReferenceName: "shopify_create_order",
|
|
8084
8255
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8085
8256
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8086
|
-
uri: `${
|
|
8257
|
+
uri: `${getWorkflowsEnv(
|
|
8258
|
+
"workflowsApiUr"
|
|
8259
|
+
)}/functions/create-shopify-order`,
|
|
8087
8260
|
method: "POST",
|
|
8088
8261
|
body: {},
|
|
8089
8262
|
headers: {
|
|
@@ -8099,7 +8272,9 @@ var shopifyTaskTemplates = {
|
|
|
8099
8272
|
taskReferenceName: "shopify_create_draft_order",
|
|
8100
8273
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8101
8274
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8102
|
-
uri: `${
|
|
8275
|
+
uri: `${getWorkflowsEnv(
|
|
8276
|
+
"workflowsApiUr"
|
|
8277
|
+
)}/functions/create-shopify-draft-order`,
|
|
8103
8278
|
method: "POST",
|
|
8104
8279
|
body: {},
|
|
8105
8280
|
headers: {
|
|
@@ -8115,7 +8290,9 @@ var shopifyTaskTemplates = {
|
|
|
8115
8290
|
taskReferenceName: "shopify_create_product",
|
|
8116
8291
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8117
8292
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8118
|
-
uri: `${
|
|
8293
|
+
uri: `${getWorkflowsEnv(
|
|
8294
|
+
"workflowsApiUr"
|
|
8295
|
+
)}/functions/create-shopify-product`,
|
|
8119
8296
|
method: "POST",
|
|
8120
8297
|
body: {},
|
|
8121
8298
|
headers: {
|
|
@@ -8131,7 +8308,9 @@ var shopifyTaskTemplates = {
|
|
|
8131
8308
|
taskReferenceName: "shopify_create_product_variant",
|
|
8132
8309
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8133
8310
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8134
|
-
uri: `${
|
|
8311
|
+
uri: `${getWorkflowsEnv(
|
|
8312
|
+
"workflowsApiUr"
|
|
8313
|
+
)}/functions/create-shopify-product-variant`,
|
|
8135
8314
|
method: "POST",
|
|
8136
8315
|
body: {},
|
|
8137
8316
|
headers: {
|
|
@@ -8147,7 +8326,9 @@ var shopifyTaskTemplates = {
|
|
|
8147
8326
|
taskReferenceName: "shopify_get_customer",
|
|
8148
8327
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8149
8328
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8150
|
-
uri: `${
|
|
8329
|
+
uri: `${getWorkflowsEnv(
|
|
8330
|
+
"workflowsApiUr"
|
|
8331
|
+
)}/functions/get-shopify-customer?email=#{email}`,
|
|
8151
8332
|
method: "GET",
|
|
8152
8333
|
body: {},
|
|
8153
8334
|
headers: {
|
|
@@ -8163,7 +8344,9 @@ var shopifyTaskTemplates = {
|
|
|
8163
8344
|
taskReferenceName: "shopify_get_customer_orders",
|
|
8164
8345
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8165
8346
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8166
|
-
uri: `${
|
|
8347
|
+
uri: `${getWorkflowsEnv(
|
|
8348
|
+
"workflowsApiUr"
|
|
8349
|
+
)}/functions/get-shopify-customer-orders?email=#{email}`,
|
|
8167
8350
|
method: "GET",
|
|
8168
8351
|
body: {},
|
|
8169
8352
|
headers: {
|
|
@@ -8179,7 +8362,9 @@ var shopifyTaskTemplates = {
|
|
|
8179
8362
|
taskReferenceName: "shopify_get_customer_last_order",
|
|
8180
8363
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8181
8364
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8182
|
-
uri: `${
|
|
8365
|
+
uri: `${getWorkflowsEnv(
|
|
8366
|
+
"workflowsApiUr"
|
|
8367
|
+
)}/functions/get-shopify-customer-last-order?email=#{email}`,
|
|
8183
8368
|
method: "GET",
|
|
8184
8369
|
body: {},
|
|
8185
8370
|
headers: {
|
|
@@ -8195,7 +8380,9 @@ var shopifyTaskTemplates = {
|
|
|
8195
8380
|
taskReferenceName: "shopify_get_product",
|
|
8196
8381
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8197
8382
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8198
|
-
uri: `${
|
|
8383
|
+
uri: `${getWorkflowsEnv(
|
|
8384
|
+
"workflowsApiUr"
|
|
8385
|
+
)}/functions/get-shopify-product?product_id=#{product_id}`,
|
|
8199
8386
|
method: "GET",
|
|
8200
8387
|
body: {},
|
|
8201
8388
|
headers: {
|
|
@@ -8211,7 +8398,9 @@ var shopifyTaskTemplates = {
|
|
|
8211
8398
|
taskReferenceName: "shopify_get_product_variant",
|
|
8212
8399
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8213
8400
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8214
|
-
uri: `${
|
|
8401
|
+
uri: `${getWorkflowsEnv(
|
|
8402
|
+
"workflowsApiUr"
|
|
8403
|
+
)}/functions/get-shopify-product-variant?product_id=#{product_id}&title=#{title}`,
|
|
8215
8404
|
method: "GET",
|
|
8216
8405
|
body: {},
|
|
8217
8406
|
headers: {
|
|
@@ -8227,7 +8416,9 @@ var shopifyTaskTemplates = {
|
|
|
8227
8416
|
taskReferenceName: "shopify_update_inventory_quantity",
|
|
8228
8417
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8229
8418
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8230
|
-
uri: `${
|
|
8419
|
+
uri: `${getWorkflowsEnv(
|
|
8420
|
+
"workflowsApiUr"
|
|
8421
|
+
)}/functions/update-shopify-inventory-quantity`,
|
|
8231
8422
|
method: "PATCH",
|
|
8232
8423
|
body: {
|
|
8233
8424
|
inventory_item_id: "#{inventory_item_id}",
|
|
@@ -8246,7 +8437,9 @@ var shopifyTaskTemplates = {
|
|
|
8246
8437
|
taskReferenceName: "shopify_update_order",
|
|
8247
8438
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8248
8439
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8249
|
-
uri: `${
|
|
8440
|
+
uri: `${getWorkflowsEnv(
|
|
8441
|
+
"workflowsApiUr"
|
|
8442
|
+
)}/functions/update-shopify-order`,
|
|
8250
8443
|
method: "PATCH",
|
|
8251
8444
|
body: {},
|
|
8252
8445
|
headers: {
|
|
@@ -8262,7 +8455,9 @@ var shopifyTaskTemplates = {
|
|
|
8262
8455
|
taskReferenceName: "shopify_update_product",
|
|
8263
8456
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8264
8457
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8265
|
-
uri: `${
|
|
8458
|
+
uri: `${getWorkflowsEnv(
|
|
8459
|
+
"workflowsApiUr"
|
|
8460
|
+
)}/functions/update-shopify-product`,
|
|
8266
8461
|
method: "PATCH",
|
|
8267
8462
|
body: {},
|
|
8268
8463
|
headers: {
|
|
@@ -8278,7 +8473,9 @@ var shopifyTaskTemplates = {
|
|
|
8278
8473
|
taskReferenceName: "shopify_update_product_variant",
|
|
8279
8474
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8280
8475
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8281
|
-
uri: `${
|
|
8476
|
+
uri: `${getWorkflowsEnv(
|
|
8477
|
+
"workflowsApiUr"
|
|
8478
|
+
)}/functions/update-shopify-product-variant`,
|
|
8282
8479
|
method: "PATCH",
|
|
8283
8480
|
body: {},
|
|
8284
8481
|
headers: {
|
|
@@ -8294,7 +8491,9 @@ var shopifyTaskTemplates = {
|
|
|
8294
8491
|
taskReferenceName: "shopify_update_customer",
|
|
8295
8492
|
inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
|
|
8296
8493
|
http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
|
|
8297
|
-
uri: `${
|
|
8494
|
+
uri: `${getWorkflowsEnv(
|
|
8495
|
+
"workflowsApiUr"
|
|
8496
|
+
)}/functions/update-shopify-customer`,
|
|
8298
8497
|
method: "PATCH",
|
|
8299
8498
|
body: {},
|
|
8300
8499
|
headers: {
|
|
@@ -8668,17 +8867,17 @@ var WORKFLOW_SCHEMA = {
|
|
|
8668
8867
|
},
|
|
8669
8868
|
then: WORKFLOW_HTTP_TASK_SCHEMA()
|
|
8670
8869
|
},
|
|
8671
|
-
...Object.values(workflowItemConfigs.tasks).map((
|
|
8870
|
+
...Object.values(workflowItemConfigs.tasks).map((config4) => {
|
|
8672
8871
|
var _a, _b;
|
|
8673
8872
|
return {
|
|
8674
8873
|
if: {
|
|
8675
8874
|
properties: {
|
|
8676
8875
|
type: { const: WorkflowDefinitionTaskType9.http },
|
|
8677
|
-
name: { const:
|
|
8876
|
+
name: { const: config4.key }
|
|
8678
8877
|
}
|
|
8679
8878
|
},
|
|
8680
|
-
then: WORKFLOW_HTTP_TASK_SCHEMA(
|
|
8681
|
-
body: (_b = (_a =
|
|
8879
|
+
then: WORKFLOW_HTTP_TASK_SCHEMA(config4.key, {
|
|
8880
|
+
body: (_b = (_a = config4.specification.input) == null ? void 0 : _a.properties) == null ? void 0 : _b.body
|
|
8682
8881
|
})
|
|
8683
8882
|
};
|
|
8684
8883
|
})
|
|
@@ -8769,13 +8968,13 @@ var WORKFLOW_SCHEMA = {
|
|
|
8769
8968
|
description: "This object holds the declaration of your workflow trigger.",
|
|
8770
8969
|
default: {},
|
|
8771
8970
|
allOf: [
|
|
8772
|
-
...Object.values(workflowItemConfigs.triggers).map((
|
|
8971
|
+
...Object.values(workflowItemConfigs.triggers).map((config4) => {
|
|
8773
8972
|
var _a, _b;
|
|
8774
|
-
if (
|
|
8973
|
+
if (config4.type === "webhook") {
|
|
8775
8974
|
return {
|
|
8776
8975
|
if: {
|
|
8777
8976
|
properties: {
|
|
8778
|
-
type: { const:
|
|
8977
|
+
type: { const: config4.type }
|
|
8779
8978
|
}
|
|
8780
8979
|
},
|
|
8781
8980
|
then: {
|
|
@@ -8785,20 +8984,20 @@ var WORKFLOW_SCHEMA = {
|
|
|
8785
8984
|
webhook: {
|
|
8786
8985
|
if: {
|
|
8787
8986
|
properties: {
|
|
8788
|
-
source: { const:
|
|
8987
|
+
source: { const: config4.customization.provider }
|
|
8789
8988
|
}
|
|
8790
8989
|
},
|
|
8791
8990
|
then: {
|
|
8792
8991
|
required: ["source", "event", "headers"],
|
|
8793
8992
|
properties: {
|
|
8794
|
-
source: { const:
|
|
8993
|
+
source: { const: config4.customization.provider },
|
|
8795
8994
|
event: {
|
|
8796
8995
|
if: {
|
|
8797
8996
|
properties: {
|
|
8798
|
-
name: { const:
|
|
8997
|
+
name: { const: config4.name }
|
|
8799
8998
|
}
|
|
8800
8999
|
},
|
|
8801
|
-
then: (_a =
|
|
9000
|
+
then: (_a = config4.specification.input) != null ? _a : {}
|
|
8802
9001
|
}
|
|
8803
9002
|
}
|
|
8804
9003
|
}
|
|
@@ -8807,15 +9006,15 @@ var WORKFLOW_SCHEMA = {
|
|
|
8807
9006
|
}
|
|
8808
9007
|
};
|
|
8809
9008
|
}
|
|
8810
|
-
if (
|
|
9009
|
+
if (config4.type === "system") {
|
|
8811
9010
|
return {
|
|
8812
9011
|
if: {
|
|
8813
9012
|
properties: {
|
|
8814
|
-
type: { const:
|
|
8815
|
-
name: { const:
|
|
9013
|
+
type: { const: config4.type },
|
|
9014
|
+
name: { const: config4.key }
|
|
8816
9015
|
}
|
|
8817
9016
|
},
|
|
8818
|
-
then: (_b =
|
|
9017
|
+
then: (_b = config4.specification.input) != null ? _b : {}
|
|
8819
9018
|
};
|
|
8820
9019
|
}
|
|
8821
9020
|
throw new Error("Invalid trigger type");
|
|
@@ -9536,10 +9735,10 @@ var workflowBuilderUtils = {
|
|
|
9536
9735
|
}
|
|
9537
9736
|
};
|
|
9538
9737
|
}
|
|
9539
|
-
const
|
|
9738
|
+
const config4 = workflowBuilderUtils.getTriggerConfig({
|
|
9540
9739
|
type: "manual_only"
|
|
9541
9740
|
});
|
|
9542
|
-
return
|
|
9741
|
+
return config4;
|
|
9543
9742
|
},
|
|
9544
9743
|
getItemConfig(item) {
|
|
9545
9744
|
var _a;
|
|
@@ -9936,7 +10135,7 @@ var getTasksErrors = (workflow, frames, products) => {
|
|
|
9936
10135
|
var _a;
|
|
9937
10136
|
const globalFrame = frames.global;
|
|
9938
10137
|
const frame = frames.tasks[task2.taskReferenceName];
|
|
9939
|
-
const
|
|
10138
|
+
const config4 = (_a = frame.__meta) == null ? void 0 : _a.config;
|
|
9940
10139
|
const resolvingErrors = workflowBuilderUtils.getMatchesInObject(task2).map((match2) => {
|
|
9941
10140
|
const segments = match2.rawValue.split(".");
|
|
9942
10141
|
const resolved = workflowBuilderUtils.resolveTextByContext(
|
|
@@ -10006,10 +10205,10 @@ var getTasksErrors = (workflow, frames, products) => {
|
|
|
10006
10205
|
params: {}
|
|
10007
10206
|
};
|
|
10008
10207
|
});
|
|
10009
|
-
const activationError =
|
|
10208
|
+
const activationError = config4 && config4.customization.provider.startsWith(IntegrationNames9.Text) && !products.find(({ product }) => product === config4.customization.product) ? {
|
|
10010
10209
|
instancePath: `/definition/tasks/${index}`,
|
|
10011
10210
|
keyword: "activation",
|
|
10012
|
-
message: `${
|
|
10211
|
+
message: `${config4.customization.product} not activated`,
|
|
10013
10212
|
params: {}
|
|
10014
10213
|
} : void 0;
|
|
10015
10214
|
return [
|
|
@@ -10022,7 +10221,7 @@ var getTasksErrors = (workflow, frames, products) => {
|
|
|
10022
10221
|
var getTriggerErrors = (workflow, frames, products) => {
|
|
10023
10222
|
var _a;
|
|
10024
10223
|
const frame = frames.trigger;
|
|
10025
|
-
const
|
|
10224
|
+
const config4 = (_a = frame == null ? void 0 : frame.__meta) == null ? void 0 : _a.config;
|
|
10026
10225
|
const resolvingErrors = workflowBuilderUtils.getMatchesInObject(workflow.trigger).map((match2) => {
|
|
10027
10226
|
const segments = match2.rawValue.split(".");
|
|
10028
10227
|
const resolved = workflowBuilderUtils.resolveTextByContext(
|
|
@@ -10070,10 +10269,10 @@ var getTriggerErrors = (workflow, frames, products) => {
|
|
|
10070
10269
|
params: {}
|
|
10071
10270
|
};
|
|
10072
10271
|
});
|
|
10073
|
-
const activationError =
|
|
10272
|
+
const activationError = config4 && config4.customization.provider.startsWith(IntegrationNames9.Text) && !products.find(({ product }) => product === config4.customization.product) ? {
|
|
10074
10273
|
instancePath: `/trigger`,
|
|
10075
10274
|
keyword: "activation",
|
|
10076
|
-
message: `${
|
|
10275
|
+
message: `${config4.customization.product} not activated`,
|
|
10077
10276
|
params: {}
|
|
10078
10277
|
} : void 0;
|
|
10079
10278
|
console.log("activationError: ", activationError);
|
|
@@ -12505,10 +12704,10 @@ import { Row as Row6 } from "@livechat/developer-studio-ui-react";
|
|
|
12505
12704
|
function convertToTreeNode(obj, meta, nodeName, path) {
|
|
12506
12705
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
12507
12706
|
const index = (_a = obj.__meta) == null ? void 0 : _a.index;
|
|
12508
|
-
const
|
|
12707
|
+
const config4 = (_b = obj.__meta) == null ? void 0 : _b.config;
|
|
12509
12708
|
const properties = (_c = obj.__meta) == null ? void 0 : _c.properties;
|
|
12510
12709
|
const currentSpec = meta.specification;
|
|
12511
|
-
const customization =
|
|
12710
|
+
const customization = config4 == null ? void 0 : config4.customization;
|
|
12512
12711
|
const node2 = meta.dummy ? {
|
|
12513
12712
|
type: typeof obj,
|
|
12514
12713
|
name: nodeName,
|
|
@@ -12526,7 +12725,7 @@ function convertToTreeNode(obj, meta, nodeName, path) {
|
|
|
12526
12725
|
path: `${path != null ? path : ""}`,
|
|
12527
12726
|
relativePath: meta.baseRelativePath && path && path.startsWith(meta.baseRelativePath) ? path.replace(`${meta.baseRelativePath}.`, "") : "",
|
|
12528
12727
|
children: [],
|
|
12529
|
-
canAddChildren: (_g =
|
|
12728
|
+
canAddChildren: (_g = config4 == null ? void 0 : config4.specification) == null ? void 0 : _g.additionalProperties,
|
|
12530
12729
|
__meta: {
|
|
12531
12730
|
source: {
|
|
12532
12731
|
index: index != null ? index : meta.index,
|
|
@@ -13149,23 +13348,23 @@ var Tags_default = Tags;
|
|
|
13149
13348
|
|
|
13150
13349
|
// src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/overrides/Fields/CustomTags/TagsInput/utils.ts
|
|
13151
13350
|
var createTagFromPath = (path, frame) => {
|
|
13152
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
13351
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
13153
13352
|
const segments = path.split(".");
|
|
13154
13353
|
const relativePath = segments.slice(segments[0] === "workflow" ? 2 : 1).join(".");
|
|
13155
13354
|
const contentRelativePath = segments.slice(segments[0] === "workflow" ? segments[2] === "body" ? 3 : 2 : 4).join(".");
|
|
13156
|
-
const meta = frame ? segments[0] === "workflow" ? segments[1] === "input" ? (_a = frame.workflow.input) == null ? void 0 : _a.__meta : segments[1] === "credentials" ? frame.workflow.credentials.__meta : void 0 : frame[segments[0]].__meta : void 0;
|
|
13157
|
-
const
|
|
13158
|
-
const customization = (
|
|
13159
|
-
const specification = (
|
|
13355
|
+
const meta = frame ? segments[0] === "workflow" ? segments[1] === "input" ? (_a = frame.workflow.input) == null ? void 0 : _a.__meta : segments[1] === "credentials" ? frame.workflow.credentials.__meta : void 0 : (_b = frame[segments[0]]) == null ? void 0 : _b.__meta : void 0;
|
|
13356
|
+
const config4 = workflowBuilderUtils.getItemConfigByReference(path);
|
|
13357
|
+
const customization = (_d = (_c = meta == null ? void 0 : meta.config) == null ? void 0 : _c.customization) != null ? _d : config4 == null ? void 0 : config4.customization;
|
|
13358
|
+
const specification = (_i = workflowBuilderUtils.extractByPath(
|
|
13160
13359
|
relativePath.split(".").join(".properties."),
|
|
13161
|
-
(
|
|
13162
|
-
)) == null ? void 0 :
|
|
13360
|
+
(_h = (_f = (_e = meta == null ? void 0 : meta.config) == null ? void 0 : _e.specification) == null ? void 0 : _f.properties) != null ? _h : (_g = config4 == null ? void 0 : config4.specification.output) == null ? void 0 : _g.properties
|
|
13361
|
+
)) == null ? void 0 : _i[0];
|
|
13163
13362
|
const data = specification ? {
|
|
13164
|
-
title: (
|
|
13363
|
+
title: (_k = (_j = specification.title) != null ? _j : segments.at(-1)) != null ? _k : "",
|
|
13165
13364
|
type: specification.type,
|
|
13166
13365
|
description: specification.description
|
|
13167
13366
|
} : {
|
|
13168
|
-
title: (
|
|
13367
|
+
title: (_l = segments.at(-1)) != null ? _l : ""
|
|
13169
13368
|
};
|
|
13170
13369
|
let invalid = false;
|
|
13171
13370
|
let invalidReason = "";
|
|
@@ -13183,7 +13382,7 @@ var createTagFromPath = (path, frame) => {
|
|
|
13183
13382
|
path: relativePath,
|
|
13184
13383
|
relativePath: contentRelativePath,
|
|
13185
13384
|
name: data.title,
|
|
13186
|
-
type: (
|
|
13385
|
+
type: (_m = data.type) != null ? _m : "",
|
|
13187
13386
|
description: data.description,
|
|
13188
13387
|
invalid,
|
|
13189
13388
|
invalidReason,
|
|
@@ -15110,8 +15309,8 @@ function SwitchNode({
|
|
|
15110
15309
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
15111
15310
|
const sourceNode = nodes.find((node1) => node1.id === (node2 == null ? void 0 : node2.source));
|
|
15112
15311
|
if (sourceNode) {
|
|
15113
|
-
const
|
|
15114
|
-
const output = (_b = (_a =
|
|
15312
|
+
const config4 = workflowBuilderUtils.getTaskConfig(sourceNode.data);
|
|
15313
|
+
const output = (_b = (_a = config4.specification.output) == null ? void 0 : _a.properties) == null ? void 0 : _b.output;
|
|
15115
15314
|
const body = isJSONSchema7(output) && isJSONSchema7((_c = output.properties) == null ? void 0 : _c.response) && isJSONSchema7((_e = (_d = output.properties) == null ? void 0 : _d.response.properties) == null ? void 0 : _e.body) ? (_h = (_g = (_f = output.properties) == null ? void 0 : _f.response) == null ? void 0 : _g.properties) == null ? void 0 : _h.body : void 0;
|
|
15116
15315
|
const inputParameters = (body == null ? void 0 : body.type) === "object" ? body.properties : {};
|
|
15117
15316
|
const formattedInputParameters = {};
|
|
@@ -15711,7 +15910,7 @@ function EditNodeWrapper() {
|
|
|
15711
15910
|
if (!data) {
|
|
15712
15911
|
return /* @__PURE__ */ jsx2(Fragment4, {});
|
|
15713
15912
|
}
|
|
15714
|
-
const
|
|
15913
|
+
const config4 = (_b = frame == null ? void 0 : frame.__meta) == null ? void 0 : _b.config;
|
|
15715
15914
|
const readonly = !workflow.draft;
|
|
15716
15915
|
const contentHandler = () => {
|
|
15717
15916
|
var _a2, _b2;
|
|
@@ -15796,7 +15995,7 @@ function EditNodeWrapper() {
|
|
|
15796
15995
|
);
|
|
15797
15996
|
}
|
|
15798
15997
|
};
|
|
15799
|
-
const revertIconColor = getWorkflowsEnv("isHeadless") && ((
|
|
15998
|
+
const revertIconColor = getWorkflowsEnv("isHeadless") && ((config4 == null ? void 0 : config4.customization.icon) === IntegrationNames14.OpenAI || (config4 == null ? void 0 : config4.customization.icon) === IntegrationNames14.BigCommerce);
|
|
15800
15999
|
return /* @__PURE__ */ jsxs2(Wrapper3, { children: [
|
|
15801
16000
|
/* @__PURE__ */ jsxs2(Row11, { center: true, setRowPadding: "12px 24px", spaceBetween: true, children: [
|
|
15802
16001
|
/* @__PURE__ */ jsx2(
|
|
@@ -15806,13 +16005,13 @@ function EditNodeWrapper() {
|
|
|
15806
16005
|
max-width: 80%;
|
|
15807
16006
|
`,
|
|
15808
16007
|
children: /* @__PURE__ */ jsxs2(Title6, { children: [
|
|
15809
|
-
(
|
|
16008
|
+
(config4 == null ? void 0 : config4.customization.product) ? /* @__PURE__ */ jsx2(
|
|
15810
16009
|
ProductIcon_default,
|
|
15811
16010
|
{
|
|
15812
16011
|
center: true,
|
|
15813
16012
|
disabled: false,
|
|
15814
16013
|
height: 10,
|
|
15815
|
-
product:
|
|
16014
|
+
product: config4.customization.icon,
|
|
15816
16015
|
revertColors: revertIconColor,
|
|
15817
16016
|
width: 10
|
|
15818
16017
|
}
|
|
@@ -15829,9 +16028,9 @@ function EditNodeWrapper() {
|
|
|
15829
16028
|
/* @__PURE__ */ jsxs2(Column10, { noFlexBasis: true, notPadded: true, children: [
|
|
15830
16029
|
/* @__PURE__ */ jsxs2("strong", { children: [
|
|
15831
16030
|
((_c = frame == null ? void 0 : frame.__meta) == null ? void 0 : _c.index) !== void 0 ? `${frame.__meta.index}. ` : "",
|
|
15832
|
-
(_d =
|
|
16031
|
+
(_d = config4 == null ? void 0 : config4.customization.displayName) != null ? _d : data.type === NodeTypes.switch ? "Condition" : data.type === NodeTypes.http ? "Custom HTTP" : data.type === NodeTypes.terminate ? "End workflow" : ""
|
|
15833
16032
|
] }),
|
|
15834
|
-
(_e =
|
|
16033
|
+
(_e = config4 == null ? void 0 : config4.customization.description) != null ? _e : data.type === NodeTypes.switch ? "Conditional execution" : data.type === NodeTypes.http ? "Make an HTTP request" : data.type === NodeTypes.terminate ? "End the workflow" : ""
|
|
15835
16034
|
] })
|
|
15836
16035
|
] })
|
|
15837
16036
|
}
|
|
@@ -16470,7 +16669,6 @@ var OneMessagesProvider = ({
|
|
|
16470
16669
|
const { user } = useUserContext3();
|
|
16471
16670
|
const isLoading = generateAiResponseMutation.isLoading;
|
|
16472
16671
|
const sendMessage = (message) => __async(void 0, null, function* () {
|
|
16473
|
-
const config12 = getWorkflowsConfig();
|
|
16474
16672
|
setIsError(null);
|
|
16475
16673
|
setEvents((prevEvents) => [
|
|
16476
16674
|
...prevEvents,
|
|
@@ -16490,7 +16688,7 @@ var OneMessagesProvider = ({
|
|
|
16490
16688
|
]);
|
|
16491
16689
|
try {
|
|
16492
16690
|
const response = yield generateAiResponseMutation.mutateAsync({
|
|
16493
|
-
agent_id:
|
|
16691
|
+
agent_id: getWorkflowsEnv("aiAgentId"),
|
|
16494
16692
|
account_id: user == null ? void 0 : user.auth.account_id,
|
|
16495
16693
|
organization: user == null ? void 0 : user.auth.organization_id,
|
|
16496
16694
|
token: user == null ? void 0 : user.auth.access_token,
|
|
@@ -19075,7 +19273,7 @@ function AddWorkflowTaskOptions({
|
|
|
19075
19273
|
var Options_default = AddWorkflowTaskOptions;
|
|
19076
19274
|
|
|
19077
19275
|
// src/views/Flows/Definitions/Edit/Tasks/Add.tsx
|
|
19078
|
-
var
|
|
19276
|
+
var config2 = [
|
|
19079
19277
|
// {
|
|
19080
19278
|
// name: 'system',
|
|
19081
19279
|
// displayName: 'System tasks',
|
|
@@ -19197,7 +19395,7 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19197
19395
|
useEffect15(() => {
|
|
19198
19396
|
var _a, _b, _c, _d, _e, _f;
|
|
19199
19397
|
if (!params.task) {
|
|
19200
|
-
const firstTask = (_c = (_b = (_a =
|
|
19398
|
+
const firstTask = (_c = (_b = (_a = config2.find((el) => el.name === params.service)) == null ? void 0 : _a.values.sort((a, b) => a.name.localeCompare(b.name))) == null ? void 0 : _b[0]) == null ? void 0 : _c.key;
|
|
19201
19399
|
navigate(`${basePath}/${params.service}/${firstTask}`, {
|
|
19202
19400
|
state: location.state
|
|
19203
19401
|
});
|
|
@@ -19306,7 +19504,7 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19306
19504
|
)
|
|
19307
19505
|
}
|
|
19308
19506
|
),
|
|
19309
|
-
|
|
19507
|
+
config2.map(({ name, displayName, icon: icon2, values }) => {
|
|
19310
19508
|
const revertIconColor = getWorkflowsEnv("isHeadless") && (name === "openai" || name === IntegrationNames15.BigCommerce);
|
|
19311
19509
|
if (search) {
|
|
19312
19510
|
if (values.some(
|
|
@@ -19382,7 +19580,7 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19382
19580
|
`,
|
|
19383
19581
|
setColumnPadding: "0 20px 0 16px",
|
|
19384
19582
|
width: 10,
|
|
19385
|
-
children: params.service ?
|
|
19583
|
+
children: params.service ? config2.map(({ name, displayName, values, icon: icon2 }) => {
|
|
19386
19584
|
if (params.service === name.toLowerCase()) {
|
|
19387
19585
|
const options2 = values.map(({ key, name: name2, secondaryText }) => ({
|
|
19388
19586
|
key,
|
|
@@ -19527,7 +19725,7 @@ function AddWorkflowTriggerOptions({
|
|
|
19527
19725
|
var Options_default2 = AddWorkflowTriggerOptions;
|
|
19528
19726
|
|
|
19529
19727
|
// src/views/Flows/Definitions/Edit/Triggers/Add.tsx
|
|
19530
|
-
var
|
|
19728
|
+
var config3 = [
|
|
19531
19729
|
{
|
|
19532
19730
|
name: OTHER_TYPES.SYSTEM,
|
|
19533
19731
|
displayName: "General",
|
|
@@ -19619,7 +19817,7 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
19619
19817
|
useEffect16(() => {
|
|
19620
19818
|
var _a, _b, _c;
|
|
19621
19819
|
if (!params.trigger) {
|
|
19622
|
-
const firstTrigger = (_c = (_b = (_a =
|
|
19820
|
+
const firstTrigger = (_c = (_b = (_a = config3.find((el) => el.name === params.service)) == null ? void 0 : _a.values.sort((a, b) => a.name.localeCompare(b.name))) == null ? void 0 : _b[0]) == null ? void 0 : _c.key;
|
|
19623
19821
|
navigate(`${basePath}/${params.service}/${firstTrigger}`);
|
|
19624
19822
|
}
|
|
19625
19823
|
const triggers = params.service ? workflowItemTemplates.triggers[params.service] : void 0;
|
|
@@ -19691,7 +19889,7 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
19691
19889
|
)
|
|
19692
19890
|
}
|
|
19693
19891
|
),
|
|
19694
|
-
|
|
19892
|
+
config3.map(({ name, displayName, icon: icon2, values }) => {
|
|
19695
19893
|
const revertIconColor = getWorkflowsEnv("isHeadless") && (name === IntegrationNames16.OpenAI || name === IntegrationNames16.BigCommerce);
|
|
19696
19894
|
if (search) {
|
|
19697
19895
|
if (values.some(
|
|
@@ -19767,7 +19965,7 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
19767
19965
|
`,
|
|
19768
19966
|
setColumnPadding: "0 20px 0 16px",
|
|
19769
19967
|
width: 10,
|
|
19770
|
-
children: params.service ?
|
|
19968
|
+
children: params.service ? config3.map(({ name, displayName, values, icon: icon2 }) => {
|
|
19771
19969
|
var _a;
|
|
19772
19970
|
if (((_a = params.service) == null ? void 0 : _a.toLowerCase()) === name.toLowerCase()) {
|
|
19773
19971
|
const options2 = values.map(({ key, name: name2, secondaryText }) => ({
|
|
@@ -20256,7 +20454,6 @@ import {
|
|
|
20256
20454
|
IntegrationNames as IntegrationNames17,
|
|
20257
20455
|
TextLivechatEventNames as TextLivechatEventNames2
|
|
20258
20456
|
} from "@livechat/developer-studio-api";
|
|
20259
|
-
var config11 = getWorkflowsConfig();
|
|
20260
20457
|
var flowTemplates = [
|
|
20261
20458
|
{
|
|
20262
20459
|
id: "1",
|
|
@@ -20306,7 +20503,9 @@ var flowTemplates = [
|
|
|
20306
20503
|
type: "HTTP",
|
|
20307
20504
|
inputParameters: {
|
|
20308
20505
|
http_request: {
|
|
20309
|
-
uri: `${
|
|
20506
|
+
uri: `${getWorkflowsEnv(
|
|
20507
|
+
"workflowsApiUr"
|
|
20508
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
20310
20509
|
method: "GET",
|
|
20311
20510
|
headers: {
|
|
20312
20511
|
Accept: "application/json",
|
|
@@ -20322,7 +20521,9 @@ var flowTemplates = [
|
|
|
20322
20521
|
type: "HTTP",
|
|
20323
20522
|
inputParameters: {
|
|
20324
20523
|
http_request: {
|
|
20325
|
-
uri: `${
|
|
20524
|
+
uri: `${getWorkflowsEnv(
|
|
20525
|
+
"workflowsApiUr"
|
|
20526
|
+
)}/functions/summarize-text`,
|
|
20326
20527
|
body: {
|
|
20327
20528
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
20328
20529
|
},
|
|
@@ -20341,7 +20542,9 @@ var flowTemplates = [
|
|
|
20341
20542
|
type: "HTTP",
|
|
20342
20543
|
inputParameters: {
|
|
20343
20544
|
http_request: {
|
|
20344
|
-
uri: `${
|
|
20545
|
+
uri: `${getWorkflowsEnv(
|
|
20546
|
+
"workflowsApiUr"
|
|
20547
|
+
)}/functions/create-helpdesk-ticket`,
|
|
20345
20548
|
body: {
|
|
20346
20549
|
message: {
|
|
20347
20550
|
text: "${openai_summarize_text_1.output.response.body.summary}"
|
|
@@ -20418,7 +20621,9 @@ var flowTemplates = [
|
|
|
20418
20621
|
type: "HTTP",
|
|
20419
20622
|
inputParameters: {
|
|
20420
20623
|
http_request: {
|
|
20421
|
-
uri: `${
|
|
20624
|
+
uri: `${getWorkflowsEnv(
|
|
20625
|
+
"workflowsApiUr"
|
|
20626
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
20422
20627
|
method: "GET",
|
|
20423
20628
|
headers: {
|
|
20424
20629
|
Accept: "application/json",
|
|
@@ -20434,7 +20639,9 @@ var flowTemplates = [
|
|
|
20434
20639
|
type: "HTTP",
|
|
20435
20640
|
inputParameters: {
|
|
20436
20641
|
http_request: {
|
|
20437
|
-
uri: `${
|
|
20642
|
+
uri: `${getWorkflowsEnv(
|
|
20643
|
+
"workflowsApiUr"
|
|
20644
|
+
)}/functions/analyze-text-sentiment`,
|
|
20438
20645
|
body: {
|
|
20439
20646
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
20440
20647
|
},
|
|
@@ -20453,7 +20660,9 @@ var flowTemplates = [
|
|
|
20453
20660
|
type: "HTTP",
|
|
20454
20661
|
inputParameters: {
|
|
20455
20662
|
http_request: {
|
|
20456
|
-
uri: `${
|
|
20663
|
+
uri: `${getWorkflowsEnv(
|
|
20664
|
+
"workflowsApiUr"
|
|
20665
|
+
)}/functions/create-helpdesk-ticket`,
|
|
20457
20666
|
body: {
|
|
20458
20667
|
message: {
|
|
20459
20668
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
@@ -20479,7 +20688,9 @@ var flowTemplates = [
|
|
|
20479
20688
|
type: "HTTP",
|
|
20480
20689
|
inputParameters: {
|
|
20481
20690
|
http_request: {
|
|
20482
|
-
uri: `${
|
|
20691
|
+
uri: `${getWorkflowsEnv(
|
|
20692
|
+
"workflowsApiUr"
|
|
20693
|
+
)}/functions/add-mailchimp-subscriber-event`,
|
|
20483
20694
|
body: {
|
|
20484
20695
|
name: "Competitor Mention",
|
|
20485
20696
|
email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
|
|
@@ -20570,7 +20781,9 @@ var flowTemplates = [
|
|
|
20570
20781
|
asyncComplete: false,
|
|
20571
20782
|
http_request: {
|
|
20572
20783
|
method: "GET",
|
|
20573
|
-
uri: `${
|
|
20784
|
+
uri: `${getWorkflowsEnv(
|
|
20785
|
+
"workflowsApiUr"
|
|
20786
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
20574
20787
|
headers: {
|
|
20575
20788
|
Accept: "application/json",
|
|
20576
20789
|
"x-cred-access-token": "${workflow.credentials.text.access_token}"
|
|
@@ -20586,7 +20799,9 @@ var flowTemplates = [
|
|
|
20586
20799
|
asyncComplete: false,
|
|
20587
20800
|
http_request: {
|
|
20588
20801
|
method: "POST",
|
|
20589
|
-
uri: `${
|
|
20802
|
+
uri: `${getWorkflowsEnv(
|
|
20803
|
+
"workflowsApiUr"
|
|
20804
|
+
)}/functions/summarize-text`,
|
|
20590
20805
|
body: {
|
|
20591
20806
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
20592
20807
|
},
|
|
@@ -20605,7 +20820,9 @@ var flowTemplates = [
|
|
|
20605
20820
|
asyncComplete: false,
|
|
20606
20821
|
http_request: {
|
|
20607
20822
|
method: "POST",
|
|
20608
|
-
uri: `${
|
|
20823
|
+
uri: `${getWorkflowsEnv(
|
|
20824
|
+
"workflowsApiUr"
|
|
20825
|
+
)}/functions/create-helpdesk-ticket`,
|
|
20609
20826
|
body: {
|
|
20610
20827
|
requester: {
|
|
20611
20828
|
email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
|
|
@@ -20628,7 +20845,9 @@ var flowTemplates = [
|
|
|
20628
20845
|
type: "HTTP",
|
|
20629
20846
|
inputParameters: {
|
|
20630
20847
|
http_request: {
|
|
20631
|
-
uri: `${
|
|
20848
|
+
uri: `${getWorkflowsEnv(
|
|
20849
|
+
"workflowsApiUr"
|
|
20850
|
+
)}/functions/add-mailchimp-subscriber-note`,
|
|
20632
20851
|
body: {
|
|
20633
20852
|
note: "Feedback from chat ID ${workflow.input.body.chat_id}",
|
|
20634
20853
|
email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
|
|
@@ -20717,7 +20936,9 @@ var flowTemplates = [
|
|
|
20717
20936
|
asyncComplete: false,
|
|
20718
20937
|
http_request: {
|
|
20719
20938
|
method: "GET",
|
|
20720
|
-
uri: `${
|
|
20939
|
+
uri: `${getWorkflowsEnv(
|
|
20940
|
+
"workflowsApiUr"
|
|
20941
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
20721
20942
|
headers: {
|
|
20722
20943
|
Accept: "application/json",
|
|
20723
20944
|
"x-cred-access-token": "${workflow.credentials.text.access_token}"
|
|
@@ -20730,7 +20951,9 @@ var flowTemplates = [
|
|
|
20730
20951
|
type: "HTTP",
|
|
20731
20952
|
inputParameters: {
|
|
20732
20953
|
http_request: {
|
|
20733
|
-
uri: `${
|
|
20954
|
+
uri: `${getWorkflowsEnv(
|
|
20955
|
+
"workflowsApiUr"
|
|
20956
|
+
)}/functions/get-shopify-customer?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
|
|
20734
20957
|
method: "GET",
|
|
20735
20958
|
headers: {
|
|
20736
20959
|
Accept: "application/json",
|
|
@@ -20747,7 +20970,9 @@ var flowTemplates = [
|
|
|
20747
20970
|
type: "HTTP",
|
|
20748
20971
|
inputParameters: {
|
|
20749
20972
|
http_request: {
|
|
20750
|
-
uri: `${
|
|
20973
|
+
uri: `${getWorkflowsEnv(
|
|
20974
|
+
"workflowsApiUr"
|
|
20975
|
+
)}/functions/analyze-text-sentiment`,
|
|
20751
20976
|
body: {
|
|
20752
20977
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
20753
20978
|
},
|
|
@@ -20766,7 +20991,9 @@ var flowTemplates = [
|
|
|
20766
20991
|
type: "HTTP",
|
|
20767
20992
|
inputParameters: {
|
|
20768
20993
|
http_request: {
|
|
20769
|
-
uri: `${
|
|
20994
|
+
uri: `${getWorkflowsEnv(
|
|
20995
|
+
"workflowsApiUr"
|
|
20996
|
+
)}/functions/add-mailchimp-campaign`,
|
|
20770
20997
|
body: {
|
|
20771
20998
|
type: "regular",
|
|
20772
20999
|
settings: {
|
|
@@ -20867,7 +21094,9 @@ var flowTemplates = [
|
|
|
20867
21094
|
asyncComplete: false,
|
|
20868
21095
|
http_request: {
|
|
20869
21096
|
method: "GET",
|
|
20870
|
-
uri: `${
|
|
21097
|
+
uri: `${getWorkflowsEnv(
|
|
21098
|
+
"workflowsApiUr"
|
|
21099
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
20871
21100
|
headers: {
|
|
20872
21101
|
Accept: "application/json",
|
|
20873
21102
|
"x-cred-access-token": "${workflow.credentials.text.access_token}"
|
|
@@ -20883,7 +21112,9 @@ var flowTemplates = [
|
|
|
20883
21112
|
asyncComplete: false,
|
|
20884
21113
|
http_request: {
|
|
20885
21114
|
method: "POST",
|
|
20886
|
-
uri: `${
|
|
21115
|
+
uri: `${getWorkflowsEnv(
|
|
21116
|
+
"workflowsApiUr"
|
|
21117
|
+
)}/functions/analyze-text-sentiment`,
|
|
20887
21118
|
body: {
|
|
20888
21119
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
20889
21120
|
},
|
|
@@ -20902,7 +21133,9 @@ var flowTemplates = [
|
|
|
20902
21133
|
asyncComplete: false,
|
|
20903
21134
|
http_request: {
|
|
20904
21135
|
method: "POST",
|
|
20905
|
-
uri: `${
|
|
21136
|
+
uri: `${getWorkflowsEnv(
|
|
21137
|
+
"workflowsApiUr"
|
|
21138
|
+
)}/functions/add-or-update-mailchimp-subscriber`,
|
|
20906
21139
|
body: {
|
|
20907
21140
|
list_id: null,
|
|
20908
21141
|
email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
|
|
@@ -20924,7 +21157,9 @@ var flowTemplates = [
|
|
|
20924
21157
|
asyncComplete: false,
|
|
20925
21158
|
http_request: {
|
|
20926
21159
|
method: "POST",
|
|
20927
|
-
uri: `${
|
|
21160
|
+
uri: `${getWorkflowsEnv(
|
|
21161
|
+
"workflowsApiUr"
|
|
21162
|
+
)}/functions/add-mailchimp-subscriber-tag`,
|
|
20928
21163
|
body: {
|
|
20929
21164
|
list_id: null,
|
|
20930
21165
|
email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
|
|
@@ -20995,7 +21230,9 @@ var flowTemplates = [
|
|
|
20995
21230
|
type: "HTTP",
|
|
20996
21231
|
inputParameters: {
|
|
20997
21232
|
http_request: {
|
|
20998
|
-
uri: `${
|
|
21233
|
+
uri: `${getWorkflowsEnv(
|
|
21234
|
+
"workflowsApiUr"
|
|
21235
|
+
)}/functions/send-livechat-agent-message`,
|
|
20999
21236
|
body: {
|
|
21000
21237
|
chat_id: "${workflow.input.body.chat.id}",
|
|
21001
21238
|
message: "Welcome to our service! How can we assist you today?",
|
|
@@ -21074,7 +21311,9 @@ var flowTemplates = [
|
|
|
21074
21311
|
inputParameters: {
|
|
21075
21312
|
asyncComplete: false,
|
|
21076
21313
|
http_request: {
|
|
21077
|
-
uri: `${
|
|
21314
|
+
uri: `${getWorkflowsEnv(
|
|
21315
|
+
"workflowsApiUr"
|
|
21316
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
21078
21317
|
method: "GET",
|
|
21079
21318
|
headers: {
|
|
21080
21319
|
Accept: "application/json",
|
|
@@ -21090,7 +21329,9 @@ var flowTemplates = [
|
|
|
21090
21329
|
inputParameters: {
|
|
21091
21330
|
asyncComplete: false,
|
|
21092
21331
|
http_request: {
|
|
21093
|
-
uri: `${
|
|
21332
|
+
uri: `${getWorkflowsEnv(
|
|
21333
|
+
"workflowsApiUr"
|
|
21334
|
+
)}/functions/summarize-text`,
|
|
21094
21335
|
body: {
|
|
21095
21336
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|
|
21096
21337
|
},
|
|
@@ -21109,7 +21350,9 @@ var flowTemplates = [
|
|
|
21109
21350
|
inputParameters: {
|
|
21110
21351
|
asyncComplete: false,
|
|
21111
21352
|
http_request: {
|
|
21112
|
-
uri: `${
|
|
21353
|
+
uri: `${getWorkflowsEnv(
|
|
21354
|
+
"workflowsApiUr"
|
|
21355
|
+
)}/functions/create-helpdesk-ticket`,
|
|
21113
21356
|
body: {
|
|
21114
21357
|
message: {
|
|
21115
21358
|
text: "${openai_summarize_text_1.output.response.body.summary}"
|
|
@@ -21198,7 +21441,9 @@ var flowTemplates = [
|
|
|
21198
21441
|
inputParameters: {
|
|
21199
21442
|
asyncComplete: false,
|
|
21200
21443
|
http_request: {
|
|
21201
|
-
uri: `${
|
|
21444
|
+
uri: `${getWorkflowsEnv(
|
|
21445
|
+
"workflowsApiUr"
|
|
21446
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
|
|
21202
21447
|
method: "GET",
|
|
21203
21448
|
headers: {
|
|
21204
21449
|
Accept: "application/json",
|
|
@@ -21214,7 +21459,9 @@ var flowTemplates = [
|
|
|
21214
21459
|
inputParameters: {
|
|
21215
21460
|
asyncComplete: false,
|
|
21216
21461
|
http_request: {
|
|
21217
|
-
uri: `${
|
|
21462
|
+
uri: `${getWorkflowsEnv(
|
|
21463
|
+
"workflowsApiUr"
|
|
21464
|
+
)}/functions/get-shopify-customer-last-order?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
|
|
21218
21465
|
body: {},
|
|
21219
21466
|
method: "GET",
|
|
21220
21467
|
headers: {
|
|
@@ -21232,7 +21479,9 @@ var flowTemplates = [
|
|
|
21232
21479
|
inputParameters: {
|
|
21233
21480
|
asyncComplete: false,
|
|
21234
21481
|
http_request: {
|
|
21235
|
-
uri: `${
|
|
21482
|
+
uri: `${getWorkflowsEnv(
|
|
21483
|
+
"workflowsApiUr"
|
|
21484
|
+
)}/functions/send-livechat-agent-message`,
|
|
21236
21485
|
body: {
|
|
21237
21486
|
chat_id: "${workflow.input.body.chat.id}",
|
|
21238
21487
|
message: "Last Order ID: ${shopify_get_customer_last_order_1.output.response.body.id}, Customer Name: ${shopify_get_customer_last_order_1.output.response.body.customer.first_name}",
|
|
@@ -21307,7 +21556,9 @@ var flowTemplates = [
|
|
|
21307
21556
|
inputParameters: {
|
|
21308
21557
|
asyncComplete: false,
|
|
21309
21558
|
http_request: {
|
|
21310
|
-
uri: `${
|
|
21559
|
+
uri: `${getWorkflowsEnv(
|
|
21560
|
+
"workflowsApiUr"
|
|
21561
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
21311
21562
|
method: "GET",
|
|
21312
21563
|
headers: {
|
|
21313
21564
|
Accept: "application/json",
|
|
@@ -21323,7 +21574,9 @@ var flowTemplates = [
|
|
|
21323
21574
|
inputParameters: {
|
|
21324
21575
|
asyncComplete: false,
|
|
21325
21576
|
http_request: {
|
|
21326
|
-
uri: `${
|
|
21577
|
+
uri: `${getWorkflowsEnv(
|
|
21578
|
+
"workflowsApiUr"
|
|
21579
|
+
)}/functions/create-hubspot-contact`,
|
|
21327
21580
|
body: {
|
|
21328
21581
|
properties: {
|
|
21329
21582
|
email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
|
|
@@ -21400,7 +21653,9 @@ var flowTemplates = [
|
|
|
21400
21653
|
inputParameters: {
|
|
21401
21654
|
asyncComplete: false,
|
|
21402
21655
|
http_request: {
|
|
21403
|
-
uri: `${
|
|
21656
|
+
uri: `${getWorkflowsEnv(
|
|
21657
|
+
"workflowsApiUr"
|
|
21658
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
|
|
21404
21659
|
method: "GET",
|
|
21405
21660
|
headers: {
|
|
21406
21661
|
Accept: "application/json",
|
|
@@ -21416,7 +21671,9 @@ var flowTemplates = [
|
|
|
21416
21671
|
inputParameters: {
|
|
21417
21672
|
asyncComplete: false,
|
|
21418
21673
|
http_request: {
|
|
21419
|
-
uri: `${
|
|
21674
|
+
uri: `${getWorkflowsEnv(
|
|
21675
|
+
"workflowsApiUr"
|
|
21676
|
+
)}/functions/create-helpdesk-ticket`,
|
|
21420
21677
|
body: {
|
|
21421
21678
|
message: {
|
|
21422
21679
|
text: "A new chat has been initiated with ${livechat_get_chat_transcript_1.output.response.body.customer_first_name} Email: ${livechat_get_chat_transcript_1.output.response.body.customer_email}"
|
|
@@ -21502,7 +21759,9 @@ var flowTemplates = [
|
|
|
21502
21759
|
inputParameters: {
|
|
21503
21760
|
asyncComplete: false,
|
|
21504
21761
|
http_request: {
|
|
21505
|
-
uri: `${
|
|
21762
|
+
uri: `${getWorkflowsEnv(
|
|
21763
|
+
"workflowsApiUr"
|
|
21764
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
21506
21765
|
method: "GET",
|
|
21507
21766
|
headers: {
|
|
21508
21767
|
Accept: "application/json",
|
|
@@ -21518,7 +21777,9 @@ var flowTemplates = [
|
|
|
21518
21777
|
inputParameters: {
|
|
21519
21778
|
asyncComplete: false,
|
|
21520
21779
|
http_request: {
|
|
21521
|
-
uri: `${
|
|
21780
|
+
uri: `${getWorkflowsEnv(
|
|
21781
|
+
"workflowsApiUr"
|
|
21782
|
+
)}/functions/create-hubspot-contact`,
|
|
21522
21783
|
body: {
|
|
21523
21784
|
properties: {
|
|
21524
21785
|
email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
|
|
@@ -21542,7 +21803,9 @@ var flowTemplates = [
|
|
|
21542
21803
|
asyncComplete: false,
|
|
21543
21804
|
http_request: {
|
|
21544
21805
|
method: "POST",
|
|
21545
|
-
uri: `${
|
|
21806
|
+
uri: `${getWorkflowsEnv(
|
|
21807
|
+
"workflowsApiUr"
|
|
21808
|
+
)}/functions/add-or-update-mailchimp-subscriber`,
|
|
21546
21809
|
body: {
|
|
21547
21810
|
list_id: null,
|
|
21548
21811
|
email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
|
|
@@ -21620,7 +21883,9 @@ var flowTemplates = [
|
|
|
21620
21883
|
inputParameters: {
|
|
21621
21884
|
asyncComplete: false,
|
|
21622
21885
|
http_request: {
|
|
21623
|
-
uri: `${
|
|
21886
|
+
uri: `${getWorkflowsEnv(
|
|
21887
|
+
"workflowsApiUr"
|
|
21888
|
+
)}/functions/supervise-livechat-chat`,
|
|
21624
21889
|
body: {
|
|
21625
21890
|
chat_id: "${workflow.input.body.chat_id}",
|
|
21626
21891
|
user_id: "add your email"
|
|
@@ -21640,7 +21905,9 @@ var flowTemplates = [
|
|
|
21640
21905
|
inputParameters: {
|
|
21641
21906
|
asyncComplete: false,
|
|
21642
21907
|
http_request: {
|
|
21643
|
-
uri: `${
|
|
21908
|
+
uri: `${getWorkflowsEnv(
|
|
21909
|
+
"workflowsApiUr"
|
|
21910
|
+
)}/functions/send-livechat-agent-message`,
|
|
21644
21911
|
body: {
|
|
21645
21912
|
chat_id: "${workflow.input.body.chat_id}",
|
|
21646
21913
|
message: "Hi, please remember to request reviews from customers. Keep up the great work!",
|
|
@@ -21716,7 +21983,9 @@ var flowTemplates = [
|
|
|
21716
21983
|
inputParameters: {
|
|
21717
21984
|
asyncComplete: false,
|
|
21718
21985
|
http_request: {
|
|
21719
|
-
uri: `${
|
|
21986
|
+
uri: `${getWorkflowsEnv(
|
|
21987
|
+
"workflowsApiUr"
|
|
21988
|
+
)}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
|
|
21720
21989
|
method: "GET",
|
|
21721
21990
|
headers: {
|
|
21722
21991
|
Accept: "application/json",
|
|
@@ -21732,7 +22001,9 @@ var flowTemplates = [
|
|
|
21732
22001
|
inputParameters: {
|
|
21733
22002
|
asyncComplete: false,
|
|
21734
22003
|
http_request: {
|
|
21735
|
-
uri: `${
|
|
22004
|
+
uri: `${getWorkflowsEnv(
|
|
22005
|
+
"workflowsApiUr"
|
|
22006
|
+
)}/functions/create-helpdesk-ticket`,
|
|
21736
22007
|
body: {
|
|
21737
22008
|
message: {
|
|
21738
22009
|
text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
|