@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.js CHANGED
@@ -542,6 +542,55 @@ var WORKFLOWS_TEST_SELECTORS = {
542
542
  panels: {
543
543
  element: {
544
544
  wrapper: "element-wrapper"
545
+ },
546
+ details: {
547
+ executions: {
548
+ list: {
549
+ row: "execution-row",
550
+ status: "execution-status"
551
+ }
552
+ },
553
+ panel: {
554
+ historyTab: "history-tab"
555
+ },
556
+ info: {
557
+ dateCreated: "date-created",
558
+ dateUpdated: "date-updated",
559
+ completedCycles: "completed-cycles",
560
+ failedCycles: "failed-cycles"
561
+ }
562
+ }
563
+ }
564
+ },
565
+ list: {
566
+ grid: {
567
+ table: {
568
+ wrapper: "workflows-table",
569
+ body: "workflows-table-body",
570
+ menuTrigger: "action-menu-trigger",
571
+ activateSwitch: "activate-switch",
572
+ infoButton: "info-btn",
573
+ workflowItem: (id) => `workflow-item-${id}`
574
+ }
575
+ },
576
+ view: {
577
+ createButton: "create-workflow-btn",
578
+ emptyInfo: "empty-info"
579
+ },
580
+ modals: {
581
+ create: {
582
+ wrapper: "create-workflow-modal"
583
+ },
584
+ previewTemplate: {
585
+ wrapper: "template-preview-modal",
586
+ useButton: "use-template-btn"
587
+ }
588
+ },
589
+ home: {
590
+ cards: {
591
+ template: {
592
+ wrapper: "template-card"
593
+ }
545
594
  }
546
595
  }
547
596
  }
@@ -3138,7 +3187,7 @@ var bigCommerceTaskConfigs = () => ({
3138
3187
  key: "BIGCOMMERCE_CREATE_BLOG_POST" /* CreateBlogPost */,
3139
3188
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3140
3189
  url: `${getWorkflowsEnv(
3141
- "workflowsApiUr"
3190
+ "workflowsFunctionsUrl"
3142
3191
  )}/functions/create-bigcommerce-blog-post`,
3143
3192
  customization: {
3144
3193
  provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
@@ -3262,7 +3311,7 @@ var bigCommerceTaskConfigs = () => ({
3262
3311
  key: "BIGCOMMERCE_CREATE_CUSTOMER" /* CreateCustomer */,
3263
3312
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3264
3313
  url: `${getWorkflowsEnv(
3265
- "workflowsApiUr"
3314
+ "workflowsFunctionsUrl"
3266
3315
  )}/functions/create-bigcommerce-customer`,
3267
3316
  customization: {
3268
3317
  provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
@@ -3296,7 +3345,7 @@ var bigCommerceTaskConfigs = () => ({
3296
3345
  key: "BIGCOMMERCE_UPDATE_CUSTOMER" /* UpdateCustomer */,
3297
3346
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3298
3347
  url: `${getWorkflowsEnv(
3299
- "workflowsApiUr"
3348
+ "workflowsFunctionsUrl"
3300
3349
  )}/functions/update-bigcommerce-customer`,
3301
3350
  customization: {
3302
3351
  provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
@@ -3328,7 +3377,7 @@ var bigCommerceTaskConfigs = () => ({
3328
3377
  key: "BIGCOMMERCE_CREATE_PRODUCT" /* CreateProduct */,
3329
3378
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3330
3379
  url: `${getWorkflowsEnv(
3331
- "workflowsApiUr"
3380
+ "workflowsFunctionsUrl"
3332
3381
  )}/functions/create-bigcommerce-product`,
3333
3382
  customization: {
3334
3383
  provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
@@ -3359,7 +3408,7 @@ var bigCommerceTaskConfigs = () => ({
3359
3408
  key: "BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS" /* CreateCustomerAddress */,
3360
3409
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3361
3410
  url: `${getWorkflowsEnv(
3362
- "workflowsApiUr"
3411
+ "workflowsFunctionsUrl"
3363
3412
  )}/functions/create-bigcommerce-customer-address`,
3364
3413
  customization: {
3365
3414
  provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
@@ -3405,7 +3454,7 @@ var bigCommerceTaskConfigs = () => ({
3405
3454
  key: "BIGCOMMERCE_GET_CUSTOMER" /* GetCustomer */,
3406
3455
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3407
3456
  url: `${getWorkflowsEnv(
3408
- "workflowsApiUr"
3457
+ "workflowsFunctionsUrl"
3409
3458
  )}/functions/get-bigcommerce-customer`,
3410
3459
  customization: {
3411
3460
  provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
@@ -3439,7 +3488,7 @@ var bigCommerceTaskConfigs = () => ({
3439
3488
  key: "BIGCOMMERCE_GET_CUSTOMER_ADDRESSES" /* GetCustomerAddresses */,
3440
3489
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3441
3490
  url: `${getWorkflowsEnv(
3442
- "workflowsApiUr"
3491
+ "workflowsFunctionsUrl"
3443
3492
  )}/functions/get-bigcommerce-customer-address`,
3444
3493
  customization: {
3445
3494
  provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
@@ -3472,7 +3521,7 @@ var bigCommerceTaskConfigs = () => ({
3472
3521
  key: "BIGCOMMERCE_GET_PRODUCTS" /* GetProducts */,
3473
3522
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3474
3523
  url: `${getWorkflowsEnv(
3475
- "workflowsApiUr"
3524
+ "workflowsFunctionsUrl"
3476
3525
  )}/functions/get-bigcommerce-products`,
3477
3526
  customization: {
3478
3527
  provider: import_developer_studio_api5.IntegrationNames.BigCommerce,
@@ -3499,7 +3548,7 @@ var bigCommerceTaskTemplates = () => ({
3499
3548
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3500
3549
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3501
3550
  uri: `${getWorkflowsEnv(
3502
- "workflowsApiUr"
3551
+ "workflowsFunctionsUrl"
3503
3552
  )}/functions/create-bigcommerce-blog-post`,
3504
3553
  method: "POST",
3505
3554
  body: {
@@ -3520,7 +3569,7 @@ var bigCommerceTaskTemplates = () => ({
3520
3569
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3521
3570
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3522
3571
  uri: `${getWorkflowsEnv(
3523
- "workflowsApiUr"
3572
+ "workflowsFunctionsUrl"
3524
3573
  )}/functions/create-bigcommerce-customer`,
3525
3574
  method: "POST",
3526
3575
  body: {
@@ -3542,7 +3591,7 @@ var bigCommerceTaskTemplates = () => ({
3542
3591
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3543
3592
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3544
3593
  uri: `${getWorkflowsEnv(
3545
- "workflowsApiUr"
3594
+ "workflowsFunctionsUrl"
3546
3595
  )}/functions/update-bigcommerce-customer`,
3547
3596
  method: "PATCH",
3548
3597
  body: {
@@ -3562,7 +3611,7 @@ var bigCommerceTaskTemplates = () => ({
3562
3611
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3563
3612
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3564
3613
  uri: `${getWorkflowsEnv(
3565
- "workflowsApiUr"
3614
+ "workflowsFunctionsUrl"
3566
3615
  )}/functions/create-bigcommerce-product`,
3567
3616
  method: "POST",
3568
3617
  body: {
@@ -3585,7 +3634,7 @@ var bigCommerceTaskTemplates = () => ({
3585
3634
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3586
3635
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3587
3636
  uri: `${getWorkflowsEnv(
3588
- "workflowsApiUr"
3637
+ "workflowsFunctionsUrl"
3589
3638
  )}/functions/create-bigcommerce-customer-address`,
3590
3639
  method: "POST",
3591
3640
  body: {
@@ -3615,7 +3664,7 @@ var bigCommerceTaskTemplates = () => ({
3615
3664
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3616
3665
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3617
3666
  uri: `${getWorkflowsEnv(
3618
- "workflowsApiUr"
3667
+ "workflowsFunctionsUrl"
3619
3668
  )}/functions/get-bigcommerce-customer?customer_id=#{customer_id}&customer_email=#{customer_email}`,
3620
3669
  method: "GET",
3621
3670
  headers: {
@@ -3632,7 +3681,7 @@ var bigCommerceTaskTemplates = () => ({
3632
3681
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3633
3682
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3634
3683
  uri: `${getWorkflowsEnv(
3635
- "workflowsApiUr"
3684
+ "workflowsFunctionsUrl"
3636
3685
  )}/functions/get-bigcommerce-customer-addresses?customer_id=#{customer_id}`,
3637
3686
  method: "GET",
3638
3687
  headers: {
@@ -3649,7 +3698,7 @@ var bigCommerceTaskTemplates = () => ({
3649
3698
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3650
3699
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3651
3700
  uri: `${getWorkflowsEnv(
3652
- "workflowsApiUr"
3701
+ "workflowsFunctionsUrl"
3653
3702
  )}/functions/get-bigcommerce-products?limit=200&page=1`,
3654
3703
  method: "GET",
3655
3704
  headers: {
@@ -4136,7 +4185,7 @@ var helpdeskTaskConfigs = () => ({
4136
4185
  key: "HELPDESK_ADD_FOLLOWERS_TO_TICKET" /* AddFollowersToTicket */,
4137
4186
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4138
4187
  url: `${getWorkflowsEnv(
4139
- "workflowsApiUr"
4188
+ "workflowsFunctionsUrl"
4140
4189
  )}/functions/add-followers-to-helpdesk-ticket`,
4141
4190
  customization: {
4142
4191
  provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
@@ -4179,7 +4228,7 @@ var helpdeskTaskConfigs = () => ({
4179
4228
  key: "HELPDESK_ADD_TAGS_TO_TICKET" /* AddTagsToTicket */,
4180
4229
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4181
4230
  url: `${getWorkflowsEnv(
4182
- "workflowsApiUr"
4231
+ "workflowsFunctionsUrl"
4183
4232
  )}/functions/add-tags-to-helpdesk-ticket`,
4184
4233
  customization: {
4185
4234
  provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
@@ -4221,7 +4270,7 @@ var helpdeskTaskConfigs = () => ({
4221
4270
  key: "HELPDESK_CREATE_TICKET" /* CreateTicket */,
4222
4271
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4223
4272
  url: `${getWorkflowsEnv(
4224
- "workflowsApiUr"
4273
+ "workflowsFunctionsUrl"
4225
4274
  )}/functions/create-helpdesk-ticket`,
4226
4275
  customization: {
4227
4276
  provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
@@ -4243,7 +4292,7 @@ var helpdeskTaskConfigs = () => ({
4243
4292
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4244
4293
  key: "HELPDESK_CREATE_TRANSACTION" /* CreateTransaction */,
4245
4294
  url: `${getWorkflowsEnv(
4246
- "workflowsApiUr"
4295
+ "workflowsFunctionsUrl"
4247
4296
  )}/functions/create-helpdesk-transaction`,
4248
4297
  customization: {
4249
4298
  provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
@@ -4328,7 +4377,7 @@ var helpdeskTaskConfigs = () => ({
4328
4377
  ["HELPDESK_FIND_TICKET" /* FindTicket */]: {
4329
4378
  key: "HELPDESK_FIND_TICKET" /* FindTicket */,
4330
4379
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4331
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/find-helpdesk-ticket`,
4380
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/find-helpdesk-ticket`,
4332
4381
  customization: {
4333
4382
  provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
4334
4383
  product: import_developer_studio_api6.IntegrationDisplayNames.HelpDesk,
@@ -4353,7 +4402,7 @@ var helpdeskTaskConfigs = () => ({
4353
4402
  key: "HELPDESK_UPDATE_TICKET" /* UpdateTicket */,
4354
4403
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4355
4404
  url: `${getWorkflowsEnv(
4356
- "workflowsApiUr"
4405
+ "workflowsFunctionsUrl"
4357
4406
  )}/functions/update-helpdesk-ticket`,
4358
4407
  customization: {
4359
4408
  provider: import_developer_studio_api6.IntegrationNames.HelpDesk,
@@ -4390,7 +4439,7 @@ var helpdeskTaskTemplates = () => ({
4390
4439
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4391
4440
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4392
4441
  uri: `${getWorkflowsEnv(
4393
- "workflowsApiUr"
4442
+ "workflowsFunctionsUrl"
4394
4443
  )}/functions/create-helpdesk-ticket`,
4395
4444
  method: "POST",
4396
4445
  body: {
@@ -4416,7 +4465,7 @@ var helpdeskTaskTemplates = () => ({
4416
4465
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4417
4466
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4418
4467
  uri: `${getWorkflowsEnv(
4419
- "workflowsApiUr"
4468
+ "workflowsFunctionsUrl"
4420
4469
  )}/functions/update-helpdesk-ticket?id=#{ticket_id}`,
4421
4470
  method: "PATCH",
4422
4471
  headers: {
@@ -4432,7 +4481,7 @@ var helpdeskTaskTemplates = () => ({
4432
4481
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4433
4482
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4434
4483
  uri: `${getWorkflowsEnv(
4435
- "workflowsApiUr"
4484
+ "workflowsFunctionsUrl"
4436
4485
  )}/functions/add-followers-to-helpdesk-ticket?id=#{ticket_id}`,
4437
4486
  method: "POST",
4438
4487
  body: {
@@ -4451,7 +4500,7 @@ var helpdeskTaskTemplates = () => ({
4451
4500
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4452
4501
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4453
4502
  uri: `${getWorkflowsEnv(
4454
- "workflowsApiUr"
4503
+ "workflowsFunctionsUrl"
4455
4504
  )}/functions/add-tags-to-helpdesk-ticket?id=#{ticket_id}`,
4456
4505
  method: "POST",
4457
4506
  body: {
@@ -4470,7 +4519,7 @@ var helpdeskTaskTemplates = () => ({
4470
4519
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4471
4520
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4472
4521
  uri: `${getWorkflowsEnv(
4473
- "workflowsApiUr"
4522
+ "workflowsFunctionsUrl"
4474
4523
  )}/functions/create-helpdesk-transaction`,
4475
4524
  method: "POST",
4476
4525
  body: {
@@ -4490,7 +4539,7 @@ var helpdeskTaskTemplates = () => ({
4490
4539
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4491
4540
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4492
4541
  uri: `${getWorkflowsEnv(
4493
- "workflowsApiUr"
4542
+ "workflowsFunctionsUrl"
4494
4543
  )}/functions/find-helpdesk-ticket?id=#{ticket_id}`,
4495
4544
  method: "GET",
4496
4545
  headers: {
@@ -4772,7 +4821,7 @@ var hubspotTaskConfigs = () => ({
4772
4821
  key: "HUBSPOT_CREATE_CONTACT" /* CreateContact */,
4773
4822
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
4774
4823
  url: `${getWorkflowsEnv(
4775
- "workflowsApiUr"
4824
+ "workflowsFunctionsUrl"
4776
4825
  )}/functions/create-hubspot-contact`,
4777
4826
  customization: {
4778
4827
  provider: import_developer_studio_api7.IntegrationNames.HubSpot,
@@ -4797,7 +4846,7 @@ var hubspotTaskConfigs = () => ({
4797
4846
  // [HubSpotTaskNames.DeleteContact]: {
4798
4847
  // key: HubSpotTaskNames.DeleteContact,
4799
4848
  // type: WorkflowDefinitionTaskType.http,
4800
- // url: `${getWorkflowsEnv("workflowsApiUr")}/functions/delete-hubspot-contact`,
4849
+ // url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/delete-hubspot-contact`,
4801
4850
  // customization: {
4802
4851
  // provider: IntegrationNames.HubSpot,
4803
4852
  // product: IntegrationDisplayNames.HubSpot,
@@ -4821,7 +4870,7 @@ var hubspotTaskConfigs = () => ({
4821
4870
  ["HUBSPOT_GET_CONTACT" /* GetContact */]: {
4822
4871
  key: "HUBSPOT_GET_CONTACT" /* GetContact */,
4823
4872
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
4824
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-hubspot-contact`,
4873
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/get-hubspot-contact`,
4825
4874
  customization: {
4826
4875
  provider: import_developer_studio_api7.IntegrationNames.HubSpot,
4827
4876
  product: import_developer_studio_api7.IntegrationDisplayNames.HubSpot,
@@ -4850,7 +4899,7 @@ var hubspotTaskConfigs = () => ({
4850
4899
  key: "HUBSPOT_UPDATE_CONTACT" /* UpdateContact */,
4851
4900
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
4852
4901
  url: `${getWorkflowsEnv(
4853
- "workflowsApiUr"
4902
+ "workflowsFunctionsUrl"
4854
4903
  )}/functions/update-hubspot-contact`,
4855
4904
  customization: {
4856
4905
  provider: import_developer_studio_api7.IntegrationNames.HubSpot,
@@ -4891,7 +4940,7 @@ var hubspotTaskTemplates = () => ({
4891
4940
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4892
4941
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4893
4942
  uri: `${getWorkflowsEnv(
4894
- "workflowsApiUr"
4943
+ "workflowsFunctionsUrl"
4895
4944
  )}/functions/create-hubspot-contact`,
4896
4945
  method: "POST",
4897
4946
  body: {
@@ -4916,7 +4965,7 @@ var hubspotTaskTemplates = () => ({
4916
4965
  // ...workflowHttpTask.inputParameters,
4917
4966
  // http_request: {
4918
4967
  // ...workflowHttpTask.inputParameters.http_request,
4919
- // uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/delete-hubspot-contact?contactId=#{contactId}`,
4968
+ // uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/delete-hubspot-contact?contactId=#{contactId}`,
4920
4969
  // method: 'DELETE',
4921
4970
  // headers: {
4922
4971
  // Accept: 'application/json',
@@ -4931,7 +4980,7 @@ var hubspotTaskTemplates = () => ({
4931
4980
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4932
4981
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4933
4982
  uri: `${getWorkflowsEnv(
4934
- "workflowsApiUr"
4983
+ "workflowsFunctionsUrl"
4935
4984
  )}/functions/get-hubspot-contact?contactId=#{contactId}`,
4936
4985
  method: "GET",
4937
4986
  headers: {
@@ -4947,7 +4996,7 @@ var hubspotTaskTemplates = () => ({
4947
4996
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4948
4997
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4949
4998
  uri: `${getWorkflowsEnv(
4950
- "workflowsApiUr"
4999
+ "workflowsFunctionsUrl"
4951
5000
  )}/functions/update-hubspot-contact?contactId=#{contactId}`,
4952
5001
  method: "PATCH",
4953
5002
  body: {
@@ -5611,7 +5660,7 @@ var livechatTaskConfigs = () => ({
5611
5660
  key: "LIVECHAT_TRANSFER_CHAT" /* TransferChat */,
5612
5661
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
5613
5662
  url: `${getWorkflowsEnv(
5614
- "workflowsApiUr"
5663
+ "workflowsFunctionsUrl"
5615
5664
  )}/functions/transfer-livechat-chat`,
5616
5665
  customization: {
5617
5666
  provider: import_developer_studio_api8.IntegrationNames.LiveChat,
@@ -5680,7 +5729,7 @@ var livechatTaskConfigs = () => ({
5680
5729
  ["LIVECHAT_TAG_CHAT" /* TagChat */]: {
5681
5730
  key: "LIVECHAT_TAG_CHAT" /* TagChat */,
5682
5731
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
5683
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/tag-livechat-chat`,
5732
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/tag-livechat-chat`,
5684
5733
  customization: {
5685
5734
  provider: import_developer_studio_api8.IntegrationNames.LiveChat,
5686
5735
  product: import_developer_studio_api8.IntegrationDisplayNames.LiveChat,
@@ -5712,7 +5761,7 @@ var livechatTaskConfigs = () => ({
5712
5761
  key: "LIVECHAT_CHAT_TRANSCRIPT" /* GetChatTranscript */,
5713
5762
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
5714
5763
  url: `${getWorkflowsEnv(
5715
- "workflowsApiUr"
5764
+ "workflowsFunctionsUrl"
5716
5765
  )}/functions/get-livechat-chat-transcript`,
5717
5766
  customization: {
5718
5767
  provider: import_developer_studio_api8.IntegrationNames.LiveChat,
@@ -5759,7 +5808,7 @@ var livechatTaskConfigs = () => ({
5759
5808
  key: "LIVECHAT_SEND_MESSAGE" /* SendMessage */,
5760
5809
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
5761
5810
  url: `${getWorkflowsEnv(
5762
- "workflowsApiUr"
5811
+ "workflowsFunctionsUrl"
5763
5812
  )}/functions/send-livechat-agent-message`,
5764
5813
  customization: {
5765
5814
  provider: import_developer_studio_api8.IntegrationNames.LiveChat,
@@ -5797,7 +5846,7 @@ var livechatTaskConfigs = () => ({
5797
5846
  key: "LIVECHAT_SUPERVISE_CHAT" /* SuperviseChat */,
5798
5847
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
5799
5848
  url: `${getWorkflowsEnv(
5800
- "workflowsApiUr"
5849
+ "workflowsFunctionsUrl"
5801
5850
  )}/functions/supervise-livechat-chat`,
5802
5851
  customization: {
5803
5852
  provider: import_developer_studio_api8.IntegrationNames.LiveChat,
@@ -5828,7 +5877,7 @@ var livechatTaskTemplates = () => ({
5828
5877
  taskReferenceName: "livechat_tag_chat",
5829
5878
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5830
5879
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5831
- uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/tag-livechat-chat`,
5880
+ uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/tag-livechat-chat`,
5832
5881
  method: "POST",
5833
5882
  body: {
5834
5883
  chat_id: "#{chat_id}",
@@ -5848,7 +5897,7 @@ var livechatTaskTemplates = () => ({
5848
5897
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5849
5898
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5850
5899
  uri: `${getWorkflowsEnv(
5851
- "workflowsApiUr"
5900
+ "workflowsFunctionsUrl"
5852
5901
  )}/functions/transfer-livechat-chat`,
5853
5902
  method: "POST",
5854
5903
  body: {
@@ -5869,7 +5918,7 @@ var livechatTaskTemplates = () => ({
5869
5918
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5870
5919
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5871
5920
  uri: `${getWorkflowsEnv(
5872
- "workflowsApiUr"
5921
+ "workflowsFunctionsUrl"
5873
5922
  )}/functions/get-livechat-chat-transcript?chat_id=#{chat_id}`,
5874
5923
  method: "GET",
5875
5924
  headers: {
@@ -5885,7 +5934,7 @@ var livechatTaskTemplates = () => ({
5885
5934
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5886
5935
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5887
5936
  uri: `${getWorkflowsEnv(
5888
- "workflowsApiUr"
5937
+ "workflowsFunctionsUrl"
5889
5938
  )}/functions/send-livechat-agent-message`,
5890
5939
  method: "POST",
5891
5940
  body: {
@@ -5906,7 +5955,7 @@ var livechatTaskTemplates = () => ({
5906
5955
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
5907
5956
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
5908
5957
  uri: `${getWorkflowsEnv(
5909
- "workflowsApiUr"
5958
+ "workflowsFunctionsUrl"
5910
5959
  )}/functions/supervise-livechat-chat`,
5911
5960
  method: "POST",
5912
5961
  body: {
@@ -6391,7 +6440,7 @@ var mailchimpTaskConfigs = () => ({
6391
6440
  key: "MAILCHIMP_ADD_SUBSCRIBER" /* AddSubscriber */,
6392
6441
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6393
6442
  url: `${getWorkflowsEnv(
6394
- "workflowsApiUr"
6443
+ "workflowsFunctionsUrl"
6395
6444
  )}/functions/add-mailchimp-subscriber`,
6396
6445
  customization: {
6397
6446
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6432,7 +6481,7 @@ var mailchimpTaskConfigs = () => ({
6432
6481
  key: "MAILCHIMP_ADD_CAMPAIGN" /* AddCampaign */,
6433
6482
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6434
6483
  url: `${getWorkflowsEnv(
6435
- "workflowsApiUr"
6484
+ "workflowsFunctionsUrl"
6436
6485
  )}/functions/add-mailchimp-campaign`,
6437
6486
  customization: {
6438
6487
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6475,7 +6524,7 @@ var mailchimpTaskConfigs = () => ({
6475
6524
  key: "MAILCHIMP_SEND_CAMPAIGN" /* SendCampaign */,
6476
6525
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6477
6526
  url: `${getWorkflowsEnv(
6478
- "workflowsApiUr"
6527
+ "workflowsFunctionsUrl"
6479
6528
  )}/functions/send-mailchimp-campaign`,
6480
6529
  customization: {
6481
6530
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6504,7 +6553,7 @@ var mailchimpTaskConfigs = () => ({
6504
6553
  key: "MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER" /* AddOrUpdateSubscriber */,
6505
6554
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6506
6555
  url: `${getWorkflowsEnv(
6507
- "workflowsApiUr"
6556
+ "workflowsFunctionsUrl"
6508
6557
  )}/functions/add-or-update-mailchimp-subscriber`,
6509
6558
  customization: {
6510
6559
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6550,7 +6599,7 @@ var mailchimpTaskConfigs = () => ({
6550
6599
  key: "MAILCHIMP_UPDATE_SUBSCRIBER" /* UpdateSubscriber */,
6551
6600
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6552
6601
  url: `${getWorkflowsEnv(
6553
- "workflowsApiUr"
6602
+ "workflowsFunctionsUrl"
6554
6603
  )}/functions/update-mailchimp-subscriber`,
6555
6604
  customization: {
6556
6605
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6596,7 +6645,7 @@ var mailchimpTaskConfigs = () => ({
6596
6645
  key: "MAILCHIMP_ARCHIVE_SUBSCRIBER" /* ArchiveSubscriber */,
6597
6646
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6598
6647
  url: `${getWorkflowsEnv(
6599
- "workflowsApiUr"
6648
+ "workflowsFunctionsUrl"
6600
6649
  )}/functions/archive-mailchimp-subscriber`,
6601
6650
  customization: {
6602
6651
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6629,7 +6678,7 @@ var mailchimpTaskConfigs = () => ({
6629
6678
  key: "MAILCHIMP_DELETE_SUBSCRIBER" /* DeleteSubscriber */,
6630
6679
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6631
6680
  url: `${getWorkflowsEnv(
6632
- "workflowsApiUr"
6681
+ "workflowsFunctionsUrl"
6633
6682
  )}/functions/delete-mailchimp-subscriber`,
6634
6683
  customization: {
6635
6684
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6662,7 +6711,7 @@ var mailchimpTaskConfigs = () => ({
6662
6711
  key: "MAILCHIMP_ADD_SUBSCRIBER_TAG" /* AddSubscriberTag */,
6663
6712
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6664
6713
  url: `${getWorkflowsEnv(
6665
- "workflowsApiUr"
6714
+ "workflowsFunctionsUrl"
6666
6715
  )}/functions/add-mailchimp-subscriber-tag`,
6667
6716
  customization: {
6668
6717
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6700,7 +6749,7 @@ var mailchimpTaskConfigs = () => ({
6700
6749
  key: "MAILCHIMP_ADD_SUBSCRIBER_EVENT" /* AddSubscriberEvent */,
6701
6750
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6702
6751
  url: `${getWorkflowsEnv(
6703
- "workflowsApiUr"
6752
+ "workflowsFunctionsUrl"
6704
6753
  )}/functions/add-mailchimp-subscriber-event`,
6705
6754
  customization: {
6706
6755
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6754,7 +6803,7 @@ var mailchimpTaskConfigs = () => ({
6754
6803
  key: "MAILCHIMP_ADD_SUBSCRIBER_NOTE" /* AddSubscriberNote */,
6755
6804
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6756
6805
  url: `${getWorkflowsEnv(
6757
- "workflowsApiUr"
6806
+ "workflowsFunctionsUrl"
6758
6807
  )}/functions/add-mailchimp-subscriber-note`,
6759
6808
  customization: {
6760
6809
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6792,7 +6841,7 @@ var mailchimpTaskConfigs = () => ({
6792
6841
  key: "MAILCHIMP_DELETE_SUBSCRIBER_TAG" /* DeleteSubscriberTag */,
6793
6842
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6794
6843
  url: `${getWorkflowsEnv(
6795
- "workflowsApiUr"
6844
+ "workflowsFunctionsUrl"
6796
6845
  )}/functions/delete-mailchimp-subscriber-tag`,
6797
6846
  customization: {
6798
6847
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6829,7 +6878,7 @@ var mailchimpTaskConfigs = () => ({
6829
6878
  key: "MAILCHIMP_GET_SUBSCRIBER_TAGS" /* GetSubscriberTags */,
6830
6879
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6831
6880
  url: `${getWorkflowsEnv(
6832
- "workflowsApiUr"
6881
+ "workflowsFunctionsUrl"
6833
6882
  )}/functions/get-mailchimp-subscriber-tags`,
6834
6883
  customization: {
6835
6884
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -6892,7 +6941,7 @@ var mailchimpTaskConfigs = () => ({
6892
6941
  key: "MAILCHIMP_GET_SUBSCRIBER" /* GetSubscriber */,
6893
6942
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
6894
6943
  url: `${getWorkflowsEnv(
6895
- "workflowsApiUr"
6944
+ "workflowsFunctionsUrl"
6896
6945
  )}/functions/get-mailchimp-subscriber`,
6897
6946
  customization: {
6898
6947
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -7065,7 +7114,7 @@ var mailchimpTaskConfigs = () => ({
7065
7114
  key: "MAILCHIMP_GET_SUBSCRIBERS" /* GetSubscribers */,
7066
7115
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7067
7116
  url: `${getWorkflowsEnv(
7068
- "workflowsApiUr"
7117
+ "workflowsFunctionsUrl"
7069
7118
  )}/functions/find-mailchimp-subscribers`,
7070
7119
  customization: {
7071
7120
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -7240,7 +7289,7 @@ var mailchimpTaskConfigs = () => ({
7240
7289
  key: "MAILCHIMP_FIND_CAMPAIGN" /* FindCampaign */,
7241
7290
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7242
7291
  url: `${getWorkflowsEnv(
7243
- "workflowsApiUr"
7292
+ "workflowsFunctionsUrl"
7244
7293
  )}/functions/find-mailchimp-campaign`,
7245
7294
  customization: {
7246
7295
  provider: import_developer_studio_api9.IntegrationNames.Mailchimp,
@@ -7400,7 +7449,7 @@ var mailchimpTaskTemplates = () => ({
7400
7449
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7401
7450
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7402
7451
  uri: `${getWorkflowsEnv(
7403
- "workflowsApiUr"
7452
+ "workflowsFunctionsUrl"
7404
7453
  )}/functions/add-mailchimp-subscriber`,
7405
7454
  method: "POST",
7406
7455
  body: {
@@ -7422,7 +7471,7 @@ var mailchimpTaskTemplates = () => ({
7422
7471
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7423
7472
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7424
7473
  uri: `${getWorkflowsEnv(
7425
- "workflowsApiUr"
7474
+ "workflowsFunctionsUrl"
7426
7475
  )}/functions/add-mailchimp-campaign`,
7427
7476
  method: "POST",
7428
7477
  body: {
@@ -7455,7 +7504,7 @@ var mailchimpTaskTemplates = () => ({
7455
7504
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7456
7505
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7457
7506
  uri: `${getWorkflowsEnv(
7458
- "workflowsApiUr"
7507
+ "workflowsFunctionsUrl"
7459
7508
  )}/functions/send-mailchimp-campaign`,
7460
7509
  method: "POST",
7461
7510
  body: {
@@ -7474,7 +7523,7 @@ var mailchimpTaskTemplates = () => ({
7474
7523
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7475
7524
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7476
7525
  uri: `${getWorkflowsEnv(
7477
- "workflowsApiUr"
7526
+ "workflowsFunctionsUrl"
7478
7527
  )}/functions/add-or-update-mailchimp-subscriber`,
7479
7528
  method: "POST",
7480
7529
  body: {
@@ -7496,7 +7545,7 @@ var mailchimpTaskTemplates = () => ({
7496
7545
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7497
7546
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7498
7547
  uri: `${getWorkflowsEnv(
7499
- "workflowsApiUr"
7548
+ "workflowsFunctionsUrl"
7500
7549
  )}/functions/update-mailchimp-subscriber`,
7501
7550
  method: "POST",
7502
7551
  body: {
@@ -7518,7 +7567,7 @@ var mailchimpTaskTemplates = () => ({
7518
7567
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7519
7568
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7520
7569
  uri: `${getWorkflowsEnv(
7521
- "workflowsApiUr"
7570
+ "workflowsFunctionsUrl"
7522
7571
  )}/functions/archive-mailchimp-subscriber`,
7523
7572
  method: "POST",
7524
7573
  body: {
@@ -7538,7 +7587,7 @@ var mailchimpTaskTemplates = () => ({
7538
7587
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7539
7588
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7540
7589
  uri: `${getWorkflowsEnv(
7541
- "workflowsApiUr"
7590
+ "workflowsFunctionsUrl"
7542
7591
  )}/functions/delete-mailchimp-subscriber`,
7543
7592
  method: "POST",
7544
7593
  body: {
@@ -7558,7 +7607,7 @@ var mailchimpTaskTemplates = () => ({
7558
7607
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7559
7608
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7560
7609
  uri: `${getWorkflowsEnv(
7561
- "workflowsApiUr"
7610
+ "workflowsFunctionsUrl"
7562
7611
  )}/functions/add-mailchimp-subscriber-tag`,
7563
7612
  method: "POST",
7564
7613
  body: {
@@ -7579,7 +7628,7 @@ var mailchimpTaskTemplates = () => ({
7579
7628
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7580
7629
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7581
7630
  uri: `${getWorkflowsEnv(
7582
- "workflowsApiUr"
7631
+ "workflowsFunctionsUrl"
7583
7632
  )}/functions/add-mailchimp-subscriber-event`,
7584
7633
  method: "POST",
7585
7634
  body: {
@@ -7600,7 +7649,7 @@ var mailchimpTaskTemplates = () => ({
7600
7649
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7601
7650
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7602
7651
  uri: `${getWorkflowsEnv(
7603
- "workflowsApiUr"
7652
+ "workflowsFunctionsUrl"
7604
7653
  )}/functions/add-mailchimp-subscriber-note`,
7605
7654
  method: "POST",
7606
7655
  body: {
@@ -7621,7 +7670,7 @@ var mailchimpTaskTemplates = () => ({
7621
7670
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7622
7671
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7623
7672
  uri: `${getWorkflowsEnv(
7624
- "workflowsApiUr"
7673
+ "workflowsFunctionsUrl"
7625
7674
  )}/functions/delete-mailchimp-subscriber-tag`,
7626
7675
  method: "POST",
7627
7676
  body: {
@@ -7642,7 +7691,7 @@ var mailchimpTaskTemplates = () => ({
7642
7691
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7643
7692
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7644
7693
  uri: `${getWorkflowsEnv(
7645
- "workflowsApiUr"
7694
+ "workflowsFunctionsUrl"
7646
7695
  )}/functions/get-mailchimp-subscriber-tags?list_id=#{list_id}&email=#{email}`,
7647
7696
  method: "GET",
7648
7697
  body: {},
@@ -7659,7 +7708,7 @@ var mailchimpTaskTemplates = () => ({
7659
7708
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7660
7709
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7661
7710
  uri: `${getWorkflowsEnv(
7662
- "workflowsApiUr"
7711
+ "workflowsFunctionsUrl"
7663
7712
  )}/functions/get-mailchimp-subscriber?list_id=#{list_id}&email=#{email}`,
7664
7713
  method: "GET",
7665
7714
  body: {},
@@ -7676,7 +7725,7 @@ var mailchimpTaskTemplates = () => ({
7676
7725
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7677
7726
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7678
7727
  uri: `${getWorkflowsEnv(
7679
- "workflowsApiUr"
7728
+ "workflowsFunctionsUrl"
7680
7729
  )}/functions/find-mailchimp-subscribers?list_id=#{list_id}&query=#{query}`,
7681
7730
  method: "GET",
7682
7731
  body: {},
@@ -7693,7 +7742,7 @@ var mailchimpTaskTemplates = () => ({
7693
7742
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7694
7743
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7695
7744
  uri: `${getWorkflowsEnv(
7696
- "workflowsApiUr"
7745
+ "workflowsFunctionsUrl"
7697
7746
  )}/functions/find-mailchimp-campaign?campaign_id=#{campaign_id}`,
7698
7747
  method: "POST",
7699
7748
  body: {},
@@ -7811,7 +7860,7 @@ var openAiTaskConfigs = () => ({
7811
7860
  key: "OPENAI_EXTRACT_ORDER_REQUEST" /* ExtractOrderRequest */,
7812
7861
  type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
7813
7862
  url: `${getWorkflowsEnv(
7814
- "workflowsApiUr"
7863
+ "workflowsFunctionsUrl"
7815
7864
  )}/functions/extract-order-from-text`,
7816
7865
  customization: {
7817
7866
  provider: import_developer_studio_api10.IntegrationNames.OpenAI,
@@ -7901,7 +7950,7 @@ var openAiTaskConfigs = () => ({
7901
7950
  key: "OPENAI_ANALYZE_TEXT_SENTIMENT" /* AnalyzeTextSentiment */,
7902
7951
  type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
7903
7952
  url: `${getWorkflowsEnv(
7904
- "workflowsApiUr"
7953
+ "workflowsFunctionsUrl"
7905
7954
  )}/functions/analyze-text-sentiment`,
7906
7955
  customization: {
7907
7956
  provider: import_developer_studio_api10.IntegrationNames.OpenAI,
@@ -7936,7 +7985,7 @@ var openAiTaskConfigs = () => ({
7936
7985
  ["OPENAI_SUMMARIZE_TEXT" /* SummarizeText */]: {
7937
7986
  key: "OPENAI_SUMMARIZE_TEXT" /* SummarizeText */,
7938
7987
  type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
7939
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
7988
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/summarize-text`,
7940
7989
  customization: {
7941
7990
  provider: import_developer_studio_api10.IntegrationNames.OpenAI,
7942
7991
  product: import_developer_studio_api10.IntegrationDisplayNames.OpenAI,
@@ -7970,7 +8019,7 @@ var openAiTaskConfigs = () => ({
7970
8019
  ["OPENAI_MODERATE_TEXT" /* ModerateText */]: {
7971
8020
  key: "OPENAI_MODERATE_TEXT" /* ModerateText */,
7972
8021
  type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
7973
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
8022
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/moderate-text`,
7974
8023
  customization: {
7975
8024
  provider: import_developer_studio_api10.IntegrationNames.OpenAI,
7976
8025
  product: import_developer_studio_api10.IntegrationDisplayNames.OpenAI,
@@ -8003,7 +8052,7 @@ var openAiTaskConfigs = () => ({
8003
8052
  ["OPENAI_CATEGORIZE_TEXT" /* CategorizeText */]: {
8004
8053
  key: "OPENAI_CATEGORIZE_TEXT" /* CategorizeText */,
8005
8054
  type: import_developer_studio_api10.WorkflowDefinitionTaskType.http,
8006
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
8055
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/categorize-text`,
8007
8056
  customization: {
8008
8057
  provider: import_developer_studio_api10.IntegrationNames.OpenAI,
8009
8058
  product: import_developer_studio_api10.IntegrationDisplayNames.OpenAI,
@@ -8050,7 +8099,7 @@ var openAiTaskTemplates = () => ({
8050
8099
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8051
8100
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8052
8101
  uri: `${getWorkflowsEnv(
8053
- "workflowsApiUr"
8102
+ "workflowsFunctionsUrl"
8054
8103
  )}/functions/extract-order-from-text`,
8055
8104
  method: "POST",
8056
8105
  body: {
@@ -8069,7 +8118,7 @@ var openAiTaskTemplates = () => ({
8069
8118
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8070
8119
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8071
8120
  uri: `${getWorkflowsEnv(
8072
- "workflowsApiUr"
8121
+ "workflowsFunctionsUrl"
8073
8122
  )}/functions/analyze-text-sentiment`,
8074
8123
  method: "POST",
8075
8124
  body: {
@@ -8087,7 +8136,7 @@ var openAiTaskTemplates = () => ({
8087
8136
  taskReferenceName: "openai_summarize_text",
8088
8137
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8089
8138
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8090
- uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
8139
+ uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/summarize-text`,
8091
8140
  method: "POST",
8092
8141
  body: {
8093
8142
  text: "#{chat_transcript}"
@@ -8104,7 +8153,7 @@ var openAiTaskTemplates = () => ({
8104
8153
  taskReferenceName: "openai_moderate_text",
8105
8154
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8106
8155
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8107
- uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
8156
+ uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/moderate-text`,
8108
8157
  method: "POST",
8109
8158
  body: {
8110
8159
  text: "#{chat_transcript}"
@@ -8121,7 +8170,7 @@ var openAiTaskTemplates = () => ({
8121
8170
  taskReferenceName: "openai_categorize_text",
8122
8171
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8123
8172
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8124
- uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
8173
+ uri: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/categorize-text`,
8125
8174
  method: "POST",
8126
8175
  body: {
8127
8176
  text: "#{chat_transcript}"
@@ -8561,7 +8610,7 @@ var shopifyTaskConfigs = () => ({
8561
8610
  key: "SHOPIFY_CREATE_CUSTOMER" /* CreateCustomer */,
8562
8611
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8563
8612
  url: `${getWorkflowsEnv(
8564
- "workflowsApiUr"
8613
+ "workflowsFunctionsUrl"
8565
8614
  )}/functions/create-shopify-customer`,
8566
8615
  customization: {
8567
8616
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8585,7 +8634,7 @@ var shopifyTaskConfigs = () => ({
8585
8634
  ["SHOPIFY_CREATE_ORDER" /* CreateOrder */]: {
8586
8635
  key: "SHOPIFY_CREATE_ORDER" /* CreateOrder */,
8587
8636
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8588
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/create-shopify-order`,
8637
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/create-shopify-order`,
8589
8638
  customization: {
8590
8639
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
8591
8640
  product: import_developer_studio_api11.IntegrationDisplayNames.Shopify,
@@ -8608,7 +8657,7 @@ var shopifyTaskConfigs = () => ({
8608
8657
  key: "SHOPIFY_CREATE_DRAFT_ORDER" /* CreateDraftOrder */,
8609
8658
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8610
8659
  url: `${getWorkflowsEnv(
8611
- "workflowsApiUr"
8660
+ "workflowsFunctionsUrl"
8612
8661
  )}/functions/create-shopify-draft-order`,
8613
8662
  customization: {
8614
8663
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8632,7 +8681,7 @@ var shopifyTaskConfigs = () => ({
8632
8681
  key: "SHOPIFY_CREATE_PRODUCT" /* CreateProduct */,
8633
8682
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8634
8683
  url: `${getWorkflowsEnv(
8635
- "workflowsApiUr"
8684
+ "workflowsFunctionsUrl"
8636
8685
  )}/functions/create-shopify-product`,
8637
8686
  customization: {
8638
8687
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8656,7 +8705,7 @@ var shopifyTaskConfigs = () => ({
8656
8705
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8657
8706
  key: "SHOPIFY_CREATE_PRODUCT_VARIANT" /* CreateProductVariant */,
8658
8707
  url: `${getWorkflowsEnv(
8659
- "workflowsApiUr"
8708
+ "workflowsFunctionsUrl"
8660
8709
  )}/functions/create-shopify-product-variant`,
8661
8710
  customization: {
8662
8711
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8679,7 +8728,7 @@ var shopifyTaskConfigs = () => ({
8679
8728
  ["SHOPIFY_GET_CUSTOMER" /* GetCustomer */]: {
8680
8729
  key: "SHOPIFY_GET_CUSTOMER" /* GetCustomer */,
8681
8730
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8682
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-shopify-customer`,
8731
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/get-shopify-customer`,
8683
8732
  customization: {
8684
8733
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
8685
8734
  product: import_developer_studio_api11.IntegrationDisplayNames.Shopify,
@@ -8708,7 +8757,7 @@ var shopifyTaskConfigs = () => ({
8708
8757
  key: "SHOPIFY_GET_CUSTOMER_ORDERS" /* GetCustomerOrders */,
8709
8758
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8710
8759
  url: `${getWorkflowsEnv(
8711
- "workflowsApiUr"
8760
+ "workflowsFunctionsUrl"
8712
8761
  )}/functions/get-shopify-customer-orders`,
8713
8762
  customization: {
8714
8763
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8741,7 +8790,7 @@ var shopifyTaskConfigs = () => ({
8741
8790
  key: "SHOPIFY_GET_CUSTOMER_LAST_ORDER" /* GetCustomerLastOrder */,
8742
8791
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8743
8792
  url: `${getWorkflowsEnv(
8744
- "workflowsApiUr"
8793
+ "workflowsFunctionsUrl"
8745
8794
  )}/functions/get-shopify-customer-last-order`,
8746
8795
  customization: {
8747
8796
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8770,7 +8819,7 @@ var shopifyTaskConfigs = () => ({
8770
8819
  ["SHOPIFY_GET_PRODUCT" /* GetProduct */]: {
8771
8820
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8772
8821
  key: "SHOPIFY_GET_PRODUCT" /* GetProduct */,
8773
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-shopify-product`,
8822
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/get-shopify-product`,
8774
8823
  customization: {
8775
8824
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
8776
8825
  product: import_developer_studio_api11.IntegrationDisplayNames.Shopify,
@@ -8800,7 +8849,7 @@ var shopifyTaskConfigs = () => ({
8800
8849
  key: "SHOPIFY_GET_PRODUCT_VARIANT" /* GetProductVariant */,
8801
8850
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8802
8851
  url: `${getWorkflowsEnv(
8803
- "workflowsApiUr"
8852
+ "workflowsFunctionsUrl"
8804
8853
  )}/functions/get-shopify-product-variant`,
8805
8854
  customization: {
8806
8855
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8834,7 +8883,7 @@ var shopifyTaskConfigs = () => ({
8834
8883
  key: "SHOPIFY_UPDATE_INVENTORY_QUANTITY" /* UpdateInventoryQuantity */,
8835
8884
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8836
8885
  url: `${getWorkflowsEnv(
8837
- "workflowsApiUr"
8886
+ "workflowsFunctionsUrl"
8838
8887
  )}/functions/update-shopify-inventory-quantity`,
8839
8888
  customization: {
8840
8889
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8900,7 +8949,7 @@ var shopifyTaskConfigs = () => ({
8900
8949
  ["SHOPIFY_UPDATE_ORDER" /* UpdateOrder */]: {
8901
8950
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8902
8951
  key: "SHOPIFY_UPDATE_ORDER" /* UpdateOrder */,
8903
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/update-shopify-order`,
8952
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/update-shopify-order`,
8904
8953
  customization: {
8905
8954
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
8906
8955
  product: import_developer_studio_api11.IntegrationDisplayNames.Shopify,
@@ -8923,7 +8972,7 @@ var shopifyTaskConfigs = () => ({
8923
8972
  key: "SHOPIFY_UPDATE_PRODUCT" /* UpdateProduct */,
8924
8973
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8925
8974
  url: `${getWorkflowsEnv(
8926
- "workflowsApiUr"
8975
+ "workflowsFunctionsUrl"
8927
8976
  )}/functions/update-shopify-product`,
8928
8977
  customization: {
8929
8978
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8947,7 +8996,7 @@ var shopifyTaskConfigs = () => ({
8947
8996
  key: "SHOPIFY_UPDATE_PRODUCT_VARIANT" /* UpdateProductVariant */,
8948
8997
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8949
8998
  url: `${getWorkflowsEnv(
8950
- "workflowsApiUr"
8999
+ "workflowsFunctionsUrl"
8951
9000
  )}/functions/update-shopify-product-variant`,
8952
9001
  customization: {
8953
9002
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8971,7 +9020,7 @@ var shopifyTaskConfigs = () => ({
8971
9020
  key: "SHOPIFY_UPDATE_CUSTOMER" /* UpdateCustomer */,
8972
9021
  type: import_developer_studio_api11.WorkflowDefinitionTaskType.http,
8973
9022
  url: `${getWorkflowsEnv(
8974
- "workflowsApiUr"
9023
+ "workflowsFunctionsUrl"
8975
9024
  )}/functions/update-shopify-customer`,
8976
9025
  customization: {
8977
9026
  provider: import_developer_studio_api11.IntegrationNames.Shopify,
@@ -8999,7 +9048,7 @@ var shopifyTaskTemplates = () => ({
8999
9048
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9000
9049
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9001
9050
  uri: `${getWorkflowsEnv(
9002
- "workflowsApiUr"
9051
+ "workflowsFunctionsUrl"
9003
9052
  )}/functions/create-shopify-customer`,
9004
9053
  method: "POST",
9005
9054
  body: {
@@ -9021,7 +9070,7 @@ var shopifyTaskTemplates = () => ({
9021
9070
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9022
9071
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9023
9072
  uri: `${getWorkflowsEnv(
9024
- "workflowsApiUr"
9073
+ "workflowsFunctionsUrl"
9025
9074
  )}/functions/create-shopify-order`,
9026
9075
  method: "POST",
9027
9076
  body: {},
@@ -9039,7 +9088,7 @@ var shopifyTaskTemplates = () => ({
9039
9088
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9040
9089
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9041
9090
  uri: `${getWorkflowsEnv(
9042
- "workflowsApiUr"
9091
+ "workflowsFunctionsUrl"
9043
9092
  )}/functions/create-shopify-draft-order`,
9044
9093
  method: "POST",
9045
9094
  body: {},
@@ -9057,7 +9106,7 @@ var shopifyTaskTemplates = () => ({
9057
9106
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9058
9107
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9059
9108
  uri: `${getWorkflowsEnv(
9060
- "workflowsApiUr"
9109
+ "workflowsFunctionsUrl"
9061
9110
  )}/functions/create-shopify-product`,
9062
9111
  method: "POST",
9063
9112
  body: {},
@@ -9075,7 +9124,7 @@ var shopifyTaskTemplates = () => ({
9075
9124
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9076
9125
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9077
9126
  uri: `${getWorkflowsEnv(
9078
- "workflowsApiUr"
9127
+ "workflowsFunctionsUrl"
9079
9128
  )}/functions/create-shopify-product-variant`,
9080
9129
  method: "POST",
9081
9130
  body: {},
@@ -9093,7 +9142,7 @@ var shopifyTaskTemplates = () => ({
9093
9142
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9094
9143
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9095
9144
  uri: `${getWorkflowsEnv(
9096
- "workflowsApiUr"
9145
+ "workflowsFunctionsUrl"
9097
9146
  )}/functions/get-shopify-customer?email=#{email}`,
9098
9147
  method: "GET",
9099
9148
  body: {},
@@ -9111,7 +9160,7 @@ var shopifyTaskTemplates = () => ({
9111
9160
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9112
9161
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9113
9162
  uri: `${getWorkflowsEnv(
9114
- "workflowsApiUr"
9163
+ "workflowsFunctionsUrl"
9115
9164
  )}/functions/get-shopify-customer-orders?email=#{email}`,
9116
9165
  method: "GET",
9117
9166
  body: {},
@@ -9129,7 +9178,7 @@ var shopifyTaskTemplates = () => ({
9129
9178
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9130
9179
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9131
9180
  uri: `${getWorkflowsEnv(
9132
- "workflowsApiUr"
9181
+ "workflowsFunctionsUrl"
9133
9182
  )}/functions/get-shopify-customer-last-order?email=#{email}`,
9134
9183
  method: "GET",
9135
9184
  body: {},
@@ -9147,7 +9196,7 @@ var shopifyTaskTemplates = () => ({
9147
9196
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9148
9197
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9149
9198
  uri: `${getWorkflowsEnv(
9150
- "workflowsApiUr"
9199
+ "workflowsFunctionsUrl"
9151
9200
  )}/functions/get-shopify-product?product_id=#{product_id}`,
9152
9201
  method: "GET",
9153
9202
  body: {},
@@ -9165,7 +9214,7 @@ var shopifyTaskTemplates = () => ({
9165
9214
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9166
9215
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9167
9216
  uri: `${getWorkflowsEnv(
9168
- "workflowsApiUr"
9217
+ "workflowsFunctionsUrl"
9169
9218
  )}/functions/get-shopify-product-variant?product_id=#{product_id}&title=#{title}`,
9170
9219
  method: "GET",
9171
9220
  body: {},
@@ -9183,7 +9232,7 @@ var shopifyTaskTemplates = () => ({
9183
9232
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9184
9233
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9185
9234
  uri: `${getWorkflowsEnv(
9186
- "workflowsApiUr"
9235
+ "workflowsFunctionsUrl"
9187
9236
  )}/functions/update-shopify-inventory-quantity`,
9188
9237
  method: "PATCH",
9189
9238
  body: {
@@ -9204,7 +9253,7 @@ var shopifyTaskTemplates = () => ({
9204
9253
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9205
9254
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9206
9255
  uri: `${getWorkflowsEnv(
9207
- "workflowsApiUr"
9256
+ "workflowsFunctionsUrl"
9208
9257
  )}/functions/update-shopify-order`,
9209
9258
  method: "PATCH",
9210
9259
  body: {},
@@ -9222,7 +9271,7 @@ var shopifyTaskTemplates = () => ({
9222
9271
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9223
9272
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9224
9273
  uri: `${getWorkflowsEnv(
9225
- "workflowsApiUr"
9274
+ "workflowsFunctionsUrl"
9226
9275
  )}/functions/update-shopify-product`,
9227
9276
  method: "PATCH",
9228
9277
  body: {},
@@ -9240,7 +9289,7 @@ var shopifyTaskTemplates = () => ({
9240
9289
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9241
9290
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9242
9291
  uri: `${getWorkflowsEnv(
9243
- "workflowsApiUr"
9292
+ "workflowsFunctionsUrl"
9244
9293
  )}/functions/update-shopify-product-variant`,
9245
9294
  method: "PATCH",
9246
9295
  body: {},
@@ -9258,7 +9307,7 @@ var shopifyTaskTemplates = () => ({
9258
9307
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9259
9308
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9260
9309
  uri: `${getWorkflowsEnv(
9261
- "workflowsApiUr"
9310
+ "workflowsFunctionsUrl"
9262
9311
  )}/functions/update-shopify-customer`,
9263
9312
  method: "PATCH",
9264
9313
  body: {},
@@ -9311,7 +9360,6 @@ var shopifyTriggerTemplates = () => ({
9311
9360
 
9312
9361
  // src/constants/specification/Slack/index.ts
9313
9362
  var import_developer_studio_api12 = require("@livechat/developer-studio-api");
9314
- var import_src = require("@livechat/developer-studio-api/src");
9315
9363
  var SlackTriggerNames = {
9316
9364
  ChannelNewMessagePosted: `${import_developer_studio_api12.IntegrationNames.Slack}-${import_developer_studio_api12.SlackEventNames.ChannelNewMessagePosted}`,
9317
9365
  MemberNewMention: `${import_developer_studio_api12.IntegrationNames.Slack}-${import_developer_studio_api12.SlackEventNames.MemberNewMention}`
@@ -9319,8 +9367,8 @@ var SlackTriggerNames = {
9319
9367
  var slackTaskConfigs = () => ({
9320
9368
  ["SEND_MESSAGE" /* SendMessage */]: {
9321
9369
  key: "SEND_MESSAGE" /* SendMessage */,
9322
- type: import_src.WorkflowDefinitionTaskType.http,
9323
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/slack-send-message`,
9370
+ type: import_developer_studio_api12.WorkflowDefinitionTaskType.http,
9371
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/slack-send-message`,
9324
9372
  customization: {
9325
9373
  provider: import_developer_studio_api12.IntegrationNames.Slack,
9326
9374
  product: import_developer_studio_api12.IntegrationDisplayNames.Slack,
@@ -9360,8 +9408,8 @@ var slackTaskConfigs = () => ({
9360
9408
  },
9361
9409
  ["CREATE_CHANNEL" /* CreateChannel */]: {
9362
9410
  key: "CREATE_CHANNEL" /* CreateChannel */,
9363
- type: import_src.WorkflowDefinitionTaskType.http,
9364
- url: `${getWorkflowsEnv("workflowsApiUr")}/functions/slack-create_channel`,
9411
+ type: import_developer_studio_api12.WorkflowDefinitionTaskType.http,
9412
+ url: `${getWorkflowsEnv("workflowsFunctionsUrl")}/functions/slack-create_channel`,
9365
9413
  customization: {
9366
9414
  provider: import_developer_studio_api12.IntegrationNames.Slack,
9367
9415
  product: import_developer_studio_api12.IntegrationDisplayNames.Slack,
@@ -9406,7 +9454,7 @@ var slackTaskTemplates = () => ({
9406
9454
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9407
9455
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9408
9456
  uri: `${getWorkflowsEnv(
9409
- "workflowsApiUr"
9457
+ "workflowsFunctionsUrl"
9410
9458
  )}/functions/slack-send-message`,
9411
9459
  method: "POST",
9412
9460
  body: {
@@ -9415,7 +9463,7 @@ var slackTaskTemplates = () => ({
9415
9463
  },
9416
9464
  headers: {
9417
9465
  Accept: "application/json",
9418
- // eslint-disable-next-line no-template-curly-in-string
9466
+ // eslint-disable-next-line no-template-curly-in-string -- on purpose
9419
9467
  "x-cred-access-token": "${workflow.credentials.slack.access_token}"
9420
9468
  }
9421
9469
  })
@@ -9427,7 +9475,7 @@ var slackTaskTemplates = () => ({
9427
9475
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
9428
9476
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
9429
9477
  uri: `${getWorkflowsEnv(
9430
- "workflowsApiUr"
9478
+ "workflowsFunctionsUrl"
9431
9479
  )}/functions/slack-create-channel`,
9432
9480
  method: "POST",
9433
9481
  body: {
@@ -9436,7 +9484,7 @@ var slackTaskTemplates = () => ({
9436
9484
  },
9437
9485
  headers: {
9438
9486
  Accept: "application/json",
9439
- // eslint-disable-next-line no-template-curly-in-string
9487
+ // eslint-disable-next-line no-template-curly-in-string -- on purpose
9440
9488
  "x-cred-access-token": "${workflow.credentials.slack.access_token}"
9441
9489
  }
9442
9490
  })
@@ -9468,23 +9516,24 @@ var slackTriggerConfigs = () => {
9468
9516
  },
9469
9517
  output: {
9470
9518
  type: "object",
9471
- required: ["text", "sub_type", "channel_id"],
9472
9519
  properties: {
9473
- text: {
9474
- type: "string",
9475
- title: "Text Message"
9476
- },
9477
- sub_type: {
9478
- type: "string",
9479
- title: "Sub type of the event"
9480
- },
9481
- channel_id: {
9482
- type: "string",
9483
- title: "Channel ID"
9484
- },
9485
- username: {
9486
- type: "string",
9487
- title: "Name of the user"
9520
+ body: {
9521
+ type: "object",
9522
+ required: ["text", "channel"],
9523
+ properties: {
9524
+ text: {
9525
+ type: "string",
9526
+ title: "Text Message"
9527
+ },
9528
+ channel: {
9529
+ type: "string",
9530
+ title: "Channel ID"
9531
+ },
9532
+ user: {
9533
+ type: "string",
9534
+ title: "ID of the user"
9535
+ }
9536
+ }
9488
9537
  }
9489
9538
  }
9490
9539
  }
@@ -9513,23 +9562,24 @@ var slackTriggerConfigs = () => {
9513
9562
  },
9514
9563
  output: {
9515
9564
  type: "object",
9516
- required: ["text", "sub_type", "channel_id"],
9517
9565
  properties: {
9518
- text: {
9519
- type: "string",
9520
- title: "Text Message"
9521
- },
9522
- sub_type: {
9523
- type: "string",
9524
- title: "Sub type of the event"
9525
- },
9526
- channel_id: {
9527
- type: "string",
9528
- title: "Channel ID"
9529
- },
9530
- username: {
9531
- type: "string",
9532
- title: "Name of the user"
9566
+ body: {
9567
+ type: "object",
9568
+ required: ["text", "channel"],
9569
+ properties: {
9570
+ text: {
9571
+ type: "string",
9572
+ title: "Text Message"
9573
+ },
9574
+ channel: {
9575
+ type: "string",
9576
+ title: "Channel ID"
9577
+ },
9578
+ user: {
9579
+ type: "string",
9580
+ title: "ID of the user"
9581
+ }
9582
+ }
9533
9583
  }
9534
9584
  }
9535
9585
  }
@@ -9547,7 +9597,7 @@ var slackTriggerTemplates = () => ({
9547
9597
  channelId: null
9548
9598
  },
9549
9599
  headers: {
9550
- // eslint-disable-next-line no-template-curly-in-string
9600
+ // eslint-disable-next-line no-template-curly-in-string -- on purpose
9551
9601
  "x-adapter-slack-token": ["${workflow.credentials.slack.access_token}"]
9552
9602
  }
9553
9603
  }
@@ -9561,7 +9611,7 @@ var slackTriggerTemplates = () => ({
9561
9611
  userId: null
9562
9612
  },
9563
9613
  headers: {
9564
- // eslint-disable-next-line no-template-curly-in-string
9614
+ // eslint-disable-next-line no-template-curly-in-string -- on purpose
9565
9615
  "x-adapter-slack-token": ["${workflow.credentials.slack.access_token}"]
9566
9616
  }
9567
9617
  }
@@ -10205,7 +10255,7 @@ var getWorkflowTemplates = () => [
10205
10255
  asyncComplete: false,
10206
10256
  http_request: {
10207
10257
  uri: `${getWorkflowsEnv(
10208
- "workflowsApiUr"
10258
+ "workflowsFunctionsUrl"
10209
10259
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10210
10260
  method: "GET",
10211
10261
  headers: {
@@ -10221,7 +10271,7 @@ var getWorkflowTemplates = () => [
10221
10271
  inputParameters: {
10222
10272
  http_request: {
10223
10273
  uri: `${getWorkflowsEnv(
10224
- "workflowsApiUr"
10274
+ "workflowsFunctionsUrl"
10225
10275
  )}/functions/summarize-text`,
10226
10276
  body: {
10227
10277
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10242,7 +10292,7 @@ var getWorkflowTemplates = () => [
10242
10292
  inputParameters: {
10243
10293
  http_request: {
10244
10294
  uri: `${getWorkflowsEnv(
10245
- "workflowsApiUr"
10295
+ "workflowsFunctionsUrl"
10246
10296
  )}/functions/create-helpdesk-ticket`,
10247
10297
  body: {
10248
10298
  message: {
@@ -10328,7 +10378,7 @@ var getWorkflowTemplates = () => [
10328
10378
  asyncComplete: false,
10329
10379
  http_request: {
10330
10380
  uri: `${getWorkflowsEnv(
10331
- "workflowsApiUr"
10381
+ "workflowsFunctionsUrl"
10332
10382
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10333
10383
  method: "GET",
10334
10384
  headers: {
@@ -10344,7 +10394,7 @@ var getWorkflowTemplates = () => [
10344
10394
  inputParameters: {
10345
10395
  http_request: {
10346
10396
  uri: `${getWorkflowsEnv(
10347
- "workflowsApiUr"
10397
+ "workflowsFunctionsUrl"
10348
10398
  )}/functions/analyze-text-sentiment`,
10349
10399
  body: {
10350
10400
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10365,7 +10415,7 @@ var getWorkflowTemplates = () => [
10365
10415
  inputParameters: {
10366
10416
  http_request: {
10367
10417
  uri: `${getWorkflowsEnv(
10368
- "workflowsApiUr"
10418
+ "workflowsFunctionsUrl"
10369
10419
  )}/functions/create-helpdesk-ticket`,
10370
10420
  body: {
10371
10421
  message: {
@@ -10393,7 +10443,7 @@ var getWorkflowTemplates = () => [
10393
10443
  inputParameters: {
10394
10444
  http_request: {
10395
10445
  uri: `${getWorkflowsEnv(
10396
- "workflowsApiUr"
10446
+ "workflowsFunctionsUrl"
10397
10447
  )}/functions/add-mailchimp-subscriber-event`,
10398
10448
  body: {
10399
10449
  name: "Competitor Mention",
@@ -10490,7 +10540,7 @@ var getWorkflowTemplates = () => [
10490
10540
  asyncComplete: false,
10491
10541
  http_request: {
10492
10542
  uri: `${getWorkflowsEnv(
10493
- "workflowsApiUr"
10543
+ "workflowsFunctionsUrl"
10494
10544
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10495
10545
  method: "GET",
10496
10546
  headers: {
@@ -10509,7 +10559,7 @@ var getWorkflowTemplates = () => [
10509
10559
  http_request: {
10510
10560
  method: "POST",
10511
10561
  uri: `${getWorkflowsEnv(
10512
- "workflowsApiUr"
10562
+ "workflowsFunctionsUrl"
10513
10563
  )}/functions/summarize-text`,
10514
10564
  body: {
10515
10565
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10530,7 +10580,7 @@ var getWorkflowTemplates = () => [
10530
10580
  http_request: {
10531
10581
  method: "POST",
10532
10582
  uri: `${getWorkflowsEnv(
10533
- "workflowsApiUr"
10583
+ "workflowsFunctionsUrl"
10534
10584
  )}/functions/create-helpdesk-ticket`,
10535
10585
  body: {
10536
10586
  requester: {
@@ -10555,7 +10605,7 @@ var getWorkflowTemplates = () => [
10555
10605
  inputParameters: {
10556
10606
  http_request: {
10557
10607
  uri: `${getWorkflowsEnv(
10558
- "workflowsApiUr"
10608
+ "workflowsFunctionsUrl"
10559
10609
  )}/functions/add-mailchimp-subscriber-note`,
10560
10610
  body: {
10561
10611
  note: "Feedback from chat ID ${workflow.input.body.chat_id}",
@@ -10650,7 +10700,7 @@ var getWorkflowTemplates = () => [
10650
10700
  asyncComplete: false,
10651
10701
  http_request: {
10652
10702
  uri: `${getWorkflowsEnv(
10653
- "workflowsApiUr"
10703
+ "workflowsFunctionsUrl"
10654
10704
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10655
10705
  method: "GET",
10656
10706
  headers: {
@@ -10666,7 +10716,7 @@ var getWorkflowTemplates = () => [
10666
10716
  inputParameters: {
10667
10717
  http_request: {
10668
10718
  uri: `${getWorkflowsEnv(
10669
- "workflowsApiUr"
10719
+ "workflowsFunctionsUrl"
10670
10720
  )}/functions/get-shopify-customer?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
10671
10721
  method: "GET",
10672
10722
  headers: {
@@ -10685,7 +10735,7 @@ var getWorkflowTemplates = () => [
10685
10735
  inputParameters: {
10686
10736
  http_request: {
10687
10737
  uri: `${getWorkflowsEnv(
10688
- "workflowsApiUr"
10738
+ "workflowsFunctionsUrl"
10689
10739
  )}/functions/analyze-text-sentiment`,
10690
10740
  body: {
10691
10741
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10706,7 +10756,7 @@ var getWorkflowTemplates = () => [
10706
10756
  inputParameters: {
10707
10757
  http_request: {
10708
10758
  uri: `${getWorkflowsEnv(
10709
- "workflowsApiUr"
10759
+ "workflowsFunctionsUrl"
10710
10760
  )}/functions/add-mailchimp-campaign`,
10711
10761
  body: {
10712
10762
  type: "regular",
@@ -10812,7 +10862,7 @@ var getWorkflowTemplates = () => [
10812
10862
  asyncComplete: false,
10813
10863
  http_request: {
10814
10864
  uri: `${getWorkflowsEnv(
10815
- "workflowsApiUr"
10865
+ "workflowsFunctionsUrl"
10816
10866
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
10817
10867
  method: "GET",
10818
10868
  headers: {
@@ -10831,7 +10881,7 @@ var getWorkflowTemplates = () => [
10831
10881
  http_request: {
10832
10882
  method: "POST",
10833
10883
  uri: `${getWorkflowsEnv(
10834
- "workflowsApiUr"
10884
+ "workflowsFunctionsUrl"
10835
10885
  )}/functions/analyze-text-sentiment`,
10836
10886
  body: {
10837
10887
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -10852,7 +10902,7 @@ var getWorkflowTemplates = () => [
10852
10902
  http_request: {
10853
10903
  method: "POST",
10854
10904
  uri: `${getWorkflowsEnv(
10855
- "workflowsApiUr"
10905
+ "workflowsFunctionsUrl"
10856
10906
  )}/functions/add-or-update-mailchimp-subscriber`,
10857
10907
  body: {
10858
10908
  list_id: null,
@@ -10876,7 +10926,7 @@ var getWorkflowTemplates = () => [
10876
10926
  http_request: {
10877
10927
  method: "POST",
10878
10928
  uri: `${getWorkflowsEnv(
10879
- "workflowsApiUr"
10929
+ "workflowsFunctionsUrl"
10880
10930
  )}/functions/add-mailchimp-subscriber-tag`,
10881
10931
  body: {
10882
10932
  list_id: null,
@@ -10949,7 +10999,7 @@ var getWorkflowTemplates = () => [
10949
10999
  inputParameters: {
10950
11000
  http_request: {
10951
11001
  uri: `${getWorkflowsEnv(
10952
- "workflowsApiUr"
11002
+ "workflowsFunctionsUrl"
10953
11003
  )}/functions/send-livechat-agent-message`,
10954
11004
  body: {
10955
11005
  chat_id: "${workflow.input.body.chat.id}",
@@ -11034,7 +11084,7 @@ var getWorkflowTemplates = () => [
11034
11084
  asyncComplete: false,
11035
11085
  http_request: {
11036
11086
  uri: `${getWorkflowsEnv(
11037
- "workflowsApiUr"
11087
+ "workflowsFunctionsUrl"
11038
11088
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
11039
11089
  method: "GET",
11040
11090
  headers: {
@@ -11052,7 +11102,7 @@ var getWorkflowTemplates = () => [
11052
11102
  asyncComplete: false,
11053
11103
  http_request: {
11054
11104
  uri: `${getWorkflowsEnv(
11055
- "workflowsApiUr"
11105
+ "workflowsFunctionsUrl"
11056
11106
  )}/functions/summarize-text`,
11057
11107
  body: {
11058
11108
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -11073,7 +11123,7 @@ var getWorkflowTemplates = () => [
11073
11123
  asyncComplete: false,
11074
11124
  http_request: {
11075
11125
  uri: `${getWorkflowsEnv(
11076
- "workflowsApiUr"
11126
+ "workflowsFunctionsUrl"
11077
11127
  )}/functions/create-helpdesk-ticket`,
11078
11128
  body: {
11079
11129
  message: {
@@ -11162,7 +11212,7 @@ var getWorkflowTemplates = () => [
11162
11212
  asyncComplete: false,
11163
11213
  http_request: {
11164
11214
  uri: `${getWorkflowsEnv(
11165
- "workflowsApiUr"
11215
+ "workflowsFunctionsUrl"
11166
11216
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
11167
11217
  method: "GET",
11168
11218
  headers: {
@@ -11180,7 +11230,7 @@ var getWorkflowTemplates = () => [
11180
11230
  asyncComplete: false,
11181
11231
  http_request: {
11182
11232
  uri: `${getWorkflowsEnv(
11183
- "workflowsApiUr"
11233
+ "workflowsFunctionsUrl"
11184
11234
  )}/functions/get-shopify-customer-last-order?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
11185
11235
  body: {},
11186
11236
  method: "GET",
@@ -11200,7 +11250,7 @@ var getWorkflowTemplates = () => [
11200
11250
  asyncComplete: false,
11201
11251
  http_request: {
11202
11252
  uri: `${getWorkflowsEnv(
11203
- "workflowsApiUr"
11253
+ "workflowsFunctionsUrl"
11204
11254
  )}/functions/send-livechat-agent-message`,
11205
11255
  body: {
11206
11256
  chat_id: "${workflow.input.body.chat.id}",
@@ -11278,7 +11328,7 @@ var getWorkflowTemplates = () => [
11278
11328
  asyncComplete: false,
11279
11329
  http_request: {
11280
11330
  uri: `${getWorkflowsEnv(
11281
- "workflowsApiUr"
11331
+ "workflowsFunctionsUrl"
11282
11332
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
11283
11333
  method: "GET",
11284
11334
  headers: {
@@ -11296,7 +11346,7 @@ var getWorkflowTemplates = () => [
11296
11346
  asyncComplete: false,
11297
11347
  http_request: {
11298
11348
  uri: `${getWorkflowsEnv(
11299
- "workflowsApiUr"
11349
+ "workflowsFunctionsUrl"
11300
11350
  )}/functions/create-hubspot-contact`,
11301
11351
  body: {
11302
11352
  properties: {
@@ -11376,7 +11426,7 @@ var getWorkflowTemplates = () => [
11376
11426
  asyncComplete: false,
11377
11427
  http_request: {
11378
11428
  uri: `${getWorkflowsEnv(
11379
- "workflowsApiUr"
11429
+ "workflowsFunctionsUrl"
11380
11430
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
11381
11431
  method: "GET",
11382
11432
  headers: {
@@ -11394,7 +11444,7 @@ var getWorkflowTemplates = () => [
11394
11444
  asyncComplete: false,
11395
11445
  http_request: {
11396
11446
  uri: `${getWorkflowsEnv(
11397
- "workflowsApiUr"
11447
+ "workflowsFunctionsUrl"
11398
11448
  )}/functions/create-helpdesk-ticket`,
11399
11449
  body: {
11400
11450
  message: {
@@ -11487,7 +11537,7 @@ var getWorkflowTemplates = () => [
11487
11537
  asyncComplete: false,
11488
11538
  http_request: {
11489
11539
  uri: `${getWorkflowsEnv(
11490
- "workflowsApiUr"
11540
+ "workflowsFunctionsUrl"
11491
11541
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
11492
11542
  method: "GET",
11493
11543
  headers: {
@@ -11505,7 +11555,7 @@ var getWorkflowTemplates = () => [
11505
11555
  asyncComplete: false,
11506
11556
  http_request: {
11507
11557
  uri: `${getWorkflowsEnv(
11508
- "workflowsApiUr"
11558
+ "workflowsFunctionsUrl"
11509
11559
  )}/functions/create-hubspot-contact`,
11510
11560
  body: {
11511
11561
  properties: {
@@ -11531,7 +11581,7 @@ var getWorkflowTemplates = () => [
11531
11581
  http_request: {
11532
11582
  method: "POST",
11533
11583
  uri: `${getWorkflowsEnv(
11534
- "workflowsApiUr"
11584
+ "workflowsFunctionsUrl"
11535
11585
  )}/functions/add-or-update-mailchimp-subscriber`,
11536
11586
  body: {
11537
11587
  list_id: null,
@@ -11609,7 +11659,7 @@ var getWorkflowTemplates = () => [
11609
11659
  asyncComplete: false,
11610
11660
  http_request: {
11611
11661
  uri: `${getWorkflowsEnv(
11612
- "workflowsApiUr"
11662
+ "workflowsFunctionsUrl"
11613
11663
  )}/functions/supervise-livechat-chat`,
11614
11664
  body: {
11615
11665
  chat_id: "${workflow.input.body.chat_id}",
@@ -11631,7 +11681,7 @@ var getWorkflowTemplates = () => [
11631
11681
  asyncComplete: false,
11632
11682
  http_request: {
11633
11683
  uri: `${getWorkflowsEnv(
11634
- "workflowsApiUr"
11684
+ "workflowsFunctionsUrl"
11635
11685
  )}/functions/send-livechat-agent-message`,
11636
11686
  body: {
11637
11687
  chat_id: "${workflow.input.body.chat_id}",
@@ -11707,7 +11757,7 @@ var getWorkflowTemplates = () => [
11707
11757
  asyncComplete: false,
11708
11758
  http_request: {
11709
11759
  uri: `${getWorkflowsEnv(
11710
- "workflowsApiUr"
11760
+ "workflowsFunctionsUrl"
11711
11761
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
11712
11762
  method: "GET",
11713
11763
  headers: {
@@ -11725,7 +11775,7 @@ var getWorkflowTemplates = () => [
11725
11775
  asyncComplete: false,
11726
11776
  http_request: {
11727
11777
  uri: `${getWorkflowsEnv(
11728
- "workflowsApiUr"
11778
+ "workflowsFunctionsUrl"
11729
11779
  )}/functions/create-helpdesk-ticket`,
11730
11780
  body: {
11731
11781
  message: {
@@ -11816,7 +11866,7 @@ var getWorkflowTemplates = () => [
11816
11866
  http_request: {
11817
11867
  method: "POST",
11818
11868
  uri: `${getWorkflowsEnv(
11819
- "workflowsApiUr"
11869
+ "workflowsFunctionsUrl"
11820
11870
  )}/functions/supervise-livechat-chat`,
11821
11871
  body: {
11822
11872
  chat_id: "${workflow.input.body.chat.id}",
@@ -11838,7 +11888,7 @@ var getWorkflowTemplates = () => [
11838
11888
  http_request: {
11839
11889
  method: "POST",
11840
11890
  uri: `${getWorkflowsEnv(
11841
- "workflowsApiUr"
11891
+ "workflowsFunctionsUrl"
11842
11892
  )}/functions/tag-livechat-chat`,
11843
11893
  body: {
11844
11894
  chat_id: "${workflow.input.body.chat.id}",
@@ -11934,7 +11984,7 @@ var getWorkflowTemplates = () => [
11934
11984
  http_request: {
11935
11985
  method: "POST",
11936
11986
  uri: `${getWorkflowsEnv(
11937
- "workflowsApiUr"
11987
+ "workflowsFunctionsUrl"
11938
11988
  )}/functions/tag-livechat-chat`,
11939
11989
  body: {
11940
11990
  chat_id: "${workflow.input.body.chat_id}",
@@ -12015,7 +12065,7 @@ var getWorkflowTemplates = () => [
12015
12065
  http_request: {
12016
12066
  method: "POST",
12017
12067
  uri: `${getWorkflowsEnv(
12018
- "workflowsApiUr"
12068
+ "workflowsFunctionsUrl"
12019
12069
  )}/functions/send-livechat-agent-message`,
12020
12070
  body: {
12021
12071
  visibility: "all",
@@ -12038,7 +12088,7 @@ var getWorkflowTemplates = () => [
12038
12088
  http_request: {
12039
12089
  method: "POST",
12040
12090
  uri: `${getWorkflowsEnv(
12041
- "workflowsApiUr"
12091
+ "workflowsFunctionsUrl"
12042
12092
  )}/functions/tag-livechat-chat`,
12043
12093
  body: {
12044
12094
  chat_id: "${workflow.input.body.chat_id}",
@@ -12116,7 +12166,7 @@ var getWorkflowTemplates = () => [
12116
12166
  http_request: {
12117
12167
  method: "POST",
12118
12168
  uri: `${getWorkflowsEnv(
12119
- "workflowsApiUr"
12169
+ "workflowsFunctionsUrl"
12120
12170
  )}/functions/send-livechat-agent-message`,
12121
12171
  body: {
12122
12172
  visibility: "all",
@@ -12198,7 +12248,7 @@ var getWorkflowTemplates = () => [
12198
12248
  http_request: {
12199
12249
  method: "POST",
12200
12250
  uri: `${getWorkflowsEnv(
12201
- "workflowsApiUr"
12251
+ "workflowsFunctionsUrl"
12202
12252
  )}/functions/tag-livechat-chat`,
12203
12253
  body: {
12204
12254
  chat_id: "${workflow.input.body.chat_id}",
@@ -12221,7 +12271,7 @@ var getWorkflowTemplates = () => [
12221
12271
  http_request: {
12222
12272
  method: "POST",
12223
12273
  uri: `${getWorkflowsEnv(
12224
- "workflowsApiUr"
12274
+ "workflowsFunctionsUrl"
12225
12275
  )}/functions/supervise-livechat-chat`,
12226
12276
  body: {
12227
12277
  chat_id: "${workflow.input.body.chat_id}",
@@ -12243,7 +12293,7 @@ var getWorkflowTemplates = () => [
12243
12293
  http_request: {
12244
12294
  method: "POST",
12245
12295
  uri: `${getWorkflowsEnv(
12246
- "workflowsApiUr"
12296
+ "workflowsFunctionsUrl"
12247
12297
  )}/functions/send-livechat-agent-message`,
12248
12298
  body: {
12249
12299
  visibility: "agents",
@@ -12319,7 +12369,7 @@ var getWorkflowTemplates = () => [
12319
12369
  asyncComplete: false,
12320
12370
  http_request: {
12321
12371
  uri: `${getWorkflowsEnv(
12322
- "workflowsApiUr"
12372
+ "workflowsFunctionsUrl"
12323
12373
  )}/functions/transfer-livechat-chat`,
12324
12374
  method: "POST",
12325
12375
  body: {
@@ -12342,7 +12392,7 @@ var getWorkflowTemplates = () => [
12342
12392
  asyncComplete: false,
12343
12393
  http_request: {
12344
12394
  uri: `${getWorkflowsEnv(
12345
- "workflowsApiUr"
12395
+ "workflowsFunctionsUrl"
12346
12396
  )}/functions/send-livechat-agent-message`,
12347
12397
  method: "POST",
12348
12398
  body: {
@@ -12430,7 +12480,7 @@ var getWorkflowTemplates = () => [
12430
12480
  asyncComplete: false,
12431
12481
  http_request: {
12432
12482
  uri: `${getWorkflowsEnv(
12433
- "workflowsApiUr"
12483
+ "workflowsFunctionsUrl"
12434
12484
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
12435
12485
  method: "GET",
12436
12486
  headers: {
@@ -12448,7 +12498,7 @@ var getWorkflowTemplates = () => [
12448
12498
  asyncComplete: false,
12449
12499
  http_request: {
12450
12500
  uri: `${getWorkflowsEnv(
12451
- "workflowsApiUr"
12501
+ "workflowsFunctionsUrl"
12452
12502
  )}/functions/summarize-text`,
12453
12503
  method: "POST",
12454
12504
  body: {
@@ -12469,7 +12519,7 @@ var getWorkflowTemplates = () => [
12469
12519
  asyncComplete: false,
12470
12520
  http_request: {
12471
12521
  uri: `${getWorkflowsEnv(
12472
- "workflowsApiUr"
12522
+ "workflowsFunctionsUrl"
12473
12523
  )}/functions/send-livechat-agent-message`,
12474
12524
  method: "POST",
12475
12525
  body: {
@@ -12492,7 +12542,7 @@ var getWorkflowTemplates = () => [
12492
12542
  asyncComplete: false,
12493
12543
  http_request: {
12494
12544
  uri: `${getWorkflowsEnv(
12495
- "workflowsApiUr"
12545
+ "workflowsFunctionsUrl"
12496
12546
  )}/functions/tag-livechat-chat`,
12497
12547
  method: "POST",
12498
12548
  body: {
@@ -12574,7 +12624,7 @@ var getWorkflowTemplates = () => [
12574
12624
  asyncComplete: false,
12575
12625
  http_request: {
12576
12626
  uri: `${getWorkflowsEnv(
12577
- "workflowsApiUr"
12627
+ "workflowsFunctionsUrl"
12578
12628
  )}/functions/transfer-livechat-chat`,
12579
12629
  method: "POST",
12580
12630
  body: {
@@ -12597,7 +12647,7 @@ var getWorkflowTemplates = () => [
12597
12647
  asyncComplete: false,
12598
12648
  http_request: {
12599
12649
  uri: `${getWorkflowsEnv(
12600
- "workflowsApiUr"
12650
+ "workflowsFunctionsUrl"
12601
12651
  )}/functions/send-livechat-agent-message`,
12602
12652
  method: "POST",
12603
12653
  body: {
@@ -12620,7 +12670,7 @@ var getWorkflowTemplates = () => [
12620
12670
  asyncComplete: false,
12621
12671
  http_request: {
12622
12672
  uri: `${getWorkflowsEnv(
12623
- "workflowsApiUr"
12673
+ "workflowsFunctionsUrl"
12624
12674
  )}/functions/tag-livechat-chat`,
12625
12675
  method: "POST",
12626
12676
  body: {
@@ -12697,7 +12747,7 @@ var getWorkflowTemplates = () => [
12697
12747
  asyncComplete: false,
12698
12748
  http_request: {
12699
12749
  uri: `${getWorkflowsEnv(
12700
- "workflowsApiUr"
12750
+ "workflowsFunctionsUrl"
12701
12751
  )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
12702
12752
  method: "GET",
12703
12753
  headers: {
@@ -12715,7 +12765,7 @@ var getWorkflowTemplates = () => [
12715
12765
  asyncComplete: false,
12716
12766
  http_request: {
12717
12767
  uri: `${getWorkflowsEnv(
12718
- "workflowsApiUr"
12768
+ "workflowsFunctionsUrl"
12719
12769
  )}/functions/send-livechat-agent-message`,
12720
12770
  method: "POST",
12721
12771
  body: {
@@ -12788,7 +12838,7 @@ var getWorkflowTemplates = () => [
12788
12838
  asyncComplete: false,
12789
12839
  http_request: {
12790
12840
  uri: `${getWorkflowsEnv(
12791
- "workflowsApiUr"
12841
+ "workflowsFunctionsUrl"
12792
12842
  )}/functions/send-livechat-agent-message`,
12793
12843
  method: "POST",
12794
12844
  body: {
@@ -12862,7 +12912,7 @@ var getWorkflowTemplates = () => [
12862
12912
  asyncComplete: false,
12863
12913
  http_request: {
12864
12914
  uri: `${getWorkflowsEnv(
12865
- "workflowsApiUr"
12915
+ "workflowsFunctionsUrl"
12866
12916
  )}/functions/tag-livechat-chat`,
12867
12917
  method: "POST",
12868
12918
  body: {
@@ -12936,7 +12986,7 @@ var getWorkflowTemplates = () => [
12936
12986
  asyncComplete: false,
12937
12987
  http_request: {
12938
12988
  uri: `${getWorkflowsEnv(
12939
- "workflowsApiUr"
12989
+ "workflowsFunctionsUrl"
12940
12990
  )}/functions/transfer-livechat-chat`,
12941
12991
  method: "POST",
12942
12992
  body: {
@@ -12984,6 +13034,9 @@ var logAmplitudeEvent = (name, payload, user) => {
12984
13034
  };
12985
13035
  var logSprigEvent = (name, email, payload) => {
12986
13036
  const sprig = window.Sprig;
13037
+ if (!sprig) {
13038
+ return;
13039
+ }
12987
13040
  sprig("identifyAndTrack", {
12988
13041
  eventName: name,
12989
13042
  userId: email,
@@ -13593,7 +13646,7 @@ function OneMessagesProvider({ children }) {
13593
13646
  ]);
13594
13647
  try {
13595
13648
  const response = yield generateAiResponseMutation.mutateAsync({
13596
- agent_id: getWorkflowsEnv("aiAgentId"),
13649
+ agent_id: getWorkflowsEnv("workflowAiAgentId"),
13597
13650
  account_id: user == null ? void 0 : user.auth.account_id,
13598
13651
  organization: user == null ? void 0 : user.auth.organization_id,
13599
13652
  token: user == null ? void 0 : user.auth.access_token,
@@ -15031,6 +15084,7 @@ function WorkflowCreatorProviderBase({
15031
15084
  }
15032
15085
  replaceWorkflowId(workflowId);
15033
15086
  }
15087
+ } catch (e) {
15034
15088
  } finally {
15035
15089
  setAction("isSaving", false);
15036
15090
  }
@@ -15065,6 +15119,7 @@ function WorkflowCreatorProviderBase({
15065
15119
  notifications.addSuccessToast(
15066
15120
  `Workflow has been ${state2.workflow.active ? "deactivated" : "activated"}`
15067
15121
  );
15122
+ } catch (e) {
15068
15123
  } finally {
15069
15124
  setAction("isActivating", false);
15070
15125
  }
@@ -15084,6 +15139,7 @@ function WorkflowCreatorProviderBase({
15084
15139
  }
15085
15140
  navigate("/list");
15086
15141
  notifications.addSuccessToast("Workflow has been removed successfully");
15142
+ } catch (e) {
15087
15143
  } finally {
15088
15144
  setAction("isRemoving", false);
15089
15145
  }
@@ -15114,6 +15170,7 @@ function WorkflowCreatorProviderBase({
15114
15170
  notifications.addSuccessToast(
15115
15171
  "Workflow draft has been created successfully"
15116
15172
  );
15173
+ } catch (e) {
15117
15174
  } finally {
15118
15175
  setAction("isCreating", false);
15119
15176
  }
@@ -15158,6 +15215,7 @@ function WorkflowCreatorProviderBase({
15158
15215
  notifications.addSuccessToast(
15159
15216
  "Workflow draft has been published successfully"
15160
15217
  );
15218
+ } catch (e) {
15161
15219
  } finally {
15162
15220
  setAction("isPublishing", false);
15163
15221
  }
@@ -15194,6 +15252,7 @@ function WorkflowCreatorProviderBase({
15194
15252
  notifications.addSuccessToast(
15195
15253
  "Workflow draft has been discarded successfully"
15196
15254
  );
15255
+ } catch (e) {
15197
15256
  } finally {
15198
15257
  setAction("isDiscarding", false);
15199
15258
  }
@@ -23162,25 +23221,38 @@ function WorkflowExecutionList({
23162
23221
  /* @__PURE__ */ jsx4("th", { children: "End date" }),
23163
23222
  /* @__PURE__ */ jsx4("th", { children: "Completion" })
23164
23223
  ] }) }),
23165
- /* @__PURE__ */ jsx4("tbody", { children: ((_a = workflowExecutions.data) == null ? void 0 : _a.length) ? workflowExecutions.data.map((execution) => /* @__PURE__ */ jsxs2("tr", { children: [
23166
- /* @__PURE__ */ jsx4("td", { children: (0, import_developer_studio_ui_react31.formatUSADate)(execution.started_at) }),
23167
- /* @__PURE__ */ jsx4("td", { children: (0, import_developer_studio_ui_react31.formatUSADate)(execution.ended_at) }),
23168
- /* @__PURE__ */ jsx4("td", { children: /* @__PURE__ */ jsx4(
23169
- import_design_system_react_components65.Tag,
23170
- {
23171
- kind: execution.status === import_developer_studio_api27.WorkflowExecutionStatus.Completed ? "success" : "error",
23172
- leftNode: /* @__PURE__ */ jsx4(
23173
- import_design_system_react_components65.Icon,
23224
+ /* @__PURE__ */ jsx4("tbody", { children: ((_a = workflowExecutions.data) == null ? void 0 : _a.length) ? workflowExecutions.data.map((execution) => /* @__PURE__ */ jsxs2(
23225
+ "tr",
23226
+ {
23227
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.executions.list.row,
23228
+ children: [
23229
+ /* @__PURE__ */ jsx4("td", { children: (0, import_developer_studio_ui_react31.formatUSADate)(execution.started_at) }),
23230
+ /* @__PURE__ */ jsx4("td", { children: (0, import_developer_studio_ui_react31.formatUSADate)(execution.ended_at) }),
23231
+ /* @__PURE__ */ jsx4(
23232
+ "td",
23174
23233
  {
23175
- size: "small",
23176
- source: execution.status === import_developer_studio_api27.WorkflowExecutionStatus.Completed ? import_design_system_icons28.CheckCircle : import_design_system_icons28.CloseCircle
23234
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.executions.list.status,
23235
+ children: /* @__PURE__ */ jsx4(
23236
+ import_design_system_react_components65.Tag,
23237
+ {
23238
+ kind: execution.status === import_developer_studio_api27.WorkflowExecutionStatus.Completed ? "success" : "error",
23239
+ leftNode: /* @__PURE__ */ jsx4(
23240
+ import_design_system_react_components65.Icon,
23241
+ {
23242
+ size: "small",
23243
+ source: execution.status === import_developer_studio_api27.WorkflowExecutionStatus.Completed ? import_design_system_icons28.CheckCircle : import_design_system_icons28.CloseCircle
23244
+ }
23245
+ ),
23246
+ size: "small",
23247
+ children: execution.status
23248
+ }
23249
+ )
23177
23250
  }
23178
- ),
23179
- size: "small",
23180
- children: execution.status
23181
- }
23182
- ) })
23183
- ] }, execution.id)) : /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 4, children: "No executions" }) }) })
23251
+ )
23252
+ ]
23253
+ },
23254
+ execution.id
23255
+ )) : /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 4, children: "No executions" }) }) })
23184
23256
  ] }) });
23185
23257
  }
23186
23258
  var List_default = WorkflowExecutionList;
@@ -23217,11 +23289,27 @@ function WorkflowDetailsInfo({
23217
23289
  return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react32.Column, { gap: 8, setColumnPadding: "0 2rem 0", children: [
23218
23290
  /* @__PURE__ */ jsxs2("div", { children: [
23219
23291
  /* @__PURE__ */ jsx4(Label, { children: "Date created" }),
23220
- /* @__PURE__ */ jsx4(import_design_system_react_components66.Text, { as: "div", bold: true, children: (0, import_developer_studio_ui_react32.formatUSADate)(workflow.data.created_at) })
23292
+ /* @__PURE__ */ jsx4(
23293
+ import_design_system_react_components66.Text,
23294
+ {
23295
+ as: "div",
23296
+ bold: true,
23297
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.dateCreated,
23298
+ children: (0, import_developer_studio_ui_react32.formatUSADate)(workflow.data.created_at)
23299
+ }
23300
+ )
23221
23301
  ] }),
23222
23302
  /* @__PURE__ */ jsxs2("div", { children: [
23223
23303
  /* @__PURE__ */ jsx4(Label, { children: "Last modified" }),
23224
- /* @__PURE__ */ jsx4(import_design_system_react_components66.Text, { as: "div", bold: true, children: (0, import_developer_studio_ui_react32.formatUSADate)(workflow.data.updated_at || workflow.data.created_at) })
23304
+ /* @__PURE__ */ jsx4(
23305
+ import_design_system_react_components66.Text,
23306
+ {
23307
+ as: "div",
23308
+ bold: true,
23309
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.dateUpdated,
23310
+ children: (0, import_developer_studio_ui_react32.formatUSADate)(workflow.data.updated_at || workflow.data.created_at)
23311
+ }
23312
+ )
23225
23313
  ] }),
23226
23314
  /* @__PURE__ */ jsxs2("div", { children: [
23227
23315
  /* @__PURE__ */ jsx4(Label, { children: "Created by" }),
@@ -23229,11 +23317,27 @@ function WorkflowDetailsInfo({
23229
23317
  ] }),
23230
23318
  /* @__PURE__ */ jsxs2("div", { children: [
23231
23319
  /* @__PURE__ */ jsx4(Label, { children: "Completed cycles" }),
23232
- /* @__PURE__ */ jsx4(import_design_system_react_components66.Text, { as: "div", bold: true, children: completedCycles })
23320
+ /* @__PURE__ */ jsx4(
23321
+ import_design_system_react_components66.Text,
23322
+ {
23323
+ as: "div",
23324
+ bold: true,
23325
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.completedCycles,
23326
+ children: completedCycles
23327
+ }
23328
+ )
23233
23329
  ] }),
23234
23330
  /* @__PURE__ */ jsxs2("div", { children: [
23235
23331
  /* @__PURE__ */ jsx4(Label, { children: "Failed cycles" }),
23236
- /* @__PURE__ */ jsx4(import_design_system_react_components66.Text, { as: "div", bold: true, children: failedCycles })
23332
+ /* @__PURE__ */ jsx4(
23333
+ import_design_system_react_components66.Text,
23334
+ {
23335
+ as: "div",
23336
+ bold: true,
23337
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.info.failedCycles,
23338
+ children: failedCycles
23339
+ }
23340
+ )
23237
23341
  ] }),
23238
23342
  /* @__PURE__ */ jsxs2("div", { children: [
23239
23343
  /* @__PURE__ */ jsx4(Label, { children: "Tasks" }),
@@ -23338,6 +23442,7 @@ function WorkflowDetailsPanel({
23338
23442
  /* @__PURE__ */ jsx4(
23339
23443
  import_design_system_react_components67.Tab,
23340
23444
  {
23445
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.creator.panels.details.panel.historyTab,
23341
23446
  isSelected: tab === "executions",
23342
23447
  onClick: () => {
23343
23448
  navigate("../executions", { replace: true, relative: "route" });
@@ -24305,6 +24410,7 @@ function WorkflowTemplatePreviewModal({
24305
24410
  return /* @__PURE__ */ jsx4(
24306
24411
  import_design_system_react_components73.Modal,
24307
24412
  {
24413
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.modals.previewTemplate.wrapper,
24308
24414
  footer: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react39.Row, { flexEnd: true, gap: `var(${import_design_system_react_components73.SpacingToken.Spacing3})`, notPadded: true, children: [
24309
24415
  /* @__PURE__ */ jsx4(
24310
24416
  import_design_system_react_components73.Button,
@@ -24321,6 +24427,7 @@ function WorkflowTemplatePreviewModal({
24321
24427
  /* @__PURE__ */ jsx4(
24322
24428
  import_design_system_react_components73.Button,
24323
24429
  {
24430
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.modals.previewTemplate.useButton,
24324
24431
  disabled: isSaving,
24325
24432
  kind: "primary",
24326
24433
  loading: isSaving,
@@ -24636,6 +24743,7 @@ function WorkflowTemplateCard({
24636
24743
  import_developer_studio_ui_react43.Card,
24637
24744
  {
24638
24745
  border: true,
24746
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.home.cards.template.wrapper,
24639
24747
  height: "100%",
24640
24748
  marginLeft: false,
24641
24749
  noBackground: true,
@@ -24799,6 +24907,7 @@ function WorkflowCreateModal({ onClose }) {
24799
24907
  width: min(100% - 4rem, 60rem);
24800
24908
  overflow-y: auto;
24801
24909
  `,
24910
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.modals.create.wrapper,
24802
24911
  heading: /* @__PURE__ */ jsx4(import_design_system_react_components79.ModalHeader, { title: "Create a workflow" }),
24803
24912
  onClose: handleClose,
24804
24913
  children: /* @__PURE__ */ jsx4(Home_default, { basePath: "create/", isOnModal: true })
@@ -25006,20 +25115,30 @@ function WorkflowsTable({ workflowsQuery, state }) {
25006
25115
  },
25007
25116
  [navigate]
25008
25117
  );
25009
- return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react45.Table, { flowTable: true, loading: workflowsQuery.isLoading, children: [
25010
- /* @__PURE__ */ jsx4("thead", { children: /* @__PURE__ */ jsxs2("tr", { children: [
25011
- /* @__PURE__ */ jsx4("th", { children: "Name" }),
25012
- /* @__PURE__ */ jsx4("th", { children: "Tasks" }),
25013
- /* @__PURE__ */ jsx4("th", { children: "Status" }),
25014
- /* @__PURE__ */ jsx4("th", {}),
25015
- /* @__PURE__ */ jsx4("th", {})
25016
- ] }) }),
25017
- /* @__PURE__ */ jsx4("tbody", { children: workflowsQuery.isSuccess && filteredWorkflows.length > 0 ? filteredWorkflows.map((workflow) => {
25018
- var _a2, _b2, _c2, _d;
25019
- return /* @__PURE__ */ jsxs2(
25020
- "tr",
25021
- {
25022
- css: css`
25118
+ return /* @__PURE__ */ jsxs2(
25119
+ import_developer_studio_ui_react45.Table,
25120
+ {
25121
+ "data-testId": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.wrapper,
25122
+ flowTable: true,
25123
+ loading: workflowsQuery.isLoading,
25124
+ children: [
25125
+ /* @__PURE__ */ jsx4("thead", { children: /* @__PURE__ */ jsxs2("tr", { children: [
25126
+ /* @__PURE__ */ jsx4("th", { children: "Name" }),
25127
+ /* @__PURE__ */ jsx4("th", { children: "Tasks" }),
25128
+ /* @__PURE__ */ jsx4("th", { children: "Status" }),
25129
+ /* @__PURE__ */ jsx4("th", {}),
25130
+ /* @__PURE__ */ jsx4("th", {})
25131
+ ] }) }),
25132
+ /* @__PURE__ */ jsx4(
25133
+ "tbody",
25134
+ {
25135
+ "data-testId": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.body,
25136
+ children: workflowsQuery.isSuccess && filteredWorkflows.length > 0 ? filteredWorkflows.map((workflow) => {
25137
+ var _a2, _b2, _c2, _d;
25138
+ return /* @__PURE__ */ jsxs2(
25139
+ "tr",
25140
+ {
25141
+ css: css`
25023
25142
  transition: background 0.2s;
25024
25143
  cursor: pointer;
25025
25144
 
@@ -25027,131 +25146,141 @@ function WorkflowsTable({ workflowsQuery, state }) {
25027
25146
  background: var(${import_design_system_react_components82.DesignToken.SurfacePrimaryHover});
25028
25147
  }
25029
25148
  `,
25030
- onClick: () => {
25031
- handleSelect(workflow);
25032
- },
25033
- children: [
25034
- /* @__PURE__ */ jsx4("td", { width: "45%", children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react45.Row, { gap: `var(${import_design_system_react_components82.SpacingToken.Spacing2})`, noWrap: true, notPadded: true, children: [
25035
- /* @__PURE__ */ jsx4(import_design_system_react_components82.Text, { noMargin: true, size: "sm", children: workflow.name }),
25036
- workflow.related_workflow_id ? /* @__PURE__ */ jsx4(
25037
- import_design_system_react_components82.Tag,
25038
- {
25039
- css: css`
25149
+ "data-testId": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.workflowItem(
25150
+ workflow.id
25151
+ ),
25152
+ onClick: () => {
25153
+ handleSelect(workflow);
25154
+ },
25155
+ children: [
25156
+ /* @__PURE__ */ jsx4("td", { width: "45%", children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react45.Row, { gap: `var(${import_design_system_react_components82.SpacingToken.Spacing2})`, noWrap: true, notPadded: true, children: [
25157
+ /* @__PURE__ */ jsx4(import_design_system_react_components82.Text, { noMargin: true, size: "sm", children: workflow.name }),
25158
+ workflow.related_workflow_id ? /* @__PURE__ */ jsx4(
25159
+ import_design_system_react_components82.Tag,
25160
+ {
25161
+ css: css`
25040
25162
  color: #68afff;
25041
25163
  flex-shrink: 0;
25042
25164
  `,
25043
- kind: "info",
25044
- size: "small",
25045
- children: "Has Draft"
25046
- }
25047
- ) : null
25048
- ] }) }),
25049
- /* @__PURE__ */ jsx4("td", { width: "40%", children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react45.Row, { gap: 12, notPadded: true, children: (_a2 = workflow.tags) == null ? void 0 : _a2.map((tag) => {
25050
- const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === import_developer_studio_api32.IntegrationNames.BigCommerce.toLowerCase());
25051
- return /* @__PURE__ */ jsx4(
25052
- ProductIcon_default,
25053
- {
25054
- center: true,
25055
- height: 4,
25056
- product: tag.toLowerCase(),
25057
- revertColors: revertIconColor,
25058
- width: 4
25059
- },
25060
- tag
25061
- );
25062
- }) }) }),
25063
- /* @__PURE__ */ jsx4("td", { children: /* @__PURE__ */ jsx4(
25064
- import_design_system_react_components82.Tooltip,
25065
- {
25066
- triggerClassName: "tooltip-trigger",
25067
- triggerOnHover: true,
25068
- triggerRenderer: /* @__PURE__ */ jsx4(import_developer_studio_ui_react45.StopPropagation, { children: /* @__PURE__ */ jsx4(
25069
- import_design_system_react_components82.Switch,
25070
- {
25071
- css: css`
25165
+ kind: "info",
25166
+ size: "small",
25167
+ children: "Has Draft"
25168
+ }
25169
+ ) : null
25170
+ ] }) }),
25171
+ /* @__PURE__ */ jsx4("td", { width: "40%", children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react45.Row, { gap: 12, notPadded: true, children: (_a2 = workflow.tags) == null ? void 0 : _a2.map((tag) => {
25172
+ const revertIconColor = getWorkflowsEnv("isHeadless") && (tag.toLowerCase() === "openai" || tag.toLowerCase() === import_developer_studio_api32.IntegrationNames.BigCommerce.toLowerCase());
25173
+ return /* @__PURE__ */ jsx4(
25174
+ ProductIcon_default,
25175
+ {
25176
+ center: true,
25177
+ height: 4,
25178
+ product: tag.toLowerCase(),
25179
+ revertColors: revertIconColor,
25180
+ width: 4
25181
+ },
25182
+ tag
25183
+ );
25184
+ }) }) }),
25185
+ /* @__PURE__ */ jsx4("td", { children: /* @__PURE__ */ jsx4(
25186
+ import_design_system_react_components82.Tooltip,
25187
+ {
25188
+ triggerClassName: "tooltip-trigger",
25189
+ triggerOnHover: true,
25190
+ triggerRenderer: /* @__PURE__ */ jsx4(import_developer_studio_ui_react45.StopPropagation, { children: /* @__PURE__ */ jsx4(
25191
+ import_design_system_react_components82.Switch,
25192
+ {
25193
+ css: css`
25072
25194
  vertical-align: bottom;
25073
25195
  `,
25074
- on: (_b2 = workflow.active) != null ? _b2 : false,
25075
- onChange: (e) => {
25076
- e.stopPropagation();
25077
- void handleActivate(workflow);
25078
- },
25079
- state: activateWorkflowAction.isLoading && ((_c2 = activateWorkflowAction.variables) == null ? void 0 : _c2.id) === workflow.id ? "loading" : workflow.draft ? "locked" : "regular"
25080
- }
25081
- ) }),
25082
- children: workflow.draft ? "Publish the draft to activate this workflow" : workflow.active ? "Deactivate flow" : "Activate flow"
25083
- }
25084
- ) }),
25085
- /* @__PURE__ */ jsx4("td", { children: !workflow.draft && /* @__PURE__ */ jsx4(
25086
- import_design_system_react_components82.Button,
25087
- {
25088
- icon: /* @__PURE__ */ jsx4(import_design_system_react_components82.Icon, { source: import_design_system_icons40.Info }),
25089
- kind: "plain",
25090
- onClick: (e) => {
25091
- e.stopPropagation();
25092
- handleShowDetails(workflow);
25093
- }
25094
- }
25095
- ) }),
25096
- /* @__PURE__ */ jsx4("td", { align: "right", children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react45.StopPropagation, { children: /* @__PURE__ */ jsx4(
25097
- import_design_system_react_components82.ActionMenu,
25098
- {
25099
- options: [
25100
- {
25101
- key: "run",
25102
- element: /* @__PURE__ */ jsx4(
25103
- import_design_system_react_components82.ActionMenuItem,
25196
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.activateSwitch,
25197
+ on: (_b2 = workflow.active) != null ? _b2 : false,
25198
+ onChange: (e) => {
25199
+ e.stopPropagation();
25200
+ void handleActivate(workflow);
25201
+ },
25202
+ state: activateWorkflowAction.isLoading && ((_c2 = activateWorkflowAction.variables) == null ? void 0 : _c2.id) === workflow.id ? "loading" : workflow.draft ? "locked" : "regular"
25203
+ }
25204
+ ) }),
25205
+ children: workflow.draft ? "Publish the draft to activate this workflow" : workflow.active ? "Deactivate flow" : "Activate flow"
25206
+ }
25207
+ ) }),
25208
+ /* @__PURE__ */ jsx4("td", { children: !workflow.draft && /* @__PURE__ */ jsx4(
25209
+ import_design_system_react_components82.Button,
25104
25210
  {
25105
- leftNode: /* @__PURE__ */ jsx4(import_design_system_react_components82.Icon, { source: import_design_system_icons40.PlayArrow }),
25106
- children: "Trigger manually"
25211
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.infoButton,
25212
+ icon: /* @__PURE__ */ jsx4(import_design_system_react_components82.Icon, { source: import_design_system_icons40.Info }),
25213
+ kind: "plain",
25214
+ onClick: (e) => {
25215
+ e.stopPropagation();
25216
+ handleShowDetails(workflow);
25217
+ }
25107
25218
  }
25108
- ),
25109
- onClick: () => {
25110
- navigate(`/${workflow.id}/execute`);
25111
- }
25112
- },
25113
- {
25114
- key: "delete",
25115
- element: /* @__PURE__ */ jsx4(import_design_system_react_components82.ActionMenuItem, { leftNode: /* @__PURE__ */ jsx4(import_design_system_react_components82.Icon, { source: import_design_system_icons40.Delete }), children: "Delete" }),
25116
- onClick: () => {
25117
- void handleDelete(workflow);
25118
- }
25119
- }
25120
- ],
25121
- triggerRenderer: /* @__PURE__ */ jsx4(
25122
- import_design_system_react_components82.Button,
25123
- {
25124
- icon: /* @__PURE__ */ jsx4(import_design_system_react_components82.Icon, { source: import_design_system_icons40.MoreHoriz }),
25125
- kind: "text",
25126
- loading: deleteAction.isLoading ? ((_d = deleteAction.variables) == null ? void 0 : _d.id) === workflow.id : void 0,
25127
- size: "compact"
25128
- }
25129
- )
25130
- }
25131
- ) }) })
25132
- ]
25133
- },
25134
- workflow.id
25135
- );
25136
- }) : workflowsQuery.isLoading ? /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 6, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react45.Loader, { size: "medium" }) }) }) : /* @__PURE__ */ jsx4(
25137
- "tr",
25138
- {
25139
- css: css`
25219
+ ) }),
25220
+ /* @__PURE__ */ jsx4("td", { align: "right", children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react45.StopPropagation, { children: /* @__PURE__ */ jsx4(
25221
+ import_design_system_react_components82.ActionMenu,
25222
+ {
25223
+ options: [
25224
+ {
25225
+ key: "run",
25226
+ element: /* @__PURE__ */ jsx4(
25227
+ import_design_system_react_components82.ActionMenuItem,
25228
+ {
25229
+ leftNode: /* @__PURE__ */ jsx4(import_design_system_react_components82.Icon, { source: import_design_system_icons40.PlayArrow }),
25230
+ children: "Trigger manually"
25231
+ }
25232
+ ),
25233
+ onClick: () => {
25234
+ navigate(`/${workflow.id}/execute`);
25235
+ }
25236
+ },
25237
+ {
25238
+ key: "delete",
25239
+ element: /* @__PURE__ */ jsx4(import_design_system_react_components82.ActionMenuItem, { leftNode: /* @__PURE__ */ jsx4(import_design_system_react_components82.Icon, { source: import_design_system_icons40.Delete }), children: "Delete" }),
25240
+ onClick: () => {
25241
+ void handleDelete(workflow);
25242
+ }
25243
+ }
25244
+ ],
25245
+ triggerRenderer: /* @__PURE__ */ jsx4(
25246
+ import_design_system_react_components82.Button,
25247
+ {
25248
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.grid.table.menuTrigger,
25249
+ icon: /* @__PURE__ */ jsx4(import_design_system_react_components82.Icon, { source: import_design_system_icons40.MoreHoriz }),
25250
+ kind: "text",
25251
+ loading: deleteAction.isLoading ? ((_d = deleteAction.variables) == null ? void 0 : _d.id) === workflow.id : void 0,
25252
+ size: "compact"
25253
+ }
25254
+ )
25255
+ }
25256
+ ) }) })
25257
+ ]
25258
+ },
25259
+ workflow.id
25260
+ );
25261
+ }) : workflowsQuery.isLoading ? /* @__PURE__ */ jsx4("tr", { children: /* @__PURE__ */ jsx4("td", { align: "center", colSpan: 6, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react45.Loader, { size: "medium" }) }) }) : /* @__PURE__ */ jsx4(
25262
+ "tr",
25263
+ {
25264
+ css: css`
25140
25265
  background: transparent !important;
25141
25266
  color: var(${import_design_system_react_components82.DesignToken.ContentBasicSecondary});
25142
25267
  `,
25143
- children: /* @__PURE__ */ jsx4("td", { align: "left", colSpan: 6, children: /* @__PURE__ */ jsxs2(import_design_system_react_components82.Text, { as: "div", size: "md", children: [
25144
- "There are no",
25145
- " ",
25146
- state.filters.status !== "All" && state.filters.status.toLowerCase(),
25147
- " ",
25148
- "workflows",
25149
- " ",
25150
- ((_c = (_b = state.params) == null ? void 0 : _b.name) == null ? void 0 : _c.value) ? `with "${state.params.name.value}" in the name` : null
25151
- ] }) })
25152
- }
25153
- ) })
25154
- ] });
25268
+ children: /* @__PURE__ */ jsx4("td", { align: "left", colSpan: 6, children: /* @__PURE__ */ jsxs2(import_design_system_react_components82.Text, { as: "div", size: "md", children: [
25269
+ "There are no",
25270
+ " ",
25271
+ state.filters.status !== "All" && state.filters.status.toLowerCase(),
25272
+ " ",
25273
+ "workflows",
25274
+ " ",
25275
+ ((_c = (_b = state.params) == null ? void 0 : _b.name) == null ? void 0 : _c.value) ? `with "${state.params.name.value}" in the name` : null
25276
+ ] }) })
25277
+ }
25278
+ )
25279
+ }
25280
+ )
25281
+ ]
25282
+ }
25283
+ );
25155
25284
  }
25156
25285
  var Table_default = WorkflowsTable;
25157
25286
 
@@ -25235,28 +25364,35 @@ function WorkflowListView() {
25235
25364
  return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react47.View, { center: hasNoData, noWrap: true, stretch: isLoading, children: [
25236
25365
  getWorkflowsEnv("isLiveChatMode") ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Row, { noMaxWidth: true, notPadded: true, children: /* @__PURE__ */ jsx4(LiveChatNavbar_default, {}) }) : null,
25237
25366
  /* @__PURE__ */ jsxs2(import_developer_studio_ui_react47.Row, { topMargin: true, verticalCenter: hasNoData, children: [
25238
- /* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Column, { width: hasNoData ? 10 : 8, children: hasNoData ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Row, { notPadded: true, children: /* @__PURE__ */ jsx4(
25239
- import_developer_studio_ui_react47.Intro,
25367
+ /* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Column, { width: hasNoData ? 10 : 8, children: hasNoData ? /* @__PURE__ */ jsx4(
25368
+ import_developer_studio_ui_react47.Row,
25240
25369
  {
25241
- 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.",
25242
- center: true,
25243
- header: /* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Column, { notPadded: true, stretch: true, children: /* @__PURE__ */ jsxs2(
25244
- import_developer_studio_ui_react47.Row,
25370
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.view.emptyInfo,
25371
+ notPadded: true,
25372
+ children: /* @__PURE__ */ jsx4(
25373
+ import_developer_studio_ui_react47.Intro,
25245
25374
  {
25375
+ 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.",
25246
25376
  center: true,
25247
- gap: `var(${import_design_system_react_components84.SpacingToken.Spacing2})`,
25248
- notPadded: true,
25249
- verticalCenter: true,
25250
- children: [
25251
- "Welcome to ",
25252
- /* @__PURE__ */ jsx4("span", { css: markedStyles, children: "Workflows" })
25253
- ]
25377
+ header: /* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Column, { notPadded: true, stretch: true, children: /* @__PURE__ */ jsxs2(
25378
+ import_developer_studio_ui_react47.Row,
25379
+ {
25380
+ center: true,
25381
+ gap: `var(${import_design_system_react_components84.SpacingToken.Spacing2})`,
25382
+ notPadded: true,
25383
+ verticalCenter: true,
25384
+ children: [
25385
+ "Welcome to ",
25386
+ /* @__PURE__ */ jsx4("span", { css: markedStyles, children: "Workflows" })
25387
+ ]
25388
+ }
25389
+ ) }),
25390
+ noMaxWidth: true,
25391
+ style: { maxWidth: "38rem" }
25254
25392
  }
25255
- ) }),
25256
- noMaxWidth: true,
25257
- style: { maxWidth: "38rem" }
25393
+ )
25258
25394
  }
25259
- ) }) : /* @__PURE__ */ jsx4(
25395
+ ) : /* @__PURE__ */ jsx4(
25260
25396
  import_developer_studio_ui_react47.Intro,
25261
25397
  {
25262
25398
  body: "Create custom workflows to automate your work.",
@@ -25267,6 +25403,7 @@ function WorkflowListView() {
25267
25403
  hasData && !getWorkflowsEnv("isHeadless") ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react47.Column, { pullRight: true, children: /* @__PURE__ */ jsx4(
25268
25404
  import_design_system_react_components84.Button,
25269
25405
  {
25406
+ "data-testid": WORKFLOWS_TEST_SELECTORS.views.workflows.list.view.createButton,
25270
25407
  kind: "primary",
25271
25408
  onClick: () => {
25272
25409
  navigate("create");