@livechat/platform-workflows 0.0.63 → 0.0.65

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.
Files changed (3) hide show
  1. package/dist/index.js +498 -182
  2. package/dist/index.mjs +549 -229
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1952,6 +1952,13 @@ var WORKFLOW_HTTP_TASK_OUTPUT_SCHEMA = (body) => ({
1952
1952
  }
1953
1953
  }
1954
1954
  });
1955
+ var WORKFLOW_TRIGGER_OUTPUT_SCHEMA = (body) => ({
1956
+ type: "object",
1957
+ required: ["body"],
1958
+ properties: {
1959
+ body
1960
+ }
1961
+ });
1955
1962
 
1956
1963
  // src/views/Flows/Definitions/Mocks/System/index.ts
1957
1964
  var import_developer_studio_api2 = require("@livechat/developer-studio-api");
@@ -3463,6 +3470,53 @@ var helpdeskTicketInput = {
3463
3470
  title: "Transaction ID"
3464
3471
  }
3465
3472
  };
3473
+ var webhookSpecsCommons = {
3474
+ outputs: {
3475
+ ticketBasedOutput: () => WORKFLOW_TRIGGER_OUTPUT_SCHEMA(helpdeskTicketResponse),
3476
+ ticketEventBasedOutput: (event) => WORKFLOW_TRIGGER_OUTPUT_SCHEMA({
3477
+ type: "object",
3478
+ required: ["ticket", "event"],
3479
+ properties: {
3480
+ ticket: helpdeskTicketResponse,
3481
+ event
3482
+ }
3483
+ })
3484
+ }
3485
+ };
3486
+ var webhookSpecs = {
3487
+ ticket_created: {
3488
+ input: {},
3489
+ output: webhookSpecsCommons.outputs.ticketBasedOutput()
3490
+ },
3491
+ ticket_updated: {
3492
+ input: {},
3493
+ output: webhookSpecsCommons.outputs.ticketBasedOutput()
3494
+ },
3495
+ ticket_status_changed: {
3496
+ input: {},
3497
+ output: webhookSpecsCommons.outputs.ticketEventBasedOutput({})
3498
+ },
3499
+ ticket_priority_changed: {
3500
+ input: {},
3501
+ output: webhookSpecsCommons.outputs.ticketEventBasedOutput({})
3502
+ },
3503
+ ticket_tags_changed: {
3504
+ input: {},
3505
+ output: webhookSpecsCommons.outputs.ticketEventBasedOutput({})
3506
+ },
3507
+ ticket_followers_changed: {
3508
+ input: {},
3509
+ output: webhookSpecsCommons.outputs.ticketEventBasedOutput({})
3510
+ },
3511
+ ticket_assignment_changed: {
3512
+ input: {},
3513
+ output: webhookSpecsCommons.outputs.ticketEventBasedOutput({})
3514
+ },
3515
+ ticket_message_added: {
3516
+ input: {},
3517
+ output: webhookSpecsCommons.outputs.ticketEventBasedOutput({})
3518
+ }
3519
+ };
3466
3520
  var helpdeskTaskConfigs = () => ({
3467
3521
  ["HELPDESK_ADD_FOLLOWERS_TO_TICKET" /* AddFollowersToTicket */]: {
3468
3522
  key: "HELPDESK_ADD_FOLLOWERS_TO_TICKET" /* AddFollowersToTicket */,
@@ -3471,8 +3525,8 @@ var helpdeskTaskConfigs = () => ({
3471
3525
  "workflowsApiUr"
3472
3526
  )}/functions/add-followers-to-helpdesk-ticket`,
3473
3527
  customization: {
3474
- provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3475
- product: PRODUCT_NAMES.helpdesk,
3528
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3529
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3476
3530
  icon: PRODUCT_TYPE.HD,
3477
3531
  displayName: "Add followers to ticket",
3478
3532
  shortDescription: "Add followers to ticket",
@@ -3508,8 +3562,8 @@ var helpdeskTaskConfigs = () => ({
3508
3562
  "workflowsApiUr"
3509
3563
  )}/functions/add-tags-to-helpdesk-ticket`,
3510
3564
  customization: {
3511
- provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3512
- product: PRODUCT_NAMES.helpdesk,
3565
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3566
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3513
3567
  icon: PRODUCT_TYPE.HD,
3514
3568
  displayName: "Add tags to ticket",
3515
3569
  shortDescription: "Add tags to ticket",
@@ -3544,8 +3598,8 @@ var helpdeskTaskConfigs = () => ({
3544
3598
  "workflowsApiUr"
3545
3599
  )}/functions/create-helpdesk-ticket`,
3546
3600
  customization: {
3547
- provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3548
- product: PRODUCT_NAMES.helpdesk,
3601
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3602
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3549
3603
  icon: PRODUCT_TYPE.HD,
3550
3604
  displayName: "Create ticket",
3551
3605
  shortDescription: "Create a ticket",
@@ -3567,8 +3621,8 @@ var helpdeskTaskConfigs = () => ({
3567
3621
  "workflowsApiUr"
3568
3622
  )}/functions/create-helpdesk-transaction`,
3569
3623
  customization: {
3570
- provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3571
- product: PRODUCT_NAMES.helpdesk,
3624
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3625
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3572
3626
  icon: PRODUCT_TYPE.HD,
3573
3627
  displayName: "Create transaction",
3574
3628
  shortDescription: "Creates transaction",
@@ -3654,8 +3708,8 @@ var helpdeskTaskConfigs = () => ({
3654
3708
  type: import_developer_studio_api4.WorkflowDefinitionTaskType.http,
3655
3709
  url: `${getWorkflowsEnv("workflowsApiUr")}/functions/find-helpdesk-ticket`,
3656
3710
  customization: {
3657
- provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3658
- product: PRODUCT_NAMES.helpdesk,
3711
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3712
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3659
3713
  icon: PRODUCT_TYPE.HD,
3660
3714
  displayName: "Find ticket",
3661
3715
  shortDescription: "Find ticket",
@@ -3683,8 +3737,8 @@ var helpdeskTaskConfigs = () => ({
3683
3737
  "workflowsApiUr"
3684
3738
  )}/functions/update-helpdesk-ticket`,
3685
3739
  customization: {
3686
- provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3687
- product: PRODUCT_NAMES.helpdesk,
3740
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3741
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3688
3742
  icon: PRODUCT_TYPE.HD,
3689
3743
  displayName: "Update ticket",
3690
3744
  shortDescription: "Update ticket",
@@ -3833,6 +3887,244 @@ var helpdeskTaskTemplates = () => ({
3833
3887
  })
3834
3888
  })
3835
3889
  });
3890
+ var TextHelpDeskTriggerNames = {
3891
+ TicketCreated: `${import_developer_studio_api4.IntegrationNames.HelpDesk}-${import_developer_studio_api4.TextHelpDeskEventNames.TicketCreated}`,
3892
+ TicketUpdated: `${import_developer_studio_api4.IntegrationNames.HelpDesk}-${import_developer_studio_api4.TextHelpDeskEventNames.TicketUpdated}`,
3893
+ TicketStatusChanged: `${import_developer_studio_api4.IntegrationNames.HelpDesk}-${import_developer_studio_api4.TextHelpDeskEventNames.TicketStatusChanged}`,
3894
+ TicketPriorityChanged: `${import_developer_studio_api4.IntegrationNames.HelpDesk}-${import_developer_studio_api4.TextHelpDeskEventNames.TicketPriorityChanged}`,
3895
+ TicketTagsChanged: `${import_developer_studio_api4.IntegrationNames.HelpDesk}-${import_developer_studio_api4.TextHelpDeskEventNames.TicketTagsChanged}`,
3896
+ TicketFollowersChanged: `${import_developer_studio_api4.IntegrationNames.HelpDesk}-${import_developer_studio_api4.TextHelpDeskEventNames.TicketFollowersChanged}`,
3897
+ TicketAssignmentChanged: `${import_developer_studio_api4.IntegrationNames.HelpDesk}-${import_developer_studio_api4.TextHelpDeskEventNames.TicketAssignmentChanged}`,
3898
+ TicketMessageAdded: `${import_developer_studio_api4.IntegrationNames.HelpDesk}-${import_developer_studio_api4.TextHelpDeskEventNames.TicketMessageAdded}`
3899
+ };
3900
+ var helpDeskTriggerConfigs = () => ({
3901
+ [TextHelpDeskTriggerNames.TicketCreated]: {
3902
+ key: TextHelpDeskTriggerNames.TicketCreated,
3903
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketCreated,
3904
+ type: "webhook",
3905
+ customization: {
3906
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3907
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3908
+ icon: PRODUCT_TYPE.HD,
3909
+ displayName: "Ticket created",
3910
+ shortDescription: "Ticket created",
3911
+ description: "Triggers when a new ticket is created."
3912
+ },
3913
+ specification: {
3914
+ output: webhookSpecs.ticket_created.output
3915
+ }
3916
+ },
3917
+ [TextHelpDeskTriggerNames.TicketUpdated]: {
3918
+ key: TextHelpDeskTriggerNames.TicketUpdated,
3919
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketUpdated,
3920
+ type: "webhook",
3921
+ customization: {
3922
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3923
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3924
+ icon: PRODUCT_TYPE.HD,
3925
+ displayName: "Ticket updated",
3926
+ shortDescription: "Ticket updated",
3927
+ description: "Triggers when a ticket is updated."
3928
+ },
3929
+ specification: {
3930
+ output: webhookSpecs.ticket_updated.output
3931
+ }
3932
+ },
3933
+ [TextHelpDeskTriggerNames.TicketStatusChanged]: {
3934
+ key: TextHelpDeskTriggerNames.TicketStatusChanged,
3935
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketStatusChanged,
3936
+ type: "webhook",
3937
+ customization: {
3938
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3939
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3940
+ icon: PRODUCT_TYPE.HD,
3941
+ displayName: "Ticket status changed",
3942
+ shortDescription: "Ticket status changed",
3943
+ description: "Triggers when a ticket status has changed."
3944
+ },
3945
+ specification: {
3946
+ output: webhookSpecs.ticket_status_changed.output
3947
+ }
3948
+ },
3949
+ [TextHelpDeskTriggerNames.TicketPriorityChanged]: {
3950
+ key: TextHelpDeskTriggerNames.TicketPriorityChanged,
3951
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketPriorityChanged,
3952
+ type: "webhook",
3953
+ customization: {
3954
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3955
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3956
+ icon: PRODUCT_TYPE.HD,
3957
+ displayName: "Ticket priority changed",
3958
+ shortDescription: "Ticket priority changed",
3959
+ description: "Triggers when a ticket priority has changed."
3960
+ },
3961
+ specification: {
3962
+ output: webhookSpecs.ticket_priority_changed.output
3963
+ }
3964
+ },
3965
+ [TextHelpDeskTriggerNames.TicketTagsChanged]: {
3966
+ key: TextHelpDeskTriggerNames.TicketTagsChanged,
3967
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketTagsChanged,
3968
+ type: "webhook",
3969
+ customization: {
3970
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3971
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3972
+ icon: PRODUCT_TYPE.HD,
3973
+ displayName: "Ticket tags changed",
3974
+ shortDescription: "Ticket tags changed",
3975
+ description: "Triggers when a ticket tags has changed."
3976
+ },
3977
+ specification: {
3978
+ output: webhookSpecs.ticket_tags_changed.output
3979
+ }
3980
+ },
3981
+ [TextHelpDeskTriggerNames.TicketFollowersChanged]: {
3982
+ key: TextHelpDeskTriggerNames.TicketFollowersChanged,
3983
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketFollowersChanged,
3984
+ type: "webhook",
3985
+ customization: {
3986
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
3987
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
3988
+ icon: PRODUCT_TYPE.HD,
3989
+ displayName: "Ticket followers changed",
3990
+ shortDescription: "Ticket followers changed",
3991
+ description: "Triggers when a ticket followers has changed."
3992
+ },
3993
+ specification: {
3994
+ output: webhookSpecs.ticket_followers_changed.output
3995
+ }
3996
+ },
3997
+ [TextHelpDeskTriggerNames.TicketAssignmentChanged]: {
3998
+ key: TextHelpDeskTriggerNames.TicketAssignmentChanged,
3999
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketAssignmentChanged,
4000
+ type: "webhook",
4001
+ customization: {
4002
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
4003
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
4004
+ icon: PRODUCT_TYPE.HD,
4005
+ displayName: "Ticket assignment changed",
4006
+ shortDescription: "Ticket assignment changed",
4007
+ description: "Triggers when a ticket assignment has changed."
4008
+ },
4009
+ specification: {
4010
+ output: webhookSpecs.ticket_assignment_changed.output
4011
+ }
4012
+ },
4013
+ [TextHelpDeskTriggerNames.TicketMessageAdded]: {
4014
+ key: TextHelpDeskTriggerNames.TicketMessageAdded,
4015
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketMessageAdded,
4016
+ type: "webhook",
4017
+ customization: {
4018
+ provider: import_developer_studio_api4.IntegrationNames.HelpDesk,
4019
+ product: import_developer_studio_api4.IntegrationDisplayNames.HelpDesk,
4020
+ icon: PRODUCT_TYPE.HD,
4021
+ displayName: "Ticket message added",
4022
+ shortDescription: "Ticket message added",
4023
+ description: "Triggers when a messages was added to ticket."
4024
+ },
4025
+ specification: {
4026
+ output: webhookSpecs.ticket_message_added.output
4027
+ }
4028
+ }
4029
+ });
4030
+ var helpdeskTriggerTemplates = () => ({
4031
+ [TextHelpDeskTriggerNames.TicketCreated]: {
4032
+ type: "webhook",
4033
+ webhook: {
4034
+ source: import_developer_studio_api4.IntegrationNames.HelpDesk,
4035
+ event: {
4036
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketCreated
4037
+ },
4038
+ headers: {
4039
+ "x-adapter-text-token": ["${workflow.credentials.text.access_token}"]
4040
+ }
4041
+ }
4042
+ },
4043
+ [TextHelpDeskTriggerNames.TicketUpdated]: {
4044
+ type: "webhook",
4045
+ webhook: {
4046
+ source: import_developer_studio_api4.IntegrationNames.HelpDesk,
4047
+ event: {
4048
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketUpdated
4049
+ },
4050
+ headers: {
4051
+ "x-adapter-text-token": ["${workflow.credentials.text.access_token}"]
4052
+ }
4053
+ }
4054
+ },
4055
+ [TextHelpDeskTriggerNames.TicketStatusChanged]: {
4056
+ type: "webhook",
4057
+ webhook: {
4058
+ source: import_developer_studio_api4.IntegrationNames.HelpDesk,
4059
+ event: {
4060
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketStatusChanged
4061
+ },
4062
+ headers: {
4063
+ "x-adapter-text-token": ["${workflow.credentials.text.access_token}"]
4064
+ }
4065
+ }
4066
+ },
4067
+ [TextHelpDeskTriggerNames.TicketPriorityChanged]: {
4068
+ type: "webhook",
4069
+ webhook: {
4070
+ source: import_developer_studio_api4.IntegrationNames.HelpDesk,
4071
+ event: {
4072
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketPriorityChanged
4073
+ },
4074
+ headers: {
4075
+ "x-adapter-text-token": ["${workflow.credentials.text.access_token}"]
4076
+ }
4077
+ }
4078
+ },
4079
+ [TextHelpDeskTriggerNames.TicketTagsChanged]: {
4080
+ type: "webhook",
4081
+ webhook: {
4082
+ source: import_developer_studio_api4.IntegrationNames.HelpDesk,
4083
+ event: {
4084
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketTagsChanged
4085
+ },
4086
+ headers: {
4087
+ "x-adapter-text-token": ["${workflow.credentials.text.access_token}"]
4088
+ }
4089
+ }
4090
+ },
4091
+ [TextHelpDeskTriggerNames.TicketFollowersChanged]: {
4092
+ type: "webhook",
4093
+ webhook: {
4094
+ source: import_developer_studio_api4.IntegrationNames.HelpDesk,
4095
+ event: {
4096
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketFollowersChanged
4097
+ },
4098
+ headers: {
4099
+ "x-adapter-text-token": ["${workflow.credentials.text.access_token}"]
4100
+ }
4101
+ }
4102
+ },
4103
+ [TextHelpDeskTriggerNames.TicketAssignmentChanged]: {
4104
+ type: "webhook",
4105
+ webhook: {
4106
+ source: import_developer_studio_api4.IntegrationNames.HelpDesk,
4107
+ event: {
4108
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketAssignmentChanged
4109
+ },
4110
+ headers: {
4111
+ "x-adapter-text-token": ["${workflow.credentials.text.access_token}"]
4112
+ }
4113
+ }
4114
+ },
4115
+ [TextHelpDeskTriggerNames.TicketMessageAdded]: {
4116
+ type: "webhook",
4117
+ webhook: {
4118
+ source: import_developer_studio_api4.IntegrationNames.HelpDesk,
4119
+ event: {
4120
+ name: import_developer_studio_api4.TextHelpDeskEventNames.TicketMessageAdded
4121
+ },
4122
+ headers: {
4123
+ "x-adapter-text-token": ["${workflow.credentials.text.access_token}"]
4124
+ }
4125
+ }
4126
+ }
4127
+ });
3836
4128
 
3837
4129
  // src/views/Flows/Definitions/Mocks/HubSpot/index.ts
3838
4130
  var import_developer_studio_api5 = require("@livechat/developer-studio-api");
@@ -4148,7 +4440,7 @@ var hubSpotTriggerTemplates = () => ({
4148
4440
 
4149
4441
  // src/views/Flows/Definitions/Mocks/LiveChat/index.ts
4150
4442
  var import_developer_studio_api6 = require("@livechat/developer-studio-api");
4151
- var webhookSpecs = {
4443
+ var webhookSpecs2 = {
4152
4444
  new_chat: {
4153
4445
  output: {
4154
4446
  type: "object",
@@ -4720,9 +5012,9 @@ var livechatTaskConfigs = () => ({
4720
5012
  "workflowsApiUr"
4721
5013
  )}/functions/transfer-livechat-chat`,
4722
5014
  customization: {
4723
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4724
- product: PRODUCT_NAMES.livechat,
4725
- icon: PRODUCT_TYPE.LC,
5015
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5016
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5017
+ icon: import_developer_studio_api6.IntegrationNames.LiveChat,
4726
5018
  displayName: "Transfer chat",
4727
5019
  shortDescription: "Transfer chat",
4728
5020
  description: "Transfers chat to appropriate agents or groups."
@@ -4763,8 +5055,8 @@ var livechatTaskConfigs = () => ({
4763
5055
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4764
5056
  url: `${getWorkflowsEnv("workflowsApiUr")}/functions/tag-livechat-chat`,
4765
5057
  customization: {
4766
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4767
- product: PRODUCT_NAMES.livechat,
5058
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5059
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
4768
5060
  icon: PRODUCT_TYPE.LC,
4769
5061
  displayName: "Tag chat",
4770
5062
  shortDescription: "Tag chat",
@@ -4801,8 +5093,8 @@ var livechatTaskConfigs = () => ({
4801
5093
  "workflowsApiUr"
4802
5094
  )}/functions/get-livechat-chat-transcript`,
4803
5095
  customization: {
4804
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4805
- product: PRODUCT_NAMES.livechat,
5096
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5097
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
4806
5098
  icon: PRODUCT_TYPE.LC,
4807
5099
  displayName: "Chat transcript",
4808
5100
  shortDescription: "Get chat transcript",
@@ -4852,8 +5144,8 @@ var livechatTaskConfigs = () => ({
4852
5144
  "workflowsApiUr"
4853
5145
  )}/functions/send-livechat-agent-message`,
4854
5146
  customization: {
4855
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4856
- product: PRODUCT_NAMES.livechat,
5147
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5148
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
4857
5149
  icon: PRODUCT_TYPE.LC,
4858
5150
  displayName: "Send message",
4859
5151
  shortDescription: "Send message",
@@ -4893,8 +5185,8 @@ var livechatTaskConfigs = () => ({
4893
5185
  "workflowsApiUr"
4894
5186
  )}/functions/supervise-livechat-chat`,
4895
5187
  customization: {
4896
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4897
- product: PRODUCT_NAMES.livechat,
5188
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5189
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
4898
5190
  icon: PRODUCT_TYPE.LC,
4899
5191
  displayName: "Supervise chat",
4900
5192
  shortDescription: "Supervise chat",
@@ -5018,15 +5310,15 @@ var livechatTaskTemplates = () => ({
5018
5310
  })
5019
5311
  });
5020
5312
  var TextLiveChatTriggerNames = {
5021
- ChatStarted: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}-${import_developer_studio_api6.TextLivechatEventNames.ChatStarted}`,
5022
- ChatEnded: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}-${import_developer_studio_api6.TextLivechatEventNames.ChatEnded}`,
5023
- ChatTransferred: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}-${import_developer_studio_api6.TextLivechatEventNames.ChatTransferred}`,
5024
- ChatTagged: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}-${import_developer_studio_api6.TextLivechatEventNames.ChatTagged}`,
5025
- ChatRated: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}-${import_developer_studio_api6.TextLivechatEventNames.ChatRated}`,
5026
- ChatCommented: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}-${import_developer_studio_api6.TextLivechatEventNames.ChatCommented}`,
5027
- ChatMessage: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}-${import_developer_studio_api6.TextLivechatEventNames.ChatMessage}`,
5028
- UserAddedToChat: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}-${import_developer_studio_api6.TextLivechatEventNames.UserAddedToChat}`,
5029
- UserRemovedFromChat: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}-${import_developer_studio_api6.TextLivechatEventNames.UserRemovedFromChat}`
5313
+ ChatStarted: `${import_developer_studio_api6.IntegrationNames.LiveChat}-${import_developer_studio_api6.TextLivechatEventNames.ChatStarted}`,
5314
+ ChatEnded: `${import_developer_studio_api6.IntegrationNames.LiveChat}-${import_developer_studio_api6.TextLivechatEventNames.ChatEnded}`,
5315
+ ChatTransferred: `${import_developer_studio_api6.IntegrationNames.LiveChat}-${import_developer_studio_api6.TextLivechatEventNames.ChatTransferred}`,
5316
+ ChatTagged: `${import_developer_studio_api6.IntegrationNames.LiveChat}-${import_developer_studio_api6.TextLivechatEventNames.ChatTagged}`,
5317
+ ChatRated: `${import_developer_studio_api6.IntegrationNames.LiveChat}-${import_developer_studio_api6.TextLivechatEventNames.ChatRated}`,
5318
+ ChatCommented: `${import_developer_studio_api6.IntegrationNames.LiveChat}-${import_developer_studio_api6.TextLivechatEventNames.ChatCommented}`,
5319
+ ChatMessage: `${import_developer_studio_api6.IntegrationNames.LiveChat}-${import_developer_studio_api6.TextLivechatEventNames.ChatMessage}`,
5320
+ UserAddedToChat: `${import_developer_studio_api6.IntegrationNames.LiveChat}-${import_developer_studio_api6.TextLivechatEventNames.UserAddedToChat}`,
5321
+ UserRemovedFromChat: `${import_developer_studio_api6.IntegrationNames.LiveChat}-${import_developer_studio_api6.TextLivechatEventNames.UserRemovedFromChat}`
5030
5322
  };
5031
5323
  var livechatTriggerConfigs = () => ({
5032
5324
  [TextLiveChatTriggerNames.ChatStarted]: {
@@ -5034,15 +5326,15 @@ var livechatTriggerConfigs = () => ({
5034
5326
  name: import_developer_studio_api6.TextLivechatEventNames.ChatStarted,
5035
5327
  type: "webhook",
5036
5328
  customization: {
5037
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5038
- product: "LiveChat",
5329
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5330
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5039
5331
  icon: PRODUCT_TYPE.LC,
5040
5332
  displayName: "Chat started",
5041
5333
  shortDescription: "Chat started",
5042
5334
  description: "Triggers when a new chat is initiated."
5043
5335
  },
5044
5336
  specification: {
5045
- output: webhookSpecs.new_chat.output
5337
+ output: webhookSpecs2.new_chat.output
5046
5338
  }
5047
5339
  },
5048
5340
  [TextLiveChatTriggerNames.UserAddedToChat]: {
@@ -5050,15 +5342,15 @@ var livechatTriggerConfigs = () => ({
5050
5342
  name: import_developer_studio_api6.TextLivechatEventNames.UserAddedToChat,
5051
5343
  type: "webhook",
5052
5344
  customization: {
5053
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5054
- product: "LiveChat",
5345
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5346
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5055
5347
  icon: PRODUCT_TYPE.LC,
5056
5348
  displayName: "Agent assigned",
5057
5349
  shortDescription: "Agent assigned",
5058
5350
  description: "Triggers when an agent is assigned to a specific chat."
5059
5351
  },
5060
5352
  specification: {
5061
- output: webhookSpecs.agent_assigned.output
5353
+ output: webhookSpecs2.agent_assigned.output
5062
5354
  }
5063
5355
  },
5064
5356
  [TextLiveChatTriggerNames.ChatRated]: {
@@ -5066,8 +5358,8 @@ var livechatTriggerConfigs = () => ({
5066
5358
  name: import_developer_studio_api6.TextLivechatEventNames.ChatRated,
5067
5359
  type: "webhook",
5068
5360
  customization: {
5069
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5070
- product: "LiveChat",
5361
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5362
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5071
5363
  icon: PRODUCT_TYPE.LC,
5072
5364
  displayName: "Chat rated",
5073
5365
  shortDescription: "Chat rated",
@@ -5089,7 +5381,7 @@ var livechatTriggerConfigs = () => ({
5089
5381
  }
5090
5382
  }
5091
5383
  },
5092
- output: webhookSpecs.feedback_received.output
5384
+ output: webhookSpecs2.feedback_received.output
5093
5385
  }
5094
5386
  },
5095
5387
  [TextLiveChatTriggerNames.ChatMessage]: {
@@ -5097,16 +5389,16 @@ var livechatTriggerConfigs = () => ({
5097
5389
  name: import_developer_studio_api6.TextLivechatEventNames.ChatMessage,
5098
5390
  type: "webhook",
5099
5391
  customization: {
5100
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5101
- product: "LiveChat",
5392
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5393
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5102
5394
  icon: PRODUCT_TYPE.LC,
5103
5395
  displayName: "Specific keywords in chat",
5104
5396
  shortDescription: "Specific keywords in chat",
5105
5397
  description: "Triggers when specific keywords are sent in the chat."
5106
5398
  },
5107
5399
  specification: {
5108
- input: webhookSpecs.specific_keyword.input,
5109
- output: webhookSpecs.specific_keyword.output
5400
+ input: webhookSpecs2.specific_keyword.input,
5401
+ output: webhookSpecs2.specific_keyword.output
5110
5402
  }
5111
5403
  },
5112
5404
  [TextLiveChatTriggerNames.UserRemovedFromChat]: {
@@ -5114,15 +5406,15 @@ var livechatTriggerConfigs = () => ({
5114
5406
  name: import_developer_studio_api6.TextLivechatEventNames.UserRemovedFromChat,
5115
5407
  type: "webhook",
5116
5408
  customization: {
5117
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5118
- product: "LiveChat",
5409
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5410
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5119
5411
  icon: PRODUCT_TYPE.LC,
5120
5412
  displayName: "Visitor leaves chat",
5121
5413
  shortDescription: "Visitor leaves chat",
5122
5414
  description: "Triggers when a visitor exits a chat before completion."
5123
5415
  },
5124
5416
  specification: {
5125
- output: webhookSpecs.visitor_leaves.output
5417
+ output: webhookSpecs2.visitor_leaves.output
5126
5418
  }
5127
5419
  },
5128
5420
  [TextLiveChatTriggerNames.ChatEnded]: {
@@ -5130,15 +5422,15 @@ var livechatTriggerConfigs = () => ({
5130
5422
  name: import_developer_studio_api6.TextLivechatEventNames.ChatEnded,
5131
5423
  type: "webhook",
5132
5424
  customization: {
5133
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5134
- product: "LiveChat",
5425
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5426
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5135
5427
  icon: PRODUCT_TYPE.LC,
5136
5428
  displayName: "Chat ended",
5137
5429
  shortDescription: "Chat ended",
5138
5430
  description: "Triggers when a chat is finished."
5139
5431
  },
5140
5432
  specification: {
5141
- output: webhookSpecs.chat_ended.output
5433
+ output: webhookSpecs2.chat_ended.output
5142
5434
  }
5143
5435
  },
5144
5436
  [TextLiveChatTriggerNames.ChatTransferred]: {
@@ -5146,15 +5438,15 @@ var livechatTriggerConfigs = () => ({
5146
5438
  name: import_developer_studio_api6.TextLivechatEventNames.ChatTransferred,
5147
5439
  type: "webhook",
5148
5440
  customization: {
5149
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5150
- product: "LiveChat",
5441
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5442
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5151
5443
  icon: PRODUCT_TYPE.LC,
5152
5444
  displayName: "Chat transferred",
5153
5445
  shortDescription: "Chat transferred",
5154
5446
  description: "Triggers when a chat is transferred between agents or groups."
5155
5447
  },
5156
5448
  specification: {
5157
- output: webhookSpecs.chat_transferred.output
5449
+ output: webhookSpecs2.chat_transferred.output
5158
5450
  }
5159
5451
  },
5160
5452
  [TextLiveChatTriggerNames.ChatCommented]: {
@@ -5162,15 +5454,15 @@ var livechatTriggerConfigs = () => ({
5162
5454
  name: import_developer_studio_api6.TextLivechatEventNames.ChatCommented,
5163
5455
  type: "webhook",
5164
5456
  customization: {
5165
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5166
- product: "LiveChat",
5457
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5458
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5167
5459
  icon: PRODUCT_TYPE.LC,
5168
5460
  displayName: "Chat commented",
5169
5461
  shortDescription: "Chat commented",
5170
5462
  description: "Triggers when a chat is commented."
5171
5463
  },
5172
5464
  specification: {
5173
- output: webhookSpecs.chat_commented.output
5465
+ output: webhookSpecs2.chat_commented.output
5174
5466
  }
5175
5467
  },
5176
5468
  [TextLiveChatTriggerNames.ChatTagged]: {
@@ -5178,16 +5470,16 @@ var livechatTriggerConfigs = () => ({
5178
5470
  name: import_developer_studio_api6.TextLivechatEventNames.ChatTagged,
5179
5471
  type: "webhook",
5180
5472
  customization: {
5181
- provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5182
- product: "LiveChat",
5473
+ provider: import_developer_studio_api6.IntegrationNames.LiveChat,
5474
+ product: import_developer_studio_api6.IntegrationDisplayNames.LiveChat,
5183
5475
  icon: PRODUCT_TYPE.LC,
5184
5476
  displayName: "Chat tagged",
5185
5477
  shortDescription: "Chat tagged",
5186
5478
  description: "Triggers when a chat is tagged."
5187
5479
  },
5188
5480
  specification: {
5189
- input: webhookSpecs.chat_tagged.input,
5190
- output: webhookSpecs.chat_tagged.output
5481
+ input: webhookSpecs2.chat_tagged.input,
5482
+ output: webhookSpecs2.chat_tagged.output
5191
5483
  }
5192
5484
  }
5193
5485
  });
@@ -5195,7 +5487,7 @@ var livechatTriggerTemplates = () => ({
5195
5487
  [TextLiveChatTriggerNames.ChatEnded]: {
5196
5488
  type: "webhook",
5197
5489
  webhook: {
5198
- source: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5490
+ source: import_developer_studio_api6.IntegrationNames.LiveChat,
5199
5491
  event: {
5200
5492
  name: import_developer_studio_api6.TextLivechatEventNames.ChatEnded
5201
5493
  },
@@ -5207,7 +5499,7 @@ var livechatTriggerTemplates = () => ({
5207
5499
  [TextLiveChatTriggerNames.ChatTransferred]: {
5208
5500
  type: "webhook",
5209
5501
  webhook: {
5210
- source: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5502
+ source: import_developer_studio_api6.IntegrationNames.LiveChat,
5211
5503
  event: {
5212
5504
  name: import_developer_studio_api6.TextLivechatEventNames.ChatTransferred
5213
5505
  },
@@ -5219,7 +5511,7 @@ var livechatTriggerTemplates = () => ({
5219
5511
  [TextLiveChatTriggerNames.ChatStarted]: {
5220
5512
  type: "webhook",
5221
5513
  webhook: {
5222
- source: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5514
+ source: import_developer_studio_api6.IntegrationNames.LiveChat,
5223
5515
  event: {
5224
5516
  name: import_developer_studio_api6.TextLivechatEventNames.ChatStarted
5225
5517
  },
@@ -5231,7 +5523,7 @@ var livechatTriggerTemplates = () => ({
5231
5523
  [TextLiveChatTriggerNames.UserRemovedFromChat]: {
5232
5524
  type: "webhook",
5233
5525
  webhook: {
5234
- source: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5526
+ source: import_developer_studio_api6.IntegrationNames.LiveChat,
5235
5527
  event: {
5236
5528
  name: import_developer_studio_api6.TextLivechatEventNames.UserRemovedFromChat
5237
5529
  },
@@ -5243,7 +5535,7 @@ var livechatTriggerTemplates = () => ({
5243
5535
  [TextLiveChatTriggerNames.ChatRated]: {
5244
5536
  type: "webhook",
5245
5537
  webhook: {
5246
- source: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5538
+ source: import_developer_studio_api6.IntegrationNames.LiveChat,
5247
5539
  event: {
5248
5540
  name: import_developer_studio_api6.TextLivechatEventNames.ChatRated,
5249
5541
  rating: "all"
@@ -5256,7 +5548,7 @@ var livechatTriggerTemplates = () => ({
5256
5548
  [TextLiveChatTriggerNames.UserAddedToChat]: {
5257
5549
  type: "webhook",
5258
5550
  webhook: {
5259
- source: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5551
+ source: import_developer_studio_api6.IntegrationNames.LiveChat,
5260
5552
  event: {
5261
5553
  name: import_developer_studio_api6.TextLivechatEventNames.UserAddedToChat
5262
5554
  },
@@ -5268,7 +5560,7 @@ var livechatTriggerTemplates = () => ({
5268
5560
  [TextLiveChatTriggerNames.ChatMessage]: {
5269
5561
  type: "webhook",
5270
5562
  webhook: {
5271
- source: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5563
+ source: import_developer_studio_api6.IntegrationNames.LiveChat,
5272
5564
  event: {
5273
5565
  name: import_developer_studio_api6.TextLivechatEventNames.ChatMessage,
5274
5566
  filter: ""
@@ -5281,7 +5573,7 @@ var livechatTriggerTemplates = () => ({
5281
5573
  [TextLiveChatTriggerNames.ChatCommented]: {
5282
5574
  type: "webhook",
5283
5575
  webhook: {
5284
- source: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5576
+ source: import_developer_studio_api6.IntegrationNames.LiveChat,
5285
5577
  event: {
5286
5578
  name: import_developer_studio_api6.TextLivechatEventNames.ChatCommented
5287
5579
  },
@@ -5293,7 +5585,7 @@ var livechatTriggerTemplates = () => ({
5293
5585
  [TextLiveChatTriggerNames.ChatTagged]: {
5294
5586
  type: "webhook",
5295
5587
  webhook: {
5296
- source: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
5588
+ source: import_developer_studio_api6.IntegrationNames.LiveChat,
5297
5589
  event: {
5298
5590
  name: import_developer_studio_api6.TextLivechatEventNames.ChatTagged,
5299
5591
  tag: "tag",
@@ -5417,7 +5709,7 @@ var mailchimpCampaignSettingsBody = {
5417
5709
  }
5418
5710
  }
5419
5711
  };
5420
- var webhookSpecs2 = {
5712
+ var webhookSpecs3 = {
5421
5713
  new_audience: {
5422
5714
  output: {
5423
5715
  type: "object",
@@ -6897,7 +7189,7 @@ var mailchimpTriggerConfigs = () => ({
6897
7189
  }
6898
7190
  }
6899
7191
  },
6900
- output: webhookSpecs2.new_subscriber.output
7192
+ output: webhookSpecs3.new_subscriber.output
6901
7193
  }
6902
7194
  },
6903
7195
  [MailchimpTriggerNames.Unsubscribed]: {
@@ -6924,7 +7216,7 @@ var mailchimpTriggerConfigs = () => ({
6924
7216
  }
6925
7217
  }
6926
7218
  },
6927
- output: webhookSpecs2.new_unsubscriber.output
7219
+ output: webhookSpecs3.new_unsubscriber.output
6928
7220
  }
6929
7221
  }
6930
7222
  });
@@ -7711,7 +8003,7 @@ var shopifyProductBody = {
7711
8003
  }
7712
8004
  }
7713
8005
  };
7714
- var webhookSpecs3 = {
8006
+ var webhookSpecs4 = {
7715
8007
  new_paid_order: {
7716
8008
  output: {
7717
8009
  type: "object",
@@ -8471,7 +8763,7 @@ var shopifyTriggerConfigs = () => ({
8471
8763
  description: "Triggers when a new order is created"
8472
8764
  },
8473
8765
  specification: {
8474
- output: webhookSpecs3.new_paid_order.output
8766
+ output: webhookSpecs4.new_paid_order.output
8475
8767
  }
8476
8768
  }
8477
8769
  });
@@ -8511,7 +8803,7 @@ var WorkflowItemsConfiguration = class {
8511
8803
  var getWorkflowItemConfigs = () => {
8512
8804
  return {
8513
8805
  tasks: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, livechatTaskConfigs()), helpdeskTaskConfigs()), mailchimpTaskConfigs()), shopifyTaskConfigs()), hubspotTaskConfigs()), bigCommerceTaskConfigs()), openAiTaskConfigs()), systemTaskConfigs()),
8514
- triggers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, livechatTriggerConfigs()), mailchimpTriggerConfigs()), shopifyTriggerConfigs()), hubspotTriggerConfigs()), bigcommerceTriggerConfigs()), systemTriggerConfigs())
8806
+ triggers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, livechatTriggerConfigs()), helpDeskTriggerConfigs()), mailchimpTriggerConfigs()), shopifyTriggerConfigs()), hubspotTriggerConfigs()), bigcommerceTriggerConfigs()), systemTriggerConfigs())
8515
8807
  };
8516
8808
  };
8517
8809
  var getWorkflowItemTemplates = () => ({
@@ -8527,6 +8819,7 @@ var getWorkflowItemTemplates = () => ({
8527
8819
  },
8528
8820
  triggers: {
8529
8821
  livechat: livechatTriggerTemplates(),
8822
+ helpdesk: helpdeskTriggerTemplates(),
8530
8823
  mailchimp: mailchimpTriggerTemplates(),
8531
8824
  shopify: shopifyTriggerTemplates(),
8532
8825
  hubspot: hubSpotTriggerTemplates(),
@@ -14711,8 +15004,8 @@ var Text_default = GlobalAccounts;
14711
15004
 
14712
15005
  // src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/Wrapper.tsx
14713
15006
  var componentsMap = {
14714
- [`${import_developer_studio_api21.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`]: ({ product }) => /* @__PURE__ */ jsx2(Text_default, { product }),
14715
- [`${import_developer_studio_api21.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`]: ({ product }) => /* @__PURE__ */ jsx2(Text_default, { product }),
15007
+ [import_developer_studio_api21.IntegrationNames.HelpDesk]: ({ product }) => /* @__PURE__ */ jsx2(Text_default, { product }),
15008
+ [import_developer_studio_api21.IntegrationNames.LiveChat]: ({ product }) => /* @__PURE__ */ jsx2(Text_default, { product }),
14716
15009
  [import_developer_studio_api21.IntegrationNames.Shopify]: () => /* @__PURE__ */ jsx2(import_platform_integrations5.ShopifyStatus, {}),
14717
15010
  [import_developer_studio_api21.IntegrationNames.Mailchimp]: () => /* @__PURE__ */ jsx2(import_platform_integrations5.MailchimpStatus, {}),
14718
15011
  [import_developer_studio_api21.IntegrationNames.BigCommerce]: () => /* @__PURE__ */ jsx2(import_platform_integrations5.BigCommerceStatus, {}),
@@ -19421,6 +19714,16 @@ function AddWorkflowTrigger({ basePath, onClose }) {
19421
19714
  secondaryText: x.customization.description
19422
19715
  }))
19423
19716
  },
19717
+ // {
19718
+ // name: PRODUCT_TYPE.HD,
19719
+ // displayName: PRODUCT_NAMES.helpdesk,
19720
+ // icon: <ProductIcon height={5} product={PRODUCT_TYPE.HD} width={5} />,
19721
+ // values: Object.values(helpDeskTriggerConfigs()).map((x) => ({
19722
+ // key: x.key,
19723
+ // name: x.customization.displayName,
19724
+ // secondaryText: x.customization.description,
19725
+ // })),
19726
+ // },
19424
19727
  {
19425
19728
  name: import_developer_studio_api26.IntegrationNames.Mailchimp,
19426
19729
  displayName: import_developer_studio_api26.IntegrationDisplayNames.Mailchimp,
@@ -20125,19 +20428,19 @@ var getFlowTemplates = () => [
20125
20428
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.Chatgpt, import_design_system_icons32.HelpDeskColored],
20126
20429
  list: [
20127
20430
  {
20128
- product: "LiveChat" /* LiveChat */,
20431
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20129
20432
  description: "Detects when a chat ends"
20130
20433
  },
20131
20434
  {
20132
- product: "LiveChat" /* LiveChat */,
20435
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20133
20436
  description: "Pulls the full chat transcript"
20134
20437
  },
20135
20438
  {
20136
- product: "OpenAI" /* OpenAI */,
20439
+ product: import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
20137
20440
  description: "Creates a summary of the chat"
20138
20441
  },
20139
20442
  {
20140
- product: "HelpDesk" /* HelpDesk */,
20443
+ product: import_developer_studio_api27.IntegrationDisplayNames.HelpDesk,
20141
20444
  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"
20142
20445
  }
20143
20446
  ],
@@ -20148,7 +20451,7 @@ var getFlowTemplates = () => [
20148
20451
  trigger: {
20149
20452
  type: "webhook",
20150
20453
  webhook: {
20151
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
20454
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
20152
20455
  event: {
20153
20456
  name: import_developer_studio_api27.TextLivechatEventNames.ChatEnded
20154
20457
  },
@@ -20241,9 +20544,9 @@ var getFlowTemplates = () => [
20241
20544
  }
20242
20545
  },
20243
20546
  products: [
20244
- "LiveChat" /* LiveChat */,
20245
- "OpenAI" /* OpenAI */,
20246
- "HelpDesk" /* HelpDesk */
20547
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20548
+ import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
20549
+ import_developer_studio_api27.IntegrationDisplayNames.HelpDesk
20247
20550
  ],
20248
20551
  category: "Chat management" /* ChatManagement */
20249
20552
  },
@@ -20253,23 +20556,23 @@ var getFlowTemplates = () => [
20253
20556
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.Chatgpt, import_design_system_icons32.HelpDeskColored, import_design_system_icons32.Mailchimp],
20254
20557
  list: [
20255
20558
  {
20256
- product: "LiveChat" /* LiveChat */,
20559
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20257
20560
  description: "Detects when a competitor is mentioned in the chat based on keywords"
20258
20561
  },
20259
20562
  {
20260
- product: "LiveChat" /* LiveChat */,
20563
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20261
20564
  description: "Pulls the chat transcript data for analysis"
20262
20565
  },
20263
20566
  {
20264
- product: "OpenAI" /* OpenAI */,
20567
+ product: import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
20265
20568
  description: "Analyzes the competitor mention in the context of sentiment"
20266
20569
  },
20267
20570
  {
20268
- product: "HelpDesk" /* HelpDesk */,
20571
+ product: import_developer_studio_api27.IntegrationDisplayNames.HelpDesk,
20269
20572
  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"
20270
20573
  },
20271
20574
  {
20272
- product: "Mailchimp" /* Mailchimp */,
20575
+ product: import_developer_studio_api27.IntegrationDisplayNames.Mailchimp,
20273
20576
  description: "Adds a note to the customer in your Mailchimp"
20274
20577
  }
20275
20578
  ],
@@ -20383,7 +20686,7 @@ var getFlowTemplates = () => [
20383
20686
  trigger: {
20384
20687
  type: "webhook",
20385
20688
  webhook: {
20386
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
20689
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
20387
20690
  event: {
20388
20691
  name: import_developer_studio_api27.TextLivechatEventNames.ChatMessage,
20389
20692
  filter: "competitor"
@@ -20397,10 +20700,10 @@ var getFlowTemplates = () => [
20397
20700
  }
20398
20701
  },
20399
20702
  products: [
20400
- "LiveChat" /* LiveChat */,
20401
- "OpenAI" /* OpenAI */,
20402
- "HelpDesk" /* HelpDesk */,
20403
- "Mailchimp" /* Mailchimp */
20703
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20704
+ import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
20705
+ import_developer_studio_api27.IntegrationDisplayNames.HelpDesk,
20706
+ import_developer_studio_api27.IntegrationDisplayNames.Mailchimp
20404
20707
  ],
20405
20708
  category: "Notifications & alerts" /* NotificationAndAlerts */
20406
20709
  },
@@ -20410,23 +20713,23 @@ var getFlowTemplates = () => [
20410
20713
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.Chatgpt, import_design_system_icons32.HelpDeskColored, import_design_system_icons32.Mailchimp],
20411
20714
  list: [
20412
20715
  {
20413
- product: "LiveChat" /* LiveChat */,
20716
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20414
20717
  description: "Detects when a chat ends"
20415
20718
  },
20416
20719
  {
20417
- product: "LiveChat" /* LiveChat */,
20720
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20418
20721
  description: "Pulls the chat transcript data"
20419
20722
  },
20420
20723
  {
20421
- product: "OpenAI" /* OpenAI */,
20724
+ product: import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
20422
20725
  description: "Summarizes the chat transcript"
20423
20726
  },
20424
20727
  {
20425
- product: "HelpDesk" /* HelpDesk */,
20728
+ product: import_developer_studio_api27.IntegrationDisplayNames.HelpDesk,
20426
20729
  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"
20427
20730
  },
20428
20731
  {
20429
- product: "Mailchimp" /* Mailchimp */,
20732
+ product: import_developer_studio_api27.IntegrationDisplayNames.Mailchimp,
20430
20733
  description: "Adds a custom note to the customer in Mailchimp"
20431
20734
  }
20432
20735
  ],
@@ -20539,7 +20842,7 @@ var getFlowTemplates = () => [
20539
20842
  trigger: {
20540
20843
  type: "webhook",
20541
20844
  webhook: {
20542
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
20845
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
20543
20846
  event: {
20544
20847
  name: import_developer_studio_api27.TextLivechatEventNames.ChatEnded
20545
20848
  },
@@ -20552,10 +20855,10 @@ var getFlowTemplates = () => [
20552
20855
  }
20553
20856
  },
20554
20857
  products: [
20555
- "LiveChat" /* LiveChat */,
20556
- "OpenAI" /* OpenAI */,
20557
- "HelpDesk" /* HelpDesk */,
20558
- "Mailchimp" /* Mailchimp */
20858
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20859
+ import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
20860
+ import_developer_studio_api27.IntegrationDisplayNames.HelpDesk,
20861
+ import_developer_studio_api27.IntegrationDisplayNames.Mailchimp
20559
20862
  ],
20560
20863
  category: "Chat management" /* ChatManagement */
20561
20864
  },
@@ -20565,23 +20868,23 @@ var getFlowTemplates = () => [
20565
20868
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.ShopifyColored, import_design_system_icons32.Chatgpt, import_design_system_icons32.Mailchimp],
20566
20869
  list: [
20567
20870
  {
20568
- product: "LiveChat" /* LiveChat */,
20871
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20569
20872
  description: "Detects when a chat ends"
20570
20873
  },
20571
20874
  {
20572
- product: "LiveChat" /* LiveChat */,
20875
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20573
20876
  description: "Pulls the chat transcript"
20574
20877
  },
20575
20878
  {
20576
- product: "Shopify" /* Shopify */,
20879
+ product: import_developer_studio_api27.IntegrationDisplayNames.Shopify,
20577
20880
  description: "Pulls customer data from Shopify"
20578
20881
  },
20579
20882
  {
20580
- product: "OpenAI" /* OpenAI */,
20883
+ product: import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
20581
20884
  description: "Analyzes the chat sentiment"
20582
20885
  },
20583
20886
  {
20584
- product: "Mailchimp" /* Mailchimp */,
20887
+ product: import_developer_studio_api27.IntegrationDisplayNames.Mailchimp,
20585
20888
  description: "Sends a custom campaign through Mailchimp"
20586
20889
  }
20587
20890
  ],
@@ -20710,10 +21013,10 @@ var getFlowTemplates = () => [
20710
21013
  }
20711
21014
  },
20712
21015
  products: [
20713
- "LiveChat" /* LiveChat */,
20714
- "Shopify" /* Shopify */,
20715
- "OpenAI" /* OpenAI */,
20716
- "Mailchimp" /* Mailchimp */
21016
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21017
+ import_developer_studio_api27.IntegrationDisplayNames.Shopify,
21018
+ import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
21019
+ import_developer_studio_api27.IntegrationDisplayNames.Mailchimp
20717
21020
  ],
20718
21021
  category: "Sales management" /* SalesManagement */
20719
21022
  },
@@ -20723,23 +21026,23 @@ var getFlowTemplates = () => [
20723
21026
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.Chatgpt, import_design_system_icons32.Mailchimp],
20724
21027
  list: [
20725
21028
  {
20726
- product: "LiveChat" /* LiveChat */,
21029
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20727
21030
  description: "Detects when a chat ends"
20728
21031
  },
20729
21032
  {
20730
- product: "LiveChat" /* LiveChat */,
21033
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20731
21034
  description: "Pulls the chat transcript data"
20732
21035
  },
20733
21036
  {
20734
- product: "OpenAI" /* OpenAI */,
21037
+ product: import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
20735
21038
  description: "Analyzes the chat sentiment"
20736
21039
  },
20737
21040
  {
20738
- product: "Mailchimp" /* Mailchimp */,
21041
+ product: import_developer_studio_api27.IntegrationDisplayNames.Mailchimp,
20739
21042
  description: "Adds new subscriber to Mailchimp or updates existing one"
20740
21043
  },
20741
21044
  {
20742
- product: "Mailchimp" /* Mailchimp */,
21045
+ product: import_developer_studio_api27.IntegrationDisplayNames.Mailchimp,
20743
21046
  description: "Adds a custom tag to a subscriber"
20744
21047
  }
20745
21048
  ],
@@ -20849,7 +21152,7 @@ var getFlowTemplates = () => [
20849
21152
  trigger: {
20850
21153
  type: "webhook",
20851
21154
  webhook: {
20852
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
21155
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
20853
21156
  event: {
20854
21157
  name: import_developer_studio_api27.TextLivechatEventNames.ChatEnded
20855
21158
  },
@@ -20862,9 +21165,9 @@ var getFlowTemplates = () => [
20862
21165
  }
20863
21166
  },
20864
21167
  products: [
20865
- "LiveChat" /* LiveChat */,
20866
- "OpenAI" /* OpenAI */,
20867
- "Mailchimp" /* Mailchimp */
21168
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21169
+ import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
21170
+ import_developer_studio_api27.IntegrationDisplayNames.Mailchimp
20868
21171
  ],
20869
21172
  category: "Lead collection" /* LeadCollection */
20870
21173
  },
@@ -20874,11 +21177,11 @@ var getFlowTemplates = () => [
20874
21177
  icons: [import_design_system_icons32.LiveChatColored],
20875
21178
  list: [
20876
21179
  {
20877
- product: "LiveChat" /* LiveChat */,
21180
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20878
21181
  description: "Detects when a chat starts"
20879
21182
  },
20880
21183
  {
20881
- product: "LiveChat" /* LiveChat */,
21184
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20882
21185
  description: "Sends a custom message in the chat"
20883
21186
  }
20884
21187
  ],
@@ -20924,7 +21227,7 @@ var getFlowTemplates = () => [
20924
21227
  trigger: {
20925
21228
  type: "webhook",
20926
21229
  webhook: {
20927
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
21230
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
20928
21231
  event: {
20929
21232
  name: import_developer_studio_api27.TextLivechatEventNames.ChatStarted
20930
21233
  },
@@ -20936,7 +21239,7 @@ var getFlowTemplates = () => [
20936
21239
  }
20937
21240
  }
20938
21241
  },
20939
- products: ["LiveChat" /* LiveChat */],
21242
+ products: [import_developer_studio_api27.IntegrationDisplayNames.LiveChat],
20940
21243
  category: "Customer experience" /* CustomerExperience */
20941
21244
  },
20942
21245
  {
@@ -20945,19 +21248,19 @@ var getFlowTemplates = () => [
20945
21248
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.Chatgpt, import_design_system_icons32.HelpDeskColored],
20946
21249
  list: [
20947
21250
  {
20948
- product: "LiveChat" /* LiveChat */,
21251
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20949
21252
  description: "Detects when a chat receives a bad rating"
20950
21253
  },
20951
21254
  {
20952
- product: "LiveChat" /* LiveChat */,
21255
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
20953
21256
  description: "Pulls the chat transcript"
20954
21257
  },
20955
21258
  {
20956
- product: "OpenAI" /* OpenAI */,
21259
+ product: import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
20957
21260
  description: "Summarizes the chat"
20958
21261
  },
20959
21262
  {
20960
- product: "HelpDesk" /* HelpDesk */,
21263
+ product: import_developer_studio_api27.IntegrationDisplayNames.HelpDesk,
20961
21264
  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"
20962
21265
  }
20963
21266
  ],
@@ -21049,7 +21352,7 @@ var getFlowTemplates = () => [
21049
21352
  trigger: {
21050
21353
  type: "webhook",
21051
21354
  webhook: {
21052
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
21355
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
21053
21356
  event: {
21054
21357
  name: import_developer_studio_api27.TextLivechatEventNames.ChatRated,
21055
21358
  rating: "bad"
@@ -21063,9 +21366,9 @@ var getFlowTemplates = () => [
21063
21366
  }
21064
21367
  },
21065
21368
  products: [
21066
- "LiveChat" /* LiveChat */,
21067
- "OpenAI" /* OpenAI */,
21068
- "HelpDesk" /* HelpDesk */
21369
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21370
+ import_developer_studio_api27.IntegrationDisplayNames.OpenAI,
21371
+ import_developer_studio_api27.IntegrationDisplayNames.HelpDesk
21069
21372
  ],
21070
21373
  category: "Notifications & alerts" /* NotificationAndAlerts */
21071
21374
  },
@@ -21075,19 +21378,19 @@ var getFlowTemplates = () => [
21075
21378
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.ShopifyColored],
21076
21379
  list: [
21077
21380
  {
21078
- product: "LiveChat" /* LiveChat */,
21381
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21079
21382
  description: "Detects when a chat starts"
21080
21383
  },
21081
21384
  {
21082
- product: "LiveChat" /* LiveChat */,
21385
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21083
21386
  description: "Pulls the chat transcript data"
21084
21387
  },
21085
21388
  {
21086
- product: "Shopify" /* Shopify */,
21389
+ product: import_developer_studio_api27.IntegrationDisplayNames.Shopify,
21087
21390
  description: "Pulls the customer order history"
21088
21391
  },
21089
21392
  {
21090
- product: "LiveChat" /* LiveChat */,
21393
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21091
21394
  description: "Sends a message with the customer\u2019s order history visible to the agent"
21092
21395
  }
21093
21396
  ],
@@ -21173,7 +21476,7 @@ var getFlowTemplates = () => [
21173
21476
  trigger: {
21174
21477
  type: "webhook",
21175
21478
  webhook: {
21176
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
21479
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
21177
21480
  event: {
21178
21481
  name: import_developer_studio_api27.TextLivechatEventNames.ChatStarted
21179
21482
  },
@@ -21185,7 +21488,10 @@ var getFlowTemplates = () => [
21185
21488
  }
21186
21489
  }
21187
21490
  },
21188
- products: ["LiveChat" /* LiveChat */, "Shopify" /* Shopify */],
21491
+ products: [
21492
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21493
+ import_developer_studio_api27.IntegrationDisplayNames.Shopify
21494
+ ],
21189
21495
  category: "Sales management" /* SalesManagement */
21190
21496
  },
21191
21497
  {
@@ -21194,15 +21500,15 @@ var getFlowTemplates = () => [
21194
21500
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.Hubspot],
21195
21501
  list: [
21196
21502
  {
21197
- product: "LiveChat" /* LiveChat */,
21503
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21198
21504
  description: "Detects when a chat ends"
21199
21505
  },
21200
21506
  {
21201
- product: "LiveChat" /* LiveChat */,
21507
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21202
21508
  description: "Pulls the chat transcript data"
21203
21509
  },
21204
21510
  {
21205
- product: "HubSpot" /* HubSpot */,
21511
+ product: import_developer_studio_api27.IntegrationDisplayNames.HubSpot,
21206
21512
  description: "Creates a new contact in Hubspot"
21207
21513
  }
21208
21514
  ],
@@ -21270,7 +21576,7 @@ var getFlowTemplates = () => [
21270
21576
  trigger: {
21271
21577
  type: "webhook",
21272
21578
  webhook: {
21273
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
21579
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
21274
21580
  event: {
21275
21581
  name: import_developer_studio_api27.TextLivechatEventNames.ChatEnded
21276
21582
  },
@@ -21282,7 +21588,10 @@ var getFlowTemplates = () => [
21282
21588
  }
21283
21589
  }
21284
21590
  },
21285
- products: ["LiveChat" /* LiveChat */, "HubSpot" /* HubSpot */],
21591
+ products: [
21592
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21593
+ import_developer_studio_api27.IntegrationDisplayNames.HubSpot
21594
+ ],
21286
21595
  category: "Lead collection" /* LeadCollection */
21287
21596
  },
21288
21597
  {
@@ -21291,15 +21600,15 @@ var getFlowTemplates = () => [
21291
21600
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.HelpDeskColored],
21292
21601
  list: [
21293
21602
  {
21294
- product: "LiveChat" /* LiveChat */,
21603
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21295
21604
  description: "Detects when a chat starts"
21296
21605
  },
21297
21606
  {
21298
- product: "LiveChat" /* LiveChat */,
21607
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21299
21608
  description: "Pulls the chat transcript information"
21300
21609
  },
21301
21610
  {
21302
- product: "HelpDesk" /* HelpDesk */,
21611
+ product: import_developer_studio_api27.IntegrationDisplayNames.HelpDesk,
21303
21612
  description: "Creates a ticket in HelpDesk. Use the LiveChat pre-chat survey to pull the customer\u2019s email or provide a custom input"
21304
21613
  }
21305
21614
  ],
@@ -21372,7 +21681,7 @@ var getFlowTemplates = () => [
21372
21681
  trigger: {
21373
21682
  type: "webhook",
21374
21683
  webhook: {
21375
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
21684
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
21376
21685
  event: {
21377
21686
  name: import_developer_studio_api27.TextLivechatEventNames.ChatStarted
21378
21687
  },
@@ -21384,7 +21693,10 @@ var getFlowTemplates = () => [
21384
21693
  }
21385
21694
  }
21386
21695
  },
21387
- products: ["LiveChat" /* LiveChat */, "HelpDesk" /* HelpDesk */],
21696
+ products: [
21697
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21698
+ import_developer_studio_api27.IntegrationDisplayNames.HelpDesk
21699
+ ],
21388
21700
  category: "Notifications & alerts" /* NotificationAndAlerts */
21389
21701
  },
21390
21702
  {
@@ -21393,19 +21705,19 @@ var getFlowTemplates = () => [
21393
21705
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.Hubspot, import_design_system_icons32.Mailchimp],
21394
21706
  list: [
21395
21707
  {
21396
- product: "LiveChat" /* LiveChat */,
21708
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21397
21709
  description: "Detects when a chat ends"
21398
21710
  },
21399
21711
  {
21400
- product: "LiveChat" /* LiveChat */,
21712
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21401
21713
  description: "Pulls the chat transcript information"
21402
21714
  },
21403
21715
  {
21404
- product: "HubSpot" /* HubSpot */,
21716
+ product: import_developer_studio_api27.IntegrationDisplayNames.HubSpot,
21405
21717
  description: "Creates a new contact in Hubspot"
21406
21718
  },
21407
21719
  {
21408
- product: "Mailchimp" /* Mailchimp */,
21720
+ product: import_developer_studio_api27.IntegrationDisplayNames.Mailchimp,
21409
21721
  description: "Adds new subscriber in Mailchimp"
21410
21722
  }
21411
21723
  ],
@@ -21496,7 +21808,7 @@ var getFlowTemplates = () => [
21496
21808
  trigger: {
21497
21809
  type: "webhook",
21498
21810
  webhook: {
21499
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
21811
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
21500
21812
  event: {
21501
21813
  name: import_developer_studio_api27.TextLivechatEventNames.ChatEnded
21502
21814
  },
@@ -21509,9 +21821,9 @@ var getFlowTemplates = () => [
21509
21821
  }
21510
21822
  },
21511
21823
  products: [
21512
- "LiveChat" /* LiveChat */,
21513
- "HubSpot" /* HubSpot */,
21514
- "Mailchimp" /* Mailchimp */
21824
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21825
+ import_developer_studio_api27.IntegrationDisplayNames.HubSpot,
21826
+ import_developer_studio_api27.IntegrationDisplayNames.Mailchimp
21515
21827
  ],
21516
21828
  category: "Lead collection" /* LeadCollection */
21517
21829
  },
@@ -21521,15 +21833,15 @@ var getFlowTemplates = () => [
21521
21833
  icons: [import_design_system_icons32.LiveChatColored],
21522
21834
  list: [
21523
21835
  {
21524
- product: "LiveChat" /* LiveChat */,
21836
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21525
21837
  description: "Detects when agents add a specific tag to an active chat"
21526
21838
  },
21527
21839
  {
21528
- product: "LiveChat" /* LiveChat */,
21840
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21529
21841
  description: "Supervises chat to allow for sending private messages"
21530
21842
  },
21531
21843
  {
21532
- product: "LiveChat" /* LiveChat */,
21844
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21533
21845
  description: "Sends a reminder to ask for a review visible only to the agent"
21534
21846
  }
21535
21847
  ],
@@ -21598,7 +21910,7 @@ var getFlowTemplates = () => [
21598
21910
  trigger: {
21599
21911
  type: "webhook",
21600
21912
  webhook: {
21601
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
21913
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
21602
21914
  event: {
21603
21915
  name: import_developer_studio_api27.TextLivechatEventNames.ChatTagged,
21604
21916
  tag: void 0,
@@ -21612,7 +21924,7 @@ var getFlowTemplates = () => [
21612
21924
  }
21613
21925
  }
21614
21926
  },
21615
- products: ["LiveChat" /* LiveChat */],
21927
+ products: [import_developer_studio_api27.IntegrationDisplayNames.LiveChat],
21616
21928
  category: "Chat management" /* ChatManagement */
21617
21929
  },
21618
21930
  {
@@ -21621,15 +21933,15 @@ var getFlowTemplates = () => [
21621
21933
  icons: [import_design_system_icons32.LiveChatColored, import_design_system_icons32.HelpDeskColored],
21622
21934
  list: [
21623
21935
  {
21624
- product: "LiveChat" /* LiveChat */,
21936
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21625
21937
  description: "Detects when a chat ends"
21626
21938
  },
21627
21939
  {
21628
- product: "LiveChat" /* LiveChat */,
21940
+ product: import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
21629
21941
  description: "Pulls the chat transcript"
21630
21942
  },
21631
21943
  {
21632
- product: "HelpDesk" /* HelpDesk */,
21944
+ product: import_developer_studio_api27.IntegrationDisplayNames.HelpDesk,
21633
21945
  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"
21634
21946
  }
21635
21947
  ],
@@ -21701,7 +22013,7 @@ var getFlowTemplates = () => [
21701
22013
  trigger: {
21702
22014
  type: "webhook",
21703
22015
  webhook: {
21704
- source: `${import_developer_studio_api27.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
22016
+ source: import_developer_studio_api27.IntegrationNames.LiveChat,
21705
22017
  event: {
21706
22018
  name: import_developer_studio_api27.TextLivechatEventNames.ChatEnded
21707
22019
  },
@@ -21713,7 +22025,10 @@ var getFlowTemplates = () => [
21713
22025
  }
21714
22026
  }
21715
22027
  },
21716
- products: ["LiveChat" /* LiveChat */, "HelpDesk" /* HelpDesk */],
22028
+ products: [
22029
+ import_developer_studio_api27.IntegrationDisplayNames.LiveChat,
22030
+ import_developer_studio_api27.IntegrationDisplayNames.HelpDesk
22031
+ ],
21717
22032
  category: "Customer experience" /* CustomerExperience */
21718
22033
  }
21719
22034
  ];
@@ -22079,6 +22394,7 @@ var Category_default = WorkflowTemplatesCategoryFilter;
22079
22394
  var import_react98 = require("react");
22080
22395
  var import_design_system_icons36 = require("@livechat/design-system-icons");
22081
22396
  var import_design_system_react_components73 = require("@livechat/design-system-react-components");
22397
+ var import_developer_studio_api28 = require("@livechat/developer-studio-api");
22082
22398
  var import_developer_studio_ui_react37 = require("@livechat/developer-studio-ui-react");
22083
22399
  function WorkflowTemplatesProductFilter({
22084
22400
  handleStatus,
@@ -22107,13 +22423,13 @@ function WorkflowTemplatesProductFilter({
22107
22423
  },
22108
22424
  options: [
22109
22425
  getItem("0", "All"),
22110
- getItem("1", "LiveChat" /* LiveChat */, import_design_system_icons36.LiveChatColored),
22111
- getItem("2", "HelpDesk" /* HelpDesk */, import_design_system_icons36.HelpDeskColored),
22112
- getItem("3", "OpenAI" /* OpenAI */, import_design_system_icons36.Chatgpt),
22113
- getItem("4", "Shopify" /* Shopify */, import_design_system_icons36.ShopifyColored),
22114
- getItem("5", "Mailchimp" /* Mailchimp */, import_design_system_icons36.Mailchimp)
22115
- // getItem('6', WorkflowProducts.Stripe, Stripe),
22116
- // getItem('7', WorkflowProducts.GoogleSheets, GoogleSheets),
22426
+ getItem("1", import_developer_studio_api28.IntegrationDisplayNames.LiveChat, import_design_system_icons36.LiveChatColored),
22427
+ getItem("2", import_developer_studio_api28.IntegrationDisplayNames.HelpDesk, import_design_system_icons36.HelpDeskColored),
22428
+ getItem("3", import_developer_studio_api28.IntegrationDisplayNames.OpenAI, import_design_system_icons36.Chatgpt),
22429
+ getItem("4", import_developer_studio_api28.IntegrationDisplayNames.Shopify, import_design_system_icons36.ShopifyColored),
22430
+ getItem("5", import_developer_studio_api28.IntegrationDisplayNames.Mailchimp, import_design_system_icons36.Mailchimp)
22431
+ // getItem('6', IntegrationDisplayNames.Stripe, Stripe),
22432
+ // getItem('7', IntegrationDisplayNames.GoogleSheets, GoogleSheets),
22117
22433
  ],
22118
22434
  placement: "bottom",
22119
22435
  triggerRenderer: /* @__PURE__ */ jsxs2(
@@ -22380,7 +22696,7 @@ var Create_default = WorkflowCreate;
22380
22696
  var import_react106 = require("react");
22381
22697
  var import_react_router_dom23 = require("react-router-dom");
22382
22698
  var import_design_system_react_components81 = require("@livechat/design-system-react-components");
22383
- var import_developer_studio_api29 = require("@livechat/developer-studio-api");
22699
+ var import_developer_studio_api30 = require("@livechat/developer-studio-api");
22384
22700
  var import_developer_studio_ui_react43 = require("@livechat/developer-studio-ui-react");
22385
22701
 
22386
22702
  // src/views/Flows/Definitions/List/Grid/Grid.tsx
@@ -22455,7 +22771,7 @@ var StatusFilter_default = WorkflowStatusFilter;
22455
22771
  var import_react_router_dom22 = require("react-router-dom");
22456
22772
  var import_design_system_icons39 = require("@livechat/design-system-icons");
22457
22773
  var import_design_system_react_components79 = require("@livechat/design-system-react-components");
22458
- var import_developer_studio_api28 = require("@livechat/developer-studio-api");
22774
+ var import_developer_studio_api29 = require("@livechat/developer-studio-api");
22459
22775
  var import_developer_studio_ui_react41 = require("@livechat/developer-studio-ui-react");
22460
22776
  function WorkflowsTable({ workflowsQuery, state }) {
22461
22777
  var _a, _b, _c;
@@ -22522,7 +22838,7 @@ function WorkflowsTable({ workflowsQuery, state }) {
22522
22838
  ) : null
22523
22839
  ] }) }),
22524
22840
  /* @__PURE__ */ jsx2("td", { width: "40%", children: /* @__PURE__ */ jsx2(import_developer_studio_ui_react41.Row, { gap: 12, notPadded: true, children: (_d = workflow.tags) == null ? void 0 : _d.map((tag) => {
22525
- const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === import_developer_studio_api28.IntegrationNames.BigCommerce.toLowerCase());
22841
+ const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === import_developer_studio_api29.IntegrationNames.BigCommerce.toLowerCase());
22526
22842
  return /* @__PURE__ */ jsx2(
22527
22843
  ProductIcon_default,
22528
22844
  {
@@ -22784,7 +23100,7 @@ function WorkflowListView() {
22784
23100
  Grid_default,
22785
23101
  {
22786
23102
  onStateChange: (change) => {
22787
- setState((prevState) => (0, import_developer_studio_api29.mergeDeep)(prevState, change));
23103
+ setState((prevState) => (0, import_developer_studio_api30.mergeDeep)(prevState, change));
22788
23104
  },
22789
23105
  state,
22790
23106
  workflowQuery: workflows