@livechat/platform-workflows 0.1.1 → 0.1.3

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.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  __spreadProps,
8
8
  __spreadValues,
9
9
  __toESM
10
- } from "./chunk-I7LVNCZF.mjs";
10
+ } from "./chunk-OHDSKF3P.mjs";
11
11
 
12
12
  // ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js
13
13
  var require_react_is_production_min = __commonJS({
@@ -3019,7 +3019,7 @@ var bigCommerceTaskConfigs = () => ({
3019
3019
  key: "BIGCOMMERCE_CREATE_BLOG_POST" /* CreateBlogPost */,
3020
3020
  type: WorkflowDefinitionTaskType2.http,
3021
3021
  url: `${getWorkflowsEnv(
3022
- "workflowsApiUr"
3022
+ "workflowsFunctionsUrl"
3023
3023
  )}/functions/create-bigcommerce-blog-post`,
3024
3024
  customization: {
3025
3025
  provider: IntegrationNames2.BigCommerce,
@@ -3143,7 +3143,7 @@ var bigCommerceTaskConfigs = () => ({
3143
3143
  key: "BIGCOMMERCE_CREATE_CUSTOMER" /* CreateCustomer */,
3144
3144
  type: WorkflowDefinitionTaskType2.http,
3145
3145
  url: `${getWorkflowsEnv(
3146
- "workflowsApiUr"
3146
+ "workflowsFunctionsUrl"
3147
3147
  )}/functions/create-bigcommerce-customer`,
3148
3148
  customization: {
3149
3149
  provider: IntegrationNames2.BigCommerce,
@@ -3177,7 +3177,7 @@ var bigCommerceTaskConfigs = () => ({
3177
3177
  key: "BIGCOMMERCE_UPDATE_CUSTOMER" /* UpdateCustomer */,
3178
3178
  type: WorkflowDefinitionTaskType2.http,
3179
3179
  url: `${getWorkflowsEnv(
3180
- "workflowsApiUr"
3180
+ "workflowsFunctionsUrl"
3181
3181
  )}/functions/update-bigcommerce-customer`,
3182
3182
  customization: {
3183
3183
  provider: IntegrationNames2.BigCommerce,
@@ -3209,7 +3209,7 @@ var bigCommerceTaskConfigs = () => ({
3209
3209
  key: "BIGCOMMERCE_CREATE_PRODUCT" /* CreateProduct */,
3210
3210
  type: WorkflowDefinitionTaskType2.http,
3211
3211
  url: `${getWorkflowsEnv(
3212
- "workflowsApiUr"
3212
+ "workflowsFunctionsUrl"
3213
3213
  )}/functions/create-bigcommerce-product`,
3214
3214
  customization: {
3215
3215
  provider: IntegrationNames2.BigCommerce,
@@ -3240,7 +3240,7 @@ var bigCommerceTaskConfigs = () => ({
3240
3240
  key: "BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS" /* CreateCustomerAddress */,
3241
3241
  type: WorkflowDefinitionTaskType2.http,
3242
3242
  url: `${getWorkflowsEnv(
3243
- "workflowsApiUr"
3243
+ "workflowsFunctionsUrl"
3244
3244
  )}/functions/create-bigcommerce-customer-address`,
3245
3245
  customization: {
3246
3246
  provider: IntegrationNames2.BigCommerce,
@@ -3286,7 +3286,7 @@ var bigCommerceTaskConfigs = () => ({
3286
3286
  key: "BIGCOMMERCE_GET_CUSTOMER" /* GetCustomer */,
3287
3287
  type: WorkflowDefinitionTaskType2.http,
3288
3288
  url: `${getWorkflowsEnv(
3289
- "workflowsApiUr"
3289
+ "workflowsFunctionsUrl"
3290
3290
  )}/functions/get-bigcommerce-customer`,
3291
3291
  customization: {
3292
3292
  provider: IntegrationNames2.BigCommerce,
@@ -3320,7 +3320,7 @@ var bigCommerceTaskConfigs = () => ({
3320
3320
  key: "BIGCOMMERCE_GET_CUSTOMER_ADDRESSES" /* GetCustomerAddresses */,
3321
3321
  type: WorkflowDefinitionTaskType2.http,
3322
3322
  url: `${getWorkflowsEnv(
3323
- "workflowsApiUr"
3323
+ "workflowsFunctionsUrl"
3324
3324
  )}/functions/get-bigcommerce-customer-address`,
3325
3325
  customization: {
3326
3326
  provider: IntegrationNames2.BigCommerce,
@@ -3353,7 +3353,7 @@ var bigCommerceTaskConfigs = () => ({
3353
3353
  key: "BIGCOMMERCE_GET_PRODUCTS" /* GetProducts */,
3354
3354
  type: WorkflowDefinitionTaskType2.http,
3355
3355
  url: `${getWorkflowsEnv(
3356
- "workflowsApiUr"
3356
+ "workflowsFunctionsUrl"
3357
3357
  )}/functions/get-bigcommerce-products`,
3358
3358
  customization: {
3359
3359
  provider: IntegrationNames2.BigCommerce,
@@ -3380,7 +3380,7 @@ var bigCommerceTaskTemplates = () => ({
3380
3380
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3381
3381
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3382
3382
  uri: `${getWorkflowsEnv(
3383
- "workflowsApiUr"
3383
+ "workflowsFunctionsUrl"
3384
3384
  )}/functions/create-bigcommerce-blog-post`,
3385
3385
  method: "POST",
3386
3386
  body: {
@@ -3401,7 +3401,7 @@ var bigCommerceTaskTemplates = () => ({
3401
3401
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3402
3402
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3403
3403
  uri: `${getWorkflowsEnv(
3404
- "workflowsApiUr"
3404
+ "workflowsFunctionsUrl"
3405
3405
  )}/functions/create-bigcommerce-customer`,
3406
3406
  method: "POST",
3407
3407
  body: {
@@ -3423,7 +3423,7 @@ var bigCommerceTaskTemplates = () => ({
3423
3423
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3424
3424
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3425
3425
  uri: `${getWorkflowsEnv(
3426
- "workflowsApiUr"
3426
+ "workflowsFunctionsUrl"
3427
3427
  )}/functions/update-bigcommerce-customer`,
3428
3428
  method: "PATCH",
3429
3429
  body: {
@@ -3443,7 +3443,7 @@ var bigCommerceTaskTemplates = () => ({
3443
3443
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3444
3444
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3445
3445
  uri: `${getWorkflowsEnv(
3446
- "workflowsApiUr"
3446
+ "workflowsFunctionsUrl"
3447
3447
  )}/functions/create-bigcommerce-product`,
3448
3448
  method: "POST",
3449
3449
  body: {
@@ -3466,7 +3466,7 @@ var bigCommerceTaskTemplates = () => ({
3466
3466
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3467
3467
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3468
3468
  uri: `${getWorkflowsEnv(
3469
- "workflowsApiUr"
3469
+ "workflowsFunctionsUrl"
3470
3470
  )}/functions/create-bigcommerce-customer-address`,
3471
3471
  method: "POST",
3472
3472
  body: {
@@ -3496,7 +3496,7 @@ var bigCommerceTaskTemplates = () => ({
3496
3496
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3497
3497
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3498
3498
  uri: `${getWorkflowsEnv(
3499
- "workflowsApiUr"
3499
+ "workflowsFunctionsUrl"
3500
3500
  )}/functions/get-bigcommerce-customer?customer_id=#{customer_id}&customer_email=#{customer_email}`,
3501
3501
  method: "GET",
3502
3502
  headers: {
@@ -3513,7 +3513,7 @@ var bigCommerceTaskTemplates = () => ({
3513
3513
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3514
3514
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3515
3515
  uri: `${getWorkflowsEnv(
3516
- "workflowsApiUr"
3516
+ "workflowsFunctionsUrl"
3517
3517
  )}/functions/get-bigcommerce-customer-addresses?customer_id=#{customer_id}`,
3518
3518
  method: "GET",
3519
3519
  headers: {
@@ -3530,7 +3530,7 @@ var bigCommerceTaskTemplates = () => ({
3530
3530
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3531
3531
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3532
3532
  uri: `${getWorkflowsEnv(
3533
- "workflowsApiUr"
3533
+ "workflowsFunctionsUrl"
3534
3534
  )}/functions/get-bigcommerce-products?limit=200&page=1`,
3535
3535
  method: "GET",
3536
3536
  headers: {
@@ -4022,7 +4022,7 @@ var helpdeskTaskConfigs = () => ({
4022
4022
  key: "HELPDESK_ADD_FOLLOWERS_TO_TICKET" /* AddFollowersToTicket */,
4023
4023
  type: WorkflowDefinitionTaskType3.http,
4024
4024
  url: `${getWorkflowsEnv(
4025
- "workflowsApiUr"
4025
+ "workflowsFunctionsUrl"
4026
4026
  )}/functions/add-followers-to-helpdesk-ticket`,
4027
4027
  customization: {
4028
4028
  provider: IntegrationNames3.HelpDesk,
@@ -4065,7 +4065,7 @@ var helpdeskTaskConfigs = () => ({
4065
4065
  key: "HELPDESK_ADD_TAGS_TO_TICKET" /* AddTagsToTicket */,
4066
4066
  type: WorkflowDefinitionTaskType3.http,
4067
4067
  url: `${getWorkflowsEnv(
4068
- "workflowsApiUr"
4068
+ "workflowsFunctionsUrl"
4069
4069
  )}/functions/add-tags-to-helpdesk-ticket`,
4070
4070
  customization: {
4071
4071
  provider: IntegrationNames3.HelpDesk,
@@ -4107,7 +4107,7 @@ var helpdeskTaskConfigs = () => ({
4107
4107
  key: "HELPDESK_CREATE_TICKET" /* CreateTicket */,
4108
4108
  type: WorkflowDefinitionTaskType3.http,
4109
4109
  url: `${getWorkflowsEnv(
4110
- "workflowsApiUr"
4110
+ "workflowsFunctionsUrl"
4111
4111
  )}/functions/create-helpdesk-ticket`,
4112
4112
  customization: {
4113
4113
  provider: IntegrationNames3.HelpDesk,
@@ -4129,7 +4129,7 @@ var helpdeskTaskConfigs = () => ({
4129
4129
  type: WorkflowDefinitionTaskType3.http,
4130
4130
  key: "HELPDESK_CREATE_TRANSACTION" /* CreateTransaction */,
4131
4131
  url: `${getWorkflowsEnv(
4132
- "workflowsApiUr"
4132
+ "workflowsFunctionsUrl"
4133
4133
  )}/functions/create-helpdesk-transaction`,
4134
4134
  customization: {
4135
4135
  provider: IntegrationNames3.HelpDesk,
@@ -4214,7 +4214,7 @@ var helpdeskTaskConfigs = () => ({
4214
4214
  ["HELPDESK_FIND_TICKET" /* FindTicket */]: {
4215
4215
  key: "HELPDESK_FIND_TICKET" /* FindTicket */,
4216
4216
  type: WorkflowDefinitionTaskType3.http,
4217
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/find-helpdesk-ticket`,
4217
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/find-helpdesk-ticket`,
4218
4218
  customization: {
4219
4219
  provider: IntegrationNames3.HelpDesk,
4220
4220
  product: IntegrationDisplayNames2.HelpDesk,
@@ -4239,7 +4239,7 @@ var helpdeskTaskConfigs = () => ({
4239
4239
  key: "HELPDESK_UPDATE_TICKET" /* UpdateTicket */,
4240
4240
  type: WorkflowDefinitionTaskType3.http,
4241
4241
  url: `${getWorkflowsEnv(
4242
- "workflowsApiUr"
4242
+ "workflowsFunctionsUrl"
4243
4243
  )}/functions/update-helpdesk-ticket`,
4244
4244
  customization: {
4245
4245
  provider: IntegrationNames3.HelpDesk,
@@ -4276,7 +4276,7 @@ var helpdeskTaskTemplates = () => ({
4276
4276
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4277
4277
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4278
4278
  uri: `${getWorkflowsEnv(
4279
- "workflowsApiUr"
4279
+ "workflowsFunctionsUrl"
4280
4280
  )}/functions/create-helpdesk-ticket`,
4281
4281
  method: "POST",
4282
4282
  body: {
@@ -4302,7 +4302,7 @@ var helpdeskTaskTemplates = () => ({
4302
4302
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4303
4303
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4304
4304
  uri: `${getWorkflowsEnv(
4305
- "workflowsApiUr"
4305
+ "workflowsFunctionsUrl"
4306
4306
  )}/functions/update-helpdesk-ticket?id=#{ticket_id}`,
4307
4307
  method: "PATCH",
4308
4308
  headers: {
@@ -4318,7 +4318,7 @@ var helpdeskTaskTemplates = () => ({
4318
4318
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4319
4319
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4320
4320
  uri: `${getWorkflowsEnv(
4321
- "workflowsApiUr"
4321
+ "workflowsFunctionsUrl"
4322
4322
  )}/functions/add-followers-to-helpdesk-ticket?id=#{ticket_id}`,
4323
4323
  method: "POST",
4324
4324
  body: {
@@ -4337,7 +4337,7 @@ var helpdeskTaskTemplates = () => ({
4337
4337
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4338
4338
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4339
4339
  uri: `${getWorkflowsEnv(
4340
- "workflowsApiUr"
4340
+ "workflowsFunctionsUrl"
4341
4341
  )}/functions/add-tags-to-helpdesk-ticket?id=#{ticket_id}`,
4342
4342
  method: "POST",
4343
4343
  body: {
@@ -4356,7 +4356,7 @@ var helpdeskTaskTemplates = () => ({
4356
4356
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4357
4357
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4358
4358
  uri: `${getWorkflowsEnv(
4359
- "workflowsApiUr"
4359
+ "workflowsFunctionsUrl"
4360
4360
  )}/functions/create-helpdesk-transaction`,
4361
4361
  method: "POST",
4362
4362
  body: {
@@ -4376,7 +4376,7 @@ var helpdeskTaskTemplates = () => ({
4376
4376
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4377
4377
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4378
4378
  uri: `${getWorkflowsEnv(
4379
- "workflowsApiUr"
4379
+ "workflowsFunctionsUrl"
4380
4380
  )}/functions/find-helpdesk-ticket?id=#{ticket_id}`,
4381
4381
  method: "GET",
4382
4382
  headers: {
@@ -4663,7 +4663,7 @@ var hubspotTaskConfigs = () => ({
4663
4663
  key: "HUBSPOT_CREATE_CONTACT" /* CreateContact */,
4664
4664
  type: WorkflowDefinitionTaskType4.http,
4665
4665
  url: `${getWorkflowsEnv(
4666
- "workflowsApiUr"
4666
+ "workflowsFunctionsUrl"
4667
4667
  )}/functions/create-hubspot-contact`,
4668
4668
  customization: {
4669
4669
  provider: IntegrationNames4.HubSpot,
@@ -4688,7 +4688,7 @@ var hubspotTaskConfigs = () => ({
4688
4688
  // [HubSpotTaskNames.DeleteContact]: {
4689
4689
  // key: HubSpotTaskNames.DeleteContact,
4690
4690
  // type: WorkflowDefinitionTaskType.http,
4691
- // url: `${getWorkflowsEnv("workflowsApiUr")}/functions/delete-hubspot-contact`,
4691
+ // url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/delete-hubspot-contact`,
4692
4692
  // customization: {
4693
4693
  // provider: IntegrationNames.HubSpot,
4694
4694
  // product: IntegrationDisplayNames.HubSpot,
@@ -4712,7 +4712,7 @@ var hubspotTaskConfigs = () => ({
4712
4712
  ["HUBSPOT_GET_CONTACT" /* GetContact */]: {
4713
4713
  key: "HUBSPOT_GET_CONTACT" /* GetContact */,
4714
4714
  type: WorkflowDefinitionTaskType4.http,
4715
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-hubspot-contact`,
4715
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/get-hubspot-contact`,
4716
4716
  customization: {
4717
4717
  provider: IntegrationNames4.HubSpot,
4718
4718
  product: IntegrationDisplayNames3.HubSpot,
@@ -4741,7 +4741,7 @@ var hubspotTaskConfigs = () => ({
4741
4741
  key: "HUBSPOT_UPDATE_CONTACT" /* UpdateContact */,
4742
4742
  type: WorkflowDefinitionTaskType4.http,
4743
4743
  url: `${getWorkflowsEnv(
4744
- "workflowsApiUr"
4744
+ "workflowsFunctionsUrl"
4745
4745
  )}/functions/update-hubspot-contact`,
4746
4746
  customization: {
4747
4747
  provider: IntegrationNames4.HubSpot,
@@ -4782,7 +4782,7 @@ var hubspotTaskTemplates = () => ({
4782
4782
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4783
4783
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4784
4784
  uri: `${getWorkflowsEnv(
4785
- "workflowsApiUr"
4785
+ "workflowsFunctionsUrl"
4786
4786
  )}/functions/create-hubspot-contact`,
4787
4787
  method: "POST",
4788
4788
  body: {
@@ -4807,7 +4807,7 @@ var hubspotTaskTemplates = () => ({
4807
4807
  // ...workflowHttpTask.inputParameters,
4808
4808
  // http_request: {
4809
4809
  // ...workflowHttpTask.inputParameters.http_request,
4810
- // uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/delete-hubspot-contact?contactId=#{contactId}`,
4810
+ // uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/delete-hubspot-contact?contactId=#{contactId}`,
4811
4811
  // method: 'DELETE',
4812
4812
  // headers: {
4813
4813
  // Accept: 'application/json',
@@ -4822,7 +4822,7 @@ var hubspotTaskTemplates = () => ({
4822
4822
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4823
4823
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4824
4824
  uri: `${getWorkflowsEnv(
4825
- "workflowsApiUr"
4825
+ "workflowsFunctionsUrl"
4826
4826
  )}/functions/get-hubspot-contact?contactId=#{contactId}`,
4827
4827
  method: "GET",
4828
4828
  headers: {
@@ -4838,7 +4838,7 @@ var hubspotTaskTemplates = () => ({
4838
4838
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4839
4839
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4840
4840
  uri: `${getWorkflowsEnv(
4841
- "workflowsApiUr"
4841
+ "workflowsFunctionsUrl"
4842
4842
  )}/functions/update-hubspot-contact?contactId=#{contactId}`,
4843
4843
  method: "PATCH",
4844
4844
  body: {
@@ -5507,7 +5507,7 @@ var livechatTaskConfigs = () => ({
5507
5507
  key: "LIVECHAT_TRANSFER_CHAT" /* TransferChat */,
5508
5508
  type: WorkflowDefinitionTaskType5.http,
5509
5509
  url: `${getWorkflowsEnv(
5510
- "workflowsApiUr"
5510
+ "workflowsFunctionsUrl"
5511
5511
  )}/functions/transfer-livechat-chat`,
5512
5512
  customization: {
5513
5513
  provider: IntegrationNames5.LiveChat,
@@ -5576,7 +5576,7 @@ var livechatTaskConfigs = () => ({
5576
5576
  ["LIVECHAT_TAG_CHAT" /* TagChat */]: {
5577
5577
  key: "LIVECHAT_TAG_CHAT" /* TagChat */,
5578
5578
  type: WorkflowDefinitionTaskType5.http,
5579
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/tag-livechat-chat`,
5579
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/tag-livechat-chat`,
5580
5580
  customization: {
5581
5581
  provider: IntegrationNames5.LiveChat,
5582
5582
  product: IntegrationDisplayNames4.LiveChat,
@@ -5608,7 +5608,7 @@ var livechatTaskConfigs = () => ({
5608
5608
  key: "LIVECHAT_CHAT_TRANSCRIPT" /* GetChatTranscript */,
5609
5609
  type: WorkflowDefinitionTaskType5.http,
5610
5610
  url: `${getWorkflowsEnv(
5611
- "workflowsApiUr"
5611
+ "workflowsFunctionsUrl"
5612
5612
  )}/functions/get-livechat-chat-transcript`,
5613
5613
  customization: {
5614
5614
  provider: IntegrationNames5.LiveChat,
@@ -5655,7 +5655,7 @@ var livechatTaskConfigs = () => ({
5655
5655
  key: "LIVECHAT_SEND_MESSAGE" /* SendMessage */,
5656
5656
  type: WorkflowDefinitionTaskType5.http,
5657
5657
  url: `${getWorkflowsEnv(
5658
- "workflowsApiUr"
5658
+ "workflowsFunctionsUrl"
5659
5659
  )}/functions/send-livechat-agent-message`,
5660
5660
  customization: {
5661
5661
  provider: IntegrationNames5.LiveChat,
@@ -5693,7 +5693,7 @@ var livechatTaskConfigs = () => ({
5693
5693
  key: "LIVECHAT_SUPERVISE_CHAT" /* SuperviseChat */,
5694
5694
  type: WorkflowDefinitionTaskType5.http,
5695
5695
  url: `${getWorkflowsEnv(
5696
- "workflowsApiUr"
5696
+ "workflowsFunctionsUrl"
5697
5697
  )}/functions/supervise-livechat-chat`,
5698
5698
  customization: {
5699
5699
  provider: IntegrationNames5.LiveChat,
@@ -5724,7 +5724,7 @@ var livechatTaskTemplates = () => ({
5724
5724
  taskReferenceName: "livechat_tag_chat",
5725
5725
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5726
5726
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5727
- uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/tag-livechat-chat`,
5727
+ uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/tag-livechat-chat`,
5728
5728
  method: "POST",
5729
5729
  body: {
5730
5730
  chat_id: "#{chat_id}",
@@ -5744,7 +5744,7 @@ var livechatTaskTemplates = () => ({
5744
5744
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5745
5745
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5746
5746
  uri: `${getWorkflowsEnv(
5747
- "workflowsApiUr"
5747
+ "workflowsFunctionsUrl"
5748
5748
  )}/functions/transfer-livechat-chat`,
5749
5749
  method: "POST",
5750
5750
  body: {
@@ -5765,7 +5765,7 @@ var livechatTaskTemplates = () => ({
5765
5765
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5766
5766
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5767
5767
  uri: `${getWorkflowsEnv(
5768
- "workflowsApiUr"
5768
+ "workflowsFunctionsUrl"
5769
5769
  )}/functions/get-livechat-chat-transcript?chat_id=#{chat_id}`,
5770
5770
  method: "GET",
5771
5771
  headers: {
@@ -5781,7 +5781,7 @@ var livechatTaskTemplates = () => ({
5781
5781
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5782
5782
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5783
5783
  uri: `${getWorkflowsEnv(
5784
- "workflowsApiUr"
5784
+ "workflowsFunctionsUrl"
5785
5785
  )}/functions/send-livechat-agent-message`,
5786
5786
  method: "POST",
5787
5787
  body: {
@@ -5802,7 +5802,7 @@ var livechatTaskTemplates = () => ({
5802
5802
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5803
5803
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5804
5804
  uri: `${getWorkflowsEnv(
5805
- "workflowsApiUr"
5805
+ "workflowsFunctionsUrl"
5806
5806
  )}/functions/supervise-livechat-chat`,
5807
5807
  method: "POST",
5808
5808
  body: {
@@ -6292,7 +6292,7 @@ var mailchimpTaskConfigs = () => ({
6292
6292
  key: "MAILCHIMP_ADD_SUBSCRIBER" /* AddSubscriber */,
6293
6293
  type: WorkflowDefinitionTaskType6.http,
6294
6294
  url: `${getWorkflowsEnv(
6295
- "workflowsApiUr"
6295
+ "workflowsFunctionsUrl"
6296
6296
  )}/functions/add-mailchimp-subscriber`,
6297
6297
  customization: {
6298
6298
  provider: IntegrationNames6.Mailchimp,
@@ -6333,7 +6333,7 @@ var mailchimpTaskConfigs = () => ({
6333
6333
  key: "MAILCHIMP_ADD_CAMPAIGN" /* AddCampaign */,
6334
6334
  type: WorkflowDefinitionTaskType6.http,
6335
6335
  url: `${getWorkflowsEnv(
6336
- "workflowsApiUr"
6336
+ "workflowsFunctionsUrl"
6337
6337
  )}/functions/add-mailchimp-campaign`,
6338
6338
  customization: {
6339
6339
  provider: IntegrationNames6.Mailchimp,
@@ -6376,7 +6376,7 @@ var mailchimpTaskConfigs = () => ({
6376
6376
  key: "MAILCHIMP_SEND_CAMPAIGN" /* SendCampaign */,
6377
6377
  type: WorkflowDefinitionTaskType6.http,
6378
6378
  url: `${getWorkflowsEnv(
6379
- "workflowsApiUr"
6379
+ "workflowsFunctionsUrl"
6380
6380
  )}/functions/send-mailchimp-campaign`,
6381
6381
  customization: {
6382
6382
  provider: IntegrationNames6.Mailchimp,
@@ -6405,7 +6405,7 @@ var mailchimpTaskConfigs = () => ({
6405
6405
  key: "MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER" /* AddOrUpdateSubscriber */,
6406
6406
  type: WorkflowDefinitionTaskType6.http,
6407
6407
  url: `${getWorkflowsEnv(
6408
- "workflowsApiUr"
6408
+ "workflowsFunctionsUrl"
6409
6409
  )}/functions/add-or-update-mailchimp-subscriber`,
6410
6410
  customization: {
6411
6411
  provider: IntegrationNames6.Mailchimp,
@@ -6451,7 +6451,7 @@ var mailchimpTaskConfigs = () => ({
6451
6451
  key: "MAILCHIMP_UPDATE_SUBSCRIBER" /* UpdateSubscriber */,
6452
6452
  type: WorkflowDefinitionTaskType6.http,
6453
6453
  url: `${getWorkflowsEnv(
6454
- "workflowsApiUr"
6454
+ "workflowsFunctionsUrl"
6455
6455
  )}/functions/update-mailchimp-subscriber`,
6456
6456
  customization: {
6457
6457
  provider: IntegrationNames6.Mailchimp,
@@ -6497,7 +6497,7 @@ var mailchimpTaskConfigs = () => ({
6497
6497
  key: "MAILCHIMP_ARCHIVE_SUBSCRIBER" /* ArchiveSubscriber */,
6498
6498
  type: WorkflowDefinitionTaskType6.http,
6499
6499
  url: `${getWorkflowsEnv(
6500
- "workflowsApiUr"
6500
+ "workflowsFunctionsUrl"
6501
6501
  )}/functions/archive-mailchimp-subscriber`,
6502
6502
  customization: {
6503
6503
  provider: IntegrationNames6.Mailchimp,
@@ -6530,7 +6530,7 @@ var mailchimpTaskConfigs = () => ({
6530
6530
  key: "MAILCHIMP_DELETE_SUBSCRIBER" /* DeleteSubscriber */,
6531
6531
  type: WorkflowDefinitionTaskType6.http,
6532
6532
  url: `${getWorkflowsEnv(
6533
- "workflowsApiUr"
6533
+ "workflowsFunctionsUrl"
6534
6534
  )}/functions/delete-mailchimp-subscriber`,
6535
6535
  customization: {
6536
6536
  provider: IntegrationNames6.Mailchimp,
@@ -6563,7 +6563,7 @@ var mailchimpTaskConfigs = () => ({
6563
6563
  key: "MAILCHIMP_ADD_SUBSCRIBER_TAG" /* AddSubscriberTag */,
6564
6564
  type: WorkflowDefinitionTaskType6.http,
6565
6565
  url: `${getWorkflowsEnv(
6566
- "workflowsApiUr"
6566
+ "workflowsFunctionsUrl"
6567
6567
  )}/functions/add-mailchimp-subscriber-tag`,
6568
6568
  customization: {
6569
6569
  provider: IntegrationNames6.Mailchimp,
@@ -6601,7 +6601,7 @@ var mailchimpTaskConfigs = () => ({
6601
6601
  key: "MAILCHIMP_ADD_SUBSCRIBER_EVENT" /* AddSubscriberEvent */,
6602
6602
  type: WorkflowDefinitionTaskType6.http,
6603
6603
  url: `${getWorkflowsEnv(
6604
- "workflowsApiUr"
6604
+ "workflowsFunctionsUrl"
6605
6605
  )}/functions/add-mailchimp-subscriber-event`,
6606
6606
  customization: {
6607
6607
  provider: IntegrationNames6.Mailchimp,
@@ -6655,7 +6655,7 @@ var mailchimpTaskConfigs = () => ({
6655
6655
  key: "MAILCHIMP_ADD_SUBSCRIBER_NOTE" /* AddSubscriberNote */,
6656
6656
  type: WorkflowDefinitionTaskType6.http,
6657
6657
  url: `${getWorkflowsEnv(
6658
- "workflowsApiUr"
6658
+ "workflowsFunctionsUrl"
6659
6659
  )}/functions/add-mailchimp-subscriber-note`,
6660
6660
  customization: {
6661
6661
  provider: IntegrationNames6.Mailchimp,
@@ -6693,7 +6693,7 @@ var mailchimpTaskConfigs = () => ({
6693
6693
  key: "MAILCHIMP_DELETE_SUBSCRIBER_TAG" /* DeleteSubscriberTag */,
6694
6694
  type: WorkflowDefinitionTaskType6.http,
6695
6695
  url: `${getWorkflowsEnv(
6696
- "workflowsApiUr"
6696
+ "workflowsFunctionsUrl"
6697
6697
  )}/functions/delete-mailchimp-subscriber-tag`,
6698
6698
  customization: {
6699
6699
  provider: IntegrationNames6.Mailchimp,
@@ -6730,7 +6730,7 @@ var mailchimpTaskConfigs = () => ({
6730
6730
  key: "MAILCHIMP_GET_SUBSCRIBER_TAGS" /* GetSubscriberTags */,
6731
6731
  type: WorkflowDefinitionTaskType6.http,
6732
6732
  url: `${getWorkflowsEnv(
6733
- "workflowsApiUr"
6733
+ "workflowsFunctionsUrl"
6734
6734
  )}/functions/get-mailchimp-subscriber-tags`,
6735
6735
  customization: {
6736
6736
  provider: IntegrationNames6.Mailchimp,
@@ -6793,7 +6793,7 @@ var mailchimpTaskConfigs = () => ({
6793
6793
  key: "MAILCHIMP_GET_SUBSCRIBER" /* GetSubscriber */,
6794
6794
  type: WorkflowDefinitionTaskType6.http,
6795
6795
  url: `${getWorkflowsEnv(
6796
- "workflowsApiUr"
6796
+ "workflowsFunctionsUrl"
6797
6797
  )}/functions/get-mailchimp-subscriber`,
6798
6798
  customization: {
6799
6799
  provider: IntegrationNames6.Mailchimp,
@@ -6966,7 +6966,7 @@ var mailchimpTaskConfigs = () => ({
6966
6966
  key: "MAILCHIMP_GET_SUBSCRIBERS" /* GetSubscribers */,
6967
6967
  type: WorkflowDefinitionTaskType6.http,
6968
6968
  url: `${getWorkflowsEnv(
6969
- "workflowsApiUr"
6969
+ "workflowsFunctionsUrl"
6970
6970
  )}/functions/find-mailchimp-subscribers`,
6971
6971
  customization: {
6972
6972
  provider: IntegrationNames6.Mailchimp,
@@ -7141,7 +7141,7 @@ var mailchimpTaskConfigs = () => ({
7141
7141
  key: "MAILCHIMP_FIND_CAMPAIGN" /* FindCampaign */,
7142
7142
  type: WorkflowDefinitionTaskType6.http,
7143
7143
  url: `${getWorkflowsEnv(
7144
- "workflowsApiUr"
7144
+ "workflowsFunctionsUrl"
7145
7145
  )}/functions/find-mailchimp-campaign`,
7146
7146
  customization: {
7147
7147
  provider: IntegrationNames6.Mailchimp,
@@ -7301,7 +7301,7 @@ var mailchimpTaskTemplates = () => ({
7301
7301
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7302
7302
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7303
7303
  uri: `${getWorkflowsEnv(
7304
- "workflowsApiUr"
7304
+ "workflowsFunctionsUrl"
7305
7305
  )}/functions/add-mailchimp-subscriber`,
7306
7306
  method: "POST",
7307
7307
  body: {
@@ -7323,7 +7323,7 @@ var mailchimpTaskTemplates = () => ({
7323
7323
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7324
7324
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7325
7325
  uri: `${getWorkflowsEnv(
7326
- "workflowsApiUr"
7326
+ "workflowsFunctionsUrl"
7327
7327
  )}/functions/add-mailchimp-campaign`,
7328
7328
  method: "POST",
7329
7329
  body: {
@@ -7356,7 +7356,7 @@ var mailchimpTaskTemplates = () => ({
7356
7356
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7357
7357
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7358
7358
  uri: `${getWorkflowsEnv(
7359
- "workflowsApiUr"
7359
+ "workflowsFunctionsUrl"
7360
7360
  )}/functions/send-mailchimp-campaign`,
7361
7361
  method: "POST",
7362
7362
  body: {
@@ -7375,7 +7375,7 @@ var mailchimpTaskTemplates = () => ({
7375
7375
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7376
7376
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7377
7377
  uri: `${getWorkflowsEnv(
7378
- "workflowsApiUr"
7378
+ "workflowsFunctionsUrl"
7379
7379
  )}/functions/add-or-update-mailchimp-subscriber`,
7380
7380
  method: "POST",
7381
7381
  body: {
@@ -7397,7 +7397,7 @@ var mailchimpTaskTemplates = () => ({
7397
7397
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7398
7398
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7399
7399
  uri: `${getWorkflowsEnv(
7400
- "workflowsApiUr"
7400
+ "workflowsFunctionsUrl"
7401
7401
  )}/functions/update-mailchimp-subscriber`,
7402
7402
  method: "POST",
7403
7403
  body: {
@@ -7419,7 +7419,7 @@ var mailchimpTaskTemplates = () => ({
7419
7419
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7420
7420
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7421
7421
  uri: `${getWorkflowsEnv(
7422
- "workflowsApiUr"
7422
+ "workflowsFunctionsUrl"
7423
7423
  )}/functions/archive-mailchimp-subscriber`,
7424
7424
  method: "POST",
7425
7425
  body: {
@@ -7439,7 +7439,7 @@ var mailchimpTaskTemplates = () => ({
7439
7439
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7440
7440
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7441
7441
  uri: `${getWorkflowsEnv(
7442
- "workflowsApiUr"
7442
+ "workflowsFunctionsUrl"
7443
7443
  )}/functions/delete-mailchimp-subscriber`,
7444
7444
  method: "POST",
7445
7445
  body: {
@@ -7459,7 +7459,7 @@ var mailchimpTaskTemplates = () => ({
7459
7459
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7460
7460
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7461
7461
  uri: `${getWorkflowsEnv(
7462
- "workflowsApiUr"
7462
+ "workflowsFunctionsUrl"
7463
7463
  )}/functions/add-mailchimp-subscriber-tag`,
7464
7464
  method: "POST",
7465
7465
  body: {
@@ -7480,7 +7480,7 @@ var mailchimpTaskTemplates = () => ({
7480
7480
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7481
7481
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7482
7482
  uri: `${getWorkflowsEnv(
7483
- "workflowsApiUr"
7483
+ "workflowsFunctionsUrl"
7484
7484
  )}/functions/add-mailchimp-subscriber-event`,
7485
7485
  method: "POST",
7486
7486
  body: {
@@ -7501,7 +7501,7 @@ var mailchimpTaskTemplates = () => ({
7501
7501
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7502
7502
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7503
7503
  uri: `${getWorkflowsEnv(
7504
- "workflowsApiUr"
7504
+ "workflowsFunctionsUrl"
7505
7505
  )}/functions/add-mailchimp-subscriber-note`,
7506
7506
  method: "POST",
7507
7507
  body: {
@@ -7522,7 +7522,7 @@ var mailchimpTaskTemplates = () => ({
7522
7522
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7523
7523
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7524
7524
  uri: `${getWorkflowsEnv(
7525
- "workflowsApiUr"
7525
+ "workflowsFunctionsUrl"
7526
7526
  )}/functions/delete-mailchimp-subscriber-tag`,
7527
7527
  method: "POST",
7528
7528
  body: {
@@ -7543,7 +7543,7 @@ var mailchimpTaskTemplates = () => ({
7543
7543
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7544
7544
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7545
7545
  uri: `${getWorkflowsEnv(
7546
- "workflowsApiUr"
7546
+ "workflowsFunctionsUrl"
7547
7547
  )}/functions/get-mailchimp-subscriber-tags?list_id=#{list_id}&email=#{email}`,
7548
7548
  method: "GET",
7549
7549
  body: {},
@@ -7560,7 +7560,7 @@ var mailchimpTaskTemplates = () => ({
7560
7560
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7561
7561
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7562
7562
  uri: `${getWorkflowsEnv(
7563
- "workflowsApiUr"
7563
+ "workflowsFunctionsUrl"
7564
7564
  )}/functions/get-mailchimp-subscriber?list_id=#{list_id}&email=#{email}`,
7565
7565
  method: "GET",
7566
7566
  body: {},
@@ -7577,7 +7577,7 @@ var mailchimpTaskTemplates = () => ({
7577
7577
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7578
7578
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7579
7579
  uri: `${getWorkflowsEnv(
7580
- "workflowsApiUr"
7580
+ "workflowsFunctionsUrl"
7581
7581
  )}/functions/find-mailchimp-subscribers?list_id=#{list_id}&query=#{query}`,
7582
7582
  method: "GET",
7583
7583
  body: {},
@@ -7594,7 +7594,7 @@ var mailchimpTaskTemplates = () => ({
7594
7594
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7595
7595
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7596
7596
  uri: `${getWorkflowsEnv(
7597
- "workflowsApiUr"
7597
+ "workflowsFunctionsUrl"
7598
7598
  )}/functions/find-mailchimp-campaign?campaign_id=#{campaign_id}`,
7599
7599
  method: "POST",
7600
7600
  body: {},
@@ -7716,7 +7716,7 @@ var openAiTaskConfigs = () => ({
7716
7716
  key: "OPENAI_EXTRACT_ORDER_REQUEST" /* ExtractOrderRequest */,
7717
7717
  type: WorkflowDefinitionTaskType7.http,
7718
7718
  url: `${getWorkflowsEnv(
7719
- "workflowsApiUr"
7719
+ "workflowsFunctionsUrl"
7720
7720
  )}/functions/extract-order-from-text`,
7721
7721
  customization: {
7722
7722
  provider: IntegrationNames7.OpenAI,
@@ -7806,7 +7806,7 @@ var openAiTaskConfigs = () => ({
7806
7806
  key: "OPENAI_ANALYZE_TEXT_SENTIMENT" /* AnalyzeTextSentiment */,
7807
7807
  type: WorkflowDefinitionTaskType7.http,
7808
7808
  url: `${getWorkflowsEnv(
7809
- "workflowsApiUr"
7809
+ "workflowsFunctionsUrl"
7810
7810
  )}/functions/analyze-text-sentiment`,
7811
7811
  customization: {
7812
7812
  provider: IntegrationNames7.OpenAI,
@@ -7841,7 +7841,7 @@ var openAiTaskConfigs = () => ({
7841
7841
  ["OPENAI_SUMMARIZE_TEXT" /* SummarizeText */]: {
7842
7842
  key: "OPENAI_SUMMARIZE_TEXT" /* SummarizeText */,
7843
7843
  type: WorkflowDefinitionTaskType7.http,
7844
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
7844
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/summarize-text`,
7845
7845
  customization: {
7846
7846
  provider: IntegrationNames7.OpenAI,
7847
7847
  product: IntegrationDisplayNames6.OpenAI,
@@ -7875,7 +7875,7 @@ var openAiTaskConfigs = () => ({
7875
7875
  ["OPENAI_MODERATE_TEXT" /* ModerateText */]: {
7876
7876
  key: "OPENAI_MODERATE_TEXT" /* ModerateText */,
7877
7877
  type: WorkflowDefinitionTaskType7.http,
7878
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
7878
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/moderate-text`,
7879
7879
  customization: {
7880
7880
  provider: IntegrationNames7.OpenAI,
7881
7881
  product: IntegrationDisplayNames6.OpenAI,
@@ -7908,7 +7908,7 @@ var openAiTaskConfigs = () => ({
7908
7908
  ["OPENAI_CATEGORIZE_TEXT" /* CategorizeText */]: {
7909
7909
  key: "OPENAI_CATEGORIZE_TEXT" /* CategorizeText */,
7910
7910
  type: WorkflowDefinitionTaskType7.http,
7911
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
7911
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/categorize-text`,
7912
7912
  customization: {
7913
7913
  provider: IntegrationNames7.OpenAI,
7914
7914
  product: IntegrationDisplayNames6.OpenAI,
@@ -7955,7 +7955,7 @@ var openAiTaskTemplates = () => ({
7955
7955
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7956
7956
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7957
7957
  uri: `${getWorkflowsEnv(
7958
- "workflowsApiUr"
7958
+ "workflowsFunctionsUrl"
7959
7959
  )}/functions/extract-order-from-text`,
7960
7960
  method: "POST",
7961
7961
  body: {
@@ -7974,7 +7974,7 @@ var openAiTaskTemplates = () => ({
7974
7974
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7975
7975
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7976
7976
  uri: `${getWorkflowsEnv(
7977
- "workflowsApiUr"
7977
+ "workflowsFunctionsUrl"
7978
7978
  )}/functions/analyze-text-sentiment`,
7979
7979
  method: "POST",
7980
7980
  body: {
@@ -7992,7 +7992,7 @@ var openAiTaskTemplates = () => ({
7992
7992
  taskReferenceName: "openai_summarize_text",
7993
7993
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7994
7994
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7995
- uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
7995
+ uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/summarize-text`,
7996
7996
  method: "POST",
7997
7997
  body: {
7998
7998
  text: "#{chat_transcript}"
@@ -8009,7 +8009,7 @@ var openAiTaskTemplates = () => ({
8009
8009
  taskReferenceName: "openai_moderate_text",
8010
8010
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8011
8011
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8012
- uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
8012
+ uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/moderate-text`,
8013
8013
  method: "POST",
8014
8014
  body: {
8015
8015
  text: "#{chat_transcript}"
@@ -8026,7 +8026,7 @@ var openAiTaskTemplates = () => ({
8026
8026
  taskReferenceName: "openai_categorize_text",
8027
8027
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8028
8028
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8029
- uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
8029
+ uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/categorize-text`,
8030
8030
  method: "POST",
8031
8031
  body: {
8032
8032
  text: "#{chat_transcript}"
@@ -8471,7 +8471,7 @@ var shopifyTaskConfigs = () => ({
8471
8471
  key: "SHOPIFY_CREATE_CUSTOMER" /* CreateCustomer */,
8472
8472
  type: WorkflowDefinitionTaskType8.http,
8473
8473
  url: `${getWorkflowsEnv(
8474
- "workflowsApiUr"
8474
+ "workflowsFunctionsUrl"
8475
8475
  )}/functions/create-shopify-customer`,
8476
8476
  customization: {
8477
8477
  provider: IntegrationNames8.Shopify,
@@ -8495,7 +8495,7 @@ var shopifyTaskConfigs = () => ({
8495
8495
  ["SHOPIFY_CREATE_ORDER" /* CreateOrder */]: {
8496
8496
  key: "SHOPIFY_CREATE_ORDER" /* CreateOrder */,
8497
8497
  type: WorkflowDefinitionTaskType8.http,
8498
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/create-shopify-order`,
8498
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/create-shopify-order`,
8499
8499
  customization: {
8500
8500
  provider: IntegrationNames8.Shopify,
8501
8501
  product: IntegrationDisplayNames7.Shopify,
@@ -8518,7 +8518,7 @@ var shopifyTaskConfigs = () => ({
8518
8518
  key: "SHOPIFY_CREATE_DRAFT_ORDER" /* CreateDraftOrder */,
8519
8519
  type: WorkflowDefinitionTaskType8.http,
8520
8520
  url: `${getWorkflowsEnv(
8521
- "workflowsApiUr"
8521
+ "workflowsFunctionsUrl"
8522
8522
  )}/functions/create-shopify-draft-order`,
8523
8523
  customization: {
8524
8524
  provider: IntegrationNames8.Shopify,
@@ -8542,7 +8542,7 @@ var shopifyTaskConfigs = () => ({
8542
8542
  key: "SHOPIFY_CREATE_PRODUCT" /* CreateProduct */,
8543
8543
  type: WorkflowDefinitionTaskType8.http,
8544
8544
  url: `${getWorkflowsEnv(
8545
- "workflowsApiUr"
8545
+ "workflowsFunctionsUrl"
8546
8546
  )}/functions/create-shopify-product`,
8547
8547
  customization: {
8548
8548
  provider: IntegrationNames8.Shopify,
@@ -8566,7 +8566,7 @@ var shopifyTaskConfigs = () => ({
8566
8566
  type: WorkflowDefinitionTaskType8.http,
8567
8567
  key: "SHOPIFY_CREATE_PRODUCT_VARIANT" /* CreateProductVariant */,
8568
8568
  url: `${getWorkflowsEnv(
8569
- "workflowsApiUr"
8569
+ "workflowsFunctionsUrl"
8570
8570
  )}/functions/create-shopify-product-variant`,
8571
8571
  customization: {
8572
8572
  provider: IntegrationNames8.Shopify,
@@ -8589,7 +8589,7 @@ var shopifyTaskConfigs = () => ({
8589
8589
  ["SHOPIFY_GET_CUSTOMER" /* GetCustomer */]: {
8590
8590
  key: "SHOPIFY_GET_CUSTOMER" /* GetCustomer */,
8591
8591
  type: WorkflowDefinitionTaskType8.http,
8592
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-shopify-customer`,
8592
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/get-shopify-customer`,
8593
8593
  customization: {
8594
8594
  provider: IntegrationNames8.Shopify,
8595
8595
  product: IntegrationDisplayNames7.Shopify,
@@ -8618,7 +8618,7 @@ var shopifyTaskConfigs = () => ({
8618
8618
  key: "SHOPIFY_GET_CUSTOMER_ORDERS" /* GetCustomerOrders */,
8619
8619
  type: WorkflowDefinitionTaskType8.http,
8620
8620
  url: `${getWorkflowsEnv(
8621
- "workflowsApiUr"
8621
+ "workflowsFunctionsUrl"
8622
8622
  )}/functions/get-shopify-customer-orders`,
8623
8623
  customization: {
8624
8624
  provider: IntegrationNames8.Shopify,
@@ -8651,7 +8651,7 @@ var shopifyTaskConfigs = () => ({
8651
8651
  key: "SHOPIFY_GET_CUSTOMER_LAST_ORDER" /* GetCustomerLastOrder */,
8652
8652
  type: WorkflowDefinitionTaskType8.http,
8653
8653
  url: `${getWorkflowsEnv(
8654
- "workflowsApiUr"
8654
+ "workflowsFunctionsUrl"
8655
8655
  )}/functions/get-shopify-customer-last-order`,
8656
8656
  customization: {
8657
8657
  provider: IntegrationNames8.Shopify,
@@ -8680,7 +8680,7 @@ var shopifyTaskConfigs = () => ({
8680
8680
  ["SHOPIFY_GET_PRODUCT" /* GetProduct */]: {
8681
8681
  type: WorkflowDefinitionTaskType8.http,
8682
8682
  key: "SHOPIFY_GET_PRODUCT" /* GetProduct */,
8683
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-shopify-product`,
8683
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/get-shopify-product`,
8684
8684
  customization: {
8685
8685
  provider: IntegrationNames8.Shopify,
8686
8686
  product: IntegrationDisplayNames7.Shopify,
@@ -8710,7 +8710,7 @@ var shopifyTaskConfigs = () => ({
8710
8710
  key: "SHOPIFY_GET_PRODUCT_VARIANT" /* GetProductVariant */,
8711
8711
  type: WorkflowDefinitionTaskType8.http,
8712
8712
  url: `${getWorkflowsEnv(
8713
- "workflowsApiUr"
8713
+ "workflowsFunctionsUrl"
8714
8714
  )}/functions/get-shopify-product-variant`,
8715
8715
  customization: {
8716
8716
  provider: IntegrationNames8.Shopify,
@@ -8744,7 +8744,7 @@ var shopifyTaskConfigs = () => ({
8744
8744
  key: "SHOPIFY_UPDATE_INVENTORY_QUANTITY" /* UpdateInventoryQuantity */,
8745
8745
  type: WorkflowDefinitionTaskType8.http,
8746
8746
  url: `${getWorkflowsEnv(
8747
- "workflowsApiUr"
8747
+ "workflowsFunctionsUrl"
8748
8748
  )}/functions/update-shopify-inventory-quantity`,
8749
8749
  customization: {
8750
8750
  provider: IntegrationNames8.Shopify,
@@ -8810,7 +8810,7 @@ var shopifyTaskConfigs = () => ({
8810
8810
  ["SHOPIFY_UPDATE_ORDER" /* UpdateOrder */]: {
8811
8811
  type: WorkflowDefinitionTaskType8.http,
8812
8812
  key: "SHOPIFY_UPDATE_ORDER" /* UpdateOrder */,
8813
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/update-shopify-order`,
8813
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/update-shopify-order`,
8814
8814
  customization: {
8815
8815
  provider: IntegrationNames8.Shopify,
8816
8816
  product: IntegrationDisplayNames7.Shopify,
@@ -8833,7 +8833,7 @@ var shopifyTaskConfigs = () => ({
8833
8833
  key: "SHOPIFY_UPDATE_PRODUCT" /* UpdateProduct */,
8834
8834
  type: WorkflowDefinitionTaskType8.http,
8835
8835
  url: `${getWorkflowsEnv(
8836
- "workflowsApiUr"
8836
+ "workflowsFunctionsUrl"
8837
8837
  )}/functions/update-shopify-product`,
8838
8838
  customization: {
8839
8839
  provider: IntegrationNames8.Shopify,
@@ -8857,7 +8857,7 @@ var shopifyTaskConfigs = () => ({
8857
8857
  key: "SHOPIFY_UPDATE_PRODUCT_VARIANT" /* UpdateProductVariant */,
8858
8858
  type: WorkflowDefinitionTaskType8.http,
8859
8859
  url: `${getWorkflowsEnv(
8860
- "workflowsApiUr"
8860
+ "workflowsFunctionsUrl"
8861
8861
  )}/functions/update-shopify-product-variant`,
8862
8862
  customization: {
8863
8863
  provider: IntegrationNames8.Shopify,
@@ -8881,7 +8881,7 @@ var shopifyTaskConfigs = () => ({
8881
8881
  key: "SHOPIFY_UPDATE_CUSTOMER" /* UpdateCustomer */,
8882
8882
  type: WorkflowDefinitionTaskType8.http,
8883
8883
  url: `${getWorkflowsEnv(
8884
- "workflowsApiUr"
8884
+ "workflowsFunctionsUrl"
8885
8885
  )}/functions/update-shopify-customer`,
8886
8886
  customization: {
8887
8887
  provider: IntegrationNames8.Shopify,
@@ -8909,7 +8909,7 @@ var shopifyTaskTemplates = () => ({
8909
8909
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8910
8910
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8911
8911
  uri: `${getWorkflowsEnv(
8912
- "workflowsApiUr"
8912
+ "workflowsFunctionsUrl"
8913
8913
  )}/functions/create-shopify-customer`,
8914
8914
  method: "POST",
8915
8915
  body: {
@@ -8931,7 +8931,7 @@ var shopifyTaskTemplates = () => ({
8931
8931
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8932
8932
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8933
8933
  uri: `${getWorkflowsEnv(
8934
- "workflowsApiUr"
8934
+ "workflowsFunctionsUrl"
8935
8935
  )}/functions/create-shopify-order`,
8936
8936
  method: "POST",
8937
8937
  body: {},
@@ -8949,7 +8949,7 @@ var shopifyTaskTemplates = () => ({
8949
8949
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8950
8950
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8951
8951
  uri: `${getWorkflowsEnv(
8952
- "workflowsApiUr"
8952
+ "workflowsFunctionsUrl"
8953
8953
  )}/functions/create-shopify-draft-order`,
8954
8954
  method: "POST",
8955
8955
  body: {},
@@ -8967,7 +8967,7 @@ var shopifyTaskTemplates = () => ({
8967
8967
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8968
8968
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8969
8969
  uri: `${getWorkflowsEnv(
8970
- "workflowsApiUr"
8970
+ "workflowsFunctionsUrl"
8971
8971
  )}/functions/create-shopify-product`,
8972
8972
  method: "POST",
8973
8973
  body: {},
@@ -8985,7 +8985,7 @@ var shopifyTaskTemplates = () => ({
8985
8985
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8986
8986
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8987
8987
  uri: `${getWorkflowsEnv(
8988
- "workflowsApiUr"
8988
+ "workflowsFunctionsUrl"
8989
8989
  )}/functions/create-shopify-product-variant`,
8990
8990
  method: "POST",
8991
8991
  body: {},
@@ -9003,7 +9003,7 @@ var shopifyTaskTemplates = () => ({
9003
9003
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9004
9004
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9005
9005
  uri: `${getWorkflowsEnv(
9006
- "workflowsApiUr"
9006
+ "workflowsFunctionsUrl"
9007
9007
  )}/functions/get-shopify-customer?email=#{email}`,
9008
9008
  method: "GET",
9009
9009
  body: {},
@@ -9021,7 +9021,7 @@ var shopifyTaskTemplates = () => ({
9021
9021
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9022
9022
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9023
9023
  uri: `${getWorkflowsEnv(
9024
- "workflowsApiUr"
9024
+ "workflowsFunctionsUrl"
9025
9025
  )}/functions/get-shopify-customer-orders?email=#{email}`,
9026
9026
  method: "GET",
9027
9027
  body: {},
@@ -9039,7 +9039,7 @@ var shopifyTaskTemplates = () => ({
9039
9039
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9040
9040
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9041
9041
  uri: `${getWorkflowsEnv(
9042
- "workflowsApiUr"
9042
+ "workflowsFunctionsUrl"
9043
9043
  )}/functions/get-shopify-customer-last-order?email=#{email}`,
9044
9044
  method: "GET",
9045
9045
  body: {},
@@ -9057,7 +9057,7 @@ var shopifyTaskTemplates = () => ({
9057
9057
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9058
9058
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9059
9059
  uri: `${getWorkflowsEnv(
9060
- "workflowsApiUr"
9060
+ "workflowsFunctionsUrl"
9061
9061
  )}/functions/get-shopify-product?product_id=#{product_id}`,
9062
9062
  method: "GET",
9063
9063
  body: {},
@@ -9075,7 +9075,7 @@ var shopifyTaskTemplates = () => ({
9075
9075
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9076
9076
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9077
9077
  uri: `${getWorkflowsEnv(
9078
- "workflowsApiUr"
9078
+ "workflowsFunctionsUrl"
9079
9079
  )}/functions/get-shopify-product-variant?product_id=#{product_id}&title=#{title}`,
9080
9080
  method: "GET",
9081
9081
  body: {},
@@ -9093,7 +9093,7 @@ var shopifyTaskTemplates = () => ({
9093
9093
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9094
9094
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9095
9095
  uri: `${getWorkflowsEnv(
9096
- "workflowsApiUr"
9096
+ "workflowsFunctionsUrl"
9097
9097
  )}/functions/update-shopify-inventory-quantity`,
9098
9098
  method: "PATCH",
9099
9099
  body: {
@@ -9114,7 +9114,7 @@ var shopifyTaskTemplates = () => ({
9114
9114
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9115
9115
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9116
9116
  uri: `${getWorkflowsEnv(
9117
- "workflowsApiUr"
9117
+ "workflowsFunctionsUrl"
9118
9118
  )}/functions/update-shopify-order`,
9119
9119
  method: "PATCH",
9120
9120
  body: {},
@@ -9132,7 +9132,7 @@ var shopifyTaskTemplates = () => ({
9132
9132
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9133
9133
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9134
9134
  uri: `${getWorkflowsEnv(
9135
- "workflowsApiUr"
9135
+ "workflowsFunctionsUrl"
9136
9136
  )}/functions/update-shopify-product`,
9137
9137
  method: "PATCH",
9138
9138
  body: {},
@@ -9150,7 +9150,7 @@ var shopifyTaskTemplates = () => ({
9150
9150
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9151
9151
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9152
9152
  uri: `${getWorkflowsEnv(
9153
- "workflowsApiUr"
9153
+ "workflowsFunctionsUrl"
9154
9154
  )}/functions/update-shopify-product-variant`,
9155
9155
  method: "PATCH",
9156
9156
  body: {},
@@ -9168,7 +9168,7 @@ var shopifyTaskTemplates = () => ({
9168
9168
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9169
9169
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9170
9170
  uri: `${getWorkflowsEnv(
9171
- "workflowsApiUr"
9171
+ "workflowsFunctionsUrl"
9172
9172
  )}/functions/update-shopify-customer`,
9173
9173
  method: "PATCH",
9174
9174
  body: {},
@@ -9223,9 +9223,9 @@ var shopifyTriggerTemplates = () => ({
9223
9223
  import {
9224
9224
  IntegrationDisplayNames as IntegrationDisplayNames8,
9225
9225
  IntegrationNames as IntegrationNames9,
9226
- SlackEventNames
9226
+ SlackEventNames,
9227
+ WorkflowDefinitionTaskType as WorkflowDefinitionTaskType9
9227
9228
  } from "@livechat/developer-studio-api";
9228
- import { WorkflowDefinitionTaskType as WorkflowDefinitionTaskType9 } from "@livechat/developer-studio-api/src";
9229
9229
  var SlackTriggerNames = {
9230
9230
  ChannelNewMessagePosted: `${IntegrationNames9.Slack}-${SlackEventNames.ChannelNewMessagePosted}`,
9231
9231
  MemberNewMention: `${IntegrationNames9.Slack}-${SlackEventNames.MemberNewMention}`
@@ -9234,7 +9234,7 @@ var slackTaskConfigs = () => ({
9234
9234
  ["SEND_MESSAGE" /* SendMessage */]: {
9235
9235
  key: "SEND_MESSAGE" /* SendMessage */,
9236
9236
  type: WorkflowDefinitionTaskType9.http,
9237
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/slack-send-message`,
9237
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/slack-send-message`,
9238
9238
  customization: {
9239
9239
  provider: IntegrationNames9.Slack,
9240
9240
  product: IntegrationDisplayNames8.Slack,
@@ -9275,7 +9275,7 @@ var slackTaskConfigs = () => ({
9275
9275
  ["CREATE_CHANNEL" /* CreateChannel */]: {
9276
9276
  key: "CREATE_CHANNEL" /* CreateChannel */,
9277
9277
  type: WorkflowDefinitionTaskType9.http,
9278
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/slack-create_channel`,
9278
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/slack-create_channel`,
9279
9279
  customization: {
9280
9280
  provider: IntegrationNames9.Slack,
9281
9281
  product: IntegrationDisplayNames8.Slack,
@@ -9320,7 +9320,7 @@ var slackTaskTemplates = () => ({
9320
9320
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9321
9321
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9322
9322
  uri: `${getWorkflowsEnv(
9323
- "workflowsApiUr"
9323
+ "workflowsFunctionsUrl"
9324
9324
  )}/functions/slack-send-message`,
9325
9325
  method: "POST",
9326
9326
  body: {
@@ -9329,7 +9329,7 @@ var slackTaskTemplates = () => ({
9329
9329
  },
9330
9330
  headers: {
9331
9331
  Accept: "application/json",
9332
- // eslint-disable-next-line no-template-curly-in-string
9332
+ // eslint-disable-next-line no-template-curly-in-string -- on purpose
9333
9333
  "x-cred-access-token": "${workflow.credentials.slack.access_token}"
9334
9334
  }
9335
9335
  })
@@ -9341,7 +9341,7 @@ var slackTaskTemplates = () => ({
9341
9341
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9342
9342
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9343
9343
  uri: `${getWorkflowsEnv(
9344
- "workflowsApiUr"
9344
+ "workflowsFunctionsUrl"
9345
9345
  )}/functions/slack-create-channel`,
9346
9346
  method: "POST",
9347
9347
  body: {
@@ -9350,7 +9350,7 @@ var slackTaskTemplates = () => ({
9350
9350
  },
9351
9351
  headers: {
9352
9352
  Accept: "application/json",
9353
- // eslint-disable-next-line no-template-curly-in-string
9353
+ // eslint-disable-next-line no-template-curly-in-string -- on purpose
9354
9354
  "x-cred-access-token": "${workflow.credentials.slack.access_token}"
9355
9355
  }
9356
9356
  })
@@ -9382,23 +9382,24 @@ var slackTriggerConfigs = () => {
9382
9382
  },
9383
9383
  output: {
9384
9384
  type: "object",
9385
- required: ["text", "sub_type", "channel_id"],
9386
9385
  properties: {
9387
- text: {
9388
- type: "string",
9389
- title: "Text Message"
9390
- },
9391
- sub_type: {
9392
- type: "string",
9393
- title: "Sub type of the event"
9394
- },
9395
- channel_id: {
9396
- type: "string",
9397
- title: "Channel ID"
9398
- },
9399
- username: {
9400
- type: "string",
9401
- title: "Name of the user"
9386
+ body: {
9387
+ type: "object",
9388
+ required: ["text", "channel"],
9389
+ properties: {
9390
+ text: {
9391
+ type: "string",
9392
+ title: "Text Message"
9393
+ },
9394
+ channel: {
9395
+ type: "string",
9396
+ title: "Channel ID"
9397
+ },
9398
+ user: {
9399
+ type: "string",
9400
+ title: "ID of the user"
9401
+ }
9402
+ }
9402
9403
  }
9403
9404
  }
9404
9405
  }
@@ -9427,23 +9428,24 @@ var slackTriggerConfigs = () => {
9427
9428
  },
9428
9429
  output: {
9429
9430
  type: "object",
9430
- required: ["text", "sub_type", "channel_id"],
9431
9431
  properties: {
9432
- text: {
9433
- type: "string",
9434
- title: "Text Message"
9435
- },
9436
- sub_type: {
9437
- type: "string",
9438
- title: "Sub type of the event"
9439
- },
9440
- channel_id: {
9441
- type: "string",
9442
- title: "Channel ID"
9443
- },
9444
- username: {
9445
- type: "string",
9446
- title: "Name of the user"
9432
+ body: {
9433
+ type: "object",
9434
+ required: ["text", "channel"],
9435
+ properties: {
9436
+ text: {
9437
+ type: "string",
9438
+ title: "Text Message"
9439
+ },
9440
+ channel: {
9441
+ type: "string",
9442
+ title: "Channel ID"
9443
+ },
9444
+ user: {
9445
+ type: "string",
9446
+ title: "ID of the user"
9447
+ }
9448
+ }
9447
9449
  }
9448
9450
  }
9449
9451
  }
@@ -9461,7 +9463,7 @@ var slackTriggerTemplates = () => ({
9461
9463
  channelId: null
9462
9464
  },
9463
9465
  headers: {
9464
- // eslint-disable-next-line no-template-curly-in-string
9466
+ // eslint-disable-next-line no-template-curly-in-string -- on purpose
9465
9467
  "x-adapter-slack-token": ["${workflow.credentials.slack.access_token}"]
9466
9468
  }
9467
9469
  }
@@ -9475,7 +9477,7 @@ var slackTriggerTemplates = () => ({
9475
9477
  userId: null
9476
9478
  },
9477
9479
  headers: {
9478
- // eslint-disable-next-line no-template-curly-in-string
9480
+ // eslint-disable-next-line no-template-curly-in-string -- on purpose
9479
9481
  "x-adapter-slack-token": ["${workflow.credentials.slack.access_token}"]
9480
9482
  }
9481
9483
  }
@@ -10124,7 +10126,7 @@ var getWorkflowTemplates = () => [
10124
10126
  asyncComplete: false,
10125
10127
  http_request: {
10126
10128
  uri: `${getWorkflowsEnv(
10127
- "workflowsApiUr"
10129
+ "workflowsFunctionsUrl"
10128
10130
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10129
10131
  method: "GET",
10130
10132
  headers: {
@@ -10140,7 +10142,7 @@ var getWorkflowTemplates = () => [
10140
10142
  inputParameters: {
10141
10143
  http_request: {
10142
10144
  uri: `${getWorkflowsEnv(
10143
- "workflowsApiUr"
10145
+ "workflowsFunctionsUrl"
10144
10146
  )}/functions/summarize-text`,
10145
10147
  body: {
10146
10148
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10161,7 +10163,7 @@ var getWorkflowTemplates = () => [
10161
10163
  inputParameters: {
10162
10164
  http_request: {
10163
10165
  uri: `${getWorkflowsEnv(
10164
- "workflowsApiUr"
10166
+ "workflowsFunctionsUrl"
10165
10167
  )}/functions/create-helpdesk-ticket`,
10166
10168
  body: {
10167
10169
  message: {
@@ -10247,7 +10249,7 @@ var getWorkflowTemplates = () => [
10247
10249
  asyncComplete: false,
10248
10250
  http_request: {
10249
10251
  uri: `${getWorkflowsEnv(
10250
- "workflowsApiUr"
10252
+ "workflowsFunctionsUrl"
10251
10253
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10252
10254
  method: "GET",
10253
10255
  headers: {
@@ -10263,7 +10265,7 @@ var getWorkflowTemplates = () => [
10263
10265
  inputParameters: {
10264
10266
  http_request: {
10265
10267
  uri: `${getWorkflowsEnv(
10266
- "workflowsApiUr"
10268
+ "workflowsFunctionsUrl"
10267
10269
  )}/functions/analyze-text-sentiment`,
10268
10270
  body: {
10269
10271
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10284,7 +10286,7 @@ var getWorkflowTemplates = () => [
10284
10286
  inputParameters: {
10285
10287
  http_request: {
10286
10288
  uri: `${getWorkflowsEnv(
10287
- "workflowsApiUr"
10289
+ "workflowsFunctionsUrl"
10288
10290
  )}/functions/create-helpdesk-ticket`,
10289
10291
  body: {
10290
10292
  message: {
@@ -10312,7 +10314,7 @@ var getWorkflowTemplates = () => [
10312
10314
  inputParameters: {
10313
10315
  http_request: {
10314
10316
  uri: `${getWorkflowsEnv(
10315
- "workflowsApiUr"
10317
+ "workflowsFunctionsUrl"
10316
10318
  )}/functions/add-mailchimp-subscriber-event`,
10317
10319
  body: {
10318
10320
  name: "Competitor Mention",
@@ -10409,7 +10411,7 @@ var getWorkflowTemplates = () => [
10409
10411
  asyncComplete: false,
10410
10412
  http_request: {
10411
10413
  uri: `${getWorkflowsEnv(
10412
- "workflowsApiUr"
10414
+ "workflowsFunctionsUrl"
10413
10415
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10414
10416
  method: "GET",
10415
10417
  headers: {
@@ -10428,7 +10430,7 @@ var getWorkflowTemplates = () => [
10428
10430
  http_request: {
10429
10431
  method: "POST",
10430
10432
  uri: `${getWorkflowsEnv(
10431
- "workflowsApiUr"
10433
+ "workflowsFunctionsUrl"
10432
10434
  )}/functions/summarize-text`,
10433
10435
  body: {
10434
10436
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10449,7 +10451,7 @@ var getWorkflowTemplates = () => [
10449
10451
  http_request: {
10450
10452
  method: "POST",
10451
10453
  uri: `${getWorkflowsEnv(
10452
- "workflowsApiUr"
10454
+ "workflowsFunctionsUrl"
10453
10455
  )}/functions/create-helpdesk-ticket`,
10454
10456
  body: {
10455
10457
  requester: {
@@ -10474,7 +10476,7 @@ var getWorkflowTemplates = () => [
10474
10476
  inputParameters: {
10475
10477
  http_request: {
10476
10478
  uri: `${getWorkflowsEnv(
10477
- "workflowsApiUr"
10479
+ "workflowsFunctionsUrl"
10478
10480
  )}/functions/add-mailchimp-subscriber-note`,
10479
10481
  body: {
10480
10482
  note: "Feedback from chat ID ${workflow.input.body.chat_id}",
@@ -10569,7 +10571,7 @@ var getWorkflowTemplates = () => [
10569
10571
  asyncComplete: false,
10570
10572
  http_request: {
10571
10573
  uri: `${getWorkflowsEnv(
10572
- "workflowsApiUr"
10574
+ "workflowsFunctionsUrl"
10573
10575
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10574
10576
  method: "GET",
10575
10577
  headers: {
@@ -10585,7 +10587,7 @@ var getWorkflowTemplates = () => [
10585
10587
  inputParameters: {
10586
10588
  http_request: {
10587
10589
  uri: `${getWorkflowsEnv(
10588
- "workflowsApiUr"
10590
+ "workflowsFunctionsUrl"
10589
10591
  )}/functions/get-shopify-customer?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
10590
10592
  method: "GET",
10591
10593
  headers: {
@@ -10604,7 +10606,7 @@ var getWorkflowTemplates = () => [
10604
10606
  inputParameters: {
10605
10607
  http_request: {
10606
10608
  uri: `${getWorkflowsEnv(
10607
- "workflowsApiUr"
10609
+ "workflowsFunctionsUrl"
10608
10610
  )}/functions/analyze-text-sentiment`,
10609
10611
  body: {
10610
10612
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10625,7 +10627,7 @@ var getWorkflowTemplates = () => [
10625
10627
  inputParameters: {
10626
10628
  http_request: {
10627
10629
  uri: `${getWorkflowsEnv(
10628
- "workflowsApiUr"
10630
+ "workflowsFunctionsUrl"
10629
10631
  )}/functions/add-mailchimp-campaign`,
10630
10632
  body: {
10631
10633
  type: "regular",
@@ -10731,7 +10733,7 @@ var getWorkflowTemplates = () => [
10731
10733
  asyncComplete: false,
10732
10734
  http_request: {
10733
10735
  uri: `${getWorkflowsEnv(
10734
- "workflowsApiUr"
10736
+ "workflowsFunctionsUrl"
10735
10737
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10736
10738
  method: "GET",
10737
10739
  headers: {
@@ -10750,7 +10752,7 @@ var getWorkflowTemplates = () => [
10750
10752
  http_request: {
10751
10753
  method: "POST",
10752
10754
  uri: `${getWorkflowsEnv(
10753
- "workflowsApiUr"
10755
+ "workflowsFunctionsUrl"
10754
10756
  )}/functions/analyze-text-sentiment`,
10755
10757
  body: {
10756
10758
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10771,7 +10773,7 @@ var getWorkflowTemplates = () => [
10771
10773
  http_request: {
10772
10774
  method: "POST",
10773
10775
  uri: `${getWorkflowsEnv(
10774
- "workflowsApiUr"
10776
+ "workflowsFunctionsUrl"
10775
10777
  )}/functions/add-or-update-mailchimp-subscriber`,
10776
10778
  body: {
10777
10779
  list_id: null,
@@ -10795,7 +10797,7 @@ var getWorkflowTemplates = () => [
10795
10797
  http_request: {
10796
10798
  method: "POST",
10797
10799
  uri: `${getWorkflowsEnv(
10798
- "workflowsApiUr"
10800
+ "workflowsFunctionsUrl"
10799
10801
  )}/functions/add-mailchimp-subscriber-tag`,
10800
10802
  body: {
10801
10803
  list_id: null,
@@ -10868,7 +10870,7 @@ var getWorkflowTemplates = () => [
10868
10870
  inputParameters: {
10869
10871
  http_request: {
10870
10872
  uri: `${getWorkflowsEnv(
10871
- "workflowsApiUr"
10873
+ "workflowsFunctionsUrl"
10872
10874
  )}/functions/send-livechat-agent-message`,
10873
10875
  body: {
10874
10876
  chat_id: "${workflow.input.body.chat.id}",
@@ -10953,7 +10955,7 @@ var getWorkflowTemplates = () => [
10953
10955
  asyncComplete: false,
10954
10956
  http_request: {
10955
10957
  uri: `${getWorkflowsEnv(
10956
- "workflowsApiUr"
10958
+ "workflowsFunctionsUrl"
10957
10959
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10958
10960
  method: "GET",
10959
10961
  headers: {
@@ -10971,7 +10973,7 @@ var getWorkflowTemplates = () => [
10971
10973
  asyncComplete: false,
10972
10974
  http_request: {
10973
10975
  uri: `${getWorkflowsEnv(
10974
- "workflowsApiUr"
10976
+ "workflowsFunctionsUrl"
10975
10977
  )}/functions/summarize-text`,
10976
10978
  body: {
10977
10979
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10992,7 +10994,7 @@ var getWorkflowTemplates = () => [
10992
10994
  asyncComplete: false,
10993
10995
  http_request: {
10994
10996
  uri: `${getWorkflowsEnv(
10995
- "workflowsApiUr"
10997
+ "workflowsFunctionsUrl"
10996
10998
  )}/functions/create-helpdesk-ticket`,
10997
10999
  body: {
10998
11000
  message: {
@@ -11081,7 +11083,7 @@ var getWorkflowTemplates = () => [
11081
11083
  asyncComplete: false,
11082
11084
  http_request: {
11083
11085
  uri: `${getWorkflowsEnv(
11084
- "workflowsApiUr"
11086
+ "workflowsFunctionsUrl"
11085
11087
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
11086
11088
  method: "GET",
11087
11089
  headers: {
@@ -11099,7 +11101,7 @@ var getWorkflowTemplates = () => [
11099
11101
  asyncComplete: false,
11100
11102
  http_request: {
11101
11103
  uri: `${getWorkflowsEnv(
11102
- "workflowsApiUr"
11104
+ "workflowsFunctionsUrl"
11103
11105
  )}/functions/get-shopify-customer-last-order?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
11104
11106
  body: {},
11105
11107
  method: "GET",
@@ -11119,7 +11121,7 @@ var getWorkflowTemplates = () => [
11119
11121
  asyncComplete: false,
11120
11122
  http_request: {
11121
11123
  uri: `${getWorkflowsEnv(
11122
- "workflowsApiUr"
11124
+ "workflowsFunctionsUrl"
11123
11125
  )}/functions/send-livechat-agent-message`,
11124
11126
  body: {
11125
11127
  chat_id: "${workflow.input.body.chat.id}",
@@ -11197,7 +11199,7 @@ var getWorkflowTemplates = () => [
11197
11199
  asyncComplete: false,
11198
11200
  http_request: {
11199
11201
  uri: `${getWorkflowsEnv(
11200
- "workflowsApiUr"
11202
+ "workflowsFunctionsUrl"
11201
11203
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
11202
11204
  method: "GET",
11203
11205
  headers: {
@@ -11215,7 +11217,7 @@ var getWorkflowTemplates = () => [
11215
11217
  asyncComplete: false,
11216
11218
  http_request: {
11217
11219
  uri: `${getWorkflowsEnv(
11218
- "workflowsApiUr"
11220
+ "workflowsFunctionsUrl"
11219
11221
  )}/functions/create-hubspot-contact`,
11220
11222
  body: {
11221
11223
  properties: {
@@ -11295,7 +11297,7 @@ var getWorkflowTemplates = () => [
11295
11297
  asyncComplete: false,
11296
11298
  http_request: {
11297
11299
  uri: `${getWorkflowsEnv(
11298
- "workflowsApiUr"
11300
+ "workflowsFunctionsUrl"
11299
11301
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
11300
11302
  method: "GET",
11301
11303
  headers: {
@@ -11313,7 +11315,7 @@ var getWorkflowTemplates = () => [
11313
11315
  asyncComplete: false,
11314
11316
  http_request: {
11315
11317
  uri: `${getWorkflowsEnv(
11316
- "workflowsApiUr"
11318
+ "workflowsFunctionsUrl"
11317
11319
  )}/functions/create-helpdesk-ticket`,
11318
11320
  body: {
11319
11321
  message: {
@@ -11406,7 +11408,7 @@ var getWorkflowTemplates = () => [
11406
11408
  asyncComplete: false,
11407
11409
  http_request: {
11408
11410
  uri: `${getWorkflowsEnv(
11409
- "workflowsApiUr"
11411
+ "workflowsFunctionsUrl"
11410
11412
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
11411
11413
  method: "GET",
11412
11414
  headers: {
@@ -11424,7 +11426,7 @@ var getWorkflowTemplates = () => [
11424
11426
  asyncComplete: false,
11425
11427
  http_request: {
11426
11428
  uri: `${getWorkflowsEnv(
11427
- "workflowsApiUr"
11429
+ "workflowsFunctionsUrl"
11428
11430
  )}/functions/create-hubspot-contact`,
11429
11431
  body: {
11430
11432
  properties: {
@@ -11450,7 +11452,7 @@ var getWorkflowTemplates = () => [
11450
11452
  http_request: {
11451
11453
  method: "POST",
11452
11454
  uri: `${getWorkflowsEnv(
11453
- "workflowsApiUr"
11455
+ "workflowsFunctionsUrl"
11454
11456
  )}/functions/add-or-update-mailchimp-subscriber`,
11455
11457
  body: {
11456
11458
  list_id: null,
@@ -11528,7 +11530,7 @@ var getWorkflowTemplates = () => [
11528
11530
  asyncComplete: false,
11529
11531
  http_request: {
11530
11532
  uri: `${getWorkflowsEnv(
11531
- "workflowsApiUr"
11533
+ "workflowsFunctionsUrl"
11532
11534
  )}/functions/supervise-livechat-chat`,
11533
11535
  body: {
11534
11536
  chat_id: "${workflow.input.body.chat_id}",
@@ -11550,7 +11552,7 @@ var getWorkflowTemplates = () => [
11550
11552
  asyncComplete: false,
11551
11553
  http_request: {
11552
11554
  uri: `${getWorkflowsEnv(
11553
- "workflowsApiUr"
11555
+ "workflowsFunctionsUrl"
11554
11556
  )}/functions/send-livechat-agent-message`,
11555
11557
  body: {
11556
11558
  chat_id: "${workflow.input.body.chat_id}",
@@ -11626,7 +11628,7 @@ var getWorkflowTemplates = () => [
11626
11628
  asyncComplete: false,
11627
11629
  http_request: {
11628
11630
  uri: `${getWorkflowsEnv(
11629
- "workflowsApiUr"
11631
+ "workflowsFunctionsUrl"
11630
11632
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
11631
11633
  method: "GET",
11632
11634
  headers: {
@@ -11644,7 +11646,7 @@ var getWorkflowTemplates = () => [
11644
11646
  asyncComplete: false,
11645
11647
  http_request: {
11646
11648
  uri: `${getWorkflowsEnv(
11647
- "workflowsApiUr"
11649
+ "workflowsFunctionsUrl"
11648
11650
  )}/functions/create-helpdesk-ticket`,
11649
11651
  body: {
11650
11652
  message: {
@@ -11735,7 +11737,7 @@ var getWorkflowTemplates = () => [
11735
11737
  http_request: {
11736
11738
  method: "POST",
11737
11739
  uri: `${getWorkflowsEnv(
11738
- "workflowsApiUr"
11740
+ "workflowsFunctionsUrl"
11739
11741
  )}/functions/supervise-livechat-chat`,
11740
11742
  body: {
11741
11743
  chat_id: "${workflow.input.body.chat.id}",
@@ -11757,7 +11759,7 @@ var getWorkflowTemplates = () => [
11757
11759
  http_request: {
11758
11760
  method: "POST",
11759
11761
  uri: `${getWorkflowsEnv(
11760
- "workflowsApiUr"
11762
+ "workflowsFunctionsUrl"
11761
11763
  )}/functions/tag-livechat-chat`,
11762
11764
  body: {
11763
11765
  chat_id: "${workflow.input.body.chat.id}",
@@ -11853,7 +11855,7 @@ var getWorkflowTemplates = () => [
11853
11855
  http_request: {
11854
11856
  method: "POST",
11855
11857
  uri: `${getWorkflowsEnv(
11856
- "workflowsApiUr"
11858
+ "workflowsFunctionsUrl"
11857
11859
  )}/functions/tag-livechat-chat`,
11858
11860
  body: {
11859
11861
  chat_id: "${workflow.input.body.chat_id}",
@@ -11934,7 +11936,7 @@ var getWorkflowTemplates = () => [
11934
11936
  http_request: {
11935
11937
  method: "POST",
11936
11938
  uri: `${getWorkflowsEnv(
11937
- "workflowsApiUr"
11939
+ "workflowsFunctionsUrl"
11938
11940
  )}/functions/send-livechat-agent-message`,
11939
11941
  body: {
11940
11942
  visibility: "all",
@@ -11957,7 +11959,7 @@ var getWorkflowTemplates = () => [
11957
11959
  http_request: {
11958
11960
  method: "POST",
11959
11961
  uri: `${getWorkflowsEnv(
11960
- "workflowsApiUr"
11962
+ "workflowsFunctionsUrl"
11961
11963
  )}/functions/tag-livechat-chat`,
11962
11964
  body: {
11963
11965
  chat_id: "${workflow.input.body.chat_id}",
@@ -12035,7 +12037,7 @@ var getWorkflowTemplates = () => [
12035
12037
  http_request: {
12036
12038
  method: "POST",
12037
12039
  uri: `${getWorkflowsEnv(
12038
- "workflowsApiUr"
12040
+ "workflowsFunctionsUrl"
12039
12041
  )}/functions/send-livechat-agent-message`,
12040
12042
  body: {
12041
12043
  visibility: "all",
@@ -12117,7 +12119,7 @@ var getWorkflowTemplates = () => [
12117
12119
  http_request: {
12118
12120
  method: "POST",
12119
12121
  uri: `${getWorkflowsEnv(
12120
- "workflowsApiUr"
12122
+ "workflowsFunctionsUrl"
12121
12123
  )}/functions/tag-livechat-chat`,
12122
12124
  body: {
12123
12125
  chat_id: "${workflow.input.body.chat_id}",
@@ -12140,7 +12142,7 @@ var getWorkflowTemplates = () => [
12140
12142
  http_request: {
12141
12143
  method: "POST",
12142
12144
  uri: `${getWorkflowsEnv(
12143
- "workflowsApiUr"
12145
+ "workflowsFunctionsUrl"
12144
12146
  )}/functions/supervise-livechat-chat`,
12145
12147
  body: {
12146
12148
  chat_id: "${workflow.input.body.chat_id}",
@@ -12162,7 +12164,7 @@ var getWorkflowTemplates = () => [
12162
12164
  http_request: {
12163
12165
  method: "POST",
12164
12166
  uri: `${getWorkflowsEnv(
12165
- "workflowsApiUr"
12167
+ "workflowsFunctionsUrl"
12166
12168
  )}/functions/send-livechat-agent-message`,
12167
12169
  body: {
12168
12170
  visibility: "agents",
@@ -12238,7 +12240,7 @@ var getWorkflowTemplates = () => [
12238
12240
  asyncComplete: false,
12239
12241
  http_request: {
12240
12242
  uri: `${getWorkflowsEnv(
12241
- "workflowsApiUr"
12243
+ "workflowsFunctionsUrl"
12242
12244
  )}/functions/transfer-livechat-chat`,
12243
12245
  method: "POST",
12244
12246
  body: {
@@ -12261,7 +12263,7 @@ var getWorkflowTemplates = () => [
12261
12263
  asyncComplete: false,
12262
12264
  http_request: {
12263
12265
  uri: `${getWorkflowsEnv(
12264
- "workflowsApiUr"
12266
+ "workflowsFunctionsUrl"
12265
12267
  )}/functions/send-livechat-agent-message`,
12266
12268
  method: "POST",
12267
12269
  body: {
@@ -12349,7 +12351,7 @@ var getWorkflowTemplates = () => [
12349
12351
  asyncComplete: false,
12350
12352
  http_request: {
12351
12353
  uri: `${getWorkflowsEnv(
12352
- "workflowsApiUr"
12354
+ "workflowsFunctionsUrl"
12353
12355
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
12354
12356
  method: "GET",
12355
12357
  headers: {
@@ -12367,7 +12369,7 @@ var getWorkflowTemplates = () => [
12367
12369
  asyncComplete: false,
12368
12370
  http_request: {
12369
12371
  uri: `${getWorkflowsEnv(
12370
- "workflowsApiUr"
12372
+ "workflowsFunctionsUrl"
12371
12373
  )}/functions/summarize-text`,
12372
12374
  method: "POST",
12373
12375
  body: {
@@ -12388,7 +12390,7 @@ var getWorkflowTemplates = () => [
12388
12390
  asyncComplete: false,
12389
12391
  http_request: {
12390
12392
  uri: `${getWorkflowsEnv(
12391
- "workflowsApiUr"
12393
+ "workflowsFunctionsUrl"
12392
12394
  )}/functions/send-livechat-agent-message`,
12393
12395
  method: "POST",
12394
12396
  body: {
@@ -12411,7 +12413,7 @@ var getWorkflowTemplates = () => [
12411
12413
  asyncComplete: false,
12412
12414
  http_request: {
12413
12415
  uri: `${getWorkflowsEnv(
12414
- "workflowsApiUr"
12416
+ "workflowsFunctionsUrl"
12415
12417
  )}/functions/tag-livechat-chat`,
12416
12418
  method: "POST",
12417
12419
  body: {
@@ -12493,7 +12495,7 @@ var getWorkflowTemplates = () => [
12493
12495
  asyncComplete: false,
12494
12496
  http_request: {
12495
12497
  uri: `${getWorkflowsEnv(
12496
- "workflowsApiUr"
12498
+ "workflowsFunctionsUrl"
12497
12499
  )}/functions/transfer-livechat-chat`,
12498
12500
  method: "POST",
12499
12501
  body: {
@@ -12516,7 +12518,7 @@ var getWorkflowTemplates = () => [
12516
12518
  asyncComplete: false,
12517
12519
  http_request: {
12518
12520
  uri: `${getWorkflowsEnv(
12519
- "workflowsApiUr"
12521
+ "workflowsFunctionsUrl"
12520
12522
  )}/functions/send-livechat-agent-message`,
12521
12523
  method: "POST",
12522
12524
  body: {
@@ -12539,7 +12541,7 @@ var getWorkflowTemplates = () => [
12539
12541
  asyncComplete: false,
12540
12542
  http_request: {
12541
12543
  uri: `${getWorkflowsEnv(
12542
- "workflowsApiUr"
12544
+ "workflowsFunctionsUrl"
12543
12545
  )}/functions/tag-livechat-chat`,
12544
12546
  method: "POST",
12545
12547
  body: {
@@ -12616,7 +12618,7 @@ var getWorkflowTemplates = () => [
12616
12618
  asyncComplete: false,
12617
12619
  http_request: {
12618
12620
  uri: `${getWorkflowsEnv(
12619
- "workflowsApiUr"
12621
+ "workflowsFunctionsUrl"
12620
12622
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
12621
12623
  method: "GET",
12622
12624
  headers: {
@@ -12634,7 +12636,7 @@ var getWorkflowTemplates = () => [
12634
12636
  asyncComplete: false,
12635
12637
  http_request: {
12636
12638
  uri: `${getWorkflowsEnv(
12637
- "workflowsApiUr"
12639
+ "workflowsFunctionsUrl"
12638
12640
  )}/functions/send-livechat-agent-message`,
12639
12641
  method: "POST",
12640
12642
  body: {
@@ -12707,7 +12709,7 @@ var getWorkflowTemplates = () => [
12707
12709
  asyncComplete: false,
12708
12710
  http_request: {
12709
12711
  uri: `${getWorkflowsEnv(
12710
- "workflowsApiUr"
12712
+ "workflowsFunctionsUrl"
12711
12713
  )}/functions/send-livechat-agent-message`,
12712
12714
  method: "POST",
12713
12715
  body: {
@@ -12781,7 +12783,7 @@ var getWorkflowTemplates = () => [
12781
12783
  asyncComplete: false,
12782
12784
  http_request: {
12783
12785
  uri: `${getWorkflowsEnv(
12784
- "workflowsApiUr"
12786
+ "workflowsFunctionsUrl"
12785
12787
  )}/functions/tag-livechat-chat`,
12786
12788
  method: "POST",
12787
12789
  body: {
@@ -12855,7 +12857,7 @@ var getWorkflowTemplates = () => [
12855
12857
  asyncComplete: false,
12856
12858
  http_request: {
12857
12859
  uri: `${getWorkflowsEnv(
12858
- "workflowsApiUr"
12860
+ "workflowsFunctionsUrl"
12859
12861
  )}/functions/transfer-livechat-chat`,
12860
12862
  method: "POST",
12861
12863
  body: {
@@ -12918,6 +12920,9 @@ var logAmplitudeEvent = (name, payload, user) => {
12918
12920
  };
12919
12921
  var logSprigEvent = (name, email, payload) => {
12920
12922
  const sprig = window.Sprig;
12923
+ if (!sprig) {
12924
+ return;
12925
+ }
12921
12926
  sprig("identifyAndTrack", {
12922
12927
  eventName: name,
12923
12928
  userId: email,
@@ -13546,7 +13551,7 @@ function OneMessagesProvider({ children }) {
13546
13551
  ]);
13547
13552
  try {
13548
13553
  const response = yield generateAiResponseMutation.mutateAsync({
13549
- agent_id: getWorkflowsEnv("aiAgentId"),
13554
+ agent_id: getWorkflowsEnv("workflowAiAgentId"),
13550
13555
  account_id: user == null ? void 0 : user.auth.account_id,
13551
13556
  organization: user == null ? void 0 : user.auth.organization_id,
13552
13557
  token: user == null ? void 0 : user.auth.access_token,
@@ -14984,6 +14989,7 @@ function WorkflowCreatorProviderBase({
14984
14989
  }
14985
14990
  replaceWorkflowId(workflowId);
14986
14991
  }
14992
+ } catch (e) {
14987
14993
  } finally {
14988
14994
  setAction("isSaving", false);
14989
14995
  }
@@ -15018,6 +15024,7 @@ function WorkflowCreatorProviderBase({
15018
15024
  notifications.addSuccessToast(
15019
15025
  `Workflow has been ${state2.workflow.active ? "deactivated" : "activated"}`
15020
15026
  );
15027
+ } catch (e) {
15021
15028
  } finally {
15022
15029
  setAction("isActivating", false);
15023
15030
  }
@@ -15037,6 +15044,7 @@ function WorkflowCreatorProviderBase({
15037
15044
  }
15038
15045
  navigate("/list");
15039
15046
  notifications.addSuccessToast("Workflow has been removed successfully");
15047
+ } catch (e) {
15040
15048
  } finally {
15041
15049
  setAction("isRemoving", false);
15042
15050
  }
@@ -15067,6 +15075,7 @@ function WorkflowCreatorProviderBase({
15067
15075
  notifications.addSuccessToast(
15068
15076
  "Workflow draft has been created successfully"
15069
15077
  );
15078
+ } catch (e) {
15070
15079
  } finally {
15071
15080
  setAction("isCreating", false);
15072
15081
  }
@@ -15111,6 +15120,7 @@ function WorkflowCreatorProviderBase({
15111
15120
  notifications.addSuccessToast(
15112
15121
  "Workflow draft has been published successfully"
15113
15122
  );
15123
+ } catch (e) {
15114
15124
  } finally {
15115
15125
  setAction("isPublishing", false);
15116
15126
  }
@@ -15147,6 +15157,7 @@ function WorkflowCreatorProviderBase({
15147
15157
  notifications.addSuccessToast(
15148
15158
  "Workflow draft has been discarded successfully"
15149
15159
  );
15160
+ } catch (e) {
15150
15161
  } finally {
15151
15162
  setAction("isDiscarding", false);
15152
15163
  }
@@ -23376,25 +23387,38 @@ function WorkflowExecutionList({
23376
23387
  /* @__PURE__ */ jsx4("th", { children: "End date" }),
23377
23388
  /* @__PURE__ */ jsx4("th", { children: "Completion" })
23378
23389
  ] }) }),
23379
- /* @__PURE__ */ jsx4("tbody", { children: ((_a = workflowExecutions.data) == null ? void 0 : _a.length) ? workflowExecutions.data.map((execution) => /* @__PURE__ */ jsxs2("tr", { children: [
23380
- /* @__PURE__ */ jsx4("td", { children: formatUSADate(execution.started_at) }),
23381
- /* @__PURE__ */ jsx4("td", { children: formatUSADate(execution.ended_at) }),
23382
- /* @__PURE__ */ jsx4("td", { children: /* @__PURE__ */ jsx4(
23383
- Tag2,
23384
- {
23385
- kind: execution.status === WorkflowExecutionStatus.Completed ? "success" : "error",
23386
- leftNode: /* @__PURE__ */ jsx4(
23387
- Icon27,
23390
+ /* @__PURE__ */ jsx4("tbody", { children: ((_a = workflowExecutions.data) == null ? void 0 : _a.length) ? workflowExecutions.data.map((execution) => /* @__PURE__ */ jsxs2(
23391
+ "tr",
23392
+ {
23393
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.executions.list.row,
23394
+ children: [
23395
+ /* @__PURE__ */ jsx4("td", { children: formatUSADate(execution.started_at) }),
23396
+ /* @__PURE__ */ jsx4("td", { children: formatUSADate(execution.ended_at) }),
23397
+ /* @__PURE__ */ jsx4(
23398
+ "td",
23388
23399
  {
23389
- size: "small",
23390
- source: execution.status === WorkflowExecutionStatus.Completed ? CheckCircle2 : CloseCircle2
23400
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.executions.list.status,
23401
+ children: /* @__PURE__ */ jsx4(
23402
+ Tag2,
23403
+ {
23404
+ kind: execution.status === WorkflowExecutionStatus.Completed ? "success" : "error",
23405
+ leftNode: /* @__PURE__ */ jsx4(
23406
+ Icon27,
23407
+ {
23408
+ size: "small",
23409
+ source: execution.status === WorkflowExecutionStatus.Completed ? CheckCircle2 : CloseCircle2
23410
+ }
23411
+ ),
23412
+ size: "small",
23413
+ children: execution.status
23414
+ }
23415
+ )
23391
23416
  }
23392
- ),
23393
- size: "small",
23394
- children: execution.status
23395
- }
23396
- ) })
23397
- ] }, execution.id)) : /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 4, children: "No executions" }) }) })
23417
+ )
23418
+ ]
23419
+ },
23420
+ execution.id
23421
+ )) : /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 4, children: "No executions" }) }) })
23398
23422
  ] }) });
23399
23423
  }
23400
23424
  var List_default = WorkflowExecutionList;
@@ -23439,11 +23463,27 @@ function WorkflowDetailsInfo({
23439
23463
  return /* @__PURE__ */ jsxs2(Column12, { gap: 8, setColumnPadding: "0 2rem 0", children: [
23440
23464
  /* @__PURE__ */ jsxs2("div", { children: [
23441
23465
  /* @__PURE__ */ jsx4(Label, { children: "Date created" }),
23442
- /* @__PURE__ */ jsx4(Text15, { as: "div", bold: true, children: formatUSADate2(workflow.data.created_at) })
23466
+ /* @__PURE__ */ jsx4(
23467
+ Text15,
23468
+ {
23469
+ as: "div",
23470
+ bold: true,
23471
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.dateCreated,
23472
+ children: formatUSADate2(workflow.data.created_at)
23473
+ }
23474
+ )
23443
23475
  ] }),
23444
23476
  /* @__PURE__ */ jsxs2("div", { children: [
23445
23477
  /* @__PURE__ */ jsx4(Label, { children: "Last modified" }),
23446
- /* @__PURE__ */ jsx4(Text15, { as: "div", bold: true, children: formatUSADate2(workflow.data.updated_at || workflow.data.created_at) })
23478
+ /* @__PURE__ */ jsx4(
23479
+ Text15,
23480
+ {
23481
+ as: "div",
23482
+ bold: true,
23483
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.dateUpdated,
23484
+ children: formatUSADate2(workflow.data.updated_at || workflow.data.created_at)
23485
+ }
23486
+ )
23447
23487
  ] }),
23448
23488
  /* @__PURE__ */ jsxs2("div", { children: [
23449
23489
  /* @__PURE__ */ jsx4(Label, { children: "Created by" }),
@@ -23451,11 +23491,27 @@ function WorkflowDetailsInfo({
23451
23491
  ] }),
23452
23492
  /* @__PURE__ */ jsxs2("div", { children: [
23453
23493
  /* @__PURE__ */ jsx4(Label, { children: "Completed cycles" }),
23454
- /* @__PURE__ */ jsx4(Text15, { as: "div", bold: true, children: completedCycles })
23494
+ /* @__PURE__ */ jsx4(
23495
+ Text15,
23496
+ {
23497
+ as: "div",
23498
+ bold: true,
23499
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.completedCycles,
23500
+ children: completedCycles
23501
+ }
23502
+ )
23455
23503
  ] }),
23456
23504
  /* @__PURE__ */ jsxs2("div", { children: [
23457
23505
  /* @__PURE__ */ jsx4(Label, { children: "Failed cycles" }),
23458
- /* @__PURE__ */ jsx4(Text15, { as: "div", bold: true, children: failedCycles })
23506
+ /* @__PURE__ */ jsx4(
23507
+ Text15,
23508
+ {
23509
+ as: "div",
23510
+ bold: true,
23511
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.failedCycles,
23512
+ children: failedCycles
23513
+ }
23514
+ )
23459
23515
  ] }),
23460
23516
  /* @__PURE__ */ jsxs2("div", { children: [
23461
23517
  /* @__PURE__ */ jsx4(Label, { children: "Tasks" }),
@@ -23560,6 +23616,7 @@ function WorkflowDetailsPanel({
23560
23616
  /* @__PURE__ */ jsx4(
23561
23617
  Tab2,
23562
23618
  {
23619
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.panel.historyTab,
23563
23620
  isSelected: tab === "executions",
23564
23621
  onClick: () => {
23565
23622
  navigate("../executions", { replace: true, relative: "route" });
@@ -24574,6 +24631,7 @@ function WorkflowTemplatePreviewModal({
24574
24631
  return /* @__PURE__ */ jsx4(
24575
24632
  Modal8,
24576
24633
  {
24634
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.modals.previewTemplate.wrapper,
24577
24635
  footer: /* @__PURE__ */ jsxs2(Row19, { flexEnd: true, gap: `var(${SpacingToken36.Spacing3})`, notPadded: true, children: [
24578
24636
  /* @__PURE__ */ jsx4(
24579
24637
  Button29,
@@ -24590,6 +24648,7 @@ function WorkflowTemplatePreviewModal({
24590
24648
  /* @__PURE__ */ jsx4(
24591
24649
  Button29,
24592
24650
  {
24651
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.modals.previewTemplate.useButton,
24593
24652
  disabled: isSaving,
24594
24653
  kind: "primary",
24595
24654
  loading: isSaving,
@@ -24941,6 +25000,7 @@ function WorkflowTemplateCard({
24941
25000
  Card3,
24942
25001
  {
24943
25002
  border: true,
25003
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.home.cards.template.wrapper,
24944
25004
  height: "100%",
24945
25005
  marginLeft: false,
24946
25006
  noBackground: true,
@@ -25104,6 +25164,7 @@ function WorkflowCreateModal({ onClose }) {
25104
25164
  width: min(100% - 4rem, 60rem);
25105
25165
  overflow-y: auto;
25106
25166
  `,
25167
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.modals.create.wrapper,
25107
25168
  heading: /* @__PURE__ */ jsx4(ModalHeader6, { title: "Create a workflow" }),
25108
25169
  onClose: handleClose,
25109
25170
  children: /* @__PURE__ */ jsx4(Home_default, { basePath: "create/", isOnModal: true })
@@ -25353,20 +25414,30 @@ function WorkflowsTable({ workflowsQuery, state }) {
25353
25414
  },
25354
25415
  [navigate]
25355
25416
  );
25356
- return /* @__PURE__ */ jsxs2(Table, { flowTable: true, loading: workflowsQuery.isLoading, children: [
25357
- /* @__PURE__ */ jsx4("thead", { children: /* @__PURE__ */ jsxs2("tr", { children: [
25358
- /* @__PURE__ */ jsx4("th", { children: "Name" }),
25359
- /* @__PURE__ */ jsx4("th", { children: "Tasks" }),
25360
- /* @__PURE__ */ jsx4("th", { children: "Status" }),
25361
- /* @__PURE__ */ jsx4("th", {}),
25362
- /* @__PURE__ */ jsx4("th", {})
25363
- ] }) }),
25364
- /* @__PURE__ */ jsx4("tbody", { children: workflowsQuery.isSuccess && filteredWorkflows.length > 0 ? filteredWorkflows.map((workflow) => {
25365
- var _a2, _b2, _c2, _d;
25366
- return /* @__PURE__ */ jsxs2(
25367
- "tr",
25368
- {
25369
- css: css`
25417
+ return /* @__PURE__ */ jsxs2(
25418
+ Table,
25419
+ {
25420
+ "data-testId": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.wrapper,
25421
+ flowTable: true,
25422
+ loading: workflowsQuery.isLoading,
25423
+ children: [
25424
+ /* @__PURE__ */ jsx4("thead", { children: /* @__PURE__ */ jsxs2("tr", { children: [
25425
+ /* @__PURE__ */ jsx4("th", { children: "Name" }),
25426
+ /* @__PURE__ */ jsx4("th", { children: "Tasks" }),
25427
+ /* @__PURE__ */ jsx4("th", { children: "Status" }),
25428
+ /* @__PURE__ */ jsx4("th", {}),
25429
+ /* @__PURE__ */ jsx4("th", {})
25430
+ ] }) }),
25431
+ /* @__PURE__ */ jsx4(
25432
+ "tbody",
25433
+ {
25434
+ "data-testId": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.body,
25435
+ children: workflowsQuery.isSuccess && filteredWorkflows.length > 0 ? filteredWorkflows.map((workflow) => {
25436
+ var _a2, _b2, _c2, _d;
25437
+ return /* @__PURE__ */ jsxs2(
25438
+ "tr",
25439
+ {
25440
+ css: css`
25370
25441
  transition: background 0.2s;
25371
25442
  cursor: pointer;
25372
25443
 
@@ -25374,131 +25445,141 @@ function WorkflowsTable({ workflowsQuery, state }) {
25374
25445
  background: var(${DesignToken45.SurfacePrimaryHover});
25375
25446
  }
25376
25447
  `,
25377
- onClick: () => {
25378
- handleSelect(workflow);
25379
- },
25380
- children: [
25381
- /* @__PURE__ */ jsx4("td", { width: "45%", children: /* @__PURE__ */ jsxs2(Row25, { gap: `var(${SpacingToken43.Spacing2})`, noWrap: true, notPadded: true, children: [
25382
- /* @__PURE__ */ jsx4(Text20, { noMargin: true, size: "sm", children: workflow.name }),
25383
- workflow.related_workflow_id ? /* @__PURE__ */ jsx4(
25384
- Tag4,
25385
- {
25386
- css: css`
25448
+ "data-testId": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.workflowItem(
25449
+ workflow.id
25450
+ ),
25451
+ onClick: () => {
25452
+ handleSelect(workflow);
25453
+ },
25454
+ children: [
25455
+ /* @__PURE__ */ jsx4("td", { width: "45%", children: /* @__PURE__ */ jsxs2(Row25, { gap: `var(${SpacingToken43.Spacing2})`, noWrap: true, notPadded: true, children: [
25456
+ /* @__PURE__ */ jsx4(Text20, { noMargin: true, size: "sm", children: workflow.name }),
25457
+ workflow.related_workflow_id ? /* @__PURE__ */ jsx4(
25458
+ Tag4,
25459
+ {
25460
+ css: css`
25387
25461
  color: #68afff;
25388
25462
  flex-shrink: 0;
25389
25463
  `,
25390
- kind: "info",
25391
- size: "small",
25392
- children: "Has Draft"
25393
- }
25394
- ) : null
25395
- ] }) }),
25396
- /* @__PURE__ */ jsx4("td", { width: "40%", children: /* @__PURE__ */ jsx4(Row25, { gap: 12, notPadded: true, children: (_a2 = workflow.tags) == null ? void 0 : _a2.map((tag) => {
25397
- const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === IntegrationNames20.BigCommerce.toLowerCase());
25398
- return /* @__PURE__ */ jsx4(
25399
- ProductIcon_default,
25400
- {
25401
- center: true,
25402
- height: 4,
25403
- product: tag.toLowerCase(),
25404
- revertColors: revertIconColor,
25405
- width: 4
25406
- },
25407
- tag
25408
- );
25409
- }) }) }),
25410
- /* @__PURE__ */ jsx4("td", { children: /* @__PURE__ */ jsx4(
25411
- Tooltip9,
25412
- {
25413
- triggerClassName: "tooltip-trigger",
25414
- triggerOnHover: true,
25415
- triggerRenderer: /* @__PURE__ */ jsx4(StopPropagation, { children: /* @__PURE__ */ jsx4(
25416
- Switch2,
25417
- {
25418
- css: css`
25464
+ kind: "info",
25465
+ size: "small",
25466
+ children: "Has Draft"
25467
+ }
25468
+ ) : null
25469
+ ] }) }),
25470
+ /* @__PURE__ */ jsx4("td", { width: "40%", children: /* @__PURE__ */ jsx4(Row25, { gap: 12, notPadded: true, children: (_a2 = workflow.tags) == null ? void 0 : _a2.map((tag) => {
25471
+ const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === IntegrationNames20.BigCommerce.toLowerCase());
25472
+ return /* @__PURE__ */ jsx4(
25473
+ ProductIcon_default,
25474
+ {
25475
+ center: true,
25476
+ height: 4,
25477
+ product: tag.toLowerCase(),
25478
+ revertColors: revertIconColor,
25479
+ width: 4
25480
+ },
25481
+ tag
25482
+ );
25483
+ }) }) }),
25484
+ /* @__PURE__ */ jsx4("td", { children: /* @__PURE__ */ jsx4(
25485
+ Tooltip9,
25486
+ {
25487
+ triggerClassName: "tooltip-trigger",
25488
+ triggerOnHover: true,
25489
+ triggerRenderer: /* @__PURE__ */ jsx4(StopPropagation, { children: /* @__PURE__ */ jsx4(
25490
+ Switch2,
25491
+ {
25492
+ css: css`
25419
25493
  vertical-align: bottom;
25420
25494
  `,
25421
- on: (_b2 = workflow.active) != null ? _b2 : false,
25422
- onChange: (e) => {
25423
- e.stopPropagation();
25424
- void handleActivate(workflow);
25425
- },
25426
- state: activateWorkflowAction.isLoading && ((_c2 = activateWorkflowAction.variables) == null ? void 0 : _c2.id) === workflow.id ? "loading" : workflow.draft ? "locked" : "regular"
25427
- }
25428
- ) }),
25429
- children: workflow.draft ? "Publish the draft to activate this workflow" : workflow.active ? "Deactivate flow" : "Activate flow"
25430
- }
25431
- ) }),
25432
- /* @__PURE__ */ jsx4("td", { children: !workflow.draft && /* @__PURE__ */ jsx4(
25433
- Button34,
25434
- {
25435
- icon: /* @__PURE__ */ jsx4(Icon39, { source: Info2 }),
25436
- kind: "plain",
25437
- onClick: (e) => {
25438
- e.stopPropagation();
25439
- handleShowDetails(workflow);
25440
- }
25441
- }
25442
- ) }),
25443
- /* @__PURE__ */ jsx4("td", { align: "right", children: /* @__PURE__ */ jsx4(StopPropagation, { children: /* @__PURE__ */ jsx4(
25444
- ActionMenu6,
25445
- {
25446
- options: [
25447
- {
25448
- key: "run",
25449
- element: /* @__PURE__ */ jsx4(
25450
- ActionMenuItem2,
25495
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.activateSwitch,
25496
+ on: (_b2 = workflow.active) != null ? _b2 : false,
25497
+ onChange: (e) => {
25498
+ e.stopPropagation();
25499
+ void handleActivate(workflow);
25500
+ },
25501
+ state: activateWorkflowAction.isLoading && ((_c2 = activateWorkflowAction.variables) == null ? void 0 : _c2.id) === workflow.id ? "loading" : workflow.draft ? "locked" : "regular"
25502
+ }
25503
+ ) }),
25504
+ children: workflow.draft ? "Publish the draft to activate this workflow" : workflow.active ? "Deactivate flow" : "Activate flow"
25505
+ }
25506
+ ) }),
25507
+ /* @__PURE__ */ jsx4("td", { children: !workflow.draft && /* @__PURE__ */ jsx4(
25508
+ Button34,
25451
25509
  {
25452
- leftNode: /* @__PURE__ */ jsx4(Icon39, { source: PlayArrow }),
25453
- children: "Trigger manually"
25510
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.infoButton,
25511
+ icon: /* @__PURE__ */ jsx4(Icon39, { source: Info2 }),
25512
+ kind: "plain",
25513
+ onClick: (e) => {
25514
+ e.stopPropagation();
25515
+ handleShowDetails(workflow);
25516
+ }
25454
25517
  }
25455
- ),
25456
- onClick: () => {
25457
- navigate(`/${workflow.id}/execute`);
25458
- }
25459
- },
25460
- {
25461
- key: "delete",
25462
- element: /* @__PURE__ */ jsx4(ActionMenuItem2, { leftNode: /* @__PURE__ */ jsx4(Icon39, { source: Delete3 }), children: "Delete" }),
25463
- onClick: () => {
25464
- void handleDelete(workflow);
25465
- }
25466
- }
25467
- ],
25468
- triggerRenderer: /* @__PURE__ */ jsx4(
25469
- Button34,
25470
- {
25471
- icon: /* @__PURE__ */ jsx4(Icon39, { source: MoreHoriz2 }),
25472
- kind: "text",
25473
- loading: deleteAction.isLoading ? ((_d = deleteAction.variables) == null ? void 0 : _d.id) === workflow.id : void 0,
25474
- size: "compact"
25475
- }
25476
- )
25477
- }
25478
- ) }) })
25479
- ]
25480
- },
25481
- workflow.id
25482
- );
25483
- }) : workflowsQuery.isLoading ? /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 6, children: /* @__PURE__ */ jsx4(Loader4, { size: "medium" }) }) }) : /* @__PURE__ */ jsx4(
25484
- "tr",
25485
- {
25486
- css: css`
25518
+ ) }),
25519
+ /* @__PURE__ */ jsx4("td", { align: "right", children: /* @__PURE__ */ jsx4(StopPropagation, { children: /* @__PURE__ */ jsx4(
25520
+ ActionMenu6,
25521
+ {
25522
+ options: [
25523
+ {
25524
+ key: "run",
25525
+ element: /* @__PURE__ */ jsx4(
25526
+ ActionMenuItem2,
25527
+ {
25528
+ leftNode: /* @__PURE__ */ jsx4(Icon39, { source: PlayArrow }),
25529
+ children: "Trigger manually"
25530
+ }
25531
+ ),
25532
+ onClick: () => {
25533
+ navigate(`/${workflow.id}/execute`);
25534
+ }
25535
+ },
25536
+ {
25537
+ key: "delete",
25538
+ element: /* @__PURE__ */ jsx4(ActionMenuItem2, { leftNode: /* @__PURE__ */ jsx4(Icon39, { source: Delete3 }), children: "Delete" }),
25539
+ onClick: () => {
25540
+ void handleDelete(workflow);
25541
+ }
25542
+ }
25543
+ ],
25544
+ triggerRenderer: /* @__PURE__ */ jsx4(
25545
+ Button34,
25546
+ {
25547
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.menuTrigger,
25548
+ icon: /* @__PURE__ */ jsx4(Icon39, { source: MoreHoriz2 }),
25549
+ kind: "text",
25550
+ loading: deleteAction.isLoading ? ((_d = deleteAction.variables) == null ? void 0 : _d.id) === workflow.id : void 0,
25551
+ size: "compact"
25552
+ }
25553
+ )
25554
+ }
25555
+ ) }) })
25556
+ ]
25557
+ },
25558
+ workflow.id
25559
+ );
25560
+ }) : workflowsQuery.isLoading ? /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 6, children: /* @__PURE__ */ jsx4(Loader4, { size: "medium" }) }) }) : /* @__PURE__ */ jsx4(
25561
+ "tr",
25562
+ {
25563
+ css: css`
25487
25564
  background: transparent !important;
25488
25565
  color: var(${DesignToken45.ContentBasicSecondary});
25489
25566
  `,
25490
- children: /* @__PURE__ */ jsx4("td", { align: "left", colSpan: 6, children: /* @__PURE__ */ jsxs2(Text20, { as: "div", size: "md", children: [
25491
- "There are no",
25492
- " ",
25493
- state.filters.status !== "All" && state.filters.status.toLowerCase(),
25494
- " ",
25495
- "workflows",
25496
- " ",
25497
- ((_c = (_b = state.params) == null ? void 0 : _b.name) == null ? void 0 : _c.value) ? `with "${state.params.name.value}" in the name` : null
25498
- ] }) })
25499
- }
25500
- ) })
25501
- ] });
25567
+ children: /* @__PURE__ */ jsx4("td", { align: "left", colSpan: 6, children: /* @__PURE__ */ jsxs2(Text20, { as: "div", size: "md", children: [
25568
+ "There are no",
25569
+ " ",
25570
+ state.filters.status !== "All" && state.filters.status.toLowerCase(),
25571
+ " ",
25572
+ "workflows",
25573
+ " ",
25574
+ ((_c = (_b = state.params) == null ? void 0 : _b.name) == null ? void 0 : _c.value) ? `with "${state.params.name.value}" in the name` : null
25575
+ ] }) })
25576
+ }
25577
+ )
25578
+ }
25579
+ )
25580
+ ]
25581
+ }
25582
+ );
25502
25583
  }
25503
25584
  var Table_default = WorkflowsTable;
25504
25585
 
@@ -25582,28 +25663,35 @@ function WorkflowListView() {
25582
25663
  return /* @__PURE__ */ jsxs2(View3, { center: hasNoData, noWrap: true, stretch: isLoading, children: [
25583
25664
  getWorkflowsEnv("isLiveChatMode") ? /* @__PURE__ */ jsx4(Row26, { noMaxWidth: true, notPadded: true, children: /* @__PURE__ */ jsx4(LiveChatNavbar_default, {}) }) : null,
25584
25665
  /* @__PURE__ */ jsxs2(Row26, { topMargin: true, verticalCenter: hasNoData, children: [
25585
- /* @__PURE__ */ jsx4(Column18, { width: hasNoData ? 10 : 8, children: hasNoData ? /* @__PURE__ */ jsx4(Row26, { notPadded: true, children: /* @__PURE__ */ jsx4(
25586
- Intro4,
25666
+ /* @__PURE__ */ jsx4(Column18, { width: hasNoData ? 10 : 8, children: hasNoData ? /* @__PURE__ */ jsx4(
25667
+ Row26,
25587
25668
  {
25588
- body: "Automate your work with an app integration platform. Use AI to quicken the process. Enjoy a simple, no-code setup to streamline tasks you would otherwise do manually.",
25589
- center: true,
25590
- header: /* @__PURE__ */ jsx4(Column18, { notPadded: true, stretch: true, children: /* @__PURE__ */ jsxs2(
25591
- Row26,
25669
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.view.emptyInfo,
25670
+ notPadded: true,
25671
+ children: /* @__PURE__ */ jsx4(
25672
+ Intro4,
25592
25673
  {
25674
+ body: "Automate your work with an app integration platform. Use AI to quicken the process. Enjoy a simple, no-code setup to streamline tasks you would otherwise do manually.",
25593
25675
  center: true,
25594
- gap: `var(${SpacingToken44.Spacing2})`,
25595
- notPadded: true,
25596
- verticalCenter: true,
25597
- children: [
25598
- "Welcome to ",
25599
- /* @__PURE__ */ jsx4("span", { css: markedStyles, children: "Workflows" })
25600
- ]
25676
+ header: /* @__PURE__ */ jsx4(Column18, { notPadded: true, stretch: true, children: /* @__PURE__ */ jsxs2(
25677
+ Row26,
25678
+ {
25679
+ center: true,
25680
+ gap: `var(${SpacingToken44.Spacing2})`,
25681
+ notPadded: true,
25682
+ verticalCenter: true,
25683
+ children: [
25684
+ "Welcome to ",
25685
+ /* @__PURE__ */ jsx4("span", { css: markedStyles, children: "Workflows" })
25686
+ ]
25687
+ }
25688
+ ) }),
25689
+ noMaxWidth: true,
25690
+ style: { maxWidth: "38rem" }
25601
25691
  }
25602
- ) }),
25603
- noMaxWidth: true,
25604
- style: { maxWidth: "38rem" }
25692
+ )
25605
25693
  }
25606
- ) }) : /* @__PURE__ */ jsx4(
25694
+ ) : /* @__PURE__ */ jsx4(
25607
25695
  Intro4,
25608
25696
  {
25609
25697
  body: "Create custom workflows to automate your work.",
@@ -25614,6 +25702,7 @@ function WorkflowListView() {
25614
25702
  hasData && !getWorkflowsEnv("isHeadless") ? /* @__PURE__ */ jsx4(Column18, { pullRight: true, children: /* @__PURE__ */ jsx4(
25615
25703
  Button35,
25616
25704
  {
25705
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.view.createButton,
25617
25706
  kind: "primary",
25618
25707
  onClick: () => {
25619
25708
  navigate("create");