@awell-health/awell-extensions 1.0.137 → 1.0.138

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.
@@ -0,0 +1,1408 @@
1
+ import { z } from 'zod';
2
+ import { TriggerEvent } from './types';
3
+ export declare const triggerEventSchema: z.ZodNativeEnum<typeof TriggerEvent>;
4
+ export declare const baseWebhookPayloadSchema: z.ZodObject<{
5
+ event: z.ZodNativeEnum<typeof TriggerEvent>;
6
+ created_at: z.ZodString;
7
+ created_by: z.ZodString;
8
+ payload: z.ZodObject<{
9
+ created_at: z.ZodString;
10
+ updated_at: z.ZodString;
11
+ text_reminder_number: z.ZodNullable<z.ZodString>;
12
+ event: z.ZodString;
13
+ scheduled_event: z.ZodObject<{
14
+ start_time: z.ZodString;
15
+ end_time: z.ZodString;
16
+ uri: z.ZodString;
17
+ event_type: z.ZodString;
18
+ event_memberships: z.ZodArray<z.ZodObject<{
19
+ user: z.ZodString;
20
+ user_email: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ user: string;
23
+ user_email: string;
24
+ }, {
25
+ user: string;
26
+ user_email: string;
27
+ }>, "many">;
28
+ location: z.ZodAny;
29
+ name: z.ZodString;
30
+ status: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"canceled">]>;
31
+ invitees_counter: z.ZodObject<{
32
+ total: z.ZodNumber;
33
+ active: z.ZodNumber;
34
+ limit: z.ZodNumber;
35
+ }, "strip", z.ZodTypeAny, {
36
+ total: number;
37
+ active: number;
38
+ limit: number;
39
+ }, {
40
+ total: number;
41
+ active: number;
42
+ limit: number;
43
+ }>;
44
+ created_at: z.ZodString;
45
+ updated_at: z.ZodString;
46
+ event_guests: z.ZodArray<z.ZodObject<{
47
+ email: z.ZodString;
48
+ created_at: z.ZodString;
49
+ updated_at: z.ZodOptional<z.ZodString>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ email: string;
52
+ created_at: string;
53
+ updated_at?: string | undefined;
54
+ }, {
55
+ email: string;
56
+ created_at: string;
57
+ updated_at?: string | undefined;
58
+ }>, "many">;
59
+ }, "strip", z.ZodTypeAny, {
60
+ name: string;
61
+ status: "active" | "canceled";
62
+ created_at: string;
63
+ updated_at: string;
64
+ start_time: string;
65
+ end_time: string;
66
+ uri: string;
67
+ event_type: string;
68
+ event_memberships: {
69
+ user: string;
70
+ user_email: string;
71
+ }[];
72
+ invitees_counter: {
73
+ total: number;
74
+ active: number;
75
+ limit: number;
76
+ };
77
+ event_guests: {
78
+ email: string;
79
+ created_at: string;
80
+ updated_at?: string | undefined;
81
+ }[];
82
+ location?: any;
83
+ }, {
84
+ name: string;
85
+ status: "active" | "canceled";
86
+ created_at: string;
87
+ updated_at: string;
88
+ start_time: string;
89
+ end_time: string;
90
+ uri: string;
91
+ event_type: string;
92
+ event_memberships: {
93
+ user: string;
94
+ user_email: string;
95
+ }[];
96
+ invitees_counter: {
97
+ total: number;
98
+ active: number;
99
+ limit: number;
100
+ };
101
+ event_guests: {
102
+ email: string;
103
+ created_at: string;
104
+ updated_at?: string | undefined;
105
+ }[];
106
+ location?: any;
107
+ }>;
108
+ uri: z.ZodString;
109
+ email: z.ZodString;
110
+ name: z.ZodString;
111
+ status: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"canceled">]>;
112
+ timezone: z.ZodString;
113
+ rescheduled: z.ZodBoolean;
114
+ cancel_url: z.ZodString;
115
+ reschedule_url: z.ZodString;
116
+ new_invitee: z.ZodNullable<z.ZodString>;
117
+ old_invitee: z.ZodNullable<z.ZodString>;
118
+ questions_and_answers: z.ZodArray<z.ZodObject<{
119
+ question: z.ZodString;
120
+ answer: z.ZodString;
121
+ position: z.ZodNumber;
122
+ }, "strip", z.ZodTypeAny, {
123
+ answer: string;
124
+ position: number;
125
+ question: string;
126
+ }, {
127
+ answer: string;
128
+ position: number;
129
+ question: string;
130
+ }>, "many">;
131
+ tracking: z.ZodObject<{
132
+ utm_campaign: z.ZodNullable<z.ZodString>;
133
+ utm_source: z.ZodNullable<z.ZodString>;
134
+ utm_medium: z.ZodNullable<z.ZodString>;
135
+ utm_content: z.ZodNullable<z.ZodString>;
136
+ utm_term: z.ZodNullable<z.ZodString>;
137
+ salesforce_uuid: z.ZodNullable<z.ZodString>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ utm_campaign: string | null;
140
+ utm_source: string | null;
141
+ utm_medium: string | null;
142
+ utm_content: string | null;
143
+ utm_term: string | null;
144
+ salesforce_uuid: string | null;
145
+ }, {
146
+ utm_campaign: string | null;
147
+ utm_source: string | null;
148
+ utm_medium: string | null;
149
+ utm_content: string | null;
150
+ utm_term: string | null;
151
+ salesforce_uuid: string | null;
152
+ }>;
153
+ first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
154
+ last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
155
+ no_show: z.ZodNullable<z.ZodOptional<z.ZodObject<{
156
+ uri: z.ZodString;
157
+ created_at: z.ZodString;
158
+ }, "strip", z.ZodTypeAny, {
159
+ created_at: string;
160
+ uri: string;
161
+ }, {
162
+ created_at: string;
163
+ uri: string;
164
+ }>>>;
165
+ reconfirmation: z.ZodNullable<z.ZodOptional<z.ZodObject<{
166
+ confirmed_at: z.ZodString;
167
+ created_at: z.ZodString;
168
+ }, "strip", z.ZodTypeAny, {
169
+ created_at: string;
170
+ confirmed_at: string;
171
+ }, {
172
+ created_at: string;
173
+ confirmed_at: string;
174
+ }>>>;
175
+ payment: z.ZodOptional<z.ZodNull>;
176
+ invitee_scheduled_by: z.ZodNullable<z.ZodOptional<z.ZodString>>;
177
+ routing_form_submission: z.ZodNullable<z.ZodOptional<z.ZodString>>;
178
+ scheduling_method: z.ZodNullable<z.ZodOptional<z.ZodString>>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ name: string;
181
+ event: string;
182
+ status: "active" | "canceled";
183
+ email: string;
184
+ created_at: string;
185
+ updated_at: string;
186
+ text_reminder_number: string | null;
187
+ scheduled_event: {
188
+ name: string;
189
+ status: "active" | "canceled";
190
+ created_at: string;
191
+ updated_at: string;
192
+ start_time: string;
193
+ end_time: string;
194
+ uri: string;
195
+ event_type: string;
196
+ event_memberships: {
197
+ user: string;
198
+ user_email: string;
199
+ }[];
200
+ invitees_counter: {
201
+ total: number;
202
+ active: number;
203
+ limit: number;
204
+ };
205
+ event_guests: {
206
+ email: string;
207
+ created_at: string;
208
+ updated_at?: string | undefined;
209
+ }[];
210
+ location?: any;
211
+ };
212
+ uri: string;
213
+ timezone: string;
214
+ rescheduled: boolean;
215
+ cancel_url: string;
216
+ reschedule_url: string;
217
+ new_invitee: string | null;
218
+ old_invitee: string | null;
219
+ questions_and_answers: {
220
+ answer: string;
221
+ position: number;
222
+ question: string;
223
+ }[];
224
+ tracking: {
225
+ utm_campaign: string | null;
226
+ utm_source: string | null;
227
+ utm_medium: string | null;
228
+ utm_content: string | null;
229
+ utm_term: string | null;
230
+ salesforce_uuid: string | null;
231
+ };
232
+ first_name?: string | null | undefined;
233
+ last_name?: string | null | undefined;
234
+ no_show?: {
235
+ created_at: string;
236
+ uri: string;
237
+ } | null | undefined;
238
+ reconfirmation?: {
239
+ created_at: string;
240
+ confirmed_at: string;
241
+ } | null | undefined;
242
+ payment?: null | undefined;
243
+ invitee_scheduled_by?: string | null | undefined;
244
+ routing_form_submission?: string | null | undefined;
245
+ scheduling_method?: string | null | undefined;
246
+ }, {
247
+ name: string;
248
+ event: string;
249
+ status: "active" | "canceled";
250
+ email: string;
251
+ created_at: string;
252
+ updated_at: string;
253
+ text_reminder_number: string | null;
254
+ scheduled_event: {
255
+ name: string;
256
+ status: "active" | "canceled";
257
+ created_at: string;
258
+ updated_at: string;
259
+ start_time: string;
260
+ end_time: string;
261
+ uri: string;
262
+ event_type: string;
263
+ event_memberships: {
264
+ user: string;
265
+ user_email: string;
266
+ }[];
267
+ invitees_counter: {
268
+ total: number;
269
+ active: number;
270
+ limit: number;
271
+ };
272
+ event_guests: {
273
+ email: string;
274
+ created_at: string;
275
+ updated_at?: string | undefined;
276
+ }[];
277
+ location?: any;
278
+ };
279
+ uri: string;
280
+ timezone: string;
281
+ rescheduled: boolean;
282
+ cancel_url: string;
283
+ reschedule_url: string;
284
+ new_invitee: string | null;
285
+ old_invitee: string | null;
286
+ questions_and_answers: {
287
+ answer: string;
288
+ position: number;
289
+ question: string;
290
+ }[];
291
+ tracking: {
292
+ utm_campaign: string | null;
293
+ utm_source: string | null;
294
+ utm_medium: string | null;
295
+ utm_content: string | null;
296
+ utm_term: string | null;
297
+ salesforce_uuid: string | null;
298
+ };
299
+ first_name?: string | null | undefined;
300
+ last_name?: string | null | undefined;
301
+ no_show?: {
302
+ created_at: string;
303
+ uri: string;
304
+ } | null | undefined;
305
+ reconfirmation?: {
306
+ created_at: string;
307
+ confirmed_at: string;
308
+ } | null | undefined;
309
+ payment?: null | undefined;
310
+ invitee_scheduled_by?: string | null | undefined;
311
+ routing_form_submission?: string | null | undefined;
312
+ scheduling_method?: string | null | undefined;
313
+ }>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ event: TriggerEvent;
316
+ payload: {
317
+ name: string;
318
+ event: string;
319
+ status: "active" | "canceled";
320
+ email: string;
321
+ created_at: string;
322
+ updated_at: string;
323
+ text_reminder_number: string | null;
324
+ scheduled_event: {
325
+ name: string;
326
+ status: "active" | "canceled";
327
+ created_at: string;
328
+ updated_at: string;
329
+ start_time: string;
330
+ end_time: string;
331
+ uri: string;
332
+ event_type: string;
333
+ event_memberships: {
334
+ user: string;
335
+ user_email: string;
336
+ }[];
337
+ invitees_counter: {
338
+ total: number;
339
+ active: number;
340
+ limit: number;
341
+ };
342
+ event_guests: {
343
+ email: string;
344
+ created_at: string;
345
+ updated_at?: string | undefined;
346
+ }[];
347
+ location?: any;
348
+ };
349
+ uri: string;
350
+ timezone: string;
351
+ rescheduled: boolean;
352
+ cancel_url: string;
353
+ reschedule_url: string;
354
+ new_invitee: string | null;
355
+ old_invitee: string | null;
356
+ questions_and_answers: {
357
+ answer: string;
358
+ position: number;
359
+ question: string;
360
+ }[];
361
+ tracking: {
362
+ utm_campaign: string | null;
363
+ utm_source: string | null;
364
+ utm_medium: string | null;
365
+ utm_content: string | null;
366
+ utm_term: string | null;
367
+ salesforce_uuid: string | null;
368
+ };
369
+ first_name?: string | null | undefined;
370
+ last_name?: string | null | undefined;
371
+ no_show?: {
372
+ created_at: string;
373
+ uri: string;
374
+ } | null | undefined;
375
+ reconfirmation?: {
376
+ created_at: string;
377
+ confirmed_at: string;
378
+ } | null | undefined;
379
+ payment?: null | undefined;
380
+ invitee_scheduled_by?: string | null | undefined;
381
+ routing_form_submission?: string | null | undefined;
382
+ scheduling_method?: string | null | undefined;
383
+ };
384
+ created_at: string;
385
+ created_by: string;
386
+ }, {
387
+ event: TriggerEvent;
388
+ payload: {
389
+ name: string;
390
+ event: string;
391
+ status: "active" | "canceled";
392
+ email: string;
393
+ created_at: string;
394
+ updated_at: string;
395
+ text_reminder_number: string | null;
396
+ scheduled_event: {
397
+ name: string;
398
+ status: "active" | "canceled";
399
+ created_at: string;
400
+ updated_at: string;
401
+ start_time: string;
402
+ end_time: string;
403
+ uri: string;
404
+ event_type: string;
405
+ event_memberships: {
406
+ user: string;
407
+ user_email: string;
408
+ }[];
409
+ invitees_counter: {
410
+ total: number;
411
+ active: number;
412
+ limit: number;
413
+ };
414
+ event_guests: {
415
+ email: string;
416
+ created_at: string;
417
+ updated_at?: string | undefined;
418
+ }[];
419
+ location?: any;
420
+ };
421
+ uri: string;
422
+ timezone: string;
423
+ rescheduled: boolean;
424
+ cancel_url: string;
425
+ reschedule_url: string;
426
+ new_invitee: string | null;
427
+ old_invitee: string | null;
428
+ questions_and_answers: {
429
+ answer: string;
430
+ position: number;
431
+ question: string;
432
+ }[];
433
+ tracking: {
434
+ utm_campaign: string | null;
435
+ utm_source: string | null;
436
+ utm_medium: string | null;
437
+ utm_content: string | null;
438
+ utm_term: string | null;
439
+ salesforce_uuid: string | null;
440
+ };
441
+ first_name?: string | null | undefined;
442
+ last_name?: string | null | undefined;
443
+ no_show?: {
444
+ created_at: string;
445
+ uri: string;
446
+ } | null | undefined;
447
+ reconfirmation?: {
448
+ created_at: string;
449
+ confirmed_at: string;
450
+ } | null | undefined;
451
+ payment?: null | undefined;
452
+ invitee_scheduled_by?: string | null | undefined;
453
+ routing_form_submission?: string | null | undefined;
454
+ scheduling_method?: string | null | undefined;
455
+ };
456
+ created_at: string;
457
+ created_by: string;
458
+ }>;
459
+ export declare const canceledSchema: z.ZodObject<{
460
+ event: z.ZodNativeEnum<typeof TriggerEvent>;
461
+ created_at: z.ZodString;
462
+ created_by: z.ZodString;
463
+ payload: z.ZodObject<{
464
+ name: z.ZodString;
465
+ event: z.ZodString;
466
+ email: z.ZodString;
467
+ first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
468
+ last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
469
+ created_at: z.ZodString;
470
+ updated_at: z.ZodString;
471
+ text_reminder_number: z.ZodNullable<z.ZodString>;
472
+ uri: z.ZodString;
473
+ timezone: z.ZodString;
474
+ rescheduled: z.ZodBoolean;
475
+ cancel_url: z.ZodString;
476
+ reschedule_url: z.ZodString;
477
+ new_invitee: z.ZodNullable<z.ZodString>;
478
+ old_invitee: z.ZodNullable<z.ZodString>;
479
+ questions_and_answers: z.ZodArray<z.ZodObject<{
480
+ question: z.ZodString;
481
+ answer: z.ZodString;
482
+ position: z.ZodNumber;
483
+ }, "strip", z.ZodTypeAny, {
484
+ answer: string;
485
+ position: number;
486
+ question: string;
487
+ }, {
488
+ answer: string;
489
+ position: number;
490
+ question: string;
491
+ }>, "many">;
492
+ tracking: z.ZodObject<{
493
+ utm_campaign: z.ZodNullable<z.ZodString>;
494
+ utm_source: z.ZodNullable<z.ZodString>;
495
+ utm_medium: z.ZodNullable<z.ZodString>;
496
+ utm_content: z.ZodNullable<z.ZodString>;
497
+ utm_term: z.ZodNullable<z.ZodString>;
498
+ salesforce_uuid: z.ZodNullable<z.ZodString>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ utm_campaign: string | null;
501
+ utm_source: string | null;
502
+ utm_medium: string | null;
503
+ utm_content: string | null;
504
+ utm_term: string | null;
505
+ salesforce_uuid: string | null;
506
+ }, {
507
+ utm_campaign: string | null;
508
+ utm_source: string | null;
509
+ utm_medium: string | null;
510
+ utm_content: string | null;
511
+ utm_term: string | null;
512
+ salesforce_uuid: string | null;
513
+ }>;
514
+ no_show: z.ZodNullable<z.ZodOptional<z.ZodObject<{
515
+ uri: z.ZodString;
516
+ created_at: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ created_at: string;
519
+ uri: string;
520
+ }, {
521
+ created_at: string;
522
+ uri: string;
523
+ }>>>;
524
+ reconfirmation: z.ZodNullable<z.ZodOptional<z.ZodObject<{
525
+ confirmed_at: z.ZodString;
526
+ created_at: z.ZodString;
527
+ }, "strip", z.ZodTypeAny, {
528
+ created_at: string;
529
+ confirmed_at: string;
530
+ }, {
531
+ created_at: string;
532
+ confirmed_at: string;
533
+ }>>>;
534
+ payment: z.ZodOptional<z.ZodNull>;
535
+ invitee_scheduled_by: z.ZodNullable<z.ZodOptional<z.ZodString>>;
536
+ routing_form_submission: z.ZodNullable<z.ZodOptional<z.ZodString>>;
537
+ scheduling_method: z.ZodNullable<z.ZodOptional<z.ZodString>>;
538
+ status: z.ZodLiteral<"canceled">;
539
+ scheduled_event: z.ZodObject<{
540
+ location: z.ZodAny;
541
+ name: z.ZodString;
542
+ created_at: z.ZodString;
543
+ updated_at: z.ZodString;
544
+ start_time: z.ZodString;
545
+ end_time: z.ZodString;
546
+ uri: z.ZodString;
547
+ event_type: z.ZodString;
548
+ event_memberships: z.ZodArray<z.ZodObject<{
549
+ user: z.ZodString;
550
+ user_email: z.ZodString;
551
+ }, "strip", z.ZodTypeAny, {
552
+ user: string;
553
+ user_email: string;
554
+ }, {
555
+ user: string;
556
+ user_email: string;
557
+ }>, "many">;
558
+ invitees_counter: z.ZodObject<{
559
+ total: z.ZodNumber;
560
+ active: z.ZodNumber;
561
+ limit: z.ZodNumber;
562
+ }, "strip", z.ZodTypeAny, {
563
+ total: number;
564
+ active: number;
565
+ limit: number;
566
+ }, {
567
+ total: number;
568
+ active: number;
569
+ limit: number;
570
+ }>;
571
+ event_guests: z.ZodArray<z.ZodObject<{
572
+ email: z.ZodString;
573
+ created_at: z.ZodString;
574
+ updated_at: z.ZodOptional<z.ZodString>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ email: string;
577
+ created_at: string;
578
+ updated_at?: string | undefined;
579
+ }, {
580
+ email: string;
581
+ created_at: string;
582
+ updated_at?: string | undefined;
583
+ }>, "many">;
584
+ status: z.ZodLiteral<"canceled">;
585
+ }, "strip", z.ZodTypeAny, {
586
+ name: string;
587
+ status: "canceled";
588
+ created_at: string;
589
+ updated_at: string;
590
+ start_time: string;
591
+ end_time: string;
592
+ uri: string;
593
+ event_type: string;
594
+ event_memberships: {
595
+ user: string;
596
+ user_email: string;
597
+ }[];
598
+ invitees_counter: {
599
+ total: number;
600
+ active: number;
601
+ limit: number;
602
+ };
603
+ event_guests: {
604
+ email: string;
605
+ created_at: string;
606
+ updated_at?: string | undefined;
607
+ }[];
608
+ location?: any;
609
+ }, {
610
+ name: string;
611
+ status: "canceled";
612
+ created_at: string;
613
+ updated_at: string;
614
+ start_time: string;
615
+ end_time: string;
616
+ uri: string;
617
+ event_type: string;
618
+ event_memberships: {
619
+ user: string;
620
+ user_email: string;
621
+ }[];
622
+ invitees_counter: {
623
+ total: number;
624
+ active: number;
625
+ limit: number;
626
+ };
627
+ event_guests: {
628
+ email: string;
629
+ created_at: string;
630
+ updated_at?: string | undefined;
631
+ }[];
632
+ location?: any;
633
+ }>;
634
+ cancellation: z.ZodObject<{
635
+ canceled_by: z.ZodString;
636
+ reason: z.ZodNullable<z.ZodString>;
637
+ canceler_type: z.ZodUnion<[z.ZodLiteral<"invitee">, z.ZodLiteral<"host">]>;
638
+ created_at: z.ZodString;
639
+ }, "strip", z.ZodTypeAny, {
640
+ reason: string | null;
641
+ canceled_by: string;
642
+ canceler_type: "host" | "invitee";
643
+ created_at: string;
644
+ }, {
645
+ reason: string | null;
646
+ canceled_by: string;
647
+ canceler_type: "host" | "invitee";
648
+ created_at: string;
649
+ }>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ name: string;
652
+ event: string;
653
+ status: "canceled";
654
+ email: string;
655
+ created_at: string;
656
+ updated_at: string;
657
+ text_reminder_number: string | null;
658
+ scheduled_event: {
659
+ name: string;
660
+ status: "canceled";
661
+ created_at: string;
662
+ updated_at: string;
663
+ start_time: string;
664
+ end_time: string;
665
+ uri: string;
666
+ event_type: string;
667
+ event_memberships: {
668
+ user: string;
669
+ user_email: string;
670
+ }[];
671
+ invitees_counter: {
672
+ total: number;
673
+ active: number;
674
+ limit: number;
675
+ };
676
+ event_guests: {
677
+ email: string;
678
+ created_at: string;
679
+ updated_at?: string | undefined;
680
+ }[];
681
+ location?: any;
682
+ };
683
+ uri: string;
684
+ timezone: string;
685
+ rescheduled: boolean;
686
+ cancel_url: string;
687
+ reschedule_url: string;
688
+ new_invitee: string | null;
689
+ old_invitee: string | null;
690
+ questions_and_answers: {
691
+ answer: string;
692
+ position: number;
693
+ question: string;
694
+ }[];
695
+ tracking: {
696
+ utm_campaign: string | null;
697
+ utm_source: string | null;
698
+ utm_medium: string | null;
699
+ utm_content: string | null;
700
+ utm_term: string | null;
701
+ salesforce_uuid: string | null;
702
+ };
703
+ cancellation: {
704
+ reason: string | null;
705
+ canceled_by: string;
706
+ canceler_type: "host" | "invitee";
707
+ created_at: string;
708
+ };
709
+ first_name?: string | null | undefined;
710
+ last_name?: string | null | undefined;
711
+ no_show?: {
712
+ created_at: string;
713
+ uri: string;
714
+ } | null | undefined;
715
+ reconfirmation?: {
716
+ created_at: string;
717
+ confirmed_at: string;
718
+ } | null | undefined;
719
+ payment?: null | undefined;
720
+ invitee_scheduled_by?: string | null | undefined;
721
+ routing_form_submission?: string | null | undefined;
722
+ scheduling_method?: string | null | undefined;
723
+ }, {
724
+ name: string;
725
+ event: string;
726
+ status: "canceled";
727
+ email: string;
728
+ created_at: string;
729
+ updated_at: string;
730
+ text_reminder_number: string | null;
731
+ scheduled_event: {
732
+ name: string;
733
+ status: "canceled";
734
+ created_at: string;
735
+ updated_at: string;
736
+ start_time: string;
737
+ end_time: string;
738
+ uri: string;
739
+ event_type: string;
740
+ event_memberships: {
741
+ user: string;
742
+ user_email: string;
743
+ }[];
744
+ invitees_counter: {
745
+ total: number;
746
+ active: number;
747
+ limit: number;
748
+ };
749
+ event_guests: {
750
+ email: string;
751
+ created_at: string;
752
+ updated_at?: string | undefined;
753
+ }[];
754
+ location?: any;
755
+ };
756
+ uri: string;
757
+ timezone: string;
758
+ rescheduled: boolean;
759
+ cancel_url: string;
760
+ reschedule_url: string;
761
+ new_invitee: string | null;
762
+ old_invitee: string | null;
763
+ questions_and_answers: {
764
+ answer: string;
765
+ position: number;
766
+ question: string;
767
+ }[];
768
+ tracking: {
769
+ utm_campaign: string | null;
770
+ utm_source: string | null;
771
+ utm_medium: string | null;
772
+ utm_content: string | null;
773
+ utm_term: string | null;
774
+ salesforce_uuid: string | null;
775
+ };
776
+ cancellation: {
777
+ reason: string | null;
778
+ canceled_by: string;
779
+ canceler_type: "host" | "invitee";
780
+ created_at: string;
781
+ };
782
+ first_name?: string | null | undefined;
783
+ last_name?: string | null | undefined;
784
+ no_show?: {
785
+ created_at: string;
786
+ uri: string;
787
+ } | null | undefined;
788
+ reconfirmation?: {
789
+ created_at: string;
790
+ confirmed_at: string;
791
+ } | null | undefined;
792
+ payment?: null | undefined;
793
+ invitee_scheduled_by?: string | null | undefined;
794
+ routing_form_submission?: string | null | undefined;
795
+ scheduling_method?: string | null | undefined;
796
+ }>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ event: TriggerEvent;
799
+ payload: {
800
+ name: string;
801
+ event: string;
802
+ status: "canceled";
803
+ email: string;
804
+ created_at: string;
805
+ updated_at: string;
806
+ text_reminder_number: string | null;
807
+ scheduled_event: {
808
+ name: string;
809
+ status: "canceled";
810
+ created_at: string;
811
+ updated_at: string;
812
+ start_time: string;
813
+ end_time: string;
814
+ uri: string;
815
+ event_type: string;
816
+ event_memberships: {
817
+ user: string;
818
+ user_email: string;
819
+ }[];
820
+ invitees_counter: {
821
+ total: number;
822
+ active: number;
823
+ limit: number;
824
+ };
825
+ event_guests: {
826
+ email: string;
827
+ created_at: string;
828
+ updated_at?: string | undefined;
829
+ }[];
830
+ location?: any;
831
+ };
832
+ uri: string;
833
+ timezone: string;
834
+ rescheduled: boolean;
835
+ cancel_url: string;
836
+ reschedule_url: string;
837
+ new_invitee: string | null;
838
+ old_invitee: string | null;
839
+ questions_and_answers: {
840
+ answer: string;
841
+ position: number;
842
+ question: string;
843
+ }[];
844
+ tracking: {
845
+ utm_campaign: string | null;
846
+ utm_source: string | null;
847
+ utm_medium: string | null;
848
+ utm_content: string | null;
849
+ utm_term: string | null;
850
+ salesforce_uuid: string | null;
851
+ };
852
+ cancellation: {
853
+ reason: string | null;
854
+ canceled_by: string;
855
+ canceler_type: "host" | "invitee";
856
+ created_at: string;
857
+ };
858
+ first_name?: string | null | undefined;
859
+ last_name?: string | null | undefined;
860
+ no_show?: {
861
+ created_at: string;
862
+ uri: string;
863
+ } | null | undefined;
864
+ reconfirmation?: {
865
+ created_at: string;
866
+ confirmed_at: string;
867
+ } | null | undefined;
868
+ payment?: null | undefined;
869
+ invitee_scheduled_by?: string | null | undefined;
870
+ routing_form_submission?: string | null | undefined;
871
+ scheduling_method?: string | null | undefined;
872
+ };
873
+ created_at: string;
874
+ created_by: string;
875
+ }, {
876
+ event: TriggerEvent;
877
+ payload: {
878
+ name: string;
879
+ event: string;
880
+ status: "canceled";
881
+ email: string;
882
+ created_at: string;
883
+ updated_at: string;
884
+ text_reminder_number: string | null;
885
+ scheduled_event: {
886
+ name: string;
887
+ status: "canceled";
888
+ created_at: string;
889
+ updated_at: string;
890
+ start_time: string;
891
+ end_time: string;
892
+ uri: string;
893
+ event_type: string;
894
+ event_memberships: {
895
+ user: string;
896
+ user_email: string;
897
+ }[];
898
+ invitees_counter: {
899
+ total: number;
900
+ active: number;
901
+ limit: number;
902
+ };
903
+ event_guests: {
904
+ email: string;
905
+ created_at: string;
906
+ updated_at?: string | undefined;
907
+ }[];
908
+ location?: any;
909
+ };
910
+ uri: string;
911
+ timezone: string;
912
+ rescheduled: boolean;
913
+ cancel_url: string;
914
+ reschedule_url: string;
915
+ new_invitee: string | null;
916
+ old_invitee: string | null;
917
+ questions_and_answers: {
918
+ answer: string;
919
+ position: number;
920
+ question: string;
921
+ }[];
922
+ tracking: {
923
+ utm_campaign: string | null;
924
+ utm_source: string | null;
925
+ utm_medium: string | null;
926
+ utm_content: string | null;
927
+ utm_term: string | null;
928
+ salesforce_uuid: string | null;
929
+ };
930
+ cancellation: {
931
+ reason: string | null;
932
+ canceled_by: string;
933
+ canceler_type: "host" | "invitee";
934
+ created_at: string;
935
+ };
936
+ first_name?: string | null | undefined;
937
+ last_name?: string | null | undefined;
938
+ no_show?: {
939
+ created_at: string;
940
+ uri: string;
941
+ } | null | undefined;
942
+ reconfirmation?: {
943
+ created_at: string;
944
+ confirmed_at: string;
945
+ } | null | undefined;
946
+ payment?: null | undefined;
947
+ invitee_scheduled_by?: string | null | undefined;
948
+ routing_form_submission?: string | null | undefined;
949
+ scheduling_method?: string | null | undefined;
950
+ };
951
+ created_at: string;
952
+ created_by: string;
953
+ }>;
954
+ export declare const activeSchema: z.ZodObject<{
955
+ event: z.ZodNativeEnum<typeof TriggerEvent>;
956
+ created_at: z.ZodString;
957
+ created_by: z.ZodString;
958
+ payload: z.ZodObject<{
959
+ name: z.ZodString;
960
+ event: z.ZodString;
961
+ email: z.ZodString;
962
+ first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
963
+ last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
964
+ created_at: z.ZodString;
965
+ updated_at: z.ZodString;
966
+ text_reminder_number: z.ZodNullable<z.ZodString>;
967
+ uri: z.ZodString;
968
+ timezone: z.ZodString;
969
+ rescheduled: z.ZodBoolean;
970
+ cancel_url: z.ZodString;
971
+ reschedule_url: z.ZodString;
972
+ new_invitee: z.ZodNullable<z.ZodString>;
973
+ old_invitee: z.ZodNullable<z.ZodString>;
974
+ questions_and_answers: z.ZodArray<z.ZodObject<{
975
+ question: z.ZodString;
976
+ answer: z.ZodString;
977
+ position: z.ZodNumber;
978
+ }, "strip", z.ZodTypeAny, {
979
+ answer: string;
980
+ position: number;
981
+ question: string;
982
+ }, {
983
+ answer: string;
984
+ position: number;
985
+ question: string;
986
+ }>, "many">;
987
+ tracking: z.ZodObject<{
988
+ utm_campaign: z.ZodNullable<z.ZodString>;
989
+ utm_source: z.ZodNullable<z.ZodString>;
990
+ utm_medium: z.ZodNullable<z.ZodString>;
991
+ utm_content: z.ZodNullable<z.ZodString>;
992
+ utm_term: z.ZodNullable<z.ZodString>;
993
+ salesforce_uuid: z.ZodNullable<z.ZodString>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ utm_campaign: string | null;
996
+ utm_source: string | null;
997
+ utm_medium: string | null;
998
+ utm_content: string | null;
999
+ utm_term: string | null;
1000
+ salesforce_uuid: string | null;
1001
+ }, {
1002
+ utm_campaign: string | null;
1003
+ utm_source: string | null;
1004
+ utm_medium: string | null;
1005
+ utm_content: string | null;
1006
+ utm_term: string | null;
1007
+ salesforce_uuid: string | null;
1008
+ }>;
1009
+ no_show: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1010
+ uri: z.ZodString;
1011
+ created_at: z.ZodString;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ created_at: string;
1014
+ uri: string;
1015
+ }, {
1016
+ created_at: string;
1017
+ uri: string;
1018
+ }>>>;
1019
+ reconfirmation: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1020
+ confirmed_at: z.ZodString;
1021
+ created_at: z.ZodString;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ created_at: string;
1024
+ confirmed_at: string;
1025
+ }, {
1026
+ created_at: string;
1027
+ confirmed_at: string;
1028
+ }>>>;
1029
+ payment: z.ZodOptional<z.ZodNull>;
1030
+ invitee_scheduled_by: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1031
+ routing_form_submission: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1032
+ scheduling_method: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1033
+ status: z.ZodLiteral<"active">;
1034
+ scheduled_event: z.ZodObject<{
1035
+ location: z.ZodAny;
1036
+ name: z.ZodString;
1037
+ created_at: z.ZodString;
1038
+ updated_at: z.ZodString;
1039
+ start_time: z.ZodString;
1040
+ end_time: z.ZodString;
1041
+ uri: z.ZodString;
1042
+ event_type: z.ZodString;
1043
+ event_memberships: z.ZodArray<z.ZodObject<{
1044
+ user: z.ZodString;
1045
+ user_email: z.ZodString;
1046
+ }, "strip", z.ZodTypeAny, {
1047
+ user: string;
1048
+ user_email: string;
1049
+ }, {
1050
+ user: string;
1051
+ user_email: string;
1052
+ }>, "many">;
1053
+ invitees_counter: z.ZodObject<{
1054
+ total: z.ZodNumber;
1055
+ active: z.ZodNumber;
1056
+ limit: z.ZodNumber;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ total: number;
1059
+ active: number;
1060
+ limit: number;
1061
+ }, {
1062
+ total: number;
1063
+ active: number;
1064
+ limit: number;
1065
+ }>;
1066
+ event_guests: z.ZodArray<z.ZodObject<{
1067
+ email: z.ZodString;
1068
+ created_at: z.ZodString;
1069
+ updated_at: z.ZodOptional<z.ZodString>;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ email: string;
1072
+ created_at: string;
1073
+ updated_at?: string | undefined;
1074
+ }, {
1075
+ email: string;
1076
+ created_at: string;
1077
+ updated_at?: string | undefined;
1078
+ }>, "many">;
1079
+ status: z.ZodLiteral<"active">;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ name: string;
1082
+ status: "active";
1083
+ created_at: string;
1084
+ updated_at: string;
1085
+ start_time: string;
1086
+ end_time: string;
1087
+ uri: string;
1088
+ event_type: string;
1089
+ event_memberships: {
1090
+ user: string;
1091
+ user_email: string;
1092
+ }[];
1093
+ invitees_counter: {
1094
+ total: number;
1095
+ active: number;
1096
+ limit: number;
1097
+ };
1098
+ event_guests: {
1099
+ email: string;
1100
+ created_at: string;
1101
+ updated_at?: string | undefined;
1102
+ }[];
1103
+ location?: any;
1104
+ }, {
1105
+ name: string;
1106
+ status: "active";
1107
+ created_at: string;
1108
+ updated_at: string;
1109
+ start_time: string;
1110
+ end_time: string;
1111
+ uri: string;
1112
+ event_type: string;
1113
+ event_memberships: {
1114
+ user: string;
1115
+ user_email: string;
1116
+ }[];
1117
+ invitees_counter: {
1118
+ total: number;
1119
+ active: number;
1120
+ limit: number;
1121
+ };
1122
+ event_guests: {
1123
+ email: string;
1124
+ created_at: string;
1125
+ updated_at?: string | undefined;
1126
+ }[];
1127
+ location?: any;
1128
+ }>;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ name: string;
1131
+ event: string;
1132
+ status: "active";
1133
+ email: string;
1134
+ created_at: string;
1135
+ updated_at: string;
1136
+ text_reminder_number: string | null;
1137
+ scheduled_event: {
1138
+ name: string;
1139
+ status: "active";
1140
+ created_at: string;
1141
+ updated_at: string;
1142
+ start_time: string;
1143
+ end_time: string;
1144
+ uri: string;
1145
+ event_type: string;
1146
+ event_memberships: {
1147
+ user: string;
1148
+ user_email: string;
1149
+ }[];
1150
+ invitees_counter: {
1151
+ total: number;
1152
+ active: number;
1153
+ limit: number;
1154
+ };
1155
+ event_guests: {
1156
+ email: string;
1157
+ created_at: string;
1158
+ updated_at?: string | undefined;
1159
+ }[];
1160
+ location?: any;
1161
+ };
1162
+ uri: string;
1163
+ timezone: string;
1164
+ rescheduled: boolean;
1165
+ cancel_url: string;
1166
+ reschedule_url: string;
1167
+ new_invitee: string | null;
1168
+ old_invitee: string | null;
1169
+ questions_and_answers: {
1170
+ answer: string;
1171
+ position: number;
1172
+ question: string;
1173
+ }[];
1174
+ tracking: {
1175
+ utm_campaign: string | null;
1176
+ utm_source: string | null;
1177
+ utm_medium: string | null;
1178
+ utm_content: string | null;
1179
+ utm_term: string | null;
1180
+ salesforce_uuid: string | null;
1181
+ };
1182
+ first_name?: string | null | undefined;
1183
+ last_name?: string | null | undefined;
1184
+ no_show?: {
1185
+ created_at: string;
1186
+ uri: string;
1187
+ } | null | undefined;
1188
+ reconfirmation?: {
1189
+ created_at: string;
1190
+ confirmed_at: string;
1191
+ } | null | undefined;
1192
+ payment?: null | undefined;
1193
+ invitee_scheduled_by?: string | null | undefined;
1194
+ routing_form_submission?: string | null | undefined;
1195
+ scheduling_method?: string | null | undefined;
1196
+ }, {
1197
+ name: string;
1198
+ event: string;
1199
+ status: "active";
1200
+ email: string;
1201
+ created_at: string;
1202
+ updated_at: string;
1203
+ text_reminder_number: string | null;
1204
+ scheduled_event: {
1205
+ name: string;
1206
+ status: "active";
1207
+ created_at: string;
1208
+ updated_at: string;
1209
+ start_time: string;
1210
+ end_time: string;
1211
+ uri: string;
1212
+ event_type: string;
1213
+ event_memberships: {
1214
+ user: string;
1215
+ user_email: string;
1216
+ }[];
1217
+ invitees_counter: {
1218
+ total: number;
1219
+ active: number;
1220
+ limit: number;
1221
+ };
1222
+ event_guests: {
1223
+ email: string;
1224
+ created_at: string;
1225
+ updated_at?: string | undefined;
1226
+ }[];
1227
+ location?: any;
1228
+ };
1229
+ uri: string;
1230
+ timezone: string;
1231
+ rescheduled: boolean;
1232
+ cancel_url: string;
1233
+ reschedule_url: string;
1234
+ new_invitee: string | null;
1235
+ old_invitee: string | null;
1236
+ questions_and_answers: {
1237
+ answer: string;
1238
+ position: number;
1239
+ question: string;
1240
+ }[];
1241
+ tracking: {
1242
+ utm_campaign: string | null;
1243
+ utm_source: string | null;
1244
+ utm_medium: string | null;
1245
+ utm_content: string | null;
1246
+ utm_term: string | null;
1247
+ salesforce_uuid: string | null;
1248
+ };
1249
+ first_name?: string | null | undefined;
1250
+ last_name?: string | null | undefined;
1251
+ no_show?: {
1252
+ created_at: string;
1253
+ uri: string;
1254
+ } | null | undefined;
1255
+ reconfirmation?: {
1256
+ created_at: string;
1257
+ confirmed_at: string;
1258
+ } | null | undefined;
1259
+ payment?: null | undefined;
1260
+ invitee_scheduled_by?: string | null | undefined;
1261
+ routing_form_submission?: string | null | undefined;
1262
+ scheduling_method?: string | null | undefined;
1263
+ }>;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ event: TriggerEvent;
1266
+ payload: {
1267
+ name: string;
1268
+ event: string;
1269
+ status: "active";
1270
+ email: string;
1271
+ created_at: string;
1272
+ updated_at: string;
1273
+ text_reminder_number: string | null;
1274
+ scheduled_event: {
1275
+ name: string;
1276
+ status: "active";
1277
+ created_at: string;
1278
+ updated_at: string;
1279
+ start_time: string;
1280
+ end_time: string;
1281
+ uri: string;
1282
+ event_type: string;
1283
+ event_memberships: {
1284
+ user: string;
1285
+ user_email: string;
1286
+ }[];
1287
+ invitees_counter: {
1288
+ total: number;
1289
+ active: number;
1290
+ limit: number;
1291
+ };
1292
+ event_guests: {
1293
+ email: string;
1294
+ created_at: string;
1295
+ updated_at?: string | undefined;
1296
+ }[];
1297
+ location?: any;
1298
+ };
1299
+ uri: string;
1300
+ timezone: string;
1301
+ rescheduled: boolean;
1302
+ cancel_url: string;
1303
+ reschedule_url: string;
1304
+ new_invitee: string | null;
1305
+ old_invitee: string | null;
1306
+ questions_and_answers: {
1307
+ answer: string;
1308
+ position: number;
1309
+ question: string;
1310
+ }[];
1311
+ tracking: {
1312
+ utm_campaign: string | null;
1313
+ utm_source: string | null;
1314
+ utm_medium: string | null;
1315
+ utm_content: string | null;
1316
+ utm_term: string | null;
1317
+ salesforce_uuid: string | null;
1318
+ };
1319
+ first_name?: string | null | undefined;
1320
+ last_name?: string | null | undefined;
1321
+ no_show?: {
1322
+ created_at: string;
1323
+ uri: string;
1324
+ } | null | undefined;
1325
+ reconfirmation?: {
1326
+ created_at: string;
1327
+ confirmed_at: string;
1328
+ } | null | undefined;
1329
+ payment?: null | undefined;
1330
+ invitee_scheduled_by?: string | null | undefined;
1331
+ routing_form_submission?: string | null | undefined;
1332
+ scheduling_method?: string | null | undefined;
1333
+ };
1334
+ created_at: string;
1335
+ created_by: string;
1336
+ }, {
1337
+ event: TriggerEvent;
1338
+ payload: {
1339
+ name: string;
1340
+ event: string;
1341
+ status: "active";
1342
+ email: string;
1343
+ created_at: string;
1344
+ updated_at: string;
1345
+ text_reminder_number: string | null;
1346
+ scheduled_event: {
1347
+ name: string;
1348
+ status: "active";
1349
+ created_at: string;
1350
+ updated_at: string;
1351
+ start_time: string;
1352
+ end_time: string;
1353
+ uri: string;
1354
+ event_type: string;
1355
+ event_memberships: {
1356
+ user: string;
1357
+ user_email: string;
1358
+ }[];
1359
+ invitees_counter: {
1360
+ total: number;
1361
+ active: number;
1362
+ limit: number;
1363
+ };
1364
+ event_guests: {
1365
+ email: string;
1366
+ created_at: string;
1367
+ updated_at?: string | undefined;
1368
+ }[];
1369
+ location?: any;
1370
+ };
1371
+ uri: string;
1372
+ timezone: string;
1373
+ rescheduled: boolean;
1374
+ cancel_url: string;
1375
+ reschedule_url: string;
1376
+ new_invitee: string | null;
1377
+ old_invitee: string | null;
1378
+ questions_and_answers: {
1379
+ answer: string;
1380
+ position: number;
1381
+ question: string;
1382
+ }[];
1383
+ tracking: {
1384
+ utm_campaign: string | null;
1385
+ utm_source: string | null;
1386
+ utm_medium: string | null;
1387
+ utm_content: string | null;
1388
+ utm_term: string | null;
1389
+ salesforce_uuid: string | null;
1390
+ };
1391
+ first_name?: string | null | undefined;
1392
+ last_name?: string | null | undefined;
1393
+ no_show?: {
1394
+ created_at: string;
1395
+ uri: string;
1396
+ } | null | undefined;
1397
+ reconfirmation?: {
1398
+ created_at: string;
1399
+ confirmed_at: string;
1400
+ } | null | undefined;
1401
+ payment?: null | undefined;
1402
+ invitee_scheduled_by?: string | null | undefined;
1403
+ routing_form_submission?: string | null | undefined;
1404
+ scheduling_method?: string | null | undefined;
1405
+ };
1406
+ created_at: string;
1407
+ created_by: string;
1408
+ }>;