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