@livechat/developer-studio-api 3.1.56-beta → 3.1.56
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.d.mts +921 -157
- package/dist/index.d.ts +921 -157
- package/dist/index.js +16 -22
- package/dist/index.mjs +16 -22
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -430,9 +430,11 @@ type WorkflowTriggerDto = {
|
|
|
430
430
|
at: string;
|
|
431
431
|
} | {
|
|
432
432
|
type: "webhook";
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
433
|
+
webhook: {
|
|
434
|
+
source: IntegrationEventProviderName;
|
|
435
|
+
event: IntegrationEvent;
|
|
436
|
+
headers?: Record<string, string[]>;
|
|
437
|
+
};
|
|
436
438
|
};
|
|
437
439
|
interface WorkflowDefinitionDto {
|
|
438
440
|
name: string;
|
|
@@ -2336,20 +2338,140 @@ declare const bigcommerceEventsZods: {
|
|
|
2336
2338
|
sourceName: "apps" | "workflows";
|
|
2337
2339
|
sourceKey: string;
|
|
2338
2340
|
}>, z.ZodObject<{
|
|
2339
|
-
event: z.
|
|
2341
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2342
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
2343
|
+
}, "strip", z.ZodTypeAny, {
|
|
2344
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2345
|
+
}, {
|
|
2346
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2347
|
+
}>, z.ZodObject<{
|
|
2348
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
2349
|
+
}, "strip", z.ZodTypeAny, {
|
|
2350
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2351
|
+
}, {
|
|
2352
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2353
|
+
}>, z.ZodObject<{
|
|
2354
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
2355
|
+
}, "strip", z.ZodTypeAny, {
|
|
2356
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2357
|
+
}, {
|
|
2358
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2359
|
+
}>, z.ZodObject<{
|
|
2360
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
2361
|
+
}, "strip", z.ZodTypeAny, {
|
|
2362
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2363
|
+
}, {
|
|
2364
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2365
|
+
}>, z.ZodObject<{
|
|
2366
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
2367
|
+
}, "strip", z.ZodTypeAny, {
|
|
2368
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2369
|
+
}, {
|
|
2370
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2371
|
+
}>, z.ZodObject<{
|
|
2372
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
2373
|
+
}, "strip", z.ZodTypeAny, {
|
|
2374
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2375
|
+
}, {
|
|
2376
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2377
|
+
}>]>;
|
|
2340
2378
|
}, "strip", z.ZodTypeAny, {
|
|
2341
|
-
event:
|
|
2379
|
+
event: {
|
|
2380
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2381
|
+
} | {
|
|
2382
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2383
|
+
} | {
|
|
2384
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2385
|
+
} | {
|
|
2386
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2387
|
+
} | {
|
|
2388
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2389
|
+
} | {
|
|
2390
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2391
|
+
};
|
|
2342
2392
|
}, {
|
|
2343
|
-
event:
|
|
2393
|
+
event: {
|
|
2394
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2395
|
+
} | {
|
|
2396
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2397
|
+
} | {
|
|
2398
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2399
|
+
} | {
|
|
2400
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2401
|
+
} | {
|
|
2402
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2403
|
+
} | {
|
|
2404
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2405
|
+
};
|
|
2344
2406
|
}>>;
|
|
2345
2407
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2346
2408
|
provider: z.ZodLiteral<"bigcommerce">;
|
|
2347
|
-
event: z.
|
|
2409
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2410
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
2411
|
+
}, "strip", z.ZodTypeAny, {
|
|
2412
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2413
|
+
}, {
|
|
2414
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2415
|
+
}>, z.ZodObject<{
|
|
2416
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
2417
|
+
}, "strip", z.ZodTypeAny, {
|
|
2418
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2419
|
+
}, {
|
|
2420
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2421
|
+
}>, z.ZodObject<{
|
|
2422
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
2423
|
+
}, "strip", z.ZodTypeAny, {
|
|
2424
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2425
|
+
}, {
|
|
2426
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2427
|
+
}>, z.ZodObject<{
|
|
2428
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
2429
|
+
}, "strip", z.ZodTypeAny, {
|
|
2430
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2431
|
+
}, {
|
|
2432
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2433
|
+
}>, z.ZodObject<{
|
|
2434
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
2435
|
+
}, "strip", z.ZodTypeAny, {
|
|
2436
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2437
|
+
}, {
|
|
2438
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2439
|
+
}>, z.ZodObject<{
|
|
2440
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
2441
|
+
}, "strip", z.ZodTypeAny, {
|
|
2442
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2443
|
+
}, {
|
|
2444
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2445
|
+
}>]>;
|
|
2348
2446
|
}, "strip", z.ZodTypeAny, {
|
|
2349
|
-
event:
|
|
2447
|
+
event: {
|
|
2448
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2449
|
+
} | {
|
|
2450
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2451
|
+
} | {
|
|
2452
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2453
|
+
} | {
|
|
2454
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2455
|
+
} | {
|
|
2456
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2457
|
+
} | {
|
|
2458
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2459
|
+
};
|
|
2350
2460
|
provider: "bigcommerce";
|
|
2351
2461
|
}, {
|
|
2352
|
-
event:
|
|
2462
|
+
event: {
|
|
2463
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2464
|
+
} | {
|
|
2465
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2466
|
+
} | {
|
|
2467
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2468
|
+
} | {
|
|
2469
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2470
|
+
} | {
|
|
2471
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2472
|
+
} | {
|
|
2473
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2474
|
+
};
|
|
2353
2475
|
provider: "bigcommerce";
|
|
2354
2476
|
}>;
|
|
2355
2477
|
};
|
|
@@ -2501,20 +2623,60 @@ declare const hubspotEventsZods: {
|
|
|
2501
2623
|
sourceName: "apps" | "workflows";
|
|
2502
2624
|
sourceKey: string;
|
|
2503
2625
|
}>, z.ZodObject<{
|
|
2504
|
-
event: z.
|
|
2626
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2627
|
+
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
2628
|
+
}, "strip", z.ZodTypeAny, {
|
|
2629
|
+
name: HubspotEventNames.ContactCreated;
|
|
2630
|
+
}, {
|
|
2631
|
+
name: HubspotEventNames.ContactCreated;
|
|
2632
|
+
}>, z.ZodObject<{
|
|
2633
|
+
name: z.ZodLiteral<HubspotEventNames.ContactDeleted>;
|
|
2634
|
+
}, "strip", z.ZodTypeAny, {
|
|
2635
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2636
|
+
}, {
|
|
2637
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2638
|
+
}>]>;
|
|
2505
2639
|
}, "strip", z.ZodTypeAny, {
|
|
2506
|
-
event:
|
|
2640
|
+
event: {
|
|
2641
|
+
name: HubspotEventNames.ContactCreated;
|
|
2642
|
+
} | {
|
|
2643
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2644
|
+
};
|
|
2507
2645
|
}, {
|
|
2508
|
-
event:
|
|
2646
|
+
event: {
|
|
2647
|
+
name: HubspotEventNames.ContactCreated;
|
|
2648
|
+
} | {
|
|
2649
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2650
|
+
};
|
|
2509
2651
|
}>>;
|
|
2510
2652
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2511
2653
|
provider: z.ZodLiteral<"hubspot">;
|
|
2512
|
-
event: z.
|
|
2654
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2655
|
+
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
2656
|
+
}, "strip", z.ZodTypeAny, {
|
|
2657
|
+
name: HubspotEventNames.ContactCreated;
|
|
2658
|
+
}, {
|
|
2659
|
+
name: HubspotEventNames.ContactCreated;
|
|
2660
|
+
}>, z.ZodObject<{
|
|
2661
|
+
name: z.ZodLiteral<HubspotEventNames.ContactDeleted>;
|
|
2662
|
+
}, "strip", z.ZodTypeAny, {
|
|
2663
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2664
|
+
}, {
|
|
2665
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2666
|
+
}>]>;
|
|
2513
2667
|
}, "strip", z.ZodTypeAny, {
|
|
2514
|
-
event:
|
|
2668
|
+
event: {
|
|
2669
|
+
name: HubspotEventNames.ContactCreated;
|
|
2670
|
+
} | {
|
|
2671
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2672
|
+
};
|
|
2515
2673
|
provider: "hubspot";
|
|
2516
2674
|
}, {
|
|
2517
|
-
event:
|
|
2675
|
+
event: {
|
|
2676
|
+
name: HubspotEventNames.ContactCreated;
|
|
2677
|
+
} | {
|
|
2678
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2679
|
+
};
|
|
2518
2680
|
provider: "hubspot";
|
|
2519
2681
|
}>;
|
|
2520
2682
|
};
|
|
@@ -2549,32 +2711,44 @@ declare const mailchimpEventsZods: {
|
|
|
2549
2711
|
eventName: z.ZodNativeEnum<typeof MailchimpEventNames>;
|
|
2550
2712
|
events: {
|
|
2551
2713
|
subscribed: z.ZodObject<{
|
|
2714
|
+
listId: z.ZodString;
|
|
2552
2715
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2553
2716
|
}, "strip", z.ZodTypeAny, {
|
|
2554
2717
|
name: MailchimpEventNames.Subscribed;
|
|
2718
|
+
listId: string;
|
|
2555
2719
|
}, {
|
|
2556
2720
|
name: MailchimpEventNames.Subscribed;
|
|
2721
|
+
listId: string;
|
|
2557
2722
|
}>;
|
|
2558
2723
|
unsubscribed: z.ZodObject<{
|
|
2724
|
+
listId: z.ZodString;
|
|
2559
2725
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2560
2726
|
}, "strip", z.ZodTypeAny, {
|
|
2561
2727
|
name: MailchimpEventNames.Unsubscribed;
|
|
2728
|
+
listId: string;
|
|
2562
2729
|
}, {
|
|
2563
2730
|
name: MailchimpEventNames.Unsubscribed;
|
|
2731
|
+
listId: string;
|
|
2564
2732
|
}>;
|
|
2565
2733
|
};
|
|
2566
2734
|
readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2735
|
+
listId: z.ZodString;
|
|
2567
2736
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2568
2737
|
}, "strip", z.ZodTypeAny, {
|
|
2569
2738
|
name: MailchimpEventNames.Subscribed;
|
|
2739
|
+
listId: string;
|
|
2570
2740
|
}, {
|
|
2571
2741
|
name: MailchimpEventNames.Subscribed;
|
|
2742
|
+
listId: string;
|
|
2572
2743
|
}>, z.ZodObject<{
|
|
2744
|
+
listId: z.ZodString;
|
|
2573
2745
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2574
2746
|
}, "strip", z.ZodTypeAny, {
|
|
2575
2747
|
name: MailchimpEventNames.Unsubscribed;
|
|
2748
|
+
listId: string;
|
|
2576
2749
|
}, {
|
|
2577
2750
|
name: MailchimpEventNames.Unsubscribed;
|
|
2751
|
+
listId: string;
|
|
2578
2752
|
}>]>;
|
|
2579
2753
|
readonly source: z.ZodObject<{
|
|
2580
2754
|
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
@@ -2597,72 +2771,86 @@ declare const mailchimpEventsZods: {
|
|
|
2597
2771
|
sourceKey: string;
|
|
2598
2772
|
}>, z.ZodObject<{
|
|
2599
2773
|
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2774
|
+
listId: z.ZodString;
|
|
2600
2775
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2601
2776
|
}, "strip", z.ZodTypeAny, {
|
|
2602
2777
|
name: MailchimpEventNames.Subscribed;
|
|
2778
|
+
listId: string;
|
|
2603
2779
|
}, {
|
|
2604
2780
|
name: MailchimpEventNames.Subscribed;
|
|
2781
|
+
listId: string;
|
|
2605
2782
|
}>, z.ZodObject<{
|
|
2783
|
+
listId: z.ZodString;
|
|
2606
2784
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2607
2785
|
}, "strip", z.ZodTypeAny, {
|
|
2608
2786
|
name: MailchimpEventNames.Unsubscribed;
|
|
2787
|
+
listId: string;
|
|
2609
2788
|
}, {
|
|
2610
2789
|
name: MailchimpEventNames.Unsubscribed;
|
|
2790
|
+
listId: string;
|
|
2611
2791
|
}>]>;
|
|
2612
|
-
listId: z.ZodString;
|
|
2613
2792
|
callback: z.ZodString;
|
|
2614
2793
|
}, "strip", z.ZodTypeAny, {
|
|
2615
2794
|
event: {
|
|
2616
2795
|
name: MailchimpEventNames.Subscribed;
|
|
2796
|
+
listId: string;
|
|
2617
2797
|
} | {
|
|
2618
2798
|
name: MailchimpEventNames.Unsubscribed;
|
|
2799
|
+
listId: string;
|
|
2619
2800
|
};
|
|
2620
2801
|
callback: string;
|
|
2621
|
-
listId: string;
|
|
2622
2802
|
}, {
|
|
2623
2803
|
event: {
|
|
2624
2804
|
name: MailchimpEventNames.Subscribed;
|
|
2805
|
+
listId: string;
|
|
2625
2806
|
} | {
|
|
2626
2807
|
name: MailchimpEventNames.Unsubscribed;
|
|
2808
|
+
listId: string;
|
|
2627
2809
|
};
|
|
2628
2810
|
callback: string;
|
|
2629
|
-
listId: string;
|
|
2630
2811
|
}>>;
|
|
2631
2812
|
readonly subscribeContent: z.ZodObject<{
|
|
2632
2813
|
provider: z.ZodLiteral<"mailchimp">;
|
|
2633
2814
|
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2815
|
+
listId: z.ZodString;
|
|
2634
2816
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2635
2817
|
}, "strip", z.ZodTypeAny, {
|
|
2636
2818
|
name: MailchimpEventNames.Subscribed;
|
|
2819
|
+
listId: string;
|
|
2637
2820
|
}, {
|
|
2638
2821
|
name: MailchimpEventNames.Subscribed;
|
|
2822
|
+
listId: string;
|
|
2639
2823
|
}>, z.ZodObject<{
|
|
2824
|
+
listId: z.ZodString;
|
|
2640
2825
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2641
2826
|
}, "strip", z.ZodTypeAny, {
|
|
2642
2827
|
name: MailchimpEventNames.Unsubscribed;
|
|
2828
|
+
listId: string;
|
|
2643
2829
|
}, {
|
|
2644
2830
|
name: MailchimpEventNames.Unsubscribed;
|
|
2831
|
+
listId: string;
|
|
2645
2832
|
}>]>;
|
|
2646
2833
|
callback: z.ZodString;
|
|
2647
|
-
listId: z.ZodString;
|
|
2648
2834
|
}, "strip", z.ZodTypeAny, {
|
|
2649
2835
|
event: {
|
|
2650
2836
|
name: MailchimpEventNames.Subscribed;
|
|
2837
|
+
listId: string;
|
|
2651
2838
|
} | {
|
|
2652
2839
|
name: MailchimpEventNames.Unsubscribed;
|
|
2840
|
+
listId: string;
|
|
2653
2841
|
};
|
|
2654
2842
|
callback: string;
|
|
2655
2843
|
provider: "mailchimp";
|
|
2656
|
-
listId: string;
|
|
2657
2844
|
}, {
|
|
2658
2845
|
event: {
|
|
2659
2846
|
name: MailchimpEventNames.Subscribed;
|
|
2847
|
+
listId: string;
|
|
2660
2848
|
} | {
|
|
2661
2849
|
name: MailchimpEventNames.Unsubscribed;
|
|
2850
|
+
listId: string;
|
|
2662
2851
|
};
|
|
2663
2852
|
callback: string;
|
|
2664
2853
|
provider: "mailchimp";
|
|
2665
|
-
listId: string;
|
|
2666
2854
|
}>;
|
|
2667
2855
|
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
2668
2856
|
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
@@ -2674,27 +2862,81 @@ declare const mailchimpEventsZods: {
|
|
|
2674
2862
|
sourceName: "apps" | "workflows";
|
|
2675
2863
|
sourceKey: string;
|
|
2676
2864
|
}>, z.ZodObject<{
|
|
2677
|
-
event: z.
|
|
2678
|
-
|
|
2865
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2866
|
+
listId: z.ZodString;
|
|
2867
|
+
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2868
|
+
}, "strip", z.ZodTypeAny, {
|
|
2869
|
+
name: MailchimpEventNames.Subscribed;
|
|
2870
|
+
listId: string;
|
|
2871
|
+
}, {
|
|
2872
|
+
name: MailchimpEventNames.Subscribed;
|
|
2873
|
+
listId: string;
|
|
2874
|
+
}>, z.ZodObject<{
|
|
2875
|
+
listId: z.ZodString;
|
|
2876
|
+
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2877
|
+
}, "strip", z.ZodTypeAny, {
|
|
2878
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2879
|
+
listId: string;
|
|
2880
|
+
}, {
|
|
2881
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2882
|
+
listId: string;
|
|
2883
|
+
}>]>;
|
|
2679
2884
|
}, "strip", z.ZodTypeAny, {
|
|
2680
|
-
event:
|
|
2681
|
-
|
|
2885
|
+
event: {
|
|
2886
|
+
name: MailchimpEventNames.Subscribed;
|
|
2887
|
+
listId: string;
|
|
2888
|
+
} | {
|
|
2889
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2890
|
+
listId: string;
|
|
2891
|
+
};
|
|
2682
2892
|
}, {
|
|
2683
|
-
event:
|
|
2684
|
-
|
|
2893
|
+
event: {
|
|
2894
|
+
name: MailchimpEventNames.Subscribed;
|
|
2895
|
+
listId: string;
|
|
2896
|
+
} | {
|
|
2897
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2898
|
+
listId: string;
|
|
2899
|
+
};
|
|
2685
2900
|
}>>;
|
|
2686
2901
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2687
2902
|
provider: z.ZodLiteral<"mailchimp">;
|
|
2688
|
-
event: z.
|
|
2689
|
-
|
|
2903
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2904
|
+
listId: z.ZodString;
|
|
2905
|
+
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2906
|
+
}, "strip", z.ZodTypeAny, {
|
|
2907
|
+
name: MailchimpEventNames.Subscribed;
|
|
2908
|
+
listId: string;
|
|
2909
|
+
}, {
|
|
2910
|
+
name: MailchimpEventNames.Subscribed;
|
|
2911
|
+
listId: string;
|
|
2912
|
+
}>, z.ZodObject<{
|
|
2913
|
+
listId: z.ZodString;
|
|
2914
|
+
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2915
|
+
}, "strip", z.ZodTypeAny, {
|
|
2916
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2917
|
+
listId: string;
|
|
2918
|
+
}, {
|
|
2919
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2920
|
+
listId: string;
|
|
2921
|
+
}>]>;
|
|
2690
2922
|
}, "strip", z.ZodTypeAny, {
|
|
2691
|
-
event:
|
|
2923
|
+
event: {
|
|
2924
|
+
name: MailchimpEventNames.Subscribed;
|
|
2925
|
+
listId: string;
|
|
2926
|
+
} | {
|
|
2927
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2928
|
+
listId: string;
|
|
2929
|
+
};
|
|
2692
2930
|
provider: "mailchimp";
|
|
2693
|
-
listId: string;
|
|
2694
2931
|
}, {
|
|
2695
|
-
event:
|
|
2932
|
+
event: {
|
|
2933
|
+
name: MailchimpEventNames.Subscribed;
|
|
2934
|
+
listId: string;
|
|
2935
|
+
} | {
|
|
2936
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2937
|
+
listId: string;
|
|
2938
|
+
};
|
|
2696
2939
|
provider: "mailchimp";
|
|
2697
|
-
listId: string;
|
|
2698
2940
|
}>;
|
|
2699
2941
|
};
|
|
2700
2942
|
type MailchimpEvent = z.infer<typeof mailchimpEventsZods.event>;
|
|
@@ -2818,23 +3060,43 @@ declare const shopifyEventsZods: {
|
|
|
2818
3060
|
sourceName: "apps" | "workflows";
|
|
2819
3061
|
sourceKey: string;
|
|
2820
3062
|
}>, z.ZodObject<{
|
|
2821
|
-
event: z.
|
|
3063
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3064
|
+
name: z.ZodLiteral<ShopifyEventNames>;
|
|
3065
|
+
}, "strip", z.ZodTypeAny, {
|
|
3066
|
+
name: ShopifyEventNames;
|
|
3067
|
+
}, {
|
|
3068
|
+
name: ShopifyEventNames;
|
|
3069
|
+
}>]>;
|
|
2822
3070
|
}, "strip", z.ZodTypeAny, {
|
|
2823
|
-
event:
|
|
3071
|
+
event: {
|
|
3072
|
+
name: ShopifyEventNames;
|
|
3073
|
+
};
|
|
2824
3074
|
}, {
|
|
2825
|
-
event:
|
|
3075
|
+
event: {
|
|
3076
|
+
name: ShopifyEventNames;
|
|
3077
|
+
};
|
|
2826
3078
|
}>>;
|
|
2827
3079
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2828
3080
|
provider: z.ZodLiteral<"shopify">;
|
|
2829
|
-
event: z.
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
}
|
|
2837
|
-
|
|
3081
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3082
|
+
name: z.ZodLiteral<ShopifyEventNames>;
|
|
3083
|
+
}, "strip", z.ZodTypeAny, {
|
|
3084
|
+
name: ShopifyEventNames;
|
|
3085
|
+
}, {
|
|
3086
|
+
name: ShopifyEventNames;
|
|
3087
|
+
}>]>;
|
|
3088
|
+
}, "strip", z.ZodTypeAny, {
|
|
3089
|
+
event: {
|
|
3090
|
+
name: ShopifyEventNames;
|
|
3091
|
+
};
|
|
3092
|
+
provider: "shopify";
|
|
3093
|
+
}, {
|
|
3094
|
+
event: {
|
|
3095
|
+
name: ShopifyEventNames;
|
|
3096
|
+
};
|
|
3097
|
+
provider: "shopify";
|
|
3098
|
+
}>;
|
|
3099
|
+
};
|
|
2838
3100
|
type ShopifyEvent = z.infer<typeof shopifyEventsZods.event>;
|
|
2839
3101
|
type SubscribeToShopifyEventPayload = z.infer<typeof shopifyEventsZods.subscribe>;
|
|
2840
3102
|
type UnsubscribeFromShopifyEventPayload = z.infer<typeof shopifyEventsZods.unsubscribe>;
|
|
@@ -3285,20 +3547,240 @@ declare const textLivechatEventsZods: {
|
|
|
3285
3547
|
sourceName: "apps" | "workflows";
|
|
3286
3548
|
sourceKey: string;
|
|
3287
3549
|
}>, z.ZodObject<{
|
|
3288
|
-
event: z.
|
|
3550
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3551
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
|
|
3552
|
+
}, "strip", z.ZodTypeAny, {
|
|
3553
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3554
|
+
}, {
|
|
3555
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3556
|
+
}>, z.ZodObject<{
|
|
3557
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
|
|
3558
|
+
}, "strip", z.ZodTypeAny, {
|
|
3559
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3560
|
+
}, {
|
|
3561
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3562
|
+
}>, z.ZodObject<{
|
|
3563
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTransferred>;
|
|
3564
|
+
}, "strip", z.ZodTypeAny, {
|
|
3565
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3566
|
+
}, {
|
|
3567
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3568
|
+
}>, z.ZodObject<{
|
|
3569
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTagged>;
|
|
3570
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
3571
|
+
exact: z.ZodOptional<z.ZodBoolean>;
|
|
3572
|
+
}, "strip", z.ZodTypeAny, {
|
|
3573
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3574
|
+
exact?: boolean | undefined;
|
|
3575
|
+
tag?: string | undefined;
|
|
3576
|
+
}, {
|
|
3577
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3578
|
+
exact?: boolean | undefined;
|
|
3579
|
+
tag?: string | undefined;
|
|
3580
|
+
}>, z.ZodObject<{
|
|
3581
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3582
|
+
}, "strip", z.ZodTypeAny, {
|
|
3583
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3584
|
+
}, {
|
|
3585
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3586
|
+
}>, z.ZodObject<{
|
|
3587
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3588
|
+
}, "strip", z.ZodTypeAny, {
|
|
3589
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3590
|
+
}, {
|
|
3591
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3592
|
+
}>, z.ZodObject<{
|
|
3593
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatMessage>;
|
|
3594
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
3595
|
+
}, "strip", z.ZodTypeAny, {
|
|
3596
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3597
|
+
filter?: string | undefined;
|
|
3598
|
+
}, {
|
|
3599
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3600
|
+
filter?: string | undefined;
|
|
3601
|
+
}>, z.ZodObject<{
|
|
3602
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserAddedToChat>;
|
|
3603
|
+
userType: z.ZodOptional<z.ZodEnum<["agent", "customer"]>>;
|
|
3604
|
+
}, "strip", z.ZodTypeAny, {
|
|
3605
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3606
|
+
userType?: "agent" | "customer" | undefined;
|
|
3607
|
+
}, {
|
|
3608
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3609
|
+
userType?: "agent" | "customer" | undefined;
|
|
3610
|
+
}>, z.ZodObject<{
|
|
3611
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserRemovedFromChat>;
|
|
3612
|
+
}, "strip", z.ZodTypeAny, {
|
|
3613
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3614
|
+
}, {
|
|
3615
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3616
|
+
}>]>;
|
|
3289
3617
|
}, "strip", z.ZodTypeAny, {
|
|
3290
|
-
event:
|
|
3618
|
+
event: {
|
|
3619
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3620
|
+
} | {
|
|
3621
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3622
|
+
} | {
|
|
3623
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3624
|
+
} | {
|
|
3625
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3626
|
+
exact?: boolean | undefined;
|
|
3627
|
+
tag?: string | undefined;
|
|
3628
|
+
} | {
|
|
3629
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3630
|
+
} | {
|
|
3631
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3632
|
+
} | {
|
|
3633
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3634
|
+
filter?: string | undefined;
|
|
3635
|
+
} | {
|
|
3636
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3637
|
+
userType?: "agent" | "customer" | undefined;
|
|
3638
|
+
} | {
|
|
3639
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3640
|
+
};
|
|
3291
3641
|
}, {
|
|
3292
|
-
event:
|
|
3642
|
+
event: {
|
|
3643
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3644
|
+
} | {
|
|
3645
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3646
|
+
} | {
|
|
3647
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3648
|
+
} | {
|
|
3649
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3650
|
+
exact?: boolean | undefined;
|
|
3651
|
+
tag?: string | undefined;
|
|
3652
|
+
} | {
|
|
3653
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3654
|
+
} | {
|
|
3655
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3656
|
+
} | {
|
|
3657
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3658
|
+
filter?: string | undefined;
|
|
3659
|
+
} | {
|
|
3660
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3661
|
+
userType?: "agent" | "customer" | undefined;
|
|
3662
|
+
} | {
|
|
3663
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3664
|
+
};
|
|
3293
3665
|
}>>;
|
|
3294
3666
|
readonly unsubscribeContent: z.ZodObject<{
|
|
3295
3667
|
provider: z.ZodLiteral<"text-livechat">;
|
|
3296
|
-
event: z.
|
|
3668
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3669
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
|
|
3670
|
+
}, "strip", z.ZodTypeAny, {
|
|
3671
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3672
|
+
}, {
|
|
3673
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3674
|
+
}>, z.ZodObject<{
|
|
3675
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
|
|
3676
|
+
}, "strip", z.ZodTypeAny, {
|
|
3677
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3678
|
+
}, {
|
|
3679
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3680
|
+
}>, z.ZodObject<{
|
|
3681
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTransferred>;
|
|
3682
|
+
}, "strip", z.ZodTypeAny, {
|
|
3683
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3684
|
+
}, {
|
|
3685
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3686
|
+
}>, z.ZodObject<{
|
|
3687
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTagged>;
|
|
3688
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
3689
|
+
exact: z.ZodOptional<z.ZodBoolean>;
|
|
3690
|
+
}, "strip", z.ZodTypeAny, {
|
|
3691
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3692
|
+
exact?: boolean | undefined;
|
|
3693
|
+
tag?: string | undefined;
|
|
3694
|
+
}, {
|
|
3695
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3696
|
+
exact?: boolean | undefined;
|
|
3697
|
+
tag?: string | undefined;
|
|
3698
|
+
}>, z.ZodObject<{
|
|
3699
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3700
|
+
}, "strip", z.ZodTypeAny, {
|
|
3701
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3702
|
+
}, {
|
|
3703
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3704
|
+
}>, z.ZodObject<{
|
|
3705
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3706
|
+
}, "strip", z.ZodTypeAny, {
|
|
3707
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3708
|
+
}, {
|
|
3709
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3710
|
+
}>, z.ZodObject<{
|
|
3711
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatMessage>;
|
|
3712
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
3713
|
+
}, "strip", z.ZodTypeAny, {
|
|
3714
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3715
|
+
filter?: string | undefined;
|
|
3716
|
+
}, {
|
|
3717
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3718
|
+
filter?: string | undefined;
|
|
3719
|
+
}>, z.ZodObject<{
|
|
3720
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserAddedToChat>;
|
|
3721
|
+
userType: z.ZodOptional<z.ZodEnum<["agent", "customer"]>>;
|
|
3722
|
+
}, "strip", z.ZodTypeAny, {
|
|
3723
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3724
|
+
userType?: "agent" | "customer" | undefined;
|
|
3725
|
+
}, {
|
|
3726
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3727
|
+
userType?: "agent" | "customer" | undefined;
|
|
3728
|
+
}>, z.ZodObject<{
|
|
3729
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserRemovedFromChat>;
|
|
3730
|
+
}, "strip", z.ZodTypeAny, {
|
|
3731
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3732
|
+
}, {
|
|
3733
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3734
|
+
}>]>;
|
|
3297
3735
|
}, "strip", z.ZodTypeAny, {
|
|
3298
|
-
event:
|
|
3736
|
+
event: {
|
|
3737
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3738
|
+
} | {
|
|
3739
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3740
|
+
} | {
|
|
3741
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3742
|
+
} | {
|
|
3743
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3744
|
+
exact?: boolean | undefined;
|
|
3745
|
+
tag?: string | undefined;
|
|
3746
|
+
} | {
|
|
3747
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3748
|
+
} | {
|
|
3749
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3750
|
+
} | {
|
|
3751
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3752
|
+
filter?: string | undefined;
|
|
3753
|
+
} | {
|
|
3754
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3755
|
+
userType?: "agent" | "customer" | undefined;
|
|
3756
|
+
} | {
|
|
3757
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3758
|
+
};
|
|
3299
3759
|
provider: "text-livechat";
|
|
3300
3760
|
}, {
|
|
3301
|
-
event:
|
|
3761
|
+
event: {
|
|
3762
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3763
|
+
} | {
|
|
3764
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3765
|
+
} | {
|
|
3766
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3767
|
+
} | {
|
|
3768
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3769
|
+
exact?: boolean | undefined;
|
|
3770
|
+
tag?: string | undefined;
|
|
3771
|
+
} | {
|
|
3772
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3773
|
+
} | {
|
|
3774
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3775
|
+
} | {
|
|
3776
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3777
|
+
filter?: string | undefined;
|
|
3778
|
+
} | {
|
|
3779
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3780
|
+
userType?: "agent" | "customer" | undefined;
|
|
3781
|
+
} | {
|
|
3782
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3783
|
+
};
|
|
3302
3784
|
provider: "text-livechat";
|
|
3303
3785
|
}>;
|
|
3304
3786
|
};
|
|
@@ -3382,17 +3864,23 @@ declare const integrationEventsZods: {
|
|
|
3382
3864
|
}, {
|
|
3383
3865
|
name: ShopifyEventNames;
|
|
3384
3866
|
}>]>]>, z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3867
|
+
listId: z.ZodString;
|
|
3385
3868
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
3386
3869
|
}, "strip", z.ZodTypeAny, {
|
|
3387
3870
|
name: MailchimpEventNames.Subscribed;
|
|
3871
|
+
listId: string;
|
|
3388
3872
|
}, {
|
|
3389
3873
|
name: MailchimpEventNames.Subscribed;
|
|
3874
|
+
listId: string;
|
|
3390
3875
|
}>, z.ZodObject<{
|
|
3876
|
+
listId: z.ZodString;
|
|
3391
3877
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
3392
3878
|
}, "strip", z.ZodTypeAny, {
|
|
3393
3879
|
name: MailchimpEventNames.Unsubscribed;
|
|
3880
|
+
listId: string;
|
|
3394
3881
|
}, {
|
|
3395
3882
|
name: MailchimpEventNames.Unsubscribed;
|
|
3883
|
+
listId: string;
|
|
3396
3884
|
}>]>]>, z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3397
3885
|
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
3398
3886
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3430,29 +3918,329 @@ declare const integrationEventsZods: {
|
|
|
3430
3918
|
}, {
|
|
3431
3919
|
name: BigCommerceEventNames.OrderUpdated;
|
|
3432
3920
|
}>, z.ZodObject<{
|
|
3433
|
-
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
3921
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
3922
|
+
}, "strip", z.ZodTypeAny, {
|
|
3923
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
3924
|
+
}, {
|
|
3925
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
3926
|
+
}>, z.ZodObject<{
|
|
3927
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
3928
|
+
}, "strip", z.ZodTypeAny, {
|
|
3929
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
3930
|
+
}, {
|
|
3931
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
3932
|
+
}>]>]>;
|
|
3933
|
+
readonly source: z.ZodObject<{
|
|
3934
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3935
|
+
sourceKey: z.ZodString;
|
|
3936
|
+
}, "strip", z.ZodTypeAny, {
|
|
3937
|
+
sourceName: "apps" | "workflows";
|
|
3938
|
+
sourceKey: string;
|
|
3939
|
+
}, {
|
|
3940
|
+
sourceName: "apps" | "workflows";
|
|
3941
|
+
sourceKey: string;
|
|
3942
|
+
}>;
|
|
3943
|
+
readonly subscribe: z.ZodIntersection<z.ZodObject<{
|
|
3944
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3945
|
+
sourceKey: z.ZodString;
|
|
3946
|
+
}, "strip", z.ZodTypeAny, {
|
|
3947
|
+
sourceName: "apps" | "workflows";
|
|
3948
|
+
sourceKey: string;
|
|
3949
|
+
}, {
|
|
3950
|
+
sourceName: "apps" | "workflows";
|
|
3951
|
+
sourceKey: string;
|
|
3952
|
+
}>, z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
3953
|
+
provider: z.ZodLiteral<"text-livechat">;
|
|
3954
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3955
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
|
|
3956
|
+
}, "strip", z.ZodTypeAny, {
|
|
3957
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3958
|
+
}, {
|
|
3959
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3960
|
+
}>, z.ZodObject<{
|
|
3961
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
|
|
3962
|
+
}, "strip", z.ZodTypeAny, {
|
|
3963
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3964
|
+
}, {
|
|
3965
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3966
|
+
}>, z.ZodObject<{
|
|
3967
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTransferred>;
|
|
3968
|
+
}, "strip", z.ZodTypeAny, {
|
|
3969
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3970
|
+
}, {
|
|
3971
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3972
|
+
}>, z.ZodObject<{
|
|
3973
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTagged>;
|
|
3974
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
3975
|
+
exact: z.ZodOptional<z.ZodBoolean>;
|
|
3976
|
+
}, "strip", z.ZodTypeAny, {
|
|
3977
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3978
|
+
exact?: boolean | undefined;
|
|
3979
|
+
tag?: string | undefined;
|
|
3980
|
+
}, {
|
|
3981
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3982
|
+
exact?: boolean | undefined;
|
|
3983
|
+
tag?: string | undefined;
|
|
3984
|
+
}>, z.ZodObject<{
|
|
3985
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3986
|
+
}, "strip", z.ZodTypeAny, {
|
|
3987
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3988
|
+
}, {
|
|
3989
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3990
|
+
}>, z.ZodObject<{
|
|
3991
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3992
|
+
}, "strip", z.ZodTypeAny, {
|
|
3993
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3994
|
+
}, {
|
|
3995
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3996
|
+
}>, z.ZodObject<{
|
|
3997
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatMessage>;
|
|
3998
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
3999
|
+
}, "strip", z.ZodTypeAny, {
|
|
4000
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4001
|
+
filter?: string | undefined;
|
|
4002
|
+
}, {
|
|
4003
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4004
|
+
filter?: string | undefined;
|
|
4005
|
+
}>, z.ZodObject<{
|
|
4006
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserAddedToChat>;
|
|
4007
|
+
userType: z.ZodOptional<z.ZodEnum<["agent", "customer"]>>;
|
|
4008
|
+
}, "strip", z.ZodTypeAny, {
|
|
4009
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4010
|
+
userType?: "agent" | "customer" | undefined;
|
|
4011
|
+
}, {
|
|
4012
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4013
|
+
userType?: "agent" | "customer" | undefined;
|
|
4014
|
+
}>, z.ZodObject<{
|
|
4015
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserRemovedFromChat>;
|
|
4016
|
+
}, "strip", z.ZodTypeAny, {
|
|
4017
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4018
|
+
}, {
|
|
4019
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4020
|
+
}>]>;
|
|
4021
|
+
callback: z.ZodString;
|
|
4022
|
+
}, "strip", z.ZodTypeAny, {
|
|
4023
|
+
event: {
|
|
4024
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4025
|
+
} | {
|
|
4026
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4027
|
+
} | {
|
|
4028
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4029
|
+
} | {
|
|
4030
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4031
|
+
exact?: boolean | undefined;
|
|
4032
|
+
tag?: string | undefined;
|
|
4033
|
+
} | {
|
|
4034
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4035
|
+
} | {
|
|
4036
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4037
|
+
} | {
|
|
4038
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4039
|
+
filter?: string | undefined;
|
|
4040
|
+
} | {
|
|
4041
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4042
|
+
userType?: "agent" | "customer" | undefined;
|
|
4043
|
+
} | {
|
|
4044
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4045
|
+
};
|
|
4046
|
+
callback: string;
|
|
4047
|
+
provider: "text-livechat";
|
|
4048
|
+
}, {
|
|
4049
|
+
event: {
|
|
4050
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4051
|
+
} | {
|
|
4052
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4053
|
+
} | {
|
|
4054
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4055
|
+
} | {
|
|
4056
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4057
|
+
exact?: boolean | undefined;
|
|
4058
|
+
tag?: string | undefined;
|
|
4059
|
+
} | {
|
|
4060
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4061
|
+
} | {
|
|
4062
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4063
|
+
} | {
|
|
4064
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4065
|
+
filter?: string | undefined;
|
|
4066
|
+
} | {
|
|
4067
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4068
|
+
userType?: "agent" | "customer" | undefined;
|
|
4069
|
+
} | {
|
|
4070
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4071
|
+
};
|
|
4072
|
+
callback: string;
|
|
4073
|
+
provider: "text-livechat";
|
|
4074
|
+
}>, z.ZodObject<{
|
|
4075
|
+
provider: z.ZodLiteral<"shopify">;
|
|
4076
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4077
|
+
name: z.ZodLiteral<ShopifyEventNames>;
|
|
4078
|
+
}, "strip", z.ZodTypeAny, {
|
|
4079
|
+
name: ShopifyEventNames;
|
|
4080
|
+
}, {
|
|
4081
|
+
name: ShopifyEventNames;
|
|
4082
|
+
}>]>;
|
|
4083
|
+
callback: z.ZodString;
|
|
4084
|
+
}, "strip", z.ZodTypeAny, {
|
|
4085
|
+
event: {
|
|
4086
|
+
name: ShopifyEventNames;
|
|
4087
|
+
};
|
|
4088
|
+
callback: string;
|
|
4089
|
+
provider: "shopify";
|
|
4090
|
+
}, {
|
|
4091
|
+
event: {
|
|
4092
|
+
name: ShopifyEventNames;
|
|
4093
|
+
};
|
|
4094
|
+
callback: string;
|
|
4095
|
+
provider: "shopify";
|
|
4096
|
+
}>, z.ZodObject<{
|
|
4097
|
+
provider: z.ZodLiteral<"mailchimp">;
|
|
4098
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4099
|
+
listId: z.ZodString;
|
|
4100
|
+
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
4101
|
+
}, "strip", z.ZodTypeAny, {
|
|
4102
|
+
name: MailchimpEventNames.Subscribed;
|
|
4103
|
+
listId: string;
|
|
4104
|
+
}, {
|
|
4105
|
+
name: MailchimpEventNames.Subscribed;
|
|
4106
|
+
listId: string;
|
|
4107
|
+
}>, z.ZodObject<{
|
|
4108
|
+
listId: z.ZodString;
|
|
4109
|
+
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
4110
|
+
}, "strip", z.ZodTypeAny, {
|
|
4111
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4112
|
+
listId: string;
|
|
4113
|
+
}, {
|
|
4114
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4115
|
+
listId: string;
|
|
4116
|
+
}>]>;
|
|
4117
|
+
callback: z.ZodString;
|
|
3434
4118
|
}, "strip", z.ZodTypeAny, {
|
|
3435
|
-
|
|
4119
|
+
event: {
|
|
4120
|
+
name: MailchimpEventNames.Subscribed;
|
|
4121
|
+
listId: string;
|
|
4122
|
+
} | {
|
|
4123
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4124
|
+
listId: string;
|
|
4125
|
+
};
|
|
4126
|
+
callback: string;
|
|
4127
|
+
provider: "mailchimp";
|
|
3436
4128
|
}, {
|
|
3437
|
-
|
|
4129
|
+
event: {
|
|
4130
|
+
name: MailchimpEventNames.Subscribed;
|
|
4131
|
+
listId: string;
|
|
4132
|
+
} | {
|
|
4133
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4134
|
+
listId: string;
|
|
4135
|
+
};
|
|
4136
|
+
callback: string;
|
|
4137
|
+
provider: "mailchimp";
|
|
3438
4138
|
}>, z.ZodObject<{
|
|
3439
|
-
|
|
4139
|
+
provider: z.ZodLiteral<"hubspot">;
|
|
4140
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4141
|
+
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
4142
|
+
}, "strip", z.ZodTypeAny, {
|
|
4143
|
+
name: HubspotEventNames.ContactCreated;
|
|
4144
|
+
}, {
|
|
4145
|
+
name: HubspotEventNames.ContactCreated;
|
|
4146
|
+
}>, z.ZodObject<{
|
|
4147
|
+
name: z.ZodLiteral<HubspotEventNames.ContactDeleted>;
|
|
4148
|
+
}, "strip", z.ZodTypeAny, {
|
|
4149
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4150
|
+
}, {
|
|
4151
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4152
|
+
}>]>;
|
|
4153
|
+
callback: z.ZodString;
|
|
3440
4154
|
}, "strip", z.ZodTypeAny, {
|
|
3441
|
-
|
|
4155
|
+
event: {
|
|
4156
|
+
name: HubspotEventNames.ContactCreated;
|
|
4157
|
+
} | {
|
|
4158
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4159
|
+
};
|
|
4160
|
+
callback: string;
|
|
4161
|
+
provider: "hubspot";
|
|
3442
4162
|
}, {
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
4163
|
+
event: {
|
|
4164
|
+
name: HubspotEventNames.ContactCreated;
|
|
4165
|
+
} | {
|
|
4166
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4167
|
+
};
|
|
4168
|
+
callback: string;
|
|
4169
|
+
provider: "hubspot";
|
|
4170
|
+
}>, z.ZodObject<{
|
|
4171
|
+
provider: z.ZodLiteral<"bigcommerce">;
|
|
4172
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4173
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
4174
|
+
}, "strip", z.ZodTypeAny, {
|
|
4175
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4176
|
+
}, {
|
|
4177
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4178
|
+
}>, z.ZodObject<{
|
|
4179
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
4180
|
+
}, "strip", z.ZodTypeAny, {
|
|
4181
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4182
|
+
}, {
|
|
4183
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4184
|
+
}>, z.ZodObject<{
|
|
4185
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
4186
|
+
}, "strip", z.ZodTypeAny, {
|
|
4187
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4188
|
+
}, {
|
|
4189
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4190
|
+
}>, z.ZodObject<{
|
|
4191
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
4192
|
+
}, "strip", z.ZodTypeAny, {
|
|
4193
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4194
|
+
}, {
|
|
4195
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4196
|
+
}>, z.ZodObject<{
|
|
4197
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
4198
|
+
}, "strip", z.ZodTypeAny, {
|
|
4199
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4200
|
+
}, {
|
|
4201
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4202
|
+
}>, z.ZodObject<{
|
|
4203
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
4204
|
+
}, "strip", z.ZodTypeAny, {
|
|
4205
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4206
|
+
}, {
|
|
4207
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4208
|
+
}>]>;
|
|
4209
|
+
callback: z.ZodString;
|
|
3448
4210
|
}, "strip", z.ZodTypeAny, {
|
|
3449
|
-
|
|
3450
|
-
|
|
4211
|
+
event: {
|
|
4212
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4213
|
+
} | {
|
|
4214
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4215
|
+
} | {
|
|
4216
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4217
|
+
} | {
|
|
4218
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4219
|
+
} | {
|
|
4220
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4221
|
+
} | {
|
|
4222
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4223
|
+
};
|
|
4224
|
+
callback: string;
|
|
4225
|
+
provider: "bigcommerce";
|
|
3451
4226
|
}, {
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
4227
|
+
event: {
|
|
4228
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4229
|
+
} | {
|
|
4230
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4231
|
+
} | {
|
|
4232
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4233
|
+
} | {
|
|
4234
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4235
|
+
} | {
|
|
4236
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4237
|
+
} | {
|
|
4238
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4239
|
+
};
|
|
4240
|
+
callback: string;
|
|
4241
|
+
provider: "bigcommerce";
|
|
4242
|
+
}>]>>;
|
|
4243
|
+
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
3456
4244
|
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3457
4245
|
sourceKey: z.ZodString;
|
|
3458
4246
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3530,7 +4318,6 @@ declare const integrationEventsZods: {
|
|
|
3530
4318
|
}, {
|
|
3531
4319
|
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3532
4320
|
}>]>;
|
|
3533
|
-
callback: z.ZodString;
|
|
3534
4321
|
}, "strip", z.ZodTypeAny, {
|
|
3535
4322
|
event: {
|
|
3536
4323
|
name: TextLivechatEventNames.ChatStarted;
|
|
@@ -3555,7 +4342,6 @@ declare const integrationEventsZods: {
|
|
|
3555
4342
|
} | {
|
|
3556
4343
|
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3557
4344
|
};
|
|
3558
|
-
callback: string;
|
|
3559
4345
|
provider: "text-livechat";
|
|
3560
4346
|
}, {
|
|
3561
4347
|
event: {
|
|
@@ -3581,7 +4367,6 @@ declare const integrationEventsZods: {
|
|
|
3581
4367
|
} | {
|
|
3582
4368
|
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3583
4369
|
};
|
|
3584
|
-
callback: string;
|
|
3585
4370
|
provider: "text-livechat";
|
|
3586
4371
|
}>, z.ZodObject<{
|
|
3587
4372
|
provider: z.ZodLiteral<"shopify">;
|
|
@@ -3592,54 +4377,55 @@ declare const integrationEventsZods: {
|
|
|
3592
4377
|
}, {
|
|
3593
4378
|
name: ShopifyEventNames;
|
|
3594
4379
|
}>]>;
|
|
3595
|
-
callback: z.ZodString;
|
|
3596
4380
|
}, "strip", z.ZodTypeAny, {
|
|
3597
4381
|
event: {
|
|
3598
4382
|
name: ShopifyEventNames;
|
|
3599
4383
|
};
|
|
3600
|
-
callback: string;
|
|
3601
4384
|
provider: "shopify";
|
|
3602
4385
|
}, {
|
|
3603
4386
|
event: {
|
|
3604
4387
|
name: ShopifyEventNames;
|
|
3605
4388
|
};
|
|
3606
|
-
callback: string;
|
|
3607
4389
|
provider: "shopify";
|
|
3608
4390
|
}>, z.ZodObject<{
|
|
3609
4391
|
provider: z.ZodLiteral<"mailchimp">;
|
|
3610
4392
|
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4393
|
+
listId: z.ZodString;
|
|
3611
4394
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
3612
4395
|
}, "strip", z.ZodTypeAny, {
|
|
3613
4396
|
name: MailchimpEventNames.Subscribed;
|
|
4397
|
+
listId: string;
|
|
3614
4398
|
}, {
|
|
3615
4399
|
name: MailchimpEventNames.Subscribed;
|
|
4400
|
+
listId: string;
|
|
3616
4401
|
}>, z.ZodObject<{
|
|
4402
|
+
listId: z.ZodString;
|
|
3617
4403
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
3618
4404
|
}, "strip", z.ZodTypeAny, {
|
|
3619
4405
|
name: MailchimpEventNames.Unsubscribed;
|
|
4406
|
+
listId: string;
|
|
3620
4407
|
}, {
|
|
3621
4408
|
name: MailchimpEventNames.Unsubscribed;
|
|
4409
|
+
listId: string;
|
|
3622
4410
|
}>]>;
|
|
3623
|
-
callback: z.ZodString;
|
|
3624
|
-
listId: z.ZodString;
|
|
3625
4411
|
}, "strip", z.ZodTypeAny, {
|
|
3626
4412
|
event: {
|
|
3627
4413
|
name: MailchimpEventNames.Subscribed;
|
|
4414
|
+
listId: string;
|
|
3628
4415
|
} | {
|
|
3629
4416
|
name: MailchimpEventNames.Unsubscribed;
|
|
4417
|
+
listId: string;
|
|
3630
4418
|
};
|
|
3631
|
-
callback: string;
|
|
3632
4419
|
provider: "mailchimp";
|
|
3633
|
-
listId: string;
|
|
3634
4420
|
}, {
|
|
3635
4421
|
event: {
|
|
3636
4422
|
name: MailchimpEventNames.Subscribed;
|
|
4423
|
+
listId: string;
|
|
3637
4424
|
} | {
|
|
3638
4425
|
name: MailchimpEventNames.Unsubscribed;
|
|
4426
|
+
listId: string;
|
|
3639
4427
|
};
|
|
3640
|
-
callback: string;
|
|
3641
4428
|
provider: "mailchimp";
|
|
3642
|
-
listId: string;
|
|
3643
4429
|
}>, z.ZodObject<{
|
|
3644
4430
|
provider: z.ZodLiteral<"hubspot">;
|
|
3645
4431
|
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
@@ -3655,14 +4441,12 @@ declare const integrationEventsZods: {
|
|
|
3655
4441
|
}, {
|
|
3656
4442
|
name: HubspotEventNames.ContactDeleted;
|
|
3657
4443
|
}>]>;
|
|
3658
|
-
callback: z.ZodString;
|
|
3659
4444
|
}, "strip", z.ZodTypeAny, {
|
|
3660
4445
|
event: {
|
|
3661
4446
|
name: HubspotEventNames.ContactCreated;
|
|
3662
4447
|
} | {
|
|
3663
4448
|
name: HubspotEventNames.ContactDeleted;
|
|
3664
4449
|
};
|
|
3665
|
-
callback: string;
|
|
3666
4450
|
provider: "hubspot";
|
|
3667
4451
|
}, {
|
|
3668
4452
|
event: {
|
|
@@ -3670,7 +4454,6 @@ declare const integrationEventsZods: {
|
|
|
3670
4454
|
} | {
|
|
3671
4455
|
name: HubspotEventNames.ContactDeleted;
|
|
3672
4456
|
};
|
|
3673
|
-
callback: string;
|
|
3674
4457
|
provider: "hubspot";
|
|
3675
4458
|
}>, z.ZodObject<{
|
|
3676
4459
|
provider: z.ZodLiteral<"bigcommerce">;
|
|
@@ -3711,7 +4494,6 @@ declare const integrationEventsZods: {
|
|
|
3711
4494
|
}, {
|
|
3712
4495
|
name: BigCommerceEventNames.ProductUpdated;
|
|
3713
4496
|
}>]>;
|
|
3714
|
-
callback: z.ZodString;
|
|
3715
4497
|
}, "strip", z.ZodTypeAny, {
|
|
3716
4498
|
event: {
|
|
3717
4499
|
name: BigCommerceEventNames.CartCreated;
|
|
@@ -3726,7 +4508,6 @@ declare const integrationEventsZods: {
|
|
|
3726
4508
|
} | {
|
|
3727
4509
|
name: BigCommerceEventNames.ProductUpdated;
|
|
3728
4510
|
};
|
|
3729
|
-
callback: string;
|
|
3730
4511
|
provider: "bigcommerce";
|
|
3731
4512
|
}, {
|
|
3732
4513
|
event: {
|
|
@@ -3742,65 +4523,6 @@ declare const integrationEventsZods: {
|
|
|
3742
4523
|
} | {
|
|
3743
4524
|
name: BigCommerceEventNames.ProductUpdated;
|
|
3744
4525
|
};
|
|
3745
|
-
callback: string;
|
|
3746
|
-
provider: "bigcommerce";
|
|
3747
|
-
}>]>>;
|
|
3748
|
-
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
3749
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3750
|
-
sourceKey: z.ZodString;
|
|
3751
|
-
}, "strip", z.ZodTypeAny, {
|
|
3752
|
-
sourceName: "apps" | "workflows";
|
|
3753
|
-
sourceKey: string;
|
|
3754
|
-
}, {
|
|
3755
|
-
sourceName: "apps" | "workflows";
|
|
3756
|
-
sourceKey: string;
|
|
3757
|
-
}>, z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
3758
|
-
provider: z.ZodLiteral<"text-livechat">;
|
|
3759
|
-
event: z.ZodNativeEnum<typeof TextLivechatEventNames>;
|
|
3760
|
-
}, "strip", z.ZodTypeAny, {
|
|
3761
|
-
event: TextLivechatEventNames;
|
|
3762
|
-
provider: "text-livechat";
|
|
3763
|
-
}, {
|
|
3764
|
-
event: TextLivechatEventNames;
|
|
3765
|
-
provider: "text-livechat";
|
|
3766
|
-
}>, z.ZodObject<{
|
|
3767
|
-
provider: z.ZodLiteral<"shopify">;
|
|
3768
|
-
event: z.ZodNativeEnum<typeof ShopifyEventNames>;
|
|
3769
|
-
}, "strip", z.ZodTypeAny, {
|
|
3770
|
-
event: ShopifyEventNames;
|
|
3771
|
-
provider: "shopify";
|
|
3772
|
-
}, {
|
|
3773
|
-
event: ShopifyEventNames;
|
|
3774
|
-
provider: "shopify";
|
|
3775
|
-
}>, z.ZodObject<{
|
|
3776
|
-
provider: z.ZodLiteral<"mailchimp">;
|
|
3777
|
-
event: z.ZodNativeEnum<typeof MailchimpEventNames>;
|
|
3778
|
-
listId: z.ZodString;
|
|
3779
|
-
}, "strip", z.ZodTypeAny, {
|
|
3780
|
-
event: MailchimpEventNames;
|
|
3781
|
-
provider: "mailchimp";
|
|
3782
|
-
listId: string;
|
|
3783
|
-
}, {
|
|
3784
|
-
event: MailchimpEventNames;
|
|
3785
|
-
provider: "mailchimp";
|
|
3786
|
-
listId: string;
|
|
3787
|
-
}>, z.ZodObject<{
|
|
3788
|
-
provider: z.ZodLiteral<"hubspot">;
|
|
3789
|
-
event: z.ZodNativeEnum<typeof HubspotEventNames>;
|
|
3790
|
-
}, "strip", z.ZodTypeAny, {
|
|
3791
|
-
event: HubspotEventNames;
|
|
3792
|
-
provider: "hubspot";
|
|
3793
|
-
}, {
|
|
3794
|
-
event: HubspotEventNames;
|
|
3795
|
-
provider: "hubspot";
|
|
3796
|
-
}>, z.ZodObject<{
|
|
3797
|
-
provider: z.ZodLiteral<"bigcommerce">;
|
|
3798
|
-
event: z.ZodNativeEnum<typeof BigCommerceEventNames>;
|
|
3799
|
-
}, "strip", z.ZodTypeAny, {
|
|
3800
|
-
event: BigCommerceEventNames;
|
|
3801
|
-
provider: "bigcommerce";
|
|
3802
|
-
}, {
|
|
3803
|
-
event: BigCommerceEventNames;
|
|
3804
4526
|
provider: "bigcommerce";
|
|
3805
4527
|
}>]>>;
|
|
3806
4528
|
};
|
|
@@ -5229,18 +5951,24 @@ declare const api: {
|
|
|
5229
5951
|
} & {
|
|
5230
5952
|
event: {
|
|
5231
5953
|
name: MailchimpEventNames.Subscribed;
|
|
5954
|
+
listId: string;
|
|
5232
5955
|
} | {
|
|
5233
5956
|
name: MailchimpEventNames.Unsubscribed;
|
|
5957
|
+
listId: string;
|
|
5234
5958
|
};
|
|
5235
5959
|
callback: string;
|
|
5236
|
-
listId: string;
|
|
5237
5960
|
}, authorization?: MailchimpClientAuthorization | undefined): Promise<void>;
|
|
5238
5961
|
unsubscribe(payload: {
|
|
5239
5962
|
sourceName: "apps" | "workflows";
|
|
5240
5963
|
sourceKey: string;
|
|
5241
5964
|
} & {
|
|
5242
|
-
event:
|
|
5243
|
-
|
|
5965
|
+
event: {
|
|
5966
|
+
name: MailchimpEventNames.Subscribed;
|
|
5967
|
+
listId: string;
|
|
5968
|
+
} | {
|
|
5969
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
5970
|
+
listId: string;
|
|
5971
|
+
};
|
|
5244
5972
|
}, authorization?: MailchimpClientAuthorization | undefined): Promise<void>;
|
|
5245
5973
|
};
|
|
5246
5974
|
};
|
|
@@ -5259,7 +5987,9 @@ declare const api: {
|
|
|
5259
5987
|
sourceName: "apps" | "workflows";
|
|
5260
5988
|
sourceKey: string;
|
|
5261
5989
|
} & {
|
|
5262
|
-
event:
|
|
5990
|
+
event: {
|
|
5991
|
+
name: ShopifyEventNames;
|
|
5992
|
+
};
|
|
5263
5993
|
}, authorization?: ShopifyClientAuthorization | undefined): Promise<void>;
|
|
5264
5994
|
};
|
|
5265
5995
|
};
|
|
@@ -5280,7 +6010,11 @@ declare const api: {
|
|
|
5280
6010
|
sourceName: "apps" | "workflows";
|
|
5281
6011
|
sourceKey: string;
|
|
5282
6012
|
} & {
|
|
5283
|
-
event:
|
|
6013
|
+
event: {
|
|
6014
|
+
name: HubspotEventNames.ContactCreated;
|
|
6015
|
+
} | {
|
|
6016
|
+
name: HubspotEventNames.ContactDeleted;
|
|
6017
|
+
};
|
|
5284
6018
|
}, authorization?: HubspotClientAuthorization | undefined): Promise<void>;
|
|
5285
6019
|
};
|
|
5286
6020
|
};
|
|
@@ -5309,7 +6043,19 @@ declare const api: {
|
|
|
5309
6043
|
sourceName: "apps" | "workflows";
|
|
5310
6044
|
sourceKey: string;
|
|
5311
6045
|
} & {
|
|
5312
|
-
event:
|
|
6046
|
+
event: {
|
|
6047
|
+
name: BigCommerceEventNames.CartCreated;
|
|
6048
|
+
} | {
|
|
6049
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
6050
|
+
} | {
|
|
6051
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
6052
|
+
} | {
|
|
6053
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
6054
|
+
} | {
|
|
6055
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
6056
|
+
} | {
|
|
6057
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
6058
|
+
};
|
|
5313
6059
|
}, authorization?: BigCommerceClientAuthorization | undefined): Promise<void>;
|
|
5314
6060
|
};
|
|
5315
6061
|
};
|
|
@@ -5348,7 +6094,29 @@ declare const api: {
|
|
|
5348
6094
|
sourceName: "apps" | "workflows";
|
|
5349
6095
|
sourceKey: string;
|
|
5350
6096
|
} & {
|
|
5351
|
-
event:
|
|
6097
|
+
event: {
|
|
6098
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
6099
|
+
} | {
|
|
6100
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
6101
|
+
} | {
|
|
6102
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
6103
|
+
} | {
|
|
6104
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
6105
|
+
exact?: boolean | undefined;
|
|
6106
|
+
tag?: string | undefined;
|
|
6107
|
+
} | {
|
|
6108
|
+
name: TextLivechatEventNames.ChatRated;
|
|
6109
|
+
} | {
|
|
6110
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
6111
|
+
} | {
|
|
6112
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
6113
|
+
filter?: string | undefined;
|
|
6114
|
+
} | {
|
|
6115
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
6116
|
+
userType?: "agent" | "customer" | undefined;
|
|
6117
|
+
} | {
|
|
6118
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
6119
|
+
};
|
|
5352
6120
|
}, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
5353
6121
|
};
|
|
5354
6122
|
};
|
|
@@ -5919,17 +6687,13 @@ declare const api: {
|
|
|
5919
6687
|
workflows: {
|
|
5920
6688
|
getWorkflows(authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowsDto[]>;
|
|
5921
6689
|
getWorkflow(workflowId: string, authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowDto>;
|
|
5922
|
-
createWorkflow(payload: UpsertWorkflowPayload
|
|
5923
|
-
third_party_headers: Record<string, string[]>;
|
|
5924
|
-
}, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
6690
|
+
createWorkflow(payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
5925
6691
|
id: string;
|
|
5926
6692
|
}, any>>;
|
|
5927
|
-
updateWorkflow(workflowId: string, payload: UpsertWorkflowPayload
|
|
5928
|
-
third_party_headers: Record<string, string[]>;
|
|
5929
|
-
}, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
6693
|
+
updateWorkflow(workflowId: string, payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
5930
6694
|
version: number;
|
|
5931
6695
|
}, any>>;
|
|
5932
|
-
deleteWorkflow(workflowId: string,
|
|
6696
|
+
deleteWorkflow(workflowId: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
|
|
5933
6697
|
toggleWorkflowActivation(workflowId: string, isActive: boolean, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
|
|
5934
6698
|
executeWorkflow(workflowId: string, input: unknown, authorization?: PlatformClientAuthorization | undefined): Promise<{
|
|
5935
6699
|
execution_id: string;
|