@dmptool/types 1.0.3 → 1.0.5

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 (33) hide show
  1. package/README.md +25 -3
  2. package/dist/answers/answer.d.ts +3 -3
  3. package/dist/answers/index.d.ts +2 -0
  4. package/dist/answers/index.js +19 -1
  5. package/dist/questions/dateQuestions.d.ts +6 -6
  6. package/dist/questions/dateQuestions.js +1 -1
  7. package/dist/questions/graphQLQuestions.d.ts +36 -36
  8. package/dist/questions/graphQLQuestions.js +1 -1
  9. package/dist/questions/index.d.ts +250 -248
  10. package/dist/questions/index.js +19 -1
  11. package/dist/questions/optionBasedQuestions.d.ts +6 -6
  12. package/dist/questions/optionBasedQuestions.js +1 -1
  13. package/dist/questions/primitiveQuestions.d.ts +42 -42
  14. package/dist/questions/primitiveQuestions.js +6 -6
  15. package/dist/questions/question.d.ts +4 -4
  16. package/dist/questions/question.js +0 -1
  17. package/dist/questions/tableQuestions.d.ts +248 -248
  18. package/dist/questions/tableQuestions.js +1 -1
  19. package/dist/schemas/anyQuestion.schema.json +11 -22
  20. package/dist/schemas/anyTableColumnQuestion.schema.json +10 -20
  21. package/dist/schemas/booleanQuestion.schema.json +1 -2
  22. package/dist/schemas/currencyQuestion.schema.json +1 -2
  23. package/dist/schemas/datePickerQuestion.schema.json +1 -2
  24. package/dist/schemas/emailQuestion.schema.json +1 -2
  25. package/dist/schemas/filteredSearchQuestion.schema.json +1 -2
  26. package/dist/schemas/numberQuestion.schema.json +1 -2
  27. package/dist/schemas/selectBoxQuestion.schema.json +1 -2
  28. package/dist/schemas/tableQuestion.schema.json +11 -22
  29. package/dist/schemas/textAreaQuestion.schema.json +1 -2
  30. package/dist/schemas/textQuestion.schema.json +1 -2
  31. package/dist/schemas/typeaheadSearchQuestion.schema.json +1 -2
  32. package/dist/schemas/urlQuestion.schema.json +1 -2
  33. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { QuestionTypesEnum } from './question';
2
3
  export * from './question';
3
4
  export * from './dateQuestions';
4
5
  export * from './graphQLQuestions';
@@ -18,31 +19,31 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
18
19
  }>;
19
20
  } & {
20
21
  type: z.ZodLiteral<"boolean">;
21
- attributes: z.ZodObject<{
22
+ attributes: z.ZodOptional<z.ZodObject<{
22
23
  checked: z.ZodOptional<z.ZodBoolean>;
23
24
  }, "strip", z.ZodTypeAny, {
24
25
  checked?: boolean | undefined;
25
26
  }, {
26
27
  checked?: boolean | undefined;
27
- }>;
28
+ }>>;
28
29
  }, "strip", z.ZodTypeAny, {
29
30
  type: "boolean";
30
31
  meta: {
31
32
  schemaVersion: "1.0";
32
33
  labelTranslationKey?: string | undefined;
33
34
  };
34
- attributes: {
35
+ attributes?: {
35
36
  checked?: boolean | undefined;
36
- };
37
+ } | undefined;
37
38
  }, {
38
39
  type: "boolean";
39
40
  meta: {
40
41
  schemaVersion: "1.0";
41
42
  labelTranslationKey?: string | undefined;
42
43
  };
43
- attributes: {
44
+ attributes?: {
44
45
  checked?: boolean | undefined;
45
- };
46
+ } | undefined;
46
47
  }>, z.ZodObject<{
47
48
  meta: z.ZodObject<{
48
49
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -116,7 +117,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
116
117
  labelTranslationKey?: string | undefined;
117
118
  };
118
119
  }>, z.ZodObject<{
119
- attributes: z.ZodObject<{
120
+ attributes: z.ZodOptional<z.ZodObject<{
120
121
  max: z.ZodOptional<z.ZodNumber>;
121
122
  min: z.ZodOptional<z.ZodNumber>;
122
123
  step: z.ZodOptional<z.ZodNumber>;
@@ -128,7 +129,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
128
129
  max?: number | undefined;
129
130
  min?: number | undefined;
130
131
  step?: number | undefined;
131
- }>;
132
+ }>>;
132
133
  } & {
133
134
  type: z.ZodLiteral<"currency">;
134
135
  meta: z.ZodObject<{
@@ -143,21 +144,21 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
143
144
  meta: {
144
145
  denomination?: string | undefined;
145
146
  };
146
- attributes: {
147
+ attributes?: {
147
148
  max?: number | undefined;
148
149
  min?: number | undefined;
149
150
  step?: number | undefined;
150
- };
151
+ } | undefined;
151
152
  }, {
152
153
  type: "currency";
153
154
  meta: {
154
155
  denomination?: string | undefined;
155
156
  };
156
- attributes: {
157
+ attributes?: {
157
158
  max?: number | undefined;
158
159
  min?: number | undefined;
159
160
  step?: number | undefined;
160
- };
161
+ } | undefined;
161
162
  }>, z.ZodObject<{
162
163
  meta: z.ZodObject<{
163
164
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -171,7 +172,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
171
172
  }>;
172
173
  } & {
173
174
  type: z.ZodLiteral<"datePicker">;
174
- attributes: z.ZodObject<{
175
+ attributes: z.ZodOptional<z.ZodObject<{
175
176
  max: z.ZodOptional<z.ZodString>;
176
177
  min: z.ZodOptional<z.ZodString>;
177
178
  step: z.ZodOptional<z.ZodNumber>;
@@ -183,29 +184,29 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
183
184
  max?: string | undefined;
184
185
  min?: string | undefined;
185
186
  step?: number | undefined;
186
- }>;
187
+ }>>;
187
188
  }, "strip", z.ZodTypeAny, {
188
189
  type: "datePicker";
189
190
  meta: {
190
191
  schemaVersion: "1.0";
191
192
  labelTranslationKey?: string | undefined;
192
193
  };
193
- attributes: {
194
+ attributes?: {
194
195
  max?: string | undefined;
195
196
  min?: string | undefined;
196
197
  step?: number | undefined;
197
- };
198
+ } | undefined;
198
199
  }, {
199
200
  type: "datePicker";
200
201
  meta: {
201
202
  schemaVersion: "1.0";
202
203
  labelTranslationKey?: string | undefined;
203
204
  };
204
- attributes: {
205
+ attributes?: {
205
206
  max?: string | undefined;
206
207
  min?: string | undefined;
207
208
  step?: number | undefined;
208
- };
209
+ } | undefined;
209
210
  }>, z.ZodObject<{
210
211
  meta: z.ZodObject<{
211
212
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -410,7 +411,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
410
411
  }>;
411
412
  } & {
412
413
  type: z.ZodLiteral<"email">;
413
- attributes: z.ZodObject<{
414
+ attributes: z.ZodOptional<z.ZodObject<{
414
415
  maxLength: z.ZodOptional<z.ZodNumber>;
415
416
  minLength: z.ZodOptional<z.ZodNumber>;
416
417
  multiple: z.ZodOptional<z.ZodBoolean>;
@@ -425,31 +426,31 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
425
426
  minLength?: number | undefined;
426
427
  multiple?: boolean | undefined;
427
428
  pattern?: string | undefined;
428
- }>;
429
+ }>>;
429
430
  }, "strip", z.ZodTypeAny, {
430
431
  type: "email";
431
432
  meta: {
432
433
  schemaVersion: "1.0";
433
434
  labelTranslationKey?: string | undefined;
434
435
  };
435
- attributes: {
436
+ attributes?: {
436
437
  maxLength?: number | undefined;
437
438
  minLength?: number | undefined;
438
439
  multiple?: boolean | undefined;
439
440
  pattern?: string | undefined;
440
- };
441
+ } | undefined;
441
442
  }, {
442
443
  type: "email";
443
444
  meta: {
444
445
  schemaVersion: "1.0";
445
446
  labelTranslationKey?: string | undefined;
446
447
  };
447
- attributes: {
448
+ attributes?: {
448
449
  maxLength?: number | undefined;
449
450
  minLength?: number | undefined;
450
451
  multiple?: boolean | undefined;
451
452
  pattern?: string | undefined;
452
- };
453
+ } | undefined;
453
454
  }>, z.ZodObject<{
454
455
  meta: z.ZodObject<{
455
456
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -480,7 +481,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
480
481
  localQueryId: z.ZodOptional<z.ZodString>;
481
482
  query: z.ZodOptional<z.ZodString>;
482
483
  responseField: z.ZodString;
483
- variables: z.ZodArray<z.ZodObject<{
484
+ variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
484
485
  minLength: z.ZodOptional<z.ZodNumber>;
485
486
  label: z.ZodOptional<z.ZodString>;
486
487
  labelTranslationKey: z.ZodOptional<z.ZodString>;
@@ -501,7 +502,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
501
502
  minLength?: number | undefined;
502
503
  label?: string | undefined;
503
504
  defaultValue?: string | undefined;
504
- }>, "many">;
505
+ }>, "many">>;
505
506
  }, "strip", z.ZodTypeAny, {
506
507
  displayFields: {
507
508
  label: string;
@@ -509,16 +510,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
509
510
  labelTranslationKey?: string | undefined;
510
511
  }[];
511
512
  responseField: string;
512
- variables: {
513
+ localQueryId?: string | undefined;
514
+ query?: string | undefined;
515
+ variables?: {
513
516
  type: string;
514
517
  name: string;
515
518
  labelTranslationKey?: string | undefined;
516
519
  minLength?: number | undefined;
517
520
  label?: string | undefined;
518
521
  defaultValue?: string | undefined;
519
- }[];
520
- localQueryId?: string | undefined;
521
- query?: string | undefined;
522
+ }[] | undefined;
522
523
  }, {
523
524
  displayFields: {
524
525
  label: string;
@@ -526,16 +527,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
526
527
  labelTranslationKey?: string | undefined;
527
528
  }[];
528
529
  responseField: string;
529
- variables: {
530
+ localQueryId?: string | undefined;
531
+ query?: string | undefined;
532
+ variables?: {
530
533
  type: string;
531
534
  name: string;
532
535
  labelTranslationKey?: string | undefined;
533
536
  minLength?: number | undefined;
534
537
  label?: string | undefined;
535
538
  defaultValue?: string | undefined;
536
- }[];
537
- localQueryId?: string | undefined;
538
- query?: string | undefined;
539
+ }[] | undefined;
539
540
  }>;
540
541
  attributes: z.ZodObject<{
541
542
  multiple: z.ZodOptional<z.ZodBoolean>;
@@ -560,16 +561,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
560
561
  labelTranslationKey?: string | undefined;
561
562
  }[];
562
563
  responseField: string;
563
- variables: {
564
+ localQueryId?: string | undefined;
565
+ query?: string | undefined;
566
+ variables?: {
564
567
  type: string;
565
568
  name: string;
566
569
  labelTranslationKey?: string | undefined;
567
570
  minLength?: number | undefined;
568
571
  label?: string | undefined;
569
572
  defaultValue?: string | undefined;
570
- }[];
571
- localQueryId?: string | undefined;
572
- query?: string | undefined;
573
+ }[] | undefined;
573
574
  };
574
575
  }, {
575
576
  type: "filteredSearch";
@@ -587,16 +588,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
587
588
  labelTranslationKey?: string | undefined;
588
589
  }[];
589
590
  responseField: string;
590
- variables: {
591
+ localQueryId?: string | undefined;
592
+ query?: string | undefined;
593
+ variables?: {
591
594
  type: string;
592
595
  name: string;
593
596
  labelTranslationKey?: string | undefined;
594
597
  minLength?: number | undefined;
595
598
  label?: string | undefined;
596
599
  defaultValue?: string | undefined;
597
- }[];
598
- localQueryId?: string | undefined;
599
- query?: string | undefined;
600
+ }[] | undefined;
600
601
  };
601
602
  }>, z.ZodObject<{
602
603
  meta: z.ZodObject<{
@@ -611,7 +612,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
611
612
  }>;
612
613
  } & {
613
614
  type: z.ZodLiteral<"number">;
614
- attributes: z.ZodObject<{
615
+ attributes: z.ZodOptional<z.ZodObject<{
615
616
  max: z.ZodOptional<z.ZodNumber>;
616
617
  min: z.ZodOptional<z.ZodNumber>;
617
618
  step: z.ZodOptional<z.ZodNumber>;
@@ -623,29 +624,29 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
623
624
  max?: number | undefined;
624
625
  min?: number | undefined;
625
626
  step?: number | undefined;
626
- }>;
627
+ }>>;
627
628
  }, "strip", z.ZodTypeAny, {
628
629
  type: "number";
629
630
  meta: {
630
631
  schemaVersion: "1.0";
631
632
  labelTranslationKey?: string | undefined;
632
633
  };
633
- attributes: {
634
+ attributes?: {
634
635
  max?: number | undefined;
635
636
  min?: number | undefined;
636
637
  step?: number | undefined;
637
- };
638
+ } | undefined;
638
639
  }, {
639
640
  type: "number";
640
641
  meta: {
641
642
  schemaVersion: "1.0";
642
643
  labelTranslationKey?: string | undefined;
643
644
  };
644
- attributes: {
645
+ attributes?: {
645
646
  max?: number | undefined;
646
647
  min?: number | undefined;
647
648
  step?: number | undefined;
648
- };
649
+ } | undefined;
649
650
  }>, z.ZodObject<{
650
651
  meta: z.ZodObject<{
651
652
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -762,13 +763,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
762
763
  selected?: boolean | undefined;
763
764
  };
764
765
  }>, "many">;
765
- attributes: z.ZodObject<{
766
+ attributes: z.ZodOptional<z.ZodObject<{
766
767
  multiple: z.ZodOptional<z.ZodBoolean>;
767
768
  }, "strip", z.ZodTypeAny, {
768
769
  multiple?: boolean | undefined;
769
770
  }, {
770
771
  multiple?: boolean | undefined;
771
- }>;
772
+ }>>;
772
773
  }, "strip", z.ZodTypeAny, {
773
774
  type: "selectBox";
774
775
  options: {
@@ -783,9 +784,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
783
784
  schemaVersion: "1.0";
784
785
  labelTranslationKey?: string | undefined;
785
786
  };
786
- attributes: {
787
+ attributes?: {
787
788
  multiple?: boolean | undefined;
788
- };
789
+ } | undefined;
789
790
  }, {
790
791
  type: "selectBox";
791
792
  options: {
@@ -800,9 +801,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
800
801
  schemaVersion: "1.0";
801
802
  labelTranslationKey?: string | undefined;
802
803
  };
803
- attributes: {
804
+ attributes?: {
804
805
  multiple?: boolean | undefined;
805
- };
806
+ } | undefined;
806
807
  }>, z.ZodObject<{
807
808
  meta: z.ZodObject<{
808
809
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -829,31 +830,31 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
829
830
  }>;
830
831
  } & {
831
832
  type: z.ZodLiteral<"boolean">;
832
- attributes: z.ZodObject<{
833
+ attributes: z.ZodOptional<z.ZodObject<{
833
834
  checked: z.ZodOptional<z.ZodBoolean>;
834
835
  }, "strip", z.ZodTypeAny, {
835
836
  checked?: boolean | undefined;
836
837
  }, {
837
838
  checked?: boolean | undefined;
838
- }>;
839
+ }>>;
839
840
  }, "strip", z.ZodTypeAny, {
840
841
  type: "boolean";
841
842
  meta: {
842
843
  schemaVersion: "1.0";
843
844
  labelTranslationKey?: string | undefined;
844
845
  };
845
- attributes: {
846
+ attributes?: {
846
847
  checked?: boolean | undefined;
847
- };
848
+ } | undefined;
848
849
  }, {
849
850
  type: "boolean";
850
851
  meta: {
851
852
  schemaVersion: "1.0";
852
853
  labelTranslationKey?: string | undefined;
853
854
  };
854
- attributes: {
855
+ attributes?: {
855
856
  checked?: boolean | undefined;
856
- };
857
+ } | undefined;
857
858
  }>, z.ZodObject<{
858
859
  meta: z.ZodObject<{
859
860
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -927,7 +928,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
927
928
  labelTranslationKey?: string | undefined;
928
929
  };
929
930
  }>, z.ZodObject<{
930
- attributes: z.ZodObject<{
931
+ attributes: z.ZodOptional<z.ZodObject<{
931
932
  max: z.ZodOptional<z.ZodNumber>;
932
933
  min: z.ZodOptional<z.ZodNumber>;
933
934
  step: z.ZodOptional<z.ZodNumber>;
@@ -939,7 +940,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
939
940
  max?: number | undefined;
940
941
  min?: number | undefined;
941
942
  step?: number | undefined;
942
- }>;
943
+ }>>;
943
944
  } & {
944
945
  type: z.ZodLiteral<"currency">;
945
946
  meta: z.ZodObject<{
@@ -954,21 +955,21 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
954
955
  meta: {
955
956
  denomination?: string | undefined;
956
957
  };
957
- attributes: {
958
+ attributes?: {
958
959
  max?: number | undefined;
959
960
  min?: number | undefined;
960
961
  step?: number | undefined;
961
- };
962
+ } | undefined;
962
963
  }, {
963
964
  type: "currency";
964
965
  meta: {
965
966
  denomination?: string | undefined;
966
967
  };
967
- attributes: {
968
+ attributes?: {
968
969
  max?: number | undefined;
969
970
  min?: number | undefined;
970
971
  step?: number | undefined;
971
- };
972
+ } | undefined;
972
973
  }>, z.ZodObject<{
973
974
  meta: z.ZodObject<{
974
975
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -982,7 +983,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
982
983
  }>;
983
984
  } & {
984
985
  type: z.ZodLiteral<"datePicker">;
985
- attributes: z.ZodObject<{
986
+ attributes: z.ZodOptional<z.ZodObject<{
986
987
  max: z.ZodOptional<z.ZodString>;
987
988
  min: z.ZodOptional<z.ZodString>;
988
989
  step: z.ZodOptional<z.ZodNumber>;
@@ -994,29 +995,29 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
994
995
  max?: string | undefined;
995
996
  min?: string | undefined;
996
997
  step?: number | undefined;
997
- }>;
998
+ }>>;
998
999
  }, "strip", z.ZodTypeAny, {
999
1000
  type: "datePicker";
1000
1001
  meta: {
1001
1002
  schemaVersion: "1.0";
1002
1003
  labelTranslationKey?: string | undefined;
1003
1004
  };
1004
- attributes: {
1005
+ attributes?: {
1005
1006
  max?: string | undefined;
1006
1007
  min?: string | undefined;
1007
1008
  step?: number | undefined;
1008
- };
1009
+ } | undefined;
1009
1010
  }, {
1010
1011
  type: "datePicker";
1011
1012
  meta: {
1012
1013
  schemaVersion: "1.0";
1013
1014
  labelTranslationKey?: string | undefined;
1014
1015
  };
1015
- attributes: {
1016
+ attributes?: {
1016
1017
  max?: string | undefined;
1017
1018
  min?: string | undefined;
1018
1019
  step?: number | undefined;
1019
- };
1020
+ } | undefined;
1020
1021
  }>, z.ZodObject<{
1021
1022
  meta: z.ZodObject<{
1022
1023
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -1221,7 +1222,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1221
1222
  }>;
1222
1223
  } & {
1223
1224
  type: z.ZodLiteral<"email">;
1224
- attributes: z.ZodObject<{
1225
+ attributes: z.ZodOptional<z.ZodObject<{
1225
1226
  maxLength: z.ZodOptional<z.ZodNumber>;
1226
1227
  minLength: z.ZodOptional<z.ZodNumber>;
1227
1228
  multiple: z.ZodOptional<z.ZodBoolean>;
@@ -1236,31 +1237,31 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1236
1237
  minLength?: number | undefined;
1237
1238
  multiple?: boolean | undefined;
1238
1239
  pattern?: string | undefined;
1239
- }>;
1240
+ }>>;
1240
1241
  }, "strip", z.ZodTypeAny, {
1241
1242
  type: "email";
1242
1243
  meta: {
1243
1244
  schemaVersion: "1.0";
1244
1245
  labelTranslationKey?: string | undefined;
1245
1246
  };
1246
- attributes: {
1247
+ attributes?: {
1247
1248
  maxLength?: number | undefined;
1248
1249
  minLength?: number | undefined;
1249
1250
  multiple?: boolean | undefined;
1250
1251
  pattern?: string | undefined;
1251
- };
1252
+ } | undefined;
1252
1253
  }, {
1253
1254
  type: "email";
1254
1255
  meta: {
1255
1256
  schemaVersion: "1.0";
1256
1257
  labelTranslationKey?: string | undefined;
1257
1258
  };
1258
- attributes: {
1259
+ attributes?: {
1259
1260
  maxLength?: number | undefined;
1260
1261
  minLength?: number | undefined;
1261
1262
  multiple?: boolean | undefined;
1262
1263
  pattern?: string | undefined;
1263
- };
1264
+ } | undefined;
1264
1265
  }>, z.ZodObject<{
1265
1266
  meta: z.ZodObject<{
1266
1267
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -1291,7 +1292,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1291
1292
  localQueryId: z.ZodOptional<z.ZodString>;
1292
1293
  query: z.ZodOptional<z.ZodString>;
1293
1294
  responseField: z.ZodString;
1294
- variables: z.ZodArray<z.ZodObject<{
1295
+ variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1295
1296
  minLength: z.ZodOptional<z.ZodNumber>;
1296
1297
  label: z.ZodOptional<z.ZodString>;
1297
1298
  labelTranslationKey: z.ZodOptional<z.ZodString>;
@@ -1312,7 +1313,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1312
1313
  minLength?: number | undefined;
1313
1314
  label?: string | undefined;
1314
1315
  defaultValue?: string | undefined;
1315
- }>, "many">;
1316
+ }>, "many">>;
1316
1317
  }, "strip", z.ZodTypeAny, {
1317
1318
  displayFields: {
1318
1319
  label: string;
@@ -1320,16 +1321,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1320
1321
  labelTranslationKey?: string | undefined;
1321
1322
  }[];
1322
1323
  responseField: string;
1323
- variables: {
1324
+ localQueryId?: string | undefined;
1325
+ query?: string | undefined;
1326
+ variables?: {
1324
1327
  type: string;
1325
1328
  name: string;
1326
1329
  labelTranslationKey?: string | undefined;
1327
1330
  minLength?: number | undefined;
1328
1331
  label?: string | undefined;
1329
1332
  defaultValue?: string | undefined;
1330
- }[];
1331
- localQueryId?: string | undefined;
1332
- query?: string | undefined;
1333
+ }[] | undefined;
1333
1334
  }, {
1334
1335
  displayFields: {
1335
1336
  label: string;
@@ -1337,16 +1338,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1337
1338
  labelTranslationKey?: string | undefined;
1338
1339
  }[];
1339
1340
  responseField: string;
1340
- variables: {
1341
+ localQueryId?: string | undefined;
1342
+ query?: string | undefined;
1343
+ variables?: {
1341
1344
  type: string;
1342
1345
  name: string;
1343
1346
  labelTranslationKey?: string | undefined;
1344
1347
  minLength?: number | undefined;
1345
1348
  label?: string | undefined;
1346
1349
  defaultValue?: string | undefined;
1347
- }[];
1348
- localQueryId?: string | undefined;
1349
- query?: string | undefined;
1350
+ }[] | undefined;
1350
1351
  }>;
1351
1352
  attributes: z.ZodObject<{
1352
1353
  multiple: z.ZodOptional<z.ZodBoolean>;
@@ -1371,16 +1372,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1371
1372
  labelTranslationKey?: string | undefined;
1372
1373
  }[];
1373
1374
  responseField: string;
1374
- variables: {
1375
+ localQueryId?: string | undefined;
1376
+ query?: string | undefined;
1377
+ variables?: {
1375
1378
  type: string;
1376
1379
  name: string;
1377
1380
  labelTranslationKey?: string | undefined;
1378
1381
  minLength?: number | undefined;
1379
1382
  label?: string | undefined;
1380
1383
  defaultValue?: string | undefined;
1381
- }[];
1382
- localQueryId?: string | undefined;
1383
- query?: string | undefined;
1384
+ }[] | undefined;
1384
1385
  };
1385
1386
  }, {
1386
1387
  type: "filteredSearch";
@@ -1398,16 +1399,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1398
1399
  labelTranslationKey?: string | undefined;
1399
1400
  }[];
1400
1401
  responseField: string;
1401
- variables: {
1402
+ localQueryId?: string | undefined;
1403
+ query?: string | undefined;
1404
+ variables?: {
1402
1405
  type: string;
1403
1406
  name: string;
1404
1407
  labelTranslationKey?: string | undefined;
1405
1408
  minLength?: number | undefined;
1406
1409
  label?: string | undefined;
1407
1410
  defaultValue?: string | undefined;
1408
- }[];
1409
- localQueryId?: string | undefined;
1410
- query?: string | undefined;
1411
+ }[] | undefined;
1411
1412
  };
1412
1413
  }>, z.ZodObject<{
1413
1414
  meta: z.ZodObject<{
@@ -1422,7 +1423,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1422
1423
  }>;
1423
1424
  } & {
1424
1425
  type: z.ZodLiteral<"number">;
1425
- attributes: z.ZodObject<{
1426
+ attributes: z.ZodOptional<z.ZodObject<{
1426
1427
  max: z.ZodOptional<z.ZodNumber>;
1427
1428
  min: z.ZodOptional<z.ZodNumber>;
1428
1429
  step: z.ZodOptional<z.ZodNumber>;
@@ -1434,29 +1435,29 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1434
1435
  max?: number | undefined;
1435
1436
  min?: number | undefined;
1436
1437
  step?: number | undefined;
1437
- }>;
1438
+ }>>;
1438
1439
  }, "strip", z.ZodTypeAny, {
1439
1440
  type: "number";
1440
1441
  meta: {
1441
1442
  schemaVersion: "1.0";
1442
1443
  labelTranslationKey?: string | undefined;
1443
1444
  };
1444
- attributes: {
1445
+ attributes?: {
1445
1446
  max?: number | undefined;
1446
1447
  min?: number | undefined;
1447
1448
  step?: number | undefined;
1448
- };
1449
+ } | undefined;
1449
1450
  }, {
1450
1451
  type: "number";
1451
1452
  meta: {
1452
1453
  schemaVersion: "1.0";
1453
1454
  labelTranslationKey?: string | undefined;
1454
1455
  };
1455
- attributes: {
1456
+ attributes?: {
1456
1457
  max?: number | undefined;
1457
1458
  min?: number | undefined;
1458
1459
  step?: number | undefined;
1459
- };
1460
+ } | undefined;
1460
1461
  }>, z.ZodObject<{
1461
1462
  meta: z.ZodObject<{
1462
1463
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -1573,13 +1574,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1573
1574
  selected?: boolean | undefined;
1574
1575
  };
1575
1576
  }>, "many">;
1576
- attributes: z.ZodObject<{
1577
+ attributes: z.ZodOptional<z.ZodObject<{
1577
1578
  multiple: z.ZodOptional<z.ZodBoolean>;
1578
1579
  }, "strip", z.ZodTypeAny, {
1579
1580
  multiple?: boolean | undefined;
1580
1581
  }, {
1581
1582
  multiple?: boolean | undefined;
1582
- }>;
1583
+ }>>;
1583
1584
  }, "strip", z.ZodTypeAny, {
1584
1585
  type: "selectBox";
1585
1586
  options: {
@@ -1594,9 +1595,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1594
1595
  schemaVersion: "1.0";
1595
1596
  labelTranslationKey?: string | undefined;
1596
1597
  };
1597
- attributes: {
1598
+ attributes?: {
1598
1599
  multiple?: boolean | undefined;
1599
- };
1600
+ } | undefined;
1600
1601
  }, {
1601
1602
  type: "selectBox";
1602
1603
  options: {
@@ -1611,12 +1612,12 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1611
1612
  schemaVersion: "1.0";
1612
1613
  labelTranslationKey?: string | undefined;
1613
1614
  };
1614
- attributes: {
1615
+ attributes?: {
1615
1616
  multiple?: boolean | undefined;
1616
- };
1617
+ } | undefined;
1617
1618
  }>, z.ZodObject<{} & {
1618
1619
  type: z.ZodLiteral<"textArea">;
1619
- attributes: z.ZodObject<{
1620
+ attributes: z.ZodOptional<z.ZodObject<{
1620
1621
  cols: z.ZodOptional<z.ZodNumber>;
1621
1622
  maxLength: z.ZodOptional<z.ZodNumber>;
1622
1623
  minLength: z.ZodOptional<z.ZodNumber>;
@@ -1631,7 +1632,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1631
1632
  minLength?: number | undefined;
1632
1633
  cols?: number | undefined;
1633
1634
  rows?: number | undefined;
1634
- }>;
1635
+ }>>;
1635
1636
  meta: z.ZodObject<{
1636
1637
  asRichText: z.ZodOptional<z.ZodBoolean>;
1637
1638
  }, "strip", z.ZodTypeAny, {
@@ -1644,23 +1645,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1644
1645
  meta: {
1645
1646
  asRichText?: boolean | undefined;
1646
1647
  };
1647
- attributes: {
1648
+ attributes?: {
1648
1649
  maxLength?: number | undefined;
1649
1650
  minLength?: number | undefined;
1650
1651
  cols?: number | undefined;
1651
1652
  rows?: number | undefined;
1652
- };
1653
+ } | undefined;
1653
1654
  }, {
1654
1655
  type: "textArea";
1655
1656
  meta: {
1656
1657
  asRichText?: boolean | undefined;
1657
1658
  };
1658
- attributes: {
1659
+ attributes?: {
1659
1660
  maxLength?: number | undefined;
1660
1661
  minLength?: number | undefined;
1661
1662
  cols?: number | undefined;
1662
1663
  rows?: number | undefined;
1663
- };
1664
+ } | undefined;
1664
1665
  }>, z.ZodObject<{
1665
1666
  meta: z.ZodObject<{
1666
1667
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -1674,7 +1675,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1674
1675
  }>;
1675
1676
  } & {
1676
1677
  type: z.ZodLiteral<"text">;
1677
- attributes: z.ZodObject<{
1678
+ attributes: z.ZodOptional<z.ZodObject<{
1678
1679
  maxLength: z.ZodOptional<z.ZodNumber>;
1679
1680
  minLength: z.ZodOptional<z.ZodNumber>;
1680
1681
  pattern: z.ZodOptional<z.ZodString>;
@@ -1686,29 +1687,29 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1686
1687
  maxLength?: number | undefined;
1687
1688
  minLength?: number | undefined;
1688
1689
  pattern?: string | undefined;
1689
- }>;
1690
+ }>>;
1690
1691
  }, "strip", z.ZodTypeAny, {
1691
1692
  type: "text";
1692
1693
  meta: {
1693
1694
  schemaVersion: "1.0";
1694
1695
  labelTranslationKey?: string | undefined;
1695
1696
  };
1696
- attributes: {
1697
+ attributes?: {
1697
1698
  maxLength?: number | undefined;
1698
1699
  minLength?: number | undefined;
1699
1700
  pattern?: string | undefined;
1700
- };
1701
+ } | undefined;
1701
1702
  }, {
1702
1703
  type: "text";
1703
1704
  meta: {
1704
1705
  schemaVersion: "1.0";
1705
1706
  labelTranslationKey?: string | undefined;
1706
1707
  };
1707
- attributes: {
1708
+ attributes?: {
1708
1709
  maxLength?: number | undefined;
1709
1710
  minLength?: number | undefined;
1710
1711
  pattern?: string | undefined;
1711
- };
1712
+ } | undefined;
1712
1713
  }>, z.ZodObject<{
1713
1714
  meta: z.ZodObject<{
1714
1715
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -1739,7 +1740,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1739
1740
  localQueryId: z.ZodOptional<z.ZodString>;
1740
1741
  query: z.ZodOptional<z.ZodString>;
1741
1742
  responseField: z.ZodString;
1742
- variables: z.ZodArray<z.ZodObject<{
1743
+ variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1743
1744
  minLength: z.ZodOptional<z.ZodNumber>;
1744
1745
  label: z.ZodOptional<z.ZodString>;
1745
1746
  labelTranslationKey: z.ZodOptional<z.ZodString>;
@@ -1760,7 +1761,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1760
1761
  minLength?: number | undefined;
1761
1762
  label?: string | undefined;
1762
1763
  defaultValue?: string | undefined;
1763
- }>, "many">;
1764
+ }>, "many">>;
1764
1765
  }, "strip", z.ZodTypeAny, {
1765
1766
  displayFields: {
1766
1767
  label: string;
@@ -1768,16 +1769,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1768
1769
  labelTranslationKey?: string | undefined;
1769
1770
  }[];
1770
1771
  responseField: string;
1771
- variables: {
1772
+ localQueryId?: string | undefined;
1773
+ query?: string | undefined;
1774
+ variables?: {
1772
1775
  type: string;
1773
1776
  name: string;
1774
1777
  labelTranslationKey?: string | undefined;
1775
1778
  minLength?: number | undefined;
1776
1779
  label?: string | undefined;
1777
1780
  defaultValue?: string | undefined;
1778
- }[];
1779
- localQueryId?: string | undefined;
1780
- query?: string | undefined;
1781
+ }[] | undefined;
1781
1782
  }, {
1782
1783
  displayFields: {
1783
1784
  label: string;
@@ -1785,16 +1786,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1785
1786
  labelTranslationKey?: string | undefined;
1786
1787
  }[];
1787
1788
  responseField: string;
1788
- variables: {
1789
+ localQueryId?: string | undefined;
1790
+ query?: string | undefined;
1791
+ variables?: {
1789
1792
  type: string;
1790
1793
  name: string;
1791
1794
  labelTranslationKey?: string | undefined;
1792
1795
  minLength?: number | undefined;
1793
1796
  label?: string | undefined;
1794
1797
  defaultValue?: string | undefined;
1795
- }[];
1796
- localQueryId?: string | undefined;
1797
- query?: string | undefined;
1798
+ }[] | undefined;
1798
1799
  }>;
1799
1800
  }, "strip", z.ZodTypeAny, {
1800
1801
  type: "typeaheadSearch";
@@ -1809,16 +1810,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1809
1810
  labelTranslationKey?: string | undefined;
1810
1811
  }[];
1811
1812
  responseField: string;
1812
- variables: {
1813
+ localQueryId?: string | undefined;
1814
+ query?: string | undefined;
1815
+ variables?: {
1813
1816
  type: string;
1814
1817
  name: string;
1815
1818
  labelTranslationKey?: string | undefined;
1816
1819
  minLength?: number | undefined;
1817
1820
  label?: string | undefined;
1818
1821
  defaultValue?: string | undefined;
1819
- }[];
1820
- localQueryId?: string | undefined;
1821
- query?: string | undefined;
1822
+ }[] | undefined;
1822
1823
  };
1823
1824
  }, {
1824
1825
  type: "typeaheadSearch";
@@ -1833,16 +1834,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1833
1834
  labelTranslationKey?: string | undefined;
1834
1835
  }[];
1835
1836
  responseField: string;
1836
- variables: {
1837
+ localQueryId?: string | undefined;
1838
+ query?: string | undefined;
1839
+ variables?: {
1837
1840
  type: string;
1838
1841
  name: string;
1839
1842
  labelTranslationKey?: string | undefined;
1840
1843
  minLength?: number | undefined;
1841
1844
  label?: string | undefined;
1842
1845
  defaultValue?: string | undefined;
1843
- }[];
1844
- localQueryId?: string | undefined;
1845
- query?: string | undefined;
1846
+ }[] | undefined;
1846
1847
  };
1847
1848
  }>, z.ZodObject<{
1848
1849
  meta: z.ZodObject<{
@@ -1857,7 +1858,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1857
1858
  }>;
1858
1859
  } & {
1859
1860
  type: z.ZodLiteral<"url">;
1860
- attributes: z.ZodObject<{
1861
+ attributes: z.ZodOptional<z.ZodObject<{
1861
1862
  maxLength: z.ZodOptional<z.ZodNumber>;
1862
1863
  minLength: z.ZodOptional<z.ZodNumber>;
1863
1864
  pattern: z.ZodOptional<z.ZodString>;
@@ -1869,31 +1870,31 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1869
1870
  maxLength?: number | undefined;
1870
1871
  minLength?: number | undefined;
1871
1872
  pattern?: string | undefined;
1872
- }>;
1873
+ }>>;
1873
1874
  }, "strip", z.ZodTypeAny, {
1874
1875
  type: "url";
1875
1876
  meta: {
1876
1877
  schemaVersion: "1.0";
1877
1878
  labelTranslationKey?: string | undefined;
1878
1879
  };
1879
- attributes: {
1880
+ attributes?: {
1880
1881
  maxLength?: number | undefined;
1881
1882
  minLength?: number | undefined;
1882
1883
  pattern?: string | undefined;
1883
- };
1884
+ } | undefined;
1884
1885
  }, {
1885
1886
  type: "url";
1886
1887
  meta: {
1887
1888
  schemaVersion: "1.0";
1888
1889
  labelTranslationKey?: string | undefined;
1889
1890
  };
1890
- attributes: {
1891
+ attributes?: {
1891
1892
  maxLength?: number | undefined;
1892
1893
  minLength?: number | undefined;
1893
1894
  pattern?: string | undefined;
1894
- };
1895
+ } | undefined;
1895
1896
  }>]>, "many">;
1896
- attributes: z.ZodObject<{
1897
+ attributes: z.ZodOptional<z.ZodObject<{
1897
1898
  canAddRows: z.ZodOptional<z.ZodBoolean>;
1898
1899
  canRemoveRows: z.ZodOptional<z.ZodBoolean>;
1899
1900
  initialRows: z.ZodOptional<z.ZodNumber>;
@@ -1911,106 +1912,99 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1911
1912
  initialRows?: number | undefined;
1912
1913
  maxRows?: number | undefined;
1913
1914
  minRows?: number | undefined;
1914
- }>;
1915
+ }>>;
1915
1916
  }, "strip", z.ZodTypeAny, {
1916
1917
  type: "table";
1917
1918
  meta: {
1918
1919
  schemaVersion: "1.0";
1919
1920
  labelTranslationKey?: string | undefined;
1920
1921
  };
1921
- attributes: {
1922
- canAddRows?: boolean | undefined;
1923
- canRemoveRows?: boolean | undefined;
1924
- initialRows?: number | undefined;
1925
- maxRows?: number | undefined;
1926
- minRows?: number | undefined;
1927
- };
1928
1922
  columns: ({
1929
1923
  type: "boolean";
1930
1924
  meta: {
1931
1925
  schemaVersion: "1.0";
1932
1926
  labelTranslationKey?: string | undefined;
1933
1927
  };
1934
- attributes: {
1928
+ attributes?: {
1935
1929
  checked?: boolean | undefined;
1936
- };
1930
+ } | undefined;
1937
1931
  } | {
1938
1932
  type: "number";
1939
1933
  meta: {
1940
1934
  schemaVersion: "1.0";
1941
1935
  labelTranslationKey?: string | undefined;
1942
1936
  };
1943
- attributes: {
1937
+ attributes?: {
1944
1938
  max?: number | undefined;
1945
1939
  min?: number | undefined;
1946
1940
  step?: number | undefined;
1947
- };
1941
+ } | undefined;
1948
1942
  } | {
1949
1943
  type: "currency";
1950
1944
  meta: {
1951
1945
  denomination?: string | undefined;
1952
1946
  };
1953
- attributes: {
1947
+ attributes?: {
1954
1948
  max?: number | undefined;
1955
1949
  min?: number | undefined;
1956
1950
  step?: number | undefined;
1957
- };
1951
+ } | undefined;
1958
1952
  } | {
1959
1953
  type: "email";
1960
1954
  meta: {
1961
1955
  schemaVersion: "1.0";
1962
1956
  labelTranslationKey?: string | undefined;
1963
1957
  };
1964
- attributes: {
1958
+ attributes?: {
1965
1959
  maxLength?: number | undefined;
1966
1960
  minLength?: number | undefined;
1967
1961
  multiple?: boolean | undefined;
1968
1962
  pattern?: string | undefined;
1969
- };
1963
+ } | undefined;
1970
1964
  } | {
1971
1965
  type: "textArea";
1972
1966
  meta: {
1973
1967
  asRichText?: boolean | undefined;
1974
1968
  };
1975
- attributes: {
1969
+ attributes?: {
1976
1970
  maxLength?: number | undefined;
1977
1971
  minLength?: number | undefined;
1978
1972
  cols?: number | undefined;
1979
1973
  rows?: number | undefined;
1980
- };
1974
+ } | undefined;
1981
1975
  } | {
1982
1976
  type: "text";
1983
1977
  meta: {
1984
1978
  schemaVersion: "1.0";
1985
1979
  labelTranslationKey?: string | undefined;
1986
1980
  };
1987
- attributes: {
1981
+ attributes?: {
1988
1982
  maxLength?: number | undefined;
1989
1983
  minLength?: number | undefined;
1990
1984
  pattern?: string | undefined;
1991
- };
1985
+ } | undefined;
1992
1986
  } | {
1993
1987
  type: "url";
1994
1988
  meta: {
1995
1989
  schemaVersion: "1.0";
1996
1990
  labelTranslationKey?: string | undefined;
1997
1991
  };
1998
- attributes: {
1992
+ attributes?: {
1999
1993
  maxLength?: number | undefined;
2000
1994
  minLength?: number | undefined;
2001
1995
  pattern?: string | undefined;
2002
- };
1996
+ } | undefined;
2003
1997
  } | {
2004
1998
  type: "datePicker";
2005
1999
  meta: {
2006
2000
  schemaVersion: "1.0";
2007
2001
  labelTranslationKey?: string | undefined;
2008
2002
  };
2009
- attributes: {
2003
+ attributes?: {
2010
2004
  max?: string | undefined;
2011
2005
  min?: string | undefined;
2012
2006
  step?: number | undefined;
2013
- };
2007
+ } | undefined;
2014
2008
  } | {
2015
2009
  type: "dateRange";
2016
2010
  meta: {
@@ -2081,9 +2075,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2081
2075
  schemaVersion: "1.0";
2082
2076
  labelTranslationKey?: string | undefined;
2083
2077
  };
2084
- attributes: {
2078
+ attributes?: {
2085
2079
  multiple?: boolean | undefined;
2086
- };
2080
+ } | undefined;
2087
2081
  } | {
2088
2082
  type: "filteredSearch";
2089
2083
  meta: {
@@ -2100,16 +2094,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2100
2094
  labelTranslationKey?: string | undefined;
2101
2095
  }[];
2102
2096
  responseField: string;
2103
- variables: {
2097
+ localQueryId?: string | undefined;
2098
+ query?: string | undefined;
2099
+ variables?: {
2104
2100
  type: string;
2105
2101
  name: string;
2106
2102
  labelTranslationKey?: string | undefined;
2107
2103
  minLength?: number | undefined;
2108
2104
  label?: string | undefined;
2109
2105
  defaultValue?: string | undefined;
2110
- }[];
2111
- localQueryId?: string | undefined;
2112
- query?: string | undefined;
2106
+ }[] | undefined;
2113
2107
  };
2114
2108
  } | {
2115
2109
  type: "typeaheadSearch";
@@ -2124,30 +2118,30 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2124
2118
  labelTranslationKey?: string | undefined;
2125
2119
  }[];
2126
2120
  responseField: string;
2127
- variables: {
2121
+ localQueryId?: string | undefined;
2122
+ query?: string | undefined;
2123
+ variables?: {
2128
2124
  type: string;
2129
2125
  name: string;
2130
2126
  labelTranslationKey?: string | undefined;
2131
2127
  minLength?: number | undefined;
2132
2128
  label?: string | undefined;
2133
2129
  defaultValue?: string | undefined;
2134
- }[];
2135
- localQueryId?: string | undefined;
2136
- query?: string | undefined;
2130
+ }[] | undefined;
2137
2131
  };
2138
2132
  })[];
2139
- }, {
2140
- type: "table";
2141
- meta: {
2142
- schemaVersion: "1.0";
2143
- labelTranslationKey?: string | undefined;
2144
- };
2145
- attributes: {
2133
+ attributes?: {
2146
2134
  canAddRows?: boolean | undefined;
2147
2135
  canRemoveRows?: boolean | undefined;
2148
2136
  initialRows?: number | undefined;
2149
2137
  maxRows?: number | undefined;
2150
2138
  minRows?: number | undefined;
2139
+ } | undefined;
2140
+ }, {
2141
+ type: "table";
2142
+ meta: {
2143
+ schemaVersion: "1.0";
2144
+ labelTranslationKey?: string | undefined;
2151
2145
  };
2152
2146
  columns: ({
2153
2147
  type: "boolean";
@@ -2155,86 +2149,86 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2155
2149
  schemaVersion: "1.0";
2156
2150
  labelTranslationKey?: string | undefined;
2157
2151
  };
2158
- attributes: {
2152
+ attributes?: {
2159
2153
  checked?: boolean | undefined;
2160
- };
2154
+ } | undefined;
2161
2155
  } | {
2162
2156
  type: "number";
2163
2157
  meta: {
2164
2158
  schemaVersion: "1.0";
2165
2159
  labelTranslationKey?: string | undefined;
2166
2160
  };
2167
- attributes: {
2161
+ attributes?: {
2168
2162
  max?: number | undefined;
2169
2163
  min?: number | undefined;
2170
2164
  step?: number | undefined;
2171
- };
2165
+ } | undefined;
2172
2166
  } | {
2173
2167
  type: "currency";
2174
2168
  meta: {
2175
2169
  denomination?: string | undefined;
2176
2170
  };
2177
- attributes: {
2171
+ attributes?: {
2178
2172
  max?: number | undefined;
2179
2173
  min?: number | undefined;
2180
2174
  step?: number | undefined;
2181
- };
2175
+ } | undefined;
2182
2176
  } | {
2183
2177
  type: "email";
2184
2178
  meta: {
2185
2179
  schemaVersion: "1.0";
2186
2180
  labelTranslationKey?: string | undefined;
2187
2181
  };
2188
- attributes: {
2182
+ attributes?: {
2189
2183
  maxLength?: number | undefined;
2190
2184
  minLength?: number | undefined;
2191
2185
  multiple?: boolean | undefined;
2192
2186
  pattern?: string | undefined;
2193
- };
2187
+ } | undefined;
2194
2188
  } | {
2195
2189
  type: "textArea";
2196
2190
  meta: {
2197
2191
  asRichText?: boolean | undefined;
2198
2192
  };
2199
- attributes: {
2193
+ attributes?: {
2200
2194
  maxLength?: number | undefined;
2201
2195
  minLength?: number | undefined;
2202
2196
  cols?: number | undefined;
2203
2197
  rows?: number | undefined;
2204
- };
2198
+ } | undefined;
2205
2199
  } | {
2206
2200
  type: "text";
2207
2201
  meta: {
2208
2202
  schemaVersion: "1.0";
2209
2203
  labelTranslationKey?: string | undefined;
2210
2204
  };
2211
- attributes: {
2205
+ attributes?: {
2212
2206
  maxLength?: number | undefined;
2213
2207
  minLength?: number | undefined;
2214
2208
  pattern?: string | undefined;
2215
- };
2209
+ } | undefined;
2216
2210
  } | {
2217
2211
  type: "url";
2218
2212
  meta: {
2219
2213
  schemaVersion: "1.0";
2220
2214
  labelTranslationKey?: string | undefined;
2221
2215
  };
2222
- attributes: {
2216
+ attributes?: {
2223
2217
  maxLength?: number | undefined;
2224
2218
  minLength?: number | undefined;
2225
2219
  pattern?: string | undefined;
2226
- };
2220
+ } | undefined;
2227
2221
  } | {
2228
2222
  type: "datePicker";
2229
2223
  meta: {
2230
2224
  schemaVersion: "1.0";
2231
2225
  labelTranslationKey?: string | undefined;
2232
2226
  };
2233
- attributes: {
2227
+ attributes?: {
2234
2228
  max?: string | undefined;
2235
2229
  min?: string | undefined;
2236
2230
  step?: number | undefined;
2237
- };
2231
+ } | undefined;
2238
2232
  } | {
2239
2233
  type: "dateRange";
2240
2234
  meta: {
@@ -2305,9 +2299,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2305
2299
  schemaVersion: "1.0";
2306
2300
  labelTranslationKey?: string | undefined;
2307
2301
  };
2308
- attributes: {
2302
+ attributes?: {
2309
2303
  multiple?: boolean | undefined;
2310
- };
2304
+ } | undefined;
2311
2305
  } | {
2312
2306
  type: "filteredSearch";
2313
2307
  meta: {
@@ -2324,16 +2318,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2324
2318
  labelTranslationKey?: string | undefined;
2325
2319
  }[];
2326
2320
  responseField: string;
2327
- variables: {
2321
+ localQueryId?: string | undefined;
2322
+ query?: string | undefined;
2323
+ variables?: {
2328
2324
  type: string;
2329
2325
  name: string;
2330
2326
  labelTranslationKey?: string | undefined;
2331
2327
  minLength?: number | undefined;
2332
2328
  label?: string | undefined;
2333
2329
  defaultValue?: string | undefined;
2334
- }[];
2335
- localQueryId?: string | undefined;
2336
- query?: string | undefined;
2330
+ }[] | undefined;
2337
2331
  };
2338
2332
  } | {
2339
2333
  type: "typeaheadSearch";
@@ -2348,21 +2342,28 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2348
2342
  labelTranslationKey?: string | undefined;
2349
2343
  }[];
2350
2344
  responseField: string;
2351
- variables: {
2345
+ localQueryId?: string | undefined;
2346
+ query?: string | undefined;
2347
+ variables?: {
2352
2348
  type: string;
2353
2349
  name: string;
2354
2350
  labelTranslationKey?: string | undefined;
2355
2351
  minLength?: number | undefined;
2356
2352
  label?: string | undefined;
2357
2353
  defaultValue?: string | undefined;
2358
- }[];
2359
- localQueryId?: string | undefined;
2360
- query?: string | undefined;
2354
+ }[] | undefined;
2361
2355
  };
2362
2356
  })[];
2357
+ attributes?: {
2358
+ canAddRows?: boolean | undefined;
2359
+ canRemoveRows?: boolean | undefined;
2360
+ initialRows?: number | undefined;
2361
+ maxRows?: number | undefined;
2362
+ minRows?: number | undefined;
2363
+ } | undefined;
2363
2364
  }>, z.ZodObject<{} & {
2364
2365
  type: z.ZodLiteral<"textArea">;
2365
- attributes: z.ZodObject<{
2366
+ attributes: z.ZodOptional<z.ZodObject<{
2366
2367
  cols: z.ZodOptional<z.ZodNumber>;
2367
2368
  maxLength: z.ZodOptional<z.ZodNumber>;
2368
2369
  minLength: z.ZodOptional<z.ZodNumber>;
@@ -2377,7 +2378,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2377
2378
  minLength?: number | undefined;
2378
2379
  cols?: number | undefined;
2379
2380
  rows?: number | undefined;
2380
- }>;
2381
+ }>>;
2381
2382
  meta: z.ZodObject<{
2382
2383
  asRichText: z.ZodOptional<z.ZodBoolean>;
2383
2384
  }, "strip", z.ZodTypeAny, {
@@ -2390,23 +2391,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2390
2391
  meta: {
2391
2392
  asRichText?: boolean | undefined;
2392
2393
  };
2393
- attributes: {
2394
+ attributes?: {
2394
2395
  maxLength?: number | undefined;
2395
2396
  minLength?: number | undefined;
2396
2397
  cols?: number | undefined;
2397
2398
  rows?: number | undefined;
2398
- };
2399
+ } | undefined;
2399
2400
  }, {
2400
2401
  type: "textArea";
2401
2402
  meta: {
2402
2403
  asRichText?: boolean | undefined;
2403
2404
  };
2404
- attributes: {
2405
+ attributes?: {
2405
2406
  maxLength?: number | undefined;
2406
2407
  minLength?: number | undefined;
2407
2408
  cols?: number | undefined;
2408
2409
  rows?: number | undefined;
2409
- };
2410
+ } | undefined;
2410
2411
  }>, z.ZodObject<{
2411
2412
  meta: z.ZodObject<{
2412
2413
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -2420,7 +2421,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2420
2421
  }>;
2421
2422
  } & {
2422
2423
  type: z.ZodLiteral<"text">;
2423
- attributes: z.ZodObject<{
2424
+ attributes: z.ZodOptional<z.ZodObject<{
2424
2425
  maxLength: z.ZodOptional<z.ZodNumber>;
2425
2426
  minLength: z.ZodOptional<z.ZodNumber>;
2426
2427
  pattern: z.ZodOptional<z.ZodString>;
@@ -2432,29 +2433,29 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2432
2433
  maxLength?: number | undefined;
2433
2434
  minLength?: number | undefined;
2434
2435
  pattern?: string | undefined;
2435
- }>;
2436
+ }>>;
2436
2437
  }, "strip", z.ZodTypeAny, {
2437
2438
  type: "text";
2438
2439
  meta: {
2439
2440
  schemaVersion: "1.0";
2440
2441
  labelTranslationKey?: string | undefined;
2441
2442
  };
2442
- attributes: {
2443
+ attributes?: {
2443
2444
  maxLength?: number | undefined;
2444
2445
  minLength?: number | undefined;
2445
2446
  pattern?: string | undefined;
2446
- };
2447
+ } | undefined;
2447
2448
  }, {
2448
2449
  type: "text";
2449
2450
  meta: {
2450
2451
  schemaVersion: "1.0";
2451
2452
  labelTranslationKey?: string | undefined;
2452
2453
  };
2453
- attributes: {
2454
+ attributes?: {
2454
2455
  maxLength?: number | undefined;
2455
2456
  minLength?: number | undefined;
2456
2457
  pattern?: string | undefined;
2457
- };
2458
+ } | undefined;
2458
2459
  }>, z.ZodObject<{
2459
2460
  meta: z.ZodObject<{
2460
2461
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -2485,7 +2486,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2485
2486
  localQueryId: z.ZodOptional<z.ZodString>;
2486
2487
  query: z.ZodOptional<z.ZodString>;
2487
2488
  responseField: z.ZodString;
2488
- variables: z.ZodArray<z.ZodObject<{
2489
+ variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
2489
2490
  minLength: z.ZodOptional<z.ZodNumber>;
2490
2491
  label: z.ZodOptional<z.ZodString>;
2491
2492
  labelTranslationKey: z.ZodOptional<z.ZodString>;
@@ -2506,7 +2507,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2506
2507
  minLength?: number | undefined;
2507
2508
  label?: string | undefined;
2508
2509
  defaultValue?: string | undefined;
2509
- }>, "many">;
2510
+ }>, "many">>;
2510
2511
  }, "strip", z.ZodTypeAny, {
2511
2512
  displayFields: {
2512
2513
  label: string;
@@ -2514,16 +2515,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2514
2515
  labelTranslationKey?: string | undefined;
2515
2516
  }[];
2516
2517
  responseField: string;
2517
- variables: {
2518
+ localQueryId?: string | undefined;
2519
+ query?: string | undefined;
2520
+ variables?: {
2518
2521
  type: string;
2519
2522
  name: string;
2520
2523
  labelTranslationKey?: string | undefined;
2521
2524
  minLength?: number | undefined;
2522
2525
  label?: string | undefined;
2523
2526
  defaultValue?: string | undefined;
2524
- }[];
2525
- localQueryId?: string | undefined;
2526
- query?: string | undefined;
2527
+ }[] | undefined;
2527
2528
  }, {
2528
2529
  displayFields: {
2529
2530
  label: string;
@@ -2531,16 +2532,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2531
2532
  labelTranslationKey?: string | undefined;
2532
2533
  }[];
2533
2534
  responseField: string;
2534
- variables: {
2535
+ localQueryId?: string | undefined;
2536
+ query?: string | undefined;
2537
+ variables?: {
2535
2538
  type: string;
2536
2539
  name: string;
2537
2540
  labelTranslationKey?: string | undefined;
2538
2541
  minLength?: number | undefined;
2539
2542
  label?: string | undefined;
2540
2543
  defaultValue?: string | undefined;
2541
- }[];
2542
- localQueryId?: string | undefined;
2543
- query?: string | undefined;
2544
+ }[] | undefined;
2544
2545
  }>;
2545
2546
  }, "strip", z.ZodTypeAny, {
2546
2547
  type: "typeaheadSearch";
@@ -2555,16 +2556,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2555
2556
  labelTranslationKey?: string | undefined;
2556
2557
  }[];
2557
2558
  responseField: string;
2558
- variables: {
2559
+ localQueryId?: string | undefined;
2560
+ query?: string | undefined;
2561
+ variables?: {
2559
2562
  type: string;
2560
2563
  name: string;
2561
2564
  labelTranslationKey?: string | undefined;
2562
2565
  minLength?: number | undefined;
2563
2566
  label?: string | undefined;
2564
2567
  defaultValue?: string | undefined;
2565
- }[];
2566
- localQueryId?: string | undefined;
2567
- query?: string | undefined;
2568
+ }[] | undefined;
2568
2569
  };
2569
2570
  }, {
2570
2571
  type: "typeaheadSearch";
@@ -2579,16 +2580,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2579
2580
  labelTranslationKey?: string | undefined;
2580
2581
  }[];
2581
2582
  responseField: string;
2582
- variables: {
2583
+ localQueryId?: string | undefined;
2584
+ query?: string | undefined;
2585
+ variables?: {
2583
2586
  type: string;
2584
2587
  name: string;
2585
2588
  labelTranslationKey?: string | undefined;
2586
2589
  minLength?: number | undefined;
2587
2590
  label?: string | undefined;
2588
2591
  defaultValue?: string | undefined;
2589
- }[];
2590
- localQueryId?: string | undefined;
2591
- query?: string | undefined;
2592
+ }[] | undefined;
2592
2593
  };
2593
2594
  }>, z.ZodObject<{
2594
2595
  meta: z.ZodObject<{
@@ -2603,7 +2604,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2603
2604
  }>;
2604
2605
  } & {
2605
2606
  type: z.ZodLiteral<"url">;
2606
- attributes: z.ZodObject<{
2607
+ attributes: z.ZodOptional<z.ZodObject<{
2607
2608
  maxLength: z.ZodOptional<z.ZodNumber>;
2608
2609
  minLength: z.ZodOptional<z.ZodNumber>;
2609
2610
  pattern: z.ZodOptional<z.ZodString>;
@@ -2615,28 +2616,29 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2615
2616
  maxLength?: number | undefined;
2616
2617
  minLength?: number | undefined;
2617
2618
  pattern?: string | undefined;
2618
- }>;
2619
+ }>>;
2619
2620
  }, "strip", z.ZodTypeAny, {
2620
2621
  type: "url";
2621
2622
  meta: {
2622
2623
  schemaVersion: "1.0";
2623
2624
  labelTranslationKey?: string | undefined;
2624
2625
  };
2625
- attributes: {
2626
+ attributes?: {
2626
2627
  maxLength?: number | undefined;
2627
2628
  minLength?: number | undefined;
2628
2629
  pattern?: string | undefined;
2629
- };
2630
+ } | undefined;
2630
2631
  }, {
2631
2632
  type: "url";
2632
2633
  meta: {
2633
2634
  schemaVersion: "1.0";
2634
2635
  labelTranslationKey?: string | undefined;
2635
2636
  };
2636
- attributes: {
2637
+ attributes?: {
2637
2638
  maxLength?: number | undefined;
2638
2639
  minLength?: number | undefined;
2639
2640
  pattern?: string | undefined;
2640
- };
2641
+ } | undefined;
2641
2642
  }>]>;
2643
+ export declare const QuestionSchemaMap: Record<z.infer<typeof QuestionTypesEnum>, z.ZodTypeAny>;
2642
2644
  export type AnyQuestionType = z.infer<typeof AnyQuestionSchema>;