@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
@@ -1,1562 +1,10 @@
1
- import { z } from "zod";
2
- export declare const TableQuestion: 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<"table">;
15
- columns: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
16
- meta: z.ZodObject<{
17
- schemaVersion: z.ZodLiteral<"1.0">;
18
- labelTranslationKey: z.ZodOptional<z.ZodString>;
19
- }, "strip", z.ZodTypeAny, {
20
- schemaVersion: "1.0";
21
- labelTranslationKey?: string | undefined;
22
- }, {
23
- schemaVersion: "1.0";
24
- labelTranslationKey?: string | undefined;
25
- }>;
26
- } & {
27
- type: z.ZodLiteral<"boolean">;
28
- attributes: z.ZodObject<{
29
- checked: z.ZodOptional<z.ZodBoolean>;
30
- }, "strip", z.ZodTypeAny, {
31
- checked?: boolean | undefined;
32
- }, {
33
- checked?: boolean | undefined;
34
- }>;
35
- }, "strip", z.ZodTypeAny, {
36
- type: "boolean";
37
- meta: {
38
- schemaVersion: "1.0";
39
- labelTranslationKey?: string | undefined;
40
- };
41
- attributes: {
42
- checked?: boolean | undefined;
43
- };
44
- }, {
45
- type: "boolean";
46
- meta: {
47
- schemaVersion: "1.0";
48
- labelTranslationKey?: string | undefined;
49
- };
50
- attributes: {
51
- checked?: boolean | undefined;
52
- };
53
- }>, z.ZodObject<{
54
- meta: z.ZodObject<{
55
- schemaVersion: z.ZodLiteral<"1.0">;
56
- labelTranslationKey: z.ZodOptional<z.ZodString>;
57
- }, "strip", z.ZodTypeAny, {
58
- schemaVersion: "1.0";
59
- labelTranslationKey?: string | undefined;
60
- }, {
61
- schemaVersion: "1.0";
62
- labelTranslationKey?: string | undefined;
63
- }>;
64
- } & {
65
- type: z.ZodLiteral<"checkBoxes">;
66
- options: z.ZodArray<z.ZodObject<{
67
- type: z.ZodLiteral<"option">;
68
- attributes: z.ZodObject<{
69
- label: z.ZodString;
70
- value: z.ZodString;
71
- } & {
72
- checked: z.ZodOptional<z.ZodBoolean>;
73
- }, "strip", z.ZodTypeAny, {
74
- value: string;
75
- label: string;
76
- checked?: boolean | undefined;
77
- }, {
78
- value: string;
79
- label: string;
80
- checked?: boolean | undefined;
81
- }>;
82
- }, "strip", z.ZodTypeAny, {
83
- type: "option";
84
- attributes: {
85
- value: string;
86
- label: string;
87
- checked?: boolean | undefined;
88
- };
89
- }, {
90
- type: "option";
91
- attributes: {
92
- value: string;
93
- label: string;
94
- checked?: boolean | undefined;
95
- };
96
- }>, "many">;
97
- }, "strip", z.ZodTypeAny, {
98
- type: "checkBoxes";
99
- options: {
100
- type: "option";
101
- attributes: {
102
- value: string;
103
- label: string;
104
- checked?: boolean | undefined;
105
- };
106
- }[];
107
- meta: {
108
- schemaVersion: "1.0";
109
- labelTranslationKey?: string | undefined;
110
- };
111
- }, {
112
- type: "checkBoxes";
113
- options: {
114
- type: "option";
115
- attributes: {
116
- value: string;
117
- label: string;
118
- checked?: boolean | undefined;
119
- };
120
- }[];
121
- meta: {
122
- schemaVersion: "1.0";
123
- labelTranslationKey?: string | undefined;
124
- };
125
- }>, z.ZodObject<{
126
- attributes: z.ZodObject<{
127
- max: z.ZodOptional<z.ZodNumber>;
128
- min: z.ZodOptional<z.ZodNumber>;
129
- step: z.ZodOptional<z.ZodNumber>;
130
- }, "strip", z.ZodTypeAny, {
131
- max?: number | undefined;
132
- min?: number | undefined;
133
- step?: number | undefined;
134
- }, {
135
- max?: number | undefined;
136
- min?: number | undefined;
137
- step?: number | undefined;
138
- }>;
139
- } & {
140
- type: z.ZodLiteral<"currency">;
141
- meta: z.ZodObject<{
142
- denomination: z.ZodOptional<z.ZodString>;
143
- }, "strip", z.ZodTypeAny, {
144
- denomination?: string | undefined;
145
- }, {
146
- denomination?: string | undefined;
147
- }>;
148
- }, "strip", z.ZodTypeAny, {
149
- type: "currency";
150
- meta: {
151
- denomination?: string | undefined;
152
- };
153
- attributes: {
154
- max?: number | undefined;
155
- min?: number | undefined;
156
- step?: number | undefined;
157
- };
158
- }, {
159
- type: "currency";
160
- meta: {
161
- denomination?: string | undefined;
162
- };
163
- attributes: {
164
- max?: number | undefined;
165
- min?: number | undefined;
166
- step?: number | undefined;
167
- };
168
- }>, z.ZodObject<{
169
- meta: z.ZodObject<{
170
- schemaVersion: z.ZodLiteral<"1.0">;
171
- labelTranslationKey: z.ZodOptional<z.ZodString>;
172
- }, "strip", z.ZodTypeAny, {
173
- schemaVersion: "1.0";
174
- labelTranslationKey?: string | undefined;
175
- }, {
176
- schemaVersion: "1.0";
177
- labelTranslationKey?: string | undefined;
178
- }>;
179
- } & {
180
- type: z.ZodLiteral<"datePicker">;
181
- attributes: z.ZodObject<{
182
- max: z.ZodOptional<z.ZodString>;
183
- min: z.ZodOptional<z.ZodString>;
184
- step: z.ZodOptional<z.ZodNumber>;
185
- }, "strip", z.ZodTypeAny, {
186
- max?: string | undefined;
187
- min?: string | undefined;
188
- step?: number | undefined;
189
- }, {
190
- max?: string | undefined;
191
- min?: string | undefined;
192
- step?: number | undefined;
193
- }>;
194
- }, "strip", z.ZodTypeAny, {
195
- type: "datePicker";
196
- meta: {
197
- schemaVersion: "1.0";
198
- labelTranslationKey?: string | undefined;
199
- };
200
- attributes: {
201
- max?: string | undefined;
202
- min?: string | undefined;
203
- step?: number | undefined;
204
- };
205
- }, {
206
- type: "datePicker";
207
- meta: {
208
- schemaVersion: "1.0";
209
- labelTranslationKey?: string | undefined;
210
- };
211
- attributes: {
212
- max?: string | undefined;
213
- min?: string | undefined;
214
- step?: number | undefined;
215
- };
216
- }>, z.ZodObject<{
217
- meta: z.ZodObject<{
218
- schemaVersion: z.ZodLiteral<"1.0">;
219
- labelTranslationKey: z.ZodOptional<z.ZodString>;
220
- }, "strip", z.ZodTypeAny, {
221
- schemaVersion: "1.0";
222
- labelTranslationKey?: string | undefined;
223
- }, {
224
- schemaVersion: "1.0";
225
- labelTranslationKey?: string | undefined;
226
- }>;
227
- } & {
228
- type: z.ZodLiteral<"dateRange">;
229
- columns: z.ZodObject<{
230
- start: z.ZodObject<{
231
- meta: z.ZodObject<{
232
- schemaVersion: z.ZodLiteral<"1.0">;
233
- labelTranslationKey: z.ZodOptional<z.ZodString>;
234
- }, "strip", z.ZodTypeAny, {
235
- schemaVersion: "1.0";
236
- labelTranslationKey?: string | undefined;
237
- }, {
238
- schemaVersion: "1.0";
239
- labelTranslationKey?: string | undefined;
240
- }>;
241
- type: z.ZodLiteral<"datePicker">;
242
- } & {
243
- attributes: z.ZodObject<{
244
- label: z.ZodString;
245
- }, "strip", z.ZodTypeAny, {
246
- label: string;
247
- }, {
248
- label: string;
249
- }>;
250
- }, "strip", z.ZodTypeAny, {
251
- type: "datePicker";
252
- meta: {
253
- schemaVersion: "1.0";
254
- labelTranslationKey?: string | undefined;
255
- };
256
- attributes: {
257
- label: string;
258
- };
259
- }, {
260
- type: "datePicker";
261
- meta: {
262
- schemaVersion: "1.0";
263
- labelTranslationKey?: string | undefined;
264
- };
265
- attributes: {
266
- label: string;
267
- };
268
- }>;
269
- end: z.ZodObject<{
270
- meta: z.ZodObject<{
271
- schemaVersion: z.ZodLiteral<"1.0">;
272
- labelTranslationKey: z.ZodOptional<z.ZodString>;
273
- }, "strip", z.ZodTypeAny, {
274
- schemaVersion: "1.0";
275
- labelTranslationKey?: string | undefined;
276
- }, {
277
- schemaVersion: "1.0";
278
- labelTranslationKey?: string | undefined;
279
- }>;
280
- type: z.ZodLiteral<"datePicker">;
281
- } & {
282
- attributes: z.ZodObject<{
283
- label: z.ZodString;
284
- }, "strip", z.ZodTypeAny, {
285
- label: string;
286
- }, {
287
- label: string;
288
- }>;
289
- }, "strip", z.ZodTypeAny, {
290
- type: "datePicker";
291
- meta: {
292
- schemaVersion: "1.0";
293
- labelTranslationKey?: string | undefined;
294
- };
295
- attributes: {
296
- label: string;
297
- };
298
- }, {
299
- type: "datePicker";
300
- meta: {
301
- schemaVersion: "1.0";
302
- labelTranslationKey?: string | undefined;
303
- };
304
- attributes: {
305
- label: string;
306
- };
307
- }>;
308
- }, "strip", z.ZodTypeAny, {
309
- start: {
310
- type: "datePicker";
311
- meta: {
312
- schemaVersion: "1.0";
313
- labelTranslationKey?: string | undefined;
314
- };
315
- attributes: {
316
- label: string;
317
- };
318
- };
319
- end: {
320
- type: "datePicker";
321
- meta: {
322
- schemaVersion: "1.0";
323
- labelTranslationKey?: string | undefined;
324
- };
325
- attributes: {
326
- label: string;
327
- };
328
- };
329
- }, {
330
- start: {
331
- type: "datePicker";
332
- meta: {
333
- schemaVersion: "1.0";
334
- labelTranslationKey?: string | undefined;
335
- };
336
- attributes: {
337
- label: string;
338
- };
339
- };
340
- end: {
341
- type: "datePicker";
342
- meta: {
343
- schemaVersion: "1.0";
344
- labelTranslationKey?: string | undefined;
345
- };
346
- attributes: {
347
- label: string;
348
- };
349
- };
350
- }>;
351
- }, "strip", z.ZodTypeAny, {
352
- type: "dateRange";
353
- meta: {
354
- schemaVersion: "1.0";
355
- labelTranslationKey?: string | undefined;
356
- };
357
- columns: {
358
- start: {
359
- type: "datePicker";
360
- meta: {
361
- schemaVersion: "1.0";
362
- labelTranslationKey?: string | undefined;
363
- };
364
- attributes: {
365
- label: string;
366
- };
367
- };
368
- end: {
369
- type: "datePicker";
370
- meta: {
371
- schemaVersion: "1.0";
372
- labelTranslationKey?: string | undefined;
373
- };
374
- attributes: {
375
- label: string;
376
- };
377
- };
378
- };
379
- }, {
380
- type: "dateRange";
381
- meta: {
382
- schemaVersion: "1.0";
383
- labelTranslationKey?: string | undefined;
384
- };
385
- columns: {
386
- start: {
387
- type: "datePicker";
388
- meta: {
389
- schemaVersion: "1.0";
390
- labelTranslationKey?: string | undefined;
391
- };
392
- attributes: {
393
- label: string;
394
- };
395
- };
396
- end: {
397
- type: "datePicker";
398
- meta: {
399
- schemaVersion: "1.0";
400
- labelTranslationKey?: string | undefined;
401
- };
402
- attributes: {
403
- label: string;
404
- };
405
- };
406
- };
407
- }>, z.ZodObject<{
408
- meta: z.ZodObject<{
409
- schemaVersion: z.ZodLiteral<"1.0">;
410
- labelTranslationKey: z.ZodOptional<z.ZodString>;
411
- }, "strip", z.ZodTypeAny, {
412
- schemaVersion: "1.0";
413
- labelTranslationKey?: string | undefined;
414
- }, {
415
- schemaVersion: "1.0";
416
- labelTranslationKey?: string | undefined;
417
- }>;
418
- } & {
419
- type: z.ZodLiteral<"email">;
420
- attributes: z.ZodObject<{
421
- maxLength: z.ZodOptional<z.ZodNumber>;
422
- minLength: z.ZodOptional<z.ZodNumber>;
423
- multiple: z.ZodOptional<z.ZodBoolean>;
424
- pattern: z.ZodOptional<z.ZodString>;
425
- }, "strip", z.ZodTypeAny, {
426
- maxLength?: number | undefined;
427
- minLength?: number | undefined;
428
- multiple?: boolean | undefined;
429
- pattern?: string | undefined;
430
- }, {
431
- maxLength?: number | undefined;
432
- minLength?: number | undefined;
433
- multiple?: boolean | undefined;
434
- pattern?: string | undefined;
435
- }>;
436
- }, "strip", z.ZodTypeAny, {
437
- type: "email";
438
- meta: {
439
- schemaVersion: "1.0";
440
- labelTranslationKey?: string | undefined;
441
- };
442
- attributes: {
443
- maxLength?: number | undefined;
444
- minLength?: number | undefined;
445
- multiple?: boolean | undefined;
446
- pattern?: string | undefined;
447
- };
448
- }, {
449
- type: "email";
450
- meta: {
451
- schemaVersion: "1.0";
452
- labelTranslationKey?: string | undefined;
453
- };
454
- attributes: {
455
- maxLength?: number | undefined;
456
- minLength?: number | undefined;
457
- multiple?: boolean | undefined;
458
- pattern?: string | undefined;
459
- };
460
- }>, z.ZodObject<{
461
- meta: z.ZodObject<{
462
- schemaVersion: z.ZodLiteral<"1.0">;
463
- labelTranslationKey: z.ZodOptional<z.ZodString>;
464
- }, "strip", z.ZodTypeAny, {
465
- schemaVersion: "1.0";
466
- labelTranslationKey?: string | undefined;
467
- }, {
468
- schemaVersion: "1.0";
469
- labelTranslationKey?: string | undefined;
470
- }>;
471
- } & {
472
- type: z.ZodLiteral<"filteredSearch">;
473
- graphQL: z.ZodObject<{
474
- displayFields: z.ZodArray<z.ZodObject<{
475
- propertyName: z.ZodString;
476
- label: z.ZodString;
477
- labelTranslationKey: z.ZodOptional<z.ZodString>;
478
- }, "strip", z.ZodTypeAny, {
479
- label: string;
480
- propertyName: string;
481
- labelTranslationKey?: string | undefined;
482
- }, {
483
- label: string;
484
- propertyName: string;
485
- labelTranslationKey?: string | undefined;
486
- }>, "many">;
487
- localQueryId: z.ZodOptional<z.ZodString>;
488
- query: z.ZodOptional<z.ZodString>;
489
- responseField: z.ZodString;
490
- variables: z.ZodArray<z.ZodObject<{
491
- minLength: z.ZodOptional<z.ZodNumber>;
492
- label: z.ZodOptional<z.ZodString>;
493
- labelTranslationKey: z.ZodOptional<z.ZodString>;
494
- name: z.ZodString;
495
- type: z.ZodString;
496
- defaultValue: z.ZodOptional<z.ZodString>;
497
- }, "strip", z.ZodTypeAny, {
498
- type: string;
499
- name: string;
500
- labelTranslationKey?: string | undefined;
501
- minLength?: number | undefined;
502
- label?: string | undefined;
503
- defaultValue?: string | undefined;
504
- }, {
505
- type: string;
506
- name: string;
507
- labelTranslationKey?: string | undefined;
508
- minLength?: number | undefined;
509
- label?: string | undefined;
510
- defaultValue?: string | undefined;
511
- }>, "many">;
512
- }, "strip", z.ZodTypeAny, {
513
- displayFields: {
514
- label: string;
515
- propertyName: string;
516
- labelTranslationKey?: string | undefined;
517
- }[];
518
- responseField: string;
519
- variables: {
520
- type: string;
521
- name: string;
522
- labelTranslationKey?: string | undefined;
523
- minLength?: number | undefined;
524
- label?: string | undefined;
525
- defaultValue?: string | undefined;
526
- }[];
527
- localQueryId?: string | undefined;
528
- query?: string | undefined;
529
- }, {
530
- displayFields: {
531
- label: string;
532
- propertyName: string;
533
- labelTranslationKey?: string | undefined;
534
- }[];
535
- responseField: string;
536
- variables: {
537
- type: string;
538
- name: string;
539
- labelTranslationKey?: string | undefined;
540
- minLength?: number | undefined;
541
- label?: string | undefined;
542
- defaultValue?: string | undefined;
543
- }[];
544
- localQueryId?: string | undefined;
545
- query?: string | undefined;
546
- }>;
547
- attributes: z.ZodObject<{
548
- multiple: z.ZodOptional<z.ZodBoolean>;
549
- }, "strip", z.ZodTypeAny, {
550
- multiple?: boolean | undefined;
551
- }, {
552
- multiple?: boolean | undefined;
553
- }>;
554
- }, "strip", z.ZodTypeAny, {
555
- type: "filteredSearch";
556
- meta: {
557
- schemaVersion: "1.0";
558
- labelTranslationKey?: string | undefined;
559
- };
560
- attributes: {
561
- multiple?: boolean | undefined;
562
- };
563
- graphQL: {
564
- displayFields: {
565
- label: string;
566
- propertyName: string;
567
- labelTranslationKey?: string | undefined;
568
- }[];
569
- responseField: string;
570
- variables: {
571
- type: string;
572
- name: string;
573
- labelTranslationKey?: string | undefined;
574
- minLength?: number | undefined;
575
- label?: string | undefined;
576
- defaultValue?: string | undefined;
577
- }[];
578
- localQueryId?: string | undefined;
579
- query?: string | undefined;
580
- };
581
- }, {
582
- type: "filteredSearch";
583
- meta: {
584
- schemaVersion: "1.0";
585
- labelTranslationKey?: string | undefined;
586
- };
587
- attributes: {
588
- multiple?: boolean | undefined;
589
- };
590
- graphQL: {
591
- displayFields: {
592
- label: string;
593
- propertyName: string;
594
- labelTranslationKey?: string | undefined;
595
- }[];
596
- responseField: string;
597
- variables: {
598
- type: string;
599
- name: string;
600
- labelTranslationKey?: string | undefined;
601
- minLength?: number | undefined;
602
- label?: string | undefined;
603
- defaultValue?: string | undefined;
604
- }[];
605
- localQueryId?: string | undefined;
606
- query?: string | undefined;
607
- };
608
- }>, z.ZodObject<{
609
- meta: z.ZodObject<{
610
- schemaVersion: z.ZodLiteral<"1.0">;
611
- labelTranslationKey: z.ZodOptional<z.ZodString>;
612
- }, "strip", z.ZodTypeAny, {
613
- schemaVersion: "1.0";
614
- labelTranslationKey?: string | undefined;
615
- }, {
616
- schemaVersion: "1.0";
617
- labelTranslationKey?: string | undefined;
618
- }>;
619
- } & {
620
- type: z.ZodLiteral<"number">;
621
- attributes: z.ZodObject<{
622
- max: z.ZodOptional<z.ZodNumber>;
623
- min: z.ZodOptional<z.ZodNumber>;
624
- step: z.ZodOptional<z.ZodNumber>;
625
- }, "strip", z.ZodTypeAny, {
626
- max?: number | undefined;
627
- min?: number | undefined;
628
- step?: number | undefined;
629
- }, {
630
- max?: number | undefined;
631
- min?: number | undefined;
632
- step?: number | undefined;
633
- }>;
634
- }, "strip", z.ZodTypeAny, {
635
- type: "number";
636
- meta: {
637
- schemaVersion: "1.0";
638
- labelTranslationKey?: string | undefined;
639
- };
640
- attributes: {
641
- max?: number | undefined;
642
- min?: number | undefined;
643
- step?: number | undefined;
644
- };
645
- }, {
646
- type: "number";
647
- meta: {
648
- schemaVersion: "1.0";
649
- labelTranslationKey?: string | undefined;
650
- };
651
- attributes: {
652
- max?: number | undefined;
653
- min?: number | undefined;
654
- step?: number | undefined;
655
- };
656
- }>, z.ZodObject<{
657
- meta: z.ZodObject<{
658
- schemaVersion: z.ZodLiteral<"1.0">;
659
- labelTranslationKey: z.ZodOptional<z.ZodString>;
660
- }, "strip", z.ZodTypeAny, {
661
- schemaVersion: "1.0";
662
- labelTranslationKey?: string | undefined;
663
- }, {
664
- schemaVersion: "1.0";
665
- labelTranslationKey?: string | undefined;
666
- }>;
667
- } & {
668
- type: z.ZodLiteral<"radioButtons">;
669
- options: z.ZodArray<z.ZodObject<{
670
- type: z.ZodLiteral<"option">;
671
- attributes: z.ZodObject<{
672
- label: z.ZodString;
673
- value: z.ZodString;
674
- } & {
675
- selected: z.ZodOptional<z.ZodBoolean>;
676
- }, "strip", z.ZodTypeAny, {
677
- value: string;
678
- label: string;
679
- selected?: boolean | undefined;
680
- }, {
681
- value: string;
682
- label: string;
683
- selected?: boolean | undefined;
684
- }>;
685
- }, "strip", z.ZodTypeAny, {
686
- type: "option";
687
- attributes: {
688
- value: string;
689
- label: string;
690
- selected?: boolean | undefined;
691
- };
692
- }, {
693
- type: "option";
694
- attributes: {
695
- value: string;
696
- label: string;
697
- selected?: boolean | undefined;
698
- };
699
- }>, "many">;
700
- }, "strip", z.ZodTypeAny, {
701
- type: "radioButtons";
702
- options: {
703
- type: "option";
704
- attributes: {
705
- value: string;
706
- label: string;
707
- selected?: boolean | undefined;
708
- };
709
- }[];
710
- meta: {
711
- schemaVersion: "1.0";
712
- labelTranslationKey?: string | undefined;
713
- };
714
- }, {
715
- type: "radioButtons";
716
- options: {
717
- type: "option";
718
- attributes: {
719
- value: string;
720
- label: string;
721
- selected?: boolean | undefined;
722
- };
723
- }[];
724
- meta: {
725
- schemaVersion: "1.0";
726
- labelTranslationKey?: string | undefined;
727
- };
728
- }>, z.ZodObject<{
729
- meta: z.ZodObject<{
730
- schemaVersion: z.ZodLiteral<"1.0">;
731
- labelTranslationKey: z.ZodOptional<z.ZodString>;
732
- }, "strip", z.ZodTypeAny, {
733
- schemaVersion: "1.0";
734
- labelTranslationKey?: string | undefined;
735
- }, {
736
- schemaVersion: "1.0";
737
- labelTranslationKey?: string | undefined;
738
- }>;
739
- } & {
740
- type: z.ZodLiteral<"selectBox">;
741
- options: z.ZodArray<z.ZodObject<{
742
- type: z.ZodLiteral<"option">;
743
- attributes: z.ZodObject<{
744
- label: z.ZodString;
745
- value: z.ZodString;
746
- } & {
747
- selected: z.ZodOptional<z.ZodBoolean>;
748
- }, "strip", z.ZodTypeAny, {
749
- value: string;
750
- label: string;
751
- selected?: boolean | undefined;
752
- }, {
753
- value: string;
754
- label: string;
755
- selected?: boolean | undefined;
756
- }>;
757
- }, "strip", z.ZodTypeAny, {
758
- type: "option";
759
- attributes: {
760
- value: string;
761
- label: string;
762
- selected?: boolean | undefined;
763
- };
764
- }, {
765
- type: "option";
766
- attributes: {
767
- value: string;
768
- label: string;
769
- selected?: boolean | undefined;
770
- };
771
- }>, "many">;
772
- attributes: z.ZodObject<{
773
- multiple: z.ZodOptional<z.ZodBoolean>;
774
- }, "strip", z.ZodTypeAny, {
775
- multiple?: boolean | undefined;
776
- }, {
777
- multiple?: boolean | undefined;
778
- }>;
779
- }, "strip", z.ZodTypeAny, {
780
- type: "selectBox";
781
- options: {
782
- type: "option";
783
- attributes: {
784
- value: string;
785
- label: string;
786
- selected?: boolean | undefined;
787
- };
788
- }[];
789
- meta: {
790
- schemaVersion: "1.0";
791
- labelTranslationKey?: string | undefined;
792
- };
793
- attributes: {
794
- multiple?: boolean | undefined;
795
- };
796
- }, {
797
- type: "selectBox";
798
- options: {
799
- type: "option";
800
- attributes: {
801
- value: string;
802
- label: string;
803
- selected?: boolean | undefined;
804
- };
805
- }[];
806
- meta: {
807
- schemaVersion: "1.0";
808
- labelTranslationKey?: string | undefined;
809
- };
810
- attributes: {
811
- multiple?: boolean | undefined;
812
- };
813
- }>, z.ZodObject<{} & {
814
- type: z.ZodLiteral<"textArea">;
815
- attributes: z.ZodObject<{
816
- cols: z.ZodOptional<z.ZodNumber>;
817
- maxLength: z.ZodOptional<z.ZodNumber>;
818
- minLength: z.ZodOptional<z.ZodNumber>;
819
- rows: z.ZodOptional<z.ZodNumber>;
820
- }, "strip", z.ZodTypeAny, {
821
- maxLength?: number | undefined;
822
- minLength?: number | undefined;
823
- cols?: number | undefined;
824
- rows?: number | undefined;
825
- }, {
826
- maxLength?: number | undefined;
827
- minLength?: number | undefined;
828
- cols?: number | undefined;
829
- rows?: number | undefined;
830
- }>;
831
- meta: z.ZodObject<{
832
- asRichText: z.ZodOptional<z.ZodBoolean>;
833
- }, "strip", z.ZodTypeAny, {
834
- asRichText?: boolean | undefined;
835
- }, {
836
- asRichText?: boolean | undefined;
837
- }>;
838
- }, "strip", z.ZodTypeAny, {
839
- type: "textArea";
840
- meta: {
841
- asRichText?: boolean | undefined;
842
- };
843
- attributes: {
844
- maxLength?: number | undefined;
845
- minLength?: number | undefined;
846
- cols?: number | undefined;
847
- rows?: number | undefined;
848
- };
849
- }, {
850
- type: "textArea";
851
- meta: {
852
- asRichText?: boolean | undefined;
853
- };
854
- attributes: {
855
- maxLength?: number | undefined;
856
- minLength?: number | undefined;
857
- cols?: number | undefined;
858
- rows?: number | undefined;
859
- };
860
- }>, z.ZodObject<{
861
- meta: z.ZodObject<{
862
- schemaVersion: z.ZodLiteral<"1.0">;
863
- labelTranslationKey: z.ZodOptional<z.ZodString>;
864
- }, "strip", z.ZodTypeAny, {
865
- schemaVersion: "1.0";
866
- labelTranslationKey?: string | undefined;
867
- }, {
868
- schemaVersion: "1.0";
869
- labelTranslationKey?: string | undefined;
870
- }>;
871
- } & {
872
- type: z.ZodLiteral<"text">;
873
- attributes: z.ZodObject<{
874
- maxLength: z.ZodOptional<z.ZodNumber>;
875
- minLength: z.ZodOptional<z.ZodNumber>;
876
- pattern: z.ZodOptional<z.ZodString>;
877
- }, "strip", z.ZodTypeAny, {
878
- maxLength?: number | undefined;
879
- minLength?: number | undefined;
880
- pattern?: string | undefined;
881
- }, {
882
- maxLength?: number | undefined;
883
- minLength?: number | undefined;
884
- pattern?: string | undefined;
885
- }>;
886
- }, "strip", z.ZodTypeAny, {
887
- type: "text";
888
- meta: {
889
- schemaVersion: "1.0";
890
- labelTranslationKey?: string | undefined;
891
- };
892
- attributes: {
893
- maxLength?: number | undefined;
894
- minLength?: number | undefined;
895
- pattern?: string | undefined;
896
- };
897
- }, {
898
- type: "text";
899
- meta: {
900
- schemaVersion: "1.0";
901
- labelTranslationKey?: string | undefined;
902
- };
903
- attributes: {
904
- maxLength?: number | undefined;
905
- minLength?: number | undefined;
906
- pattern?: string | undefined;
907
- };
908
- }>, z.ZodObject<{
909
- meta: z.ZodObject<{
910
- schemaVersion: z.ZodLiteral<"1.0">;
911
- labelTranslationKey: z.ZodOptional<z.ZodString>;
912
- }, "strip", z.ZodTypeAny, {
913
- schemaVersion: "1.0";
914
- labelTranslationKey?: string | undefined;
915
- }, {
916
- schemaVersion: "1.0";
917
- labelTranslationKey?: string | undefined;
918
- }>;
919
- } & {
920
- type: z.ZodLiteral<"typeaheadSearch">;
921
- graphQL: z.ZodObject<{
922
- displayFields: z.ZodArray<z.ZodObject<{
923
- propertyName: z.ZodString;
924
- label: z.ZodString;
925
- labelTranslationKey: z.ZodOptional<z.ZodString>;
926
- }, "strip", z.ZodTypeAny, {
927
- label: string;
928
- propertyName: string;
929
- labelTranslationKey?: string | undefined;
930
- }, {
931
- label: string;
932
- propertyName: string;
933
- labelTranslationKey?: string | undefined;
934
- }>, "many">;
935
- localQueryId: z.ZodOptional<z.ZodString>;
936
- query: z.ZodOptional<z.ZodString>;
937
- responseField: z.ZodString;
938
- variables: z.ZodArray<z.ZodObject<{
939
- minLength: z.ZodOptional<z.ZodNumber>;
940
- label: z.ZodOptional<z.ZodString>;
941
- labelTranslationKey: z.ZodOptional<z.ZodString>;
942
- name: z.ZodString;
943
- type: z.ZodString;
944
- defaultValue: z.ZodOptional<z.ZodString>;
945
- }, "strip", z.ZodTypeAny, {
946
- type: string;
947
- name: string;
948
- labelTranslationKey?: string | undefined;
949
- minLength?: number | undefined;
950
- label?: string | undefined;
951
- defaultValue?: string | undefined;
952
- }, {
953
- type: string;
954
- name: string;
955
- labelTranslationKey?: string | undefined;
956
- minLength?: number | undefined;
957
- label?: string | undefined;
958
- defaultValue?: string | undefined;
959
- }>, "many">;
960
- }, "strip", z.ZodTypeAny, {
961
- displayFields: {
962
- label: string;
963
- propertyName: string;
964
- labelTranslationKey?: string | undefined;
965
- }[];
966
- responseField: string;
967
- variables: {
968
- type: string;
969
- name: string;
970
- labelTranslationKey?: string | undefined;
971
- minLength?: number | undefined;
972
- label?: string | undefined;
973
- defaultValue?: string | undefined;
974
- }[];
975
- localQueryId?: string | undefined;
976
- query?: string | undefined;
977
- }, {
978
- displayFields: {
979
- label: string;
980
- propertyName: string;
981
- labelTranslationKey?: string | undefined;
982
- }[];
983
- responseField: string;
984
- variables: {
985
- type: string;
986
- name: string;
987
- labelTranslationKey?: string | undefined;
988
- minLength?: number | undefined;
989
- label?: string | undefined;
990
- defaultValue?: string | undefined;
991
- }[];
992
- localQueryId?: string | undefined;
993
- query?: string | undefined;
994
- }>;
995
- }, "strip", z.ZodTypeAny, {
996
- type: "typeaheadSearch";
997
- meta: {
998
- schemaVersion: "1.0";
999
- labelTranslationKey?: string | undefined;
1000
- };
1001
- graphQL: {
1002
- displayFields: {
1003
- label: string;
1004
- propertyName: string;
1005
- labelTranslationKey?: string | undefined;
1006
- }[];
1007
- responseField: string;
1008
- variables: {
1009
- type: string;
1010
- name: string;
1011
- labelTranslationKey?: string | undefined;
1012
- minLength?: number | undefined;
1013
- label?: string | undefined;
1014
- defaultValue?: string | undefined;
1015
- }[];
1016
- localQueryId?: string | undefined;
1017
- query?: string | undefined;
1018
- };
1019
- }, {
1020
- type: "typeaheadSearch";
1021
- meta: {
1022
- schemaVersion: "1.0";
1023
- labelTranslationKey?: string | undefined;
1024
- };
1025
- graphQL: {
1026
- displayFields: {
1027
- label: string;
1028
- propertyName: string;
1029
- labelTranslationKey?: string | undefined;
1030
- }[];
1031
- responseField: string;
1032
- variables: {
1033
- type: string;
1034
- name: string;
1035
- labelTranslationKey?: string | undefined;
1036
- minLength?: number | undefined;
1037
- label?: string | undefined;
1038
- defaultValue?: string | undefined;
1039
- }[];
1040
- localQueryId?: string | undefined;
1041
- query?: string | undefined;
1042
- };
1043
- }>, z.ZodObject<{
1044
- meta: z.ZodObject<{
1045
- schemaVersion: z.ZodLiteral<"1.0">;
1046
- labelTranslationKey: z.ZodOptional<z.ZodString>;
1047
- }, "strip", z.ZodTypeAny, {
1048
- schemaVersion: "1.0";
1049
- labelTranslationKey?: string | undefined;
1050
- }, {
1051
- schemaVersion: "1.0";
1052
- labelTranslationKey?: string | undefined;
1053
- }>;
1054
- } & {
1055
- type: z.ZodLiteral<"url">;
1056
- attributes: z.ZodObject<{
1057
- maxLength: z.ZodOptional<z.ZodNumber>;
1058
- minLength: z.ZodOptional<z.ZodNumber>;
1059
- pattern: z.ZodOptional<z.ZodString>;
1060
- }, "strip", z.ZodTypeAny, {
1061
- maxLength?: number | undefined;
1062
- minLength?: number | undefined;
1063
- pattern?: string | undefined;
1064
- }, {
1065
- maxLength?: number | undefined;
1066
- minLength?: number | undefined;
1067
- pattern?: string | undefined;
1068
- }>;
1069
- }, "strip", z.ZodTypeAny, {
1070
- type: "url";
1071
- meta: {
1072
- schemaVersion: "1.0";
1073
- labelTranslationKey?: string | undefined;
1074
- };
1075
- attributes: {
1076
- maxLength?: number | undefined;
1077
- minLength?: number | undefined;
1078
- pattern?: string | undefined;
1079
- };
1080
- }, {
1081
- type: "url";
1082
- meta: {
1083
- schemaVersion: "1.0";
1084
- labelTranslationKey?: string | undefined;
1085
- };
1086
- attributes: {
1087
- maxLength?: number | undefined;
1088
- minLength?: number | undefined;
1089
- pattern?: string | undefined;
1090
- };
1091
- }>]>, "many">;
1092
- attributes: z.ZodObject<{
1093
- canAddRows: z.ZodOptional<z.ZodBoolean>;
1094
- canRemoveRows: z.ZodOptional<z.ZodBoolean>;
1095
- initialRows: z.ZodOptional<z.ZodNumber>;
1096
- maxRows: z.ZodOptional<z.ZodNumber>;
1097
- minRows: z.ZodOptional<z.ZodNumber>;
1098
- }, "strip", z.ZodTypeAny, {
1099
- canAddRows?: boolean | undefined;
1100
- canRemoveRows?: boolean | undefined;
1101
- initialRows?: number | undefined;
1102
- maxRows?: number | undefined;
1103
- minRows?: number | undefined;
1104
- }, {
1105
- canAddRows?: boolean | undefined;
1106
- canRemoveRows?: boolean | undefined;
1107
- initialRows?: number | undefined;
1108
- maxRows?: number | undefined;
1109
- minRows?: number | undefined;
1110
- }>;
1111
- }, "strip", z.ZodTypeAny, {
1112
- type: "table";
1113
- meta: {
1114
- schemaVersion: "1.0";
1115
- labelTranslationKey?: string | undefined;
1116
- };
1117
- attributes: {
1118
- canAddRows?: boolean | undefined;
1119
- canRemoveRows?: boolean | undefined;
1120
- initialRows?: number | undefined;
1121
- maxRows?: number | undefined;
1122
- minRows?: number | undefined;
1123
- };
1124
- columns: ({
1125
- type: "boolean";
1126
- meta: {
1127
- schemaVersion: "1.0";
1128
- labelTranslationKey?: string | undefined;
1129
- };
1130
- attributes: {
1131
- checked?: boolean | undefined;
1132
- };
1133
- } | {
1134
- type: "number";
1135
- meta: {
1136
- schemaVersion: "1.0";
1137
- labelTranslationKey?: string | undefined;
1138
- };
1139
- attributes: {
1140
- max?: number | undefined;
1141
- min?: number | undefined;
1142
- step?: number | undefined;
1143
- };
1144
- } | {
1145
- type: "currency";
1146
- meta: {
1147
- denomination?: string | undefined;
1148
- };
1149
- attributes: {
1150
- max?: number | undefined;
1151
- min?: number | undefined;
1152
- step?: number | undefined;
1153
- };
1154
- } | {
1155
- type: "email";
1156
- meta: {
1157
- schemaVersion: "1.0";
1158
- labelTranslationKey?: string | undefined;
1159
- };
1160
- attributes: {
1161
- maxLength?: number | undefined;
1162
- minLength?: number | undefined;
1163
- multiple?: boolean | undefined;
1164
- pattern?: string | undefined;
1165
- };
1166
- } | {
1167
- type: "textArea";
1168
- meta: {
1169
- asRichText?: boolean | undefined;
1170
- };
1171
- attributes: {
1172
- maxLength?: number | undefined;
1173
- minLength?: number | undefined;
1174
- cols?: number | undefined;
1175
- rows?: number | undefined;
1176
- };
1177
- } | {
1178
- type: "text";
1179
- meta: {
1180
- schemaVersion: "1.0";
1181
- labelTranslationKey?: string | undefined;
1182
- };
1183
- attributes: {
1184
- maxLength?: number | undefined;
1185
- minLength?: number | undefined;
1186
- pattern?: string | undefined;
1187
- };
1188
- } | {
1189
- type: "url";
1190
- meta: {
1191
- schemaVersion: "1.0";
1192
- labelTranslationKey?: string | undefined;
1193
- };
1194
- attributes: {
1195
- maxLength?: number | undefined;
1196
- minLength?: number | undefined;
1197
- pattern?: string | undefined;
1198
- };
1199
- } | {
1200
- type: "datePicker";
1201
- meta: {
1202
- schemaVersion: "1.0";
1203
- labelTranslationKey?: string | undefined;
1204
- };
1205
- attributes: {
1206
- max?: string | undefined;
1207
- min?: string | undefined;
1208
- step?: number | undefined;
1209
- };
1210
- } | {
1211
- type: "dateRange";
1212
- meta: {
1213
- schemaVersion: "1.0";
1214
- labelTranslationKey?: string | undefined;
1215
- };
1216
- columns: {
1217
- start: {
1218
- type: "datePicker";
1219
- meta: {
1220
- schemaVersion: "1.0";
1221
- labelTranslationKey?: string | undefined;
1222
- };
1223
- attributes: {
1224
- label: string;
1225
- };
1226
- };
1227
- end: {
1228
- type: "datePicker";
1229
- meta: {
1230
- schemaVersion: "1.0";
1231
- labelTranslationKey?: string | undefined;
1232
- };
1233
- attributes: {
1234
- label: string;
1235
- };
1236
- };
1237
- };
1238
- } | {
1239
- type: "filteredSearch";
1240
- meta: {
1241
- schemaVersion: "1.0";
1242
- labelTranslationKey?: string | undefined;
1243
- };
1244
- attributes: {
1245
- multiple?: boolean | undefined;
1246
- };
1247
- graphQL: {
1248
- displayFields: {
1249
- label: string;
1250
- propertyName: string;
1251
- labelTranslationKey?: string | undefined;
1252
- }[];
1253
- responseField: string;
1254
- variables: {
1255
- type: string;
1256
- name: string;
1257
- labelTranslationKey?: string | undefined;
1258
- minLength?: number | undefined;
1259
- label?: string | undefined;
1260
- defaultValue?: string | undefined;
1261
- }[];
1262
- localQueryId?: string | undefined;
1263
- query?: string | undefined;
1264
- };
1265
- } | {
1266
- type: "typeaheadSearch";
1267
- meta: {
1268
- schemaVersion: "1.0";
1269
- labelTranslationKey?: string | undefined;
1270
- };
1271
- graphQL: {
1272
- displayFields: {
1273
- label: string;
1274
- propertyName: string;
1275
- labelTranslationKey?: string | undefined;
1276
- }[];
1277
- responseField: string;
1278
- variables: {
1279
- type: string;
1280
- name: string;
1281
- labelTranslationKey?: string | undefined;
1282
- minLength?: number | undefined;
1283
- label?: string | undefined;
1284
- defaultValue?: string | undefined;
1285
- }[];
1286
- localQueryId?: string | undefined;
1287
- query?: string | undefined;
1288
- };
1289
- } | {
1290
- type: "checkBoxes";
1291
- options: {
1292
- type: "option";
1293
- attributes: {
1294
- value: string;
1295
- label: string;
1296
- checked?: boolean | undefined;
1297
- };
1298
- }[];
1299
- meta: {
1300
- schemaVersion: "1.0";
1301
- labelTranslationKey?: string | undefined;
1302
- };
1303
- } | {
1304
- type: "radioButtons";
1305
- options: {
1306
- type: "option";
1307
- attributes: {
1308
- value: string;
1309
- label: string;
1310
- selected?: boolean | undefined;
1311
- };
1312
- }[];
1313
- meta: {
1314
- schemaVersion: "1.0";
1315
- labelTranslationKey?: string | undefined;
1316
- };
1317
- } | {
1318
- type: "selectBox";
1319
- options: {
1320
- type: "option";
1321
- attributes: {
1322
- value: string;
1323
- label: string;
1324
- selected?: boolean | undefined;
1325
- };
1326
- }[];
1327
- meta: {
1328
- schemaVersion: "1.0";
1329
- labelTranslationKey?: string | undefined;
1330
- };
1331
- attributes: {
1332
- multiple?: boolean | undefined;
1333
- };
1334
- })[];
1335
- }, {
1336
- type: "table";
1337
- meta: {
1338
- schemaVersion: "1.0";
1339
- labelTranslationKey?: string | undefined;
1340
- };
1341
- attributes: {
1342
- canAddRows?: boolean | undefined;
1343
- canRemoveRows?: boolean | undefined;
1344
- initialRows?: number | undefined;
1345
- maxRows?: number | undefined;
1346
- minRows?: number | undefined;
1347
- };
1348
- columns: ({
1349
- type: "boolean";
1350
- meta: {
1351
- schemaVersion: "1.0";
1352
- labelTranslationKey?: string | undefined;
1353
- };
1354
- attributes: {
1355
- checked?: boolean | undefined;
1356
- };
1357
- } | {
1358
- type: "number";
1359
- meta: {
1360
- schemaVersion: "1.0";
1361
- labelTranslationKey?: string | undefined;
1362
- };
1363
- attributes: {
1364
- max?: number | undefined;
1365
- min?: number | undefined;
1366
- step?: number | undefined;
1367
- };
1368
- } | {
1369
- type: "currency";
1370
- meta: {
1371
- denomination?: string | undefined;
1372
- };
1373
- attributes: {
1374
- max?: number | undefined;
1375
- min?: number | undefined;
1376
- step?: number | undefined;
1377
- };
1378
- } | {
1379
- type: "email";
1380
- meta: {
1381
- schemaVersion: "1.0";
1382
- labelTranslationKey?: string | undefined;
1383
- };
1384
- attributes: {
1385
- maxLength?: number | undefined;
1386
- minLength?: number | undefined;
1387
- multiple?: boolean | undefined;
1388
- pattern?: string | undefined;
1389
- };
1390
- } | {
1391
- type: "textArea";
1392
- meta: {
1393
- asRichText?: boolean | undefined;
1394
- };
1395
- attributes: {
1396
- maxLength?: number | undefined;
1397
- minLength?: number | undefined;
1398
- cols?: number | undefined;
1399
- rows?: number | undefined;
1400
- };
1401
- } | {
1402
- type: "text";
1403
- meta: {
1404
- schemaVersion: "1.0";
1405
- labelTranslationKey?: string | undefined;
1406
- };
1407
- attributes: {
1408
- maxLength?: number | undefined;
1409
- minLength?: number | undefined;
1410
- pattern?: string | undefined;
1411
- };
1412
- } | {
1413
- type: "url";
1414
- meta: {
1415
- schemaVersion: "1.0";
1416
- labelTranslationKey?: string | undefined;
1417
- };
1418
- attributes: {
1419
- maxLength?: number | undefined;
1420
- minLength?: number | undefined;
1421
- pattern?: string | undefined;
1422
- };
1423
- } | {
1424
- type: "datePicker";
1425
- meta: {
1426
- schemaVersion: "1.0";
1427
- labelTranslationKey?: string | undefined;
1428
- };
1429
- attributes: {
1430
- max?: string | undefined;
1431
- min?: string | undefined;
1432
- step?: number | undefined;
1433
- };
1434
- } | {
1435
- type: "dateRange";
1436
- meta: {
1437
- schemaVersion: "1.0";
1438
- labelTranslationKey?: string | undefined;
1439
- };
1440
- columns: {
1441
- start: {
1442
- type: "datePicker";
1443
- meta: {
1444
- schemaVersion: "1.0";
1445
- labelTranslationKey?: string | undefined;
1446
- };
1447
- attributes: {
1448
- label: string;
1449
- };
1450
- };
1451
- end: {
1452
- type: "datePicker";
1453
- meta: {
1454
- schemaVersion: "1.0";
1455
- labelTranslationKey?: string | undefined;
1456
- };
1457
- attributes: {
1458
- label: string;
1459
- };
1460
- };
1461
- };
1462
- } | {
1463
- type: "filteredSearch";
1464
- meta: {
1465
- schemaVersion: "1.0";
1466
- labelTranslationKey?: string | undefined;
1467
- };
1468
- attributes: {
1469
- multiple?: boolean | undefined;
1470
- };
1471
- graphQL: {
1472
- displayFields: {
1473
- label: string;
1474
- propertyName: string;
1475
- labelTranslationKey?: string | undefined;
1476
- }[];
1477
- responseField: string;
1478
- variables: {
1479
- type: string;
1480
- name: string;
1481
- labelTranslationKey?: string | undefined;
1482
- minLength?: number | undefined;
1483
- label?: string | undefined;
1484
- defaultValue?: string | undefined;
1485
- }[];
1486
- localQueryId?: string | undefined;
1487
- query?: string | undefined;
1488
- };
1489
- } | {
1490
- type: "typeaheadSearch";
1491
- meta: {
1492
- schemaVersion: "1.0";
1493
- labelTranslationKey?: string | undefined;
1494
- };
1495
- graphQL: {
1496
- displayFields: {
1497
- label: string;
1498
- propertyName: string;
1499
- labelTranslationKey?: string | undefined;
1500
- }[];
1501
- responseField: string;
1502
- variables: {
1503
- type: string;
1504
- name: string;
1505
- labelTranslationKey?: string | undefined;
1506
- minLength?: number | undefined;
1507
- label?: string | undefined;
1508
- defaultValue?: string | undefined;
1509
- }[];
1510
- localQueryId?: string | undefined;
1511
- query?: string | undefined;
1512
- };
1513
- } | {
1514
- type: "checkBoxes";
1515
- options: {
1516
- type: "option";
1517
- attributes: {
1518
- value: string;
1519
- label: string;
1520
- checked?: boolean | undefined;
1521
- };
1522
- }[];
1523
- meta: {
1524
- schemaVersion: "1.0";
1525
- labelTranslationKey?: string | undefined;
1526
- };
1527
- } | {
1528
- type: "radioButtons";
1529
- options: {
1530
- type: "option";
1531
- attributes: {
1532
- value: string;
1533
- label: string;
1534
- selected?: boolean | undefined;
1535
- };
1536
- }[];
1537
- meta: {
1538
- schemaVersion: "1.0";
1539
- labelTranslationKey?: string | undefined;
1540
- };
1541
- } | {
1542
- type: "selectBox";
1543
- options: {
1544
- type: "option";
1545
- attributes: {
1546
- value: string;
1547
- label: string;
1548
- selected?: boolean | undefined;
1549
- };
1550
- }[];
1551
- meta: {
1552
- schemaVersion: "1.0";
1553
- labelTranslationKey?: string | undefined;
1554
- };
1555
- attributes: {
1556
- multiple?: boolean | undefined;
1557
- };
1558
- })[];
1559
- }>;
1
+ import { z } from 'zod';
2
+ export * from './question';
3
+ export * from './dateQuestions';
4
+ export * from './graphQLQuestions';
5
+ export * from './optionBasedQuestions';
6
+ export * from './primitiveQuestions';
7
+ export * from './tableQuestions';
1560
8
  export declare const AnyQuestion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1561
9
  meta: z.ZodObject<{
1562
10
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -3591,6 +2039,51 @@ export declare const AnyQuestion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3591
2039
  };
3592
2040
  };
3593
2041
  };
2042
+ } | {
2043
+ type: "checkBoxes";
2044
+ options: {
2045
+ type: "option";
2046
+ attributes: {
2047
+ value: string;
2048
+ label: string;
2049
+ checked?: boolean | undefined;
2050
+ };
2051
+ }[];
2052
+ meta: {
2053
+ schemaVersion: "1.0";
2054
+ labelTranslationKey?: string | undefined;
2055
+ };
2056
+ } | {
2057
+ type: "radioButtons";
2058
+ options: {
2059
+ type: "option";
2060
+ attributes: {
2061
+ value: string;
2062
+ label: string;
2063
+ selected?: boolean | undefined;
2064
+ };
2065
+ }[];
2066
+ meta: {
2067
+ schemaVersion: "1.0";
2068
+ labelTranslationKey?: string | undefined;
2069
+ };
2070
+ } | {
2071
+ type: "selectBox";
2072
+ options: {
2073
+ type: "option";
2074
+ attributes: {
2075
+ value: string;
2076
+ label: string;
2077
+ selected?: boolean | undefined;
2078
+ };
2079
+ }[];
2080
+ meta: {
2081
+ schemaVersion: "1.0";
2082
+ labelTranslationKey?: string | undefined;
2083
+ };
2084
+ attributes: {
2085
+ multiple?: boolean | undefined;
2086
+ };
3594
2087
  } | {
3595
2088
  type: "filteredSearch";
3596
2089
  meta: {
@@ -3642,51 +2135,6 @@ export declare const AnyQuestion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3642
2135
  localQueryId?: string | undefined;
3643
2136
  query?: string | undefined;
3644
2137
  };
3645
- } | {
3646
- type: "checkBoxes";
3647
- options: {
3648
- type: "option";
3649
- attributes: {
3650
- value: string;
3651
- label: string;
3652
- checked?: boolean | undefined;
3653
- };
3654
- }[];
3655
- meta: {
3656
- schemaVersion: "1.0";
3657
- labelTranslationKey?: string | undefined;
3658
- };
3659
- } | {
3660
- type: "radioButtons";
3661
- options: {
3662
- type: "option";
3663
- attributes: {
3664
- value: string;
3665
- label: string;
3666
- selected?: boolean | undefined;
3667
- };
3668
- }[];
3669
- meta: {
3670
- schemaVersion: "1.0";
3671
- labelTranslationKey?: string | undefined;
3672
- };
3673
- } | {
3674
- type: "selectBox";
3675
- options: {
3676
- type: "option";
3677
- attributes: {
3678
- value: string;
3679
- label: string;
3680
- selected?: boolean | undefined;
3681
- };
3682
- }[];
3683
- meta: {
3684
- schemaVersion: "1.0";
3685
- labelTranslationKey?: string | undefined;
3686
- };
3687
- attributes: {
3688
- multiple?: boolean | undefined;
3689
- };
3690
2138
  })[];
3691
2139
  }, {
3692
2140
  type: "table";
@@ -3815,6 +2263,51 @@ export declare const AnyQuestion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3815
2263
  };
3816
2264
  };
3817
2265
  };
2266
+ } | {
2267
+ type: "checkBoxes";
2268
+ options: {
2269
+ type: "option";
2270
+ attributes: {
2271
+ value: string;
2272
+ label: string;
2273
+ checked?: boolean | undefined;
2274
+ };
2275
+ }[];
2276
+ meta: {
2277
+ schemaVersion: "1.0";
2278
+ labelTranslationKey?: string | undefined;
2279
+ };
2280
+ } | {
2281
+ type: "radioButtons";
2282
+ options: {
2283
+ type: "option";
2284
+ attributes: {
2285
+ value: string;
2286
+ label: string;
2287
+ selected?: boolean | undefined;
2288
+ };
2289
+ }[];
2290
+ meta: {
2291
+ schemaVersion: "1.0";
2292
+ labelTranslationKey?: string | undefined;
2293
+ };
2294
+ } | {
2295
+ type: "selectBox";
2296
+ options: {
2297
+ type: "option";
2298
+ attributes: {
2299
+ value: string;
2300
+ label: string;
2301
+ selected?: boolean | undefined;
2302
+ };
2303
+ }[];
2304
+ meta: {
2305
+ schemaVersion: "1.0";
2306
+ labelTranslationKey?: string | undefined;
2307
+ };
2308
+ attributes: {
2309
+ multiple?: boolean | undefined;
2310
+ };
3818
2311
  } | {
3819
2312
  type: "filteredSearch";
3820
2313
  meta: {
@@ -3866,51 +2359,6 @@ export declare const AnyQuestion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3866
2359
  localQueryId?: string | undefined;
3867
2360
  query?: string | undefined;
3868
2361
  };
3869
- } | {
3870
- type: "checkBoxes";
3871
- options: {
3872
- type: "option";
3873
- attributes: {
3874
- value: string;
3875
- label: string;
3876
- checked?: boolean | undefined;
3877
- };
3878
- }[];
3879
- meta: {
3880
- schemaVersion: "1.0";
3881
- labelTranslationKey?: string | undefined;
3882
- };
3883
- } | {
3884
- type: "radioButtons";
3885
- options: {
3886
- type: "option";
3887
- attributes: {
3888
- value: string;
3889
- label: string;
3890
- selected?: boolean | undefined;
3891
- };
3892
- }[];
3893
- meta: {
3894
- schemaVersion: "1.0";
3895
- labelTranslationKey?: string | undefined;
3896
- };
3897
- } | {
3898
- type: "selectBox";
3899
- options: {
3900
- type: "option";
3901
- attributes: {
3902
- value: string;
3903
- label: string;
3904
- selected?: boolean | undefined;
3905
- };
3906
- }[];
3907
- meta: {
3908
- schemaVersion: "1.0";
3909
- labelTranslationKey?: string | undefined;
3910
- };
3911
- attributes: {
3912
- multiple?: boolean | undefined;
3913
- };
3914
2362
  })[];
3915
2363
  }>, z.ZodObject<{} & {
3916
2364
  type: z.ZodLiteral<"textArea">;
@@ -4191,5 +2639,4 @@ export declare const AnyQuestion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4191
2639
  pattern?: string | undefined;
4192
2640
  };
4193
2641
  }>]>;
4194
- export type TableQuestionType = z.infer<typeof TableQuestion>;
4195
2642
  export type AnyQuestionType = z.infer<typeof AnyQuestion>;