@dmptool/types 1.0.0 → 1.0.2

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 (62) hide show
  1. package/README.md +127 -29
  2. package/dist/answers/__tests__/answers.spec.d.ts +1 -0
  3. package/dist/answers/__tests__/answers.spec.js +127 -0
  4. package/dist/answers/answer.d.ts +25 -0
  5. package/dist/answers/answer.js +13 -0
  6. package/dist/answers/dateAnswers.d.ts +66 -0
  7. package/dist/answers/dateAnswers.js +16 -0
  8. package/dist/answers/graphQLAnswers.d.ts +51 -0
  9. package/dist/answers/graphQLAnswers.js +14 -0
  10. package/dist/answers/index.d.ts +880 -0
  11. package/dist/answers/index.js +48 -0
  12. package/dist/answers/optionBasedAnswers.d.ts +76 -0
  13. package/dist/answers/optionBasedAnswers.js +18 -0
  14. package/dist/answers/primitiveAnswers.d.ts +176 -0
  15. package/dist/answers/primitiveAnswers.js +34 -0
  16. package/dist/answers/tableAnswers.d.ts +876 -0
  17. package/dist/answers/tableAnswers.js +31 -0
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.js +19 -0
  20. package/dist/questions/__tests__/dateQuestions.spec.d.ts +1 -0
  21. package/dist/questions/__tests__/dateQuestions.spec.js +149 -0
  22. package/dist/questions/__tests__/graphQLQuestions.spec.d.ts +1 -0
  23. package/dist/questions/__tests__/graphQLQuestions.spec.js +87 -0
  24. package/dist/questions/__tests__/optionBasedQuestions.spec.d.ts +1 -0
  25. package/dist/questions/__tests__/optionBasedQuestions.spec.js +152 -0
  26. package/dist/questions/__tests__/primitiveQuestions.spec.d.ts +1 -0
  27. package/dist/questions/__tests__/primitiveQuestions.spec.js +189 -0
  28. package/dist/{dateQuestions.js → questions/dateQuestions.js} +3 -3
  29. package/dist/{graphQLQuestions.js → questions/graphQLQuestions.js} +3 -3
  30. package/dist/{tableQuestions.d.ts → questions/index.d.ts} +97 -1650
  31. package/dist/questions/index.js +48 -0
  32. package/dist/{optionBasedQuestions.js → questions/optionBasedQuestions.js} +4 -4
  33. package/dist/{primitiveQuestions.d.ts → questions/primitiveQuestions.d.ts} +0 -27
  34. package/dist/{primitiveQuestions.js → questions/primitiveQuestions.js} +8 -35
  35. package/dist/questions/question.d.ts +29 -0
  36. package/dist/questions/question.js +32 -0
  37. package/dist/questions/tableQuestions.d.ts +2638 -0
  38. package/dist/{tableQuestions.js → questions/tableQuestions.js} +5 -22
  39. package/dist/schemas/anyAnswer.schema.json +195 -59
  40. package/dist/schemas/anyTableColumnAnswer.schema.json +336 -0
  41. package/dist/schemas/anyTableColumnQuestion.schema.json +637 -0
  42. package/dist/schemas/booleanAnswer.schema.json +15 -1
  43. package/dist/schemas/checkboxesAnswer.schema.json +15 -1
  44. package/dist/schemas/currencyAnswer.schema.json +15 -1
  45. package/dist/schemas/datePickerAnswer.schema.json +15 -1
  46. package/dist/schemas/dateRangeAnswer.schema.json +15 -1
  47. package/dist/schemas/emailAnswer.schema.json +15 -1
  48. package/dist/schemas/filteredSearchAnswer.schema.json +15 -1
  49. package/dist/schemas/numberAnswer.schema.json +15 -1
  50. package/dist/schemas/radioButtonsAnswer.schema.json +15 -1
  51. package/dist/schemas/selectBoxAnswer.schema.json +19 -2
  52. package/dist/schemas/tableAnswer.schema.json +91 -18
  53. package/dist/schemas/textAnswer.schema.json +15 -1
  54. package/dist/schemas/textAreaAnswer.schema.json +15 -1
  55. package/dist/schemas/typeaheadSearchAnswer.schema.json +15 -1
  56. package/dist/schemas/urlAnswer.schema.json +15 -1
  57. package/package.json +8 -1
  58. package/dist/answers.d.ts +0 -558
  59. package/dist/answers.js +0 -87
  60. /package/dist/{dateQuestions.d.ts → questions/dateQuestions.d.ts} +0 -0
  61. /package/dist/{graphQLQuestions.d.ts → questions/graphQLQuestions.d.ts} +0 -0
  62. /package/dist/{optionBasedQuestions.d.ts → questions/optionBasedQuestions.d.ts} +0 -0
@@ -0,0 +1,880 @@
1
+ import { z } from 'zod';
2
+ export * from './answer';
3
+ export * from './dateAnswers';
4
+ export * from './graphQLAnswers';
5
+ export * from './optionBasedAnswers';
6
+ export * from './primitiveAnswers';
7
+ export * from './tableAnswers';
8
+ export declare const AnyAnswer: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9
+ meta: z.ZodObject<{
10
+ schemaVersion: z.ZodLiteral<"1.0">;
11
+ }, "strip", z.ZodTypeAny, {
12
+ schemaVersion: "1.0";
13
+ }, {
14
+ schemaVersion: "1.0";
15
+ }>;
16
+ } & {
17
+ type: z.ZodLiteral<"boolean">;
18
+ answer: z.ZodBoolean;
19
+ }, "strip", z.ZodTypeAny, {
20
+ type: "boolean";
21
+ meta: {
22
+ schemaVersion: "1.0";
23
+ };
24
+ answer: boolean;
25
+ }, {
26
+ type: "boolean";
27
+ meta: {
28
+ schemaVersion: "1.0";
29
+ };
30
+ answer: boolean;
31
+ }>, z.ZodObject<{
32
+ meta: z.ZodObject<{
33
+ schemaVersion: z.ZodLiteral<"1.0">;
34
+ }, "strip", z.ZodTypeAny, {
35
+ schemaVersion: "1.0";
36
+ }, {
37
+ schemaVersion: "1.0";
38
+ }>;
39
+ } & {
40
+ type: z.ZodLiteral<"checkBoxes">;
41
+ answer: z.ZodArray<z.ZodString, "many">;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: "checkBoxes";
44
+ meta: {
45
+ schemaVersion: "1.0";
46
+ };
47
+ answer: string[];
48
+ }, {
49
+ type: "checkBoxes";
50
+ meta: {
51
+ schemaVersion: "1.0";
52
+ };
53
+ answer: string[];
54
+ }>, z.ZodObject<{
55
+ meta: z.ZodObject<{
56
+ schemaVersion: z.ZodLiteral<"1.0">;
57
+ }, "strip", z.ZodTypeAny, {
58
+ schemaVersion: "1.0";
59
+ }, {
60
+ schemaVersion: "1.0";
61
+ }>;
62
+ } & {
63
+ type: z.ZodLiteral<"currency">;
64
+ answer: z.ZodNumber;
65
+ }, "strip", z.ZodTypeAny, {
66
+ type: "currency";
67
+ meta: {
68
+ schemaVersion: "1.0";
69
+ };
70
+ answer: number;
71
+ }, {
72
+ type: "currency";
73
+ meta: {
74
+ schemaVersion: "1.0";
75
+ };
76
+ answer: number;
77
+ }>, z.ZodObject<{
78
+ answer: z.ZodString;
79
+ meta: z.ZodObject<{
80
+ schemaVersion: z.ZodLiteral<"1.0">;
81
+ }, "strip", z.ZodTypeAny, {
82
+ schemaVersion: "1.0";
83
+ }, {
84
+ schemaVersion: "1.0";
85
+ }>;
86
+ } & {
87
+ type: z.ZodLiteral<"datePicker">;
88
+ }, "strip", z.ZodTypeAny, {
89
+ type: "datePicker";
90
+ meta: {
91
+ schemaVersion: "1.0";
92
+ };
93
+ answer: string;
94
+ }, {
95
+ type: "datePicker";
96
+ meta: {
97
+ schemaVersion: "1.0";
98
+ };
99
+ answer: string;
100
+ }>, z.ZodObject<{
101
+ meta: z.ZodObject<{
102
+ schemaVersion: z.ZodLiteral<"1.0">;
103
+ }, "strip", z.ZodTypeAny, {
104
+ schemaVersion: "1.0";
105
+ }, {
106
+ schemaVersion: "1.0";
107
+ }>;
108
+ } & {
109
+ type: z.ZodLiteral<"dateRange">;
110
+ answer: z.ZodObject<{
111
+ start: z.ZodString;
112
+ end: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ start: string;
115
+ end: string;
116
+ }, {
117
+ start: string;
118
+ end: string;
119
+ }>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ type: "dateRange";
122
+ meta: {
123
+ schemaVersion: "1.0";
124
+ };
125
+ answer: {
126
+ start: string;
127
+ end: string;
128
+ };
129
+ }, {
130
+ type: "dateRange";
131
+ meta: {
132
+ schemaVersion: "1.0";
133
+ };
134
+ answer: {
135
+ start: string;
136
+ end: string;
137
+ };
138
+ }>, z.ZodObject<{
139
+ meta: z.ZodObject<{
140
+ schemaVersion: z.ZodLiteral<"1.0">;
141
+ }, "strip", z.ZodTypeAny, {
142
+ schemaVersion: "1.0";
143
+ }, {
144
+ schemaVersion: "1.0";
145
+ }>;
146
+ } & {
147
+ type: z.ZodLiteral<"email">;
148
+ answer: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ type: "email";
151
+ meta: {
152
+ schemaVersion: "1.0";
153
+ };
154
+ answer: string;
155
+ }, {
156
+ type: "email";
157
+ meta: {
158
+ schemaVersion: "1.0";
159
+ };
160
+ answer: string;
161
+ }>, z.ZodObject<{
162
+ meta: z.ZodObject<{
163
+ schemaVersion: z.ZodLiteral<"1.0">;
164
+ }, "strip", z.ZodTypeAny, {
165
+ schemaVersion: "1.0";
166
+ }, {
167
+ schemaVersion: "1.0";
168
+ }>;
169
+ } & {
170
+ type: z.ZodLiteral<"filteredSearch">;
171
+ answer: z.ZodArray<z.ZodString, "many">;
172
+ }, "strip", z.ZodTypeAny, {
173
+ type: "filteredSearch";
174
+ meta: {
175
+ schemaVersion: "1.0";
176
+ };
177
+ answer: string[];
178
+ }, {
179
+ type: "filteredSearch";
180
+ meta: {
181
+ schemaVersion: "1.0";
182
+ };
183
+ answer: string[];
184
+ }>, z.ZodObject<{
185
+ meta: z.ZodObject<{
186
+ schemaVersion: z.ZodLiteral<"1.0">;
187
+ }, "strip", z.ZodTypeAny, {
188
+ schemaVersion: "1.0";
189
+ }, {
190
+ schemaVersion: "1.0";
191
+ }>;
192
+ } & {
193
+ type: z.ZodLiteral<"number">;
194
+ answer: z.ZodNumber;
195
+ }, "strip", z.ZodTypeAny, {
196
+ type: "number";
197
+ meta: {
198
+ schemaVersion: "1.0";
199
+ };
200
+ answer: number;
201
+ }, {
202
+ type: "number";
203
+ meta: {
204
+ schemaVersion: "1.0";
205
+ };
206
+ answer: number;
207
+ }>, z.ZodObject<{
208
+ meta: z.ZodObject<{
209
+ schemaVersion: z.ZodLiteral<"1.0">;
210
+ }, "strip", z.ZodTypeAny, {
211
+ schemaVersion: "1.0";
212
+ }, {
213
+ schemaVersion: "1.0";
214
+ }>;
215
+ } & {
216
+ type: z.ZodLiteral<"radioButtons">;
217
+ answer: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ type: "radioButtons";
220
+ meta: {
221
+ schemaVersion: "1.0";
222
+ };
223
+ answer: string;
224
+ }, {
225
+ type: "radioButtons";
226
+ meta: {
227
+ schemaVersion: "1.0";
228
+ };
229
+ answer: string;
230
+ }>, z.ZodObject<{
231
+ meta: z.ZodObject<{
232
+ schemaVersion: z.ZodLiteral<"1.0">;
233
+ }, "strip", z.ZodTypeAny, {
234
+ schemaVersion: "1.0";
235
+ }, {
236
+ schemaVersion: "1.0";
237
+ }>;
238
+ } & {
239
+ type: z.ZodLiteral<"selectBox">;
240
+ answer: z.ZodArray<z.ZodString, "many">;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: "selectBox";
243
+ meta: {
244
+ schemaVersion: "1.0";
245
+ };
246
+ answer: string[];
247
+ }, {
248
+ type: "selectBox";
249
+ meta: {
250
+ schemaVersion: "1.0";
251
+ };
252
+ answer: string[];
253
+ }>, z.ZodObject<{
254
+ meta: z.ZodObject<{
255
+ schemaVersion: z.ZodLiteral<"1.0">;
256
+ }, "strip", z.ZodTypeAny, {
257
+ schemaVersion: "1.0";
258
+ }, {
259
+ schemaVersion: "1.0";
260
+ }>;
261
+ } & {
262
+ type: z.ZodLiteral<"table">;
263
+ answer: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
264
+ meta: z.ZodObject<{
265
+ schemaVersion: z.ZodLiteral<"1.0">;
266
+ }, "strip", z.ZodTypeAny, {
267
+ schemaVersion: "1.0";
268
+ }, {
269
+ schemaVersion: "1.0";
270
+ }>;
271
+ } & {
272
+ type: z.ZodLiteral<"boolean">;
273
+ answer: z.ZodBoolean;
274
+ }, "strip", z.ZodTypeAny, {
275
+ type: "boolean";
276
+ meta: {
277
+ schemaVersion: "1.0";
278
+ };
279
+ answer: boolean;
280
+ }, {
281
+ type: "boolean";
282
+ meta: {
283
+ schemaVersion: "1.0";
284
+ };
285
+ answer: boolean;
286
+ }>, z.ZodObject<{
287
+ meta: z.ZodObject<{
288
+ schemaVersion: z.ZodLiteral<"1.0">;
289
+ }, "strip", z.ZodTypeAny, {
290
+ schemaVersion: "1.0";
291
+ }, {
292
+ schemaVersion: "1.0";
293
+ }>;
294
+ } & {
295
+ type: z.ZodLiteral<"checkBoxes">;
296
+ answer: z.ZodArray<z.ZodString, "many">;
297
+ }, "strip", z.ZodTypeAny, {
298
+ type: "checkBoxes";
299
+ meta: {
300
+ schemaVersion: "1.0";
301
+ };
302
+ answer: string[];
303
+ }, {
304
+ type: "checkBoxes";
305
+ meta: {
306
+ schemaVersion: "1.0";
307
+ };
308
+ answer: string[];
309
+ }>, z.ZodObject<{
310
+ meta: z.ZodObject<{
311
+ schemaVersion: z.ZodLiteral<"1.0">;
312
+ }, "strip", z.ZodTypeAny, {
313
+ schemaVersion: "1.0";
314
+ }, {
315
+ schemaVersion: "1.0";
316
+ }>;
317
+ } & {
318
+ type: z.ZodLiteral<"currency">;
319
+ answer: z.ZodNumber;
320
+ }, "strip", z.ZodTypeAny, {
321
+ type: "currency";
322
+ meta: {
323
+ schemaVersion: "1.0";
324
+ };
325
+ answer: number;
326
+ }, {
327
+ type: "currency";
328
+ meta: {
329
+ schemaVersion: "1.0";
330
+ };
331
+ answer: number;
332
+ }>, z.ZodObject<{
333
+ answer: z.ZodString;
334
+ meta: z.ZodObject<{
335
+ schemaVersion: z.ZodLiteral<"1.0">;
336
+ }, "strip", z.ZodTypeAny, {
337
+ schemaVersion: "1.0";
338
+ }, {
339
+ schemaVersion: "1.0";
340
+ }>;
341
+ } & {
342
+ type: z.ZodLiteral<"datePicker">;
343
+ }, "strip", z.ZodTypeAny, {
344
+ type: "datePicker";
345
+ meta: {
346
+ schemaVersion: "1.0";
347
+ };
348
+ answer: string;
349
+ }, {
350
+ type: "datePicker";
351
+ meta: {
352
+ schemaVersion: "1.0";
353
+ };
354
+ answer: string;
355
+ }>, z.ZodObject<{
356
+ meta: z.ZodObject<{
357
+ schemaVersion: z.ZodLiteral<"1.0">;
358
+ }, "strip", z.ZodTypeAny, {
359
+ schemaVersion: "1.0";
360
+ }, {
361
+ schemaVersion: "1.0";
362
+ }>;
363
+ } & {
364
+ type: z.ZodLiteral<"dateRange">;
365
+ answer: z.ZodObject<{
366
+ start: z.ZodString;
367
+ end: z.ZodString;
368
+ }, "strip", z.ZodTypeAny, {
369
+ start: string;
370
+ end: string;
371
+ }, {
372
+ start: string;
373
+ end: string;
374
+ }>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ type: "dateRange";
377
+ meta: {
378
+ schemaVersion: "1.0";
379
+ };
380
+ answer: {
381
+ start: string;
382
+ end: string;
383
+ };
384
+ }, {
385
+ type: "dateRange";
386
+ meta: {
387
+ schemaVersion: "1.0";
388
+ };
389
+ answer: {
390
+ start: string;
391
+ end: string;
392
+ };
393
+ }>, z.ZodObject<{
394
+ meta: z.ZodObject<{
395
+ schemaVersion: z.ZodLiteral<"1.0">;
396
+ }, "strip", z.ZodTypeAny, {
397
+ schemaVersion: "1.0";
398
+ }, {
399
+ schemaVersion: "1.0";
400
+ }>;
401
+ } & {
402
+ type: z.ZodLiteral<"email">;
403
+ answer: z.ZodString;
404
+ }, "strip", z.ZodTypeAny, {
405
+ type: "email";
406
+ meta: {
407
+ schemaVersion: "1.0";
408
+ };
409
+ answer: string;
410
+ }, {
411
+ type: "email";
412
+ meta: {
413
+ schemaVersion: "1.0";
414
+ };
415
+ answer: string;
416
+ }>, z.ZodObject<{
417
+ meta: z.ZodObject<{
418
+ schemaVersion: z.ZodLiteral<"1.0">;
419
+ }, "strip", z.ZodTypeAny, {
420
+ schemaVersion: "1.0";
421
+ }, {
422
+ schemaVersion: "1.0";
423
+ }>;
424
+ } & {
425
+ type: z.ZodLiteral<"filteredSearch">;
426
+ answer: z.ZodArray<z.ZodString, "many">;
427
+ }, "strip", z.ZodTypeAny, {
428
+ type: "filteredSearch";
429
+ meta: {
430
+ schemaVersion: "1.0";
431
+ };
432
+ answer: string[];
433
+ }, {
434
+ type: "filteredSearch";
435
+ meta: {
436
+ schemaVersion: "1.0";
437
+ };
438
+ answer: string[];
439
+ }>, z.ZodObject<{
440
+ meta: z.ZodObject<{
441
+ schemaVersion: z.ZodLiteral<"1.0">;
442
+ }, "strip", z.ZodTypeAny, {
443
+ schemaVersion: "1.0";
444
+ }, {
445
+ schemaVersion: "1.0";
446
+ }>;
447
+ } & {
448
+ type: z.ZodLiteral<"number">;
449
+ answer: z.ZodNumber;
450
+ }, "strip", z.ZodTypeAny, {
451
+ type: "number";
452
+ meta: {
453
+ schemaVersion: "1.0";
454
+ };
455
+ answer: number;
456
+ }, {
457
+ type: "number";
458
+ meta: {
459
+ schemaVersion: "1.0";
460
+ };
461
+ answer: number;
462
+ }>, z.ZodObject<{
463
+ meta: z.ZodObject<{
464
+ schemaVersion: z.ZodLiteral<"1.0">;
465
+ }, "strip", z.ZodTypeAny, {
466
+ schemaVersion: "1.0";
467
+ }, {
468
+ schemaVersion: "1.0";
469
+ }>;
470
+ } & {
471
+ type: z.ZodLiteral<"radioButtons">;
472
+ answer: z.ZodString;
473
+ }, "strip", z.ZodTypeAny, {
474
+ type: "radioButtons";
475
+ meta: {
476
+ schemaVersion: "1.0";
477
+ };
478
+ answer: string;
479
+ }, {
480
+ type: "radioButtons";
481
+ meta: {
482
+ schemaVersion: "1.0";
483
+ };
484
+ answer: string;
485
+ }>, z.ZodObject<{
486
+ meta: z.ZodObject<{
487
+ schemaVersion: z.ZodLiteral<"1.0">;
488
+ }, "strip", z.ZodTypeAny, {
489
+ schemaVersion: "1.0";
490
+ }, {
491
+ schemaVersion: "1.0";
492
+ }>;
493
+ } & {
494
+ type: z.ZodLiteral<"selectBox">;
495
+ answer: z.ZodArray<z.ZodString, "many">;
496
+ }, "strip", z.ZodTypeAny, {
497
+ type: "selectBox";
498
+ meta: {
499
+ schemaVersion: "1.0";
500
+ };
501
+ answer: string[];
502
+ }, {
503
+ type: "selectBox";
504
+ meta: {
505
+ schemaVersion: "1.0";
506
+ };
507
+ answer: string[];
508
+ }>, z.ZodObject<{
509
+ meta: z.ZodObject<{
510
+ schemaVersion: z.ZodLiteral<"1.0">;
511
+ }, "strip", z.ZodTypeAny, {
512
+ schemaVersion: "1.0";
513
+ }, {
514
+ schemaVersion: "1.0";
515
+ }>;
516
+ } & {
517
+ type: z.ZodLiteral<"text">;
518
+ answer: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ type: "text";
521
+ meta: {
522
+ schemaVersion: "1.0";
523
+ };
524
+ answer: string;
525
+ }, {
526
+ type: "text";
527
+ meta: {
528
+ schemaVersion: "1.0";
529
+ };
530
+ answer: string;
531
+ }>, z.ZodObject<{
532
+ meta: z.ZodObject<{
533
+ schemaVersion: z.ZodLiteral<"1.0">;
534
+ }, "strip", z.ZodTypeAny, {
535
+ schemaVersion: "1.0";
536
+ }, {
537
+ schemaVersion: "1.0";
538
+ }>;
539
+ } & {
540
+ type: z.ZodLiteral<"textArea">;
541
+ answer: z.ZodString;
542
+ }, "strip", z.ZodTypeAny, {
543
+ type: "textArea";
544
+ meta: {
545
+ schemaVersion: "1.0";
546
+ };
547
+ answer: string;
548
+ }, {
549
+ type: "textArea";
550
+ meta: {
551
+ schemaVersion: "1.0";
552
+ };
553
+ answer: string;
554
+ }>, z.ZodObject<{
555
+ meta: z.ZodObject<{
556
+ schemaVersion: z.ZodLiteral<"1.0">;
557
+ }, "strip", z.ZodTypeAny, {
558
+ schemaVersion: "1.0";
559
+ }, {
560
+ schemaVersion: "1.0";
561
+ }>;
562
+ } & {
563
+ type: z.ZodLiteral<"typeaheadSearch">;
564
+ answer: z.ZodString;
565
+ }, "strip", z.ZodTypeAny, {
566
+ type: "typeaheadSearch";
567
+ meta: {
568
+ schemaVersion: "1.0";
569
+ };
570
+ answer: string;
571
+ }, {
572
+ type: "typeaheadSearch";
573
+ meta: {
574
+ schemaVersion: "1.0";
575
+ };
576
+ answer: string;
577
+ }>, z.ZodObject<{
578
+ meta: z.ZodObject<{
579
+ schemaVersion: z.ZodLiteral<"1.0">;
580
+ }, "strip", z.ZodTypeAny, {
581
+ schemaVersion: "1.0";
582
+ }, {
583
+ schemaVersion: "1.0";
584
+ }>;
585
+ } & {
586
+ type: z.ZodLiteral<"url">;
587
+ answer: z.ZodString;
588
+ }, "strip", z.ZodTypeAny, {
589
+ type: "url";
590
+ meta: {
591
+ schemaVersion: "1.0";
592
+ };
593
+ answer: string;
594
+ }, {
595
+ type: "url";
596
+ meta: {
597
+ schemaVersion: "1.0";
598
+ };
599
+ answer: string;
600
+ }>]>, "many">;
601
+ }, "strip", z.ZodTypeAny, {
602
+ type: "table";
603
+ meta: {
604
+ schemaVersion: "1.0";
605
+ };
606
+ answer: ({
607
+ type: "datePicker";
608
+ meta: {
609
+ schemaVersion: "1.0";
610
+ };
611
+ answer: string;
612
+ } | {
613
+ type: "dateRange";
614
+ meta: {
615
+ schemaVersion: "1.0";
616
+ };
617
+ answer: {
618
+ start: string;
619
+ end: string;
620
+ };
621
+ } | {
622
+ type: "filteredSearch";
623
+ meta: {
624
+ schemaVersion: "1.0";
625
+ };
626
+ answer: string[];
627
+ } | {
628
+ type: "typeaheadSearch";
629
+ meta: {
630
+ schemaVersion: "1.0";
631
+ };
632
+ answer: string;
633
+ } | {
634
+ type: "checkBoxes";
635
+ meta: {
636
+ schemaVersion: "1.0";
637
+ };
638
+ answer: string[];
639
+ } | {
640
+ type: "radioButtons";
641
+ meta: {
642
+ schemaVersion: "1.0";
643
+ };
644
+ answer: string;
645
+ } | {
646
+ type: "selectBox";
647
+ meta: {
648
+ schemaVersion: "1.0";
649
+ };
650
+ answer: string[];
651
+ } | {
652
+ type: "boolean";
653
+ meta: {
654
+ schemaVersion: "1.0";
655
+ };
656
+ answer: boolean;
657
+ } | {
658
+ type: "currency";
659
+ meta: {
660
+ schemaVersion: "1.0";
661
+ };
662
+ answer: number;
663
+ } | {
664
+ type: "email";
665
+ meta: {
666
+ schemaVersion: "1.0";
667
+ };
668
+ answer: string;
669
+ } | {
670
+ type: "number";
671
+ meta: {
672
+ schemaVersion: "1.0";
673
+ };
674
+ answer: number;
675
+ } | {
676
+ type: "text";
677
+ meta: {
678
+ schemaVersion: "1.0";
679
+ };
680
+ answer: string;
681
+ } | {
682
+ type: "textArea";
683
+ meta: {
684
+ schemaVersion: "1.0";
685
+ };
686
+ answer: string;
687
+ } | {
688
+ type: "url";
689
+ meta: {
690
+ schemaVersion: "1.0";
691
+ };
692
+ answer: string;
693
+ })[];
694
+ }, {
695
+ type: "table";
696
+ meta: {
697
+ schemaVersion: "1.0";
698
+ };
699
+ answer: ({
700
+ type: "datePicker";
701
+ meta: {
702
+ schemaVersion: "1.0";
703
+ };
704
+ answer: string;
705
+ } | {
706
+ type: "dateRange";
707
+ meta: {
708
+ schemaVersion: "1.0";
709
+ };
710
+ answer: {
711
+ start: string;
712
+ end: string;
713
+ };
714
+ } | {
715
+ type: "filteredSearch";
716
+ meta: {
717
+ schemaVersion: "1.0";
718
+ };
719
+ answer: string[];
720
+ } | {
721
+ type: "typeaheadSearch";
722
+ meta: {
723
+ schemaVersion: "1.0";
724
+ };
725
+ answer: string;
726
+ } | {
727
+ type: "checkBoxes";
728
+ meta: {
729
+ schemaVersion: "1.0";
730
+ };
731
+ answer: string[];
732
+ } | {
733
+ type: "radioButtons";
734
+ meta: {
735
+ schemaVersion: "1.0";
736
+ };
737
+ answer: string;
738
+ } | {
739
+ type: "selectBox";
740
+ meta: {
741
+ schemaVersion: "1.0";
742
+ };
743
+ answer: string[];
744
+ } | {
745
+ type: "boolean";
746
+ meta: {
747
+ schemaVersion: "1.0";
748
+ };
749
+ answer: boolean;
750
+ } | {
751
+ type: "currency";
752
+ meta: {
753
+ schemaVersion: "1.0";
754
+ };
755
+ answer: number;
756
+ } | {
757
+ type: "email";
758
+ meta: {
759
+ schemaVersion: "1.0";
760
+ };
761
+ answer: string;
762
+ } | {
763
+ type: "number";
764
+ meta: {
765
+ schemaVersion: "1.0";
766
+ };
767
+ answer: number;
768
+ } | {
769
+ type: "text";
770
+ meta: {
771
+ schemaVersion: "1.0";
772
+ };
773
+ answer: string;
774
+ } | {
775
+ type: "textArea";
776
+ meta: {
777
+ schemaVersion: "1.0";
778
+ };
779
+ answer: string;
780
+ } | {
781
+ type: "url";
782
+ meta: {
783
+ schemaVersion: "1.0";
784
+ };
785
+ answer: string;
786
+ })[];
787
+ }>, z.ZodObject<{
788
+ meta: z.ZodObject<{
789
+ schemaVersion: z.ZodLiteral<"1.0">;
790
+ }, "strip", z.ZodTypeAny, {
791
+ schemaVersion: "1.0";
792
+ }, {
793
+ schemaVersion: "1.0";
794
+ }>;
795
+ } & {
796
+ type: z.ZodLiteral<"text">;
797
+ answer: z.ZodString;
798
+ }, "strip", z.ZodTypeAny, {
799
+ type: "text";
800
+ meta: {
801
+ schemaVersion: "1.0";
802
+ };
803
+ answer: string;
804
+ }, {
805
+ type: "text";
806
+ meta: {
807
+ schemaVersion: "1.0";
808
+ };
809
+ answer: string;
810
+ }>, z.ZodObject<{
811
+ meta: z.ZodObject<{
812
+ schemaVersion: z.ZodLiteral<"1.0">;
813
+ }, "strip", z.ZodTypeAny, {
814
+ schemaVersion: "1.0";
815
+ }, {
816
+ schemaVersion: "1.0";
817
+ }>;
818
+ } & {
819
+ type: z.ZodLiteral<"textArea">;
820
+ answer: z.ZodString;
821
+ }, "strip", z.ZodTypeAny, {
822
+ type: "textArea";
823
+ meta: {
824
+ schemaVersion: "1.0";
825
+ };
826
+ answer: string;
827
+ }, {
828
+ type: "textArea";
829
+ meta: {
830
+ schemaVersion: "1.0";
831
+ };
832
+ answer: string;
833
+ }>, z.ZodObject<{
834
+ meta: z.ZodObject<{
835
+ schemaVersion: z.ZodLiteral<"1.0">;
836
+ }, "strip", z.ZodTypeAny, {
837
+ schemaVersion: "1.0";
838
+ }, {
839
+ schemaVersion: "1.0";
840
+ }>;
841
+ } & {
842
+ type: z.ZodLiteral<"typeaheadSearch">;
843
+ answer: z.ZodString;
844
+ }, "strip", z.ZodTypeAny, {
845
+ type: "typeaheadSearch";
846
+ meta: {
847
+ schemaVersion: "1.0";
848
+ };
849
+ answer: string;
850
+ }, {
851
+ type: "typeaheadSearch";
852
+ meta: {
853
+ schemaVersion: "1.0";
854
+ };
855
+ answer: string;
856
+ }>, z.ZodObject<{
857
+ meta: z.ZodObject<{
858
+ schemaVersion: z.ZodLiteral<"1.0">;
859
+ }, "strip", z.ZodTypeAny, {
860
+ schemaVersion: "1.0";
861
+ }, {
862
+ schemaVersion: "1.0";
863
+ }>;
864
+ } & {
865
+ type: z.ZodLiteral<"url">;
866
+ answer: z.ZodString;
867
+ }, "strip", z.ZodTypeAny, {
868
+ type: "url";
869
+ meta: {
870
+ schemaVersion: "1.0";
871
+ };
872
+ answer: string;
873
+ }, {
874
+ type: "url";
875
+ meta: {
876
+ schemaVersion: "1.0";
877
+ };
878
+ answer: string;
879
+ }>]>;
880
+ export type AnyAnswerType = z.infer<typeof AnyAnswer>;