@livechat/platform-workflows 0.0.71 → 0.0.73
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 +392 -455
- package/dist/index.mjs +649 -720
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -256,7 +256,7 @@ var require_react_is_development = __commonJS({
|
|
|
256
256
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
257
257
|
var Element = REACT_ELEMENT_TYPE;
|
|
258
258
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
259
|
-
var
|
|
259
|
+
var Fragment14 = REACT_FRAGMENT_TYPE;
|
|
260
260
|
var Lazy = REACT_LAZY_TYPE;
|
|
261
261
|
var Memo = REACT_MEMO_TYPE;
|
|
262
262
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -315,7 +315,7 @@ var require_react_is_development = __commonJS({
|
|
|
315
315
|
exports.ContextProvider = ContextProvider;
|
|
316
316
|
exports.Element = Element;
|
|
317
317
|
exports.ForwardRef = ForwardRef;
|
|
318
|
-
exports.Fragment =
|
|
318
|
+
exports.Fragment = Fragment14;
|
|
319
319
|
exports.Lazy = Lazy;
|
|
320
320
|
exports.Memo = Memo;
|
|
321
321
|
exports.Portal = Portal;
|
|
@@ -1964,22 +1964,11 @@ var WORKFLOW_TRIGGER_OUTPUT_SCHEMA = (body) => ({
|
|
|
1964
1964
|
import { WorkflowDefinitionTaskType } from "@livechat/developer-studio-api";
|
|
1965
1965
|
|
|
1966
1966
|
// src/constants/products.ts
|
|
1967
|
-
var OTHER_PRODUCT_TYPE = {
|
|
1968
|
-
OPENAI: "openai"
|
|
1969
|
-
};
|
|
1970
1967
|
var OTHER_TYPES = {
|
|
1971
1968
|
SYSTEM: "system",
|
|
1972
1969
|
SCHEDULED: "scheduled",
|
|
1973
1970
|
MANUAL: "manual"
|
|
1974
1971
|
};
|
|
1975
|
-
var PRODUCT_TYPE = {
|
|
1976
|
-
HD: "helpdesk",
|
|
1977
|
-
LC: "livechat"
|
|
1978
|
-
};
|
|
1979
|
-
var PRODUCT_NAMES = {
|
|
1980
|
-
[PRODUCT_TYPE.HD]: "HelpDesk",
|
|
1981
|
-
[PRODUCT_TYPE.LC]: "LiveChat"
|
|
1982
|
-
};
|
|
1983
1972
|
|
|
1984
1973
|
// src/views/Flows/Definitions/Mocks/System/index.ts
|
|
1985
1974
|
var systemTaskConfigs = () => ({
|
|
@@ -2519,7 +2508,6 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
2519
2508
|
customization: {
|
|
2520
2509
|
provider: IntegrationNames.BigCommerce,
|
|
2521
2510
|
product: IntegrationDisplayNames.BigCommerce,
|
|
2522
|
-
icon: IntegrationNames.BigCommerce,
|
|
2523
2511
|
displayName: "Create blog post",
|
|
2524
2512
|
shortDescription: "Create blog post",
|
|
2525
2513
|
description: "Creates a new blog post on your site."
|
|
@@ -2644,7 +2632,6 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
2644
2632
|
customization: {
|
|
2645
2633
|
provider: IntegrationNames.BigCommerce,
|
|
2646
2634
|
product: IntegrationDisplayNames.BigCommerce,
|
|
2647
|
-
icon: IntegrationNames.BigCommerce,
|
|
2648
2635
|
displayName: "Create customer",
|
|
2649
2636
|
shortDescription: "Create customer",
|
|
2650
2637
|
description: "Creates a new customer profile in Bigcommerce."
|
|
@@ -2679,7 +2666,6 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
2679
2666
|
customization: {
|
|
2680
2667
|
provider: IntegrationNames.BigCommerce,
|
|
2681
2668
|
product: IntegrationDisplayNames.BigCommerce,
|
|
2682
|
-
icon: IntegrationNames.BigCommerce,
|
|
2683
2669
|
displayName: "Update customer",
|
|
2684
2670
|
shortDescription: "Update customer",
|
|
2685
2671
|
description: "Modifies the details of an existing customer in your Bigcommerce."
|
|
@@ -2712,7 +2698,6 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
2712
2698
|
customization: {
|
|
2713
2699
|
provider: IntegrationNames.BigCommerce,
|
|
2714
2700
|
product: IntegrationDisplayNames.BigCommerce,
|
|
2715
|
-
icon: IntegrationNames.BigCommerce,
|
|
2716
2701
|
displayName: "Create product",
|
|
2717
2702
|
shortDescription: "Create product",
|
|
2718
2703
|
description: "Adds a new product to your catalog."
|
|
@@ -2744,7 +2729,6 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
2744
2729
|
customization: {
|
|
2745
2730
|
provider: IntegrationNames.BigCommerce,
|
|
2746
2731
|
product: IntegrationDisplayNames.BigCommerce,
|
|
2747
|
-
icon: IntegrationNames.BigCommerce,
|
|
2748
2732
|
displayName: "Create customer address",
|
|
2749
2733
|
shortDescription: "Create customer address",
|
|
2750
2734
|
description: "Adds a new address to an existing customer's profile."
|
|
@@ -2791,7 +2775,6 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
2791
2775
|
customization: {
|
|
2792
2776
|
provider: IntegrationNames.BigCommerce,
|
|
2793
2777
|
product: IntegrationDisplayNames.BigCommerce,
|
|
2794
|
-
icon: IntegrationNames.BigCommerce,
|
|
2795
2778
|
displayName: "Find customer",
|
|
2796
2779
|
shortDescription: "Find customer",
|
|
2797
2780
|
description: "Searches for an existing customer in your Bigcommerce records."
|
|
@@ -2826,7 +2809,6 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
2826
2809
|
customization: {
|
|
2827
2810
|
provider: IntegrationNames.BigCommerce,
|
|
2828
2811
|
product: IntegrationDisplayNames.BigCommerce,
|
|
2829
|
-
icon: IntegrationNames.BigCommerce,
|
|
2830
2812
|
displayName: "Get customer address",
|
|
2831
2813
|
shortDescription: "Get customer address",
|
|
2832
2814
|
description: "Searches for an address of an existing customer."
|
|
@@ -2860,7 +2842,6 @@ var bigCommerceTaskConfigs = () => ({
|
|
|
2860
2842
|
customization: {
|
|
2861
2843
|
provider: IntegrationNames.BigCommerce,
|
|
2862
2844
|
product: IntegrationDisplayNames.BigCommerce,
|
|
2863
|
-
icon: IntegrationNames.BigCommerce,
|
|
2864
2845
|
displayName: "Get products",
|
|
2865
2846
|
shortDescription: "Get products",
|
|
2866
2847
|
description: "Lists all products in your store."
|
|
@@ -3061,7 +3042,6 @@ var bigcommerceTriggerConfigs = () => ({
|
|
|
3061
3042
|
customization: {
|
|
3062
3043
|
provider: IntegrationNames.BigCommerce,
|
|
3063
3044
|
product: IntegrationDisplayNames.BigCommerce,
|
|
3064
|
-
icon: IntegrationNames.BigCommerce,
|
|
3065
3045
|
displayName: "Card created",
|
|
3066
3046
|
shortDescription: "Card created",
|
|
3067
3047
|
description: "Triggers when a new card is created"
|
|
@@ -3087,7 +3067,6 @@ var bigcommerceTriggerConfigs = () => ({
|
|
|
3087
3067
|
customization: {
|
|
3088
3068
|
provider: IntegrationNames.BigCommerce,
|
|
3089
3069
|
product: IntegrationDisplayNames.BigCommerce,
|
|
3090
|
-
icon: IntegrationNames.BigCommerce,
|
|
3091
3070
|
displayName: "Card updated",
|
|
3092
3071
|
shortDescription: "Card updated",
|
|
3093
3072
|
description: "Triggers when a card is updated"
|
|
@@ -3113,7 +3092,6 @@ var bigcommerceTriggerConfigs = () => ({
|
|
|
3113
3092
|
customization: {
|
|
3114
3093
|
provider: IntegrationNames.BigCommerce,
|
|
3115
3094
|
product: IntegrationDisplayNames.BigCommerce,
|
|
3116
|
-
icon: IntegrationNames.BigCommerce,
|
|
3117
3095
|
displayName: "Order created",
|
|
3118
3096
|
shortDescription: "Order created",
|
|
3119
3097
|
description: "Triggers when a new order is created"
|
|
@@ -3139,7 +3117,6 @@ var bigcommerceTriggerConfigs = () => ({
|
|
|
3139
3117
|
customization: {
|
|
3140
3118
|
provider: IntegrationNames.BigCommerce,
|
|
3141
3119
|
product: IntegrationDisplayNames.BigCommerce,
|
|
3142
|
-
icon: IntegrationNames.BigCommerce,
|
|
3143
3120
|
displayName: "Order updated",
|
|
3144
3121
|
shortDescription: "Order updated",
|
|
3145
3122
|
description: "Triggers when a order is updated"
|
|
@@ -3165,7 +3142,6 @@ var bigcommerceTriggerConfigs = () => ({
|
|
|
3165
3142
|
customization: {
|
|
3166
3143
|
provider: IntegrationNames.BigCommerce,
|
|
3167
3144
|
product: IntegrationDisplayNames.BigCommerce,
|
|
3168
|
-
icon: IntegrationNames.BigCommerce,
|
|
3169
3145
|
displayName: "Product created",
|
|
3170
3146
|
shortDescription: "Product created",
|
|
3171
3147
|
description: "Triggers when a new product is created"
|
|
@@ -3191,7 +3167,6 @@ var bigcommerceTriggerConfigs = () => ({
|
|
|
3191
3167
|
customization: {
|
|
3192
3168
|
provider: IntegrationNames.BigCommerce,
|
|
3193
3169
|
product: IntegrationDisplayNames.BigCommerce,
|
|
3194
|
-
icon: IntegrationNames.BigCommerce,
|
|
3195
3170
|
displayName: "Product updated",
|
|
3196
3171
|
shortDescription: "Product updated",
|
|
3197
3172
|
description: "Triggers when a product is updated"
|
|
@@ -3536,7 +3511,6 @@ var helpdeskTaskConfigs = () => ({
|
|
|
3536
3511
|
customization: {
|
|
3537
3512
|
provider: IntegrationNames2.HelpDesk,
|
|
3538
3513
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3539
|
-
icon: PRODUCT_TYPE.HD,
|
|
3540
3514
|
displayName: "Add followers to ticket",
|
|
3541
3515
|
shortDescription: "Add followers to ticket",
|
|
3542
3516
|
description: "Adds followers to an existing ticket."
|
|
@@ -3581,7 +3555,6 @@ var helpdeskTaskConfigs = () => ({
|
|
|
3581
3555
|
customization: {
|
|
3582
3556
|
provider: IntegrationNames2.HelpDesk,
|
|
3583
3557
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3584
|
-
icon: PRODUCT_TYPE.HD,
|
|
3585
3558
|
displayName: "Add tags to ticket",
|
|
3586
3559
|
shortDescription: "Add tags to ticket",
|
|
3587
3560
|
description: "Adds tags to an existing ticket."
|
|
@@ -3625,7 +3598,6 @@ var helpdeskTaskConfigs = () => ({
|
|
|
3625
3598
|
customization: {
|
|
3626
3599
|
provider: IntegrationNames2.HelpDesk,
|
|
3627
3600
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3628
|
-
icon: PRODUCT_TYPE.HD,
|
|
3629
3601
|
displayName: "Create ticket",
|
|
3630
3602
|
shortDescription: "Create a ticket",
|
|
3631
3603
|
description: "Creates a new ticket."
|
|
@@ -3648,7 +3620,6 @@ var helpdeskTaskConfigs = () => ({
|
|
|
3648
3620
|
customization: {
|
|
3649
3621
|
provider: IntegrationNames2.HelpDesk,
|
|
3650
3622
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3651
|
-
icon: PRODUCT_TYPE.HD,
|
|
3652
3623
|
displayName: "Create transaction",
|
|
3653
3624
|
shortDescription: "Creates transaction",
|
|
3654
3625
|
description: "Task required to allow uploading attachments to a ticket."
|
|
@@ -3735,7 +3706,6 @@ var helpdeskTaskConfigs = () => ({
|
|
|
3735
3706
|
customization: {
|
|
3736
3707
|
provider: IntegrationNames2.HelpDesk,
|
|
3737
3708
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3738
|
-
icon: PRODUCT_TYPE.HD,
|
|
3739
3709
|
displayName: "Find ticket",
|
|
3740
3710
|
shortDescription: "Find ticket",
|
|
3741
3711
|
description: "Finds an existing ticket based on a ticket ID."
|
|
@@ -3764,7 +3734,6 @@ var helpdeskTaskConfigs = () => ({
|
|
|
3764
3734
|
customization: {
|
|
3765
3735
|
provider: IntegrationNames2.HelpDesk,
|
|
3766
3736
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3767
|
-
icon: PRODUCT_TYPE.HD,
|
|
3768
3737
|
displayName: "Update ticket",
|
|
3769
3738
|
shortDescription: "Update ticket",
|
|
3770
3739
|
description: "Modifies any of the selected ticket properties, such as ticket subject, priority, or tags, and allows for sending replies."
|
|
@@ -3928,7 +3897,6 @@ var helpDeskTriggerConfigs = () => ({
|
|
|
3928
3897
|
customization: {
|
|
3929
3898
|
provider: IntegrationNames2.HelpDesk,
|
|
3930
3899
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3931
|
-
icon: PRODUCT_TYPE.HD,
|
|
3932
3900
|
displayName: "Ticket created",
|
|
3933
3901
|
shortDescription: "Ticket created",
|
|
3934
3902
|
description: "Triggers when a new ticket is created."
|
|
@@ -3944,7 +3912,6 @@ var helpDeskTriggerConfigs = () => ({
|
|
|
3944
3912
|
customization: {
|
|
3945
3913
|
provider: IntegrationNames2.HelpDesk,
|
|
3946
3914
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3947
|
-
icon: PRODUCT_TYPE.HD,
|
|
3948
3915
|
displayName: "Ticket updated",
|
|
3949
3916
|
shortDescription: "Ticket updated",
|
|
3950
3917
|
description: "Triggers when a ticket is updated."
|
|
@@ -3960,7 +3927,6 @@ var helpDeskTriggerConfigs = () => ({
|
|
|
3960
3927
|
customization: {
|
|
3961
3928
|
provider: IntegrationNames2.HelpDesk,
|
|
3962
3929
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3963
|
-
icon: PRODUCT_TYPE.HD,
|
|
3964
3930
|
displayName: "Ticket status changed",
|
|
3965
3931
|
shortDescription: "Ticket status changed",
|
|
3966
3932
|
description: "Triggers when a ticket status has changed."
|
|
@@ -3976,7 +3942,6 @@ var helpDeskTriggerConfigs = () => ({
|
|
|
3976
3942
|
customization: {
|
|
3977
3943
|
provider: IntegrationNames2.HelpDesk,
|
|
3978
3944
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3979
|
-
icon: PRODUCT_TYPE.HD,
|
|
3980
3945
|
displayName: "Ticket priority changed",
|
|
3981
3946
|
shortDescription: "Ticket priority changed",
|
|
3982
3947
|
description: "Triggers when a ticket priority has changed."
|
|
@@ -3992,7 +3957,6 @@ var helpDeskTriggerConfigs = () => ({
|
|
|
3992
3957
|
customization: {
|
|
3993
3958
|
provider: IntegrationNames2.HelpDesk,
|
|
3994
3959
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
3995
|
-
icon: PRODUCT_TYPE.HD,
|
|
3996
3960
|
displayName: "Ticket tags changed",
|
|
3997
3961
|
shortDescription: "Ticket tags changed",
|
|
3998
3962
|
description: "Triggers when a ticket tags has changed."
|
|
@@ -4008,7 +3972,6 @@ var helpDeskTriggerConfigs = () => ({
|
|
|
4008
3972
|
customization: {
|
|
4009
3973
|
provider: IntegrationNames2.HelpDesk,
|
|
4010
3974
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
4011
|
-
icon: PRODUCT_TYPE.HD,
|
|
4012
3975
|
displayName: "Ticket followers changed",
|
|
4013
3976
|
shortDescription: "Ticket followers changed",
|
|
4014
3977
|
description: "Triggers when a ticket followers has changed."
|
|
@@ -4024,7 +3987,6 @@ var helpDeskTriggerConfigs = () => ({
|
|
|
4024
3987
|
customization: {
|
|
4025
3988
|
provider: IntegrationNames2.HelpDesk,
|
|
4026
3989
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
4027
|
-
icon: PRODUCT_TYPE.HD,
|
|
4028
3990
|
displayName: "Ticket assignment changed",
|
|
4029
3991
|
shortDescription: "Ticket assignment changed",
|
|
4030
3992
|
description: "Triggers when a ticket assignment has changed."
|
|
@@ -4040,7 +4002,6 @@ var helpDeskTriggerConfigs = () => ({
|
|
|
4040
4002
|
customization: {
|
|
4041
4003
|
provider: IntegrationNames2.HelpDesk,
|
|
4042
4004
|
product: IntegrationDisplayNames2.HelpDesk,
|
|
4043
|
-
icon: PRODUCT_TYPE.HD,
|
|
4044
4005
|
displayName: "Ticket message added",
|
|
4045
4006
|
shortDescription: "Ticket message added",
|
|
4046
4007
|
description: "Triggers when a messages was added to ticket."
|
|
@@ -4199,7 +4160,6 @@ var hubspotTaskConfigs = () => ({
|
|
|
4199
4160
|
customization: {
|
|
4200
4161
|
provider: IntegrationNames3.HubSpot,
|
|
4201
4162
|
product: IntegrationDisplayNames3.HubSpot,
|
|
4202
|
-
icon: IntegrationNames3.HubSpot,
|
|
4203
4163
|
displayName: "Create contact",
|
|
4204
4164
|
shortDescription: "Create contact",
|
|
4205
4165
|
description: "Creates a new HubSpot contact."
|
|
@@ -4224,7 +4184,6 @@ var hubspotTaskConfigs = () => ({
|
|
|
4224
4184
|
// customization: {
|
|
4225
4185
|
// provider: IntegrationNames.HubSpot,
|
|
4226
4186
|
// product: IntegrationDisplayNames.HubSpot,
|
|
4227
|
-
// icon: IntegrationNames.HubSpot,
|
|
4228
4187
|
// displayName: 'Delete contact',
|
|
4229
4188
|
// shortDescription: 'Delete contact',
|
|
4230
4189
|
// description: 'Deletes existing HubSpot contact.',
|
|
@@ -4249,7 +4208,6 @@ var hubspotTaskConfigs = () => ({
|
|
|
4249
4208
|
customization: {
|
|
4250
4209
|
provider: IntegrationNames3.HubSpot,
|
|
4251
4210
|
product: IntegrationDisplayNames3.HubSpot,
|
|
4252
|
-
icon: IntegrationNames3.HubSpot,
|
|
4253
4211
|
displayName: "Get contact",
|
|
4254
4212
|
shortDescription: "Get contact",
|
|
4255
4213
|
description: "Pulls information about an existing HubSpot contact."
|
|
@@ -4280,7 +4238,6 @@ var hubspotTaskConfigs = () => ({
|
|
|
4280
4238
|
customization: {
|
|
4281
4239
|
provider: IntegrationNames3.HubSpot,
|
|
4282
4240
|
product: IntegrationDisplayNames3.HubSpot,
|
|
4283
|
-
icon: IntegrationNames3.HubSpot,
|
|
4284
4241
|
displayName: "Update contact",
|
|
4285
4242
|
shortDescription: "Update contact",
|
|
4286
4243
|
description: "Updates an existing HubSpot contact."
|
|
@@ -4403,7 +4360,6 @@ var hubspotTriggerConfigs = () => ({
|
|
|
4403
4360
|
customization: {
|
|
4404
4361
|
provider: IntegrationNames3.HubSpot,
|
|
4405
4362
|
product: IntegrationDisplayNames3.HubSpot,
|
|
4406
|
-
icon: IntegrationNames3.HubSpot,
|
|
4407
4363
|
displayName: "Contact created",
|
|
4408
4364
|
shortDescription: "Contact created",
|
|
4409
4365
|
description: "Triggers when a new contact is created"
|
|
@@ -4422,7 +4378,6 @@ var hubspotTriggerConfigs = () => ({
|
|
|
4422
4378
|
customization: {
|
|
4423
4379
|
provider: IntegrationNames3.HubSpot,
|
|
4424
4380
|
product: IntegrationDisplayNames3.HubSpot,
|
|
4425
|
-
icon: IntegrationNames3.HubSpot,
|
|
4426
4381
|
displayName: "Contact deleted",
|
|
4427
4382
|
shortDescription: "Contact deleted",
|
|
4428
4383
|
description: "Triggers when a contact is deleted"
|
|
@@ -5047,7 +5002,6 @@ var livechatTaskConfigs = () => ({
|
|
|
5047
5002
|
customization: {
|
|
5048
5003
|
provider: IntegrationNames4.LiveChat,
|
|
5049
5004
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5050
|
-
icon: IntegrationNames4.LiveChat,
|
|
5051
5005
|
displayName: "Transfer chat",
|
|
5052
5006
|
shortDescription: "Transfer chat",
|
|
5053
5007
|
description: "Transfers chat to appropriate agents or groups."
|
|
@@ -5090,7 +5044,6 @@ var livechatTaskConfigs = () => ({
|
|
|
5090
5044
|
customization: {
|
|
5091
5045
|
provider: IntegrationNames4.LiveChat,
|
|
5092
5046
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5093
|
-
icon: PRODUCT_TYPE.LC,
|
|
5094
5047
|
displayName: "Tag chat",
|
|
5095
5048
|
shortDescription: "Tag chat",
|
|
5096
5049
|
description: "Tags a chat in LiveChat."
|
|
@@ -5128,7 +5081,6 @@ var livechatTaskConfigs = () => ({
|
|
|
5128
5081
|
customization: {
|
|
5129
5082
|
provider: IntegrationNames4.LiveChat,
|
|
5130
5083
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5131
|
-
icon: PRODUCT_TYPE.LC,
|
|
5132
5084
|
displayName: "Chat transcript",
|
|
5133
5085
|
shortDescription: "Get chat transcript",
|
|
5134
5086
|
description: "Gets the transcript of a chat in LiveChat."
|
|
@@ -5179,7 +5131,6 @@ var livechatTaskConfigs = () => ({
|
|
|
5179
5131
|
customization: {
|
|
5180
5132
|
provider: IntegrationNames4.LiveChat,
|
|
5181
5133
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5182
|
-
icon: PRODUCT_TYPE.LC,
|
|
5183
5134
|
displayName: "Send message",
|
|
5184
5135
|
shortDescription: "Send message",
|
|
5185
5136
|
description: "Sends a message in a currently ongoing chat."
|
|
@@ -5220,7 +5171,6 @@ var livechatTaskConfigs = () => ({
|
|
|
5220
5171
|
customization: {
|
|
5221
5172
|
provider: IntegrationNames4.LiveChat,
|
|
5222
5173
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5223
|
-
icon: PRODUCT_TYPE.LC,
|
|
5224
5174
|
displayName: "Supervise chat",
|
|
5225
5175
|
shortDescription: "Supervise chat",
|
|
5226
5176
|
description: "Supervises LiveChat chat. Required to send private messages to agents in the chat."
|
|
@@ -5361,7 +5311,6 @@ var livechatTriggerConfigs = () => ({
|
|
|
5361
5311
|
customization: {
|
|
5362
5312
|
provider: IntegrationNames4.LiveChat,
|
|
5363
5313
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5364
|
-
icon: PRODUCT_TYPE.LC,
|
|
5365
5314
|
displayName: "Chat started",
|
|
5366
5315
|
shortDescription: "Chat started",
|
|
5367
5316
|
description: "Triggers when a new chat is initiated."
|
|
@@ -5377,7 +5326,6 @@ var livechatTriggerConfigs = () => ({
|
|
|
5377
5326
|
customization: {
|
|
5378
5327
|
provider: IntegrationNames4.LiveChat,
|
|
5379
5328
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5380
|
-
icon: PRODUCT_TYPE.LC,
|
|
5381
5329
|
displayName: "Agent assigned",
|
|
5382
5330
|
shortDescription: "Agent assigned",
|
|
5383
5331
|
description: "Triggers when an agent is assigned to a specific chat."
|
|
@@ -5393,7 +5341,6 @@ var livechatTriggerConfigs = () => ({
|
|
|
5393
5341
|
customization: {
|
|
5394
5342
|
provider: IntegrationNames4.LiveChat,
|
|
5395
5343
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5396
|
-
icon: PRODUCT_TYPE.LC,
|
|
5397
5344
|
displayName: "Chat rated",
|
|
5398
5345
|
shortDescription: "Chat rated",
|
|
5399
5346
|
description: "Triggers when a chat receives a selected rating."
|
|
@@ -5424,7 +5371,6 @@ var livechatTriggerConfigs = () => ({
|
|
|
5424
5371
|
customization: {
|
|
5425
5372
|
provider: IntegrationNames4.LiveChat,
|
|
5426
5373
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5427
|
-
icon: PRODUCT_TYPE.LC,
|
|
5428
5374
|
displayName: "Specific keywords in chat",
|
|
5429
5375
|
shortDescription: "Specific keywords in chat",
|
|
5430
5376
|
description: "Triggers when specific keywords are sent in the chat."
|
|
@@ -5441,7 +5387,6 @@ var livechatTriggerConfigs = () => ({
|
|
|
5441
5387
|
customization: {
|
|
5442
5388
|
provider: IntegrationNames4.LiveChat,
|
|
5443
5389
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5444
|
-
icon: PRODUCT_TYPE.LC,
|
|
5445
5390
|
displayName: "Visitor leaves chat",
|
|
5446
5391
|
shortDescription: "Visitor leaves chat",
|
|
5447
5392
|
description: "Triggers when a visitor exits a chat before completion."
|
|
@@ -5457,7 +5402,6 @@ var livechatTriggerConfigs = () => ({
|
|
|
5457
5402
|
customization: {
|
|
5458
5403
|
provider: IntegrationNames4.LiveChat,
|
|
5459
5404
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5460
|
-
icon: PRODUCT_TYPE.LC,
|
|
5461
5405
|
displayName: "Chat ended",
|
|
5462
5406
|
shortDescription: "Chat ended",
|
|
5463
5407
|
description: "Triggers when a chat is finished."
|
|
@@ -5473,7 +5417,6 @@ var livechatTriggerConfigs = () => ({
|
|
|
5473
5417
|
customization: {
|
|
5474
5418
|
provider: IntegrationNames4.LiveChat,
|
|
5475
5419
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5476
|
-
icon: PRODUCT_TYPE.LC,
|
|
5477
5420
|
displayName: "Chat transferred",
|
|
5478
5421
|
shortDescription: "Chat transferred",
|
|
5479
5422
|
description: "Triggers when a chat is transferred between agents or groups."
|
|
@@ -5489,7 +5432,6 @@ var livechatTriggerConfigs = () => ({
|
|
|
5489
5432
|
customization: {
|
|
5490
5433
|
provider: IntegrationNames4.LiveChat,
|
|
5491
5434
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5492
|
-
icon: PRODUCT_TYPE.LC,
|
|
5493
5435
|
displayName: "Chat commented",
|
|
5494
5436
|
shortDescription: "Chat commented",
|
|
5495
5437
|
description: "Triggers when a chat is commented."
|
|
@@ -5505,7 +5447,6 @@ var livechatTriggerConfigs = () => ({
|
|
|
5505
5447
|
customization: {
|
|
5506
5448
|
provider: IntegrationNames4.LiveChat,
|
|
5507
5449
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5508
|
-
icon: PRODUCT_TYPE.LC,
|
|
5509
5450
|
displayName: "Chat tagged",
|
|
5510
5451
|
shortDescription: "Chat tagged",
|
|
5511
5452
|
description: "Triggers when a chat is tagged."
|
|
@@ -5830,7 +5771,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
5830
5771
|
customization: {
|
|
5831
5772
|
provider: IntegrationNames5.Mailchimp,
|
|
5832
5773
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
5833
|
-
icon: IntegrationNames5.Mailchimp,
|
|
5834
5774
|
displayName: "Add subscriber",
|
|
5835
5775
|
shortDescription: "Add subscriber",
|
|
5836
5776
|
description: "Adds a subscriber in Mailchimp."
|
|
@@ -5875,7 +5815,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
5875
5815
|
customization: {
|
|
5876
5816
|
provider: IntegrationNames5.Mailchimp,
|
|
5877
5817
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
5878
|
-
icon: IntegrationNames5.Mailchimp,
|
|
5879
5818
|
displayName: "Add campaign",
|
|
5880
5819
|
shortDescription: "Add campaign",
|
|
5881
5820
|
description: "Creates a new campaign in Mailchimp."
|
|
@@ -5922,7 +5861,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
5922
5861
|
customization: {
|
|
5923
5862
|
provider: IntegrationNames5.Mailchimp,
|
|
5924
5863
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
5925
|
-
icon: IntegrationNames5.Mailchimp,
|
|
5926
5864
|
displayName: "Send campaign",
|
|
5927
5865
|
shortDescription: "Send campaign",
|
|
5928
5866
|
description: "Sends a pre-created campaign in Mailchimp."
|
|
@@ -5955,7 +5893,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
5955
5893
|
customization: {
|
|
5956
5894
|
provider: IntegrationNames5.Mailchimp,
|
|
5957
5895
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
5958
|
-
icon: IntegrationNames5.Mailchimp,
|
|
5959
5896
|
displayName: "Add or update subscriber",
|
|
5960
5897
|
shortDescription: "Add or update subscriber",
|
|
5961
5898
|
description: "Adds or updates a subscriber in Mailchimp."
|
|
@@ -6005,7 +5942,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6005
5942
|
customization: {
|
|
6006
5943
|
provider: IntegrationNames5.Mailchimp,
|
|
6007
5944
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6008
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6009
5945
|
displayName: "Update subscriber",
|
|
6010
5946
|
shortDescription: "Update subscriber",
|
|
6011
5947
|
description: "Updates subscriber details in Mailchimp."
|
|
@@ -6055,7 +5991,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6055
5991
|
customization: {
|
|
6056
5992
|
provider: IntegrationNames5.Mailchimp,
|
|
6057
5993
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6058
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6059
5994
|
displayName: "Archive subscriber",
|
|
6060
5995
|
shortDescription: "Archive subscriber",
|
|
6061
5996
|
description: "Archives a subscriber in Mailchimp."
|
|
@@ -6092,7 +6027,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6092
6027
|
customization: {
|
|
6093
6028
|
provider: IntegrationNames5.Mailchimp,
|
|
6094
6029
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6095
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6096
6030
|
displayName: "Delete subscriber",
|
|
6097
6031
|
shortDescription: "Delete subscriber",
|
|
6098
6032
|
description: "Deletes a subscriber from Mailchimp."
|
|
@@ -6129,7 +6063,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6129
6063
|
customization: {
|
|
6130
6064
|
provider: IntegrationNames5.Mailchimp,
|
|
6131
6065
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6132
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6133
6066
|
displayName: "Add subscriber tag",
|
|
6134
6067
|
shortDescription: "Add subscriber tag",
|
|
6135
6068
|
description: "Adds a tag to a subscriber in Mailchimp."
|
|
@@ -6171,7 +6104,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6171
6104
|
customization: {
|
|
6172
6105
|
provider: IntegrationNames5.Mailchimp,
|
|
6173
6106
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6174
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6175
6107
|
displayName: "Add subscriber event",
|
|
6176
6108
|
shortDescription: "Add subscriber event",
|
|
6177
6109
|
description: "Adds event to subscriber in Mailchimp."
|
|
@@ -6229,7 +6161,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6229
6161
|
customization: {
|
|
6230
6162
|
provider: IntegrationNames5.Mailchimp,
|
|
6231
6163
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6232
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6233
6164
|
displayName: "Add note to subscriber",
|
|
6234
6165
|
shortDescription: "Add note to subscriber",
|
|
6235
6166
|
description: "Adds a custom note to a subscriber in Mailchimp."
|
|
@@ -6271,7 +6202,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6271
6202
|
customization: {
|
|
6272
6203
|
provider: IntegrationNames5.Mailchimp,
|
|
6273
6204
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6274
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6275
6205
|
displayName: "Delete tag from subscriber",
|
|
6276
6206
|
shortDescription: "Delete tag from subscriber",
|
|
6277
6207
|
description: "Deletes a subscriber from a tag in Mailchimp."
|
|
@@ -6312,7 +6242,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6312
6242
|
customization: {
|
|
6313
6243
|
provider: IntegrationNames5.Mailchimp,
|
|
6314
6244
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6315
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6316
6245
|
displayName: "Get subscriber's tags",
|
|
6317
6246
|
shortDescription: "Get subscriber's tags",
|
|
6318
6247
|
description: "Pulls subscriber's tags from Mailchimp."
|
|
@@ -6379,7 +6308,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6379
6308
|
customization: {
|
|
6380
6309
|
provider: IntegrationNames5.Mailchimp,
|
|
6381
6310
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6382
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6383
6311
|
displayName: "Get subscriber",
|
|
6384
6312
|
shortDescription: "Get subscriber",
|
|
6385
6313
|
description: "Pulls subscriber information from Mailchimp."
|
|
@@ -6556,7 +6484,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6556
6484
|
customization: {
|
|
6557
6485
|
provider: IntegrationNames5.Mailchimp,
|
|
6558
6486
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6559
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6560
6487
|
displayName: "Get subscribers",
|
|
6561
6488
|
shortDescription: "Get subscribers",
|
|
6562
6489
|
description: "Pulls the subscribers list from a specific Mailchimp audience."
|
|
@@ -6734,7 +6661,6 @@ var mailchimpTaskConfigs = () => ({
|
|
|
6734
6661
|
customization: {
|
|
6735
6662
|
provider: IntegrationNames5.Mailchimp,
|
|
6736
6663
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
6737
|
-
icon: IntegrationNames5.Mailchimp,
|
|
6738
6664
|
displayName: "Find campaign",
|
|
6739
6665
|
shortDescription: "Find campaign",
|
|
6740
6666
|
description: "Finds a campaign in Mailchimp based on the campaign ID."
|
|
@@ -7210,7 +7136,6 @@ var mailchimpTriggerConfigs = () => ({
|
|
|
7210
7136
|
customization: {
|
|
7211
7137
|
provider: IntegrationNames5.Mailchimp,
|
|
7212
7138
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
7213
|
-
icon: IntegrationNames5.Mailchimp,
|
|
7214
7139
|
displayName: "New subscriber",
|
|
7215
7140
|
shortDescription: "New subscriber",
|
|
7216
7141
|
description: "Triggers when a new subscriber is added in Mailchimp."
|
|
@@ -7237,7 +7162,6 @@ var mailchimpTriggerConfigs = () => ({
|
|
|
7237
7162
|
customization: {
|
|
7238
7163
|
provider: IntegrationNames5.Mailchimp,
|
|
7239
7164
|
product: IntegrationDisplayNames5.Mailchimp,
|
|
7240
|
-
icon: IntegrationNames5.Mailchimp,
|
|
7241
7165
|
displayName: "New unsubscriber",
|
|
7242
7166
|
shortDescription: "New unsubscriber",
|
|
7243
7167
|
description: "Triggers when a subscriber unsubscribes in Mailchimp."
|
|
@@ -7298,7 +7222,11 @@ var mailchimpTriggerTemplates = () => ({
|
|
|
7298
7222
|
});
|
|
7299
7223
|
|
|
7300
7224
|
// src/views/Flows/Definitions/Mocks/OpenAI/index.ts
|
|
7301
|
-
import {
|
|
7225
|
+
import {
|
|
7226
|
+
IntegrationDisplayNames as IntegrationDisplayNames6,
|
|
7227
|
+
IntegrationNames as IntegrationNames6,
|
|
7228
|
+
WorkflowDefinitionTaskType as WorkflowDefinitionTaskType7
|
|
7229
|
+
} from "@livechat/developer-studio-api";
|
|
7302
7230
|
var openAiTaskConfigs = () => ({
|
|
7303
7231
|
["OPENAI_EXTRACT_ORDER_REQUEST" /* ExtractOrderRequest */]: {
|
|
7304
7232
|
key: "OPENAI_EXTRACT_ORDER_REQUEST" /* ExtractOrderRequest */,
|
|
@@ -7307,9 +7235,8 @@ var openAiTaskConfigs = () => ({
|
|
|
7307
7235
|
"workflowsApiUr"
|
|
7308
7236
|
)}/functions/extract-order-from-text`,
|
|
7309
7237
|
customization: {
|
|
7310
|
-
provider:
|
|
7311
|
-
product:
|
|
7312
|
-
icon: OTHER_PRODUCT_TYPE.OPENAI,
|
|
7238
|
+
provider: IntegrationNames6.OpenAI,
|
|
7239
|
+
product: IntegrationDisplayNames6.OpenAI,
|
|
7313
7240
|
displayName: "Extract order",
|
|
7314
7241
|
shortDescription: "Extract order",
|
|
7315
7242
|
description: "Extracts order information from the provided text source."
|
|
@@ -7398,9 +7325,8 @@ var openAiTaskConfigs = () => ({
|
|
|
7398
7325
|
"workflowsApiUr"
|
|
7399
7326
|
)}/functions/analyze-text-sentiment`,
|
|
7400
7327
|
customization: {
|
|
7401
|
-
provider:
|
|
7402
|
-
product:
|
|
7403
|
-
icon: OTHER_PRODUCT_TYPE.OPENAI,
|
|
7328
|
+
provider: IntegrationNames6.OpenAI,
|
|
7329
|
+
product: IntegrationDisplayNames6.OpenAI,
|
|
7404
7330
|
displayName: "Text sentiment",
|
|
7405
7331
|
shortDescription: "Text sentiment",
|
|
7406
7332
|
description: "Analyzes text for positive, negative, or neutral sentiment."
|
|
@@ -7433,9 +7359,8 @@ var openAiTaskConfigs = () => ({
|
|
|
7433
7359
|
type: WorkflowDefinitionTaskType7.http,
|
|
7434
7360
|
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
|
|
7435
7361
|
customization: {
|
|
7436
|
-
provider:
|
|
7437
|
-
product:
|
|
7438
|
-
icon: OTHER_PRODUCT_TYPE.OPENAI,
|
|
7362
|
+
provider: IntegrationNames6.OpenAI,
|
|
7363
|
+
product: IntegrationDisplayNames6.OpenAI,
|
|
7439
7364
|
displayName: "Summarize text",
|
|
7440
7365
|
shortDescription: "Summarize text",
|
|
7441
7366
|
description: "Summarizes long pieces of text into shorter and more concise versions."
|
|
@@ -7468,9 +7393,8 @@ var openAiTaskConfigs = () => ({
|
|
|
7468
7393
|
type: WorkflowDefinitionTaskType7.http,
|
|
7469
7394
|
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
|
|
7470
7395
|
customization: {
|
|
7471
|
-
provider:
|
|
7472
|
-
product:
|
|
7473
|
-
icon: OTHER_PRODUCT_TYPE.OPENAI,
|
|
7396
|
+
provider: IntegrationNames6.OpenAI,
|
|
7397
|
+
product: IntegrationDisplayNames6.OpenAI,
|
|
7474
7398
|
displayName: "Check moderation",
|
|
7475
7399
|
shortDescription: "Check moderation",
|
|
7476
7400
|
description: "Uses OpenAI's moderation tool to check for hate speech, self-harm, sexual content, violence, and more."
|
|
@@ -7502,9 +7426,8 @@ var openAiTaskConfigs = () => ({
|
|
|
7502
7426
|
type: WorkflowDefinitionTaskType7.http,
|
|
7503
7427
|
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
|
|
7504
7428
|
customization: {
|
|
7505
|
-
provider:
|
|
7506
|
-
product:
|
|
7507
|
-
icon: OTHER_PRODUCT_TYPE.OPENAI,
|
|
7429
|
+
provider: IntegrationNames6.OpenAI,
|
|
7430
|
+
product: IntegrationDisplayNames6.OpenAI,
|
|
7508
7431
|
displayName: "Categorize text",
|
|
7509
7432
|
shortDescription: "Categorize text",
|
|
7510
7433
|
description: "Categorizes provided text into categories predefined by the user."
|
|
@@ -7635,8 +7558,8 @@ var openAiTaskTemplates = () => ({
|
|
|
7635
7558
|
|
|
7636
7559
|
// src/views/Flows/Definitions/Mocks/Shopify/index.ts
|
|
7637
7560
|
import {
|
|
7638
|
-
IntegrationDisplayNames as
|
|
7639
|
-
IntegrationNames as
|
|
7561
|
+
IntegrationDisplayNames as IntegrationDisplayNames7,
|
|
7562
|
+
IntegrationNames as IntegrationNames7,
|
|
7640
7563
|
ShopifyEventNames,
|
|
7641
7564
|
WorkflowDefinitionTaskType as WorkflowDefinitionTaskType8
|
|
7642
7565
|
} from "@livechat/developer-studio-api";
|
|
@@ -8067,9 +7990,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8067
7990
|
"workflowsApiUr"
|
|
8068
7991
|
)}/functions/create-shopify-customer`,
|
|
8069
7992
|
customization: {
|
|
8070
|
-
provider:
|
|
8071
|
-
product:
|
|
8072
|
-
icon: IntegrationNames6.Shopify,
|
|
7993
|
+
provider: IntegrationNames7.Shopify,
|
|
7994
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8073
7995
|
displayName: "Create customer",
|
|
8074
7996
|
shortDescription: "Create customer",
|
|
8075
7997
|
description: "Creates a new customer in your Shopify account."
|
|
@@ -8091,9 +8013,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8091
8013
|
type: WorkflowDefinitionTaskType8.http,
|
|
8092
8014
|
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/create-shopify-order`,
|
|
8093
8015
|
customization: {
|
|
8094
|
-
provider:
|
|
8095
|
-
product:
|
|
8096
|
-
icon: IntegrationNames6.Shopify,
|
|
8016
|
+
provider: IntegrationNames7.Shopify,
|
|
8017
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8097
8018
|
displayName: "Create order",
|
|
8098
8019
|
shortDescription: "Create order",
|
|
8099
8020
|
description: "Creates a new order."
|
|
@@ -8116,9 +8037,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8116
8037
|
"workflowsApiUr"
|
|
8117
8038
|
)}/functions/create-shopify-draft-order`,
|
|
8118
8039
|
customization: {
|
|
8119
|
-
provider:
|
|
8120
|
-
product:
|
|
8121
|
-
icon: IntegrationNames6.Shopify,
|
|
8040
|
+
provider: IntegrationNames7.Shopify,
|
|
8041
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8122
8042
|
displayName: "Create draft order",
|
|
8123
8043
|
shortDescription: "Create draft order",
|
|
8124
8044
|
description: "Creates a new draft order on behalf of the customer."
|
|
@@ -8141,9 +8061,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8141
8061
|
"workflowsApiUr"
|
|
8142
8062
|
)}/functions/create-shopify-product`,
|
|
8143
8063
|
customization: {
|
|
8144
|
-
provider:
|
|
8145
|
-
product:
|
|
8146
|
-
icon: IntegrationNames6.Shopify,
|
|
8064
|
+
provider: IntegrationNames7.Shopify,
|
|
8065
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8147
8066
|
displayName: "Create product",
|
|
8148
8067
|
shortDescription: "Create product",
|
|
8149
8068
|
description: "Adds a new product to your Shopify catalog."
|
|
@@ -8166,9 +8085,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8166
8085
|
"workflowsApiUr"
|
|
8167
8086
|
)}/functions/create-shopify-product-variant`,
|
|
8168
8087
|
customization: {
|
|
8169
|
-
provider:
|
|
8170
|
-
product:
|
|
8171
|
-
icon: IntegrationNames6.Shopify,
|
|
8088
|
+
provider: IntegrationNames7.Shopify,
|
|
8089
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8172
8090
|
displayName: "Create product variant",
|
|
8173
8091
|
shortDescription: "Create product variant",
|
|
8174
8092
|
description: "Creates a new variation for an existing product (e.g., different size, color)."
|
|
@@ -8189,9 +8107,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8189
8107
|
type: WorkflowDefinitionTaskType8.http,
|
|
8190
8108
|
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-shopify-customer`,
|
|
8191
8109
|
customization: {
|
|
8192
|
-
provider:
|
|
8193
|
-
product:
|
|
8194
|
-
icon: IntegrationNames6.Shopify,
|
|
8110
|
+
provider: IntegrationNames7.Shopify,
|
|
8111
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8195
8112
|
displayName: "Get customer",
|
|
8196
8113
|
shortDescription: "Get customer",
|
|
8197
8114
|
description: "Pulls information about a specific customer by email."
|
|
@@ -8220,9 +8137,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8220
8137
|
"workflowsApiUr"
|
|
8221
8138
|
)}/functions/get-shopify-customer-orders`,
|
|
8222
8139
|
customization: {
|
|
8223
|
-
provider:
|
|
8224
|
-
product:
|
|
8225
|
-
icon: IntegrationNames6.Shopify,
|
|
8140
|
+
provider: IntegrationNames7.Shopify,
|
|
8141
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8226
8142
|
displayName: "Get customer orders",
|
|
8227
8143
|
shortDescription: "Get customer orders",
|
|
8228
8144
|
description: "Pulls customer's orders by email."
|
|
@@ -8254,9 +8170,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8254
8170
|
"workflowsApiUr"
|
|
8255
8171
|
)}/functions/get-shopify-customer-last-order`,
|
|
8256
8172
|
customization: {
|
|
8257
|
-
provider:
|
|
8258
|
-
product:
|
|
8259
|
-
icon: IntegrationNames6.Shopify,
|
|
8173
|
+
provider: IntegrationNames7.Shopify,
|
|
8174
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8260
8175
|
displayName: "Get customer order",
|
|
8261
8176
|
shortDescription: "Get customer last order",
|
|
8262
8177
|
description: "Finds the most recent order of a customer."
|
|
@@ -8283,9 +8198,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8283
8198
|
key: "SHOPIFY_GET_PRODUCT" /* GetProduct */,
|
|
8284
8199
|
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-shopify-product`,
|
|
8285
8200
|
customization: {
|
|
8286
|
-
provider:
|
|
8287
|
-
product:
|
|
8288
|
-
icon: IntegrationNames6.Shopify,
|
|
8201
|
+
provider: IntegrationNames7.Shopify,
|
|
8202
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8289
8203
|
displayName: "Get product",
|
|
8290
8204
|
shortDescription: "Get product",
|
|
8291
8205
|
description: "Searches for a product by its ID."
|
|
@@ -8315,9 +8229,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8315
8229
|
"workflowsApiUr"
|
|
8316
8230
|
)}/functions/get-shopify-product-variant`,
|
|
8317
8231
|
customization: {
|
|
8318
|
-
provider:
|
|
8319
|
-
product:
|
|
8320
|
-
icon: IntegrationNames6.Shopify,
|
|
8232
|
+
provider: IntegrationNames7.Shopify,
|
|
8233
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8321
8234
|
displayName: "Get product variant",
|
|
8322
8235
|
shortDescription: "Get product variant",
|
|
8323
8236
|
description: "Searches for a product variant."
|
|
@@ -8350,9 +8263,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8350
8263
|
"workflowsApiUr"
|
|
8351
8264
|
)}/functions/update-shopify-inventory-quantity`,
|
|
8352
8265
|
customization: {
|
|
8353
|
-
provider:
|
|
8354
|
-
product:
|
|
8355
|
-
icon: IntegrationNames6.Shopify,
|
|
8266
|
+
provider: IntegrationNames7.Shopify,
|
|
8267
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8356
8268
|
displayName: "Update inventory quantity",
|
|
8357
8269
|
shortDescription: "Update inventory quantity",
|
|
8358
8270
|
description: "Adjusts the stock level for a product variant."
|
|
@@ -8416,9 +8328,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8416
8328
|
key: "SHOPIFY_UPDATE_ORDER" /* UpdateOrder */,
|
|
8417
8329
|
url: `${getWorkflowsEnv("workflowsApiUr")}/functions/update-shopify-order`,
|
|
8418
8330
|
customization: {
|
|
8419
|
-
provider:
|
|
8420
|
-
product:
|
|
8421
|
-
icon: IntegrationNames6.Shopify,
|
|
8331
|
+
provider: IntegrationNames7.Shopify,
|
|
8332
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8422
8333
|
displayName: "Update order",
|
|
8423
8334
|
shortDescription: "Update order",
|
|
8424
8335
|
description: "Updates an order."
|
|
@@ -8441,9 +8352,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8441
8352
|
"workflowsApiUr"
|
|
8442
8353
|
)}/functions/update-shopify-product`,
|
|
8443
8354
|
customization: {
|
|
8444
|
-
provider:
|
|
8445
|
-
product:
|
|
8446
|
-
icon: IntegrationNames6.Shopify,
|
|
8355
|
+
provider: IntegrationNames7.Shopify,
|
|
8356
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8447
8357
|
displayName: "Update product",
|
|
8448
8358
|
shortDescription: "Update product",
|
|
8449
8359
|
description: "Modifies the details of an existing product in your Shopify store."
|
|
@@ -8466,9 +8376,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8466
8376
|
"workflowsApiUr"
|
|
8467
8377
|
)}/functions/update-shopify-product-variant`,
|
|
8468
8378
|
customization: {
|
|
8469
|
-
provider:
|
|
8470
|
-
product:
|
|
8471
|
-
icon: IntegrationNames6.Shopify,
|
|
8379
|
+
provider: IntegrationNames7.Shopify,
|
|
8380
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8472
8381
|
displayName: "Update product variant",
|
|
8473
8382
|
shortDescription: "Update product variant",
|
|
8474
8383
|
description: "Modifies the details of an existing product variant."
|
|
@@ -8491,9 +8400,8 @@ var shopifyTaskConfigs = () => ({
|
|
|
8491
8400
|
"workflowsApiUr"
|
|
8492
8401
|
)}/functions/update-shopify-customer`,
|
|
8493
8402
|
customization: {
|
|
8494
|
-
provider:
|
|
8495
|
-
product:
|
|
8496
|
-
icon: IntegrationNames6.Shopify,
|
|
8403
|
+
provider: IntegrationNames7.Shopify,
|
|
8404
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8497
8405
|
displayName: "Update customer",
|
|
8498
8406
|
shortDescription: "Update customer",
|
|
8499
8407
|
description: "Modifies an existing customer's information."
|
|
@@ -8790,7 +8698,7 @@ var shopifyTaskTemplates = () => ({
|
|
|
8790
8698
|
})
|
|
8791
8699
|
});
|
|
8792
8700
|
var ShopifyTriggerNames = {
|
|
8793
|
-
OrderCreated: `${
|
|
8701
|
+
OrderCreated: `${IntegrationNames7.Shopify}-${ShopifyEventNames.OrderCreated}`
|
|
8794
8702
|
};
|
|
8795
8703
|
var shopifyTriggerConfigs = () => ({
|
|
8796
8704
|
[ShopifyTriggerNames.OrderCreated]: {
|
|
@@ -8798,9 +8706,8 @@ var shopifyTriggerConfigs = () => ({
|
|
|
8798
8706
|
name: ShopifyEventNames.OrderCreated,
|
|
8799
8707
|
type: "webhook",
|
|
8800
8708
|
customization: {
|
|
8801
|
-
provider:
|
|
8802
|
-
product:
|
|
8803
|
-
icon: IntegrationNames6.Shopify,
|
|
8709
|
+
provider: IntegrationNames7.Shopify,
|
|
8710
|
+
product: IntegrationDisplayNames7.Shopify,
|
|
8804
8711
|
displayName: "Order created",
|
|
8805
8712
|
shortDescription: "Order created",
|
|
8806
8713
|
description: "Triggers when a new order is created"
|
|
@@ -8814,7 +8721,7 @@ var shopifyTriggerTemplates = () => ({
|
|
|
8814
8721
|
[ShopifyTriggerNames.OrderCreated]: {
|
|
8815
8722
|
type: "webhook",
|
|
8816
8723
|
webhook: {
|
|
8817
|
-
source:
|
|
8724
|
+
source: IntegrationNames7.Shopify,
|
|
8818
8725
|
event: {
|
|
8819
8726
|
name: ShopifyEventNames.OrderCreated
|
|
8820
8727
|
},
|
|
@@ -9400,7 +9307,7 @@ import { useNotifications as useNotifications3 } from "@livechat/developer-studi
|
|
|
9400
9307
|
|
|
9401
9308
|
// src/views/Flows/Definitions/hooks.ts
|
|
9402
9309
|
import { useMutation as useMutation2, useQuery as useQuery2, useQueryClient as useQueryClient2 } from "@tanstack/react-query";
|
|
9403
|
-
import { api as api2, IntegrationNames as
|
|
9310
|
+
import { api as api2, IntegrationNames as IntegrationNames8 } from "@livechat/developer-studio-api";
|
|
9404
9311
|
import {
|
|
9405
9312
|
useNotifications as useNotifications2,
|
|
9406
9313
|
useUserContext
|
|
@@ -9498,7 +9405,7 @@ var useCreateWorkflow = () => {
|
|
|
9498
9405
|
const textCredential = (_a = queryClient.getQueryData(
|
|
9499
9406
|
integrationCredentialsQueryKeys.getCredentials()
|
|
9500
9407
|
)) == null ? void 0 : _a.find(
|
|
9501
|
-
(x) => x.provider ===
|
|
9408
|
+
(x) => x.provider === IntegrationNames8.Text && x.type === "text_auth"
|
|
9502
9409
|
);
|
|
9503
9410
|
if (!textCredential) {
|
|
9504
9411
|
void queryClient.refetchQueries(
|
|
@@ -9688,23 +9595,19 @@ var useGenerateAIResponse = () => {
|
|
|
9688
9595
|
};
|
|
9689
9596
|
|
|
9690
9597
|
// src/views/Flows/Definitions/Common/One/contexts/OneWidgetContext.tsx
|
|
9691
|
-
import {
|
|
9692
|
-
createContext as createContext2,
|
|
9693
|
-
useContext as useContext5,
|
|
9694
|
-
useState
|
|
9695
|
-
} from "react";
|
|
9598
|
+
import { createContext as createContext2, useContext as useContext5, useState } from "react";
|
|
9696
9599
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
9697
9600
|
var OneWidgetContext = createContext2({
|
|
9698
9601
|
isOpen: false,
|
|
9699
9602
|
toggleOneWidget: () => null
|
|
9700
9603
|
});
|
|
9701
|
-
|
|
9604
|
+
function OneWidgetProvider({ children }) {
|
|
9702
9605
|
const [isOpen, setIsOpen] = useState(false);
|
|
9703
9606
|
const toggleOneWidget = () => {
|
|
9704
9607
|
setIsOpen((prev2) => !prev2);
|
|
9705
9608
|
};
|
|
9706
9609
|
return /* @__PURE__ */ jsx3(OneWidgetContext.Provider, { value: { isOpen, toggleOneWidget }, children });
|
|
9707
|
-
}
|
|
9610
|
+
}
|
|
9708
9611
|
var useOneWidgetContext = () => {
|
|
9709
9612
|
const context = useContext5(OneWidgetContext);
|
|
9710
9613
|
if (context === void 0) {
|
|
@@ -9780,7 +9683,7 @@ function useWorkflowData(workflow) {
|
|
|
9780
9683
|
}
|
|
9781
9684
|
|
|
9782
9685
|
// src/views/Flows/Definitions/Common/Builder/Context/state/metadata/framing/utils.ts
|
|
9783
|
-
import { IntegrationNames as
|
|
9686
|
+
import { IntegrationNames as IntegrationNames9 } from "@livechat/developer-studio-api";
|
|
9784
9687
|
|
|
9785
9688
|
// src/views/Flows/Definitions/Common/Builder/config/utils.ts
|
|
9786
9689
|
import { JSONPath } from "jsonpath-plus";
|
|
@@ -10123,12 +10026,12 @@ var getWorkflowFrames = (workflow, credentials) => {
|
|
|
10123
10026
|
const credentialsMap = Object.fromEntries(
|
|
10124
10027
|
credentials.filter(
|
|
10125
10028
|
(credential) => [
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10029
|
+
IntegrationNames9.Text,
|
|
10030
|
+
IntegrationNames9.BigCommerce,
|
|
10031
|
+
IntegrationNames9.HubSpot,
|
|
10032
|
+
IntegrationNames9.Mailchimp,
|
|
10033
|
+
IntegrationNames9.Shopify,
|
|
10034
|
+
IntegrationNames9.OpenAI
|
|
10132
10035
|
].includes(credential.provider)
|
|
10133
10036
|
).map((credential) => {
|
|
10134
10037
|
if (credential.type === "text_auth") {
|
|
@@ -10348,7 +10251,7 @@ var useUpdateOrganizationProducts = () => {
|
|
|
10348
10251
|
}),
|
|
10349
10252
|
{
|
|
10350
10253
|
onSuccess: (_) => {
|
|
10351
|
-
queryClient.refetchQueries({
|
|
10254
|
+
void queryClient.refetchQueries({
|
|
10352
10255
|
queryKey: userQueryKeys.accounts.products.getOrganizationProducts
|
|
10353
10256
|
});
|
|
10354
10257
|
}
|
|
@@ -10360,7 +10263,7 @@ var useUpdateOrganizationProducts = () => {
|
|
|
10360
10263
|
// src/views/Flows/Definitions/Common/Builder/Context/state/metadata/validation/utils.ts
|
|
10361
10264
|
import Ajv from "ajv";
|
|
10362
10265
|
import AjvWithErrors from "ajv-errors";
|
|
10363
|
-
import { IntegrationNames as
|
|
10266
|
+
import { IntegrationNames as IntegrationNames10 } from "@livechat/developer-studio-api";
|
|
10364
10267
|
var ajv = AjvWithErrors(
|
|
10365
10268
|
new Ajv({
|
|
10366
10269
|
strict: false,
|
|
@@ -10400,7 +10303,7 @@ var getWorkflowValidationErrors = (validationErrors) => {
|
|
|
10400
10303
|
);
|
|
10401
10304
|
}
|
|
10402
10305
|
}
|
|
10403
|
-
if (validationErrors) {
|
|
10306
|
+
if (validationErrors.length > 0) {
|
|
10404
10307
|
validationErrors.forEach((item) => {
|
|
10405
10308
|
const path = item.instancePath.split("/").filter(Boolean);
|
|
10406
10309
|
addToErrorSchema(errors, path, item);
|
|
@@ -10508,7 +10411,7 @@ var getTasksErrors = (workflow, frames, products) => {
|
|
|
10508
10411
|
params: {}
|
|
10509
10412
|
};
|
|
10510
10413
|
});
|
|
10511
|
-
const activationError = config2 && config2.customization.provider.startsWith(
|
|
10414
|
+
const activationError = config2 && config2.customization.provider.startsWith(IntegrationNames10.Text) && !products.find(({ product }) => product === config2.customization.product) ? {
|
|
10512
10415
|
instancePath: `/definition/tasks/${index}`,
|
|
10513
10416
|
keyword: "activation",
|
|
10514
10417
|
message: `${config2.customization.product} not activated`,
|
|
@@ -10572,7 +10475,7 @@ var getTriggerErrors = (workflow, frames, products) => {
|
|
|
10572
10475
|
params: {}
|
|
10573
10476
|
};
|
|
10574
10477
|
});
|
|
10575
|
-
const activationError = config2 && config2.customization.provider.startsWith(
|
|
10478
|
+
const activationError = config2 && config2.customization.provider.startsWith(IntegrationNames10.Text) && !products.find(({ product }) => product === config2.customization.product) ? {
|
|
10576
10479
|
instancePath: `/trigger`,
|
|
10577
10480
|
keyword: "activation",
|
|
10578
10481
|
message: `${config2.customization.product} not activated`,
|
|
@@ -10904,7 +10807,7 @@ function WorkflowContextProviderBase({
|
|
|
10904
10807
|
const goToAddTask = useCallback2(
|
|
10905
10808
|
(taskReference) => {
|
|
10906
10809
|
if (!taskReference) {
|
|
10907
|
-
navigate(`${basePath}/add
|
|
10810
|
+
navigate(`${basePath}/add`, {
|
|
10908
10811
|
state: {
|
|
10909
10812
|
index: void 0,
|
|
10910
10813
|
frame: state.metadata.frames.global
|
|
@@ -10916,7 +10819,7 @@ function WorkflowContextProviderBase({
|
|
|
10916
10819
|
(x) => x.taskReferenceName === taskReference.taskReferenceName
|
|
10917
10820
|
) + (taskReference.mode === "before" ? 0 : 1);
|
|
10918
10821
|
const targetReference = state.workflow.definition.tasks.at(targetIndex);
|
|
10919
|
-
navigate(`${basePath}/add
|
|
10822
|
+
navigate(`${basePath}/add`, {
|
|
10920
10823
|
state: {
|
|
10921
10824
|
index: targetIndex,
|
|
10922
10825
|
frame: targetReference ? state.metadata.frames.tasks[targetReference.taskReferenceName] : state.metadata.frames.global
|
|
@@ -11241,7 +11144,7 @@ function useWorkflowContext() {
|
|
|
11241
11144
|
}
|
|
11242
11145
|
|
|
11243
11146
|
// ../../../node_modules/.pnpm/@emotion+styled@11.13.0_@emotion+react@11.13.3_@types+react@18.3.17_react@18.3.1__@types+react@18.3.17_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js
|
|
11244
|
-
import * as
|
|
11147
|
+
import * as React4 from "react";
|
|
11245
11148
|
|
|
11246
11149
|
// ../../../node_modules/.pnpm/@emotion+is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
11247
11150
|
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
@@ -11292,7 +11195,7 @@ var Insertion3 = function Insertion4(_ref) {
|
|
|
11292
11195
|
serializedNames += " " + next2.name;
|
|
11293
11196
|
next2 = next2.next;
|
|
11294
11197
|
}
|
|
11295
|
-
return /* @__PURE__ */
|
|
11198
|
+
return /* @__PURE__ */ React4.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
11296
11199
|
__html: rules
|
|
11297
11200
|
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
11298
11201
|
}
|
|
@@ -11336,7 +11239,7 @@ var createStyled = function createStyled2(tag, options2) {
|
|
|
11336
11239
|
for (var key in props) {
|
|
11337
11240
|
mergedProps[key] = props[key];
|
|
11338
11241
|
}
|
|
11339
|
-
mergedProps.theme =
|
|
11242
|
+
mergedProps.theme = React4.useContext(ThemeContext);
|
|
11340
11243
|
}
|
|
11341
11244
|
if (typeof props.className === "string") {
|
|
11342
11245
|
className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
|
|
@@ -11361,11 +11264,11 @@ var createStyled = function createStyled2(tag, options2) {
|
|
|
11361
11264
|
if (ref) {
|
|
11362
11265
|
newProps.ref = ref;
|
|
11363
11266
|
}
|
|
11364
|
-
return /* @__PURE__ */
|
|
11267
|
+
return /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(Insertion3, {
|
|
11365
11268
|
cache,
|
|
11366
11269
|
serialized,
|
|
11367
11270
|
isStringTag: typeof FinalTag === "string"
|
|
11368
|
-
}), /* @__PURE__ */
|
|
11271
|
+
}), /* @__PURE__ */ React4.createElement(FinalTag, newProps));
|
|
11369
11272
|
});
|
|
11370
11273
|
Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
|
|
11371
11274
|
Styled.defaultProps = tag.defaultProps;
|
|
@@ -11561,11 +11464,11 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
|
|
|
11561
11464
|
workflow: {
|
|
11562
11465
|
create: {
|
|
11563
11466
|
actions: {
|
|
11564
|
-
createDraft: (
|
|
11467
|
+
createDraft: (workflowId) => {
|
|
11565
11468
|
logAmplitudeEvent(
|
|
11566
11469
|
"workflows.workflow.create.click",
|
|
11567
11470
|
{
|
|
11568
|
-
original_workflow_id:
|
|
11471
|
+
original_workflow_id: workflowId
|
|
11569
11472
|
},
|
|
11570
11473
|
email
|
|
11571
11474
|
);
|
|
@@ -11587,14 +11490,14 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
|
|
|
11587
11490
|
},
|
|
11588
11491
|
delete: {
|
|
11589
11492
|
actions: {
|
|
11590
|
-
click: (source,
|
|
11493
|
+
click: (source, createdAt) => {
|
|
11591
11494
|
logAmplitudeEvent(
|
|
11592
11495
|
"workflows.workflow.delete.click",
|
|
11593
11496
|
__spreadValues({
|
|
11594
11497
|
source
|
|
11595
|
-
}, source === "builder" &&
|
|
11498
|
+
}, source === "builder" && createdAt && {
|
|
11596
11499
|
lifetime_duration: Math.floor(
|
|
11597
|
-
((/* @__PURE__ */ new Date()).getTime() - new Date(
|
|
11500
|
+
((/* @__PURE__ */ new Date()).getTime() - new Date(createdAt).getTime()) / (1e3 * 60) % 60
|
|
11598
11501
|
)
|
|
11599
11502
|
}),
|
|
11600
11503
|
email
|
|
@@ -11606,12 +11509,12 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
|
|
|
11606
11509
|
draft: {
|
|
11607
11510
|
create: {
|
|
11608
11511
|
actions: {
|
|
11609
|
-
click: (source,
|
|
11512
|
+
click: (source, templateName) => {
|
|
11610
11513
|
logAmplitudeEvent(
|
|
11611
11514
|
"workflows.draft.create.click",
|
|
11612
11515
|
__spreadValues({
|
|
11613
11516
|
source
|
|
11614
|
-
}, source === "withTemplate" && { template_name }),
|
|
11517
|
+
}, source === "withTemplate" && { template_name: templateName }),
|
|
11615
11518
|
email
|
|
11616
11519
|
);
|
|
11617
11520
|
}
|
|
@@ -11628,22 +11531,22 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
|
|
|
11628
11531
|
email
|
|
11629
11532
|
);
|
|
11630
11533
|
},
|
|
11631
|
-
addTrigger: (
|
|
11534
|
+
addTrigger: (triggerType, triggerSource) => {
|
|
11632
11535
|
logAmplitudeEvent(
|
|
11633
11536
|
"workflows.draft.edit.addTrigger",
|
|
11634
11537
|
{
|
|
11635
|
-
trigger_type,
|
|
11636
|
-
trigger_source
|
|
11538
|
+
trigger_type: triggerType,
|
|
11539
|
+
trigger_source: triggerSource
|
|
11637
11540
|
},
|
|
11638
11541
|
email
|
|
11639
11542
|
);
|
|
11640
11543
|
},
|
|
11641
|
-
addAction: (
|
|
11544
|
+
addAction: (actionType, actionProvider) => {
|
|
11642
11545
|
logAmplitudeEvent(
|
|
11643
11546
|
"workflows.draft.edit.addAction",
|
|
11644
11547
|
{
|
|
11645
|
-
action_type,
|
|
11646
|
-
action_provider
|
|
11548
|
+
action_type: actionType,
|
|
11549
|
+
action_provider: actionProvider
|
|
11647
11550
|
},
|
|
11648
11551
|
email
|
|
11649
11552
|
);
|
|
@@ -11652,11 +11555,11 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
|
|
|
11652
11555
|
},
|
|
11653
11556
|
publish: {
|
|
11654
11557
|
actions: {
|
|
11655
|
-
click: (
|
|
11558
|
+
click: (workflowComplexity) => {
|
|
11656
11559
|
logAmplitudeEvent(
|
|
11657
11560
|
"workflows.draft.publish.click",
|
|
11658
11561
|
{
|
|
11659
|
-
workflow_complexity
|
|
11562
|
+
workflow_complexity: workflowComplexity
|
|
11660
11563
|
},
|
|
11661
11564
|
email
|
|
11662
11565
|
);
|
|
@@ -11666,7 +11569,7 @@ var workflowsBlockAmplitudeJourneyFactory = (email) => ({
|
|
|
11666
11569
|
delete: {
|
|
11667
11570
|
actions: {
|
|
11668
11571
|
click: () => {
|
|
11669
|
-
logAmplitudeEvent("workflows.draft.delete.click",
|
|
11572
|
+
logAmplitudeEvent("workflows.draft.delete.click", void 0, email);
|
|
11670
11573
|
}
|
|
11671
11574
|
}
|
|
11672
11575
|
}
|
|
@@ -11774,7 +11677,11 @@ import {
|
|
|
11774
11677
|
SpacingToken as SpacingToken3,
|
|
11775
11678
|
Text
|
|
11776
11679
|
} from "@livechat/design-system-react-components";
|
|
11777
|
-
import {
|
|
11680
|
+
import {
|
|
11681
|
+
Column as Column2,
|
|
11682
|
+
formatUSADate as formatUSADate2,
|
|
11683
|
+
Row as Row3
|
|
11684
|
+
} from "@livechat/developer-studio-ui-react";
|
|
11778
11685
|
|
|
11779
11686
|
// src/views/Flows/Definitions/Common/Icons/ProductIcon.tsx
|
|
11780
11687
|
import {
|
|
@@ -11790,7 +11697,7 @@ import {
|
|
|
11790
11697
|
Time
|
|
11791
11698
|
} from "@livechat/design-system-icons";
|
|
11792
11699
|
import { DesignToken as DesignToken2 } from "@livechat/design-system-react-components";
|
|
11793
|
-
import { IntegrationNames as
|
|
11700
|
+
import { IntegrationNames as IntegrationNames11 } from "@livechat/developer-studio-api";
|
|
11794
11701
|
var defaultIconStyle = ({
|
|
11795
11702
|
disabled,
|
|
11796
11703
|
height,
|
|
@@ -11881,11 +11788,11 @@ function ProductIcon({
|
|
|
11881
11788
|
})
|
|
11882
11789
|
}
|
|
11883
11790
|
);
|
|
11884
|
-
case
|
|
11791
|
+
case IntegrationNames11.Mailchimp:
|
|
11885
11792
|
return /* @__PURE__ */ jsx2(MailChimpIcon, { css: defaultIconStyle({ disabled, height, width }) });
|
|
11886
|
-
case
|
|
11793
|
+
case IntegrationNames11.Shopify:
|
|
11887
11794
|
return /* @__PURE__ */ jsx2(ShopifyIcon, { css: defaultIconStyle({ disabled, height, width }) });
|
|
11888
|
-
case
|
|
11795
|
+
case IntegrationNames11.BigCommerce:
|
|
11889
11796
|
return /* @__PURE__ */ jsx2(
|
|
11890
11797
|
BigCommerceIcon,
|
|
11891
11798
|
{
|
|
@@ -11897,9 +11804,9 @@ function ProductIcon({
|
|
|
11897
11804
|
})
|
|
11898
11805
|
}
|
|
11899
11806
|
);
|
|
11900
|
-
case
|
|
11807
|
+
case IntegrationNames11.HubSpot:
|
|
11901
11808
|
return /* @__PURE__ */ jsx2(HubSpotIcon, { css: defaultIconStyle({ disabled, height, width }) });
|
|
11902
|
-
case
|
|
11809
|
+
case IntegrationNames11.OpenAI:
|
|
11903
11810
|
return /* @__PURE__ */ jsx2(
|
|
11904
11811
|
OpenAiIcon,
|
|
11905
11812
|
{
|
|
@@ -11911,14 +11818,16 @@ function ProductIcon({
|
|
|
11911
11818
|
})
|
|
11912
11819
|
}
|
|
11913
11820
|
);
|
|
11914
|
-
case
|
|
11821
|
+
case "helpdesk":
|
|
11822
|
+
case IntegrationNames11.HelpDesk:
|
|
11915
11823
|
return /* @__PURE__ */ jsx2(
|
|
11916
11824
|
HelpdeskIcon,
|
|
11917
11825
|
{
|
|
11918
11826
|
css: helpdeskconCss({ disabled, height, width, center })
|
|
11919
11827
|
}
|
|
11920
11828
|
);
|
|
11921
|
-
case
|
|
11829
|
+
case "livechat":
|
|
11830
|
+
case IntegrationNames11.LiveChat:
|
|
11922
11831
|
default:
|
|
11923
11832
|
return /* @__PURE__ */ jsx2(LivechatIcon, { css: livechatIconStyle({ disabled, height, width }) });
|
|
11924
11833
|
}
|
|
@@ -11942,7 +11851,7 @@ function WorkflowDetailsInfo({
|
|
|
11942
11851
|
workflow,
|
|
11943
11852
|
workflowExecutions
|
|
11944
11853
|
}) {
|
|
11945
|
-
var _a, _b, _c
|
|
11854
|
+
var _a, _b, _c;
|
|
11946
11855
|
const completedCycles = (_a = workflowExecutions.data) == null ? void 0 : _a.filter(
|
|
11947
11856
|
(execution) => execution.status === "COMPLETED"
|
|
11948
11857
|
).length;
|
|
@@ -11950,7 +11859,7 @@ function WorkflowDetailsInfo({
|
|
|
11950
11859
|
(execution) => execution.status === "FAILED"
|
|
11951
11860
|
).length;
|
|
11952
11861
|
if (!workflow.isSuccess) {
|
|
11953
|
-
return
|
|
11862
|
+
return;
|
|
11954
11863
|
}
|
|
11955
11864
|
return /* @__PURE__ */ jsxs2(Column2, { gap: 8, setColumnPadding: "0 2rem 0", children: [
|
|
11956
11865
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
@@ -11959,7 +11868,7 @@ function WorkflowDetailsInfo({
|
|
|
11959
11868
|
] }),
|
|
11960
11869
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
11961
11870
|
/* @__PURE__ */ jsx2(Label, { children: "Last modified" }),
|
|
11962
|
-
/* @__PURE__ */ jsx2(Text, { as: "div", bold: true, children: formatUSADate2(
|
|
11871
|
+
/* @__PURE__ */ jsx2(Text, { as: "div", bold: true, children: formatUSADate2(workflow.data.updated_at || workflow.data.created_at) })
|
|
11963
11872
|
] }),
|
|
11964
11873
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
11965
11874
|
/* @__PURE__ */ jsx2(Label, { children: "Created by" }),
|
|
@@ -11975,7 +11884,7 @@ function WorkflowDetailsInfo({
|
|
|
11975
11884
|
] }),
|
|
11976
11885
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
11977
11886
|
/* @__PURE__ */ jsx2(Label, { children: "Tasks" }),
|
|
11978
|
-
/* @__PURE__ */ jsx2(Row3, { gap: 4, notPadded: true, children: (
|
|
11887
|
+
/* @__PURE__ */ jsx2(Row3, { gap: 4, notPadded: true, children: (_c = workflow.data.tags) == null ? void 0 : _c.map((tag) => /* @__PURE__ */ jsx2(IconWrapper, { children: /* @__PURE__ */ jsx2(
|
|
11979
11888
|
ProductIcon_default,
|
|
11980
11889
|
{
|
|
11981
11890
|
center: true,
|
|
@@ -11983,7 +11892,7 @@ function WorkflowDetailsInfo({
|
|
|
11983
11892
|
product: tag.toLowerCase(),
|
|
11984
11893
|
width: 4
|
|
11985
11894
|
}
|
|
11986
|
-
) })) })
|
|
11895
|
+
) }, tag)) })
|
|
11987
11896
|
] })
|
|
11988
11897
|
] });
|
|
11989
11898
|
}
|
|
@@ -12020,7 +11929,7 @@ function WorkflowDetailsPanel({ onClose }) {
|
|
|
12020
11929
|
(_b = workflowQuery.data) == null ? void 0 : _b.related_workflow_id
|
|
12021
11930
|
);
|
|
12022
11931
|
if (!id) {
|
|
12023
|
-
return
|
|
11932
|
+
return;
|
|
12024
11933
|
}
|
|
12025
11934
|
const workflow = ((_c = workflowQuery.data) == null ? void 0 : _c.draft) ? relatedWorkflowQuery : workflowQuery;
|
|
12026
11935
|
const workflowExecutions = ((_d = workflow.data) == null ? void 0 : _d.draft) ? relatedWorkflowExecutionsQuery : workflowExecutionsQuery;
|
|
@@ -12220,7 +12129,7 @@ import {
|
|
|
12220
12129
|
ShadowToken as ShadowToken8,
|
|
12221
12130
|
SpacingToken as SpacingToken20
|
|
12222
12131
|
} from "@livechat/design-system-react-components";
|
|
12223
|
-
import { IntegrationNames as
|
|
12132
|
+
import { IntegrationNames as IntegrationNames15 } from "@livechat/developer-studio-api";
|
|
12224
12133
|
import { Column as Column10, Row as Row11 } from "@livechat/developer-studio-ui-react";
|
|
12225
12134
|
|
|
12226
12135
|
// src/views/Flows/Definitions/Common/Builder/Editors/Visual/Diagram/Nodes/CustomNodes/ForkJoinNode/Base.tsx
|
|
@@ -13024,7 +12933,7 @@ function convertToTreeNode(obj, meta, nodeName, path) {
|
|
|
13024
12933
|
type: typeof obj,
|
|
13025
12934
|
name: (_e = (_d = customization == null ? void 0 : customization.displayName) != null ? _d : currentSpec == null ? void 0 : currentSpec.title) != null ? _e : nodeName,
|
|
13026
12935
|
description: (_f = customization == null ? void 0 : customization.description) != null ? _f : currentSpec == null ? void 0 : currentSpec.description,
|
|
13027
|
-
icon: customization == null ? void 0 : customization.
|
|
12936
|
+
icon: customization == null ? void 0 : customization.provider,
|
|
13028
12937
|
value: `${meta.basePath ? `${meta.basePath}` : ""}${path ? `.${path}` : ""}`,
|
|
13029
12938
|
path: `${path != null ? path : ""}`,
|
|
13030
12939
|
relativePath: meta.baseRelativePath && path && path.startsWith(meta.baseRelativePath) ? path.replace(`${meta.baseRelativePath}.`, "") : "",
|
|
@@ -13240,7 +13149,7 @@ var updateCustomTagsInputTagIcon = (tagData) => {
|
|
|
13240
13149
|
const iconPlaceholderId = `product-icon-${tagData.__tagId}`;
|
|
13241
13150
|
const iconPlaceholder = document.getElementById(iconPlaceholderId);
|
|
13242
13151
|
const tagMeta = tagData.__meta;
|
|
13243
|
-
if (!iconPlaceholder || !((_b = (_a = tagMeta.source) == null ? void 0 : _a.customization) == null ? void 0 : _b.
|
|
13152
|
+
if (!iconPlaceholder || !((_b = (_a = tagMeta.source) == null ? void 0 : _a.customization) == null ? void 0 : _b.provider)) {
|
|
13244
13153
|
return;
|
|
13245
13154
|
}
|
|
13246
13155
|
const root = createRoot(iconPlaceholder);
|
|
@@ -13251,7 +13160,7 @@ var updateCustomTagsInputTagIcon = (tagData) => {
|
|
|
13251
13160
|
{
|
|
13252
13161
|
center: true,
|
|
13253
13162
|
height: 4,
|
|
13254
|
-
product: tagMeta.source.customization.
|
|
13163
|
+
product: tagMeta.source.customization.provider,
|
|
13255
13164
|
width: 4
|
|
13256
13165
|
}
|
|
13257
13166
|
)
|
|
@@ -13327,7 +13236,7 @@ function CustomTagsInputTagTooltip({
|
|
|
13327
13236
|
}) {
|
|
13328
13237
|
var _a, _b, _c, _d, _e;
|
|
13329
13238
|
if (!data.visible) {
|
|
13330
|
-
return
|
|
13239
|
+
return;
|
|
13331
13240
|
}
|
|
13332
13241
|
return /* @__PURE__ */ jsx2(
|
|
13333
13242
|
Tooltip2,
|
|
@@ -13343,12 +13252,12 @@ function CustomTagsInputTagTooltip({
|
|
|
13343
13252
|
triggerRenderer: /* @__PURE__ */ jsx2("span", {}),
|
|
13344
13253
|
children: /* @__PURE__ */ jsxs2(Column4, { gap: `var(${SpacingToken9.Spacing1})`, notPadded: true, children: [
|
|
13345
13254
|
/* @__PURE__ */ jsxs2(Row7, { center: true, gap: `var(${SpacingToken9.Spacing1})`, notPadded: true, children: [
|
|
13346
|
-
((_b = (_a = data.tag.__meta.source) == null ? void 0 : _a.customization) == null ? void 0 : _b.
|
|
13255
|
+
((_b = (_a = data.tag.__meta.source) == null ? void 0 : _a.customization) == null ? void 0 : _b.provider) ? /* @__PURE__ */ jsx2(
|
|
13347
13256
|
ProductIcon_default,
|
|
13348
13257
|
{
|
|
13349
13258
|
center: true,
|
|
13350
13259
|
height: 4,
|
|
13351
|
-
product: data.tag.__meta.source.customization.
|
|
13260
|
+
product: data.tag.__meta.source.customization.provider,
|
|
13352
13261
|
width: 4
|
|
13353
13262
|
}
|
|
13354
13263
|
) : null,
|
|
@@ -14227,19 +14136,23 @@ import {
|
|
|
14227
14136
|
} from "@livechat/design-system-react-components";
|
|
14228
14137
|
|
|
14229
14138
|
// src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/overrides/Templates/Other/CustomFieldHeader.tsx
|
|
14230
|
-
import {
|
|
14231
|
-
descriptionId,
|
|
14232
|
-
getTemplate,
|
|
14233
|
-
getUiOptions,
|
|
14234
|
-
titleId
|
|
14235
|
-
} from "@rjsf/utils";
|
|
14139
|
+
import { descriptionId, getTemplate, getUiOptions, titleId } from "@rjsf/utils";
|
|
14236
14140
|
import {
|
|
14237
14141
|
DesignToken as DesignToken9,
|
|
14238
14142
|
SpacingToken as SpacingToken12
|
|
14239
14143
|
} from "@livechat/design-system-react-components";
|
|
14240
14144
|
import { Row as Row9 } from "@livechat/developer-studio-ui-react";
|
|
14241
14145
|
function CustomFieldHeader(props) {
|
|
14242
|
-
const {
|
|
14146
|
+
const {
|
|
14147
|
+
id,
|
|
14148
|
+
label,
|
|
14149
|
+
description,
|
|
14150
|
+
required,
|
|
14151
|
+
registry,
|
|
14152
|
+
schema,
|
|
14153
|
+
uiSchema,
|
|
14154
|
+
hideOptionalBadge
|
|
14155
|
+
} = props;
|
|
14243
14156
|
const options2 = getUiOptions(uiSchema);
|
|
14244
14157
|
const TitleFieldTemplate = getTemplate(
|
|
14245
14158
|
"TitleFieldTemplate",
|
|
@@ -14282,7 +14195,7 @@ function CustomFieldHeader(props) {
|
|
|
14282
14195
|
]
|
|
14283
14196
|
}
|
|
14284
14197
|
),
|
|
14285
|
-
required ? /* @__PURE__ */ jsx2(
|
|
14198
|
+
!required && !hideOptionalBadge ? /* @__PURE__ */ jsx2(
|
|
14286
14199
|
"div",
|
|
14287
14200
|
{
|
|
14288
14201
|
css: css`
|
|
@@ -14291,7 +14204,7 @@ function CustomFieldHeader(props) {
|
|
|
14291
14204
|
line-height: 16px;
|
|
14292
14205
|
color: var(${DesignToken9.ContentBasicSecondary});
|
|
14293
14206
|
`,
|
|
14294
|
-
children: "
|
|
14207
|
+
children: "optional"
|
|
14295
14208
|
}
|
|
14296
14209
|
) : null
|
|
14297
14210
|
] });
|
|
@@ -14436,10 +14349,7 @@ function CustomWrapIfAdditionalTemplate(props) {
|
|
|
14436
14349
|
|
|
14437
14350
|
// src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/overrides/Templates/CustomObjectField.tsx
|
|
14438
14351
|
import { useState as useState10 } from "react";
|
|
14439
|
-
import {
|
|
14440
|
-
ADDITIONAL_PROPERTY_FLAG as ADDITIONAL_PROPERTY_FLAG3,
|
|
14441
|
-
canExpand
|
|
14442
|
-
} from "@rjsf/utils";
|
|
14352
|
+
import { ADDITIONAL_PROPERTY_FLAG as ADDITIONAL_PROPERTY_FLAG3, canExpand } from "@rjsf/utils";
|
|
14443
14353
|
import { Button as Button7, DesignToken as DesignToken10 } from "@livechat/design-system-react-components";
|
|
14444
14354
|
function CustomObjectFieldTemplate(props) {
|
|
14445
14355
|
const {
|
|
@@ -14482,6 +14392,7 @@ function CustomObjectFieldTemplate(props) {
|
|
|
14482
14392
|
CustomFieldHeader,
|
|
14483
14393
|
{
|
|
14484
14394
|
description,
|
|
14395
|
+
hideOptionalBadge: true,
|
|
14485
14396
|
id: idSchema.$id,
|
|
14486
14397
|
label: title,
|
|
14487
14398
|
registry,
|
|
@@ -14781,12 +14692,12 @@ function CustomToolbar(props) {
|
|
|
14781
14692
|
state: { visibility }
|
|
14782
14693
|
} = useWorkflowContext();
|
|
14783
14694
|
if (!visibility.handles) {
|
|
14784
|
-
return
|
|
14695
|
+
return;
|
|
14785
14696
|
}
|
|
14786
14697
|
return /* @__PURE__ */ jsx2(
|
|
14787
14698
|
NodeToolbar,
|
|
14788
14699
|
{
|
|
14789
|
-
align: "
|
|
14700
|
+
align: "center",
|
|
14790
14701
|
isVisible: props.isVisible,
|
|
14791
14702
|
offset: 0,
|
|
14792
14703
|
position: Position2.Right,
|
|
@@ -14983,7 +14894,7 @@ import {
|
|
|
14983
14894
|
ShadowToken as ShadowToken3,
|
|
14984
14895
|
SpacingToken as SpacingToken14
|
|
14985
14896
|
} from "@livechat/design-system-react-components";
|
|
14986
|
-
import { IntegrationNames as
|
|
14897
|
+
import { IntegrationNames as IntegrationNames12 } from "@livechat/developer-studio-api";
|
|
14987
14898
|
import { Column as Column5 } from "@livechat/developer-studio-ui-react";
|
|
14988
14899
|
var Node2 = newStyled.div`
|
|
14989
14900
|
background-color: ${({ editing }) => editing ? `var(${DesignToken12.SurfacePrimaryActive})` : `var(${DesignToken12.SurfacePrimaryDefault})`};
|
|
@@ -15034,7 +14945,7 @@ function HttpNodeBase({
|
|
|
15034
14945
|
} = useWorkflowContext();
|
|
15035
14946
|
const frame = frames.tasks[data.taskReferenceName];
|
|
15036
14947
|
const customization = (_b = (_a = frame == null ? void 0 : frame.__meta) == null ? void 0 : _a.config) == null ? void 0 : _b.customization;
|
|
15037
|
-
const revertIconColor = getWorkflowsEnv("isHeadless") && ((customization == null ? void 0 : customization.
|
|
14948
|
+
const revertIconColor = getWorkflowsEnv("isHeadless") && ((customization == null ? void 0 : customization.provider) === IntegrationNames12.OpenAI || (customization == null ? void 0 : customization.provider) === IntegrationNames12.BigCommerce);
|
|
15038
14949
|
return /* @__PURE__ */ jsxs2(
|
|
15039
14950
|
Node2,
|
|
15040
14951
|
{
|
|
@@ -15044,13 +14955,13 @@ function HttpNodeBase({
|
|
|
15044
14955
|
top,
|
|
15045
14956
|
toolbar,
|
|
15046
14957
|
/* @__PURE__ */ jsx2(Header3, { children: /* @__PURE__ */ jsxs2(Title2, { children: [
|
|
15047
|
-
(customization == null ? void 0 : customization.
|
|
14958
|
+
(customization == null ? void 0 : customization.provider) ? /* @__PURE__ */ jsx2(
|
|
15048
14959
|
ProductIcon_default,
|
|
15049
14960
|
{
|
|
15050
14961
|
center: true,
|
|
15051
14962
|
disabled: false,
|
|
15052
14963
|
height: 10,
|
|
15053
|
-
product: customization.
|
|
14964
|
+
product: customization.provider,
|
|
15054
14965
|
revertColors: revertIconColor,
|
|
15055
14966
|
width: 10
|
|
15056
14967
|
}
|
|
@@ -15116,7 +15027,7 @@ import {
|
|
|
15116
15027
|
TabsList as TabsList2,
|
|
15117
15028
|
TabsWrapper as TabsWrapper2
|
|
15118
15029
|
} from "@livechat/design-system-react-components";
|
|
15119
|
-
import { IntegrationNames as
|
|
15030
|
+
import { IntegrationNames as IntegrationNames13 } from "@livechat/developer-studio-api";
|
|
15120
15031
|
import {
|
|
15121
15032
|
BigCommerceStatus,
|
|
15122
15033
|
HubSpotStatus,
|
|
@@ -15212,13 +15123,13 @@ var Text_default = GlobalAccounts;
|
|
|
15212
15123
|
|
|
15213
15124
|
// src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/Wrapper.tsx
|
|
15214
15125
|
var componentsMap = {
|
|
15215
|
-
[
|
|
15216
|
-
[
|
|
15217
|
-
[
|
|
15218
|
-
[
|
|
15219
|
-
[
|
|
15220
|
-
[
|
|
15221
|
-
[
|
|
15126
|
+
[IntegrationNames13.HelpDesk]: ({ product }) => /* @__PURE__ */ jsx2(Text_default, { product }),
|
|
15127
|
+
[IntegrationNames13.LiveChat]: ({ product }) => /* @__PURE__ */ jsx2(Text_default, { product }),
|
|
15128
|
+
[IntegrationNames13.Shopify]: () => /* @__PURE__ */ jsx2(ShopifyStatus, {}),
|
|
15129
|
+
[IntegrationNames13.Mailchimp]: () => /* @__PURE__ */ jsx2(MailchimpStatus, {}),
|
|
15130
|
+
[IntegrationNames13.BigCommerce]: () => /* @__PURE__ */ jsx2(BigCommerceStatus, {}),
|
|
15131
|
+
[IntegrationNames13.HubSpot]: () => /* @__PURE__ */ jsx2(HubSpotStatus, {}),
|
|
15132
|
+
[IntegrationNames13.OpenAI]: () => /* @__PURE__ */ jsx2(OpenaiStatus, {})
|
|
15222
15133
|
};
|
|
15223
15134
|
function CustomSchemaFormWrapper({
|
|
15224
15135
|
data,
|
|
@@ -15643,7 +15554,7 @@ function SwitchNode({
|
|
|
15643
15554
|
}
|
|
15644
15555
|
}, [node2 == null ? void 0 : node2.source]);
|
|
15645
15556
|
if (!node2) {
|
|
15646
|
-
return
|
|
15557
|
+
return;
|
|
15647
15558
|
}
|
|
15648
15559
|
return /* @__PURE__ */ jsx2(
|
|
15649
15560
|
CustomNodeWrapper,
|
|
@@ -15875,7 +15786,7 @@ import {
|
|
|
15875
15786
|
ShadowToken as ShadowToken7,
|
|
15876
15787
|
SpacingToken as SpacingToken19
|
|
15877
15788
|
} from "@livechat/design-system-react-components";
|
|
15878
|
-
import { IntegrationNames as
|
|
15789
|
+
import { IntegrationNames as IntegrationNames14 } from "@livechat/developer-studio-api";
|
|
15879
15790
|
import { Column as Column9 } from "@livechat/developer-studio-ui-react";
|
|
15880
15791
|
var Node5 = newStyled.div`
|
|
15881
15792
|
background-color: ${({ editing }) => editing ? `var(${DesignToken16.SurfacePrimaryActive})` : `var(${DesignToken16.SurfacePrimaryDefault})`};
|
|
@@ -15927,7 +15838,7 @@ function TriggerNodeBase({
|
|
|
15927
15838
|
} = useWorkflowContext();
|
|
15928
15839
|
const frame = frames.trigger;
|
|
15929
15840
|
const customization = (_a = frame == null ? void 0 : frame.__meta) == null ? void 0 : _a.config.customization;
|
|
15930
|
-
const revertIconColor = getWorkflowsEnv("isHeadless") && ((customization == null ? void 0 : customization.
|
|
15841
|
+
const revertIconColor = getWorkflowsEnv("isHeadless") && ((customization == null ? void 0 : customization.provider) === IntegrationNames14.OpenAI || (customization == null ? void 0 : customization.provider) === IntegrationNames14.BigCommerce);
|
|
15931
15842
|
return /* @__PURE__ */ jsxs2(
|
|
15932
15843
|
Node5,
|
|
15933
15844
|
{
|
|
@@ -15936,13 +15847,13 @@ function TriggerNodeBase({
|
|
|
15936
15847
|
children: [
|
|
15937
15848
|
toolbar,
|
|
15938
15849
|
/* @__PURE__ */ jsx2(Header6, { children: /* @__PURE__ */ jsxs2(Title5, { children: [
|
|
15939
|
-
(customization == null ? void 0 : customization.
|
|
15850
|
+
(customization == null ? void 0 : customization.provider) ? /* @__PURE__ */ jsx2(
|
|
15940
15851
|
ProductIcon_default,
|
|
15941
15852
|
{
|
|
15942
15853
|
center: true,
|
|
15943
15854
|
disabled: false,
|
|
15944
15855
|
height: 10,
|
|
15945
|
-
product: customization.
|
|
15856
|
+
product: customization.provider,
|
|
15946
15857
|
revertColors: revertIconColor,
|
|
15947
15858
|
width: 10
|
|
15948
15859
|
}
|
|
@@ -15963,7 +15874,7 @@ function TriggerNodeBase({
|
|
|
15963
15874
|
font-size: 13px;
|
|
15964
15875
|
font-weight: 400;
|
|
15965
15876
|
line-height: 16px;
|
|
15966
|
-
width:
|
|
15877
|
+
width: 100px;
|
|
15967
15878
|
overflow: hidden;
|
|
15968
15879
|
text-overflow: ellipsis;
|
|
15969
15880
|
white-space: nowrap;
|
|
@@ -16092,7 +16003,6 @@ function TriggerNodeForm({
|
|
|
16092
16003
|
}
|
|
16093
16004
|
);
|
|
16094
16005
|
}
|
|
16095
|
-
return /* @__PURE__ */ jsx2(Fragment4, {});
|
|
16096
16006
|
}
|
|
16097
16007
|
var Form_default6 = TriggerNodeForm;
|
|
16098
16008
|
|
|
@@ -16216,7 +16126,7 @@ function EditNodeWrapper() {
|
|
|
16216
16126
|
frame: void 0
|
|
16217
16127
|
};
|
|
16218
16128
|
if (!data) {
|
|
16219
|
-
return
|
|
16129
|
+
return;
|
|
16220
16130
|
}
|
|
16221
16131
|
const config2 = (_b = frame == null ? void 0 : frame.__meta) == null ? void 0 : _b.config;
|
|
16222
16132
|
const readonly = !workflow.draft;
|
|
@@ -16303,7 +16213,7 @@ function EditNodeWrapper() {
|
|
|
16303
16213
|
);
|
|
16304
16214
|
}
|
|
16305
16215
|
};
|
|
16306
|
-
const revertIconColor = getWorkflowsEnv("isHeadless") && ((config2 == null ? void 0 : config2.customization.
|
|
16216
|
+
const revertIconColor = getWorkflowsEnv("isHeadless") && ((config2 == null ? void 0 : config2.customization.provider) === IntegrationNames15.OpenAI || (config2 == null ? void 0 : config2.customization.provider) === IntegrationNames15.BigCommerce);
|
|
16307
16217
|
return /* @__PURE__ */ jsxs2(Wrapper3, { children: [
|
|
16308
16218
|
/* @__PURE__ */ jsxs2(Row11, { center: true, setRowPadding: "12px 24px", spaceBetween: true, children: [
|
|
16309
16219
|
/* @__PURE__ */ jsx2(
|
|
@@ -16319,7 +16229,7 @@ function EditNodeWrapper() {
|
|
|
16319
16229
|
center: true,
|
|
16320
16230
|
disabled: false,
|
|
16321
16231
|
height: 10,
|
|
16322
|
-
product: config2.customization.
|
|
16232
|
+
product: config2.customization.provider,
|
|
16323
16233
|
revertColors: revertIconColor,
|
|
16324
16234
|
width: 10
|
|
16325
16235
|
}
|
|
@@ -16465,12 +16375,28 @@ function WorkflowPreviewModal({
|
|
|
16465
16375
|
Modal,
|
|
16466
16376
|
{
|
|
16467
16377
|
footer: /* @__PURE__ */ jsxs2("div", { css: footerStyles, children: [
|
|
16468
|
-
/* @__PURE__ */ jsx2(
|
|
16469
|
-
|
|
16470
|
-
|
|
16471
|
-
|
|
16472
|
-
|
|
16473
|
-
|
|
16378
|
+
/* @__PURE__ */ jsx2(
|
|
16379
|
+
Button11,
|
|
16380
|
+
{
|
|
16381
|
+
kind: "secondary",
|
|
16382
|
+
onClick: () => {
|
|
16383
|
+
handleClose();
|
|
16384
|
+
},
|
|
16385
|
+
size: "medium",
|
|
16386
|
+
children: "Close"
|
|
16387
|
+
}
|
|
16388
|
+
),
|
|
16389
|
+
/* @__PURE__ */ jsx2(
|
|
16390
|
+
Button11,
|
|
16391
|
+
{
|
|
16392
|
+
kind: "primary",
|
|
16393
|
+
onClick: () => {
|
|
16394
|
+
handleApply();
|
|
16395
|
+
},
|
|
16396
|
+
size: "medium",
|
|
16397
|
+
children: "Apply workflow"
|
|
16398
|
+
}
|
|
16399
|
+
)
|
|
16474
16400
|
] }),
|
|
16475
16401
|
heading: /* @__PURE__ */ jsx2("div", { css: headerStyles, children: /* @__PURE__ */ jsx2(Heading3, { size: "md", children: "Workflow preview" }) }),
|
|
16476
16402
|
onClose: handleClose,
|
|
@@ -16522,7 +16448,7 @@ function AddNode({ id }) {
|
|
|
16522
16448
|
state: { visibility, workflow }
|
|
16523
16449
|
} = useWorkflowContext();
|
|
16524
16450
|
if (!visibility.handles) {
|
|
16525
|
-
return
|
|
16451
|
+
return;
|
|
16526
16452
|
}
|
|
16527
16453
|
return /* @__PURE__ */ jsxs2(Fragment4, { children: [
|
|
16528
16454
|
/* @__PURE__ */ jsx2(Handle4, { isConnectable: false, position: Position9.Top, type: "target" }),
|
|
@@ -16804,7 +16730,7 @@ var messageBoxTip = css`
|
|
|
16804
16730
|
`;
|
|
16805
16731
|
|
|
16806
16732
|
// src/views/Flows/Definitions/Common/One/components/StopGenerateButton.tsx
|
|
16807
|
-
|
|
16733
|
+
function StopGenerateButton() {
|
|
16808
16734
|
const isOneLoading = false;
|
|
16809
16735
|
if (!isOneLoading) {
|
|
16810
16736
|
return null;
|
|
@@ -16822,7 +16748,7 @@ var StopGenerateButton = () => {
|
|
|
16822
16748
|
children: "Cancel generating"
|
|
16823
16749
|
}
|
|
16824
16750
|
);
|
|
16825
|
-
}
|
|
16751
|
+
}
|
|
16826
16752
|
|
|
16827
16753
|
// src/views/Flows/Definitions/Common/One/widget/message-box/AskButton.tsx
|
|
16828
16754
|
import { useEffect as useEffect8, useState as useState20 } from "react";
|
|
@@ -16833,14 +16759,14 @@ import {
|
|
|
16833
16759
|
Tooltip as Tooltip5
|
|
16834
16760
|
} from "@livechat/design-system-react-components";
|
|
16835
16761
|
|
|
16836
|
-
// src/views/Flows/Definitions/Common/One/hooks/
|
|
16762
|
+
// src/views/Flows/Definitions/Common/One/hooks/useAboveCharacterLimit.ts
|
|
16837
16763
|
import { useEffect as useEffect7, useState as useState18 } from "react";
|
|
16838
16764
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
16839
16765
|
|
|
16840
16766
|
// src/views/Flows/Definitions/Common/One/widget/message-box/constants.ts
|
|
16841
16767
|
var ONE_CHARACTER_LIMIT = 1e4;
|
|
16842
16768
|
|
|
16843
|
-
// src/views/Flows/Definitions/Common/One/hooks/
|
|
16769
|
+
// src/views/Flows/Definitions/Common/One/hooks/useAboveCharacterLimit.ts
|
|
16844
16770
|
var useAboveCharacterLimit = () => {
|
|
16845
16771
|
const [editor] = useLexicalComposerContext();
|
|
16846
16772
|
const [aboveLimit, setAboveLimit] = useState18(0);
|
|
@@ -16860,18 +16786,13 @@ var useAboveCharacterLimit = () => {
|
|
|
16860
16786
|
};
|
|
16861
16787
|
};
|
|
16862
16788
|
|
|
16863
|
-
// src/views/Flows/Definitions/Common/One/hooks/
|
|
16789
|
+
// src/views/Flows/Definitions/Common/One/hooks/useSendOneMessage.ts
|
|
16864
16790
|
import { useCallback as useCallback8, useContext as useContext9 } from "react";
|
|
16865
16791
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
16866
16792
|
import { CLEAR_EDITOR_COMMAND } from "lexical";
|
|
16867
16793
|
|
|
16868
16794
|
// src/views/Flows/Definitions/Common/One/contexts/OneMessagesContext.tsx
|
|
16869
|
-
import {
|
|
16870
|
-
createContext as createContext4,
|
|
16871
|
-
useContext as useContext8,
|
|
16872
|
-
useMemo as useMemo4,
|
|
16873
|
-
useState as useState19
|
|
16874
|
-
} from "react";
|
|
16795
|
+
import { createContext as createContext4, useContext as useContext8, useMemo as useMemo4, useState as useState19 } from "react";
|
|
16875
16796
|
import { v4 as uuid } from "uuid";
|
|
16876
16797
|
import { useUserContext as useUserContext3 } from "@livechat/developer-studio-ui-react";
|
|
16877
16798
|
|
|
@@ -16964,19 +16885,16 @@ var OneMessagesContext = createContext4({
|
|
|
16964
16885
|
isError: false,
|
|
16965
16886
|
groupedEvents: [],
|
|
16966
16887
|
hasAdditionalEvents: false,
|
|
16967
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
16968
16888
|
sendMessage: () => {
|
|
16969
16889
|
}
|
|
16970
16890
|
});
|
|
16971
|
-
|
|
16972
|
-
children
|
|
16973
|
-
}) => {
|
|
16891
|
+
function OneMessagesProvider({ children }) {
|
|
16974
16892
|
const [isError, setIsError] = useState19(null);
|
|
16975
16893
|
const [events, setEvents] = useState19([getInitialMessage()]);
|
|
16976
16894
|
const generateAiResponseMutation = useGenerateAIResponse();
|
|
16977
16895
|
const { user } = useUserContext3();
|
|
16978
16896
|
const isLoading = generateAiResponseMutation.isLoading;
|
|
16979
|
-
const sendMessage = (message) => __async(
|
|
16897
|
+
const sendMessage = (message) => __async(this, null, function* () {
|
|
16980
16898
|
setIsError(null);
|
|
16981
16899
|
setEvents((prevEvents) => [
|
|
16982
16900
|
...prevEvents,
|
|
@@ -17020,7 +16938,6 @@ var OneMessagesProvider = ({
|
|
|
17020
16938
|
]
|
|
17021
16939
|
]);
|
|
17022
16940
|
} catch (error) {
|
|
17023
|
-
console.error(error);
|
|
17024
16941
|
}
|
|
17025
16942
|
});
|
|
17026
16943
|
const eventsGroup = useMemo4(
|
|
@@ -17044,7 +16961,7 @@ var OneMessagesProvider = ({
|
|
|
17044
16961
|
children
|
|
17045
16962
|
}
|
|
17046
16963
|
);
|
|
17047
|
-
}
|
|
16964
|
+
}
|
|
17048
16965
|
var useOneMessagesContext = () => {
|
|
17049
16966
|
const context = useContext8(OneMessagesContext);
|
|
17050
16967
|
if (context === void 0) {
|
|
@@ -17053,7 +16970,7 @@ var useOneMessagesContext = () => {
|
|
|
17053
16970
|
return context;
|
|
17054
16971
|
};
|
|
17055
16972
|
|
|
17056
|
-
// src/views/Flows/Definitions/Common/One/hooks/
|
|
16973
|
+
// src/views/Flows/Definitions/Common/One/hooks/useSendOneMessage.ts
|
|
17057
16974
|
var useSendOneMessage = () => {
|
|
17058
16975
|
const [editor] = useLexicalComposerContext2();
|
|
17059
16976
|
const { sendMessage } = useContext9(OneMessagesContext);
|
|
@@ -17070,8 +16987,8 @@ var useSendOneMessage = () => {
|
|
|
17070
16987
|
};
|
|
17071
16988
|
|
|
17072
16989
|
// src/views/Flows/Definitions/Common/One/widget/message-box/AskButton.tsx
|
|
17073
|
-
|
|
17074
|
-
const [isDisabled,
|
|
16990
|
+
function AskButton() {
|
|
16991
|
+
const [isDisabled, setIsDisabled] = useState20(true);
|
|
17075
16992
|
const [editor] = useLexicalComposerContext3();
|
|
17076
16993
|
const isLoading = false;
|
|
17077
16994
|
const { isAboveLimit } = useAboveCharacterLimit();
|
|
@@ -17079,7 +16996,7 @@ var AskButton = () => {
|
|
|
17079
16996
|
useEffect8(() => {
|
|
17080
16997
|
const registerTextContentListener = editor.registerTextContentListener(
|
|
17081
16998
|
(textContent) => {
|
|
17082
|
-
|
|
16999
|
+
setIsDisabled(!textContent);
|
|
17083
17000
|
}
|
|
17084
17001
|
);
|
|
17085
17002
|
return () => {
|
|
@@ -17109,7 +17026,7 @@ var AskButton = () => {
|
|
|
17109
17026
|
{
|
|
17110
17027
|
css: sendButtonTooltip,
|
|
17111
17028
|
theme: "invert",
|
|
17112
|
-
triggerRenderer:
|
|
17029
|
+
triggerRenderer: button2,
|
|
17113
17030
|
children: /* @__PURE__ */ jsx2(Text6, { children: "You can send a message once the reply suggestion is generated" })
|
|
17114
17031
|
}
|
|
17115
17032
|
);
|
|
@@ -17120,7 +17037,7 @@ var AskButton = () => {
|
|
|
17120
17037
|
{
|
|
17121
17038
|
css: aboveLimitTooltip,
|
|
17122
17039
|
theme: "invert",
|
|
17123
|
-
triggerRenderer:
|
|
17040
|
+
triggerRenderer: button2,
|
|
17124
17041
|
children: /* @__PURE__ */ jsxs2(Text6, { children: [
|
|
17125
17042
|
"You can send up to ",
|
|
17126
17043
|
ONE_CHARACTER_LIMIT.toLocaleString("en-US"),
|
|
@@ -17131,16 +17048,16 @@ var AskButton = () => {
|
|
|
17131
17048
|
);
|
|
17132
17049
|
}
|
|
17133
17050
|
return button2;
|
|
17134
|
-
}
|
|
17051
|
+
}
|
|
17135
17052
|
|
|
17136
17053
|
// src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBoxBottomBar.tsx
|
|
17137
|
-
|
|
17054
|
+
function OneMessageBoxBottomBar() {
|
|
17138
17055
|
const isOneLoading = false;
|
|
17139
17056
|
return /* @__PURE__ */ jsxs2(Fragment4, { children: [
|
|
17140
17057
|
!isOneLoading && /* @__PURE__ */ jsx2(AskButton, {}),
|
|
17141
17058
|
/* @__PURE__ */ jsx2(StopGenerateButton, {})
|
|
17142
17059
|
] });
|
|
17143
|
-
}
|
|
17060
|
+
}
|
|
17144
17061
|
|
|
17145
17062
|
// src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBoxPlugins.tsx
|
|
17146
17063
|
import { ClearEditorPlugin } from "@lexical/react/LexicalClearEditorPlugin";
|
|
@@ -17152,7 +17069,7 @@ import { PlainTextPlugin } from "@lexical/react/LexicalPlainTextPlugin";
|
|
|
17152
17069
|
// src/views/Flows/Definitions/Common/One/widget/message-box/custom-plugins/AutoFocusPlugin.tsx
|
|
17153
17070
|
import { useCallback as useCallback9, useEffect as useEffect9 } from "react";
|
|
17154
17071
|
import { useLexicalComposerContext as useLexicalComposerContext4 } from "@lexical/react/LexicalComposerContext";
|
|
17155
|
-
|
|
17072
|
+
function AutoFocusPlugin() {
|
|
17156
17073
|
const [editor] = useLexicalComposerContext4();
|
|
17157
17074
|
const handleFocus = useCallback9(() => {
|
|
17158
17075
|
editor.focus();
|
|
@@ -17161,13 +17078,13 @@ var AutoFocusPlugin = () => {
|
|
|
17161
17078
|
handleFocus();
|
|
17162
17079
|
}, []);
|
|
17163
17080
|
return null;
|
|
17164
|
-
}
|
|
17081
|
+
}
|
|
17165
17082
|
|
|
17166
17083
|
// src/views/Flows/Definitions/Common/One/widget/message-box/custom-plugins/EnterDownPlugin.tsx
|
|
17167
17084
|
import { useCallback as useCallback10, useEffect as useEffect10 } from "react";
|
|
17168
17085
|
import { useLexicalComposerContext as useLexicalComposerContext5 } from "@lexical/react/LexicalComposerContext";
|
|
17169
17086
|
import { COMMAND_PRIORITY_LOW, KEY_ENTER_COMMAND } from "lexical";
|
|
17170
|
-
|
|
17087
|
+
function EnterDownPlugin({ isCommandMenuVisibleRef }) {
|
|
17171
17088
|
const [editor] = useLexicalComposerContext5();
|
|
17172
17089
|
const isLoading = false;
|
|
17173
17090
|
const handleSendMessage = useSendOneMessage();
|
|
@@ -17192,26 +17109,30 @@ var EnterDownPlugin = ({ isCommandMenuVisibleRef }) => {
|
|
|
17192
17109
|
[editor, onEnterDown]
|
|
17193
17110
|
);
|
|
17194
17111
|
return null;
|
|
17195
|
-
}
|
|
17112
|
+
}
|
|
17196
17113
|
|
|
17197
17114
|
// src/views/Flows/Definitions/Common/One/widget/message-box/Placeholder.tsx
|
|
17198
|
-
|
|
17115
|
+
function Placeholder({ className }) {
|
|
17116
|
+
return /* @__PURE__ */ jsx2("div", { css: [placeholder, className], children: "Your message" });
|
|
17117
|
+
}
|
|
17199
17118
|
|
|
17200
17119
|
// src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBoxPlugins.tsx
|
|
17201
|
-
|
|
17202
|
-
/* @__PURE__ */
|
|
17203
|
-
|
|
17204
|
-
|
|
17205
|
-
|
|
17206
|
-
|
|
17207
|
-
|
|
17208
|
-
|
|
17209
|
-
|
|
17210
|
-
|
|
17211
|
-
|
|
17212
|
-
|
|
17213
|
-
|
|
17214
|
-
|
|
17120
|
+
function OneMessageBoxPlugins() {
|
|
17121
|
+
return /* @__PURE__ */ jsxs2(Fragment4, { children: [
|
|
17122
|
+
/* @__PURE__ */ jsx2(
|
|
17123
|
+
PlainTextPlugin,
|
|
17124
|
+
{
|
|
17125
|
+
ErrorBoundary: LexicalErrorBoundary,
|
|
17126
|
+
contentEditable: /* @__PURE__ */ jsx2(ContentEditable, { css: contentEditable }),
|
|
17127
|
+
placeholder: /* @__PURE__ */ jsx2(Placeholder, { css: placeholder })
|
|
17128
|
+
}
|
|
17129
|
+
),
|
|
17130
|
+
/* @__PURE__ */ jsx2(HistoryPlugin, {}),
|
|
17131
|
+
/* @__PURE__ */ jsx2(AutoFocusPlugin, {}),
|
|
17132
|
+
/* @__PURE__ */ jsx2(ClearEditorPlugin, {}),
|
|
17133
|
+
/* @__PURE__ */ jsx2(EnterDownPlugin, {})
|
|
17134
|
+
] });
|
|
17135
|
+
}
|
|
17215
17136
|
|
|
17216
17137
|
// src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBoxWrapper.tsx
|
|
17217
17138
|
import {
|
|
@@ -17223,21 +17144,22 @@ var DEFAULT_CONFIG = {
|
|
|
17223
17144
|
throw error;
|
|
17224
17145
|
}
|
|
17225
17146
|
};
|
|
17226
|
-
|
|
17227
|
-
children,
|
|
17228
|
-
|
|
17229
|
-
}) => /* @__PURE__ */ jsx2(LexicalComposer, { initialConfig: initialConfig != null ? initialConfig : DEFAULT_CONFIG, children: /* @__PURE__ */ jsx2("div", { css: messageBoxWrapper, children }) });
|
|
17147
|
+
function OneMessageBoxWrapper({ children, initialConfig }) {
|
|
17148
|
+
return /* @__PURE__ */ jsx2(LexicalComposer, { initialConfig: initialConfig != null ? initialConfig : DEFAULT_CONFIG, children: /* @__PURE__ */ jsx2("div", { css: messageBoxWrapper, children }) });
|
|
17149
|
+
}
|
|
17230
17150
|
|
|
17231
17151
|
// src/views/Flows/Definitions/Common/One/widget/message-box/OneMessageBox.tsx
|
|
17232
|
-
|
|
17233
|
-
/* @__PURE__ */ jsx2(
|
|
17234
|
-
|
|
17235
|
-
|
|
17152
|
+
function OneMessageBox() {
|
|
17153
|
+
return /* @__PURE__ */ jsx2("div", { css: popoverMessageBox, children: /* @__PURE__ */ jsx2(OneMessageBoxWrapper, { children: /* @__PURE__ */ jsxs2(Fragment4, { children: [
|
|
17154
|
+
/* @__PURE__ */ jsx2(OneMessageBoxPlugins, {}),
|
|
17155
|
+
/* @__PURE__ */ jsx2(OneMessageBoxBottomBar, {})
|
|
17156
|
+
] }) }) });
|
|
17157
|
+
}
|
|
17236
17158
|
|
|
17237
17159
|
// src/views/Flows/Definitions/Common/One/widget/OneChatFeedContent.tsx
|
|
17238
17160
|
import { useRef as useRef8 } from "react";
|
|
17239
17161
|
|
|
17240
|
-
// src/views/Flows/Definitions/Common/One/hooks/
|
|
17162
|
+
// src/views/Flows/Definitions/Common/One/hooks/useScroll.ts
|
|
17241
17163
|
import { useCallback as useCallback11, useEffect as useEffect11, useRef as useRef7 } from "react";
|
|
17242
17164
|
import debounce4 from "lodash.debounce";
|
|
17243
17165
|
var useScroll = ({
|
|
@@ -17829,7 +17751,7 @@ var bottomBar2 = css`
|
|
|
17829
17751
|
`;
|
|
17830
17752
|
|
|
17831
17753
|
// src/views/Flows/Definitions/Common/One/widget/events/OneErrorEvent.tsx
|
|
17832
|
-
|
|
17754
|
+
function OneErrorEvent({ eventId }) {
|
|
17833
17755
|
const handleRetry = () => {
|
|
17834
17756
|
};
|
|
17835
17757
|
return /* @__PURE__ */ jsx2("div", { className: "bubble-wrapper", children: /* @__PURE__ */ jsx2("div", { css: eventWrapper(false), children: /* @__PURE__ */ jsx2("div", { className: "bubble", css: bubble, children: /* @__PURE__ */ jsxs2("div", { css: errorWrapper, children: [
|
|
@@ -17845,7 +17767,7 @@ var OneErrorEvent = ({ eventId }) => {
|
|
|
17845
17767
|
}
|
|
17846
17768
|
)
|
|
17847
17769
|
] }) }) }) }, eventId);
|
|
17848
|
-
}
|
|
17770
|
+
}
|
|
17849
17771
|
|
|
17850
17772
|
// src/views/Flows/Definitions/Common/One/widget/events/OneImageEvent.tsx
|
|
17851
17773
|
import { useEffect as useEffect12, useState as useState21 } from "react";
|
|
@@ -17887,28 +17809,30 @@ var skeletonLineTall = css`
|
|
|
17887
17809
|
var skeletonLineRemovedMargin = css`
|
|
17888
17810
|
margin-bottom: 0;
|
|
17889
17811
|
`;
|
|
17890
|
-
|
|
17812
|
+
function SkeletonLine({
|
|
17891
17813
|
className,
|
|
17892
17814
|
wide,
|
|
17893
17815
|
tall,
|
|
17894
17816
|
loading,
|
|
17895
17817
|
removeMargin
|
|
17896
|
-
})
|
|
17897
|
-
|
|
17898
|
-
|
|
17899
|
-
|
|
17900
|
-
|
|
17901
|
-
|
|
17902
|
-
|
|
17903
|
-
|
|
17904
|
-
|
|
17905
|
-
|
|
17906
|
-
|
|
17907
|
-
|
|
17908
|
-
|
|
17818
|
+
}) {
|
|
17819
|
+
return /* @__PURE__ */ jsx2(
|
|
17820
|
+
"div",
|
|
17821
|
+
{
|
|
17822
|
+
className,
|
|
17823
|
+
css: [
|
|
17824
|
+
skeletonLine,
|
|
17825
|
+
wide && skeletonLineWide,
|
|
17826
|
+
tall && skeletonLineTall,
|
|
17827
|
+
removeMargin && skeletonLineRemovedMargin,
|
|
17828
|
+
loading && loadingAnimation
|
|
17829
|
+
]
|
|
17830
|
+
}
|
|
17831
|
+
);
|
|
17832
|
+
}
|
|
17909
17833
|
|
|
17910
17834
|
// src/views/Flows/Definitions/Common/One/widget/events/OneImageEvent.tsx
|
|
17911
|
-
|
|
17835
|
+
function OneImageEvent({ imageUrl }) {
|
|
17912
17836
|
const [isLoaded, setIsLoaded] = useState21(false);
|
|
17913
17837
|
useEffect12(() => {
|
|
17914
17838
|
const image = new Image();
|
|
@@ -17920,19 +17844,16 @@ var OneImageEvent = ({ imageUrl }) => {
|
|
|
17920
17844
|
if (!isLoaded) {
|
|
17921
17845
|
return /* @__PURE__ */ jsx2(SkeletonLine, { css: imageLoader, loading: true });
|
|
17922
17846
|
}
|
|
17923
|
-
return (
|
|
17924
|
-
|
|
17925
|
-
|
|
17926
|
-
"
|
|
17927
|
-
|
|
17928
|
-
|
|
17929
|
-
|
|
17930
|
-
|
|
17931
|
-
src: imageUrl
|
|
17932
|
-
}
|
|
17933
|
-
)
|
|
17847
|
+
return /* @__PURE__ */ jsx2(
|
|
17848
|
+
"img",
|
|
17849
|
+
{
|
|
17850
|
+
alt: "event",
|
|
17851
|
+
className: "bubble",
|
|
17852
|
+
css: imageEvent,
|
|
17853
|
+
src: imageUrl
|
|
17854
|
+
}
|
|
17934
17855
|
);
|
|
17935
|
-
}
|
|
17856
|
+
}
|
|
17936
17857
|
|
|
17937
17858
|
// src/views/Flows/Definitions/Common/One/components/TypingIndicator.tsx
|
|
17938
17859
|
import { memo as memo11 } from "react";
|
|
@@ -17976,16 +17897,18 @@ var typingIndicator2 = css`
|
|
|
17976
17897
|
}
|
|
17977
17898
|
}
|
|
17978
17899
|
`;
|
|
17979
|
-
var TypingIndicator = memo11(()
|
|
17980
|
-
/* @__PURE__ */
|
|
17981
|
-
|
|
17982
|
-
|
|
17983
|
-
|
|
17900
|
+
var TypingIndicator = memo11(function TypingIndicatorInner() {
|
|
17901
|
+
return /* @__PURE__ */ jsxs2("div", { css: typingIndicator2, "data-test": "typing-indicator", children: [
|
|
17902
|
+
/* @__PURE__ */ jsx2("span", {}),
|
|
17903
|
+
/* @__PURE__ */ jsx2("span", {}),
|
|
17904
|
+
/* @__PURE__ */ jsx2("span", {})
|
|
17905
|
+
] });
|
|
17906
|
+
});
|
|
17984
17907
|
|
|
17985
17908
|
// src/views/Flows/Definitions/Common/One/widget/events/OneLoaderEvent.tsx
|
|
17986
|
-
|
|
17909
|
+
function OneLoaderEvent({ eventId }) {
|
|
17987
17910
|
return /* @__PURE__ */ jsx2("div", { css: loaderBubble, children: /* @__PURE__ */ jsx2(TypingIndicator, {}) }, eventId);
|
|
17988
|
-
}
|
|
17911
|
+
}
|
|
17989
17912
|
|
|
17990
17913
|
// src/views/Flows/Definitions/Common/One/widget/events/OneMessageEvent.tsx
|
|
17991
17914
|
import { Text as Text9 } from "@livechat/design-system-react-components";
|
|
@@ -17996,7 +17919,7 @@ import ReactMarkdown from "react-markdown";
|
|
|
17996
17919
|
// src/views/Flows/Definitions/Common/One/widget/events/OneLinkWithTooltip.tsx
|
|
17997
17920
|
import { Link } from "react-router-dom";
|
|
17998
17921
|
import { Text as Text8, Tooltip as Tooltip6 } from "@livechat/design-system-react-components";
|
|
17999
|
-
|
|
17922
|
+
function OneLinkWithTooltip({ children, href }) {
|
|
18000
17923
|
const trigger = href ? /* @__PURE__ */ jsx2(Link, { css: linkTrigger, to: href, children }) : /* @__PURE__ */ jsx2("span", { css: linkTrigger, children });
|
|
18001
17924
|
return /* @__PURE__ */ jsx2(
|
|
18002
17925
|
Tooltip6,
|
|
@@ -18008,7 +17931,7 @@ var OneLinkWithTooltip = ({ children, href }) => {
|
|
|
18008
17931
|
children: /* @__PURE__ */ jsx2(Text8, { children: href })
|
|
18009
17932
|
}
|
|
18010
17933
|
);
|
|
18011
|
-
}
|
|
17934
|
+
}
|
|
18012
17935
|
|
|
18013
17936
|
// src/views/Flows/Definitions/Common/One/components/MarkdownEventRenderer.jsx
|
|
18014
17937
|
var markdownCss = css`
|
|
@@ -18076,14 +17999,14 @@ var iconMapping = {
|
|
|
18076
17999
|
"arrow-forward": /* @__PURE__ */ jsx2(Icon21, { source: ArrowForward }),
|
|
18077
18000
|
add: /* @__PURE__ */ jsx2(Icon21, { source: Add7 })
|
|
18078
18001
|
};
|
|
18079
|
-
|
|
18002
|
+
function NavigateButton({
|
|
18080
18003
|
url,
|
|
18081
18004
|
content,
|
|
18082
18005
|
isExternal,
|
|
18083
18006
|
icon: icon2,
|
|
18084
18007
|
kind,
|
|
18085
18008
|
iconPosition
|
|
18086
|
-
})
|
|
18009
|
+
}) {
|
|
18087
18010
|
const navigate = useNavigate4();
|
|
18088
18011
|
const handleButtonClick = () => {
|
|
18089
18012
|
if (isExternal) {
|
|
@@ -18106,7 +18029,7 @@ var NavigateButton = ({
|
|
|
18106
18029
|
},
|
|
18107
18030
|
url
|
|
18108
18031
|
);
|
|
18109
|
-
}
|
|
18032
|
+
}
|
|
18110
18033
|
|
|
18111
18034
|
// src/views/Flows/Definitions/Common/One/widget/events/OneAssistantMessageBottomBar.tsx
|
|
18112
18035
|
import { useState as useState23 } from "react";
|
|
@@ -18138,11 +18061,11 @@ var buttonCss = css`
|
|
|
18138
18061
|
margin-right: var(${SpacingToken27.Spacing2});
|
|
18139
18062
|
margin-top: var(${SpacingToken27.Spacing2});
|
|
18140
18063
|
`;
|
|
18141
|
-
|
|
18064
|
+
function ApplyWorkflowButton({
|
|
18142
18065
|
event,
|
|
18143
18066
|
updateWorkflow,
|
|
18144
18067
|
previewWorkflow
|
|
18145
|
-
})
|
|
18068
|
+
}) {
|
|
18146
18069
|
const [isApplied, setIsApplied] = useState22(false);
|
|
18147
18070
|
const workflowExtraction = extractWorkflowFromEvent(event);
|
|
18148
18071
|
const isEditingWorkflow = false;
|
|
@@ -18183,9 +18106,9 @@ var ApplyWorkflowButton = ({
|
|
|
18183
18106
|
}
|
|
18184
18107
|
)
|
|
18185
18108
|
] });
|
|
18186
|
-
}
|
|
18109
|
+
}
|
|
18187
18110
|
|
|
18188
|
-
// src/views/Flows/Definitions/Common/One/hooks/
|
|
18111
|
+
// src/views/Flows/Definitions/Common/One/hooks/useMessageBottomBar.ts
|
|
18189
18112
|
import {
|
|
18190
18113
|
copyTextToClipboard,
|
|
18191
18114
|
useNotifications as useNotifications5
|
|
@@ -18203,9 +18126,7 @@ var useMessageBottomBar = (event) => {
|
|
|
18203
18126
|
});
|
|
18204
18127
|
const handleRateMessageClick = () => {
|
|
18205
18128
|
if (!sessionId) {
|
|
18206
|
-
return;
|
|
18207
18129
|
}
|
|
18208
|
-
console.log("handleRateMessageClick");
|
|
18209
18130
|
};
|
|
18210
18131
|
return {
|
|
18211
18132
|
handleCopyClick,
|
|
@@ -18214,20 +18135,20 @@ var useMessageBottomBar = (event) => {
|
|
|
18214
18135
|
};
|
|
18215
18136
|
|
|
18216
18137
|
// src/views/Flows/Definitions/Common/One/widget/events/OneAssistantMessageBottomBar.tsx
|
|
18217
|
-
|
|
18138
|
+
function OneAssistantMessageBottomBar({
|
|
18218
18139
|
event,
|
|
18219
18140
|
updateWorkflow,
|
|
18220
18141
|
previewWorkflow
|
|
18221
|
-
})
|
|
18222
|
-
var _a, _b;
|
|
18142
|
+
}) {
|
|
18143
|
+
var _a, _b, _c;
|
|
18223
18144
|
const [isSourcesVisible, setIsSourcesVisible] = useState23(false);
|
|
18224
18145
|
const toggleIsSourcesVisible = () => {
|
|
18225
18146
|
setIsSourcesVisible((prev2) => !prev2);
|
|
18226
18147
|
};
|
|
18227
18148
|
const eventSources = (_a = event.properties) == null ? void 0 : _a.sources;
|
|
18228
|
-
const isWithSources = Boolean(eventSources) && eventSources.length > 0;
|
|
18149
|
+
const isWithSources = Boolean(eventSources) && ((_b = eventSources == null ? void 0 : eventSources.length) != null ? _b : 0) > 0;
|
|
18229
18150
|
const isWorkflow = isWorkflowEvent(event);
|
|
18230
|
-
const isMessageRated = Boolean((
|
|
18151
|
+
const isMessageRated = Boolean((_c = event.properties) == null ? void 0 : _c.rated);
|
|
18231
18152
|
const numberOfSources = (eventSources == null ? void 0 : eventSources.length) || 0;
|
|
18232
18153
|
const { topSources } = getSources(eventSources);
|
|
18233
18154
|
const { handleCopyClick, handleRateMessageClick } = useMessageBottomBar(event);
|
|
@@ -18327,15 +18248,15 @@ var OneAssistantMessageBottomBar = ({
|
|
|
18327
18248
|
/* @__PURE__ */ jsx2("a", { href: url, rel: "noopener noreferrer", target: "_blank", children: name })
|
|
18328
18249
|
] }, url)) }) : null
|
|
18329
18250
|
] });
|
|
18330
|
-
}
|
|
18251
|
+
}
|
|
18331
18252
|
|
|
18332
18253
|
// src/views/Flows/Definitions/Common/One/widget/events/OneMessageEvent.tsx
|
|
18333
|
-
|
|
18254
|
+
function OneMessageEvent({
|
|
18334
18255
|
event,
|
|
18335
18256
|
isAgentMessage,
|
|
18336
18257
|
updateWorkflow,
|
|
18337
18258
|
previewWorkflow
|
|
18338
|
-
})
|
|
18259
|
+
}) {
|
|
18339
18260
|
var _a, _b, _c;
|
|
18340
18261
|
const navigateButtons = (_a = event.properties) == null ? void 0 : _a.navigateButtons;
|
|
18341
18262
|
const isWithNavigateButtons = Boolean(navigateButtons == null ? void 0 : navigateButtons.length);
|
|
@@ -18374,19 +18295,17 @@ var OneMessageEvent = ({
|
|
|
18374
18295
|
]
|
|
18375
18296
|
}
|
|
18376
18297
|
);
|
|
18377
|
-
}
|
|
18298
|
+
}
|
|
18378
18299
|
|
|
18379
18300
|
// src/views/Flows/Definitions/Common/One/widget/events/OneWorkflowEvent.tsx
|
|
18380
18301
|
import { Text as Text10 } from "@livechat/design-system-react-components";
|
|
18381
|
-
|
|
18302
|
+
function OneWorkflowEvent({
|
|
18382
18303
|
event,
|
|
18383
18304
|
updateWorkflow,
|
|
18384
18305
|
previewWorkflow
|
|
18385
|
-
})
|
|
18306
|
+
}) {
|
|
18386
18307
|
const workflowExtraction = extractWorkflowFromEvent(event);
|
|
18387
|
-
const triggerSpec = (workflowExtraction == null ? void 0 : workflowExtraction.workflow.trigger) ? workflowBuilderUtils.getTriggerConfig(
|
|
18388
|
-
workflowExtraction.workflow.trigger
|
|
18389
|
-
) : void 0;
|
|
18308
|
+
const triggerSpec = (workflowExtraction == null ? void 0 : workflowExtraction.workflow.trigger) ? workflowBuilderUtils.getTriggerConfig(workflowExtraction.workflow.trigger) : void 0;
|
|
18390
18309
|
return /* @__PURE__ */ jsx2("div", { className: "bubble-wrapper", css: messageEventWrapper(false), children: /* @__PURE__ */ jsxs2("div", { css: eventWrapper(false), children: [
|
|
18391
18310
|
/* @__PURE__ */ jsxs2("div", { className: "bubble", css: bubble, children: [
|
|
18392
18311
|
(workflowExtraction == null ? void 0 : workflowExtraction.before) ? /* @__PURE__ */ jsx2(Text10, { css: [eventText], children: /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(MarkdownEventRenderer, { children: workflowExtraction.before }) }) }) : null,
|
|
@@ -18398,7 +18317,7 @@ var OneWorkflowEvent = ({
|
|
|
18398
18317
|
center: false,
|
|
18399
18318
|
disabled: false,
|
|
18400
18319
|
height: 4,
|
|
18401
|
-
product: (triggerSpec == null ? void 0 : triggerSpec.customization.
|
|
18320
|
+
product: (triggerSpec == null ? void 0 : triggerSpec.customization.provider) || OTHER_TYPES.SYSTEM,
|
|
18402
18321
|
width: 4
|
|
18403
18322
|
}
|
|
18404
18323
|
),
|
|
@@ -18417,7 +18336,7 @@ var OneWorkflowEvent = ({
|
|
|
18417
18336
|
center: false,
|
|
18418
18337
|
disabled: false,
|
|
18419
18338
|
height: 4,
|
|
18420
|
-
product: taskSpec.customization.
|
|
18339
|
+
product: taskSpec.customization.provider || OTHER_TYPES.SYSTEM,
|
|
18421
18340
|
width: 4
|
|
18422
18341
|
}
|
|
18423
18342
|
),
|
|
@@ -18442,15 +18361,15 @@ var OneWorkflowEvent = ({
|
|
|
18442
18361
|
}
|
|
18443
18362
|
)
|
|
18444
18363
|
] }) });
|
|
18445
|
-
}
|
|
18364
|
+
}
|
|
18446
18365
|
|
|
18447
18366
|
// src/views/Flows/Definitions/Common/One/widget/events/OneEvent.tsx
|
|
18448
|
-
|
|
18367
|
+
function OneEvent({
|
|
18449
18368
|
event,
|
|
18450
18369
|
isAgentMessage,
|
|
18451
18370
|
updateWorkflow,
|
|
18452
18371
|
previewWorkflow
|
|
18453
|
-
})
|
|
18372
|
+
}) {
|
|
18454
18373
|
switch (event.type) {
|
|
18455
18374
|
case "text-message": {
|
|
18456
18375
|
if (isWorkflowEvent(event)) {
|
|
@@ -18486,14 +18405,14 @@ var OneEvent = ({
|
|
|
18486
18405
|
default:
|
|
18487
18406
|
return /* @__PURE__ */ jsx2("div", { css: virtuosoEmptyElement });
|
|
18488
18407
|
}
|
|
18489
|
-
}
|
|
18408
|
+
}
|
|
18490
18409
|
|
|
18491
18410
|
// src/views/Flows/Definitions/Common/One/widget/events/OneEventsGroup.tsx
|
|
18492
|
-
|
|
18411
|
+
function OneEventsGroup({
|
|
18493
18412
|
eventGroup,
|
|
18494
18413
|
updateWorkflow,
|
|
18495
18414
|
previewWorkflow
|
|
18496
|
-
})
|
|
18415
|
+
}) {
|
|
18497
18416
|
const [firstEvent] = eventGroup;
|
|
18498
18417
|
const isAgentMessage = firstEvent.authorType === "agent" /* Agent */;
|
|
18499
18418
|
return /* @__PURE__ */ jsx2("div", { css: groupedEventsWrapper, children: /* @__PURE__ */ jsx2("div", { css: [eventsWrapper], children: eventGroup.map((event) => {
|
|
@@ -18508,10 +18427,12 @@ var OneEventsGroup = ({
|
|
|
18508
18427
|
event.eventId
|
|
18509
18428
|
);
|
|
18510
18429
|
}) }) });
|
|
18511
|
-
}
|
|
18430
|
+
}
|
|
18512
18431
|
|
|
18513
18432
|
// src/views/Flows/Definitions/Common/One/widget/OneChatFeedSkeleton.tsx
|
|
18514
|
-
|
|
18433
|
+
function OneChatFeedSkeleton() {
|
|
18434
|
+
return /* @__PURE__ */ jsx2("div", { css: loaderContainer, children: /* @__PURE__ */ jsx2(SkeletonLine, { css: loaderChatItem, loading: true }) });
|
|
18435
|
+
}
|
|
18515
18436
|
|
|
18516
18437
|
// src/views/Flows/Definitions/Common/One/widget/OneChatFeedContent.tsx
|
|
18517
18438
|
function OneChatFeedContent({
|
|
@@ -18543,7 +18464,7 @@ function OneChatFeedContent({
|
|
|
18543
18464
|
import { Close as Close3 } from "@livechat/design-system-icons";
|
|
18544
18465
|
import { Button as Button20, Icon as Icon24, Text as Text11 } from "@livechat/design-system-react-components";
|
|
18545
18466
|
import { OneIcon } from "@livechat/developer-studio-ui-react";
|
|
18546
|
-
|
|
18467
|
+
function OneWidgetHeader() {
|
|
18547
18468
|
const { toggleOneWidget } = useOneWidgetContext();
|
|
18548
18469
|
return /* @__PURE__ */ jsxs2("div", { css: headerWrapper, children: [
|
|
18549
18470
|
/* @__PURE__ */ jsxs2("div", { children: [
|
|
@@ -18560,13 +18481,10 @@ var OneWidgetHeader = () => {
|
|
|
18560
18481
|
}
|
|
18561
18482
|
) })
|
|
18562
18483
|
] });
|
|
18563
|
-
}
|
|
18484
|
+
}
|
|
18564
18485
|
|
|
18565
18486
|
// src/views/Flows/Definitions/Common/One/widget/OneWidget.tsx
|
|
18566
|
-
function OneWidget({
|
|
18567
|
-
updateWorkflow,
|
|
18568
|
-
previewWorkflow
|
|
18569
|
-
}) {
|
|
18487
|
+
function OneWidget({ updateWorkflow, previewWorkflow }) {
|
|
18570
18488
|
return /* @__PURE__ */ jsxs2("div", { css: [container, "lc-dark-theme"], children: [
|
|
18571
18489
|
/* @__PURE__ */ jsx2(OneWidgetHeader, {}),
|
|
18572
18490
|
/* @__PURE__ */ jsx2("div", { css: chatContainer, children: /* @__PURE__ */ jsxs2("div", { css: chatBody, children: [
|
|
@@ -18743,7 +18661,7 @@ import { useState as useState24 } from "react";
|
|
|
18743
18661
|
import { useLocation as useLocation3, useNavigate as useNavigate5 } from "react-router-dom";
|
|
18744
18662
|
import { Controls as Controls2 } from "reactflow";
|
|
18745
18663
|
import { SegmentedControl } from "@livechat/design-system-react-components";
|
|
18746
|
-
import {
|
|
18664
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
18747
18665
|
function SwitcherControls({
|
|
18748
18666
|
isDraft,
|
|
18749
18667
|
hasRelatedWorkflow,
|
|
@@ -18786,7 +18704,7 @@ function SwitcherControls({
|
|
|
18786
18704
|
}
|
|
18787
18705
|
};
|
|
18788
18706
|
if (!visibility.switcher || !isDraft && !hasRelatedWorkflow) {
|
|
18789
|
-
return
|
|
18707
|
+
return;
|
|
18790
18708
|
}
|
|
18791
18709
|
const handleVersionClick = (id) => {
|
|
18792
18710
|
if (id === "draft" && isDraft) {
|
|
@@ -18801,14 +18719,14 @@ function SwitcherControls({
|
|
|
18801
18719
|
});
|
|
18802
18720
|
focus();
|
|
18803
18721
|
};
|
|
18804
|
-
return /* @__PURE__ */
|
|
18722
|
+
return /* @__PURE__ */ jsx8(
|
|
18805
18723
|
Controls2,
|
|
18806
18724
|
{
|
|
18807
18725
|
position: "top-center",
|
|
18808
18726
|
showFitView: false,
|
|
18809
18727
|
showInteractive: false,
|
|
18810
18728
|
showZoom: false,
|
|
18811
|
-
children: /* @__PURE__ */
|
|
18729
|
+
children: /* @__PURE__ */ jsx8(
|
|
18812
18730
|
SegmentedControl,
|
|
18813
18731
|
{
|
|
18814
18732
|
buttons: renderControlOptions(),
|
|
@@ -18885,7 +18803,7 @@ var Edges_default = CustomEdge_default;
|
|
|
18885
18803
|
|
|
18886
18804
|
// src/views/Flows/Definitions/Common/Builder/Editors/Visual/Diagram/Diagram.tsx
|
|
18887
18805
|
import "reactflow/dist/style.css";
|
|
18888
|
-
import { Fragment as
|
|
18806
|
+
import { Fragment as Fragment13, jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
18889
18807
|
var nodeConfig = {
|
|
18890
18808
|
[WorkflowDefinitionTaskType14.http]: Node_default2,
|
|
18891
18809
|
[WorkflowDefinitionTaskType14.forkJoin]: Node_default,
|
|
@@ -18943,10 +18861,10 @@ function Diagram({
|
|
|
18943
18861
|
if (forkNode.data.forkTasks.length > 2) {
|
|
18944
18862
|
const indexHelper = edge.id.split("-");
|
|
18945
18863
|
const pathIndex = indexHelper[indexHelper.length - 1];
|
|
18946
|
-
edge.data.label = /* @__PURE__ */
|
|
18864
|
+
edge.data.label = /* @__PURE__ */ jsx9(
|
|
18947
18865
|
Button21,
|
|
18948
18866
|
{
|
|
18949
|
-
icon: /* @__PURE__ */
|
|
18867
|
+
icon: /* @__PURE__ */ jsx9(Icon26, { source: Delete3 }),
|
|
18950
18868
|
kind: "plain",
|
|
18951
18869
|
onClick: () => {
|
|
18952
18870
|
forkNode.data.forkTasks.splice(pathIndex, 1);
|
|
@@ -18974,7 +18892,7 @@ function Diagram({
|
|
|
18974
18892
|
if (!workflow.draft && isRawEditorVisible) {
|
|
18975
18893
|
onRawEditorToggle && onRawEditorToggle();
|
|
18976
18894
|
}
|
|
18977
|
-
return /* @__PURE__ */ jsxs5(
|
|
18895
|
+
return /* @__PURE__ */ jsxs5(Fragment13, { children: [
|
|
18978
18896
|
/* @__PURE__ */ jsxs5(
|
|
18979
18897
|
ReactFlow,
|
|
18980
18898
|
{
|
|
@@ -19009,7 +18927,7 @@ function Diagram({
|
|
|
19009
18927
|
onNodesChange,
|
|
19010
18928
|
proOptions: { hideAttribution: true },
|
|
19011
18929
|
children: [
|
|
19012
|
-
/* @__PURE__ */
|
|
18930
|
+
/* @__PURE__ */ jsx9(
|
|
19013
18931
|
SwitcherControls,
|
|
19014
18932
|
{
|
|
19015
18933
|
hasRelatedWorkflow: Boolean(workflow.related_workflow_id),
|
|
@@ -19017,7 +18935,7 @@ function Diagram({
|
|
|
19017
18935
|
relatedWorkflowId: workflow.related_workflow_id
|
|
19018
18936
|
}
|
|
19019
18937
|
),
|
|
19020
|
-
/* @__PURE__ */
|
|
18938
|
+
/* @__PURE__ */ jsx9(
|
|
19021
18939
|
CustomControls_default,
|
|
19022
18940
|
{
|
|
19023
18941
|
isRawEditorVisible,
|
|
@@ -19033,7 +18951,7 @@ function Diagram({
|
|
|
19033
18951
|
}
|
|
19034
18952
|
}
|
|
19035
18953
|
),
|
|
19036
|
-
/* @__PURE__ */
|
|
18954
|
+
/* @__PURE__ */ jsx9(
|
|
19037
18955
|
Background,
|
|
19038
18956
|
{
|
|
19039
18957
|
color: `var(${DesignToken28.SurfaceSecondaryActive})`,
|
|
@@ -19044,7 +18962,7 @@ function Diagram({
|
|
|
19044
18962
|
]
|
|
19045
18963
|
}
|
|
19046
18964
|
),
|
|
19047
|
-
previewModalVisible.isVisible ? /* @__PURE__ */
|
|
18965
|
+
previewModalVisible.isVisible ? /* @__PURE__ */ jsx9(
|
|
19048
18966
|
Preview_default,
|
|
19049
18967
|
{
|
|
19050
18968
|
onApply: () => {
|
|
@@ -19125,7 +19043,7 @@ function WorkflowBuilder() {
|
|
|
19125
19043
|
var Builder_default = WorkflowBuilder;
|
|
19126
19044
|
|
|
19127
19045
|
// src/views/Flows/Definitions/Common/Modals/Delete.tsx
|
|
19128
|
-
import { jsx as
|
|
19046
|
+
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
19129
19047
|
var ModalContent2 = newStyled.div`
|
|
19130
19048
|
display: grid;
|
|
19131
19049
|
align-items: center;
|
|
@@ -19164,8 +19082,8 @@ function WorkflowDeleteModal({
|
|
|
19164
19082
|
const amplitudeWorkflowsJourney = workflowsBlockAmplitudeJourneyFactory(
|
|
19165
19083
|
user == null ? void 0 : user.meta.email
|
|
19166
19084
|
);
|
|
19167
|
-
return /* @__PURE__ */
|
|
19168
|
-
/* @__PURE__ */
|
|
19085
|
+
return /* @__PURE__ */ jsx10(Modal2, { heading: true, onClose, children: /* @__PURE__ */ jsxs6(ModalContent2, { children: [
|
|
19086
|
+
/* @__PURE__ */ jsx10(
|
|
19169
19087
|
Icon27,
|
|
19170
19088
|
{
|
|
19171
19089
|
customColor: `var(${DesignToken30.ContentBasicDisabled})`,
|
|
@@ -19185,8 +19103,8 @@ function WorkflowDeleteModal({
|
|
|
19185
19103
|
". Are you sure you want to continue?"
|
|
19186
19104
|
] }),
|
|
19187
19105
|
/* @__PURE__ */ jsxs6(ModalFooter, { children: [
|
|
19188
|
-
/* @__PURE__ */
|
|
19189
|
-
/* @__PURE__ */
|
|
19106
|
+
/* @__PURE__ */ jsx10(Button22, { kind: "secondary", onClick: onClose, children: "Cancel" }),
|
|
19107
|
+
/* @__PURE__ */ jsx10(
|
|
19190
19108
|
Button22,
|
|
19191
19109
|
{
|
|
19192
19110
|
kind: "destructive",
|
|
@@ -19194,13 +19112,13 @@ function WorkflowDeleteModal({
|
|
|
19194
19112
|
onClick: () => {
|
|
19195
19113
|
if (version === "draft") {
|
|
19196
19114
|
amplitudeWorkflowsJourney.draft.delete.actions.click();
|
|
19197
|
-
discardDraft();
|
|
19115
|
+
void discardDraft();
|
|
19198
19116
|
} else {
|
|
19199
19117
|
amplitudeWorkflowsJourney.workflow.delete.actions.click(
|
|
19200
19118
|
"builder",
|
|
19201
19119
|
workflow.created_at
|
|
19202
19120
|
);
|
|
19203
|
-
remove();
|
|
19121
|
+
void remove();
|
|
19204
19122
|
}
|
|
19205
19123
|
},
|
|
19206
19124
|
children: version === "draft" ? `Discard ${version}` : `Delete ${version}`
|
|
@@ -19224,7 +19142,7 @@ import {
|
|
|
19224
19142
|
Text as Text13
|
|
19225
19143
|
} from "@livechat/design-system-react-components";
|
|
19226
19144
|
import { useUserContext as useUserContext5 } from "@livechat/developer-studio-ui-react";
|
|
19227
|
-
import { jsx as
|
|
19145
|
+
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
19228
19146
|
var ModalContent3 = newStyled.div`
|
|
19229
19147
|
display: grid;
|
|
19230
19148
|
align-items: center;
|
|
@@ -19260,8 +19178,8 @@ function WorkflowEditModal({ onClose }) {
|
|
|
19260
19178
|
const amplitudeWorkflowsJourney = workflowsBlockAmplitudeJourneyFactory(
|
|
19261
19179
|
user == null ? void 0 : user.meta.email
|
|
19262
19180
|
);
|
|
19263
|
-
return /* @__PURE__ */
|
|
19264
|
-
/* @__PURE__ */
|
|
19181
|
+
return /* @__PURE__ */ jsx11(Modal3, { heading: true, onClose, children: /* @__PURE__ */ jsxs7(ModalContent3, { children: [
|
|
19182
|
+
/* @__PURE__ */ jsx11(
|
|
19265
19183
|
Icon28,
|
|
19266
19184
|
{
|
|
19267
19185
|
customColor: `var(${DesignToken31.ContentBasicDisabled})`,
|
|
@@ -19269,10 +19187,10 @@ function WorkflowEditModal({ onClose }) {
|
|
|
19269
19187
|
source: Error4
|
|
19270
19188
|
}
|
|
19271
19189
|
),
|
|
19272
|
-
/* @__PURE__ */
|
|
19273
|
-
/* @__PURE__ */
|
|
19190
|
+
/* @__PURE__ */ jsx11(Heading5, { as: "h2", size: "md", children: "You have an existing draft" }),
|
|
19191
|
+
/* @__PURE__ */ jsx11(Text13, { size: "md", children: "You already have an existing draft, by editing the published version you can overwrite the current draft for this workflow. Do you want to continue?" }),
|
|
19274
19192
|
/* @__PURE__ */ jsxs7(ModalFooter2, { children: [
|
|
19275
|
-
/* @__PURE__ */
|
|
19193
|
+
/* @__PURE__ */ jsx11(
|
|
19276
19194
|
Button23,
|
|
19277
19195
|
{
|
|
19278
19196
|
kind: "secondary",
|
|
@@ -19285,14 +19203,14 @@ function WorkflowEditModal({ onClose }) {
|
|
|
19285
19203
|
children: "Edit existing draft"
|
|
19286
19204
|
}
|
|
19287
19205
|
),
|
|
19288
|
-
/* @__PURE__ */
|
|
19206
|
+
/* @__PURE__ */ jsx11(
|
|
19289
19207
|
Button23,
|
|
19290
19208
|
{
|
|
19291
19209
|
kind: "destructive",
|
|
19292
19210
|
loading: isCreating,
|
|
19293
19211
|
onClick: () => {
|
|
19294
19212
|
amplitudeWorkflowsJourney.draft.edit.actions.click("override");
|
|
19295
|
-
createDraft({ overrideConfirmed: true });
|
|
19213
|
+
void createDraft({ overrideConfirmed: true });
|
|
19296
19214
|
},
|
|
19297
19215
|
children: "Overwrite draft"
|
|
19298
19216
|
}
|
|
@@ -19313,7 +19231,7 @@ import {
|
|
|
19313
19231
|
SpacingToken as SpacingToken31,
|
|
19314
19232
|
Text as Text14
|
|
19315
19233
|
} from "@livechat/design-system-react-components";
|
|
19316
|
-
import { jsx as
|
|
19234
|
+
import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
19317
19235
|
var ModalContent4 = newStyled.div`
|
|
19318
19236
|
display: grid;
|
|
19319
19237
|
align-items: center;
|
|
@@ -19345,8 +19263,8 @@ function WorkflowPublishModal({
|
|
|
19345
19263
|
},
|
|
19346
19264
|
publishDraft
|
|
19347
19265
|
} = useWorkflowContext();
|
|
19348
|
-
return /* @__PURE__ */
|
|
19349
|
-
/* @__PURE__ */
|
|
19266
|
+
return /* @__PURE__ */ jsx12(Modal4, { heading: true, onClose, children: /* @__PURE__ */ jsxs8(ModalContent4, { children: [
|
|
19267
|
+
/* @__PURE__ */ jsx12(
|
|
19350
19268
|
Icon29,
|
|
19351
19269
|
{
|
|
19352
19270
|
customColor: `var(${DesignToken32.ContentBasicDisabled})`,
|
|
@@ -19354,16 +19272,16 @@ function WorkflowPublishModal({
|
|
|
19354
19272
|
source: Error5
|
|
19355
19273
|
}
|
|
19356
19274
|
),
|
|
19357
|
-
/* @__PURE__ */
|
|
19358
|
-
/* @__PURE__ */
|
|
19275
|
+
/* @__PURE__ */ jsx12(Heading6, { as: "h2", size: "md", children: "You are publishing a workflow" }),
|
|
19276
|
+
/* @__PURE__ */ jsx12(Text14, { size: "md", children: "Once published, this will be the working version of your workflow and will\xA0be\xA0automatically set to active." }),
|
|
19359
19277
|
/* @__PURE__ */ jsxs8(ModalFooter3, { children: [
|
|
19360
|
-
/* @__PURE__ */
|
|
19361
|
-
/* @__PURE__ */
|
|
19278
|
+
/* @__PURE__ */ jsx12(Button24, { kind: "secondary", onClick: onClose, children: "Cancel" }),
|
|
19279
|
+
/* @__PURE__ */ jsx12(
|
|
19362
19280
|
Button24,
|
|
19363
19281
|
{
|
|
19364
19282
|
kind: "primary",
|
|
19365
19283
|
loading: isPublishing,
|
|
19366
|
-
onClick: () => publishDraft({
|
|
19284
|
+
onClick: () => void publishDraft({
|
|
19367
19285
|
confirmed: true
|
|
19368
19286
|
}),
|
|
19369
19287
|
children: "Publish workflow"
|
|
@@ -19437,7 +19355,8 @@ function ExecuteWorkflow({ workflow, onClose }) {
|
|
|
19437
19355
|
)
|
|
19438
19356
|
}
|
|
19439
19357
|
)
|
|
19440
|
-
}
|
|
19358
|
+
},
|
|
19359
|
+
parameter
|
|
19441
19360
|
)),
|
|
19442
19361
|
/* @__PURE__ */ jsxs2(
|
|
19443
19362
|
FieldGroup,
|
|
@@ -19482,8 +19401,8 @@ import {
|
|
|
19482
19401
|
SpacingToken as SpacingToken34
|
|
19483
19402
|
} from "@livechat/design-system-react-components";
|
|
19484
19403
|
import {
|
|
19485
|
-
IntegrationDisplayNames as
|
|
19486
|
-
IntegrationNames as
|
|
19404
|
+
IntegrationDisplayNames as IntegrationDisplayNames8,
|
|
19405
|
+
IntegrationNames as IntegrationNames16
|
|
19487
19406
|
} from "@livechat/developer-studio-api";
|
|
19488
19407
|
import {
|
|
19489
19408
|
Column as Column12,
|
|
@@ -19574,7 +19493,8 @@ function AddWorkflowTaskOptions({
|
|
|
19574
19493
|
});
|
|
19575
19494
|
},
|
|
19576
19495
|
option
|
|
19577
|
-
}
|
|
19496
|
+
},
|
|
19497
|
+
option.key
|
|
19578
19498
|
))
|
|
19579
19499
|
] });
|
|
19580
19500
|
}
|
|
@@ -19582,6 +19502,7 @@ var Options_default = AddWorkflowTaskOptions;
|
|
|
19582
19502
|
|
|
19583
19503
|
// src/views/Flows/Definitions/Edit/Tasks/Add.tsx
|
|
19584
19504
|
function AddWorkflowTask({ basePath, onClose }) {
|
|
19505
|
+
var _a;
|
|
19585
19506
|
const [search, setSearch] = useState26("");
|
|
19586
19507
|
const location = useLocation5();
|
|
19587
19508
|
const navigate = useNavigate8();
|
|
@@ -19609,9 +19530,16 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19609
19530
|
// })),
|
|
19610
19531
|
// },
|
|
19611
19532
|
{
|
|
19612
|
-
name:
|
|
19613
|
-
displayName:
|
|
19614
|
-
icon: /* @__PURE__ */ jsx2(
|
|
19533
|
+
name: "livechat",
|
|
19534
|
+
displayName: IntegrationDisplayNames8.LiveChat,
|
|
19535
|
+
icon: /* @__PURE__ */ jsx2(
|
|
19536
|
+
ProductIcon_default,
|
|
19537
|
+
{
|
|
19538
|
+
height: 5,
|
|
19539
|
+
product: IntegrationNames16.LiveChat,
|
|
19540
|
+
width: 5
|
|
19541
|
+
}
|
|
19542
|
+
),
|
|
19615
19543
|
values: Object.values(livechatTaskConfigs()).map((x) => ({
|
|
19616
19544
|
key: x.key,
|
|
19617
19545
|
name: x.customization.displayName,
|
|
@@ -19620,9 +19548,17 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19620
19548
|
}))
|
|
19621
19549
|
},
|
|
19622
19550
|
{
|
|
19623
|
-
name:
|
|
19624
|
-
displayName:
|
|
19625
|
-
icon: /* @__PURE__ */ jsx2(
|
|
19551
|
+
name: "helpdesk",
|
|
19552
|
+
displayName: IntegrationDisplayNames8.HelpDesk,
|
|
19553
|
+
icon: /* @__PURE__ */ jsx2(
|
|
19554
|
+
ProductIcon_default,
|
|
19555
|
+
{
|
|
19556
|
+
center: true,
|
|
19557
|
+
height: 5,
|
|
19558
|
+
product: IntegrationNames16.HelpDesk,
|
|
19559
|
+
width: 5
|
|
19560
|
+
}
|
|
19561
|
+
),
|
|
19626
19562
|
values: Object.values(helpdeskTaskConfigs()).map((x) => ({
|
|
19627
19563
|
key: x.key,
|
|
19628
19564
|
name: x.customization.displayName,
|
|
@@ -19631,16 +19567,9 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19631
19567
|
}))
|
|
19632
19568
|
},
|
|
19633
19569
|
{
|
|
19634
|
-
name:
|
|
19635
|
-
displayName:
|
|
19636
|
-
icon: /* @__PURE__ */ jsx2(
|
|
19637
|
-
ProductIcon_default,
|
|
19638
|
-
{
|
|
19639
|
-
height: 5,
|
|
19640
|
-
product: OTHER_PRODUCT_TYPE.OPENAI,
|
|
19641
|
-
width: 5
|
|
19642
|
-
}
|
|
19643
|
-
),
|
|
19570
|
+
name: IntegrationNames16.OpenAI,
|
|
19571
|
+
displayName: IntegrationDisplayNames8.OpenAI,
|
|
19572
|
+
icon: /* @__PURE__ */ jsx2(ProductIcon_default, { height: 5, product: IntegrationNames16.OpenAI, width: 5 }),
|
|
19644
19573
|
values: Object.values(openAiTaskConfigs()).map((x) => ({
|
|
19645
19574
|
key: x.key,
|
|
19646
19575
|
name: x.customization.displayName,
|
|
@@ -19649,13 +19578,13 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19649
19578
|
}))
|
|
19650
19579
|
},
|
|
19651
19580
|
{
|
|
19652
|
-
name:
|
|
19653
|
-
displayName:
|
|
19581
|
+
name: IntegrationNames16.Mailchimp,
|
|
19582
|
+
displayName: IntegrationDisplayNames8.Mailchimp,
|
|
19654
19583
|
icon: /* @__PURE__ */ jsx2(
|
|
19655
19584
|
ProductIcon_default,
|
|
19656
19585
|
{
|
|
19657
19586
|
height: 5,
|
|
19658
|
-
product:
|
|
19587
|
+
product: IntegrationNames16.Mailchimp,
|
|
19659
19588
|
width: 5
|
|
19660
19589
|
}
|
|
19661
19590
|
),
|
|
@@ -19667,13 +19596,13 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19667
19596
|
}))
|
|
19668
19597
|
},
|
|
19669
19598
|
{
|
|
19670
|
-
name:
|
|
19671
|
-
displayName:
|
|
19599
|
+
name: IntegrationNames16.HubSpot,
|
|
19600
|
+
displayName: IntegrationDisplayNames8.HubSpot,
|
|
19672
19601
|
icon: /* @__PURE__ */ jsx2(
|
|
19673
19602
|
ProductIcon_default,
|
|
19674
19603
|
{
|
|
19675
19604
|
height: 5,
|
|
19676
|
-
product:
|
|
19605
|
+
product: IntegrationNames16.HubSpot,
|
|
19677
19606
|
width: 5
|
|
19678
19607
|
}
|
|
19679
19608
|
),
|
|
@@ -19685,13 +19614,13 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19685
19614
|
}))
|
|
19686
19615
|
},
|
|
19687
19616
|
{
|
|
19688
|
-
name:
|
|
19689
|
-
displayName:
|
|
19617
|
+
name: IntegrationNames16.BigCommerce,
|
|
19618
|
+
displayName: IntegrationDisplayNames8.BigCommerce,
|
|
19690
19619
|
icon: /* @__PURE__ */ jsx2(
|
|
19691
19620
|
ProductIcon_default,
|
|
19692
19621
|
{
|
|
19693
19622
|
height: 5,
|
|
19694
|
-
product:
|
|
19623
|
+
product: IntegrationNames16.BigCommerce,
|
|
19695
19624
|
width: 5
|
|
19696
19625
|
}
|
|
19697
19626
|
),
|
|
@@ -19703,13 +19632,13 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19703
19632
|
}))
|
|
19704
19633
|
},
|
|
19705
19634
|
{
|
|
19706
|
-
name:
|
|
19707
|
-
displayName:
|
|
19635
|
+
name: IntegrationNames16.Shopify,
|
|
19636
|
+
displayName: IntegrationDisplayNames8.Shopify,
|
|
19708
19637
|
icon: /* @__PURE__ */ jsx2(
|
|
19709
19638
|
ProductIcon_default,
|
|
19710
19639
|
{
|
|
19711
19640
|
height: 5,
|
|
19712
|
-
product:
|
|
19641
|
+
product: IntegrationNames16.Shopify,
|
|
19713
19642
|
width: 5
|
|
19714
19643
|
}
|
|
19715
19644
|
),
|
|
@@ -19732,10 +19661,11 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19732
19661
|
user == null ? void 0 : user.meta.email
|
|
19733
19662
|
);
|
|
19734
19663
|
useEffect15(() => {
|
|
19735
|
-
var
|
|
19664
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
19736
19665
|
if (!params.task) {
|
|
19737
|
-
const
|
|
19738
|
-
|
|
19666
|
+
const service = (_a2 = params.service) != null ? _a2 : "livechat";
|
|
19667
|
+
const firstTask = (_d = (_c = (_b = config2.find((el) => el.name === service)) == null ? void 0 : _b.values.sort((a, b) => a.name.localeCompare(b.name))) == null ? void 0 : _c[0]) == null ? void 0 : _d.key;
|
|
19668
|
+
navigate(`${basePath}/${service}/${firstTask}`, {
|
|
19739
19669
|
state: location.state
|
|
19740
19670
|
});
|
|
19741
19671
|
}
|
|
@@ -19743,13 +19673,13 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19743
19673
|
const tasks = params.service ? templates.tasks[params.service] : void 0;
|
|
19744
19674
|
const task2 = params.task && tasks ? tasks[params.task] : void 0;
|
|
19745
19675
|
const suggestions = workflowBuilderUtils.stringifyToObjectKeyArray(
|
|
19746
|
-
(
|
|
19676
|
+
(_f = (_e = location.state) == null ? void 0 : _e.frame) != null ? _f : {},
|
|
19747
19677
|
{}
|
|
19748
19678
|
);
|
|
19749
19679
|
const matches = Object.fromEntries(
|
|
19750
|
-
(
|
|
19680
|
+
(_h = (_g = workflowBuilderUtils.getMatchesInText(workflowBuilderUtils.stringify(task2), {
|
|
19751
19681
|
prefix: "#"
|
|
19752
|
-
})) == null ? void 0 :
|
|
19682
|
+
})) == null ? void 0 : _g.map((match2) => {
|
|
19753
19683
|
const matchesWithAliases = match2.split("__");
|
|
19754
19684
|
const path = suggestions.find(
|
|
19755
19685
|
(x) => matchesWithAliases.some(
|
|
@@ -19760,7 +19690,7 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19760
19690
|
return [match2, `\${${path}}`];
|
|
19761
19691
|
}
|
|
19762
19692
|
return [match2, null];
|
|
19763
|
-
})) != null ?
|
|
19693
|
+
})) != null ? _h : []
|
|
19764
19694
|
);
|
|
19765
19695
|
const newTask = task2 ? workflowBuilderUtils.resolveObjectByContext(task2, matches, {
|
|
19766
19696
|
prefix: "#"
|
|
@@ -19770,7 +19700,7 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19770
19700
|
});
|
|
19771
19701
|
}, [
|
|
19772
19702
|
params.task,
|
|
19773
|
-
location.state.frame,
|
|
19703
|
+
(_a = location.state) == null ? void 0 : _a.frame,
|
|
19774
19704
|
params.service,
|
|
19775
19705
|
navigate,
|
|
19776
19706
|
basePath,
|
|
@@ -19778,13 +19708,14 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19778
19708
|
workflow.trigger
|
|
19779
19709
|
]);
|
|
19780
19710
|
const handleAddTask = (task2) => {
|
|
19711
|
+
var _a2;
|
|
19781
19712
|
if (task2) {
|
|
19782
19713
|
amplitudeWorkflowsJourney.draft.edit.actions.addAction(
|
|
19783
19714
|
task2.type,
|
|
19784
19715
|
params.service
|
|
19785
19716
|
);
|
|
19786
19717
|
addTask(task2, {
|
|
19787
|
-
index: location.state.index
|
|
19718
|
+
index: (_a2 = location.state) == null ? void 0 : _a2.index
|
|
19788
19719
|
});
|
|
19789
19720
|
}
|
|
19790
19721
|
onClose();
|
|
@@ -19845,7 +19776,7 @@ function AddWorkflowTask({ basePath, onClose }) {
|
|
|
19845
19776
|
}
|
|
19846
19777
|
),
|
|
19847
19778
|
config2.map(({ name, displayName, icon: icon2, values }) => {
|
|
19848
|
-
const revertIconColor = getWorkflowsEnv("isHeadless") && (name ===
|
|
19779
|
+
const revertIconColor = getWorkflowsEnv("isHeadless") && (name === IntegrationNames16.OpenAI || name === IntegrationNames16.BigCommerce);
|
|
19849
19780
|
if (search) {
|
|
19850
19781
|
if (values.some(
|
|
19851
19782
|
(el) => el.name.toLowerCase().includes(search.toLowerCase())
|
|
@@ -19966,8 +19897,8 @@ import {
|
|
|
19966
19897
|
SpacingToken as SpacingToken36
|
|
19967
19898
|
} from "@livechat/design-system-react-components";
|
|
19968
19899
|
import {
|
|
19969
|
-
IntegrationDisplayNames as
|
|
19970
|
-
IntegrationNames as
|
|
19900
|
+
IntegrationDisplayNames as IntegrationDisplayNames9,
|
|
19901
|
+
IntegrationNames as IntegrationNames17
|
|
19971
19902
|
} from "@livechat/developer-studio-api";
|
|
19972
19903
|
import {
|
|
19973
19904
|
Column as Column14,
|
|
@@ -20058,7 +19989,8 @@ function AddWorkflowTriggerOptions({
|
|
|
20058
19989
|
});
|
|
20059
19990
|
},
|
|
20060
19991
|
option
|
|
20061
|
-
}
|
|
19992
|
+
},
|
|
19993
|
+
option.key
|
|
20062
19994
|
))
|
|
20063
19995
|
] });
|
|
20064
19996
|
}
|
|
@@ -20089,9 +20021,16 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
20089
20021
|
}))
|
|
20090
20022
|
},
|
|
20091
20023
|
{
|
|
20092
|
-
name:
|
|
20093
|
-
displayName:
|
|
20094
|
-
icon: /* @__PURE__ */ jsx2(
|
|
20024
|
+
name: "livechat",
|
|
20025
|
+
displayName: IntegrationDisplayNames9.LiveChat,
|
|
20026
|
+
icon: /* @__PURE__ */ jsx2(
|
|
20027
|
+
ProductIcon_default,
|
|
20028
|
+
{
|
|
20029
|
+
height: 5,
|
|
20030
|
+
product: IntegrationNames17.LiveChat,
|
|
20031
|
+
width: 5
|
|
20032
|
+
}
|
|
20033
|
+
),
|
|
20095
20034
|
values: Object.values(livechatTriggerConfigs()).map((x) => ({
|
|
20096
20035
|
key: x.key,
|
|
20097
20036
|
name: x.customization.displayName,
|
|
@@ -20099,9 +20038,9 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
20099
20038
|
}))
|
|
20100
20039
|
},
|
|
20101
20040
|
// {
|
|
20102
|
-
// name:
|
|
20103
|
-
// displayName:
|
|
20104
|
-
// icon: <ProductIcon height={5} product={
|
|
20041
|
+
// name: "helpdesk",
|
|
20042
|
+
// displayName: IntegrationDisplayNames.HelpDesk,
|
|
20043
|
+
// icon: <ProductIcon height={5} product={IntegrationNames.HelpDesk} width={5} />,
|
|
20105
20044
|
// values: Object.values(helpDeskTriggerConfigs()).map((x) => ({
|
|
20106
20045
|
// key: x.key,
|
|
20107
20046
|
// name: x.customization.displayName,
|
|
@@ -20109,13 +20048,13 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
20109
20048
|
// })),
|
|
20110
20049
|
// },
|
|
20111
20050
|
{
|
|
20112
|
-
name:
|
|
20113
|
-
displayName:
|
|
20051
|
+
name: IntegrationNames17.Mailchimp,
|
|
20052
|
+
displayName: IntegrationDisplayNames9.Mailchimp,
|
|
20114
20053
|
icon: /* @__PURE__ */ jsx2(
|
|
20115
20054
|
ProductIcon_default,
|
|
20116
20055
|
{
|
|
20117
20056
|
height: 5,
|
|
20118
|
-
product:
|
|
20057
|
+
product: IntegrationNames17.Mailchimp,
|
|
20119
20058
|
width: 5
|
|
20120
20059
|
}
|
|
20121
20060
|
),
|
|
@@ -20126,13 +20065,13 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
20126
20065
|
}))
|
|
20127
20066
|
},
|
|
20128
20067
|
{
|
|
20129
|
-
name:
|
|
20130
|
-
displayName:
|
|
20068
|
+
name: IntegrationNames17.Shopify,
|
|
20069
|
+
displayName: IntegrationDisplayNames9.Shopify,
|
|
20131
20070
|
icon: /* @__PURE__ */ jsx2(
|
|
20132
20071
|
ProductIcon_default,
|
|
20133
20072
|
{
|
|
20134
20073
|
height: 5,
|
|
20135
|
-
product:
|
|
20074
|
+
product: IntegrationNames17.Shopify,
|
|
20136
20075
|
width: 5
|
|
20137
20076
|
}
|
|
20138
20077
|
),
|
|
@@ -20143,13 +20082,13 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
20143
20082
|
}))
|
|
20144
20083
|
},
|
|
20145
20084
|
{
|
|
20146
|
-
name:
|
|
20147
|
-
displayName:
|
|
20085
|
+
name: IntegrationNames17.HubSpot,
|
|
20086
|
+
displayName: IntegrationDisplayNames9.HubSpot,
|
|
20148
20087
|
icon: /* @__PURE__ */ jsx2(
|
|
20149
20088
|
ProductIcon_default,
|
|
20150
20089
|
{
|
|
20151
20090
|
height: 5,
|
|
20152
|
-
product:
|
|
20091
|
+
product: IntegrationNames17.HubSpot,
|
|
20153
20092
|
width: 5
|
|
20154
20093
|
}
|
|
20155
20094
|
),
|
|
@@ -20160,13 +20099,13 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
20160
20099
|
}))
|
|
20161
20100
|
},
|
|
20162
20101
|
{
|
|
20163
|
-
name:
|
|
20164
|
-
displayName:
|
|
20102
|
+
name: IntegrationNames17.BigCommerce,
|
|
20103
|
+
displayName: IntegrationDisplayNames9.BigCommerce,
|
|
20165
20104
|
icon: /* @__PURE__ */ jsx2(
|
|
20166
20105
|
ProductIcon_default,
|
|
20167
20106
|
{
|
|
20168
20107
|
height: 5,
|
|
20169
|
-
product:
|
|
20108
|
+
product: IntegrationNames17.BigCommerce,
|
|
20170
20109
|
width: 5
|
|
20171
20110
|
}
|
|
20172
20111
|
),
|
|
@@ -20265,7 +20204,7 @@ function AddWorkflowTrigger({ basePath, onClose }) {
|
|
|
20265
20204
|
}
|
|
20266
20205
|
),
|
|
20267
20206
|
config2.map(({ name, displayName, icon: icon2, values }) => {
|
|
20268
|
-
const revertIconColor = getWorkflowsEnv("isHeadless") && (name ===
|
|
20207
|
+
const revertIconColor = getWorkflowsEnv("isHeadless") && (name === IntegrationNames17.OpenAI || name === IntegrationNames17.BigCommerce);
|
|
20269
20208
|
if (search) {
|
|
20270
20209
|
if (values.some(
|
|
20271
20210
|
(el) => el.name.toLowerCase().includes(search.toLowerCase())
|
|
@@ -20607,7 +20546,7 @@ function WorkflowBuilderNavbar() {
|
|
|
20607
20546
|
Switch,
|
|
20608
20547
|
{
|
|
20609
20548
|
on: workflow.active,
|
|
20610
|
-
onChange: activate,
|
|
20549
|
+
onChange: () => void activate(),
|
|
20611
20550
|
size: "medium",
|
|
20612
20551
|
state: isActivating ? "loading" : workflow.draft ? "locked" : "regular"
|
|
20613
20552
|
}
|
|
@@ -20644,7 +20583,7 @@ function WorkflowBuilderNavbar() {
|
|
|
20644
20583
|
amplitudeWorkflowsJourney.draft.publish.actions.click(
|
|
20645
20584
|
workflow.definition.tasks.length
|
|
20646
20585
|
);
|
|
20647
|
-
publishDraft();
|
|
20586
|
+
void publishDraft();
|
|
20648
20587
|
},
|
|
20649
20588
|
children: "Publish"
|
|
20650
20589
|
}
|
|
@@ -20659,7 +20598,7 @@ function WorkflowBuilderNavbar() {
|
|
|
20659
20598
|
workflow.id
|
|
20660
20599
|
);
|
|
20661
20600
|
}
|
|
20662
|
-
createDraft();
|
|
20601
|
+
void createDraft();
|
|
20663
20602
|
},
|
|
20664
20603
|
children: "Edit"
|
|
20665
20604
|
}
|
|
@@ -20696,7 +20635,7 @@ function EditWorkflow() {
|
|
|
20696
20635
|
const workflowQuery = useFetchWorkflow(id === "new" ? void 0 : id);
|
|
20697
20636
|
useFetchWorkflow((_a = workflowQuery.data) == null ? void 0 : _a.related_workflow_id);
|
|
20698
20637
|
if (!id) {
|
|
20699
|
-
return
|
|
20638
|
+
return;
|
|
20700
20639
|
}
|
|
20701
20640
|
if (id !== "new" && workflowQuery.isLoading) {
|
|
20702
20641
|
return /* @__PURE__ */ jsx2(Loader2, { stretch: true });
|
|
@@ -20760,18 +20699,28 @@ function EditWorkflow() {
|
|
|
20760
20699
|
/* @__PURE__ */ jsx2(
|
|
20761
20700
|
Route2,
|
|
20762
20701
|
{
|
|
20763
|
-
element: /* @__PURE__ */ jsx2(
|
|
20764
|
-
|
|
20765
|
-
|
|
20702
|
+
element: /* @__PURE__ */ jsx2(
|
|
20703
|
+
WorkflowPublishModal,
|
|
20704
|
+
{
|
|
20705
|
+
onClose: () => {
|
|
20706
|
+
navigate(basePath);
|
|
20707
|
+
}
|
|
20708
|
+
}
|
|
20709
|
+
),
|
|
20766
20710
|
path: "publish"
|
|
20767
20711
|
}
|
|
20768
20712
|
),
|
|
20769
20713
|
/* @__PURE__ */ jsx2(
|
|
20770
20714
|
Route2,
|
|
20771
20715
|
{
|
|
20772
|
-
element: /* @__PURE__ */ jsx2(
|
|
20773
|
-
|
|
20774
|
-
|
|
20716
|
+
element: /* @__PURE__ */ jsx2(
|
|
20717
|
+
WorkflowEditModal,
|
|
20718
|
+
{
|
|
20719
|
+
onClose: () => {
|
|
20720
|
+
navigate(basePath);
|
|
20721
|
+
}
|
|
20722
|
+
}
|
|
20723
|
+
),
|
|
20775
20724
|
path: "edit"
|
|
20776
20725
|
}
|
|
20777
20726
|
),
|
|
@@ -20828,8 +20777,8 @@ import {
|
|
|
20828
20777
|
ShopifyColored as ShopifyIcon2
|
|
20829
20778
|
} from "@livechat/design-system-icons";
|
|
20830
20779
|
import {
|
|
20831
|
-
IntegrationDisplayNames as
|
|
20832
|
-
IntegrationNames as
|
|
20780
|
+
IntegrationDisplayNames as IntegrationDisplayNames10,
|
|
20781
|
+
IntegrationNames as IntegrationNames18,
|
|
20833
20782
|
TextLivechatEventNames as TextLivechatEventNames2
|
|
20834
20783
|
} from "@livechat/developer-studio-api";
|
|
20835
20784
|
var getFlowTemplates = () => [
|
|
@@ -20839,19 +20788,19 @@ var getFlowTemplates = () => [
|
|
|
20839
20788
|
icons: [LiveChatIcon, OpenAiIcon2, HelpDeskIcon],
|
|
20840
20789
|
list: [
|
|
20841
20790
|
{
|
|
20842
|
-
product:
|
|
20791
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
20843
20792
|
description: "Detects when a chat ends"
|
|
20844
20793
|
},
|
|
20845
20794
|
{
|
|
20846
|
-
product:
|
|
20795
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
20847
20796
|
description: "Pulls the full chat transcript"
|
|
20848
20797
|
},
|
|
20849
20798
|
{
|
|
20850
|
-
product:
|
|
20799
|
+
product: IntegrationDisplayNames10.OpenAI,
|
|
20851
20800
|
description: "Creates a summary of the chat"
|
|
20852
20801
|
},
|
|
20853
20802
|
{
|
|
20854
|
-
product:
|
|
20803
|
+
product: IntegrationDisplayNames10.HelpDesk,
|
|
20855
20804
|
description: "Creates a new ticket with the chat summary. Use the pre-chat survey to pull the customer\u2019s email or provide a custom input"
|
|
20856
20805
|
}
|
|
20857
20806
|
],
|
|
@@ -20862,7 +20811,7 @@ var getFlowTemplates = () => [
|
|
|
20862
20811
|
trigger: {
|
|
20863
20812
|
type: "webhook",
|
|
20864
20813
|
webhook: {
|
|
20865
|
-
source:
|
|
20814
|
+
source: IntegrationNames18.LiveChat,
|
|
20866
20815
|
event: {
|
|
20867
20816
|
name: TextLivechatEventNames2.ChatEnded
|
|
20868
20817
|
},
|
|
@@ -20955,9 +20904,9 @@ var getFlowTemplates = () => [
|
|
|
20955
20904
|
}
|
|
20956
20905
|
},
|
|
20957
20906
|
products: [
|
|
20958
|
-
|
|
20959
|
-
|
|
20960
|
-
|
|
20907
|
+
IntegrationDisplayNames10.LiveChat,
|
|
20908
|
+
IntegrationDisplayNames10.OpenAI,
|
|
20909
|
+
IntegrationDisplayNames10.HelpDesk
|
|
20961
20910
|
],
|
|
20962
20911
|
category: "Chat management" /* ChatManagement */
|
|
20963
20912
|
},
|
|
@@ -20967,23 +20916,23 @@ var getFlowTemplates = () => [
|
|
|
20967
20916
|
icons: [LiveChatIcon, OpenAiIcon2, HelpDeskIcon, MailchimpIcon],
|
|
20968
20917
|
list: [
|
|
20969
20918
|
{
|
|
20970
|
-
product:
|
|
20919
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
20971
20920
|
description: "Detects when a competitor is mentioned in the chat based on keywords"
|
|
20972
20921
|
},
|
|
20973
20922
|
{
|
|
20974
|
-
product:
|
|
20923
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
20975
20924
|
description: "Pulls the chat transcript data for analysis"
|
|
20976
20925
|
},
|
|
20977
20926
|
{
|
|
20978
|
-
product:
|
|
20927
|
+
product: IntegrationDisplayNames10.OpenAI,
|
|
20979
20928
|
description: "Analyzes the competitor mention in the context of sentiment"
|
|
20980
20929
|
},
|
|
20981
20930
|
{
|
|
20982
|
-
product:
|
|
20931
|
+
product: IntegrationDisplayNames10.HelpDesk,
|
|
20983
20932
|
description: "Creates a notification ticket with the chat details. Use the LiveChat pre-chat survey to pull the customer\u2019s email or provide a custom input"
|
|
20984
20933
|
},
|
|
20985
20934
|
{
|
|
20986
|
-
product:
|
|
20935
|
+
product: IntegrationDisplayNames10.Mailchimp,
|
|
20987
20936
|
description: "Adds a note to the customer in your Mailchimp"
|
|
20988
20937
|
}
|
|
20989
20938
|
],
|
|
@@ -21097,7 +21046,7 @@ var getFlowTemplates = () => [
|
|
|
21097
21046
|
trigger: {
|
|
21098
21047
|
type: "webhook",
|
|
21099
21048
|
webhook: {
|
|
21100
|
-
source:
|
|
21049
|
+
source: IntegrationNames18.LiveChat,
|
|
21101
21050
|
event: {
|
|
21102
21051
|
name: TextLivechatEventNames2.ChatMessage,
|
|
21103
21052
|
filter: "competitor"
|
|
@@ -21111,10 +21060,10 @@ var getFlowTemplates = () => [
|
|
|
21111
21060
|
}
|
|
21112
21061
|
},
|
|
21113
21062
|
products: [
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
|
|
21063
|
+
IntegrationDisplayNames10.LiveChat,
|
|
21064
|
+
IntegrationDisplayNames10.OpenAI,
|
|
21065
|
+
IntegrationDisplayNames10.HelpDesk,
|
|
21066
|
+
IntegrationDisplayNames10.Mailchimp
|
|
21118
21067
|
],
|
|
21119
21068
|
category: "Notifications & alerts" /* NotificationAndAlerts */
|
|
21120
21069
|
},
|
|
@@ -21124,23 +21073,23 @@ var getFlowTemplates = () => [
|
|
|
21124
21073
|
icons: [LiveChatIcon, OpenAiIcon2, HelpDeskIcon, MailchimpIcon],
|
|
21125
21074
|
list: [
|
|
21126
21075
|
{
|
|
21127
|
-
product:
|
|
21076
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21128
21077
|
description: "Detects when a chat ends"
|
|
21129
21078
|
},
|
|
21130
21079
|
{
|
|
21131
|
-
product:
|
|
21080
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21132
21081
|
description: "Pulls the chat transcript data"
|
|
21133
21082
|
},
|
|
21134
21083
|
{
|
|
21135
|
-
product:
|
|
21084
|
+
product: IntegrationDisplayNames10.OpenAI,
|
|
21136
21085
|
description: "Summarizes the chat transcript"
|
|
21137
21086
|
},
|
|
21138
21087
|
{
|
|
21139
|
-
product:
|
|
21088
|
+
product: IntegrationDisplayNames10.HelpDesk,
|
|
21140
21089
|
description: "Creates a ticket with the summarized chat and the customer as the ticket requester. Use the LiveChat pre-chat survey to pull the customer\u2019s email or provide a custom input"
|
|
21141
21090
|
},
|
|
21142
21091
|
{
|
|
21143
|
-
product:
|
|
21092
|
+
product: IntegrationDisplayNames10.Mailchimp,
|
|
21144
21093
|
description: "Adds a custom note to the customer in Mailchimp"
|
|
21145
21094
|
}
|
|
21146
21095
|
],
|
|
@@ -21253,7 +21202,7 @@ var getFlowTemplates = () => [
|
|
|
21253
21202
|
trigger: {
|
|
21254
21203
|
type: "webhook",
|
|
21255
21204
|
webhook: {
|
|
21256
|
-
source:
|
|
21205
|
+
source: IntegrationNames18.LiveChat,
|
|
21257
21206
|
event: {
|
|
21258
21207
|
name: TextLivechatEventNames2.ChatEnded
|
|
21259
21208
|
},
|
|
@@ -21266,10 +21215,10 @@ var getFlowTemplates = () => [
|
|
|
21266
21215
|
}
|
|
21267
21216
|
},
|
|
21268
21217
|
products: [
|
|
21269
|
-
|
|
21270
|
-
|
|
21271
|
-
|
|
21272
|
-
|
|
21218
|
+
IntegrationDisplayNames10.LiveChat,
|
|
21219
|
+
IntegrationDisplayNames10.OpenAI,
|
|
21220
|
+
IntegrationDisplayNames10.HelpDesk,
|
|
21221
|
+
IntegrationDisplayNames10.Mailchimp
|
|
21273
21222
|
],
|
|
21274
21223
|
category: "Chat management" /* ChatManagement */
|
|
21275
21224
|
},
|
|
@@ -21279,23 +21228,23 @@ var getFlowTemplates = () => [
|
|
|
21279
21228
|
icons: [LiveChatIcon, ShopifyIcon2, OpenAiIcon2, MailchimpIcon],
|
|
21280
21229
|
list: [
|
|
21281
21230
|
{
|
|
21282
|
-
product:
|
|
21231
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21283
21232
|
description: "Detects when a chat ends"
|
|
21284
21233
|
},
|
|
21285
21234
|
{
|
|
21286
|
-
product:
|
|
21235
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21287
21236
|
description: "Pulls the chat transcript"
|
|
21288
21237
|
},
|
|
21289
21238
|
{
|
|
21290
|
-
product:
|
|
21239
|
+
product: IntegrationDisplayNames10.Shopify,
|
|
21291
21240
|
description: "Pulls customer data from Shopify"
|
|
21292
21241
|
},
|
|
21293
21242
|
{
|
|
21294
|
-
product:
|
|
21243
|
+
product: IntegrationDisplayNames10.OpenAI,
|
|
21295
21244
|
description: "Analyzes the chat sentiment"
|
|
21296
21245
|
},
|
|
21297
21246
|
{
|
|
21298
|
-
product:
|
|
21247
|
+
product: IntegrationDisplayNames10.Mailchimp,
|
|
21299
21248
|
description: "Sends a custom campaign through Mailchimp"
|
|
21300
21249
|
}
|
|
21301
21250
|
],
|
|
@@ -21411,7 +21360,7 @@ var getFlowTemplates = () => [
|
|
|
21411
21360
|
trigger: {
|
|
21412
21361
|
type: "webhook",
|
|
21413
21362
|
webhook: {
|
|
21414
|
-
source:
|
|
21363
|
+
source: IntegrationNames18.LiveChat,
|
|
21415
21364
|
event: {
|
|
21416
21365
|
name: TextLivechatEventNames2.ChatEnded
|
|
21417
21366
|
},
|
|
@@ -21424,10 +21373,10 @@ var getFlowTemplates = () => [
|
|
|
21424
21373
|
}
|
|
21425
21374
|
},
|
|
21426
21375
|
products: [
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
|
|
21376
|
+
IntegrationDisplayNames10.LiveChat,
|
|
21377
|
+
IntegrationDisplayNames10.Shopify,
|
|
21378
|
+
IntegrationDisplayNames10.OpenAI,
|
|
21379
|
+
IntegrationDisplayNames10.Mailchimp
|
|
21431
21380
|
],
|
|
21432
21381
|
category: "Sales management" /* SalesManagement */
|
|
21433
21382
|
},
|
|
@@ -21437,23 +21386,23 @@ var getFlowTemplates = () => [
|
|
|
21437
21386
|
icons: [LiveChatIcon, OpenAiIcon2, MailchimpIcon],
|
|
21438
21387
|
list: [
|
|
21439
21388
|
{
|
|
21440
|
-
product:
|
|
21389
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21441
21390
|
description: "Detects when a chat ends"
|
|
21442
21391
|
},
|
|
21443
21392
|
{
|
|
21444
|
-
product:
|
|
21393
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21445
21394
|
description: "Pulls the chat transcript data"
|
|
21446
21395
|
},
|
|
21447
21396
|
{
|
|
21448
|
-
product:
|
|
21397
|
+
product: IntegrationDisplayNames10.OpenAI,
|
|
21449
21398
|
description: "Analyzes the chat sentiment"
|
|
21450
21399
|
},
|
|
21451
21400
|
{
|
|
21452
|
-
product:
|
|
21401
|
+
product: IntegrationDisplayNames10.Mailchimp,
|
|
21453
21402
|
description: "Adds new subscriber to Mailchimp or updates existing one"
|
|
21454
21403
|
},
|
|
21455
21404
|
{
|
|
21456
|
-
product:
|
|
21405
|
+
product: IntegrationDisplayNames10.Mailchimp,
|
|
21457
21406
|
description: "Adds a custom tag to a subscriber"
|
|
21458
21407
|
}
|
|
21459
21408
|
],
|
|
@@ -21563,7 +21512,7 @@ var getFlowTemplates = () => [
|
|
|
21563
21512
|
trigger: {
|
|
21564
21513
|
type: "webhook",
|
|
21565
21514
|
webhook: {
|
|
21566
|
-
source:
|
|
21515
|
+
source: IntegrationNames18.LiveChat,
|
|
21567
21516
|
event: {
|
|
21568
21517
|
name: TextLivechatEventNames2.ChatEnded
|
|
21569
21518
|
},
|
|
@@ -21576,9 +21525,9 @@ var getFlowTemplates = () => [
|
|
|
21576
21525
|
}
|
|
21577
21526
|
},
|
|
21578
21527
|
products: [
|
|
21579
|
-
|
|
21580
|
-
|
|
21581
|
-
|
|
21528
|
+
IntegrationDisplayNames10.LiveChat,
|
|
21529
|
+
IntegrationDisplayNames10.OpenAI,
|
|
21530
|
+
IntegrationDisplayNames10.Mailchimp
|
|
21582
21531
|
],
|
|
21583
21532
|
category: "Lead collection" /* LeadCollection */
|
|
21584
21533
|
},
|
|
@@ -21588,11 +21537,11 @@ var getFlowTemplates = () => [
|
|
|
21588
21537
|
icons: [LiveChatIcon],
|
|
21589
21538
|
list: [
|
|
21590
21539
|
{
|
|
21591
|
-
product:
|
|
21540
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21592
21541
|
description: "Detects when a chat starts"
|
|
21593
21542
|
},
|
|
21594
21543
|
{
|
|
21595
|
-
product:
|
|
21544
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21596
21545
|
description: "Sends a custom message in the chat"
|
|
21597
21546
|
}
|
|
21598
21547
|
],
|
|
@@ -21638,7 +21587,7 @@ var getFlowTemplates = () => [
|
|
|
21638
21587
|
trigger: {
|
|
21639
21588
|
type: "webhook",
|
|
21640
21589
|
webhook: {
|
|
21641
|
-
source:
|
|
21590
|
+
source: IntegrationNames18.LiveChat,
|
|
21642
21591
|
event: {
|
|
21643
21592
|
name: TextLivechatEventNames2.ChatStarted
|
|
21644
21593
|
},
|
|
@@ -21650,7 +21599,7 @@ var getFlowTemplates = () => [
|
|
|
21650
21599
|
}
|
|
21651
21600
|
}
|
|
21652
21601
|
},
|
|
21653
|
-
products: [
|
|
21602
|
+
products: [IntegrationDisplayNames10.LiveChat],
|
|
21654
21603
|
category: "Customer experience" /* CustomerExperience */
|
|
21655
21604
|
},
|
|
21656
21605
|
{
|
|
@@ -21659,19 +21608,19 @@ var getFlowTemplates = () => [
|
|
|
21659
21608
|
icons: [LiveChatIcon, OpenAiIcon2, HelpDeskIcon],
|
|
21660
21609
|
list: [
|
|
21661
21610
|
{
|
|
21662
|
-
product:
|
|
21611
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21663
21612
|
description: "Detects when a chat receives a bad rating"
|
|
21664
21613
|
},
|
|
21665
21614
|
{
|
|
21666
|
-
product:
|
|
21615
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21667
21616
|
description: "Pulls the chat transcript"
|
|
21668
21617
|
},
|
|
21669
21618
|
{
|
|
21670
|
-
product:
|
|
21619
|
+
product: IntegrationDisplayNames10.OpenAI,
|
|
21671
21620
|
description: "Summarizes the chat"
|
|
21672
21621
|
},
|
|
21673
21622
|
{
|
|
21674
|
-
product:
|
|
21623
|
+
product: IntegrationDisplayNames10.HelpDesk,
|
|
21675
21624
|
description: "Creates a ticket with the chat summary. Use the LiveChat pre-chat survey to pull the customer\u2019s email or provide a custom input"
|
|
21676
21625
|
}
|
|
21677
21626
|
],
|
|
@@ -21763,7 +21712,7 @@ var getFlowTemplates = () => [
|
|
|
21763
21712
|
trigger: {
|
|
21764
21713
|
type: "webhook",
|
|
21765
21714
|
webhook: {
|
|
21766
|
-
source:
|
|
21715
|
+
source: IntegrationNames18.LiveChat,
|
|
21767
21716
|
event: {
|
|
21768
21717
|
name: TextLivechatEventNames2.ChatRated,
|
|
21769
21718
|
rating: "bad"
|
|
@@ -21777,9 +21726,9 @@ var getFlowTemplates = () => [
|
|
|
21777
21726
|
}
|
|
21778
21727
|
},
|
|
21779
21728
|
products: [
|
|
21780
|
-
|
|
21781
|
-
|
|
21782
|
-
|
|
21729
|
+
IntegrationDisplayNames10.LiveChat,
|
|
21730
|
+
IntegrationDisplayNames10.OpenAI,
|
|
21731
|
+
IntegrationDisplayNames10.HelpDesk
|
|
21783
21732
|
],
|
|
21784
21733
|
category: "Notifications & alerts" /* NotificationAndAlerts */
|
|
21785
21734
|
},
|
|
@@ -21789,19 +21738,19 @@ var getFlowTemplates = () => [
|
|
|
21789
21738
|
icons: [LiveChatIcon, ShopifyIcon2],
|
|
21790
21739
|
list: [
|
|
21791
21740
|
{
|
|
21792
|
-
product:
|
|
21741
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21793
21742
|
description: "Detects when a chat starts"
|
|
21794
21743
|
},
|
|
21795
21744
|
{
|
|
21796
|
-
product:
|
|
21745
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21797
21746
|
description: "Pulls the chat transcript data"
|
|
21798
21747
|
},
|
|
21799
21748
|
{
|
|
21800
|
-
product:
|
|
21749
|
+
product: IntegrationDisplayNames10.Shopify,
|
|
21801
21750
|
description: "Pulls the customer order history"
|
|
21802
21751
|
},
|
|
21803
21752
|
{
|
|
21804
|
-
product:
|
|
21753
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21805
21754
|
description: "Sends a message with the customer\u2019s order history visible to the agent"
|
|
21806
21755
|
}
|
|
21807
21756
|
],
|
|
@@ -21887,7 +21836,7 @@ var getFlowTemplates = () => [
|
|
|
21887
21836
|
trigger: {
|
|
21888
21837
|
type: "webhook",
|
|
21889
21838
|
webhook: {
|
|
21890
|
-
source:
|
|
21839
|
+
source: IntegrationNames18.LiveChat,
|
|
21891
21840
|
event: {
|
|
21892
21841
|
name: TextLivechatEventNames2.ChatStarted
|
|
21893
21842
|
},
|
|
@@ -21900,8 +21849,8 @@ var getFlowTemplates = () => [
|
|
|
21900
21849
|
}
|
|
21901
21850
|
},
|
|
21902
21851
|
products: [
|
|
21903
|
-
|
|
21904
|
-
|
|
21852
|
+
IntegrationDisplayNames10.LiveChat,
|
|
21853
|
+
IntegrationDisplayNames10.Shopify
|
|
21905
21854
|
],
|
|
21906
21855
|
category: "Sales management" /* SalesManagement */
|
|
21907
21856
|
},
|
|
@@ -21911,15 +21860,15 @@ var getFlowTemplates = () => [
|
|
|
21911
21860
|
icons: [LiveChatIcon, HubspotIcon],
|
|
21912
21861
|
list: [
|
|
21913
21862
|
{
|
|
21914
|
-
product:
|
|
21863
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21915
21864
|
description: "Detects when a chat ends"
|
|
21916
21865
|
},
|
|
21917
21866
|
{
|
|
21918
|
-
product:
|
|
21867
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
21919
21868
|
description: "Pulls the chat transcript data"
|
|
21920
21869
|
},
|
|
21921
21870
|
{
|
|
21922
|
-
product:
|
|
21871
|
+
product: IntegrationDisplayNames10.HubSpot,
|
|
21923
21872
|
description: "Creates a new contact in Hubspot"
|
|
21924
21873
|
}
|
|
21925
21874
|
],
|
|
@@ -21987,7 +21936,7 @@ var getFlowTemplates = () => [
|
|
|
21987
21936
|
trigger: {
|
|
21988
21937
|
type: "webhook",
|
|
21989
21938
|
webhook: {
|
|
21990
|
-
source:
|
|
21939
|
+
source: IntegrationNames18.LiveChat,
|
|
21991
21940
|
event: {
|
|
21992
21941
|
name: TextLivechatEventNames2.ChatEnded
|
|
21993
21942
|
},
|
|
@@ -22000,8 +21949,8 @@ var getFlowTemplates = () => [
|
|
|
22000
21949
|
}
|
|
22001
21950
|
},
|
|
22002
21951
|
products: [
|
|
22003
|
-
|
|
22004
|
-
|
|
21952
|
+
IntegrationDisplayNames10.LiveChat,
|
|
21953
|
+
IntegrationDisplayNames10.HubSpot
|
|
22005
21954
|
],
|
|
22006
21955
|
category: "Lead collection" /* LeadCollection */
|
|
22007
21956
|
},
|
|
@@ -22011,15 +21960,15 @@ var getFlowTemplates = () => [
|
|
|
22011
21960
|
icons: [LiveChatIcon, HelpDeskIcon],
|
|
22012
21961
|
list: [
|
|
22013
21962
|
{
|
|
22014
|
-
product:
|
|
21963
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
22015
21964
|
description: "Detects when a chat starts"
|
|
22016
21965
|
},
|
|
22017
21966
|
{
|
|
22018
|
-
product:
|
|
21967
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
22019
21968
|
description: "Pulls the chat transcript information"
|
|
22020
21969
|
},
|
|
22021
21970
|
{
|
|
22022
|
-
product:
|
|
21971
|
+
product: IntegrationDisplayNames10.HelpDesk,
|
|
22023
21972
|
description: "Creates a ticket in HelpDesk. Use the LiveChat pre-chat survey to pull the customer\u2019s email or provide a custom input"
|
|
22024
21973
|
}
|
|
22025
21974
|
],
|
|
@@ -22092,7 +22041,7 @@ var getFlowTemplates = () => [
|
|
|
22092
22041
|
trigger: {
|
|
22093
22042
|
type: "webhook",
|
|
22094
22043
|
webhook: {
|
|
22095
|
-
source:
|
|
22044
|
+
source: IntegrationNames18.LiveChat,
|
|
22096
22045
|
event: {
|
|
22097
22046
|
name: TextLivechatEventNames2.ChatStarted
|
|
22098
22047
|
},
|
|
@@ -22105,8 +22054,8 @@ var getFlowTemplates = () => [
|
|
|
22105
22054
|
}
|
|
22106
22055
|
},
|
|
22107
22056
|
products: [
|
|
22108
|
-
|
|
22109
|
-
|
|
22057
|
+
IntegrationDisplayNames10.LiveChat,
|
|
22058
|
+
IntegrationDisplayNames10.HelpDesk
|
|
22110
22059
|
],
|
|
22111
22060
|
category: "Notifications & alerts" /* NotificationAndAlerts */
|
|
22112
22061
|
},
|
|
@@ -22116,19 +22065,19 @@ var getFlowTemplates = () => [
|
|
|
22116
22065
|
icons: [LiveChatIcon, HubspotIcon, MailchimpIcon],
|
|
22117
22066
|
list: [
|
|
22118
22067
|
{
|
|
22119
|
-
product:
|
|
22068
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
22120
22069
|
description: "Detects when a chat ends"
|
|
22121
22070
|
},
|
|
22122
22071
|
{
|
|
22123
|
-
product:
|
|
22072
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
22124
22073
|
description: "Pulls the chat transcript information"
|
|
22125
22074
|
},
|
|
22126
22075
|
{
|
|
22127
|
-
product:
|
|
22076
|
+
product: IntegrationDisplayNames10.HubSpot,
|
|
22128
22077
|
description: "Creates a new contact in Hubspot"
|
|
22129
22078
|
},
|
|
22130
22079
|
{
|
|
22131
|
-
product:
|
|
22080
|
+
product: IntegrationDisplayNames10.Mailchimp,
|
|
22132
22081
|
description: "Adds new subscriber in Mailchimp"
|
|
22133
22082
|
}
|
|
22134
22083
|
],
|
|
@@ -22219,7 +22168,7 @@ var getFlowTemplates = () => [
|
|
|
22219
22168
|
trigger: {
|
|
22220
22169
|
type: "webhook",
|
|
22221
22170
|
webhook: {
|
|
22222
|
-
source:
|
|
22171
|
+
source: IntegrationNames18.LiveChat,
|
|
22223
22172
|
event: {
|
|
22224
22173
|
name: TextLivechatEventNames2.ChatEnded
|
|
22225
22174
|
},
|
|
@@ -22232,9 +22181,9 @@ var getFlowTemplates = () => [
|
|
|
22232
22181
|
}
|
|
22233
22182
|
},
|
|
22234
22183
|
products: [
|
|
22235
|
-
|
|
22236
|
-
|
|
22237
|
-
|
|
22184
|
+
IntegrationDisplayNames10.LiveChat,
|
|
22185
|
+
IntegrationDisplayNames10.HubSpot,
|
|
22186
|
+
IntegrationDisplayNames10.Mailchimp
|
|
22238
22187
|
],
|
|
22239
22188
|
category: "Lead collection" /* LeadCollection */
|
|
22240
22189
|
},
|
|
@@ -22244,15 +22193,15 @@ var getFlowTemplates = () => [
|
|
|
22244
22193
|
icons: [LiveChatIcon],
|
|
22245
22194
|
list: [
|
|
22246
22195
|
{
|
|
22247
|
-
product:
|
|
22196
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
22248
22197
|
description: "Detects when agents add a specific tag to an active chat"
|
|
22249
22198
|
},
|
|
22250
22199
|
{
|
|
22251
|
-
product:
|
|
22200
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
22252
22201
|
description: "Supervises chat to allow for sending private messages"
|
|
22253
22202
|
},
|
|
22254
22203
|
{
|
|
22255
|
-
product:
|
|
22204
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
22256
22205
|
description: "Sends a reminder to ask for a review visible only to the agent"
|
|
22257
22206
|
}
|
|
22258
22207
|
],
|
|
@@ -22321,7 +22270,7 @@ var getFlowTemplates = () => [
|
|
|
22321
22270
|
trigger: {
|
|
22322
22271
|
type: "webhook",
|
|
22323
22272
|
webhook: {
|
|
22324
|
-
source:
|
|
22273
|
+
source: IntegrationNames18.LiveChat,
|
|
22325
22274
|
event: {
|
|
22326
22275
|
name: TextLivechatEventNames2.ChatTagged,
|
|
22327
22276
|
tag: void 0,
|
|
@@ -22335,7 +22284,7 @@ var getFlowTemplates = () => [
|
|
|
22335
22284
|
}
|
|
22336
22285
|
}
|
|
22337
22286
|
},
|
|
22338
|
-
products: [
|
|
22287
|
+
products: [IntegrationDisplayNames10.LiveChat],
|
|
22339
22288
|
category: "Chat management" /* ChatManagement */
|
|
22340
22289
|
},
|
|
22341
22290
|
{
|
|
@@ -22344,15 +22293,15 @@ var getFlowTemplates = () => [
|
|
|
22344
22293
|
icons: [LiveChatIcon, HelpDeskIcon],
|
|
22345
22294
|
list: [
|
|
22346
22295
|
{
|
|
22347
|
-
product:
|
|
22296
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
22348
22297
|
description: "Detects when a chat ends"
|
|
22349
22298
|
},
|
|
22350
22299
|
{
|
|
22351
|
-
product:
|
|
22300
|
+
product: IntegrationDisplayNames10.LiveChat,
|
|
22352
22301
|
description: "Pulls the chat transcript"
|
|
22353
22302
|
},
|
|
22354
22303
|
{
|
|
22355
|
-
product:
|
|
22304
|
+
product: IntegrationDisplayNames10.HelpDesk,
|
|
22356
22305
|
description: "Sends the chat transcript to the customer via HelpDesk. Use the LiveChat pre-chat survey to pull the customer\u2019s email or provide a custom input"
|
|
22357
22306
|
}
|
|
22358
22307
|
],
|
|
@@ -22424,7 +22373,7 @@ var getFlowTemplates = () => [
|
|
|
22424
22373
|
trigger: {
|
|
22425
22374
|
type: "webhook",
|
|
22426
22375
|
webhook: {
|
|
22427
|
-
source:
|
|
22376
|
+
source: IntegrationNames18.LiveChat,
|
|
22428
22377
|
event: {
|
|
22429
22378
|
name: TextLivechatEventNames2.ChatEnded
|
|
22430
22379
|
},
|
|
@@ -22437,8 +22386,8 @@ var getFlowTemplates = () => [
|
|
|
22437
22386
|
}
|
|
22438
22387
|
},
|
|
22439
22388
|
products: [
|
|
22440
|
-
|
|
22441
|
-
|
|
22389
|
+
IntegrationDisplayNames10.LiveChat,
|
|
22390
|
+
IntegrationDisplayNames10.HelpDesk
|
|
22442
22391
|
],
|
|
22443
22392
|
category: "Customer experience" /* CustomerExperience */
|
|
22444
22393
|
}
|
|
@@ -22589,8 +22538,7 @@ function WorkflowTemplatePreviewModal({
|
|
|
22589
22538
|
[onClose, navigate]
|
|
22590
22539
|
);
|
|
22591
22540
|
const renderProductTags = (products) => {
|
|
22592
|
-
|
|
22593
|
-
const templateIcons = (_a = template.icons) != null ? _a : [];
|
|
22541
|
+
const templateIcons = template.icons;
|
|
22594
22542
|
return products.map((product, i) => {
|
|
22595
22543
|
const icon2 = templateIcons[i];
|
|
22596
22544
|
return /* @__PURE__ */ jsx2(
|
|
@@ -22675,14 +22623,14 @@ function WorkflowTemplatePreviewModal({
|
|
|
22675
22623
|
/* @__PURE__ */ jsx2(Text20, { bold: true, size: "md", children: template.name }),
|
|
22676
22624
|
/* @__PURE__ */ jsx2(Text20, { size: "md", children: template.workflow.description }),
|
|
22677
22625
|
/* @__PURE__ */ jsx2(Text20, { noMargin: true, size: "md", children: "Here's how it works:" }),
|
|
22678
|
-
/* @__PURE__ */ jsx2(List, { children: template.list.map((item
|
|
22626
|
+
/* @__PURE__ */ jsx2(List, { children: template.list.map((item) => /* @__PURE__ */ jsxs2("li", { children: [
|
|
22679
22627
|
/* @__PURE__ */ jsxs2(Text20, { as: "span", bold: true, noMargin: true, size: "md", children: [
|
|
22680
22628
|
item.product,
|
|
22681
22629
|
":",
|
|
22682
22630
|
" "
|
|
22683
22631
|
] }),
|
|
22684
22632
|
/* @__PURE__ */ jsx2(Text20, { as: "span", noMargin: true, size: "md", children: item.description })
|
|
22685
|
-
] },
|
|
22633
|
+
] }, `${item.product}`)) })
|
|
22686
22634
|
]
|
|
22687
22635
|
}
|
|
22688
22636
|
),
|
|
@@ -22699,7 +22647,7 @@ function WorkflowTemplatePreviewModal({
|
|
|
22699
22647
|
children: "Products used:"
|
|
22700
22648
|
}
|
|
22701
22649
|
),
|
|
22702
|
-
/* @__PURE__ */ jsx2(Row16, { gap: `var(${SpacingToken39.Spacing1})`, notPadded: true, children:
|
|
22650
|
+
/* @__PURE__ */ jsx2(Row16, { gap: `var(${SpacingToken39.Spacing1})`, notPadded: true, children: renderProductTags(template.products) })
|
|
22703
22651
|
] })
|
|
22704
22652
|
]
|
|
22705
22653
|
}
|
|
@@ -22719,14 +22667,12 @@ function WorkflowTemplatePreview({
|
|
|
22719
22667
|
const flowTemplates = useMemo7(() => getFlowTemplates(), []);
|
|
22720
22668
|
const params = useParams5();
|
|
22721
22669
|
const template = flowTemplates.find((t) => t.id === params.template);
|
|
22722
|
-
|
|
22723
|
-
workflow = template == null ? void 0 : template.workflow;
|
|
22724
|
-
}
|
|
22670
|
+
const targetWorkflow = workflow || (template == null ? void 0 : template.workflow);
|
|
22725
22671
|
if (!template) {
|
|
22726
|
-
return
|
|
22672
|
+
return;
|
|
22727
22673
|
}
|
|
22728
|
-
if (!
|
|
22729
|
-
return
|
|
22674
|
+
if (!targetWorkflow) {
|
|
22675
|
+
return;
|
|
22730
22676
|
}
|
|
22731
22677
|
return /* @__PURE__ */ jsx2(
|
|
22732
22678
|
WorkflowContextProvider,
|
|
@@ -22742,7 +22688,7 @@ function WorkflowTemplatePreview({
|
|
|
22742
22688
|
},
|
|
22743
22689
|
validation: { hidden: true, strategy: "non-blocking" }
|
|
22744
22690
|
},
|
|
22745
|
-
workflow,
|
|
22691
|
+
workflow: targetWorkflow,
|
|
22746
22692
|
children: /* @__PURE__ */ jsx2(Modal_default, { onClose, template })
|
|
22747
22693
|
}
|
|
22748
22694
|
);
|
|
@@ -22858,7 +22804,7 @@ import {
|
|
|
22858
22804
|
Icon as Icon34,
|
|
22859
22805
|
SpacingToken as SpacingToken41
|
|
22860
22806
|
} from "@livechat/design-system-react-components";
|
|
22861
|
-
import { IntegrationDisplayNames as
|
|
22807
|
+
import { IntegrationDisplayNames as IntegrationDisplayNames11 } from "@livechat/developer-studio-api";
|
|
22862
22808
|
import { Row as Row18 } from "@livechat/developer-studio-ui-react";
|
|
22863
22809
|
function WorkflowTemplatesProductFilter({
|
|
22864
22810
|
handleStatus,
|
|
@@ -22887,11 +22833,11 @@ function WorkflowTemplatesProductFilter({
|
|
|
22887
22833
|
},
|
|
22888
22834
|
options: [
|
|
22889
22835
|
getItem("0", "All"),
|
|
22890
|
-
getItem("1",
|
|
22891
|
-
getItem("2",
|
|
22892
|
-
getItem("3",
|
|
22893
|
-
getItem("4",
|
|
22894
|
-
getItem("5",
|
|
22836
|
+
getItem("1", IntegrationDisplayNames11.LiveChat, LiveChatColored),
|
|
22837
|
+
getItem("2", IntegrationDisplayNames11.HelpDesk, HelpDeskColored),
|
|
22838
|
+
getItem("3", IntegrationDisplayNames11.OpenAI, Chatgpt),
|
|
22839
|
+
getItem("4", IntegrationDisplayNames11.Shopify, ShopifyColored),
|
|
22840
|
+
getItem("5", IntegrationDisplayNames11.Mailchimp, Mailchimp)
|
|
22895
22841
|
// getItem('6', IntegrationDisplayNames.Stripe, Stripe),
|
|
22896
22842
|
// getItem('7', IntegrationDisplayNames.GoogleSheets, GoogleSheets),
|
|
22897
22843
|
],
|
|
@@ -23016,7 +22962,7 @@ function WorkflowTemplateCard({
|
|
|
23016
22962
|
CategoryIcon_default(category),
|
|
23017
22963
|
/* @__PURE__ */ jsx2(Heading11, { as: "div", size: "xs", children: name })
|
|
23018
22964
|
] }),
|
|
23019
|
-
/* @__PURE__ */ jsx2(Row20, { gap: `var(${SpacingToken43.Spacing1})`, noWrap: true, notPadded: true, children: icons.map((icon2, i) => /* @__PURE__ */ jsx2(IconWrapper2, { children: /* @__PURE__ */ jsx2(Icon36, { kind: "primary", size: "medium", source: icon2 }) }, i)) })
|
|
22965
|
+
/* @__PURE__ */ jsx2(Row20, { gap: `var(${SpacingToken43.Spacing1})`, noWrap: true, notPadded: true, children: icons.map((icon2, i) => /* @__PURE__ */ jsx2(IconWrapper2, { children: /* @__PURE__ */ jsx2(Icon36, { kind: "primary", size: "medium", source: icon2 }) }, `${i.toString()}`)) })
|
|
23020
22966
|
]
|
|
23021
22967
|
}
|
|
23022
22968
|
)
|
|
@@ -23032,7 +22978,7 @@ var Grid = newStyled.div`
|
|
|
23032
22978
|
width: 100%;
|
|
23033
22979
|
gap: var(${SpacingToken44.Spacing3});
|
|
23034
22980
|
`;
|
|
23035
|
-
function WorkflowsHome({ isOnModal
|
|
22981
|
+
function WorkflowsHome({ isOnModal }) {
|
|
23036
22982
|
const [product, setProduct] = useState31("All");
|
|
23037
22983
|
const [category, setCategory] = useState31("All");
|
|
23038
22984
|
const flowTemplates = useMemo8(() => getFlowTemplates(), []);
|
|
@@ -23041,8 +22987,8 @@ function WorkflowsHome({ isOnModal, basePath }) {
|
|
|
23041
22987
|
(template) => category === "All" || template.category.includes(category)
|
|
23042
22988
|
];
|
|
23043
22989
|
const filteredTemplates = flowTemplates.filter((template) => {
|
|
23044
|
-
for (
|
|
23045
|
-
if (!
|
|
22990
|
+
for (const filter of filters) {
|
|
22991
|
+
if (!filter(template)) {
|
|
23046
22992
|
return false;
|
|
23047
22993
|
}
|
|
23048
22994
|
}
|
|
@@ -23119,7 +23065,7 @@ function WorkflowsHome({ isOnModal, basePath }) {
|
|
|
23119
23065
|
size: "md",
|
|
23120
23066
|
children: "No templates found"
|
|
23121
23067
|
}
|
|
23122
|
-
) : filteredTemplates.map((template
|
|
23068
|
+
) : filteredTemplates.map((template) => /* @__PURE__ */ jsx2(
|
|
23123
23069
|
Template_default,
|
|
23124
23070
|
{
|
|
23125
23071
|
category: template.category,
|
|
@@ -23127,7 +23073,7 @@ function WorkflowsHome({ isOnModal, basePath }) {
|
|
|
23127
23073
|
id: template.id,
|
|
23128
23074
|
name: template.name
|
|
23129
23075
|
},
|
|
23130
|
-
|
|
23076
|
+
template.id
|
|
23131
23077
|
)) })
|
|
23132
23078
|
]
|
|
23133
23079
|
}
|
|
@@ -23199,7 +23145,7 @@ import {
|
|
|
23199
23145
|
Button as Button32,
|
|
23200
23146
|
Icon as Icon37
|
|
23201
23147
|
} from "@livechat/design-system-react-components";
|
|
23202
|
-
import { jsx as
|
|
23148
|
+
import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
23203
23149
|
function WorkflowStatusFilter({
|
|
23204
23150
|
handleStatus,
|
|
23205
23151
|
status
|
|
@@ -23231,7 +23177,7 @@ function WorkflowStatusFilter({
|
|
|
23231
23177
|
}
|
|
23232
23178
|
}
|
|
23233
23179
|
];
|
|
23234
|
-
return /* @__PURE__ */
|
|
23180
|
+
return /* @__PURE__ */ jsx13(
|
|
23235
23181
|
ActionMenu5,
|
|
23236
23182
|
{
|
|
23237
23183
|
onClose: () => {
|
|
@@ -23242,7 +23188,7 @@ function WorkflowStatusFilter({
|
|
|
23242
23188
|
triggerRenderer: /* @__PURE__ */ jsxs9(
|
|
23243
23189
|
Button32,
|
|
23244
23190
|
{
|
|
23245
|
-
icon: /* @__PURE__ */
|
|
23191
|
+
icon: /* @__PURE__ */ jsx13(Icon37, { source: ToggleLeft }),
|
|
23246
23192
|
kind: "secondary",
|
|
23247
23193
|
onClick: () => {
|
|
23248
23194
|
setIsVisible(!isVisible);
|
|
@@ -23279,10 +23225,11 @@ import {
|
|
|
23279
23225
|
Text as Text22,
|
|
23280
23226
|
Tooltip as Tooltip9
|
|
23281
23227
|
} from "@livechat/design-system-react-components";
|
|
23282
|
-
import { IntegrationNames as
|
|
23228
|
+
import { IntegrationNames as IntegrationNames19 } from "@livechat/developer-studio-api";
|
|
23283
23229
|
import {
|
|
23284
23230
|
Loader as Loader3,
|
|
23285
23231
|
Row as Row22,
|
|
23232
|
+
StopPropagation,
|
|
23286
23233
|
Table,
|
|
23287
23234
|
useNotifications as useNotifications6,
|
|
23288
23235
|
useUserContext as useUserContext11
|
|
@@ -23352,7 +23299,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
23352
23299
|
) : null
|
|
23353
23300
|
] }) }),
|
|
23354
23301
|
/* @__PURE__ */ jsx2("td", { width: "40%", children: /* @__PURE__ */ jsx2(Row22, { gap: 12, notPadded: true, children: (_d = workflow.tags) == null ? void 0 : _d.map((tag) => {
|
|
23355
|
-
const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() ===
|
|
23302
|
+
const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === IntegrationNames19.BigCommerce.toLowerCase());
|
|
23356
23303
|
return /* @__PURE__ */ jsx2(
|
|
23357
23304
|
ProductIcon_default,
|
|
23358
23305
|
{
|
|
@@ -23365,108 +23312,90 @@ function WorkflowsTable({ workflowsQuery, state }) {
|
|
|
23365
23312
|
tag
|
|
23366
23313
|
);
|
|
23367
23314
|
}) }) }),
|
|
23368
|
-
/* @__PURE__ */ jsx2(
|
|
23369
|
-
|
|
23315
|
+
/* @__PURE__ */ jsx2("td", { children: /* @__PURE__ */ jsx2(
|
|
23316
|
+
Tooltip9,
|
|
23370
23317
|
{
|
|
23371
|
-
|
|
23372
|
-
|
|
23373
|
-
|
|
23374
|
-
|
|
23375
|
-
Tooltip9,
|
|
23318
|
+
triggerClassName: "tooltip-trigger",
|
|
23319
|
+
triggerOnHover: true,
|
|
23320
|
+
triggerRenderer: /* @__PURE__ */ jsx2(StopPropagation, { children: /* @__PURE__ */ jsx2(
|
|
23321
|
+
Switch2,
|
|
23376
23322
|
{
|
|
23377
|
-
|
|
23378
|
-
|
|
23379
|
-
|
|
23380
|
-
|
|
23381
|
-
|
|
23382
|
-
|
|
23383
|
-
|
|
23384
|
-
|
|
23385
|
-
|
|
23386
|
-
|
|
23387
|
-
|
|
23388
|
-
|
|
23389
|
-
id: workflow.id,
|
|
23390
|
-
active: !workflow.active
|
|
23391
|
-
});
|
|
23392
|
-
}),
|
|
23393
|
-
state: activateWorkflowAction.isLoading && ((_f = activateWorkflowAction.variables) == null ? void 0 : _f.id) === workflow.id ? "loading" : workflow.draft ? "locked" : "regular"
|
|
23394
|
-
}
|
|
23395
|
-
),
|
|
23396
|
-
children: workflow.draft ? "Publish the draft to activate this workflow" : workflow.active ? "Deactivate flow" : "Activate flow"
|
|
23323
|
+
css: css`
|
|
23324
|
+
vertical-align: bottom;
|
|
23325
|
+
`,
|
|
23326
|
+
on: (_e = workflow.active) != null ? _e : false,
|
|
23327
|
+
onChange: (e) => {
|
|
23328
|
+
e.stopPropagation();
|
|
23329
|
+
void activateWorkflowAction.mutateAsync({
|
|
23330
|
+
id: workflow.id,
|
|
23331
|
+
active: !workflow.active
|
|
23332
|
+
});
|
|
23333
|
+
},
|
|
23334
|
+
state: activateWorkflowAction.isLoading && ((_f = activateWorkflowAction.variables) == null ? void 0 : _f.id) === workflow.id ? "loading" : workflow.draft ? "locked" : "regular"
|
|
23397
23335
|
}
|
|
23398
|
-
)
|
|
23336
|
+
) }),
|
|
23337
|
+
children: workflow.draft ? "Publish the draft to activate this workflow" : workflow.active ? "Deactivate flow" : "Activate flow"
|
|
23399
23338
|
}
|
|
23400
|
-
),
|
|
23401
|
-
/* @__PURE__ */ jsx2(
|
|
23402
|
-
|
|
23339
|
+
) }),
|
|
23340
|
+
/* @__PURE__ */ jsx2("td", { children: !workflow.draft && /* @__PURE__ */ jsx2(
|
|
23341
|
+
Button33,
|
|
23403
23342
|
{
|
|
23343
|
+
icon: /* @__PURE__ */ jsx2(Icon38, { source: Info2 }),
|
|
23344
|
+
kind: "plain",
|
|
23404
23345
|
onClick: (e) => {
|
|
23405
23346
|
e.stopPropagation();
|
|
23406
|
-
|
|
23407
|
-
|
|
23408
|
-
Button33,
|
|
23409
|
-
{
|
|
23410
|
-
icon: /* @__PURE__ */ jsx2(Icon38, { source: Info2 }),
|
|
23411
|
-
kind: "plain",
|
|
23412
|
-
onClick: () => {
|
|
23413
|
-
navigate(`${workflow.id}/info`);
|
|
23414
|
-
}
|
|
23415
|
-
}
|
|
23416
|
-
)
|
|
23347
|
+
navigate(`${workflow.id}/info`);
|
|
23348
|
+
}
|
|
23417
23349
|
}
|
|
23418
|
-
),
|
|
23419
|
-
/* @__PURE__ */ jsx2(
|
|
23420
|
-
|
|
23350
|
+
) }),
|
|
23351
|
+
/* @__PURE__ */ jsx2("td", { align: "right", children: /* @__PURE__ */ jsx2(StopPropagation, { children: /* @__PURE__ */ jsx2(
|
|
23352
|
+
ActionMenu6,
|
|
23421
23353
|
{
|
|
23422
|
-
|
|
23423
|
-
onClick: (e) => {
|
|
23424
|
-
e.stopPropagation();
|
|
23425
|
-
},
|
|
23426
|
-
children: /* @__PURE__ */ jsx2(
|
|
23427
|
-
ActionMenu6,
|
|
23354
|
+
options: [
|
|
23428
23355
|
{
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
element: /* @__PURE__ */ jsx2(
|
|
23433
|
-
ActionMenuItem2,
|
|
23434
|
-
{
|
|
23435
|
-
leftNode: /* @__PURE__ */ jsx2(Icon38, { source: PlayArrow }),
|
|
23436
|
-
children: "Trigger manually"
|
|
23437
|
-
}
|
|
23438
|
-
),
|
|
23439
|
-
onClick: () => {
|
|
23440
|
-
navigate(`/workflow/${workflow.id}/execute`);
|
|
23441
|
-
}
|
|
23442
|
-
},
|
|
23356
|
+
key: "run",
|
|
23357
|
+
element: /* @__PURE__ */ jsx2(
|
|
23358
|
+
ActionMenuItem2,
|
|
23443
23359
|
{
|
|
23444
|
-
|
|
23445
|
-
|
|
23446
|
-
onClick: () => __async(this, null, function* () {
|
|
23447
|
-
amplitudeWorkflowsJourney.workflow.delete.actions.click(
|
|
23448
|
-
"list"
|
|
23449
|
-
);
|
|
23450
|
-
yield deleteAction.mutateAsync(workflow);
|
|
23451
|
-
notifications.showSuccess(
|
|
23452
|
-
"Workflow has been deleted successfully"
|
|
23453
|
-
);
|
|
23454
|
-
})
|
|
23360
|
+
leftNode: /* @__PURE__ */ jsx2(Icon38, { source: PlayArrow }),
|
|
23361
|
+
children: "Trigger manually"
|
|
23455
23362
|
}
|
|
23456
|
-
|
|
23457
|
-
|
|
23458
|
-
|
|
23363
|
+
),
|
|
23364
|
+
onClick: () => {
|
|
23365
|
+
navigate(`/workflow/${workflow.id}/execute`);
|
|
23366
|
+
}
|
|
23367
|
+
},
|
|
23368
|
+
{
|
|
23369
|
+
key: "delete",
|
|
23370
|
+
element: /* @__PURE__ */ jsx2(
|
|
23371
|
+
ActionMenuItem2,
|
|
23459
23372
|
{
|
|
23460
|
-
|
|
23461
|
-
|
|
23462
|
-
loading: deleteAction.isLoading ? ((_g = deleteAction.variables) == null ? void 0 : _g.id) === workflow.id : void 0,
|
|
23463
|
-
size: "compact"
|
|
23373
|
+
leftNode: /* @__PURE__ */ jsx2(Icon38, { source: Delete4 }),
|
|
23374
|
+
children: "Delete"
|
|
23464
23375
|
}
|
|
23465
|
-
)
|
|
23376
|
+
),
|
|
23377
|
+
onClick: () => void (() => __async(this, null, function* () {
|
|
23378
|
+
amplitudeWorkflowsJourney.workflow.delete.actions.click(
|
|
23379
|
+
"list"
|
|
23380
|
+
);
|
|
23381
|
+
yield deleteAction.mutateAsync(workflow);
|
|
23382
|
+
notifications.showSuccess(
|
|
23383
|
+
"Workflow has been deleted successfully"
|
|
23384
|
+
);
|
|
23385
|
+
}))()
|
|
23386
|
+
}
|
|
23387
|
+
],
|
|
23388
|
+
triggerRenderer: /* @__PURE__ */ jsx2(
|
|
23389
|
+
Button33,
|
|
23390
|
+
{
|
|
23391
|
+
icon: /* @__PURE__ */ jsx2(Icon38, { source: MoreHoriz2 }),
|
|
23392
|
+
kind: "text",
|
|
23393
|
+
loading: deleteAction.isLoading ? ((_g = deleteAction.variables) == null ? void 0 : _g.id) === workflow.id : void 0,
|
|
23394
|
+
size: "compact"
|
|
23466
23395
|
}
|
|
23467
23396
|
)
|
|
23468
23397
|
}
|
|
23469
|
-
)
|
|
23398
|
+
) }) })
|
|
23470
23399
|
]
|
|
23471
23400
|
},
|
|
23472
23401
|
workflow.id
|
|
@@ -23640,7 +23569,7 @@ function WorkflowList() {
|
|
|
23640
23569
|
var List_default2 = WorkflowList;
|
|
23641
23570
|
|
|
23642
23571
|
// src/views/Flows/Definitions/index.tsx
|
|
23643
|
-
import { jsx as
|
|
23572
|
+
import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
23644
23573
|
function Workflows() {
|
|
23645
23574
|
const navigate = useNavigate18();
|
|
23646
23575
|
const { user, isUserFetching } = useUserContext12();
|
|
@@ -23659,12 +23588,12 @@ function Workflows() {
|
|
|
23659
23588
|
userHasInstalledWorkflows
|
|
23660
23589
|
]);
|
|
23661
23590
|
if (isUserFetching || isWorkflowAppLoading) {
|
|
23662
|
-
return /* @__PURE__ */
|
|
23591
|
+
return /* @__PURE__ */ jsx14(Loader5, { stretch: true });
|
|
23663
23592
|
}
|
|
23664
23593
|
return /* @__PURE__ */ jsxs10(Routes5, { children: [
|
|
23665
|
-
/* @__PURE__ */
|
|
23666
|
-
/* @__PURE__ */
|
|
23667
|
-
/* @__PURE__ */
|
|
23594
|
+
/* @__PURE__ */ jsx14(Route5, { element: /* @__PURE__ */ jsx14(Navigate2, { replace: true, to: "list" }), path: "" }),
|
|
23595
|
+
/* @__PURE__ */ jsx14(Route5, { element: /* @__PURE__ */ jsx14(List_default2, {}), path: "list/*" }),
|
|
23596
|
+
/* @__PURE__ */ jsx14(Route5, { element: /* @__PURE__ */ jsx14(Edit_default2, {}), path: ":id/*" })
|
|
23668
23597
|
] });
|
|
23669
23598
|
}
|
|
23670
23599
|
var Definitions_default = Workflows;
|
|
@@ -23790,20 +23719,20 @@ function Waitlist({ image }) {
|
|
|
23790
23719
|
var Waitlist_default = Waitlist;
|
|
23791
23720
|
|
|
23792
23721
|
// src/views/Flows/index.tsx
|
|
23793
|
-
import { jsx as
|
|
23722
|
+
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
23794
23723
|
function FlowsRoute({ waitlistImage }) {
|
|
23795
|
-
return /* @__PURE__ */
|
|
23724
|
+
return /* @__PURE__ */ jsx15(
|
|
23796
23725
|
Route6,
|
|
23797
23726
|
{
|
|
23798
|
-
element: /* @__PURE__ */
|
|
23727
|
+
element: /* @__PURE__ */ jsx15(Flows, { waitlistImage }),
|
|
23799
23728
|
path: "/workflow/*"
|
|
23800
23729
|
}
|
|
23801
23730
|
);
|
|
23802
23731
|
}
|
|
23803
23732
|
function Flows({ waitlistImage }) {
|
|
23804
23733
|
return /* @__PURE__ */ jsxs11(Routes6, { children: [
|
|
23805
|
-
/* @__PURE__ */
|
|
23806
|
-
/* @__PURE__ */
|
|
23734
|
+
/* @__PURE__ */ jsx15(Route6, { element: /* @__PURE__ */ jsx15(Definitions_default, {}), path: "*" }),
|
|
23735
|
+
/* @__PURE__ */ jsx15(Route6, { element: /* @__PURE__ */ jsx15(Waitlist_default, { image: waitlistImage }), path: "/waitlist" })
|
|
23807
23736
|
] });
|
|
23808
23737
|
}
|
|
23809
23738
|
export {
|