@encatch/schema 1.0.1-beta.3 → 1.1.0-beta.10
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.
- package/dist/esm/index.js +82 -47
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +4 -4
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +248 -31
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +6 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +2 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +138 -28
- package/dist/types/schemas/fields/field-schema.d.ts +218 -10
- package/dist/types/schemas/fields/form-properties-schema.d.ts +148 -47
- package/dist/types/schemas/fields/other-screen-schema.d.ts +0 -5
- package/dist/types/schemas/fields/theme-schema.d.ts +20 -18
- package/dist/types/schemas/fields/translations-schema.d.ts +121 -16
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export declare const questionTypeSchema: z.ZodEnum<{
|
|
|
11
11
|
welcome: "welcome";
|
|
12
12
|
thank_you: "thank_you";
|
|
13
13
|
message_panel: "message_panel";
|
|
14
|
+
consent: "consent";
|
|
14
15
|
yes_no: "yes_no";
|
|
15
16
|
rating_matrix: "rating_matrix";
|
|
16
17
|
matrix_single_choice: "matrix_single_choice";
|
|
@@ -34,6 +35,7 @@ export declare const QuestionTypes: {
|
|
|
34
35
|
readonly MATRIX_SINGLE_CHOICE: "matrix_single_choice";
|
|
35
36
|
readonly MATRIX_MULTIPLE_CHOICE: "matrix_multiple_choice";
|
|
36
37
|
readonly EXIT_FORM: "exit_form";
|
|
38
|
+
readonly CONSENT: "consent";
|
|
37
39
|
};
|
|
38
40
|
export declare const validationRuleTypeSchema: z.ZodEnum<{
|
|
39
41
|
custom: "custom";
|
|
@@ -111,13 +113,15 @@ export declare const visibilityConditionSchema: z.ZodObject<{
|
|
|
111
113
|
export declare const sectionSchema: z.ZodObject<{
|
|
112
114
|
id: z.ZodString;
|
|
113
115
|
title: z.ZodString;
|
|
114
|
-
titleTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
115
116
|
description: z.ZodOptional<z.ZodString>;
|
|
116
|
-
descriptionTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
117
117
|
showTitle: z.ZodDefault<z.ZodBoolean>;
|
|
118
118
|
showDescription: z.ZodDefault<z.ZodBoolean>;
|
|
119
119
|
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
120
|
-
|
|
120
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
121
|
+
title: z.ZodString;
|
|
122
|
+
description: z.ZodOptional<z.ZodString>;
|
|
123
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>>>;
|
|
121
125
|
inAppSingleQuestion: z.ZodDefault<z.ZodBoolean>;
|
|
122
126
|
questionIds: z.ZodArray<z.ZodString>;
|
|
123
127
|
}, z.core.$strip>;
|
|
@@ -205,6 +209,7 @@ export declare const ChoiceOrderOptions: {
|
|
|
205
209
|
};
|
|
206
210
|
export declare const questionSchema: z.ZodObject<{
|
|
207
211
|
id: z.ZodString;
|
|
212
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
208
213
|
type: z.ZodEnum<{
|
|
209
214
|
rating: "rating";
|
|
210
215
|
single_choice: "single_choice";
|
|
@@ -217,6 +222,7 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
217
222
|
welcome: "welcome";
|
|
218
223
|
thank_you: "thank_you";
|
|
219
224
|
message_panel: "message_panel";
|
|
225
|
+
consent: "consent";
|
|
220
226
|
yes_no: "yes_no";
|
|
221
227
|
rating_matrix: "rating_matrix";
|
|
222
228
|
matrix_single_choice: "matrix_single_choice";
|
|
@@ -270,10 +276,13 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
270
276
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
271
277
|
left: "left";
|
|
272
278
|
center: "center";
|
|
279
|
+
justify: "justify";
|
|
273
280
|
}>>>;
|
|
281
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
274
282
|
}, z.core.$strip>;
|
|
275
283
|
export declare const ratingQuestionSchema: z.ZodObject<{
|
|
276
284
|
id: z.ZodString;
|
|
285
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
277
286
|
title: z.ZodString;
|
|
278
287
|
description: z.ZodOptional<z.ZodString>;
|
|
279
288
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -321,7 +330,9 @@ export declare const ratingQuestionSchema: z.ZodObject<{
|
|
|
321
330
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
322
331
|
left: "left";
|
|
323
332
|
center: "center";
|
|
333
|
+
justify: "justify";
|
|
324
334
|
}>>>;
|
|
335
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
325
336
|
type: z.ZodLiteral<"rating">;
|
|
326
337
|
showLabels: z.ZodOptional<z.ZodBoolean>;
|
|
327
338
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -344,6 +355,7 @@ export declare const ratingQuestionSchema: z.ZodObject<{
|
|
|
344
355
|
}, z.core.$strip>;
|
|
345
356
|
export declare const annotationQuestionSchema: z.ZodObject<{
|
|
346
357
|
id: z.ZodString;
|
|
358
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
347
359
|
title: z.ZodString;
|
|
348
360
|
description: z.ZodOptional<z.ZodString>;
|
|
349
361
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -391,13 +403,16 @@ export declare const annotationQuestionSchema: z.ZodObject<{
|
|
|
391
403
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
392
404
|
left: "left";
|
|
393
405
|
center: "center";
|
|
406
|
+
justify: "justify";
|
|
394
407
|
}>>>;
|
|
408
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
395
409
|
type: z.ZodLiteral<"annotation">;
|
|
396
410
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
397
411
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
398
412
|
}, z.core.$strip>;
|
|
399
413
|
export declare const welcomeQuestionSchema: z.ZodObject<{
|
|
400
414
|
id: z.ZodString;
|
|
415
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
401
416
|
describe: z.ZodOptional<z.ZodString>;
|
|
402
417
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
403
418
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -443,15 +458,17 @@ export declare const welcomeQuestionSchema: z.ZodObject<{
|
|
|
443
458
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
444
459
|
left: "left";
|
|
445
460
|
center: "center";
|
|
461
|
+
justify: "justify";
|
|
446
462
|
}>>>;
|
|
463
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
447
464
|
type: z.ZodLiteral<"welcome">;
|
|
448
465
|
title: z.ZodString;
|
|
449
466
|
description: z.ZodOptional<z.ZodString>;
|
|
450
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
451
467
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
452
468
|
}, z.core.$strip>;
|
|
453
469
|
export declare const thankYouQuestionSchema: z.ZodObject<{
|
|
454
470
|
id: z.ZodString;
|
|
471
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
455
472
|
describe: z.ZodOptional<z.ZodString>;
|
|
456
473
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
457
474
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -497,15 +514,17 @@ export declare const thankYouQuestionSchema: z.ZodObject<{
|
|
|
497
514
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
498
515
|
left: "left";
|
|
499
516
|
center: "center";
|
|
517
|
+
justify: "justify";
|
|
500
518
|
}>>>;
|
|
519
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
501
520
|
type: z.ZodLiteral<"thank_you">;
|
|
502
521
|
title: z.ZodString;
|
|
503
522
|
description: z.ZodOptional<z.ZodString>;
|
|
504
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
505
523
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
506
524
|
}, z.core.$strip>;
|
|
507
525
|
export declare const messagePanelQuestionSchema: z.ZodObject<{
|
|
508
526
|
id: z.ZodString;
|
|
527
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
509
528
|
describe: z.ZodOptional<z.ZodString>;
|
|
510
529
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
511
530
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -551,15 +570,17 @@ export declare const messagePanelQuestionSchema: z.ZodObject<{
|
|
|
551
570
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
552
571
|
left: "left";
|
|
553
572
|
center: "center";
|
|
573
|
+
justify: "justify";
|
|
554
574
|
}>>>;
|
|
575
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
555
576
|
type: z.ZodLiteral<"message_panel">;
|
|
556
577
|
title: z.ZodString;
|
|
557
578
|
description: z.ZodOptional<z.ZodString>;
|
|
558
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
559
579
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
560
580
|
}, z.core.$strip>;
|
|
561
581
|
export declare const exitFormQuestionSchema: z.ZodObject<{
|
|
562
582
|
id: z.ZodString;
|
|
583
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
563
584
|
title: z.ZodString;
|
|
564
585
|
description: z.ZodOptional<z.ZodString>;
|
|
565
586
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -607,11 +628,14 @@ export declare const exitFormQuestionSchema: z.ZodObject<{
|
|
|
607
628
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
608
629
|
left: "left";
|
|
609
630
|
center: "center";
|
|
631
|
+
justify: "justify";
|
|
610
632
|
}>>>;
|
|
633
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
611
634
|
type: z.ZodLiteral<"exit_form">;
|
|
612
635
|
}, z.core.$strip>;
|
|
613
636
|
export declare const yesNoQuestionSchema: z.ZodObject<{
|
|
614
637
|
id: z.ZodString;
|
|
638
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
615
639
|
title: z.ZodString;
|
|
616
640
|
description: z.ZodOptional<z.ZodString>;
|
|
617
641
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -659,7 +683,9 @@ export declare const yesNoQuestionSchema: z.ZodObject<{
|
|
|
659
683
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
660
684
|
left: "left";
|
|
661
685
|
center: "center";
|
|
686
|
+
justify: "justify";
|
|
662
687
|
}>>>;
|
|
688
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
663
689
|
type: z.ZodLiteral<"yes_no">;
|
|
664
690
|
yesLabel: z.ZodOptional<z.ZodString>;
|
|
665
691
|
noLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -668,6 +694,61 @@ export declare const yesNoQuestionSchema: z.ZodObject<{
|
|
|
668
694
|
vertical: "vertical";
|
|
669
695
|
}>>;
|
|
670
696
|
}, z.core.$strip>;
|
|
697
|
+
export declare const consentQuestionSchema: z.ZodObject<{
|
|
698
|
+
id: z.ZodString;
|
|
699
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
700
|
+
title: z.ZodString;
|
|
701
|
+
description: z.ZodOptional<z.ZodString>;
|
|
702
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
703
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
704
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
705
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
706
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
707
|
+
type: z.ZodEnum<{
|
|
708
|
+
custom: "custom";
|
|
709
|
+
pattern: "pattern";
|
|
710
|
+
required: "required";
|
|
711
|
+
min: "min";
|
|
712
|
+
max: "max";
|
|
713
|
+
minLength: "minLength";
|
|
714
|
+
maxLength: "maxLength";
|
|
715
|
+
email: "email";
|
|
716
|
+
url: "url";
|
|
717
|
+
}>;
|
|
718
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
719
|
+
message: z.ZodOptional<z.ZodString>;
|
|
720
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
721
|
+
}, z.core.$strip>>>>;
|
|
722
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
723
|
+
field: z.ZodString;
|
|
724
|
+
operator: z.ZodEnum<{
|
|
725
|
+
equals: "equals";
|
|
726
|
+
not_equals: "not_equals";
|
|
727
|
+
contains: "contains";
|
|
728
|
+
not_contains: "not_contains";
|
|
729
|
+
greater_than: "greater_than";
|
|
730
|
+
less_than: "less_than";
|
|
731
|
+
is_empty: "is_empty";
|
|
732
|
+
is_not_empty: "is_not_empty";
|
|
733
|
+
}>;
|
|
734
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
735
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
736
|
+
}, z.core.$strip>>>>;
|
|
737
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
738
|
+
status: z.ZodEnum<{
|
|
739
|
+
D: "D";
|
|
740
|
+
P: "P";
|
|
741
|
+
A: "A";
|
|
742
|
+
S: "S";
|
|
743
|
+
}>;
|
|
744
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
745
|
+
left: "left";
|
|
746
|
+
center: "center";
|
|
747
|
+
justify: "justify";
|
|
748
|
+
}>>>;
|
|
749
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
750
|
+
type: z.ZodLiteral<"consent">;
|
|
751
|
+
}, z.core.$strip>;
|
|
671
752
|
export declare const ratingMatrixDisplayStyleSchema: z.ZodEnum<{
|
|
672
753
|
star: "star";
|
|
673
754
|
emoji: "emoji";
|
|
@@ -720,6 +801,7 @@ export declare const ratingMatrixScaleSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
720
801
|
}, z.core.$strip>], "kind">;
|
|
721
802
|
export declare const ratingMatrixQuestionSchema: z.ZodObject<{
|
|
722
803
|
id: z.ZodString;
|
|
804
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
723
805
|
title: z.ZodString;
|
|
724
806
|
description: z.ZodOptional<z.ZodString>;
|
|
725
807
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -767,7 +849,9 @@ export declare const ratingMatrixQuestionSchema: z.ZodObject<{
|
|
|
767
849
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
768
850
|
left: "left";
|
|
769
851
|
center: "center";
|
|
852
|
+
justify: "justify";
|
|
770
853
|
}>>>;
|
|
854
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
771
855
|
type: z.ZodLiteral<"rating_matrix">;
|
|
772
856
|
statements: z.ZodArray<z.ZodObject<{
|
|
773
857
|
id: z.ZodString;
|
|
@@ -823,6 +907,7 @@ export declare const matrixColumnSchema: z.ZodObject<{
|
|
|
823
907
|
}, z.core.$strip>;
|
|
824
908
|
export declare const matrixSingleChoiceQuestionSchema: z.ZodObject<{
|
|
825
909
|
id: z.ZodString;
|
|
910
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
826
911
|
title: z.ZodString;
|
|
827
912
|
description: z.ZodOptional<z.ZodString>;
|
|
828
913
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -870,7 +955,9 @@ export declare const matrixSingleChoiceQuestionSchema: z.ZodObject<{
|
|
|
870
955
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
871
956
|
left: "left";
|
|
872
957
|
center: "center";
|
|
958
|
+
justify: "justify";
|
|
873
959
|
}>>>;
|
|
960
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
874
961
|
type: z.ZodLiteral<"matrix_single_choice">;
|
|
875
962
|
rows: z.ZodArray<z.ZodObject<{
|
|
876
963
|
id: z.ZodString;
|
|
@@ -889,6 +976,7 @@ export declare const matrixSingleChoiceQuestionSchema: z.ZodObject<{
|
|
|
889
976
|
}, z.core.$strip>;
|
|
890
977
|
export declare const matrixMultipleChoiceQuestionSchema: z.ZodObject<{
|
|
891
978
|
id: z.ZodString;
|
|
979
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
892
980
|
title: z.ZodString;
|
|
893
981
|
description: z.ZodOptional<z.ZodString>;
|
|
894
982
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -936,7 +1024,9 @@ export declare const matrixMultipleChoiceQuestionSchema: z.ZodObject<{
|
|
|
936
1024
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
937
1025
|
left: "left";
|
|
938
1026
|
center: "center";
|
|
1027
|
+
justify: "justify";
|
|
939
1028
|
}>>>;
|
|
1029
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
940
1030
|
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
941
1031
|
rows: z.ZodArray<z.ZodObject<{
|
|
942
1032
|
id: z.ZodString;
|
|
@@ -965,6 +1055,7 @@ export declare const questionOptionSchema: z.ZodObject<{
|
|
|
965
1055
|
export declare const nestedOptionSchema: z.ZodType<any>;
|
|
966
1056
|
export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
967
1057
|
id: z.ZodString;
|
|
1058
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
968
1059
|
title: z.ZodString;
|
|
969
1060
|
description: z.ZodOptional<z.ZodString>;
|
|
970
1061
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1012,7 +1103,9 @@ export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
|
1012
1103
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1013
1104
|
left: "left";
|
|
1014
1105
|
center: "center";
|
|
1106
|
+
justify: "justify";
|
|
1015
1107
|
}>>>;
|
|
1108
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1016
1109
|
type: z.ZodLiteral<"single_choice">;
|
|
1017
1110
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
1018
1111
|
radio: "radio";
|
|
@@ -1037,6 +1130,7 @@ export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
|
1037
1130
|
}, z.core.$strip>;
|
|
1038
1131
|
export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
1039
1132
|
id: z.ZodString;
|
|
1133
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1040
1134
|
title: z.ZodString;
|
|
1041
1135
|
description: z.ZodOptional<z.ZodString>;
|
|
1042
1136
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1084,7 +1178,9 @@ export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
|
1084
1178
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1085
1179
|
left: "left";
|
|
1086
1180
|
center: "center";
|
|
1181
|
+
justify: "justify";
|
|
1087
1182
|
}>>>;
|
|
1183
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1088
1184
|
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
1089
1185
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
1090
1186
|
list: "list";
|
|
@@ -1110,6 +1206,7 @@ export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
|
1110
1206
|
}, z.core.$strip>;
|
|
1111
1207
|
export declare const npsQuestionSchema: z.ZodObject<{
|
|
1112
1208
|
id: z.ZodString;
|
|
1209
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1113
1210
|
title: z.ZodString;
|
|
1114
1211
|
description: z.ZodOptional<z.ZodString>;
|
|
1115
1212
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1157,7 +1254,9 @@ export declare const npsQuestionSchema: z.ZodObject<{
|
|
|
1157
1254
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1158
1255
|
left: "left";
|
|
1159
1256
|
center: "center";
|
|
1257
|
+
justify: "justify";
|
|
1160
1258
|
}>>>;
|
|
1259
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1161
1260
|
type: z.ZodLiteral<"nps">;
|
|
1162
1261
|
min: z.ZodLiteral<0>;
|
|
1163
1262
|
max: z.ZodLiteral<10>;
|
|
@@ -1168,6 +1267,7 @@ export declare const npsQuestionSchema: z.ZodObject<{
|
|
|
1168
1267
|
}, z.core.$strip>;
|
|
1169
1268
|
export declare const shortAnswerQuestionSchema: z.ZodObject<{
|
|
1170
1269
|
id: z.ZodString;
|
|
1270
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1171
1271
|
title: z.ZodString;
|
|
1172
1272
|
description: z.ZodOptional<z.ZodString>;
|
|
1173
1273
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1215,7 +1315,9 @@ export declare const shortAnswerQuestionSchema: z.ZodObject<{
|
|
|
1215
1315
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1216
1316
|
left: "left";
|
|
1217
1317
|
center: "center";
|
|
1318
|
+
justify: "justify";
|
|
1218
1319
|
}>>>;
|
|
1320
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1219
1321
|
type: z.ZodLiteral<"short_answer">;
|
|
1220
1322
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
1221
1323
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1229,6 +1331,7 @@ export declare const shortAnswerQuestionSchema: z.ZodObject<{
|
|
|
1229
1331
|
}, z.core.$strip>;
|
|
1230
1332
|
export declare const longAnswerQuestionSchema: z.ZodObject<{
|
|
1231
1333
|
id: z.ZodString;
|
|
1334
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1232
1335
|
title: z.ZodString;
|
|
1233
1336
|
description: z.ZodOptional<z.ZodString>;
|
|
1234
1337
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1276,7 +1379,9 @@ export declare const longAnswerQuestionSchema: z.ZodObject<{
|
|
|
1276
1379
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1277
1380
|
left: "left";
|
|
1278
1381
|
center: "center";
|
|
1382
|
+
justify: "justify";
|
|
1279
1383
|
}>>>;
|
|
1384
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1280
1385
|
type: z.ZodLiteral<"long_text">;
|
|
1281
1386
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
1282
1387
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1289,6 +1394,7 @@ export declare const longAnswerQuestionSchema: z.ZodObject<{
|
|
|
1289
1394
|
}, z.core.$strip>;
|
|
1290
1395
|
export declare const nestedDropdownQuestionSchema: z.ZodObject<{
|
|
1291
1396
|
id: z.ZodString;
|
|
1397
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1292
1398
|
title: z.ZodString;
|
|
1293
1399
|
description: z.ZodOptional<z.ZodString>;
|
|
1294
1400
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1336,7 +1442,9 @@ export declare const nestedDropdownQuestionSchema: z.ZodObject<{
|
|
|
1336
1442
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1337
1443
|
left: "left";
|
|
1338
1444
|
center: "center";
|
|
1445
|
+
justify: "justify";
|
|
1339
1446
|
}>>>;
|
|
1447
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1340
1448
|
type: z.ZodLiteral<"nested_selection">;
|
|
1341
1449
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1342
1450
|
options: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
@@ -1371,6 +1479,7 @@ export type MessagePanelQuestion = z.infer<typeof messagePanelQuestionSchema>;
|
|
|
1371
1479
|
export type ExitFormQuestion = z.infer<typeof exitFormQuestionSchema>;
|
|
1372
1480
|
export type YesNoDisplayStyle = z.infer<typeof yesNoDisplayStyleSchema>;
|
|
1373
1481
|
export type YesNoQuestion = z.infer<typeof yesNoQuestionSchema>;
|
|
1482
|
+
export type ConsentQuestion = z.infer<typeof consentQuestionSchema>;
|
|
1374
1483
|
export type RatingMatrixStatement = z.infer<typeof ratingMatrixStatementSchema>;
|
|
1375
1484
|
export type RatingMatrixScalePoint = z.infer<typeof ratingMatrixScalePointSchema>;
|
|
1376
1485
|
export type RatingMatrixScale = z.infer<typeof ratingMatrixScaleSchema>;
|
|
@@ -1394,6 +1503,7 @@ export type NestedDropdownQuestion = z.infer<typeof nestedDropdownQuestionSchema
|
|
|
1394
1503
|
export type Section = z.infer<typeof sectionSchema>;
|
|
1395
1504
|
export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1396
1505
|
id: z.ZodString;
|
|
1506
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1397
1507
|
title: z.ZodString;
|
|
1398
1508
|
description: z.ZodOptional<z.ZodString>;
|
|
1399
1509
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1441,7 +1551,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1441
1551
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1442
1552
|
left: "left";
|
|
1443
1553
|
center: "center";
|
|
1554
|
+
justify: "justify";
|
|
1444
1555
|
}>>>;
|
|
1556
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1445
1557
|
type: z.ZodLiteral<"rating">;
|
|
1446
1558
|
showLabels: z.ZodOptional<z.ZodBoolean>;
|
|
1447
1559
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1463,6 +1575,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1463
1575
|
color: z.ZodOptional<z.ZodString>;
|
|
1464
1576
|
}, z.core.$strip>, z.ZodObject<{
|
|
1465
1577
|
id: z.ZodString;
|
|
1578
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1466
1579
|
title: z.ZodString;
|
|
1467
1580
|
description: z.ZodOptional<z.ZodString>;
|
|
1468
1581
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1510,12 +1623,15 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1510
1623
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1511
1624
|
left: "left";
|
|
1512
1625
|
center: "center";
|
|
1626
|
+
justify: "justify";
|
|
1513
1627
|
}>>>;
|
|
1628
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1514
1629
|
type: z.ZodLiteral<"annotation">;
|
|
1515
1630
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
1516
1631
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
1517
1632
|
}, z.core.$strip>, z.ZodObject<{
|
|
1518
1633
|
id: z.ZodString;
|
|
1634
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1519
1635
|
describe: z.ZodOptional<z.ZodString>;
|
|
1520
1636
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1521
1637
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1561,14 +1677,16 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1561
1677
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1562
1678
|
left: "left";
|
|
1563
1679
|
center: "center";
|
|
1680
|
+
justify: "justify";
|
|
1564
1681
|
}>>>;
|
|
1682
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1565
1683
|
type: z.ZodLiteral<"welcome">;
|
|
1566
1684
|
title: z.ZodString;
|
|
1567
1685
|
description: z.ZodOptional<z.ZodString>;
|
|
1568
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1569
1686
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1570
1687
|
}, z.core.$strip>, z.ZodObject<{
|
|
1571
1688
|
id: z.ZodString;
|
|
1689
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1572
1690
|
describe: z.ZodOptional<z.ZodString>;
|
|
1573
1691
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1574
1692
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1614,14 +1732,16 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1614
1732
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1615
1733
|
left: "left";
|
|
1616
1734
|
center: "center";
|
|
1735
|
+
justify: "justify";
|
|
1617
1736
|
}>>>;
|
|
1737
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1618
1738
|
type: z.ZodLiteral<"thank_you">;
|
|
1619
1739
|
title: z.ZodString;
|
|
1620
1740
|
description: z.ZodOptional<z.ZodString>;
|
|
1621
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1622
1741
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1623
1742
|
}, z.core.$strip>, z.ZodObject<{
|
|
1624
1743
|
id: z.ZodString;
|
|
1744
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1625
1745
|
describe: z.ZodOptional<z.ZodString>;
|
|
1626
1746
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1627
1747
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1667,14 +1787,16 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1667
1787
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1668
1788
|
left: "left";
|
|
1669
1789
|
center: "center";
|
|
1790
|
+
justify: "justify";
|
|
1670
1791
|
}>>>;
|
|
1792
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1671
1793
|
type: z.ZodLiteral<"message_panel">;
|
|
1672
1794
|
title: z.ZodString;
|
|
1673
1795
|
description: z.ZodOptional<z.ZodString>;
|
|
1674
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1675
1796
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1676
1797
|
}, z.core.$strip>, z.ZodObject<{
|
|
1677
1798
|
id: z.ZodString;
|
|
1799
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1678
1800
|
title: z.ZodString;
|
|
1679
1801
|
description: z.ZodOptional<z.ZodString>;
|
|
1680
1802
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1722,10 +1844,13 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1722
1844
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1723
1845
|
left: "left";
|
|
1724
1846
|
center: "center";
|
|
1847
|
+
justify: "justify";
|
|
1725
1848
|
}>>>;
|
|
1849
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1726
1850
|
type: z.ZodLiteral<"exit_form">;
|
|
1727
1851
|
}, z.core.$strip>, z.ZodObject<{
|
|
1728
1852
|
id: z.ZodString;
|
|
1853
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1729
1854
|
title: z.ZodString;
|
|
1730
1855
|
description: z.ZodOptional<z.ZodString>;
|
|
1731
1856
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1773,7 +1898,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1773
1898
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1774
1899
|
left: "left";
|
|
1775
1900
|
center: "center";
|
|
1901
|
+
justify: "justify";
|
|
1776
1902
|
}>>>;
|
|
1903
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1777
1904
|
type: z.ZodLiteral<"yes_no">;
|
|
1778
1905
|
yesLabel: z.ZodOptional<z.ZodString>;
|
|
1779
1906
|
noLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1783,6 +1910,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1783
1910
|
}>>;
|
|
1784
1911
|
}, z.core.$strip>, z.ZodObject<{
|
|
1785
1912
|
id: z.ZodString;
|
|
1913
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1786
1914
|
title: z.ZodString;
|
|
1787
1915
|
description: z.ZodOptional<z.ZodString>;
|
|
1788
1916
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1830,7 +1958,63 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1830
1958
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1831
1959
|
left: "left";
|
|
1832
1960
|
center: "center";
|
|
1961
|
+
justify: "justify";
|
|
1833
1962
|
}>>>;
|
|
1963
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
type: z.ZodLiteral<"consent">;
|
|
1965
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1966
|
+
id: z.ZodString;
|
|
1967
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1968
|
+
title: z.ZodString;
|
|
1969
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1972
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
1973
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1974
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1975
|
+
type: z.ZodEnum<{
|
|
1976
|
+
custom: "custom";
|
|
1977
|
+
pattern: "pattern";
|
|
1978
|
+
required: "required";
|
|
1979
|
+
min: "min";
|
|
1980
|
+
max: "max";
|
|
1981
|
+
minLength: "minLength";
|
|
1982
|
+
maxLength: "maxLength";
|
|
1983
|
+
email: "email";
|
|
1984
|
+
url: "url";
|
|
1985
|
+
}>;
|
|
1986
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1987
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1988
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1989
|
+
}, z.core.$strip>>>>;
|
|
1990
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1991
|
+
field: z.ZodString;
|
|
1992
|
+
operator: z.ZodEnum<{
|
|
1993
|
+
equals: "equals";
|
|
1994
|
+
not_equals: "not_equals";
|
|
1995
|
+
contains: "contains";
|
|
1996
|
+
not_contains: "not_contains";
|
|
1997
|
+
greater_than: "greater_than";
|
|
1998
|
+
less_than: "less_than";
|
|
1999
|
+
is_empty: "is_empty";
|
|
2000
|
+
is_not_empty: "is_not_empty";
|
|
2001
|
+
}>;
|
|
2002
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2003
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
2004
|
+
}, z.core.$strip>>>>;
|
|
2005
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
status: z.ZodEnum<{
|
|
2007
|
+
D: "D";
|
|
2008
|
+
P: "P";
|
|
2009
|
+
A: "A";
|
|
2010
|
+
S: "S";
|
|
2011
|
+
}>;
|
|
2012
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2013
|
+
left: "left";
|
|
2014
|
+
center: "center";
|
|
2015
|
+
justify: "justify";
|
|
2016
|
+
}>>>;
|
|
2017
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1834
2018
|
type: z.ZodLiteral<"rating_matrix">;
|
|
1835
2019
|
statements: z.ZodArray<z.ZodObject<{
|
|
1836
2020
|
id: z.ZodString;
|
|
@@ -1873,6 +2057,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1873
2057
|
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1874
2058
|
}, z.core.$strip>, z.ZodObject<{
|
|
1875
2059
|
id: z.ZodString;
|
|
2060
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1876
2061
|
title: z.ZodString;
|
|
1877
2062
|
description: z.ZodOptional<z.ZodString>;
|
|
1878
2063
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1920,7 +2105,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1920
2105
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1921
2106
|
left: "left";
|
|
1922
2107
|
center: "center";
|
|
2108
|
+
justify: "justify";
|
|
1923
2109
|
}>>>;
|
|
2110
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1924
2111
|
type: z.ZodLiteral<"matrix_single_choice">;
|
|
1925
2112
|
rows: z.ZodArray<z.ZodObject<{
|
|
1926
2113
|
id: z.ZodString;
|
|
@@ -1938,6 +2125,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1938
2125
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1939
2126
|
}, z.core.$strip>, z.ZodObject<{
|
|
1940
2127
|
id: z.ZodString;
|
|
2128
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1941
2129
|
title: z.ZodString;
|
|
1942
2130
|
description: z.ZodOptional<z.ZodString>;
|
|
1943
2131
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1985,7 +2173,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1985
2173
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1986
2174
|
left: "left";
|
|
1987
2175
|
center: "center";
|
|
2176
|
+
justify: "justify";
|
|
1988
2177
|
}>>>;
|
|
2178
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1989
2179
|
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
1990
2180
|
rows: z.ZodArray<z.ZodObject<{
|
|
1991
2181
|
id: z.ZodString;
|
|
@@ -2005,6 +2195,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2005
2195
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2006
2196
|
}, z.core.$strip>, z.ZodObject<{
|
|
2007
2197
|
id: z.ZodString;
|
|
2198
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2008
2199
|
title: z.ZodString;
|
|
2009
2200
|
description: z.ZodOptional<z.ZodString>;
|
|
2010
2201
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2052,7 +2243,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2052
2243
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2053
2244
|
left: "left";
|
|
2054
2245
|
center: "center";
|
|
2246
|
+
justify: "justify";
|
|
2055
2247
|
}>>>;
|
|
2248
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2056
2249
|
type: z.ZodLiteral<"single_choice">;
|
|
2057
2250
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
2058
2251
|
radio: "radio";
|
|
@@ -2076,6 +2269,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2076
2269
|
}, z.core.$strip>>;
|
|
2077
2270
|
}, z.core.$strip>, z.ZodObject<{
|
|
2078
2271
|
id: z.ZodString;
|
|
2272
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2079
2273
|
title: z.ZodString;
|
|
2080
2274
|
description: z.ZodOptional<z.ZodString>;
|
|
2081
2275
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2123,7 +2317,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2123
2317
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2124
2318
|
left: "left";
|
|
2125
2319
|
center: "center";
|
|
2320
|
+
justify: "justify";
|
|
2126
2321
|
}>>>;
|
|
2322
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2127
2323
|
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
2128
2324
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
2129
2325
|
list: "list";
|
|
@@ -2148,6 +2344,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2148
2344
|
}, z.core.$strip>>;
|
|
2149
2345
|
}, z.core.$strip>, z.ZodObject<{
|
|
2150
2346
|
id: z.ZodString;
|
|
2347
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2151
2348
|
title: z.ZodString;
|
|
2152
2349
|
description: z.ZodOptional<z.ZodString>;
|
|
2153
2350
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2195,7 +2392,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2195
2392
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2196
2393
|
left: "left";
|
|
2197
2394
|
center: "center";
|
|
2395
|
+
justify: "justify";
|
|
2198
2396
|
}>>>;
|
|
2397
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2199
2398
|
type: z.ZodLiteral<"nps">;
|
|
2200
2399
|
min: z.ZodLiteral<0>;
|
|
2201
2400
|
max: z.ZodLiteral<10>;
|
|
@@ -2205,6 +2404,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2205
2404
|
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
2206
2405
|
}, z.core.$strip>, z.ZodObject<{
|
|
2207
2406
|
id: z.ZodString;
|
|
2407
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2208
2408
|
title: z.ZodString;
|
|
2209
2409
|
description: z.ZodOptional<z.ZodString>;
|
|
2210
2410
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2252,7 +2452,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2252
2452
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2253
2453
|
left: "left";
|
|
2254
2454
|
center: "center";
|
|
2455
|
+
justify: "justify";
|
|
2255
2456
|
}>>>;
|
|
2457
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2256
2458
|
type: z.ZodLiteral<"short_answer">;
|
|
2257
2459
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
2258
2460
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2265,6 +2467,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2265
2467
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
2266
2468
|
}, z.core.$strip>, z.ZodObject<{
|
|
2267
2469
|
id: z.ZodString;
|
|
2470
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2268
2471
|
title: z.ZodString;
|
|
2269
2472
|
description: z.ZodOptional<z.ZodString>;
|
|
2270
2473
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2312,7 +2515,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2312
2515
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2313
2516
|
left: "left";
|
|
2314
2517
|
center: "center";
|
|
2518
|
+
justify: "justify";
|
|
2315
2519
|
}>>>;
|
|
2520
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2316
2521
|
type: z.ZodLiteral<"long_text">;
|
|
2317
2522
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
2318
2523
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2324,6 +2529,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2324
2529
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
2325
2530
|
}, z.core.$strip>, z.ZodObject<{
|
|
2326
2531
|
id: z.ZodString;
|
|
2532
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2327
2533
|
title: z.ZodString;
|
|
2328
2534
|
description: z.ZodOptional<z.ZodString>;
|
|
2329
2535
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2371,7 +2577,9 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2371
2577
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2372
2578
|
left: "left";
|
|
2373
2579
|
center: "center";
|
|
2580
|
+
justify: "justify";
|
|
2374
2581
|
}>>>;
|
|
2582
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2375
2583
|
type: z.ZodLiteral<"nested_selection">;
|
|
2376
2584
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2377
2585
|
options: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
@@ -2390,4 +2598,4 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2390
2598
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
2391
2599
|
cascadeLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2392
2600
|
}, z.core.$strip>], "type">;
|
|
2393
|
-
export type CombinedQuestion = z.infer<typeof ratingQuestionSchema> | z.infer<typeof annotationQuestionSchema> | z.infer<typeof welcomeQuestionSchema> | z.infer<typeof thankYouQuestionSchema> | z.infer<typeof messagePanelQuestionSchema> | z.infer<typeof exitFormQuestionSchema> | z.infer<typeof yesNoQuestionSchema> | z.infer<typeof ratingMatrixQuestionSchema> | z.infer<typeof matrixSingleChoiceQuestionSchema> | z.infer<typeof matrixMultipleChoiceQuestionSchema> | z.infer<typeof multipleChoiceSingleQuestionSchema> | z.infer<typeof multipleChoiceMultipleQuestionSchema> | z.infer<typeof npsQuestionSchema> | z.infer<typeof shortAnswerQuestionSchema> | z.infer<typeof longAnswerQuestionSchema> | z.infer<typeof nestedDropdownQuestionSchema>;
|
|
2601
|
+
export type CombinedQuestion = z.infer<typeof ratingQuestionSchema> | z.infer<typeof annotationQuestionSchema> | z.infer<typeof welcomeQuestionSchema> | z.infer<typeof thankYouQuestionSchema> | z.infer<typeof messagePanelQuestionSchema> | z.infer<typeof exitFormQuestionSchema> | z.infer<typeof yesNoQuestionSchema> | z.infer<typeof consentQuestionSchema> | z.infer<typeof ratingMatrixQuestionSchema> | z.infer<typeof matrixSingleChoiceQuestionSchema> | z.infer<typeof matrixMultipleChoiceQuestionSchema> | z.infer<typeof multipleChoiceSingleQuestionSchema> | z.infer<typeof multipleChoiceMultipleQuestionSchema> | z.infer<typeof npsQuestionSchema> | z.infer<typeof shortAnswerQuestionSchema> | z.infer<typeof longAnswerQuestionSchema> | z.infer<typeof nestedDropdownQuestionSchema>;
|