@dmptool/types 1.0.0 → 1.0.1

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 (47) hide show
  1. package/README.md +33 -2
  2. package/dist/answers/__tests__/answers.spec.d.ts +1 -0
  3. package/dist/answers/__tests__/answers.spec.js +122 -0
  4. package/dist/answers/answer.d.ts +12 -0
  5. package/dist/answers/answer.js +10 -0
  6. package/dist/answers/dateAnswers.d.ts +39 -0
  7. package/dist/answers/dateAnswers.js +16 -0
  8. package/dist/answers/graphQLAnswers.d.ts +23 -0
  9. package/dist/answers/graphQLAnswers.js +14 -0
  10. package/dist/{answers.d.ts → answers/index.d.ts} +102 -268
  11. package/dist/answers/index.js +48 -0
  12. package/dist/answers/optionBasedAnswers.d.ts +34 -0
  13. package/dist/answers/optionBasedAnswers.js +18 -0
  14. package/dist/answers/primitiveAnswers.d.ts +78 -0
  15. package/dist/answers/primitiveAnswers.js +34 -0
  16. package/dist/answers/tableAnswers.d.ts +388 -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 +110 -47
  40. package/dist/schemas/anyTableColumnAnswer.schema.json +267 -0
  41. package/dist/schemas/anyTableColumnQuestion.schema.json +637 -0
  42. package/dist/schemas/tableAnswer.schema.json +2 -2
  43. package/package.json +8 -1
  44. package/dist/answers.js +0 -87
  45. /package/dist/{dateQuestions.d.ts → questions/dateQuestions.d.ts} +0 -0
  46. /package/dist/{graphQLQuestions.d.ts → questions/graphQLQuestions.d.ts} +0 -0
  47. /package/dist/{optionBasedQuestions.d.ts → questions/optionBasedQuestions.d.ts} +0 -0
@@ -0,0 +1,2638 @@
1
+ import { z } from "zod";
2
+ export declare const AnyTableColumnQuestion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ meta: z.ZodObject<{
4
+ schemaVersion: z.ZodLiteral<"1.0">;
5
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ schemaVersion: "1.0";
8
+ labelTranslationKey?: string | undefined;
9
+ }, {
10
+ schemaVersion: "1.0";
11
+ labelTranslationKey?: string | undefined;
12
+ }>;
13
+ } & {
14
+ type: z.ZodLiteral<"boolean">;
15
+ attributes: z.ZodObject<{
16
+ checked: z.ZodOptional<z.ZodBoolean>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ checked?: boolean | undefined;
19
+ }, {
20
+ checked?: boolean | undefined;
21
+ }>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ type: "boolean";
24
+ meta: {
25
+ schemaVersion: "1.0";
26
+ labelTranslationKey?: string | undefined;
27
+ };
28
+ attributes: {
29
+ checked?: boolean | undefined;
30
+ };
31
+ }, {
32
+ type: "boolean";
33
+ meta: {
34
+ schemaVersion: "1.0";
35
+ labelTranslationKey?: string | undefined;
36
+ };
37
+ attributes: {
38
+ checked?: boolean | undefined;
39
+ };
40
+ }>, z.ZodObject<{
41
+ meta: z.ZodObject<{
42
+ schemaVersion: z.ZodLiteral<"1.0">;
43
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ schemaVersion: "1.0";
46
+ labelTranslationKey?: string | undefined;
47
+ }, {
48
+ schemaVersion: "1.0";
49
+ labelTranslationKey?: string | undefined;
50
+ }>;
51
+ } & {
52
+ type: z.ZodLiteral<"checkBoxes">;
53
+ options: z.ZodArray<z.ZodObject<{
54
+ type: z.ZodLiteral<"option">;
55
+ attributes: z.ZodObject<{
56
+ label: z.ZodString;
57
+ value: z.ZodString;
58
+ } & {
59
+ checked: z.ZodOptional<z.ZodBoolean>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ value: string;
62
+ label: string;
63
+ checked?: boolean | undefined;
64
+ }, {
65
+ value: string;
66
+ label: string;
67
+ checked?: boolean | undefined;
68
+ }>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ type: "option";
71
+ attributes: {
72
+ value: string;
73
+ label: string;
74
+ checked?: boolean | undefined;
75
+ };
76
+ }, {
77
+ type: "option";
78
+ attributes: {
79
+ value: string;
80
+ label: string;
81
+ checked?: boolean | undefined;
82
+ };
83
+ }>, "many">;
84
+ }, "strip", z.ZodTypeAny, {
85
+ type: "checkBoxes";
86
+ options: {
87
+ type: "option";
88
+ attributes: {
89
+ value: string;
90
+ label: string;
91
+ checked?: boolean | undefined;
92
+ };
93
+ }[];
94
+ meta: {
95
+ schemaVersion: "1.0";
96
+ labelTranslationKey?: string | undefined;
97
+ };
98
+ }, {
99
+ type: "checkBoxes";
100
+ options: {
101
+ type: "option";
102
+ attributes: {
103
+ value: string;
104
+ label: string;
105
+ checked?: boolean | undefined;
106
+ };
107
+ }[];
108
+ meta: {
109
+ schemaVersion: "1.0";
110
+ labelTranslationKey?: string | undefined;
111
+ };
112
+ }>, z.ZodObject<{
113
+ attributes: z.ZodObject<{
114
+ max: z.ZodOptional<z.ZodNumber>;
115
+ min: z.ZodOptional<z.ZodNumber>;
116
+ step: z.ZodOptional<z.ZodNumber>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ max?: number | undefined;
119
+ min?: number | undefined;
120
+ step?: number | undefined;
121
+ }, {
122
+ max?: number | undefined;
123
+ min?: number | undefined;
124
+ step?: number | undefined;
125
+ }>;
126
+ } & {
127
+ type: z.ZodLiteral<"currency">;
128
+ meta: z.ZodObject<{
129
+ denomination: z.ZodOptional<z.ZodString>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ denomination?: string | undefined;
132
+ }, {
133
+ denomination?: string | undefined;
134
+ }>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ type: "currency";
137
+ meta: {
138
+ denomination?: string | undefined;
139
+ };
140
+ attributes: {
141
+ max?: number | undefined;
142
+ min?: number | undefined;
143
+ step?: number | undefined;
144
+ };
145
+ }, {
146
+ type: "currency";
147
+ meta: {
148
+ denomination?: string | undefined;
149
+ };
150
+ attributes: {
151
+ max?: number | undefined;
152
+ min?: number | undefined;
153
+ step?: number | undefined;
154
+ };
155
+ }>, z.ZodObject<{
156
+ meta: z.ZodObject<{
157
+ schemaVersion: z.ZodLiteral<"1.0">;
158
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ schemaVersion: "1.0";
161
+ labelTranslationKey?: string | undefined;
162
+ }, {
163
+ schemaVersion: "1.0";
164
+ labelTranslationKey?: string | undefined;
165
+ }>;
166
+ } & {
167
+ type: z.ZodLiteral<"datePicker">;
168
+ attributes: z.ZodObject<{
169
+ max: z.ZodOptional<z.ZodString>;
170
+ min: z.ZodOptional<z.ZodString>;
171
+ step: z.ZodOptional<z.ZodNumber>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ max?: string | undefined;
174
+ min?: string | undefined;
175
+ step?: number | undefined;
176
+ }, {
177
+ max?: string | undefined;
178
+ min?: string | undefined;
179
+ step?: number | undefined;
180
+ }>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ type: "datePicker";
183
+ meta: {
184
+ schemaVersion: "1.0";
185
+ labelTranslationKey?: string | undefined;
186
+ };
187
+ attributes: {
188
+ max?: string | undefined;
189
+ min?: string | undefined;
190
+ step?: number | undefined;
191
+ };
192
+ }, {
193
+ type: "datePicker";
194
+ meta: {
195
+ schemaVersion: "1.0";
196
+ labelTranslationKey?: string | undefined;
197
+ };
198
+ attributes: {
199
+ max?: string | undefined;
200
+ min?: string | undefined;
201
+ step?: number | undefined;
202
+ };
203
+ }>, z.ZodObject<{
204
+ meta: z.ZodObject<{
205
+ schemaVersion: z.ZodLiteral<"1.0">;
206
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ schemaVersion: "1.0";
209
+ labelTranslationKey?: string | undefined;
210
+ }, {
211
+ schemaVersion: "1.0";
212
+ labelTranslationKey?: string | undefined;
213
+ }>;
214
+ } & {
215
+ type: z.ZodLiteral<"dateRange">;
216
+ columns: z.ZodObject<{
217
+ start: z.ZodObject<{
218
+ meta: z.ZodObject<{
219
+ schemaVersion: z.ZodLiteral<"1.0">;
220
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ schemaVersion: "1.0";
223
+ labelTranslationKey?: string | undefined;
224
+ }, {
225
+ schemaVersion: "1.0";
226
+ labelTranslationKey?: string | undefined;
227
+ }>;
228
+ type: z.ZodLiteral<"datePicker">;
229
+ } & {
230
+ attributes: z.ZodObject<{
231
+ label: z.ZodString;
232
+ }, "strip", z.ZodTypeAny, {
233
+ label: string;
234
+ }, {
235
+ label: string;
236
+ }>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ type: "datePicker";
239
+ meta: {
240
+ schemaVersion: "1.0";
241
+ labelTranslationKey?: string | undefined;
242
+ };
243
+ attributes: {
244
+ label: string;
245
+ };
246
+ }, {
247
+ type: "datePicker";
248
+ meta: {
249
+ schemaVersion: "1.0";
250
+ labelTranslationKey?: string | undefined;
251
+ };
252
+ attributes: {
253
+ label: string;
254
+ };
255
+ }>;
256
+ end: z.ZodObject<{
257
+ meta: z.ZodObject<{
258
+ schemaVersion: z.ZodLiteral<"1.0">;
259
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ schemaVersion: "1.0";
262
+ labelTranslationKey?: string | undefined;
263
+ }, {
264
+ schemaVersion: "1.0";
265
+ labelTranslationKey?: string | undefined;
266
+ }>;
267
+ type: z.ZodLiteral<"datePicker">;
268
+ } & {
269
+ attributes: z.ZodObject<{
270
+ label: z.ZodString;
271
+ }, "strip", z.ZodTypeAny, {
272
+ label: string;
273
+ }, {
274
+ label: string;
275
+ }>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ type: "datePicker";
278
+ meta: {
279
+ schemaVersion: "1.0";
280
+ labelTranslationKey?: string | undefined;
281
+ };
282
+ attributes: {
283
+ label: string;
284
+ };
285
+ }, {
286
+ type: "datePicker";
287
+ meta: {
288
+ schemaVersion: "1.0";
289
+ labelTranslationKey?: string | undefined;
290
+ };
291
+ attributes: {
292
+ label: string;
293
+ };
294
+ }>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ start: {
297
+ type: "datePicker";
298
+ meta: {
299
+ schemaVersion: "1.0";
300
+ labelTranslationKey?: string | undefined;
301
+ };
302
+ attributes: {
303
+ label: string;
304
+ };
305
+ };
306
+ end: {
307
+ type: "datePicker";
308
+ meta: {
309
+ schemaVersion: "1.0";
310
+ labelTranslationKey?: string | undefined;
311
+ };
312
+ attributes: {
313
+ label: string;
314
+ };
315
+ };
316
+ }, {
317
+ start: {
318
+ type: "datePicker";
319
+ meta: {
320
+ schemaVersion: "1.0";
321
+ labelTranslationKey?: string | undefined;
322
+ };
323
+ attributes: {
324
+ label: string;
325
+ };
326
+ };
327
+ end: {
328
+ type: "datePicker";
329
+ meta: {
330
+ schemaVersion: "1.0";
331
+ labelTranslationKey?: string | undefined;
332
+ };
333
+ attributes: {
334
+ label: string;
335
+ };
336
+ };
337
+ }>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ type: "dateRange";
340
+ meta: {
341
+ schemaVersion: "1.0";
342
+ labelTranslationKey?: string | undefined;
343
+ };
344
+ columns: {
345
+ start: {
346
+ type: "datePicker";
347
+ meta: {
348
+ schemaVersion: "1.0";
349
+ labelTranslationKey?: string | undefined;
350
+ };
351
+ attributes: {
352
+ label: string;
353
+ };
354
+ };
355
+ end: {
356
+ type: "datePicker";
357
+ meta: {
358
+ schemaVersion: "1.0";
359
+ labelTranslationKey?: string | undefined;
360
+ };
361
+ attributes: {
362
+ label: string;
363
+ };
364
+ };
365
+ };
366
+ }, {
367
+ type: "dateRange";
368
+ meta: {
369
+ schemaVersion: "1.0";
370
+ labelTranslationKey?: string | undefined;
371
+ };
372
+ columns: {
373
+ start: {
374
+ type: "datePicker";
375
+ meta: {
376
+ schemaVersion: "1.0";
377
+ labelTranslationKey?: string | undefined;
378
+ };
379
+ attributes: {
380
+ label: string;
381
+ };
382
+ };
383
+ end: {
384
+ type: "datePicker";
385
+ meta: {
386
+ schemaVersion: "1.0";
387
+ labelTranslationKey?: string | undefined;
388
+ };
389
+ attributes: {
390
+ label: string;
391
+ };
392
+ };
393
+ };
394
+ }>, z.ZodObject<{
395
+ meta: z.ZodObject<{
396
+ schemaVersion: z.ZodLiteral<"1.0">;
397
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ schemaVersion: "1.0";
400
+ labelTranslationKey?: string | undefined;
401
+ }, {
402
+ schemaVersion: "1.0";
403
+ labelTranslationKey?: string | undefined;
404
+ }>;
405
+ } & {
406
+ type: z.ZodLiteral<"email">;
407
+ attributes: z.ZodObject<{
408
+ maxLength: z.ZodOptional<z.ZodNumber>;
409
+ minLength: z.ZodOptional<z.ZodNumber>;
410
+ multiple: z.ZodOptional<z.ZodBoolean>;
411
+ pattern: z.ZodOptional<z.ZodString>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ maxLength?: number | undefined;
414
+ minLength?: number | undefined;
415
+ multiple?: boolean | undefined;
416
+ pattern?: string | undefined;
417
+ }, {
418
+ maxLength?: number | undefined;
419
+ minLength?: number | undefined;
420
+ multiple?: boolean | undefined;
421
+ pattern?: string | undefined;
422
+ }>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ type: "email";
425
+ meta: {
426
+ schemaVersion: "1.0";
427
+ labelTranslationKey?: string | undefined;
428
+ };
429
+ attributes: {
430
+ maxLength?: number | undefined;
431
+ minLength?: number | undefined;
432
+ multiple?: boolean | undefined;
433
+ pattern?: string | undefined;
434
+ };
435
+ }, {
436
+ type: "email";
437
+ meta: {
438
+ schemaVersion: "1.0";
439
+ labelTranslationKey?: string | undefined;
440
+ };
441
+ attributes: {
442
+ maxLength?: number | undefined;
443
+ minLength?: number | undefined;
444
+ multiple?: boolean | undefined;
445
+ pattern?: string | undefined;
446
+ };
447
+ }>, z.ZodObject<{
448
+ meta: z.ZodObject<{
449
+ schemaVersion: z.ZodLiteral<"1.0">;
450
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ schemaVersion: "1.0";
453
+ labelTranslationKey?: string | undefined;
454
+ }, {
455
+ schemaVersion: "1.0";
456
+ labelTranslationKey?: string | undefined;
457
+ }>;
458
+ } & {
459
+ type: z.ZodLiteral<"filteredSearch">;
460
+ graphQL: z.ZodObject<{
461
+ displayFields: z.ZodArray<z.ZodObject<{
462
+ propertyName: z.ZodString;
463
+ label: z.ZodString;
464
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ label: string;
467
+ propertyName: string;
468
+ labelTranslationKey?: string | undefined;
469
+ }, {
470
+ label: string;
471
+ propertyName: string;
472
+ labelTranslationKey?: string | undefined;
473
+ }>, "many">;
474
+ localQueryId: z.ZodOptional<z.ZodString>;
475
+ query: z.ZodOptional<z.ZodString>;
476
+ responseField: z.ZodString;
477
+ variables: z.ZodArray<z.ZodObject<{
478
+ minLength: z.ZodOptional<z.ZodNumber>;
479
+ label: z.ZodOptional<z.ZodString>;
480
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
481
+ name: z.ZodString;
482
+ type: z.ZodString;
483
+ defaultValue: z.ZodOptional<z.ZodString>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ type: string;
486
+ name: string;
487
+ labelTranslationKey?: string | undefined;
488
+ minLength?: number | undefined;
489
+ label?: string | undefined;
490
+ defaultValue?: string | undefined;
491
+ }, {
492
+ type: string;
493
+ name: string;
494
+ labelTranslationKey?: string | undefined;
495
+ minLength?: number | undefined;
496
+ label?: string | undefined;
497
+ defaultValue?: string | undefined;
498
+ }>, "many">;
499
+ }, "strip", z.ZodTypeAny, {
500
+ displayFields: {
501
+ label: string;
502
+ propertyName: string;
503
+ labelTranslationKey?: string | undefined;
504
+ }[];
505
+ responseField: string;
506
+ variables: {
507
+ type: string;
508
+ name: string;
509
+ labelTranslationKey?: string | undefined;
510
+ minLength?: number | undefined;
511
+ label?: string | undefined;
512
+ defaultValue?: string | undefined;
513
+ }[];
514
+ localQueryId?: string | undefined;
515
+ query?: string | undefined;
516
+ }, {
517
+ displayFields: {
518
+ label: string;
519
+ propertyName: string;
520
+ labelTranslationKey?: string | undefined;
521
+ }[];
522
+ responseField: string;
523
+ variables: {
524
+ type: string;
525
+ name: string;
526
+ labelTranslationKey?: string | undefined;
527
+ minLength?: number | undefined;
528
+ label?: string | undefined;
529
+ defaultValue?: string | undefined;
530
+ }[];
531
+ localQueryId?: string | undefined;
532
+ query?: string | undefined;
533
+ }>;
534
+ attributes: z.ZodObject<{
535
+ multiple: z.ZodOptional<z.ZodBoolean>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ multiple?: boolean | undefined;
538
+ }, {
539
+ multiple?: boolean | undefined;
540
+ }>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ type: "filteredSearch";
543
+ meta: {
544
+ schemaVersion: "1.0";
545
+ labelTranslationKey?: string | undefined;
546
+ };
547
+ attributes: {
548
+ multiple?: boolean | undefined;
549
+ };
550
+ graphQL: {
551
+ displayFields: {
552
+ label: string;
553
+ propertyName: string;
554
+ labelTranslationKey?: string | undefined;
555
+ }[];
556
+ responseField: string;
557
+ variables: {
558
+ type: string;
559
+ name: string;
560
+ labelTranslationKey?: string | undefined;
561
+ minLength?: number | undefined;
562
+ label?: string | undefined;
563
+ defaultValue?: string | undefined;
564
+ }[];
565
+ localQueryId?: string | undefined;
566
+ query?: string | undefined;
567
+ };
568
+ }, {
569
+ type: "filteredSearch";
570
+ meta: {
571
+ schemaVersion: "1.0";
572
+ labelTranslationKey?: string | undefined;
573
+ };
574
+ attributes: {
575
+ multiple?: boolean | undefined;
576
+ };
577
+ graphQL: {
578
+ displayFields: {
579
+ label: string;
580
+ propertyName: string;
581
+ labelTranslationKey?: string | undefined;
582
+ }[];
583
+ responseField: string;
584
+ variables: {
585
+ type: string;
586
+ name: string;
587
+ labelTranslationKey?: string | undefined;
588
+ minLength?: number | undefined;
589
+ label?: string | undefined;
590
+ defaultValue?: string | undefined;
591
+ }[];
592
+ localQueryId?: string | undefined;
593
+ query?: string | undefined;
594
+ };
595
+ }>, z.ZodObject<{
596
+ meta: z.ZodObject<{
597
+ schemaVersion: z.ZodLiteral<"1.0">;
598
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ schemaVersion: "1.0";
601
+ labelTranslationKey?: string | undefined;
602
+ }, {
603
+ schemaVersion: "1.0";
604
+ labelTranslationKey?: string | undefined;
605
+ }>;
606
+ } & {
607
+ type: z.ZodLiteral<"number">;
608
+ attributes: z.ZodObject<{
609
+ max: z.ZodOptional<z.ZodNumber>;
610
+ min: z.ZodOptional<z.ZodNumber>;
611
+ step: z.ZodOptional<z.ZodNumber>;
612
+ }, "strip", z.ZodTypeAny, {
613
+ max?: number | undefined;
614
+ min?: number | undefined;
615
+ step?: number | undefined;
616
+ }, {
617
+ max?: number | undefined;
618
+ min?: number | undefined;
619
+ step?: number | undefined;
620
+ }>;
621
+ }, "strip", z.ZodTypeAny, {
622
+ type: "number";
623
+ meta: {
624
+ schemaVersion: "1.0";
625
+ labelTranslationKey?: string | undefined;
626
+ };
627
+ attributes: {
628
+ max?: number | undefined;
629
+ min?: number | undefined;
630
+ step?: number | undefined;
631
+ };
632
+ }, {
633
+ type: "number";
634
+ meta: {
635
+ schemaVersion: "1.0";
636
+ labelTranslationKey?: string | undefined;
637
+ };
638
+ attributes: {
639
+ max?: number | undefined;
640
+ min?: number | undefined;
641
+ step?: number | undefined;
642
+ };
643
+ }>, z.ZodObject<{
644
+ meta: z.ZodObject<{
645
+ schemaVersion: z.ZodLiteral<"1.0">;
646
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ schemaVersion: "1.0";
649
+ labelTranslationKey?: string | undefined;
650
+ }, {
651
+ schemaVersion: "1.0";
652
+ labelTranslationKey?: string | undefined;
653
+ }>;
654
+ } & {
655
+ type: z.ZodLiteral<"radioButtons">;
656
+ options: z.ZodArray<z.ZodObject<{
657
+ type: z.ZodLiteral<"option">;
658
+ attributes: z.ZodObject<{
659
+ label: z.ZodString;
660
+ value: z.ZodString;
661
+ } & {
662
+ selected: z.ZodOptional<z.ZodBoolean>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ value: string;
665
+ label: string;
666
+ selected?: boolean | undefined;
667
+ }, {
668
+ value: string;
669
+ label: string;
670
+ selected?: boolean | undefined;
671
+ }>;
672
+ }, "strip", z.ZodTypeAny, {
673
+ type: "option";
674
+ attributes: {
675
+ value: string;
676
+ label: string;
677
+ selected?: boolean | undefined;
678
+ };
679
+ }, {
680
+ type: "option";
681
+ attributes: {
682
+ value: string;
683
+ label: string;
684
+ selected?: boolean | undefined;
685
+ };
686
+ }>, "many">;
687
+ }, "strip", z.ZodTypeAny, {
688
+ type: "radioButtons";
689
+ options: {
690
+ type: "option";
691
+ attributes: {
692
+ value: string;
693
+ label: string;
694
+ selected?: boolean | undefined;
695
+ };
696
+ }[];
697
+ meta: {
698
+ schemaVersion: "1.0";
699
+ labelTranslationKey?: string | undefined;
700
+ };
701
+ }, {
702
+ type: "radioButtons";
703
+ options: {
704
+ type: "option";
705
+ attributes: {
706
+ value: string;
707
+ label: string;
708
+ selected?: boolean | undefined;
709
+ };
710
+ }[];
711
+ meta: {
712
+ schemaVersion: "1.0";
713
+ labelTranslationKey?: string | undefined;
714
+ };
715
+ }>, z.ZodObject<{
716
+ meta: z.ZodObject<{
717
+ schemaVersion: z.ZodLiteral<"1.0">;
718
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ schemaVersion: "1.0";
721
+ labelTranslationKey?: string | undefined;
722
+ }, {
723
+ schemaVersion: "1.0";
724
+ labelTranslationKey?: string | undefined;
725
+ }>;
726
+ } & {
727
+ type: z.ZodLiteral<"selectBox">;
728
+ options: z.ZodArray<z.ZodObject<{
729
+ type: z.ZodLiteral<"option">;
730
+ attributes: z.ZodObject<{
731
+ label: z.ZodString;
732
+ value: z.ZodString;
733
+ } & {
734
+ selected: z.ZodOptional<z.ZodBoolean>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ value: string;
737
+ label: string;
738
+ selected?: boolean | undefined;
739
+ }, {
740
+ value: string;
741
+ label: string;
742
+ selected?: boolean | undefined;
743
+ }>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ type: "option";
746
+ attributes: {
747
+ value: string;
748
+ label: string;
749
+ selected?: boolean | undefined;
750
+ };
751
+ }, {
752
+ type: "option";
753
+ attributes: {
754
+ value: string;
755
+ label: string;
756
+ selected?: boolean | undefined;
757
+ };
758
+ }>, "many">;
759
+ attributes: z.ZodObject<{
760
+ multiple: z.ZodOptional<z.ZodBoolean>;
761
+ }, "strip", z.ZodTypeAny, {
762
+ multiple?: boolean | undefined;
763
+ }, {
764
+ multiple?: boolean | undefined;
765
+ }>;
766
+ }, "strip", z.ZodTypeAny, {
767
+ type: "selectBox";
768
+ options: {
769
+ type: "option";
770
+ attributes: {
771
+ value: string;
772
+ label: string;
773
+ selected?: boolean | undefined;
774
+ };
775
+ }[];
776
+ meta: {
777
+ schemaVersion: "1.0";
778
+ labelTranslationKey?: string | undefined;
779
+ };
780
+ attributes: {
781
+ multiple?: boolean | undefined;
782
+ };
783
+ }, {
784
+ type: "selectBox";
785
+ options: {
786
+ type: "option";
787
+ attributes: {
788
+ value: string;
789
+ label: string;
790
+ selected?: boolean | undefined;
791
+ };
792
+ }[];
793
+ meta: {
794
+ schemaVersion: "1.0";
795
+ labelTranslationKey?: string | undefined;
796
+ };
797
+ attributes: {
798
+ multiple?: boolean | undefined;
799
+ };
800
+ }>, z.ZodObject<{} & {
801
+ type: z.ZodLiteral<"textArea">;
802
+ attributes: z.ZodObject<{
803
+ cols: z.ZodOptional<z.ZodNumber>;
804
+ maxLength: z.ZodOptional<z.ZodNumber>;
805
+ minLength: z.ZodOptional<z.ZodNumber>;
806
+ rows: z.ZodOptional<z.ZodNumber>;
807
+ }, "strip", z.ZodTypeAny, {
808
+ maxLength?: number | undefined;
809
+ minLength?: number | undefined;
810
+ cols?: number | undefined;
811
+ rows?: number | undefined;
812
+ }, {
813
+ maxLength?: number | undefined;
814
+ minLength?: number | undefined;
815
+ cols?: number | undefined;
816
+ rows?: number | undefined;
817
+ }>;
818
+ meta: z.ZodObject<{
819
+ asRichText: z.ZodOptional<z.ZodBoolean>;
820
+ }, "strip", z.ZodTypeAny, {
821
+ asRichText?: boolean | undefined;
822
+ }, {
823
+ asRichText?: boolean | undefined;
824
+ }>;
825
+ }, "strip", z.ZodTypeAny, {
826
+ type: "textArea";
827
+ meta: {
828
+ asRichText?: boolean | undefined;
829
+ };
830
+ attributes: {
831
+ maxLength?: number | undefined;
832
+ minLength?: number | undefined;
833
+ cols?: number | undefined;
834
+ rows?: number | undefined;
835
+ };
836
+ }, {
837
+ type: "textArea";
838
+ meta: {
839
+ asRichText?: boolean | undefined;
840
+ };
841
+ attributes: {
842
+ maxLength?: number | undefined;
843
+ minLength?: number | undefined;
844
+ cols?: number | undefined;
845
+ rows?: number | undefined;
846
+ };
847
+ }>, z.ZodObject<{
848
+ meta: z.ZodObject<{
849
+ schemaVersion: z.ZodLiteral<"1.0">;
850
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ schemaVersion: "1.0";
853
+ labelTranslationKey?: string | undefined;
854
+ }, {
855
+ schemaVersion: "1.0";
856
+ labelTranslationKey?: string | undefined;
857
+ }>;
858
+ } & {
859
+ type: z.ZodLiteral<"text">;
860
+ attributes: z.ZodObject<{
861
+ maxLength: z.ZodOptional<z.ZodNumber>;
862
+ minLength: z.ZodOptional<z.ZodNumber>;
863
+ pattern: z.ZodOptional<z.ZodString>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ maxLength?: number | undefined;
866
+ minLength?: number | undefined;
867
+ pattern?: string | undefined;
868
+ }, {
869
+ maxLength?: number | undefined;
870
+ minLength?: number | undefined;
871
+ pattern?: string | undefined;
872
+ }>;
873
+ }, "strip", z.ZodTypeAny, {
874
+ type: "text";
875
+ meta: {
876
+ schemaVersion: "1.0";
877
+ labelTranslationKey?: string | undefined;
878
+ };
879
+ attributes: {
880
+ maxLength?: number | undefined;
881
+ minLength?: number | undefined;
882
+ pattern?: string | undefined;
883
+ };
884
+ }, {
885
+ type: "text";
886
+ meta: {
887
+ schemaVersion: "1.0";
888
+ labelTranslationKey?: string | undefined;
889
+ };
890
+ attributes: {
891
+ maxLength?: number | undefined;
892
+ minLength?: number | undefined;
893
+ pattern?: string | undefined;
894
+ };
895
+ }>, z.ZodObject<{
896
+ meta: z.ZodObject<{
897
+ schemaVersion: z.ZodLiteral<"1.0">;
898
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
899
+ }, "strip", z.ZodTypeAny, {
900
+ schemaVersion: "1.0";
901
+ labelTranslationKey?: string | undefined;
902
+ }, {
903
+ schemaVersion: "1.0";
904
+ labelTranslationKey?: string | undefined;
905
+ }>;
906
+ } & {
907
+ type: z.ZodLiteral<"typeaheadSearch">;
908
+ graphQL: z.ZodObject<{
909
+ displayFields: z.ZodArray<z.ZodObject<{
910
+ propertyName: z.ZodString;
911
+ label: z.ZodString;
912
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
913
+ }, "strip", z.ZodTypeAny, {
914
+ label: string;
915
+ propertyName: string;
916
+ labelTranslationKey?: string | undefined;
917
+ }, {
918
+ label: string;
919
+ propertyName: string;
920
+ labelTranslationKey?: string | undefined;
921
+ }>, "many">;
922
+ localQueryId: z.ZodOptional<z.ZodString>;
923
+ query: z.ZodOptional<z.ZodString>;
924
+ responseField: z.ZodString;
925
+ variables: z.ZodArray<z.ZodObject<{
926
+ minLength: z.ZodOptional<z.ZodNumber>;
927
+ label: z.ZodOptional<z.ZodString>;
928
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
929
+ name: z.ZodString;
930
+ type: z.ZodString;
931
+ defaultValue: z.ZodOptional<z.ZodString>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ type: string;
934
+ name: string;
935
+ labelTranslationKey?: string | undefined;
936
+ minLength?: number | undefined;
937
+ label?: string | undefined;
938
+ defaultValue?: string | undefined;
939
+ }, {
940
+ type: string;
941
+ name: string;
942
+ labelTranslationKey?: string | undefined;
943
+ minLength?: number | undefined;
944
+ label?: string | undefined;
945
+ defaultValue?: string | undefined;
946
+ }>, "many">;
947
+ }, "strip", z.ZodTypeAny, {
948
+ displayFields: {
949
+ label: string;
950
+ propertyName: string;
951
+ labelTranslationKey?: string | undefined;
952
+ }[];
953
+ responseField: string;
954
+ variables: {
955
+ type: string;
956
+ name: string;
957
+ labelTranslationKey?: string | undefined;
958
+ minLength?: number | undefined;
959
+ label?: string | undefined;
960
+ defaultValue?: string | undefined;
961
+ }[];
962
+ localQueryId?: string | undefined;
963
+ query?: string | undefined;
964
+ }, {
965
+ displayFields: {
966
+ label: string;
967
+ propertyName: string;
968
+ labelTranslationKey?: string | undefined;
969
+ }[];
970
+ responseField: string;
971
+ variables: {
972
+ type: string;
973
+ name: string;
974
+ labelTranslationKey?: string | undefined;
975
+ minLength?: number | undefined;
976
+ label?: string | undefined;
977
+ defaultValue?: string | undefined;
978
+ }[];
979
+ localQueryId?: string | undefined;
980
+ query?: string | undefined;
981
+ }>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ type: "typeaheadSearch";
984
+ meta: {
985
+ schemaVersion: "1.0";
986
+ labelTranslationKey?: string | undefined;
987
+ };
988
+ graphQL: {
989
+ displayFields: {
990
+ label: string;
991
+ propertyName: string;
992
+ labelTranslationKey?: string | undefined;
993
+ }[];
994
+ responseField: string;
995
+ variables: {
996
+ type: string;
997
+ name: string;
998
+ labelTranslationKey?: string | undefined;
999
+ minLength?: number | undefined;
1000
+ label?: string | undefined;
1001
+ defaultValue?: string | undefined;
1002
+ }[];
1003
+ localQueryId?: string | undefined;
1004
+ query?: string | undefined;
1005
+ };
1006
+ }, {
1007
+ type: "typeaheadSearch";
1008
+ meta: {
1009
+ schemaVersion: "1.0";
1010
+ labelTranslationKey?: string | undefined;
1011
+ };
1012
+ graphQL: {
1013
+ displayFields: {
1014
+ label: string;
1015
+ propertyName: string;
1016
+ labelTranslationKey?: string | undefined;
1017
+ }[];
1018
+ responseField: string;
1019
+ variables: {
1020
+ type: string;
1021
+ name: string;
1022
+ labelTranslationKey?: string | undefined;
1023
+ minLength?: number | undefined;
1024
+ label?: string | undefined;
1025
+ defaultValue?: string | undefined;
1026
+ }[];
1027
+ localQueryId?: string | undefined;
1028
+ query?: string | undefined;
1029
+ };
1030
+ }>, z.ZodObject<{
1031
+ meta: z.ZodObject<{
1032
+ schemaVersion: z.ZodLiteral<"1.0">;
1033
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ schemaVersion: "1.0";
1036
+ labelTranslationKey?: string | undefined;
1037
+ }, {
1038
+ schemaVersion: "1.0";
1039
+ labelTranslationKey?: string | undefined;
1040
+ }>;
1041
+ } & {
1042
+ type: z.ZodLiteral<"url">;
1043
+ attributes: z.ZodObject<{
1044
+ maxLength: z.ZodOptional<z.ZodNumber>;
1045
+ minLength: z.ZodOptional<z.ZodNumber>;
1046
+ pattern: z.ZodOptional<z.ZodString>;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ maxLength?: number | undefined;
1049
+ minLength?: number | undefined;
1050
+ pattern?: string | undefined;
1051
+ }, {
1052
+ maxLength?: number | undefined;
1053
+ minLength?: number | undefined;
1054
+ pattern?: string | undefined;
1055
+ }>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ type: "url";
1058
+ meta: {
1059
+ schemaVersion: "1.0";
1060
+ labelTranslationKey?: string | undefined;
1061
+ };
1062
+ attributes: {
1063
+ maxLength?: number | undefined;
1064
+ minLength?: number | undefined;
1065
+ pattern?: string | undefined;
1066
+ };
1067
+ }, {
1068
+ type: "url";
1069
+ meta: {
1070
+ schemaVersion: "1.0";
1071
+ labelTranslationKey?: string | undefined;
1072
+ };
1073
+ attributes: {
1074
+ maxLength?: number | undefined;
1075
+ minLength?: number | undefined;
1076
+ pattern?: string | undefined;
1077
+ };
1078
+ }>]>;
1079
+ export declare const TableQuestion: z.ZodObject<{
1080
+ meta: z.ZodObject<{
1081
+ schemaVersion: z.ZodLiteral<"1.0">;
1082
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ schemaVersion: "1.0";
1085
+ labelTranslationKey?: string | undefined;
1086
+ }, {
1087
+ schemaVersion: "1.0";
1088
+ labelTranslationKey?: string | undefined;
1089
+ }>;
1090
+ } & {
1091
+ type: z.ZodLiteral<"table">;
1092
+ columns: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1093
+ meta: z.ZodObject<{
1094
+ schemaVersion: z.ZodLiteral<"1.0">;
1095
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ schemaVersion: "1.0";
1098
+ labelTranslationKey?: string | undefined;
1099
+ }, {
1100
+ schemaVersion: "1.0";
1101
+ labelTranslationKey?: string | undefined;
1102
+ }>;
1103
+ } & {
1104
+ type: z.ZodLiteral<"boolean">;
1105
+ attributes: z.ZodObject<{
1106
+ checked: z.ZodOptional<z.ZodBoolean>;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ checked?: boolean | undefined;
1109
+ }, {
1110
+ checked?: boolean | undefined;
1111
+ }>;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ type: "boolean";
1114
+ meta: {
1115
+ schemaVersion: "1.0";
1116
+ labelTranslationKey?: string | undefined;
1117
+ };
1118
+ attributes: {
1119
+ checked?: boolean | undefined;
1120
+ };
1121
+ }, {
1122
+ type: "boolean";
1123
+ meta: {
1124
+ schemaVersion: "1.0";
1125
+ labelTranslationKey?: string | undefined;
1126
+ };
1127
+ attributes: {
1128
+ checked?: boolean | undefined;
1129
+ };
1130
+ }>, z.ZodObject<{
1131
+ meta: z.ZodObject<{
1132
+ schemaVersion: z.ZodLiteral<"1.0">;
1133
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ schemaVersion: "1.0";
1136
+ labelTranslationKey?: string | undefined;
1137
+ }, {
1138
+ schemaVersion: "1.0";
1139
+ labelTranslationKey?: string | undefined;
1140
+ }>;
1141
+ } & {
1142
+ type: z.ZodLiteral<"checkBoxes">;
1143
+ options: z.ZodArray<z.ZodObject<{
1144
+ type: z.ZodLiteral<"option">;
1145
+ attributes: z.ZodObject<{
1146
+ label: z.ZodString;
1147
+ value: z.ZodString;
1148
+ } & {
1149
+ checked: z.ZodOptional<z.ZodBoolean>;
1150
+ }, "strip", z.ZodTypeAny, {
1151
+ value: string;
1152
+ label: string;
1153
+ checked?: boolean | undefined;
1154
+ }, {
1155
+ value: string;
1156
+ label: string;
1157
+ checked?: boolean | undefined;
1158
+ }>;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ type: "option";
1161
+ attributes: {
1162
+ value: string;
1163
+ label: string;
1164
+ checked?: boolean | undefined;
1165
+ };
1166
+ }, {
1167
+ type: "option";
1168
+ attributes: {
1169
+ value: string;
1170
+ label: string;
1171
+ checked?: boolean | undefined;
1172
+ };
1173
+ }>, "many">;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ type: "checkBoxes";
1176
+ options: {
1177
+ type: "option";
1178
+ attributes: {
1179
+ value: string;
1180
+ label: string;
1181
+ checked?: boolean | undefined;
1182
+ };
1183
+ }[];
1184
+ meta: {
1185
+ schemaVersion: "1.0";
1186
+ labelTranslationKey?: string | undefined;
1187
+ };
1188
+ }, {
1189
+ type: "checkBoxes";
1190
+ options: {
1191
+ type: "option";
1192
+ attributes: {
1193
+ value: string;
1194
+ label: string;
1195
+ checked?: boolean | undefined;
1196
+ };
1197
+ }[];
1198
+ meta: {
1199
+ schemaVersion: "1.0";
1200
+ labelTranslationKey?: string | undefined;
1201
+ };
1202
+ }>, z.ZodObject<{
1203
+ attributes: z.ZodObject<{
1204
+ max: z.ZodOptional<z.ZodNumber>;
1205
+ min: z.ZodOptional<z.ZodNumber>;
1206
+ step: z.ZodOptional<z.ZodNumber>;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ max?: number | undefined;
1209
+ min?: number | undefined;
1210
+ step?: number | undefined;
1211
+ }, {
1212
+ max?: number | undefined;
1213
+ min?: number | undefined;
1214
+ step?: number | undefined;
1215
+ }>;
1216
+ } & {
1217
+ type: z.ZodLiteral<"currency">;
1218
+ meta: z.ZodObject<{
1219
+ denomination: z.ZodOptional<z.ZodString>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ denomination?: string | undefined;
1222
+ }, {
1223
+ denomination?: string | undefined;
1224
+ }>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ type: "currency";
1227
+ meta: {
1228
+ denomination?: string | undefined;
1229
+ };
1230
+ attributes: {
1231
+ max?: number | undefined;
1232
+ min?: number | undefined;
1233
+ step?: number | undefined;
1234
+ };
1235
+ }, {
1236
+ type: "currency";
1237
+ meta: {
1238
+ denomination?: string | undefined;
1239
+ };
1240
+ attributes: {
1241
+ max?: number | undefined;
1242
+ min?: number | undefined;
1243
+ step?: number | undefined;
1244
+ };
1245
+ }>, z.ZodObject<{
1246
+ meta: z.ZodObject<{
1247
+ schemaVersion: z.ZodLiteral<"1.0">;
1248
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ schemaVersion: "1.0";
1251
+ labelTranslationKey?: string | undefined;
1252
+ }, {
1253
+ schemaVersion: "1.0";
1254
+ labelTranslationKey?: string | undefined;
1255
+ }>;
1256
+ } & {
1257
+ type: z.ZodLiteral<"datePicker">;
1258
+ attributes: z.ZodObject<{
1259
+ max: z.ZodOptional<z.ZodString>;
1260
+ min: z.ZodOptional<z.ZodString>;
1261
+ step: z.ZodOptional<z.ZodNumber>;
1262
+ }, "strip", z.ZodTypeAny, {
1263
+ max?: string | undefined;
1264
+ min?: string | undefined;
1265
+ step?: number | undefined;
1266
+ }, {
1267
+ max?: string | undefined;
1268
+ min?: string | undefined;
1269
+ step?: number | undefined;
1270
+ }>;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ type: "datePicker";
1273
+ meta: {
1274
+ schemaVersion: "1.0";
1275
+ labelTranslationKey?: string | undefined;
1276
+ };
1277
+ attributes: {
1278
+ max?: string | undefined;
1279
+ min?: string | undefined;
1280
+ step?: number | undefined;
1281
+ };
1282
+ }, {
1283
+ type: "datePicker";
1284
+ meta: {
1285
+ schemaVersion: "1.0";
1286
+ labelTranslationKey?: string | undefined;
1287
+ };
1288
+ attributes: {
1289
+ max?: string | undefined;
1290
+ min?: string | undefined;
1291
+ step?: number | undefined;
1292
+ };
1293
+ }>, z.ZodObject<{
1294
+ meta: z.ZodObject<{
1295
+ schemaVersion: z.ZodLiteral<"1.0">;
1296
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1297
+ }, "strip", z.ZodTypeAny, {
1298
+ schemaVersion: "1.0";
1299
+ labelTranslationKey?: string | undefined;
1300
+ }, {
1301
+ schemaVersion: "1.0";
1302
+ labelTranslationKey?: string | undefined;
1303
+ }>;
1304
+ } & {
1305
+ type: z.ZodLiteral<"dateRange">;
1306
+ columns: z.ZodObject<{
1307
+ start: z.ZodObject<{
1308
+ meta: z.ZodObject<{
1309
+ schemaVersion: z.ZodLiteral<"1.0">;
1310
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ schemaVersion: "1.0";
1313
+ labelTranslationKey?: string | undefined;
1314
+ }, {
1315
+ schemaVersion: "1.0";
1316
+ labelTranslationKey?: string | undefined;
1317
+ }>;
1318
+ type: z.ZodLiteral<"datePicker">;
1319
+ } & {
1320
+ attributes: z.ZodObject<{
1321
+ label: z.ZodString;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ label: string;
1324
+ }, {
1325
+ label: string;
1326
+ }>;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ type: "datePicker";
1329
+ meta: {
1330
+ schemaVersion: "1.0";
1331
+ labelTranslationKey?: string | undefined;
1332
+ };
1333
+ attributes: {
1334
+ label: string;
1335
+ };
1336
+ }, {
1337
+ type: "datePicker";
1338
+ meta: {
1339
+ schemaVersion: "1.0";
1340
+ labelTranslationKey?: string | undefined;
1341
+ };
1342
+ attributes: {
1343
+ label: string;
1344
+ };
1345
+ }>;
1346
+ end: z.ZodObject<{
1347
+ meta: z.ZodObject<{
1348
+ schemaVersion: z.ZodLiteral<"1.0">;
1349
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ schemaVersion: "1.0";
1352
+ labelTranslationKey?: string | undefined;
1353
+ }, {
1354
+ schemaVersion: "1.0";
1355
+ labelTranslationKey?: string | undefined;
1356
+ }>;
1357
+ type: z.ZodLiteral<"datePicker">;
1358
+ } & {
1359
+ attributes: z.ZodObject<{
1360
+ label: z.ZodString;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ label: string;
1363
+ }, {
1364
+ label: string;
1365
+ }>;
1366
+ }, "strip", z.ZodTypeAny, {
1367
+ type: "datePicker";
1368
+ meta: {
1369
+ schemaVersion: "1.0";
1370
+ labelTranslationKey?: string | undefined;
1371
+ };
1372
+ attributes: {
1373
+ label: string;
1374
+ };
1375
+ }, {
1376
+ type: "datePicker";
1377
+ meta: {
1378
+ schemaVersion: "1.0";
1379
+ labelTranslationKey?: string | undefined;
1380
+ };
1381
+ attributes: {
1382
+ label: string;
1383
+ };
1384
+ }>;
1385
+ }, "strip", z.ZodTypeAny, {
1386
+ start: {
1387
+ type: "datePicker";
1388
+ meta: {
1389
+ schemaVersion: "1.0";
1390
+ labelTranslationKey?: string | undefined;
1391
+ };
1392
+ attributes: {
1393
+ label: string;
1394
+ };
1395
+ };
1396
+ end: {
1397
+ type: "datePicker";
1398
+ meta: {
1399
+ schemaVersion: "1.0";
1400
+ labelTranslationKey?: string | undefined;
1401
+ };
1402
+ attributes: {
1403
+ label: string;
1404
+ };
1405
+ };
1406
+ }, {
1407
+ start: {
1408
+ type: "datePicker";
1409
+ meta: {
1410
+ schemaVersion: "1.0";
1411
+ labelTranslationKey?: string | undefined;
1412
+ };
1413
+ attributes: {
1414
+ label: string;
1415
+ };
1416
+ };
1417
+ end: {
1418
+ type: "datePicker";
1419
+ meta: {
1420
+ schemaVersion: "1.0";
1421
+ labelTranslationKey?: string | undefined;
1422
+ };
1423
+ attributes: {
1424
+ label: string;
1425
+ };
1426
+ };
1427
+ }>;
1428
+ }, "strip", z.ZodTypeAny, {
1429
+ type: "dateRange";
1430
+ meta: {
1431
+ schemaVersion: "1.0";
1432
+ labelTranslationKey?: string | undefined;
1433
+ };
1434
+ columns: {
1435
+ start: {
1436
+ type: "datePicker";
1437
+ meta: {
1438
+ schemaVersion: "1.0";
1439
+ labelTranslationKey?: string | undefined;
1440
+ };
1441
+ attributes: {
1442
+ label: string;
1443
+ };
1444
+ };
1445
+ end: {
1446
+ type: "datePicker";
1447
+ meta: {
1448
+ schemaVersion: "1.0";
1449
+ labelTranslationKey?: string | undefined;
1450
+ };
1451
+ attributes: {
1452
+ label: string;
1453
+ };
1454
+ };
1455
+ };
1456
+ }, {
1457
+ type: "dateRange";
1458
+ meta: {
1459
+ schemaVersion: "1.0";
1460
+ labelTranslationKey?: string | undefined;
1461
+ };
1462
+ columns: {
1463
+ start: {
1464
+ type: "datePicker";
1465
+ meta: {
1466
+ schemaVersion: "1.0";
1467
+ labelTranslationKey?: string | undefined;
1468
+ };
1469
+ attributes: {
1470
+ label: string;
1471
+ };
1472
+ };
1473
+ end: {
1474
+ type: "datePicker";
1475
+ meta: {
1476
+ schemaVersion: "1.0";
1477
+ labelTranslationKey?: string | undefined;
1478
+ };
1479
+ attributes: {
1480
+ label: string;
1481
+ };
1482
+ };
1483
+ };
1484
+ }>, z.ZodObject<{
1485
+ meta: z.ZodObject<{
1486
+ schemaVersion: z.ZodLiteral<"1.0">;
1487
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ schemaVersion: "1.0";
1490
+ labelTranslationKey?: string | undefined;
1491
+ }, {
1492
+ schemaVersion: "1.0";
1493
+ labelTranslationKey?: string | undefined;
1494
+ }>;
1495
+ } & {
1496
+ type: z.ZodLiteral<"email">;
1497
+ attributes: z.ZodObject<{
1498
+ maxLength: z.ZodOptional<z.ZodNumber>;
1499
+ minLength: z.ZodOptional<z.ZodNumber>;
1500
+ multiple: z.ZodOptional<z.ZodBoolean>;
1501
+ pattern: z.ZodOptional<z.ZodString>;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ maxLength?: number | undefined;
1504
+ minLength?: number | undefined;
1505
+ multiple?: boolean | undefined;
1506
+ pattern?: string | undefined;
1507
+ }, {
1508
+ maxLength?: number | undefined;
1509
+ minLength?: number | undefined;
1510
+ multiple?: boolean | undefined;
1511
+ pattern?: string | undefined;
1512
+ }>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ type: "email";
1515
+ meta: {
1516
+ schemaVersion: "1.0";
1517
+ labelTranslationKey?: string | undefined;
1518
+ };
1519
+ attributes: {
1520
+ maxLength?: number | undefined;
1521
+ minLength?: number | undefined;
1522
+ multiple?: boolean | undefined;
1523
+ pattern?: string | undefined;
1524
+ };
1525
+ }, {
1526
+ type: "email";
1527
+ meta: {
1528
+ schemaVersion: "1.0";
1529
+ labelTranslationKey?: string | undefined;
1530
+ };
1531
+ attributes: {
1532
+ maxLength?: number | undefined;
1533
+ minLength?: number | undefined;
1534
+ multiple?: boolean | undefined;
1535
+ pattern?: string | undefined;
1536
+ };
1537
+ }>, z.ZodObject<{
1538
+ meta: z.ZodObject<{
1539
+ schemaVersion: z.ZodLiteral<"1.0">;
1540
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ schemaVersion: "1.0";
1543
+ labelTranslationKey?: string | undefined;
1544
+ }, {
1545
+ schemaVersion: "1.0";
1546
+ labelTranslationKey?: string | undefined;
1547
+ }>;
1548
+ } & {
1549
+ type: z.ZodLiteral<"filteredSearch">;
1550
+ graphQL: z.ZodObject<{
1551
+ displayFields: z.ZodArray<z.ZodObject<{
1552
+ propertyName: z.ZodString;
1553
+ label: z.ZodString;
1554
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ label: string;
1557
+ propertyName: string;
1558
+ labelTranslationKey?: string | undefined;
1559
+ }, {
1560
+ label: string;
1561
+ propertyName: string;
1562
+ labelTranslationKey?: string | undefined;
1563
+ }>, "many">;
1564
+ localQueryId: z.ZodOptional<z.ZodString>;
1565
+ query: z.ZodOptional<z.ZodString>;
1566
+ responseField: z.ZodString;
1567
+ variables: z.ZodArray<z.ZodObject<{
1568
+ minLength: z.ZodOptional<z.ZodNumber>;
1569
+ label: z.ZodOptional<z.ZodString>;
1570
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1571
+ name: z.ZodString;
1572
+ type: z.ZodString;
1573
+ defaultValue: z.ZodOptional<z.ZodString>;
1574
+ }, "strip", z.ZodTypeAny, {
1575
+ type: string;
1576
+ name: string;
1577
+ labelTranslationKey?: string | undefined;
1578
+ minLength?: number | undefined;
1579
+ label?: string | undefined;
1580
+ defaultValue?: string | undefined;
1581
+ }, {
1582
+ type: string;
1583
+ name: string;
1584
+ labelTranslationKey?: string | undefined;
1585
+ minLength?: number | undefined;
1586
+ label?: string | undefined;
1587
+ defaultValue?: string | undefined;
1588
+ }>, "many">;
1589
+ }, "strip", z.ZodTypeAny, {
1590
+ displayFields: {
1591
+ label: string;
1592
+ propertyName: string;
1593
+ labelTranslationKey?: string | undefined;
1594
+ }[];
1595
+ responseField: string;
1596
+ variables: {
1597
+ type: string;
1598
+ name: string;
1599
+ labelTranslationKey?: string | undefined;
1600
+ minLength?: number | undefined;
1601
+ label?: string | undefined;
1602
+ defaultValue?: string | undefined;
1603
+ }[];
1604
+ localQueryId?: string | undefined;
1605
+ query?: string | undefined;
1606
+ }, {
1607
+ displayFields: {
1608
+ label: string;
1609
+ propertyName: string;
1610
+ labelTranslationKey?: string | undefined;
1611
+ }[];
1612
+ responseField: string;
1613
+ variables: {
1614
+ type: string;
1615
+ name: string;
1616
+ labelTranslationKey?: string | undefined;
1617
+ minLength?: number | undefined;
1618
+ label?: string | undefined;
1619
+ defaultValue?: string | undefined;
1620
+ }[];
1621
+ localQueryId?: string | undefined;
1622
+ query?: string | undefined;
1623
+ }>;
1624
+ attributes: z.ZodObject<{
1625
+ multiple: z.ZodOptional<z.ZodBoolean>;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ multiple?: boolean | undefined;
1628
+ }, {
1629
+ multiple?: boolean | undefined;
1630
+ }>;
1631
+ }, "strip", z.ZodTypeAny, {
1632
+ type: "filteredSearch";
1633
+ meta: {
1634
+ schemaVersion: "1.0";
1635
+ labelTranslationKey?: string | undefined;
1636
+ };
1637
+ attributes: {
1638
+ multiple?: boolean | undefined;
1639
+ };
1640
+ graphQL: {
1641
+ displayFields: {
1642
+ label: string;
1643
+ propertyName: string;
1644
+ labelTranslationKey?: string | undefined;
1645
+ }[];
1646
+ responseField: string;
1647
+ variables: {
1648
+ type: string;
1649
+ name: string;
1650
+ labelTranslationKey?: string | undefined;
1651
+ minLength?: number | undefined;
1652
+ label?: string | undefined;
1653
+ defaultValue?: string | undefined;
1654
+ }[];
1655
+ localQueryId?: string | undefined;
1656
+ query?: string | undefined;
1657
+ };
1658
+ }, {
1659
+ type: "filteredSearch";
1660
+ meta: {
1661
+ schemaVersion: "1.0";
1662
+ labelTranslationKey?: string | undefined;
1663
+ };
1664
+ attributes: {
1665
+ multiple?: boolean | undefined;
1666
+ };
1667
+ graphQL: {
1668
+ displayFields: {
1669
+ label: string;
1670
+ propertyName: string;
1671
+ labelTranslationKey?: string | undefined;
1672
+ }[];
1673
+ responseField: string;
1674
+ variables: {
1675
+ type: string;
1676
+ name: string;
1677
+ labelTranslationKey?: string | undefined;
1678
+ minLength?: number | undefined;
1679
+ label?: string | undefined;
1680
+ defaultValue?: string | undefined;
1681
+ }[];
1682
+ localQueryId?: string | undefined;
1683
+ query?: string | undefined;
1684
+ };
1685
+ }>, z.ZodObject<{
1686
+ meta: z.ZodObject<{
1687
+ schemaVersion: z.ZodLiteral<"1.0">;
1688
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ schemaVersion: "1.0";
1691
+ labelTranslationKey?: string | undefined;
1692
+ }, {
1693
+ schemaVersion: "1.0";
1694
+ labelTranslationKey?: string | undefined;
1695
+ }>;
1696
+ } & {
1697
+ type: z.ZodLiteral<"number">;
1698
+ attributes: z.ZodObject<{
1699
+ max: z.ZodOptional<z.ZodNumber>;
1700
+ min: z.ZodOptional<z.ZodNumber>;
1701
+ step: z.ZodOptional<z.ZodNumber>;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ max?: number | undefined;
1704
+ min?: number | undefined;
1705
+ step?: number | undefined;
1706
+ }, {
1707
+ max?: number | undefined;
1708
+ min?: number | undefined;
1709
+ step?: number | undefined;
1710
+ }>;
1711
+ }, "strip", z.ZodTypeAny, {
1712
+ type: "number";
1713
+ meta: {
1714
+ schemaVersion: "1.0";
1715
+ labelTranslationKey?: string | undefined;
1716
+ };
1717
+ attributes: {
1718
+ max?: number | undefined;
1719
+ min?: number | undefined;
1720
+ step?: number | undefined;
1721
+ };
1722
+ }, {
1723
+ type: "number";
1724
+ meta: {
1725
+ schemaVersion: "1.0";
1726
+ labelTranslationKey?: string | undefined;
1727
+ };
1728
+ attributes: {
1729
+ max?: number | undefined;
1730
+ min?: number | undefined;
1731
+ step?: number | undefined;
1732
+ };
1733
+ }>, z.ZodObject<{
1734
+ meta: z.ZodObject<{
1735
+ schemaVersion: z.ZodLiteral<"1.0">;
1736
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1737
+ }, "strip", z.ZodTypeAny, {
1738
+ schemaVersion: "1.0";
1739
+ labelTranslationKey?: string | undefined;
1740
+ }, {
1741
+ schemaVersion: "1.0";
1742
+ labelTranslationKey?: string | undefined;
1743
+ }>;
1744
+ } & {
1745
+ type: z.ZodLiteral<"radioButtons">;
1746
+ options: z.ZodArray<z.ZodObject<{
1747
+ type: z.ZodLiteral<"option">;
1748
+ attributes: z.ZodObject<{
1749
+ label: z.ZodString;
1750
+ value: z.ZodString;
1751
+ } & {
1752
+ selected: z.ZodOptional<z.ZodBoolean>;
1753
+ }, "strip", z.ZodTypeAny, {
1754
+ value: string;
1755
+ label: string;
1756
+ selected?: boolean | undefined;
1757
+ }, {
1758
+ value: string;
1759
+ label: string;
1760
+ selected?: boolean | undefined;
1761
+ }>;
1762
+ }, "strip", z.ZodTypeAny, {
1763
+ type: "option";
1764
+ attributes: {
1765
+ value: string;
1766
+ label: string;
1767
+ selected?: boolean | undefined;
1768
+ };
1769
+ }, {
1770
+ type: "option";
1771
+ attributes: {
1772
+ value: string;
1773
+ label: string;
1774
+ selected?: boolean | undefined;
1775
+ };
1776
+ }>, "many">;
1777
+ }, "strip", z.ZodTypeAny, {
1778
+ type: "radioButtons";
1779
+ options: {
1780
+ type: "option";
1781
+ attributes: {
1782
+ value: string;
1783
+ label: string;
1784
+ selected?: boolean | undefined;
1785
+ };
1786
+ }[];
1787
+ meta: {
1788
+ schemaVersion: "1.0";
1789
+ labelTranslationKey?: string | undefined;
1790
+ };
1791
+ }, {
1792
+ type: "radioButtons";
1793
+ options: {
1794
+ type: "option";
1795
+ attributes: {
1796
+ value: string;
1797
+ label: string;
1798
+ selected?: boolean | undefined;
1799
+ };
1800
+ }[];
1801
+ meta: {
1802
+ schemaVersion: "1.0";
1803
+ labelTranslationKey?: string | undefined;
1804
+ };
1805
+ }>, z.ZodObject<{
1806
+ meta: z.ZodObject<{
1807
+ schemaVersion: z.ZodLiteral<"1.0">;
1808
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1809
+ }, "strip", z.ZodTypeAny, {
1810
+ schemaVersion: "1.0";
1811
+ labelTranslationKey?: string | undefined;
1812
+ }, {
1813
+ schemaVersion: "1.0";
1814
+ labelTranslationKey?: string | undefined;
1815
+ }>;
1816
+ } & {
1817
+ type: z.ZodLiteral<"selectBox">;
1818
+ options: z.ZodArray<z.ZodObject<{
1819
+ type: z.ZodLiteral<"option">;
1820
+ attributes: z.ZodObject<{
1821
+ label: z.ZodString;
1822
+ value: z.ZodString;
1823
+ } & {
1824
+ selected: z.ZodOptional<z.ZodBoolean>;
1825
+ }, "strip", z.ZodTypeAny, {
1826
+ value: string;
1827
+ label: string;
1828
+ selected?: boolean | undefined;
1829
+ }, {
1830
+ value: string;
1831
+ label: string;
1832
+ selected?: boolean | undefined;
1833
+ }>;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ type: "option";
1836
+ attributes: {
1837
+ value: string;
1838
+ label: string;
1839
+ selected?: boolean | undefined;
1840
+ };
1841
+ }, {
1842
+ type: "option";
1843
+ attributes: {
1844
+ value: string;
1845
+ label: string;
1846
+ selected?: boolean | undefined;
1847
+ };
1848
+ }>, "many">;
1849
+ attributes: z.ZodObject<{
1850
+ multiple: z.ZodOptional<z.ZodBoolean>;
1851
+ }, "strip", z.ZodTypeAny, {
1852
+ multiple?: boolean | undefined;
1853
+ }, {
1854
+ multiple?: boolean | undefined;
1855
+ }>;
1856
+ }, "strip", z.ZodTypeAny, {
1857
+ type: "selectBox";
1858
+ options: {
1859
+ type: "option";
1860
+ attributes: {
1861
+ value: string;
1862
+ label: string;
1863
+ selected?: boolean | undefined;
1864
+ };
1865
+ }[];
1866
+ meta: {
1867
+ schemaVersion: "1.0";
1868
+ labelTranslationKey?: string | undefined;
1869
+ };
1870
+ attributes: {
1871
+ multiple?: boolean | undefined;
1872
+ };
1873
+ }, {
1874
+ type: "selectBox";
1875
+ options: {
1876
+ type: "option";
1877
+ attributes: {
1878
+ value: string;
1879
+ label: string;
1880
+ selected?: boolean | undefined;
1881
+ };
1882
+ }[];
1883
+ meta: {
1884
+ schemaVersion: "1.0";
1885
+ labelTranslationKey?: string | undefined;
1886
+ };
1887
+ attributes: {
1888
+ multiple?: boolean | undefined;
1889
+ };
1890
+ }>, z.ZodObject<{} & {
1891
+ type: z.ZodLiteral<"textArea">;
1892
+ attributes: z.ZodObject<{
1893
+ cols: z.ZodOptional<z.ZodNumber>;
1894
+ maxLength: z.ZodOptional<z.ZodNumber>;
1895
+ minLength: z.ZodOptional<z.ZodNumber>;
1896
+ rows: z.ZodOptional<z.ZodNumber>;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ maxLength?: number | undefined;
1899
+ minLength?: number | undefined;
1900
+ cols?: number | undefined;
1901
+ rows?: number | undefined;
1902
+ }, {
1903
+ maxLength?: number | undefined;
1904
+ minLength?: number | undefined;
1905
+ cols?: number | undefined;
1906
+ rows?: number | undefined;
1907
+ }>;
1908
+ meta: z.ZodObject<{
1909
+ asRichText: z.ZodOptional<z.ZodBoolean>;
1910
+ }, "strip", z.ZodTypeAny, {
1911
+ asRichText?: boolean | undefined;
1912
+ }, {
1913
+ asRichText?: boolean | undefined;
1914
+ }>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ type: "textArea";
1917
+ meta: {
1918
+ asRichText?: boolean | undefined;
1919
+ };
1920
+ attributes: {
1921
+ maxLength?: number | undefined;
1922
+ minLength?: number | undefined;
1923
+ cols?: number | undefined;
1924
+ rows?: number | undefined;
1925
+ };
1926
+ }, {
1927
+ type: "textArea";
1928
+ meta: {
1929
+ asRichText?: boolean | undefined;
1930
+ };
1931
+ attributes: {
1932
+ maxLength?: number | undefined;
1933
+ minLength?: number | undefined;
1934
+ cols?: number | undefined;
1935
+ rows?: number | undefined;
1936
+ };
1937
+ }>, z.ZodObject<{
1938
+ meta: z.ZodObject<{
1939
+ schemaVersion: z.ZodLiteral<"1.0">;
1940
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1941
+ }, "strip", z.ZodTypeAny, {
1942
+ schemaVersion: "1.0";
1943
+ labelTranslationKey?: string | undefined;
1944
+ }, {
1945
+ schemaVersion: "1.0";
1946
+ labelTranslationKey?: string | undefined;
1947
+ }>;
1948
+ } & {
1949
+ type: z.ZodLiteral<"text">;
1950
+ attributes: z.ZodObject<{
1951
+ maxLength: z.ZodOptional<z.ZodNumber>;
1952
+ minLength: z.ZodOptional<z.ZodNumber>;
1953
+ pattern: z.ZodOptional<z.ZodString>;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ maxLength?: number | undefined;
1956
+ minLength?: number | undefined;
1957
+ pattern?: string | undefined;
1958
+ }, {
1959
+ maxLength?: number | undefined;
1960
+ minLength?: number | undefined;
1961
+ pattern?: string | undefined;
1962
+ }>;
1963
+ }, "strip", z.ZodTypeAny, {
1964
+ type: "text";
1965
+ meta: {
1966
+ schemaVersion: "1.0";
1967
+ labelTranslationKey?: string | undefined;
1968
+ };
1969
+ attributes: {
1970
+ maxLength?: number | undefined;
1971
+ minLength?: number | undefined;
1972
+ pattern?: string | undefined;
1973
+ };
1974
+ }, {
1975
+ type: "text";
1976
+ meta: {
1977
+ schemaVersion: "1.0";
1978
+ labelTranslationKey?: string | undefined;
1979
+ };
1980
+ attributes: {
1981
+ maxLength?: number | undefined;
1982
+ minLength?: number | undefined;
1983
+ pattern?: string | undefined;
1984
+ };
1985
+ }>, z.ZodObject<{
1986
+ meta: z.ZodObject<{
1987
+ schemaVersion: z.ZodLiteral<"1.0">;
1988
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1989
+ }, "strip", z.ZodTypeAny, {
1990
+ schemaVersion: "1.0";
1991
+ labelTranslationKey?: string | undefined;
1992
+ }, {
1993
+ schemaVersion: "1.0";
1994
+ labelTranslationKey?: string | undefined;
1995
+ }>;
1996
+ } & {
1997
+ type: z.ZodLiteral<"typeaheadSearch">;
1998
+ graphQL: z.ZodObject<{
1999
+ displayFields: z.ZodArray<z.ZodObject<{
2000
+ propertyName: z.ZodString;
2001
+ label: z.ZodString;
2002
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
2003
+ }, "strip", z.ZodTypeAny, {
2004
+ label: string;
2005
+ propertyName: string;
2006
+ labelTranslationKey?: string | undefined;
2007
+ }, {
2008
+ label: string;
2009
+ propertyName: string;
2010
+ labelTranslationKey?: string | undefined;
2011
+ }>, "many">;
2012
+ localQueryId: z.ZodOptional<z.ZodString>;
2013
+ query: z.ZodOptional<z.ZodString>;
2014
+ responseField: z.ZodString;
2015
+ variables: z.ZodArray<z.ZodObject<{
2016
+ minLength: z.ZodOptional<z.ZodNumber>;
2017
+ label: z.ZodOptional<z.ZodString>;
2018
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
2019
+ name: z.ZodString;
2020
+ type: z.ZodString;
2021
+ defaultValue: z.ZodOptional<z.ZodString>;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ type: string;
2024
+ name: string;
2025
+ labelTranslationKey?: string | undefined;
2026
+ minLength?: number | undefined;
2027
+ label?: string | undefined;
2028
+ defaultValue?: string | undefined;
2029
+ }, {
2030
+ type: string;
2031
+ name: string;
2032
+ labelTranslationKey?: string | undefined;
2033
+ minLength?: number | undefined;
2034
+ label?: string | undefined;
2035
+ defaultValue?: string | undefined;
2036
+ }>, "many">;
2037
+ }, "strip", z.ZodTypeAny, {
2038
+ displayFields: {
2039
+ label: string;
2040
+ propertyName: string;
2041
+ labelTranslationKey?: string | undefined;
2042
+ }[];
2043
+ responseField: string;
2044
+ variables: {
2045
+ type: string;
2046
+ name: string;
2047
+ labelTranslationKey?: string | undefined;
2048
+ minLength?: number | undefined;
2049
+ label?: string | undefined;
2050
+ defaultValue?: string | undefined;
2051
+ }[];
2052
+ localQueryId?: string | undefined;
2053
+ query?: string | undefined;
2054
+ }, {
2055
+ displayFields: {
2056
+ label: string;
2057
+ propertyName: string;
2058
+ labelTranslationKey?: string | undefined;
2059
+ }[];
2060
+ responseField: string;
2061
+ variables: {
2062
+ type: string;
2063
+ name: string;
2064
+ labelTranslationKey?: string | undefined;
2065
+ minLength?: number | undefined;
2066
+ label?: string | undefined;
2067
+ defaultValue?: string | undefined;
2068
+ }[];
2069
+ localQueryId?: string | undefined;
2070
+ query?: string | undefined;
2071
+ }>;
2072
+ }, "strip", z.ZodTypeAny, {
2073
+ type: "typeaheadSearch";
2074
+ meta: {
2075
+ schemaVersion: "1.0";
2076
+ labelTranslationKey?: string | undefined;
2077
+ };
2078
+ graphQL: {
2079
+ displayFields: {
2080
+ label: string;
2081
+ propertyName: string;
2082
+ labelTranslationKey?: string | undefined;
2083
+ }[];
2084
+ responseField: string;
2085
+ variables: {
2086
+ type: string;
2087
+ name: string;
2088
+ labelTranslationKey?: string | undefined;
2089
+ minLength?: number | undefined;
2090
+ label?: string | undefined;
2091
+ defaultValue?: string | undefined;
2092
+ }[];
2093
+ localQueryId?: string | undefined;
2094
+ query?: string | undefined;
2095
+ };
2096
+ }, {
2097
+ type: "typeaheadSearch";
2098
+ meta: {
2099
+ schemaVersion: "1.0";
2100
+ labelTranslationKey?: string | undefined;
2101
+ };
2102
+ graphQL: {
2103
+ displayFields: {
2104
+ label: string;
2105
+ propertyName: string;
2106
+ labelTranslationKey?: string | undefined;
2107
+ }[];
2108
+ responseField: string;
2109
+ variables: {
2110
+ type: string;
2111
+ name: string;
2112
+ labelTranslationKey?: string | undefined;
2113
+ minLength?: number | undefined;
2114
+ label?: string | undefined;
2115
+ defaultValue?: string | undefined;
2116
+ }[];
2117
+ localQueryId?: string | undefined;
2118
+ query?: string | undefined;
2119
+ };
2120
+ }>, z.ZodObject<{
2121
+ meta: z.ZodObject<{
2122
+ schemaVersion: z.ZodLiteral<"1.0">;
2123
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
2124
+ }, "strip", z.ZodTypeAny, {
2125
+ schemaVersion: "1.0";
2126
+ labelTranslationKey?: string | undefined;
2127
+ }, {
2128
+ schemaVersion: "1.0";
2129
+ labelTranslationKey?: string | undefined;
2130
+ }>;
2131
+ } & {
2132
+ type: z.ZodLiteral<"url">;
2133
+ attributes: z.ZodObject<{
2134
+ maxLength: z.ZodOptional<z.ZodNumber>;
2135
+ minLength: z.ZodOptional<z.ZodNumber>;
2136
+ pattern: z.ZodOptional<z.ZodString>;
2137
+ }, "strip", z.ZodTypeAny, {
2138
+ maxLength?: number | undefined;
2139
+ minLength?: number | undefined;
2140
+ pattern?: string | undefined;
2141
+ }, {
2142
+ maxLength?: number | undefined;
2143
+ minLength?: number | undefined;
2144
+ pattern?: string | undefined;
2145
+ }>;
2146
+ }, "strip", z.ZodTypeAny, {
2147
+ type: "url";
2148
+ meta: {
2149
+ schemaVersion: "1.0";
2150
+ labelTranslationKey?: string | undefined;
2151
+ };
2152
+ attributes: {
2153
+ maxLength?: number | undefined;
2154
+ minLength?: number | undefined;
2155
+ pattern?: string | undefined;
2156
+ };
2157
+ }, {
2158
+ type: "url";
2159
+ meta: {
2160
+ schemaVersion: "1.0";
2161
+ labelTranslationKey?: string | undefined;
2162
+ };
2163
+ attributes: {
2164
+ maxLength?: number | undefined;
2165
+ minLength?: number | undefined;
2166
+ pattern?: string | undefined;
2167
+ };
2168
+ }>]>, "many">;
2169
+ attributes: z.ZodObject<{
2170
+ canAddRows: z.ZodOptional<z.ZodBoolean>;
2171
+ canRemoveRows: z.ZodOptional<z.ZodBoolean>;
2172
+ initialRows: z.ZodOptional<z.ZodNumber>;
2173
+ maxRows: z.ZodOptional<z.ZodNumber>;
2174
+ minRows: z.ZodOptional<z.ZodNumber>;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ canAddRows?: boolean | undefined;
2177
+ canRemoveRows?: boolean | undefined;
2178
+ initialRows?: number | undefined;
2179
+ maxRows?: number | undefined;
2180
+ minRows?: number | undefined;
2181
+ }, {
2182
+ canAddRows?: boolean | undefined;
2183
+ canRemoveRows?: boolean | undefined;
2184
+ initialRows?: number | undefined;
2185
+ maxRows?: number | undefined;
2186
+ minRows?: number | undefined;
2187
+ }>;
2188
+ }, "strip", z.ZodTypeAny, {
2189
+ type: "table";
2190
+ meta: {
2191
+ schemaVersion: "1.0";
2192
+ labelTranslationKey?: string | undefined;
2193
+ };
2194
+ attributes: {
2195
+ canAddRows?: boolean | undefined;
2196
+ canRemoveRows?: boolean | undefined;
2197
+ initialRows?: number | undefined;
2198
+ maxRows?: number | undefined;
2199
+ minRows?: number | undefined;
2200
+ };
2201
+ columns: ({
2202
+ type: "boolean";
2203
+ meta: {
2204
+ schemaVersion: "1.0";
2205
+ labelTranslationKey?: string | undefined;
2206
+ };
2207
+ attributes: {
2208
+ checked?: boolean | undefined;
2209
+ };
2210
+ } | {
2211
+ type: "number";
2212
+ meta: {
2213
+ schemaVersion: "1.0";
2214
+ labelTranslationKey?: string | undefined;
2215
+ };
2216
+ attributes: {
2217
+ max?: number | undefined;
2218
+ min?: number | undefined;
2219
+ step?: number | undefined;
2220
+ };
2221
+ } | {
2222
+ type: "currency";
2223
+ meta: {
2224
+ denomination?: string | undefined;
2225
+ };
2226
+ attributes: {
2227
+ max?: number | undefined;
2228
+ min?: number | undefined;
2229
+ step?: number | undefined;
2230
+ };
2231
+ } | {
2232
+ type: "email";
2233
+ meta: {
2234
+ schemaVersion: "1.0";
2235
+ labelTranslationKey?: string | undefined;
2236
+ };
2237
+ attributes: {
2238
+ maxLength?: number | undefined;
2239
+ minLength?: number | undefined;
2240
+ multiple?: boolean | undefined;
2241
+ pattern?: string | undefined;
2242
+ };
2243
+ } | {
2244
+ type: "textArea";
2245
+ meta: {
2246
+ asRichText?: boolean | undefined;
2247
+ };
2248
+ attributes: {
2249
+ maxLength?: number | undefined;
2250
+ minLength?: number | undefined;
2251
+ cols?: number | undefined;
2252
+ rows?: number | undefined;
2253
+ };
2254
+ } | {
2255
+ type: "text";
2256
+ meta: {
2257
+ schemaVersion: "1.0";
2258
+ labelTranslationKey?: string | undefined;
2259
+ };
2260
+ attributes: {
2261
+ maxLength?: number | undefined;
2262
+ minLength?: number | undefined;
2263
+ pattern?: string | undefined;
2264
+ };
2265
+ } | {
2266
+ type: "url";
2267
+ meta: {
2268
+ schemaVersion: "1.0";
2269
+ labelTranslationKey?: string | undefined;
2270
+ };
2271
+ attributes: {
2272
+ maxLength?: number | undefined;
2273
+ minLength?: number | undefined;
2274
+ pattern?: string | undefined;
2275
+ };
2276
+ } | {
2277
+ type: "datePicker";
2278
+ meta: {
2279
+ schemaVersion: "1.0";
2280
+ labelTranslationKey?: string | undefined;
2281
+ };
2282
+ attributes: {
2283
+ max?: string | undefined;
2284
+ min?: string | undefined;
2285
+ step?: number | undefined;
2286
+ };
2287
+ } | {
2288
+ type: "dateRange";
2289
+ meta: {
2290
+ schemaVersion: "1.0";
2291
+ labelTranslationKey?: string | undefined;
2292
+ };
2293
+ columns: {
2294
+ start: {
2295
+ type: "datePicker";
2296
+ meta: {
2297
+ schemaVersion: "1.0";
2298
+ labelTranslationKey?: string | undefined;
2299
+ };
2300
+ attributes: {
2301
+ label: string;
2302
+ };
2303
+ };
2304
+ end: {
2305
+ type: "datePicker";
2306
+ meta: {
2307
+ schemaVersion: "1.0";
2308
+ labelTranslationKey?: string | undefined;
2309
+ };
2310
+ attributes: {
2311
+ label: string;
2312
+ };
2313
+ };
2314
+ };
2315
+ } | {
2316
+ type: "checkBoxes";
2317
+ options: {
2318
+ type: "option";
2319
+ attributes: {
2320
+ value: string;
2321
+ label: string;
2322
+ checked?: boolean | undefined;
2323
+ };
2324
+ }[];
2325
+ meta: {
2326
+ schemaVersion: "1.0";
2327
+ labelTranslationKey?: string | undefined;
2328
+ };
2329
+ } | {
2330
+ type: "radioButtons";
2331
+ options: {
2332
+ type: "option";
2333
+ attributes: {
2334
+ value: string;
2335
+ label: string;
2336
+ selected?: boolean | undefined;
2337
+ };
2338
+ }[];
2339
+ meta: {
2340
+ schemaVersion: "1.0";
2341
+ labelTranslationKey?: string | undefined;
2342
+ };
2343
+ } | {
2344
+ type: "selectBox";
2345
+ options: {
2346
+ type: "option";
2347
+ attributes: {
2348
+ value: string;
2349
+ label: string;
2350
+ selected?: boolean | undefined;
2351
+ };
2352
+ }[];
2353
+ meta: {
2354
+ schemaVersion: "1.0";
2355
+ labelTranslationKey?: string | undefined;
2356
+ };
2357
+ attributes: {
2358
+ multiple?: boolean | undefined;
2359
+ };
2360
+ } | {
2361
+ type: "filteredSearch";
2362
+ meta: {
2363
+ schemaVersion: "1.0";
2364
+ labelTranslationKey?: string | undefined;
2365
+ };
2366
+ attributes: {
2367
+ multiple?: boolean | undefined;
2368
+ };
2369
+ graphQL: {
2370
+ displayFields: {
2371
+ label: string;
2372
+ propertyName: string;
2373
+ labelTranslationKey?: string | undefined;
2374
+ }[];
2375
+ responseField: string;
2376
+ variables: {
2377
+ type: string;
2378
+ name: string;
2379
+ labelTranslationKey?: string | undefined;
2380
+ minLength?: number | undefined;
2381
+ label?: string | undefined;
2382
+ defaultValue?: string | undefined;
2383
+ }[];
2384
+ localQueryId?: string | undefined;
2385
+ query?: string | undefined;
2386
+ };
2387
+ } | {
2388
+ type: "typeaheadSearch";
2389
+ meta: {
2390
+ schemaVersion: "1.0";
2391
+ labelTranslationKey?: string | undefined;
2392
+ };
2393
+ graphQL: {
2394
+ displayFields: {
2395
+ label: string;
2396
+ propertyName: string;
2397
+ labelTranslationKey?: string | undefined;
2398
+ }[];
2399
+ responseField: string;
2400
+ variables: {
2401
+ type: string;
2402
+ name: string;
2403
+ labelTranslationKey?: string | undefined;
2404
+ minLength?: number | undefined;
2405
+ label?: string | undefined;
2406
+ defaultValue?: string | undefined;
2407
+ }[];
2408
+ localQueryId?: string | undefined;
2409
+ query?: string | undefined;
2410
+ };
2411
+ })[];
2412
+ }, {
2413
+ type: "table";
2414
+ meta: {
2415
+ schemaVersion: "1.0";
2416
+ labelTranslationKey?: string | undefined;
2417
+ };
2418
+ attributes: {
2419
+ canAddRows?: boolean | undefined;
2420
+ canRemoveRows?: boolean | undefined;
2421
+ initialRows?: number | undefined;
2422
+ maxRows?: number | undefined;
2423
+ minRows?: number | undefined;
2424
+ };
2425
+ columns: ({
2426
+ type: "boolean";
2427
+ meta: {
2428
+ schemaVersion: "1.0";
2429
+ labelTranslationKey?: string | undefined;
2430
+ };
2431
+ attributes: {
2432
+ checked?: boolean | undefined;
2433
+ };
2434
+ } | {
2435
+ type: "number";
2436
+ meta: {
2437
+ schemaVersion: "1.0";
2438
+ labelTranslationKey?: string | undefined;
2439
+ };
2440
+ attributes: {
2441
+ max?: number | undefined;
2442
+ min?: number | undefined;
2443
+ step?: number | undefined;
2444
+ };
2445
+ } | {
2446
+ type: "currency";
2447
+ meta: {
2448
+ denomination?: string | undefined;
2449
+ };
2450
+ attributes: {
2451
+ max?: number | undefined;
2452
+ min?: number | undefined;
2453
+ step?: number | undefined;
2454
+ };
2455
+ } | {
2456
+ type: "email";
2457
+ meta: {
2458
+ schemaVersion: "1.0";
2459
+ labelTranslationKey?: string | undefined;
2460
+ };
2461
+ attributes: {
2462
+ maxLength?: number | undefined;
2463
+ minLength?: number | undefined;
2464
+ multiple?: boolean | undefined;
2465
+ pattern?: string | undefined;
2466
+ };
2467
+ } | {
2468
+ type: "textArea";
2469
+ meta: {
2470
+ asRichText?: boolean | undefined;
2471
+ };
2472
+ attributes: {
2473
+ maxLength?: number | undefined;
2474
+ minLength?: number | undefined;
2475
+ cols?: number | undefined;
2476
+ rows?: number | undefined;
2477
+ };
2478
+ } | {
2479
+ type: "text";
2480
+ meta: {
2481
+ schemaVersion: "1.0";
2482
+ labelTranslationKey?: string | undefined;
2483
+ };
2484
+ attributes: {
2485
+ maxLength?: number | undefined;
2486
+ minLength?: number | undefined;
2487
+ pattern?: string | undefined;
2488
+ };
2489
+ } | {
2490
+ type: "url";
2491
+ meta: {
2492
+ schemaVersion: "1.0";
2493
+ labelTranslationKey?: string | undefined;
2494
+ };
2495
+ attributes: {
2496
+ maxLength?: number | undefined;
2497
+ minLength?: number | undefined;
2498
+ pattern?: string | undefined;
2499
+ };
2500
+ } | {
2501
+ type: "datePicker";
2502
+ meta: {
2503
+ schemaVersion: "1.0";
2504
+ labelTranslationKey?: string | undefined;
2505
+ };
2506
+ attributes: {
2507
+ max?: string | undefined;
2508
+ min?: string | undefined;
2509
+ step?: number | undefined;
2510
+ };
2511
+ } | {
2512
+ type: "dateRange";
2513
+ meta: {
2514
+ schemaVersion: "1.0";
2515
+ labelTranslationKey?: string | undefined;
2516
+ };
2517
+ columns: {
2518
+ start: {
2519
+ type: "datePicker";
2520
+ meta: {
2521
+ schemaVersion: "1.0";
2522
+ labelTranslationKey?: string | undefined;
2523
+ };
2524
+ attributes: {
2525
+ label: string;
2526
+ };
2527
+ };
2528
+ end: {
2529
+ type: "datePicker";
2530
+ meta: {
2531
+ schemaVersion: "1.0";
2532
+ labelTranslationKey?: string | undefined;
2533
+ };
2534
+ attributes: {
2535
+ label: string;
2536
+ };
2537
+ };
2538
+ };
2539
+ } | {
2540
+ type: "checkBoxes";
2541
+ options: {
2542
+ type: "option";
2543
+ attributes: {
2544
+ value: string;
2545
+ label: string;
2546
+ checked?: boolean | undefined;
2547
+ };
2548
+ }[];
2549
+ meta: {
2550
+ schemaVersion: "1.0";
2551
+ labelTranslationKey?: string | undefined;
2552
+ };
2553
+ } | {
2554
+ type: "radioButtons";
2555
+ options: {
2556
+ type: "option";
2557
+ attributes: {
2558
+ value: string;
2559
+ label: string;
2560
+ selected?: boolean | undefined;
2561
+ };
2562
+ }[];
2563
+ meta: {
2564
+ schemaVersion: "1.0";
2565
+ labelTranslationKey?: string | undefined;
2566
+ };
2567
+ } | {
2568
+ type: "selectBox";
2569
+ options: {
2570
+ type: "option";
2571
+ attributes: {
2572
+ value: string;
2573
+ label: string;
2574
+ selected?: boolean | undefined;
2575
+ };
2576
+ }[];
2577
+ meta: {
2578
+ schemaVersion: "1.0";
2579
+ labelTranslationKey?: string | undefined;
2580
+ };
2581
+ attributes: {
2582
+ multiple?: boolean | undefined;
2583
+ };
2584
+ } | {
2585
+ type: "filteredSearch";
2586
+ meta: {
2587
+ schemaVersion: "1.0";
2588
+ labelTranslationKey?: string | undefined;
2589
+ };
2590
+ attributes: {
2591
+ multiple?: boolean | undefined;
2592
+ };
2593
+ graphQL: {
2594
+ displayFields: {
2595
+ label: string;
2596
+ propertyName: string;
2597
+ labelTranslationKey?: string | undefined;
2598
+ }[];
2599
+ responseField: string;
2600
+ variables: {
2601
+ type: string;
2602
+ name: string;
2603
+ labelTranslationKey?: string | undefined;
2604
+ minLength?: number | undefined;
2605
+ label?: string | undefined;
2606
+ defaultValue?: string | undefined;
2607
+ }[];
2608
+ localQueryId?: string | undefined;
2609
+ query?: string | undefined;
2610
+ };
2611
+ } | {
2612
+ type: "typeaheadSearch";
2613
+ meta: {
2614
+ schemaVersion: "1.0";
2615
+ labelTranslationKey?: string | undefined;
2616
+ };
2617
+ graphQL: {
2618
+ displayFields: {
2619
+ label: string;
2620
+ propertyName: string;
2621
+ labelTranslationKey?: string | undefined;
2622
+ }[];
2623
+ responseField: string;
2624
+ variables: {
2625
+ type: string;
2626
+ name: string;
2627
+ labelTranslationKey?: string | undefined;
2628
+ minLength?: number | undefined;
2629
+ label?: string | undefined;
2630
+ defaultValue?: string | undefined;
2631
+ }[];
2632
+ localQueryId?: string | undefined;
2633
+ query?: string | undefined;
2634
+ };
2635
+ })[];
2636
+ }>;
2637
+ export type TableQuestionType = z.infer<typeof TableQuestion>;
2638
+ export type AnyTableColumnQuestionType = z.infer<typeof AnyTableColumnQuestion>;