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