@nikthegeek/dreamsforlittles-shared 0.10.0 → 0.13.0

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.
Files changed (92) hide show
  1. package/dist/access.d.ts +1849 -332
  2. package/dist/access.js +15 -2
  3. package/dist/access.js.map +1 -1
  4. package/dist/admin.d.ts +549 -39
  5. package/dist/admin.js +3 -0
  6. package/dist/admin.js.map +1 -1
  7. package/dist/allergen-tracking.d.ts +224 -0
  8. package/dist/allergen-tracking.js +62 -0
  9. package/dist/allergen-tracking.js.map +1 -0
  10. package/dist/allergen-tracking.test.d.ts +1 -0
  11. package/dist/allergen-tracking.test.js +36 -0
  12. package/dist/allergen-tracking.test.js.map +1 -0
  13. package/dist/allergy-ladders.d.ts +72 -14
  14. package/dist/allergy-ladders.js +10 -70
  15. package/dist/allergy-ladders.js.map +1 -1
  16. package/dist/analysis.d.ts +159 -2
  17. package/dist/api.d.ts +5 -5
  18. package/dist/booking-forms.d.ts +1057 -0
  19. package/dist/booking-forms.js +206 -0
  20. package/dist/booking-forms.js.map +1 -0
  21. package/dist/booking-system.d.ts +7934 -0
  22. package/dist/booking-system.js +556 -0
  23. package/dist/booking-system.js.map +1 -0
  24. package/dist/booking-system.test.d.ts +1 -0
  25. package/dist/booking-system.test.js +510 -0
  26. package/dist/booking-system.test.js.map +1 -0
  27. package/dist/branding.d.ts +105 -0
  28. package/dist/branding.js +184 -25
  29. package/dist/branding.js.map +1 -1
  30. package/dist/branding.test.js +89 -24
  31. package/dist/branding.test.js.map +1 -1
  32. package/dist/calendar-connections.d.ts +265 -0
  33. package/dist/calendar-connections.js +97 -0
  34. package/dist/calendar-connections.js.map +1 -0
  35. package/dist/calendar-connections.test.d.ts +1 -0
  36. package/dist/calendar-connections.test.js +65 -0
  37. package/dist/calendar-connections.test.js.map +1 -0
  38. package/dist/client-notices.d.ts +79 -79
  39. package/dist/coach-activity-notifications.d.ts +20 -20
  40. package/dist/coach-activity-notifications.js +4 -1
  41. package/dist/coach-activity-notifications.js.map +1 -1
  42. package/dist/coach-activity-notifications.test.js +17 -0
  43. package/dist/coach-activity-notifications.test.js.map +1 -1
  44. package/dist/coach-engagement.d.ts +613 -0
  45. package/dist/coach-engagement.js +123 -0
  46. package/dist/coach-engagement.js.map +1 -0
  47. package/dist/coach-family-chat.d.ts +111 -84
  48. package/dist/coach-family-chat.js +14 -0
  49. package/dist/coach-family-chat.js.map +1 -1
  50. package/dist/coach-family-chat.test.js +27 -1
  51. package/dist/coach-family-chat.test.js.map +1 -1
  52. package/dist/coach-growth.d.ts +20 -20
  53. package/dist/coach.d.ts +2882 -208
  54. package/dist/coach.js +9 -3
  55. package/dist/coach.js.map +1 -1
  56. package/dist/enums.d.ts +1 -1
  57. package/dist/enums.js +7 -1
  58. package/dist/enums.js.map +1 -1
  59. package/dist/errors.d.ts +11 -4
  60. package/dist/errors.js +21 -0
  61. package/dist/errors.js.map +1 -1
  62. package/dist/family-growth.d.ts +24 -24
  63. package/dist/family-invitations.d.ts +92 -0
  64. package/dist/family-profile-artifacts.d.ts +380 -188
  65. package/dist/family-profile-artifacts.js +5 -1
  66. package/dist/family-profile-artifacts.js.map +1 -1
  67. package/dist/family.d.ts +3828 -129
  68. package/dist/family.js +197 -19
  69. package/dist/family.js.map +1 -1
  70. package/dist/family.test.js +180 -2
  71. package/dist/family.test.js.map +1 -1
  72. package/dist/files.d.ts +6 -6
  73. package/dist/index.d.ts +7 -0
  74. package/dist/index.js +7 -0
  75. package/dist/index.js.map +1 -1
  76. package/dist/invites.d.ts +24 -4
  77. package/dist/lead-management.d.ts +1222 -0
  78. package/dist/lead-management.js +210 -0
  79. package/dist/lead-management.js.map +1 -0
  80. package/dist/lead-management.test.d.ts +1 -0
  81. package/dist/lead-management.test.js +68 -0
  82. package/dist/lead-management.test.js.map +1 -0
  83. package/dist/notification-banners.d.ts +12 -12
  84. package/dist/product-analytics.d.ts +190 -190
  85. package/dist/product-analytics.js +31 -1
  86. package/dist/product-analytics.js.map +1 -1
  87. package/dist/push-devices.d.ts +6 -6
  88. package/dist/subscription-cancellation-feedback.d.ts +2 -2
  89. package/dist/zoom-meetings.d.ts +62 -0
  90. package/dist/zoom-meetings.js +24 -0
  91. package/dist/zoom-meetings.js.map +1 -0
  92. package/package.json +1 -1
@@ -0,0 +1,1057 @@
1
+ import { z } from "zod";
2
+ export declare const bookingFormLimits: {
3
+ readonly questions: 10;
4
+ readonly choices: 8;
5
+ readonly label: 120;
6
+ readonly helpText: 240;
7
+ readonly choiceLabel: 80;
8
+ readonly shortAnswer: 200;
9
+ readonly longAnswer: 2000;
10
+ };
11
+ export declare const bookingFormQuestionTypeSchema: z.ZodEnum<["shortText", "longText", "singleChoice", "multipleChoice", "yesNo"]>;
12
+ export declare const bookingFormChoiceSchema: z.ZodObject<{
13
+ id: z.ZodString;
14
+ label: z.ZodString;
15
+ }, "strict", z.ZodTypeAny, {
16
+ id: string;
17
+ label: string;
18
+ }, {
19
+ id: string;
20
+ label: string;
21
+ }>;
22
+ export declare const bookingFormQuestionSchema: z.ZodEffects<z.ZodObject<{
23
+ id: z.ZodString;
24
+ type: z.ZodEnum<["shortText", "longText", "singleChoice", "multipleChoice", "yesNo"]>;
25
+ label: z.ZodString;
26
+ helpText: z.ZodNullable<z.ZodString>;
27
+ required: z.ZodBoolean;
28
+ enabled: z.ZodBoolean;
29
+ choices: z.ZodArray<z.ZodObject<{
30
+ id: z.ZodString;
31
+ label: z.ZodString;
32
+ }, "strict", z.ZodTypeAny, {
33
+ id: string;
34
+ label: string;
35
+ }, {
36
+ id: string;
37
+ label: string;
38
+ }>, "many">;
39
+ }, "strict", z.ZodTypeAny, {
40
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
41
+ id: string;
42
+ enabled: boolean;
43
+ label: string;
44
+ helpText: string | null;
45
+ required: boolean;
46
+ choices: {
47
+ id: string;
48
+ label: string;
49
+ }[];
50
+ }, {
51
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
52
+ id: string;
53
+ enabled: boolean;
54
+ label: string;
55
+ helpText: string | null;
56
+ required: boolean;
57
+ choices: {
58
+ id: string;
59
+ label: string;
60
+ }[];
61
+ }>, {
62
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
63
+ id: string;
64
+ enabled: boolean;
65
+ label: string;
66
+ helpText: string | null;
67
+ required: boolean;
68
+ choices: {
69
+ id: string;
70
+ label: string;
71
+ }[];
72
+ }, {
73
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
74
+ id: string;
75
+ enabled: boolean;
76
+ label: string;
77
+ helpText: string | null;
78
+ required: boolean;
79
+ choices: {
80
+ id: string;
81
+ label: string;
82
+ }[];
83
+ }>;
84
+ export declare const bookingFormQuestionsSchema: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
85
+ id: z.ZodString;
86
+ type: z.ZodEnum<["shortText", "longText", "singleChoice", "multipleChoice", "yesNo"]>;
87
+ label: z.ZodString;
88
+ helpText: z.ZodNullable<z.ZodString>;
89
+ required: z.ZodBoolean;
90
+ enabled: z.ZodBoolean;
91
+ choices: z.ZodArray<z.ZodObject<{
92
+ id: z.ZodString;
93
+ label: z.ZodString;
94
+ }, "strict", z.ZodTypeAny, {
95
+ id: string;
96
+ label: string;
97
+ }, {
98
+ id: string;
99
+ label: string;
100
+ }>, "many">;
101
+ }, "strict", z.ZodTypeAny, {
102
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
103
+ id: string;
104
+ enabled: boolean;
105
+ label: string;
106
+ helpText: string | null;
107
+ required: boolean;
108
+ choices: {
109
+ id: string;
110
+ label: string;
111
+ }[];
112
+ }, {
113
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
114
+ id: string;
115
+ enabled: boolean;
116
+ label: string;
117
+ helpText: string | null;
118
+ required: boolean;
119
+ choices: {
120
+ id: string;
121
+ label: string;
122
+ }[];
123
+ }>, {
124
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
125
+ id: string;
126
+ enabled: boolean;
127
+ label: string;
128
+ helpText: string | null;
129
+ required: boolean;
130
+ choices: {
131
+ id: string;
132
+ label: string;
133
+ }[];
134
+ }, {
135
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
136
+ id: string;
137
+ enabled: boolean;
138
+ label: string;
139
+ helpText: string | null;
140
+ required: boolean;
141
+ choices: {
142
+ id: string;
143
+ label: string;
144
+ }[];
145
+ }>, "many">, {
146
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
147
+ id: string;
148
+ enabled: boolean;
149
+ label: string;
150
+ helpText: string | null;
151
+ required: boolean;
152
+ choices: {
153
+ id: string;
154
+ label: string;
155
+ }[];
156
+ }[], {
157
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
158
+ id: string;
159
+ enabled: boolean;
160
+ label: string;
161
+ helpText: string | null;
162
+ required: boolean;
163
+ choices: {
164
+ id: string;
165
+ label: string;
166
+ }[];
167
+ }[]>;
168
+ export type BookingBuiltInFormField = "childName" | "childAge" | "referralSource";
169
+ export declare const bookingBuiltInFieldForLabel: (label: string) => BookingBuiltInFormField | null;
170
+ export declare const bookingFormQuestionsWriteSchema: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
171
+ id: z.ZodString;
172
+ type: z.ZodEnum<["shortText", "longText", "singleChoice", "multipleChoice", "yesNo"]>;
173
+ label: z.ZodString;
174
+ helpText: z.ZodNullable<z.ZodString>;
175
+ required: z.ZodBoolean;
176
+ enabled: z.ZodBoolean;
177
+ choices: z.ZodArray<z.ZodObject<{
178
+ id: z.ZodString;
179
+ label: z.ZodString;
180
+ }, "strict", z.ZodTypeAny, {
181
+ id: string;
182
+ label: string;
183
+ }, {
184
+ id: string;
185
+ label: string;
186
+ }>, "many">;
187
+ }, "strict", z.ZodTypeAny, {
188
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
189
+ id: string;
190
+ enabled: boolean;
191
+ label: string;
192
+ helpText: string | null;
193
+ required: boolean;
194
+ choices: {
195
+ id: string;
196
+ label: string;
197
+ }[];
198
+ }, {
199
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
200
+ id: string;
201
+ enabled: boolean;
202
+ label: string;
203
+ helpText: string | null;
204
+ required: boolean;
205
+ choices: {
206
+ id: string;
207
+ label: string;
208
+ }[];
209
+ }>, {
210
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
211
+ id: string;
212
+ enabled: boolean;
213
+ label: string;
214
+ helpText: string | null;
215
+ required: boolean;
216
+ choices: {
217
+ id: string;
218
+ label: string;
219
+ }[];
220
+ }, {
221
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
222
+ id: string;
223
+ enabled: boolean;
224
+ label: string;
225
+ helpText: string | null;
226
+ required: boolean;
227
+ choices: {
228
+ id: string;
229
+ label: string;
230
+ }[];
231
+ }>, "many">, {
232
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
233
+ id: string;
234
+ enabled: boolean;
235
+ label: string;
236
+ helpText: string | null;
237
+ required: boolean;
238
+ choices: {
239
+ id: string;
240
+ label: string;
241
+ }[];
242
+ }[], {
243
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
244
+ id: string;
245
+ enabled: boolean;
246
+ label: string;
247
+ helpText: string | null;
248
+ required: boolean;
249
+ choices: {
250
+ id: string;
251
+ label: string;
252
+ }[];
253
+ }[]>, {
254
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
255
+ id: string;
256
+ enabled: boolean;
257
+ label: string;
258
+ helpText: string | null;
259
+ required: boolean;
260
+ choices: {
261
+ id: string;
262
+ label: string;
263
+ }[];
264
+ }[], {
265
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
266
+ id: string;
267
+ enabled: boolean;
268
+ label: string;
269
+ helpText: string | null;
270
+ required: boolean;
271
+ choices: {
272
+ id: string;
273
+ label: string;
274
+ }[];
275
+ }[]>;
276
+ export declare const bookingFormDefinitionSchema: z.ZodObject<{
277
+ revision: z.ZodString;
278
+ questions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
279
+ id: z.ZodString;
280
+ type: z.ZodEnum<["shortText", "longText", "singleChoice", "multipleChoice", "yesNo"]>;
281
+ label: z.ZodString;
282
+ helpText: z.ZodNullable<z.ZodString>;
283
+ required: z.ZodBoolean;
284
+ enabled: z.ZodBoolean;
285
+ choices: z.ZodArray<z.ZodObject<{
286
+ id: z.ZodString;
287
+ label: z.ZodString;
288
+ }, "strict", z.ZodTypeAny, {
289
+ id: string;
290
+ label: string;
291
+ }, {
292
+ id: string;
293
+ label: string;
294
+ }>, "many">;
295
+ }, "strict", z.ZodTypeAny, {
296
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
297
+ id: string;
298
+ enabled: boolean;
299
+ label: string;
300
+ helpText: string | null;
301
+ required: boolean;
302
+ choices: {
303
+ id: string;
304
+ label: string;
305
+ }[];
306
+ }, {
307
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
308
+ id: string;
309
+ enabled: boolean;
310
+ label: string;
311
+ helpText: string | null;
312
+ required: boolean;
313
+ choices: {
314
+ id: string;
315
+ label: string;
316
+ }[];
317
+ }>, {
318
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
319
+ id: string;
320
+ enabled: boolean;
321
+ label: string;
322
+ helpText: string | null;
323
+ required: boolean;
324
+ choices: {
325
+ id: string;
326
+ label: string;
327
+ }[];
328
+ }, {
329
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
330
+ id: string;
331
+ enabled: boolean;
332
+ label: string;
333
+ helpText: string | null;
334
+ required: boolean;
335
+ choices: {
336
+ id: string;
337
+ label: string;
338
+ }[];
339
+ }>, "many">, {
340
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
341
+ id: string;
342
+ enabled: boolean;
343
+ label: string;
344
+ helpText: string | null;
345
+ required: boolean;
346
+ choices: {
347
+ id: string;
348
+ label: string;
349
+ }[];
350
+ }[], {
351
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
352
+ id: string;
353
+ enabled: boolean;
354
+ label: string;
355
+ helpText: string | null;
356
+ required: boolean;
357
+ choices: {
358
+ id: string;
359
+ label: string;
360
+ }[];
361
+ }[]>;
362
+ }, "strict", z.ZodTypeAny, {
363
+ revision: string;
364
+ questions: {
365
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
366
+ id: string;
367
+ enabled: boolean;
368
+ label: string;
369
+ helpText: string | null;
370
+ required: boolean;
371
+ choices: {
372
+ id: string;
373
+ label: string;
374
+ }[];
375
+ }[];
376
+ }, {
377
+ revision: string;
378
+ questions: {
379
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
380
+ id: string;
381
+ enabled: boolean;
382
+ label: string;
383
+ helpText: string | null;
384
+ required: boolean;
385
+ choices: {
386
+ id: string;
387
+ label: string;
388
+ }[];
389
+ }[];
390
+ }>;
391
+ export declare const bookingFormAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
392
+ questionId: z.ZodString;
393
+ } & {
394
+ type: z.ZodLiteral<"shortText">;
395
+ value: z.ZodString;
396
+ }, "strict", z.ZodTypeAny, {
397
+ value: string;
398
+ type: "shortText";
399
+ questionId: string;
400
+ }, {
401
+ value: string;
402
+ type: "shortText";
403
+ questionId: string;
404
+ }>, z.ZodObject<{
405
+ questionId: z.ZodString;
406
+ } & {
407
+ type: z.ZodLiteral<"longText">;
408
+ value: z.ZodString;
409
+ }, "strict", z.ZodTypeAny, {
410
+ value: string;
411
+ type: "longText";
412
+ questionId: string;
413
+ }, {
414
+ value: string;
415
+ type: "longText";
416
+ questionId: string;
417
+ }>, z.ZodObject<{
418
+ questionId: z.ZodString;
419
+ } & {
420
+ type: z.ZodLiteral<"singleChoice">;
421
+ value: z.ZodString;
422
+ }, "strict", z.ZodTypeAny, {
423
+ value: string;
424
+ type: "singleChoice";
425
+ questionId: string;
426
+ }, {
427
+ value: string;
428
+ type: "singleChoice";
429
+ questionId: string;
430
+ }>, z.ZodObject<{
431
+ questionId: z.ZodString;
432
+ } & {
433
+ type: z.ZodLiteral<"multipleChoice">;
434
+ value: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
435
+ }, "strict", z.ZodTypeAny, {
436
+ value: string[];
437
+ type: "multipleChoice";
438
+ questionId: string;
439
+ }, {
440
+ value: string[];
441
+ type: "multipleChoice";
442
+ questionId: string;
443
+ }>, z.ZodObject<{
444
+ questionId: z.ZodString;
445
+ } & {
446
+ type: z.ZodLiteral<"yesNo">;
447
+ value: z.ZodBoolean;
448
+ }, "strict", z.ZodTypeAny, {
449
+ value: boolean;
450
+ type: "yesNo";
451
+ questionId: string;
452
+ }, {
453
+ value: boolean;
454
+ type: "yesNo";
455
+ questionId: string;
456
+ }>]>;
457
+ export declare const bookingFormAnswersSchema: z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
458
+ questionId: z.ZodString;
459
+ } & {
460
+ type: z.ZodLiteral<"shortText">;
461
+ value: z.ZodString;
462
+ }, "strict", z.ZodTypeAny, {
463
+ value: string;
464
+ type: "shortText";
465
+ questionId: string;
466
+ }, {
467
+ value: string;
468
+ type: "shortText";
469
+ questionId: string;
470
+ }>, z.ZodObject<{
471
+ questionId: z.ZodString;
472
+ } & {
473
+ type: z.ZodLiteral<"longText">;
474
+ value: z.ZodString;
475
+ }, "strict", z.ZodTypeAny, {
476
+ value: string;
477
+ type: "longText";
478
+ questionId: string;
479
+ }, {
480
+ value: string;
481
+ type: "longText";
482
+ questionId: string;
483
+ }>, z.ZodObject<{
484
+ questionId: z.ZodString;
485
+ } & {
486
+ type: z.ZodLiteral<"singleChoice">;
487
+ value: z.ZodString;
488
+ }, "strict", z.ZodTypeAny, {
489
+ value: string;
490
+ type: "singleChoice";
491
+ questionId: string;
492
+ }, {
493
+ value: string;
494
+ type: "singleChoice";
495
+ questionId: string;
496
+ }>, z.ZodObject<{
497
+ questionId: z.ZodString;
498
+ } & {
499
+ type: z.ZodLiteral<"multipleChoice">;
500
+ value: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
501
+ }, "strict", z.ZodTypeAny, {
502
+ value: string[];
503
+ type: "multipleChoice";
504
+ questionId: string;
505
+ }, {
506
+ value: string[];
507
+ type: "multipleChoice";
508
+ questionId: string;
509
+ }>, z.ZodObject<{
510
+ questionId: z.ZodString;
511
+ } & {
512
+ type: z.ZodLiteral<"yesNo">;
513
+ value: z.ZodBoolean;
514
+ }, "strict", z.ZodTypeAny, {
515
+ value: boolean;
516
+ type: "yesNo";
517
+ questionId: string;
518
+ }, {
519
+ value: boolean;
520
+ type: "yesNo";
521
+ questionId: string;
522
+ }>]>, "many">, ({
523
+ value: string;
524
+ type: "shortText";
525
+ questionId: string;
526
+ } | {
527
+ value: string;
528
+ type: "longText";
529
+ questionId: string;
530
+ } | {
531
+ value: string;
532
+ type: "singleChoice";
533
+ questionId: string;
534
+ } | {
535
+ value: string[];
536
+ type: "multipleChoice";
537
+ questionId: string;
538
+ } | {
539
+ value: boolean;
540
+ type: "yesNo";
541
+ questionId: string;
542
+ })[], ({
543
+ value: string;
544
+ type: "shortText";
545
+ questionId: string;
546
+ } | {
547
+ value: string;
548
+ type: "longText";
549
+ questionId: string;
550
+ } | {
551
+ value: string;
552
+ type: "singleChoice";
553
+ questionId: string;
554
+ } | {
555
+ value: string[];
556
+ type: "multipleChoice";
557
+ questionId: string;
558
+ } | {
559
+ value: boolean;
560
+ type: "yesNo";
561
+ questionId: string;
562
+ })[]>;
563
+ export declare const bookingFormSubmissionSchema: z.ZodObject<{
564
+ revision: z.ZodString;
565
+ answers: z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
566
+ questionId: z.ZodString;
567
+ } & {
568
+ type: z.ZodLiteral<"shortText">;
569
+ value: z.ZodString;
570
+ }, "strict", z.ZodTypeAny, {
571
+ value: string;
572
+ type: "shortText";
573
+ questionId: string;
574
+ }, {
575
+ value: string;
576
+ type: "shortText";
577
+ questionId: string;
578
+ }>, z.ZodObject<{
579
+ questionId: z.ZodString;
580
+ } & {
581
+ type: z.ZodLiteral<"longText">;
582
+ value: z.ZodString;
583
+ }, "strict", z.ZodTypeAny, {
584
+ value: string;
585
+ type: "longText";
586
+ questionId: string;
587
+ }, {
588
+ value: string;
589
+ type: "longText";
590
+ questionId: string;
591
+ }>, z.ZodObject<{
592
+ questionId: z.ZodString;
593
+ } & {
594
+ type: z.ZodLiteral<"singleChoice">;
595
+ value: z.ZodString;
596
+ }, "strict", z.ZodTypeAny, {
597
+ value: string;
598
+ type: "singleChoice";
599
+ questionId: string;
600
+ }, {
601
+ value: string;
602
+ type: "singleChoice";
603
+ questionId: string;
604
+ }>, z.ZodObject<{
605
+ questionId: z.ZodString;
606
+ } & {
607
+ type: z.ZodLiteral<"multipleChoice">;
608
+ value: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
609
+ }, "strict", z.ZodTypeAny, {
610
+ value: string[];
611
+ type: "multipleChoice";
612
+ questionId: string;
613
+ }, {
614
+ value: string[];
615
+ type: "multipleChoice";
616
+ questionId: string;
617
+ }>, z.ZodObject<{
618
+ questionId: z.ZodString;
619
+ } & {
620
+ type: z.ZodLiteral<"yesNo">;
621
+ value: z.ZodBoolean;
622
+ }, "strict", z.ZodTypeAny, {
623
+ value: boolean;
624
+ type: "yesNo";
625
+ questionId: string;
626
+ }, {
627
+ value: boolean;
628
+ type: "yesNo";
629
+ questionId: string;
630
+ }>]>, "many">, ({
631
+ value: string;
632
+ type: "shortText";
633
+ questionId: string;
634
+ } | {
635
+ value: string;
636
+ type: "longText";
637
+ questionId: string;
638
+ } | {
639
+ value: string;
640
+ type: "singleChoice";
641
+ questionId: string;
642
+ } | {
643
+ value: string[];
644
+ type: "multipleChoice";
645
+ questionId: string;
646
+ } | {
647
+ value: boolean;
648
+ type: "yesNo";
649
+ questionId: string;
650
+ })[], ({
651
+ value: string;
652
+ type: "shortText";
653
+ questionId: string;
654
+ } | {
655
+ value: string;
656
+ type: "longText";
657
+ questionId: string;
658
+ } | {
659
+ value: string;
660
+ type: "singleChoice";
661
+ questionId: string;
662
+ } | {
663
+ value: string[];
664
+ type: "multipleChoice";
665
+ questionId: string;
666
+ } | {
667
+ value: boolean;
668
+ type: "yesNo";
669
+ questionId: string;
670
+ })[]>;
671
+ }, "strict", z.ZodTypeAny, {
672
+ revision: string;
673
+ answers: ({
674
+ value: string;
675
+ type: "shortText";
676
+ questionId: string;
677
+ } | {
678
+ value: string;
679
+ type: "longText";
680
+ questionId: string;
681
+ } | {
682
+ value: string;
683
+ type: "singleChoice";
684
+ questionId: string;
685
+ } | {
686
+ value: string[];
687
+ type: "multipleChoice";
688
+ questionId: string;
689
+ } | {
690
+ value: boolean;
691
+ type: "yesNo";
692
+ questionId: string;
693
+ })[];
694
+ }, {
695
+ revision: string;
696
+ answers: ({
697
+ value: string;
698
+ type: "shortText";
699
+ questionId: string;
700
+ } | {
701
+ value: string;
702
+ type: "longText";
703
+ questionId: string;
704
+ } | {
705
+ value: string;
706
+ type: "singleChoice";
707
+ questionId: string;
708
+ } | {
709
+ value: string[];
710
+ type: "multipleChoice";
711
+ questionId: string;
712
+ } | {
713
+ value: boolean;
714
+ type: "yesNo";
715
+ questionId: string;
716
+ })[];
717
+ }>;
718
+ export declare const bookingFormSnapshotSchema: z.ZodEffects<z.ZodObject<{
719
+ revision: z.ZodString;
720
+ questions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
721
+ id: z.ZodString;
722
+ type: z.ZodEnum<["shortText", "longText", "singleChoice", "multipleChoice", "yesNo"]>;
723
+ label: z.ZodString;
724
+ helpText: z.ZodNullable<z.ZodString>;
725
+ required: z.ZodBoolean;
726
+ enabled: z.ZodBoolean;
727
+ choices: z.ZodArray<z.ZodObject<{
728
+ id: z.ZodString;
729
+ label: z.ZodString;
730
+ }, "strict", z.ZodTypeAny, {
731
+ id: string;
732
+ label: string;
733
+ }, {
734
+ id: string;
735
+ label: string;
736
+ }>, "many">;
737
+ }, "strict", z.ZodTypeAny, {
738
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
739
+ id: string;
740
+ enabled: boolean;
741
+ label: string;
742
+ helpText: string | null;
743
+ required: boolean;
744
+ choices: {
745
+ id: string;
746
+ label: string;
747
+ }[];
748
+ }, {
749
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
750
+ id: string;
751
+ enabled: boolean;
752
+ label: string;
753
+ helpText: string | null;
754
+ required: boolean;
755
+ choices: {
756
+ id: string;
757
+ label: string;
758
+ }[];
759
+ }>, {
760
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
761
+ id: string;
762
+ enabled: boolean;
763
+ label: string;
764
+ helpText: string | null;
765
+ required: boolean;
766
+ choices: {
767
+ id: string;
768
+ label: string;
769
+ }[];
770
+ }, {
771
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
772
+ id: string;
773
+ enabled: boolean;
774
+ label: string;
775
+ helpText: string | null;
776
+ required: boolean;
777
+ choices: {
778
+ id: string;
779
+ label: string;
780
+ }[];
781
+ }>, "many">, {
782
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
783
+ id: string;
784
+ enabled: boolean;
785
+ label: string;
786
+ helpText: string | null;
787
+ required: boolean;
788
+ choices: {
789
+ id: string;
790
+ label: string;
791
+ }[];
792
+ }[], {
793
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
794
+ id: string;
795
+ enabled: boolean;
796
+ label: string;
797
+ helpText: string | null;
798
+ required: boolean;
799
+ choices: {
800
+ id: string;
801
+ label: string;
802
+ }[];
803
+ }[]>;
804
+ answers: z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
805
+ questionId: z.ZodString;
806
+ } & {
807
+ type: z.ZodLiteral<"shortText">;
808
+ value: z.ZodString;
809
+ }, "strict", z.ZodTypeAny, {
810
+ value: string;
811
+ type: "shortText";
812
+ questionId: string;
813
+ }, {
814
+ value: string;
815
+ type: "shortText";
816
+ questionId: string;
817
+ }>, z.ZodObject<{
818
+ questionId: z.ZodString;
819
+ } & {
820
+ type: z.ZodLiteral<"longText">;
821
+ value: z.ZodString;
822
+ }, "strict", z.ZodTypeAny, {
823
+ value: string;
824
+ type: "longText";
825
+ questionId: string;
826
+ }, {
827
+ value: string;
828
+ type: "longText";
829
+ questionId: string;
830
+ }>, z.ZodObject<{
831
+ questionId: z.ZodString;
832
+ } & {
833
+ type: z.ZodLiteral<"singleChoice">;
834
+ value: z.ZodString;
835
+ }, "strict", z.ZodTypeAny, {
836
+ value: string;
837
+ type: "singleChoice";
838
+ questionId: string;
839
+ }, {
840
+ value: string;
841
+ type: "singleChoice";
842
+ questionId: string;
843
+ }>, z.ZodObject<{
844
+ questionId: z.ZodString;
845
+ } & {
846
+ type: z.ZodLiteral<"multipleChoice">;
847
+ value: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
848
+ }, "strict", z.ZodTypeAny, {
849
+ value: string[];
850
+ type: "multipleChoice";
851
+ questionId: string;
852
+ }, {
853
+ value: string[];
854
+ type: "multipleChoice";
855
+ questionId: string;
856
+ }>, z.ZodObject<{
857
+ questionId: z.ZodString;
858
+ } & {
859
+ type: z.ZodLiteral<"yesNo">;
860
+ value: z.ZodBoolean;
861
+ }, "strict", z.ZodTypeAny, {
862
+ value: boolean;
863
+ type: "yesNo";
864
+ questionId: string;
865
+ }, {
866
+ value: boolean;
867
+ type: "yesNo";
868
+ questionId: string;
869
+ }>]>, "many">, ({
870
+ value: string;
871
+ type: "shortText";
872
+ questionId: string;
873
+ } | {
874
+ value: string;
875
+ type: "longText";
876
+ questionId: string;
877
+ } | {
878
+ value: string;
879
+ type: "singleChoice";
880
+ questionId: string;
881
+ } | {
882
+ value: string[];
883
+ type: "multipleChoice";
884
+ questionId: string;
885
+ } | {
886
+ value: boolean;
887
+ type: "yesNo";
888
+ questionId: string;
889
+ })[], ({
890
+ value: string;
891
+ type: "shortText";
892
+ questionId: string;
893
+ } | {
894
+ value: string;
895
+ type: "longText";
896
+ questionId: string;
897
+ } | {
898
+ value: string;
899
+ type: "singleChoice";
900
+ questionId: string;
901
+ } | {
902
+ value: string[];
903
+ type: "multipleChoice";
904
+ questionId: string;
905
+ } | {
906
+ value: boolean;
907
+ type: "yesNo";
908
+ questionId: string;
909
+ })[]>;
910
+ }, "strict", z.ZodTypeAny, {
911
+ revision: string;
912
+ questions: {
913
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
914
+ id: string;
915
+ enabled: boolean;
916
+ label: string;
917
+ helpText: string | null;
918
+ required: boolean;
919
+ choices: {
920
+ id: string;
921
+ label: string;
922
+ }[];
923
+ }[];
924
+ answers: ({
925
+ value: string;
926
+ type: "shortText";
927
+ questionId: string;
928
+ } | {
929
+ value: string;
930
+ type: "longText";
931
+ questionId: string;
932
+ } | {
933
+ value: string;
934
+ type: "singleChoice";
935
+ questionId: string;
936
+ } | {
937
+ value: string[];
938
+ type: "multipleChoice";
939
+ questionId: string;
940
+ } | {
941
+ value: boolean;
942
+ type: "yesNo";
943
+ questionId: string;
944
+ })[];
945
+ }, {
946
+ revision: string;
947
+ questions: {
948
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
949
+ id: string;
950
+ enabled: boolean;
951
+ label: string;
952
+ helpText: string | null;
953
+ required: boolean;
954
+ choices: {
955
+ id: string;
956
+ label: string;
957
+ }[];
958
+ }[];
959
+ answers: ({
960
+ value: string;
961
+ type: "shortText";
962
+ questionId: string;
963
+ } | {
964
+ value: string;
965
+ type: "longText";
966
+ questionId: string;
967
+ } | {
968
+ value: string;
969
+ type: "singleChoice";
970
+ questionId: string;
971
+ } | {
972
+ value: string[];
973
+ type: "multipleChoice";
974
+ questionId: string;
975
+ } | {
976
+ value: boolean;
977
+ type: "yesNo";
978
+ questionId: string;
979
+ })[];
980
+ }>, {
981
+ revision: string;
982
+ questions: {
983
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
984
+ id: string;
985
+ enabled: boolean;
986
+ label: string;
987
+ helpText: string | null;
988
+ required: boolean;
989
+ choices: {
990
+ id: string;
991
+ label: string;
992
+ }[];
993
+ }[];
994
+ answers: ({
995
+ value: string;
996
+ type: "shortText";
997
+ questionId: string;
998
+ } | {
999
+ value: string;
1000
+ type: "longText";
1001
+ questionId: string;
1002
+ } | {
1003
+ value: string;
1004
+ type: "singleChoice";
1005
+ questionId: string;
1006
+ } | {
1007
+ value: string[];
1008
+ type: "multipleChoice";
1009
+ questionId: string;
1010
+ } | {
1011
+ value: boolean;
1012
+ type: "yesNo";
1013
+ questionId: string;
1014
+ })[];
1015
+ }, {
1016
+ revision: string;
1017
+ questions: {
1018
+ type: "shortText" | "longText" | "singleChoice" | "multipleChoice" | "yesNo";
1019
+ id: string;
1020
+ enabled: boolean;
1021
+ label: string;
1022
+ helpText: string | null;
1023
+ required: boolean;
1024
+ choices: {
1025
+ id: string;
1026
+ label: string;
1027
+ }[];
1028
+ }[];
1029
+ answers: ({
1030
+ value: string;
1031
+ type: "shortText";
1032
+ questionId: string;
1033
+ } | {
1034
+ value: string;
1035
+ type: "longText";
1036
+ questionId: string;
1037
+ } | {
1038
+ value: string;
1039
+ type: "singleChoice";
1040
+ questionId: string;
1041
+ } | {
1042
+ value: string[];
1043
+ type: "multipleChoice";
1044
+ questionId: string;
1045
+ } | {
1046
+ value: boolean;
1047
+ type: "yesNo";
1048
+ questionId: string;
1049
+ })[];
1050
+ }>;
1051
+ export type BookingFormQuestionType = z.infer<typeof bookingFormQuestionTypeSchema>;
1052
+ export type BookingFormChoice = z.infer<typeof bookingFormChoiceSchema>;
1053
+ export type BookingFormQuestion = z.infer<typeof bookingFormQuestionSchema>;
1054
+ export type BookingFormDefinition = z.infer<typeof bookingFormDefinitionSchema>;
1055
+ export type BookingFormAnswer = z.infer<typeof bookingFormAnswerSchema>;
1056
+ export type BookingFormSubmission = z.infer<typeof bookingFormSubmissionSchema>;
1057
+ export type BookingFormSnapshot = z.infer<typeof bookingFormSnapshotSchema>;