@encatch/schema 1.0.1-beta.0 → 1.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +279 -5
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +2 -2
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +986 -147
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +24 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +8 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +466 -1
- package/dist/types/schemas/fields/field-schema.d.ts +1074 -152
- package/dist/types/schemas/fields/form-properties-schema.d.ts +473 -1
- package/dist/types/schemas/fields/theme-schema.d.ts +25 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +263 -4
- package/package.json +1 -1
|
@@ -8,6 +8,13 @@ export declare const questionTypeSchema: z.ZodEnum<{
|
|
|
8
8
|
short_answer: "short_answer";
|
|
9
9
|
long_text: "long_text";
|
|
10
10
|
annotation: "annotation";
|
|
11
|
+
welcome: "welcome";
|
|
12
|
+
thank_you: "thank_you";
|
|
13
|
+
message_panel: "message_panel";
|
|
14
|
+
yes_no: "yes_no";
|
|
15
|
+
rating_matrix: "rating_matrix";
|
|
16
|
+
matrix_single_choice: "matrix_single_choice";
|
|
17
|
+
matrix_multiple_choice: "matrix_multiple_choice";
|
|
11
18
|
}>;
|
|
12
19
|
export declare const QuestionTypes: {
|
|
13
20
|
readonly RATING: "rating";
|
|
@@ -18,6 +25,13 @@ export declare const QuestionTypes: {
|
|
|
18
25
|
readonly SHORT_ANSWER: "short_answer";
|
|
19
26
|
readonly LONG_TEXT: "long_text";
|
|
20
27
|
readonly ANNOTATION: "annotation";
|
|
28
|
+
readonly WELCOME: "welcome";
|
|
29
|
+
readonly THANK_YOU: "thank_you";
|
|
30
|
+
readonly MESSAGE_PANEL: "message_panel";
|
|
31
|
+
readonly YES_NO: "yes_no";
|
|
32
|
+
readonly RATING_MATRIX: "rating_matrix";
|
|
33
|
+
readonly MATRIX_SINGLE_CHOICE: "matrix_single_choice";
|
|
34
|
+
readonly MATRIX_MULTIPLE_CHOICE: "matrix_multiple_choice";
|
|
21
35
|
};
|
|
22
36
|
export declare const validationRuleTypeSchema: z.ZodEnum<{
|
|
23
37
|
required: "required";
|
|
@@ -157,6 +171,14 @@ export declare const MultipleChoiceMultipleDisplayStyles: {
|
|
|
157
171
|
readonly LIST: "list";
|
|
158
172
|
readonly CHIP: "chip";
|
|
159
173
|
};
|
|
174
|
+
export declare const yesNoDisplayStyleSchema: z.ZodEnum<{
|
|
175
|
+
horizontal: "horizontal";
|
|
176
|
+
vertical: "vertical";
|
|
177
|
+
}>;
|
|
178
|
+
export declare const YesNoDisplayStyles: {
|
|
179
|
+
readonly HORIZONTAL: "horizontal";
|
|
180
|
+
readonly VERTICAL: "vertical";
|
|
181
|
+
};
|
|
160
182
|
export declare const choiceOrderOptionSchema: z.ZodEnum<{
|
|
161
183
|
randomize: "randomize";
|
|
162
184
|
flip: "flip";
|
|
@@ -182,6 +204,13 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
182
204
|
short_answer: "short_answer";
|
|
183
205
|
long_text: "long_text";
|
|
184
206
|
annotation: "annotation";
|
|
207
|
+
welcome: "welcome";
|
|
208
|
+
thank_you: "thank_you";
|
|
209
|
+
message_panel: "message_panel";
|
|
210
|
+
yes_no: "yes_no";
|
|
211
|
+
rating_matrix: "rating_matrix";
|
|
212
|
+
matrix_single_choice: "matrix_single_choice";
|
|
213
|
+
matrix_multiple_choice: "matrix_multiple_choice";
|
|
185
214
|
}>;
|
|
186
215
|
title: z.ZodString;
|
|
187
216
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -347,18 +376,8 @@ export declare const annotationQuestionSchema: z.ZodObject<{
|
|
|
347
376
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
348
377
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
349
378
|
}, z.core.$strip>;
|
|
350
|
-
export declare const
|
|
351
|
-
id: z.ZodString;
|
|
352
|
-
value: z.ZodString;
|
|
353
|
-
label: z.ZodString;
|
|
354
|
-
describe: z.ZodOptional<z.ZodString>;
|
|
355
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
356
|
-
}, z.core.$strip>;
|
|
357
|
-
export declare const nestedOptionSchema: z.ZodType<any>;
|
|
358
|
-
export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
379
|
+
export declare const welcomeQuestionSchema: z.ZodObject<{
|
|
359
380
|
id: z.ZodString;
|
|
360
|
-
title: z.ZodString;
|
|
361
|
-
description: z.ZodOptional<z.ZodString>;
|
|
362
381
|
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
363
382
|
describe: z.ZodOptional<z.ZodString>;
|
|
364
383
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -402,32 +421,14 @@ export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
|
402
421
|
A: "A";
|
|
403
422
|
S: "S";
|
|
404
423
|
}>;
|
|
405
|
-
type: z.ZodLiteral<"
|
|
406
|
-
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
407
|
-
radio: "radio";
|
|
408
|
-
list: "list";
|
|
409
|
-
chip: "chip";
|
|
410
|
-
dropdown: "dropdown";
|
|
411
|
-
}>>;
|
|
412
|
-
allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
413
|
-
otherTextConfig: z.ZodOptional<z.ZodObject<{
|
|
414
|
-
minChars: z.ZodOptional<z.ZodNumber>;
|
|
415
|
-
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
416
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
417
|
-
}, z.core.$strip>>;
|
|
418
|
-
randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
419
|
-
options: z.ZodArray<z.ZodObject<{
|
|
420
|
-
id: z.ZodString;
|
|
421
|
-
value: z.ZodString;
|
|
422
|
-
label: z.ZodString;
|
|
423
|
-
describe: z.ZodOptional<z.ZodString>;
|
|
424
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
425
|
-
}, z.core.$strip>>;
|
|
426
|
-
}, z.core.$strip>;
|
|
427
|
-
export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
428
|
-
id: z.ZodString;
|
|
424
|
+
type: z.ZodLiteral<"welcome">;
|
|
429
425
|
title: z.ZodString;
|
|
430
426
|
description: z.ZodOptional<z.ZodString>;
|
|
427
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
428
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
429
|
+
}, z.core.$strip>;
|
|
430
|
+
export declare const thankYouQuestionSchema: z.ZodObject<{
|
|
431
|
+
id: z.ZodString;
|
|
431
432
|
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
432
433
|
describe: z.ZodOptional<z.ZodString>;
|
|
433
434
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -471,33 +472,14 @@ export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
|
471
472
|
A: "A";
|
|
472
473
|
S: "S";
|
|
473
474
|
}>;
|
|
474
|
-
type: z.ZodLiteral<"
|
|
475
|
-
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
476
|
-
list: "list";
|
|
477
|
-
chip: "chip";
|
|
478
|
-
checkbox: "checkbox";
|
|
479
|
-
}>>;
|
|
480
|
-
allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
481
|
-
otherTextConfig: z.ZodOptional<z.ZodObject<{
|
|
482
|
-
minChars: z.ZodOptional<z.ZodNumber>;
|
|
483
|
-
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
484
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
485
|
-
}, z.core.$strip>>;
|
|
486
|
-
minSelections: z.ZodOptional<z.ZodNumber>;
|
|
487
|
-
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
488
|
-
randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
489
|
-
options: z.ZodArray<z.ZodObject<{
|
|
490
|
-
id: z.ZodString;
|
|
491
|
-
value: z.ZodString;
|
|
492
|
-
label: z.ZodString;
|
|
493
|
-
describe: z.ZodOptional<z.ZodString>;
|
|
494
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
495
|
-
}, z.core.$strip>>;
|
|
496
|
-
}, z.core.$strip>;
|
|
497
|
-
export declare const npsQuestionSchema: z.ZodObject<{
|
|
498
|
-
id: z.ZodString;
|
|
475
|
+
type: z.ZodLiteral<"thank_you">;
|
|
499
476
|
title: z.ZodString;
|
|
500
477
|
description: z.ZodOptional<z.ZodString>;
|
|
478
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
479
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
export declare const messagePanelQuestionSchema: z.ZodObject<{
|
|
482
|
+
id: z.ZodString;
|
|
501
483
|
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
502
484
|
describe: z.ZodOptional<z.ZodString>;
|
|
503
485
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -541,15 +523,13 @@ export declare const npsQuestionSchema: z.ZodObject<{
|
|
|
541
523
|
A: "A";
|
|
542
524
|
S: "S";
|
|
543
525
|
}>;
|
|
544
|
-
type: z.ZodLiteral<"
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
550
|
-
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
526
|
+
type: z.ZodLiteral<"message_panel">;
|
|
527
|
+
title: z.ZodString;
|
|
528
|
+
description: z.ZodOptional<z.ZodString>;
|
|
529
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
530
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
551
531
|
}, z.core.$strip>;
|
|
552
|
-
export declare const
|
|
532
|
+
export declare const yesNoQuestionSchema: z.ZodObject<{
|
|
553
533
|
id: z.ZodString;
|
|
554
534
|
title: z.ZodString;
|
|
555
535
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -596,18 +576,57 @@ export declare const shortAnswerQuestionSchema: z.ZodObject<{
|
|
|
596
576
|
A: "A";
|
|
597
577
|
S: "S";
|
|
598
578
|
}>;
|
|
599
|
-
type: z.ZodLiteral<"
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
promptTemplate: z.ZodOptional<z.ZodString>;
|
|
607
|
-
maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
|
|
608
|
-
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
579
|
+
type: z.ZodLiteral<"yes_no">;
|
|
580
|
+
yesLabel: z.ZodOptional<z.ZodString>;
|
|
581
|
+
noLabel: z.ZodOptional<z.ZodString>;
|
|
582
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
583
|
+
horizontal: "horizontal";
|
|
584
|
+
vertical: "vertical";
|
|
585
|
+
}>>;
|
|
609
586
|
}, z.core.$strip>;
|
|
610
|
-
export declare const
|
|
587
|
+
export declare const ratingMatrixDisplayStyleSchema: z.ZodEnum<{
|
|
588
|
+
star: "star";
|
|
589
|
+
emoji: "emoji";
|
|
590
|
+
radio: "radio";
|
|
591
|
+
button: "button";
|
|
592
|
+
}>;
|
|
593
|
+
export declare const RatingMatrixDisplayStyles: {
|
|
594
|
+
readonly RADIO: "radio";
|
|
595
|
+
readonly STAR: "star";
|
|
596
|
+
readonly EMOJI: "emoji";
|
|
597
|
+
readonly BUTTON: "button";
|
|
598
|
+
};
|
|
599
|
+
export declare const ratingMatrixStatementSchema: z.ZodObject<{
|
|
600
|
+
id: z.ZodString;
|
|
601
|
+
value: z.ZodString;
|
|
602
|
+
label: z.ZodString;
|
|
603
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
604
|
+
}, z.core.$strip>;
|
|
605
|
+
export declare const ratingMatrixScalePointSchema: z.ZodObject<{
|
|
606
|
+
id: z.ZodString;
|
|
607
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
608
|
+
label: z.ZodString;
|
|
609
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
610
|
+
}, z.core.$strip>;
|
|
611
|
+
export declare const ratingMatrixScaleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
612
|
+
kind: z.ZodLiteral<"likert">;
|
|
613
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
614
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
616
|
+
kind: z.ZodLiteral<"numerical">;
|
|
617
|
+
pointCount: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
|
|
618
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
619
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
620
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
621
|
+
kind: z.ZodLiteral<"custom">;
|
|
622
|
+
scalePoints: z.ZodArray<z.ZodObject<{
|
|
623
|
+
id: z.ZodString;
|
|
624
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
625
|
+
label: z.ZodString;
|
|
626
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
627
|
+
}, z.core.$strip>>;
|
|
628
|
+
}, z.core.$strip>], "kind">;
|
|
629
|
+
export declare const ratingMatrixQuestionSchema: z.ZodObject<{
|
|
611
630
|
id: z.ZodString;
|
|
612
631
|
title: z.ZodString;
|
|
613
632
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -654,17 +673,52 @@ export declare const longAnswerQuestionSchema: z.ZodObject<{
|
|
|
654
673
|
A: "A";
|
|
655
674
|
S: "S";
|
|
656
675
|
}>;
|
|
657
|
-
type: z.ZodLiteral<"
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
676
|
+
type: z.ZodLiteral<"rating_matrix">;
|
|
677
|
+
statements: z.ZodArray<z.ZodObject<{
|
|
678
|
+
id: z.ZodString;
|
|
679
|
+
value: z.ZodString;
|
|
680
|
+
label: z.ZodString;
|
|
681
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
682
|
+
}, z.core.$strip>>;
|
|
683
|
+
scale: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
684
|
+
kind: z.ZodLiteral<"likert">;
|
|
685
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
686
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
687
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
688
|
+
kind: z.ZodLiteral<"numerical">;
|
|
689
|
+
pointCount: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
|
|
690
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
691
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
693
|
+
kind: z.ZodLiteral<"custom">;
|
|
694
|
+
scalePoints: z.ZodArray<z.ZodObject<{
|
|
695
|
+
id: z.ZodString;
|
|
696
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
697
|
+
label: z.ZodString;
|
|
698
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
699
|
+
}, z.core.$strip>>;
|
|
700
|
+
}, z.core.$strip>], "kind">;
|
|
701
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
702
|
+
star: "star";
|
|
703
|
+
emoji: "emoji";
|
|
704
|
+
radio: "radio";
|
|
705
|
+
button: "button";
|
|
706
|
+
}>>;
|
|
707
|
+
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
666
708
|
}, z.core.$strip>;
|
|
667
|
-
export declare const
|
|
709
|
+
export declare const matrixRowSchema: z.ZodObject<{
|
|
710
|
+
id: z.ZodString;
|
|
711
|
+
value: z.ZodString;
|
|
712
|
+
label: z.ZodString;
|
|
713
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
714
|
+
}, z.core.$strip>;
|
|
715
|
+
export declare const matrixColumnSchema: z.ZodObject<{
|
|
716
|
+
id: z.ZodString;
|
|
717
|
+
value: z.ZodString;
|
|
718
|
+
label: z.ZodString;
|
|
719
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
720
|
+
}, z.core.$strip>;
|
|
721
|
+
export declare const matrixSingleChoiceQuestionSchema: z.ZodObject<{
|
|
668
722
|
id: z.ZodString;
|
|
669
723
|
title: z.ZodString;
|
|
670
724
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -711,46 +765,23 @@ export declare const nestedDropdownQuestionSchema: z.ZodObject<{
|
|
|
711
765
|
A: "A";
|
|
712
766
|
S: "S";
|
|
713
767
|
}>;
|
|
714
|
-
type: z.ZodLiteral<"
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
730
|
-
cascadeLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
768
|
+
type: z.ZodLiteral<"matrix_single_choice">;
|
|
769
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
770
|
+
id: z.ZodString;
|
|
771
|
+
value: z.ZodString;
|
|
772
|
+
label: z.ZodString;
|
|
773
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
774
|
+
}, z.core.$strip>>;
|
|
775
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
776
|
+
id: z.ZodString;
|
|
777
|
+
value: z.ZodString;
|
|
778
|
+
label: z.ZodString;
|
|
779
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
780
|
+
}, z.core.$strip>>;
|
|
781
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
782
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
731
783
|
}, z.core.$strip>;
|
|
732
|
-
export
|
|
733
|
-
export type ValidationRule = z.infer<typeof validationRuleSchema>;
|
|
734
|
-
export type VisibilityCondition = z.infer<typeof visibilityConditionSchema>;
|
|
735
|
-
export type QuestionStatus = z.infer<typeof questionStatusSchema>;
|
|
736
|
-
export type Question = z.infer<typeof questionSchema>;
|
|
737
|
-
export type RatingDisplayStyle = z.infer<typeof ratingDisplayStyleSchema>;
|
|
738
|
-
export type RatingRepresentationSize = z.infer<typeof ratingRepresentationSizeSchema>;
|
|
739
|
-
export type RatingQuestion = z.infer<typeof ratingQuestionSchema>;
|
|
740
|
-
export type AnnotationQuestion = z.infer<typeof annotationQuestionSchema>;
|
|
741
|
-
export type QuestionOption = z.infer<typeof questionOptionSchema>;
|
|
742
|
-
export type NestedOption = z.infer<typeof nestedOptionSchema>;
|
|
743
|
-
export type MultipleChoiceDisplayStyle = z.infer<typeof multipleChoiceDisplayStyleSchema>;
|
|
744
|
-
export type MultipleChoiceSingleQuestion = z.infer<typeof multipleChoiceSingleQuestionSchema>;
|
|
745
|
-
export type MultipleChoiceMultipleDisplayStyle = z.infer<typeof multipleChoiceMultipleDisplayStyleSchema>;
|
|
746
|
-
export type MultipleChoiceMultipleQuestion = z.infer<typeof multipleChoiceMultipleQuestionSchema>;
|
|
747
|
-
export type NpsQuestion = z.infer<typeof npsQuestionSchema>;
|
|
748
|
-
export type ShortAnswerQuestion = z.infer<typeof shortAnswerQuestionSchema>;
|
|
749
|
-
export type LongAnswerQuestion = z.infer<typeof longAnswerQuestionSchema>;
|
|
750
|
-
export type ChoiceOrderOption = z.infer<typeof choiceOrderOptionSchema>;
|
|
751
|
-
export type NestedDropdownQuestion = z.infer<typeof nestedDropdownQuestionSchema>;
|
|
752
|
-
export type Section = z.infer<typeof sectionSchema>;
|
|
753
|
-
export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
784
|
+
export declare const matrixMultipleChoiceQuestionSchema: z.ZodObject<{
|
|
754
785
|
id: z.ZodString;
|
|
755
786
|
title: z.ZodString;
|
|
756
787
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -797,26 +828,33 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
797
828
|
A: "A";
|
|
798
829
|
S: "S";
|
|
799
830
|
}>;
|
|
800
|
-
type: z.ZodLiteral<"
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
831
|
+
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
832
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
833
|
+
id: z.ZodString;
|
|
834
|
+
value: z.ZodString;
|
|
835
|
+
label: z.ZodString;
|
|
836
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
837
|
+
}, z.core.$strip>>;
|
|
838
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
839
|
+
id: z.ZodString;
|
|
840
|
+
value: z.ZodString;
|
|
841
|
+
label: z.ZodString;
|
|
842
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
843
|
+
}, z.core.$strip>>;
|
|
844
|
+
minSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
845
|
+
maxSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
846
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
847
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
848
|
+
}, z.core.$strip>;
|
|
849
|
+
export declare const questionOptionSchema: z.ZodObject<{
|
|
850
|
+
id: z.ZodString;
|
|
851
|
+
value: z.ZodString;
|
|
852
|
+
label: z.ZodString;
|
|
853
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
854
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
855
|
+
}, z.core.$strip>;
|
|
856
|
+
export declare const nestedOptionSchema: z.ZodType<any>;
|
|
857
|
+
export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
820
858
|
id: z.ZodString;
|
|
821
859
|
title: z.ZodString;
|
|
822
860
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -863,9 +901,893 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
863
901
|
A: "A";
|
|
864
902
|
S: "S";
|
|
865
903
|
}>;
|
|
866
|
-
type: z.ZodLiteral<"
|
|
867
|
-
|
|
868
|
-
|
|
904
|
+
type: z.ZodLiteral<"single_choice">;
|
|
905
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
906
|
+
radio: "radio";
|
|
907
|
+
list: "list";
|
|
908
|
+
chip: "chip";
|
|
909
|
+
dropdown: "dropdown";
|
|
910
|
+
}>>;
|
|
911
|
+
allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
912
|
+
otherTextConfig: z.ZodOptional<z.ZodObject<{
|
|
913
|
+
minChars: z.ZodOptional<z.ZodNumber>;
|
|
914
|
+
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
915
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
916
|
+
}, z.core.$strip>>;
|
|
917
|
+
randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
918
|
+
options: z.ZodArray<z.ZodObject<{
|
|
919
|
+
id: z.ZodString;
|
|
920
|
+
value: z.ZodString;
|
|
921
|
+
label: z.ZodString;
|
|
922
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
923
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
924
|
+
}, z.core.$strip>>;
|
|
925
|
+
}, z.core.$strip>;
|
|
926
|
+
export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
927
|
+
id: z.ZodString;
|
|
928
|
+
title: z.ZodString;
|
|
929
|
+
description: z.ZodOptional<z.ZodString>;
|
|
930
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
931
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
932
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
933
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
934
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
935
|
+
type: z.ZodEnum<{
|
|
936
|
+
required: "required";
|
|
937
|
+
min: "min";
|
|
938
|
+
max: "max";
|
|
939
|
+
minLength: "minLength";
|
|
940
|
+
maxLength: "maxLength";
|
|
941
|
+
pattern: "pattern";
|
|
942
|
+
email: "email";
|
|
943
|
+
url: "url";
|
|
944
|
+
custom: "custom";
|
|
945
|
+
}>;
|
|
946
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
947
|
+
message: z.ZodOptional<z.ZodString>;
|
|
948
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
949
|
+
}, z.core.$strip>>>>;
|
|
950
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
951
|
+
field: z.ZodString;
|
|
952
|
+
operator: z.ZodEnum<{
|
|
953
|
+
equals: "equals";
|
|
954
|
+
not_equals: "not_equals";
|
|
955
|
+
contains: "contains";
|
|
956
|
+
not_contains: "not_contains";
|
|
957
|
+
greater_than: "greater_than";
|
|
958
|
+
less_than: "less_than";
|
|
959
|
+
is_empty: "is_empty";
|
|
960
|
+
is_not_empty: "is_not_empty";
|
|
961
|
+
}>;
|
|
962
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
963
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
964
|
+
}, z.core.$strip>>>>;
|
|
965
|
+
isFixed: z.ZodBoolean;
|
|
966
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
967
|
+
status: z.ZodEnum<{
|
|
968
|
+
D: "D";
|
|
969
|
+
P: "P";
|
|
970
|
+
A: "A";
|
|
971
|
+
S: "S";
|
|
972
|
+
}>;
|
|
973
|
+
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
974
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
975
|
+
list: "list";
|
|
976
|
+
chip: "chip";
|
|
977
|
+
checkbox: "checkbox";
|
|
978
|
+
}>>;
|
|
979
|
+
allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
980
|
+
otherTextConfig: z.ZodOptional<z.ZodObject<{
|
|
981
|
+
minChars: z.ZodOptional<z.ZodNumber>;
|
|
982
|
+
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
983
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
984
|
+
}, z.core.$strip>>;
|
|
985
|
+
minSelections: z.ZodOptional<z.ZodNumber>;
|
|
986
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
987
|
+
randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
988
|
+
options: z.ZodArray<z.ZodObject<{
|
|
989
|
+
id: z.ZodString;
|
|
990
|
+
value: z.ZodString;
|
|
991
|
+
label: z.ZodString;
|
|
992
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
993
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
994
|
+
}, z.core.$strip>>;
|
|
995
|
+
}, z.core.$strip>;
|
|
996
|
+
export declare const npsQuestionSchema: z.ZodObject<{
|
|
997
|
+
id: z.ZodString;
|
|
998
|
+
title: z.ZodString;
|
|
999
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1001
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1002
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1003
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1005
|
+
type: z.ZodEnum<{
|
|
1006
|
+
required: "required";
|
|
1007
|
+
min: "min";
|
|
1008
|
+
max: "max";
|
|
1009
|
+
minLength: "minLength";
|
|
1010
|
+
maxLength: "maxLength";
|
|
1011
|
+
pattern: "pattern";
|
|
1012
|
+
email: "email";
|
|
1013
|
+
url: "url";
|
|
1014
|
+
custom: "custom";
|
|
1015
|
+
}>;
|
|
1016
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1017
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
}, z.core.$strip>>>>;
|
|
1020
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1021
|
+
field: z.ZodString;
|
|
1022
|
+
operator: z.ZodEnum<{
|
|
1023
|
+
equals: "equals";
|
|
1024
|
+
not_equals: "not_equals";
|
|
1025
|
+
contains: "contains";
|
|
1026
|
+
not_contains: "not_contains";
|
|
1027
|
+
greater_than: "greater_than";
|
|
1028
|
+
less_than: "less_than";
|
|
1029
|
+
is_empty: "is_empty";
|
|
1030
|
+
is_not_empty: "is_not_empty";
|
|
1031
|
+
}>;
|
|
1032
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1033
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
}, z.core.$strip>>>>;
|
|
1035
|
+
isFixed: z.ZodBoolean;
|
|
1036
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
status: z.ZodEnum<{
|
|
1038
|
+
D: "D";
|
|
1039
|
+
P: "P";
|
|
1040
|
+
A: "A";
|
|
1041
|
+
S: "S";
|
|
1042
|
+
}>;
|
|
1043
|
+
type: z.ZodLiteral<"nps">;
|
|
1044
|
+
min: z.ZodLiteral<0>;
|
|
1045
|
+
max: z.ZodLiteral<10>;
|
|
1046
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
1048
|
+
scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1049
|
+
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
1050
|
+
}, z.core.$strip>;
|
|
1051
|
+
export declare const shortAnswerQuestionSchema: z.ZodObject<{
|
|
1052
|
+
id: z.ZodString;
|
|
1053
|
+
title: z.ZodString;
|
|
1054
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1057
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1058
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1060
|
+
type: z.ZodEnum<{
|
|
1061
|
+
required: "required";
|
|
1062
|
+
min: "min";
|
|
1063
|
+
max: "max";
|
|
1064
|
+
minLength: "minLength";
|
|
1065
|
+
maxLength: "maxLength";
|
|
1066
|
+
pattern: "pattern";
|
|
1067
|
+
email: "email";
|
|
1068
|
+
url: "url";
|
|
1069
|
+
custom: "custom";
|
|
1070
|
+
}>;
|
|
1071
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1072
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1074
|
+
}, z.core.$strip>>>>;
|
|
1075
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1076
|
+
field: z.ZodString;
|
|
1077
|
+
operator: z.ZodEnum<{
|
|
1078
|
+
equals: "equals";
|
|
1079
|
+
not_equals: "not_equals";
|
|
1080
|
+
contains: "contains";
|
|
1081
|
+
not_contains: "not_contains";
|
|
1082
|
+
greater_than: "greater_than";
|
|
1083
|
+
less_than: "less_than";
|
|
1084
|
+
is_empty: "is_empty";
|
|
1085
|
+
is_not_empty: "is_not_empty";
|
|
1086
|
+
}>;
|
|
1087
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1088
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1089
|
+
}, z.core.$strip>>>>;
|
|
1090
|
+
isFixed: z.ZodBoolean;
|
|
1091
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
status: z.ZodEnum<{
|
|
1093
|
+
D: "D";
|
|
1094
|
+
P: "P";
|
|
1095
|
+
A: "A";
|
|
1096
|
+
S: "S";
|
|
1097
|
+
}>;
|
|
1098
|
+
type: z.ZodLiteral<"short_answer">;
|
|
1099
|
+
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
1100
|
+
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
1101
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
enableRegexValidation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1103
|
+
regexPattern: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
enableEnhanceWithAi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1105
|
+
promptTemplate: z.ZodOptional<z.ZodString>;
|
|
1106
|
+
maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
|
|
1107
|
+
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
1108
|
+
}, z.core.$strip>;
|
|
1109
|
+
export declare const longAnswerQuestionSchema: z.ZodObject<{
|
|
1110
|
+
id: z.ZodString;
|
|
1111
|
+
title: z.ZodString;
|
|
1112
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1114
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1116
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1117
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1118
|
+
type: z.ZodEnum<{
|
|
1119
|
+
required: "required";
|
|
1120
|
+
min: "min";
|
|
1121
|
+
max: "max";
|
|
1122
|
+
minLength: "minLength";
|
|
1123
|
+
maxLength: "maxLength";
|
|
1124
|
+
pattern: "pattern";
|
|
1125
|
+
email: "email";
|
|
1126
|
+
url: "url";
|
|
1127
|
+
custom: "custom";
|
|
1128
|
+
}>;
|
|
1129
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1130
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
}, z.core.$strip>>>>;
|
|
1133
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1134
|
+
field: z.ZodString;
|
|
1135
|
+
operator: z.ZodEnum<{
|
|
1136
|
+
equals: "equals";
|
|
1137
|
+
not_equals: "not_equals";
|
|
1138
|
+
contains: "contains";
|
|
1139
|
+
not_contains: "not_contains";
|
|
1140
|
+
greater_than: "greater_than";
|
|
1141
|
+
less_than: "less_than";
|
|
1142
|
+
is_empty: "is_empty";
|
|
1143
|
+
is_not_empty: "is_not_empty";
|
|
1144
|
+
}>;
|
|
1145
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1146
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1147
|
+
}, z.core.$strip>>>>;
|
|
1148
|
+
isFixed: z.ZodBoolean;
|
|
1149
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1150
|
+
status: z.ZodEnum<{
|
|
1151
|
+
D: "D";
|
|
1152
|
+
P: "P";
|
|
1153
|
+
A: "A";
|
|
1154
|
+
S: "S";
|
|
1155
|
+
}>;
|
|
1156
|
+
type: z.ZodLiteral<"long_text">;
|
|
1157
|
+
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
1158
|
+
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
1159
|
+
rows: z.ZodOptional<z.ZodNumber>;
|
|
1160
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
1161
|
+
enableEnhanceWithAi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1162
|
+
promptTemplate: z.ZodOptional<z.ZodString>;
|
|
1163
|
+
maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
|
|
1164
|
+
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
1165
|
+
}, z.core.$strip>;
|
|
1166
|
+
export declare const nestedDropdownQuestionSchema: z.ZodObject<{
|
|
1167
|
+
id: z.ZodString;
|
|
1168
|
+
title: z.ZodString;
|
|
1169
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1173
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1175
|
+
type: z.ZodEnum<{
|
|
1176
|
+
required: "required";
|
|
1177
|
+
min: "min";
|
|
1178
|
+
max: "max";
|
|
1179
|
+
minLength: "minLength";
|
|
1180
|
+
maxLength: "maxLength";
|
|
1181
|
+
pattern: "pattern";
|
|
1182
|
+
email: "email";
|
|
1183
|
+
url: "url";
|
|
1184
|
+
custom: "custom";
|
|
1185
|
+
}>;
|
|
1186
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1187
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
}, z.core.$strip>>>>;
|
|
1190
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1191
|
+
field: z.ZodString;
|
|
1192
|
+
operator: z.ZodEnum<{
|
|
1193
|
+
equals: "equals";
|
|
1194
|
+
not_equals: "not_equals";
|
|
1195
|
+
contains: "contains";
|
|
1196
|
+
not_contains: "not_contains";
|
|
1197
|
+
greater_than: "greater_than";
|
|
1198
|
+
less_than: "less_than";
|
|
1199
|
+
is_empty: "is_empty";
|
|
1200
|
+
is_not_empty: "is_not_empty";
|
|
1201
|
+
}>;
|
|
1202
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1203
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1204
|
+
}, z.core.$strip>>>>;
|
|
1205
|
+
isFixed: z.ZodBoolean;
|
|
1206
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1207
|
+
status: z.ZodEnum<{
|
|
1208
|
+
D: "D";
|
|
1209
|
+
P: "P";
|
|
1210
|
+
A: "A";
|
|
1211
|
+
S: "S";
|
|
1212
|
+
}>;
|
|
1213
|
+
type: z.ZodLiteral<"nested_selection">;
|
|
1214
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
1215
|
+
options: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1216
|
+
displayStyle: z.ZodLiteral<"list">;
|
|
1217
|
+
choiceOrderOption: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1218
|
+
randomize: "randomize";
|
|
1219
|
+
flip: "flip";
|
|
1220
|
+
rotate: "rotate";
|
|
1221
|
+
ascending: "ascending";
|
|
1222
|
+
none: "none";
|
|
1223
|
+
}>>>;
|
|
1224
|
+
preserveLastChoices: z.ZodOptional<z.ZodNumber>;
|
|
1225
|
+
prepopulatedValue: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1227
|
+
otherColumnName: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
1229
|
+
cascadeLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1230
|
+
}, z.core.$strip>;
|
|
1231
|
+
export type QuestionType = z.infer<typeof questionTypeSchema>;
|
|
1232
|
+
export type ValidationRule = z.infer<typeof validationRuleSchema>;
|
|
1233
|
+
export type VisibilityCondition = z.infer<typeof visibilityConditionSchema>;
|
|
1234
|
+
export type QuestionStatus = z.infer<typeof questionStatusSchema>;
|
|
1235
|
+
export type Question = z.infer<typeof questionSchema>;
|
|
1236
|
+
export type RatingDisplayStyle = z.infer<typeof ratingDisplayStyleSchema>;
|
|
1237
|
+
export type RatingRepresentationSize = z.infer<typeof ratingRepresentationSizeSchema>;
|
|
1238
|
+
export type RatingQuestion = z.infer<typeof ratingQuestionSchema>;
|
|
1239
|
+
export type AnnotationQuestion = z.infer<typeof annotationQuestionSchema>;
|
|
1240
|
+
export type WelcomeQuestion = z.infer<typeof welcomeQuestionSchema>;
|
|
1241
|
+
export type ThankYouQuestion = z.infer<typeof thankYouQuestionSchema>;
|
|
1242
|
+
export type MessagePanelQuestion = z.infer<typeof messagePanelQuestionSchema>;
|
|
1243
|
+
export type YesNoDisplayStyle = z.infer<typeof yesNoDisplayStyleSchema>;
|
|
1244
|
+
export type YesNoQuestion = z.infer<typeof yesNoQuestionSchema>;
|
|
1245
|
+
export type RatingMatrixStatement = z.infer<typeof ratingMatrixStatementSchema>;
|
|
1246
|
+
export type RatingMatrixScalePoint = z.infer<typeof ratingMatrixScalePointSchema>;
|
|
1247
|
+
export type RatingMatrixScale = z.infer<typeof ratingMatrixScaleSchema>;
|
|
1248
|
+
export type RatingMatrixDisplayStyle = z.infer<typeof ratingMatrixDisplayStyleSchema>;
|
|
1249
|
+
export type RatingMatrixQuestion = z.infer<typeof ratingMatrixQuestionSchema>;
|
|
1250
|
+
export type MatrixRow = z.infer<typeof matrixRowSchema>;
|
|
1251
|
+
export type MatrixColumn = z.infer<typeof matrixColumnSchema>;
|
|
1252
|
+
export type MatrixSingleChoiceQuestion = z.infer<typeof matrixSingleChoiceQuestionSchema>;
|
|
1253
|
+
export type MatrixMultipleChoiceQuestion = z.infer<typeof matrixMultipleChoiceQuestionSchema>;
|
|
1254
|
+
export type QuestionOption = z.infer<typeof questionOptionSchema>;
|
|
1255
|
+
export type NestedOption = z.infer<typeof nestedOptionSchema>;
|
|
1256
|
+
export type MultipleChoiceDisplayStyle = z.infer<typeof multipleChoiceDisplayStyleSchema>;
|
|
1257
|
+
export type MultipleChoiceSingleQuestion = z.infer<typeof multipleChoiceSingleQuestionSchema>;
|
|
1258
|
+
export type MultipleChoiceMultipleDisplayStyle = z.infer<typeof multipleChoiceMultipleDisplayStyleSchema>;
|
|
1259
|
+
export type MultipleChoiceMultipleQuestion = z.infer<typeof multipleChoiceMultipleQuestionSchema>;
|
|
1260
|
+
export type NpsQuestion = z.infer<typeof npsQuestionSchema>;
|
|
1261
|
+
export type ShortAnswerQuestion = z.infer<typeof shortAnswerQuestionSchema>;
|
|
1262
|
+
export type LongAnswerQuestion = z.infer<typeof longAnswerQuestionSchema>;
|
|
1263
|
+
export type ChoiceOrderOption = z.infer<typeof choiceOrderOptionSchema>;
|
|
1264
|
+
export type NestedDropdownQuestion = z.infer<typeof nestedDropdownQuestionSchema>;
|
|
1265
|
+
export type Section = z.infer<typeof sectionSchema>;
|
|
1266
|
+
export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1267
|
+
id: z.ZodString;
|
|
1268
|
+
title: z.ZodString;
|
|
1269
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1270
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1271
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1272
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1273
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1274
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1275
|
+
type: z.ZodEnum<{
|
|
1276
|
+
required: "required";
|
|
1277
|
+
min: "min";
|
|
1278
|
+
max: "max";
|
|
1279
|
+
minLength: "minLength";
|
|
1280
|
+
maxLength: "maxLength";
|
|
1281
|
+
pattern: "pattern";
|
|
1282
|
+
email: "email";
|
|
1283
|
+
url: "url";
|
|
1284
|
+
custom: "custom";
|
|
1285
|
+
}>;
|
|
1286
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1287
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
}, z.core.$strip>>>>;
|
|
1290
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1291
|
+
field: z.ZodString;
|
|
1292
|
+
operator: z.ZodEnum<{
|
|
1293
|
+
equals: "equals";
|
|
1294
|
+
not_equals: "not_equals";
|
|
1295
|
+
contains: "contains";
|
|
1296
|
+
not_contains: "not_contains";
|
|
1297
|
+
greater_than: "greater_than";
|
|
1298
|
+
less_than: "less_than";
|
|
1299
|
+
is_empty: "is_empty";
|
|
1300
|
+
is_not_empty: "is_not_empty";
|
|
1301
|
+
}>;
|
|
1302
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1303
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
}, z.core.$strip>>>>;
|
|
1305
|
+
isFixed: z.ZodBoolean;
|
|
1306
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1307
|
+
status: z.ZodEnum<{
|
|
1308
|
+
D: "D";
|
|
1309
|
+
P: "P";
|
|
1310
|
+
A: "A";
|
|
1311
|
+
S: "S";
|
|
1312
|
+
}>;
|
|
1313
|
+
type: z.ZodLiteral<"rating">;
|
|
1314
|
+
showLabels: z.ZodOptional<z.ZodBoolean>;
|
|
1315
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
1318
|
+
star: "star";
|
|
1319
|
+
heart: "heart";
|
|
1320
|
+
"thumbs-up": "thumbs-up";
|
|
1321
|
+
diamond: "diamond";
|
|
1322
|
+
emoji: "emoji";
|
|
1323
|
+
"emoji-exp": "emoji-exp";
|
|
1324
|
+
}>>;
|
|
1325
|
+
numberOfRatings: z.ZodNumber;
|
|
1326
|
+
representationSize: z.ZodOptional<z.ZodEnum<{
|
|
1327
|
+
small: "small";
|
|
1328
|
+
medium: "medium";
|
|
1329
|
+
large: "large";
|
|
1330
|
+
}>>;
|
|
1331
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1333
|
+
id: z.ZodString;
|
|
1334
|
+
title: z.ZodString;
|
|
1335
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1336
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1338
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1339
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1340
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1341
|
+
type: z.ZodEnum<{
|
|
1342
|
+
required: "required";
|
|
1343
|
+
min: "min";
|
|
1344
|
+
max: "max";
|
|
1345
|
+
minLength: "minLength";
|
|
1346
|
+
maxLength: "maxLength";
|
|
1347
|
+
pattern: "pattern";
|
|
1348
|
+
email: "email";
|
|
1349
|
+
url: "url";
|
|
1350
|
+
custom: "custom";
|
|
1351
|
+
}>;
|
|
1352
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1353
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
}, z.core.$strip>>>>;
|
|
1356
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1357
|
+
field: z.ZodString;
|
|
1358
|
+
operator: z.ZodEnum<{
|
|
1359
|
+
equals: "equals";
|
|
1360
|
+
not_equals: "not_equals";
|
|
1361
|
+
contains: "contains";
|
|
1362
|
+
not_contains: "not_contains";
|
|
1363
|
+
greater_than: "greater_than";
|
|
1364
|
+
less_than: "less_than";
|
|
1365
|
+
is_empty: "is_empty";
|
|
1366
|
+
is_not_empty: "is_not_empty";
|
|
1367
|
+
}>;
|
|
1368
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1369
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
}, z.core.$strip>>>>;
|
|
1371
|
+
isFixed: z.ZodBoolean;
|
|
1372
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1373
|
+
status: z.ZodEnum<{
|
|
1374
|
+
D: "D";
|
|
1375
|
+
P: "P";
|
|
1376
|
+
A: "A";
|
|
1377
|
+
S: "S";
|
|
1378
|
+
}>;
|
|
1379
|
+
type: z.ZodLiteral<"annotation">;
|
|
1380
|
+
annotationText: z.ZodOptional<z.ZodString>;
|
|
1381
|
+
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1383
|
+
id: z.ZodString;
|
|
1384
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1387
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1388
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1389
|
+
type: z.ZodEnum<{
|
|
1390
|
+
required: "required";
|
|
1391
|
+
min: "min";
|
|
1392
|
+
max: "max";
|
|
1393
|
+
minLength: "minLength";
|
|
1394
|
+
maxLength: "maxLength";
|
|
1395
|
+
pattern: "pattern";
|
|
1396
|
+
email: "email";
|
|
1397
|
+
url: "url";
|
|
1398
|
+
custom: "custom";
|
|
1399
|
+
}>;
|
|
1400
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1401
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1402
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1403
|
+
}, z.core.$strip>>>>;
|
|
1404
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1405
|
+
field: z.ZodString;
|
|
1406
|
+
operator: z.ZodEnum<{
|
|
1407
|
+
equals: "equals";
|
|
1408
|
+
not_equals: "not_equals";
|
|
1409
|
+
contains: "contains";
|
|
1410
|
+
not_contains: "not_contains";
|
|
1411
|
+
greater_than: "greater_than";
|
|
1412
|
+
less_than: "less_than";
|
|
1413
|
+
is_empty: "is_empty";
|
|
1414
|
+
is_not_empty: "is_not_empty";
|
|
1415
|
+
}>;
|
|
1416
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1417
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1418
|
+
}, z.core.$strip>>>>;
|
|
1419
|
+
isFixed: z.ZodBoolean;
|
|
1420
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1421
|
+
status: z.ZodEnum<{
|
|
1422
|
+
D: "D";
|
|
1423
|
+
P: "P";
|
|
1424
|
+
A: "A";
|
|
1425
|
+
S: "S";
|
|
1426
|
+
}>;
|
|
1427
|
+
type: z.ZodLiteral<"welcome">;
|
|
1428
|
+
title: z.ZodString;
|
|
1429
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1432
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1433
|
+
id: z.ZodString;
|
|
1434
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1435
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1437
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1439
|
+
type: z.ZodEnum<{
|
|
1440
|
+
required: "required";
|
|
1441
|
+
min: "min";
|
|
1442
|
+
max: "max";
|
|
1443
|
+
minLength: "minLength";
|
|
1444
|
+
maxLength: "maxLength";
|
|
1445
|
+
pattern: "pattern";
|
|
1446
|
+
email: "email";
|
|
1447
|
+
url: "url";
|
|
1448
|
+
custom: "custom";
|
|
1449
|
+
}>;
|
|
1450
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1451
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1453
|
+
}, z.core.$strip>>>>;
|
|
1454
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1455
|
+
field: z.ZodString;
|
|
1456
|
+
operator: z.ZodEnum<{
|
|
1457
|
+
equals: "equals";
|
|
1458
|
+
not_equals: "not_equals";
|
|
1459
|
+
contains: "contains";
|
|
1460
|
+
not_contains: "not_contains";
|
|
1461
|
+
greater_than: "greater_than";
|
|
1462
|
+
less_than: "less_than";
|
|
1463
|
+
is_empty: "is_empty";
|
|
1464
|
+
is_not_empty: "is_not_empty";
|
|
1465
|
+
}>;
|
|
1466
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1467
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1468
|
+
}, z.core.$strip>>>>;
|
|
1469
|
+
isFixed: z.ZodBoolean;
|
|
1470
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
status: z.ZodEnum<{
|
|
1472
|
+
D: "D";
|
|
1473
|
+
P: "P";
|
|
1474
|
+
A: "A";
|
|
1475
|
+
S: "S";
|
|
1476
|
+
}>;
|
|
1477
|
+
type: z.ZodLiteral<"thank_you">;
|
|
1478
|
+
title: z.ZodString;
|
|
1479
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1480
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1481
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1482
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1483
|
+
id: z.ZodString;
|
|
1484
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1485
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1486
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1487
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1488
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1489
|
+
type: z.ZodEnum<{
|
|
1490
|
+
required: "required";
|
|
1491
|
+
min: "min";
|
|
1492
|
+
max: "max";
|
|
1493
|
+
minLength: "minLength";
|
|
1494
|
+
maxLength: "maxLength";
|
|
1495
|
+
pattern: "pattern";
|
|
1496
|
+
email: "email";
|
|
1497
|
+
url: "url";
|
|
1498
|
+
custom: "custom";
|
|
1499
|
+
}>;
|
|
1500
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1501
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1502
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1503
|
+
}, z.core.$strip>>>>;
|
|
1504
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1505
|
+
field: z.ZodString;
|
|
1506
|
+
operator: z.ZodEnum<{
|
|
1507
|
+
equals: "equals";
|
|
1508
|
+
not_equals: "not_equals";
|
|
1509
|
+
contains: "contains";
|
|
1510
|
+
not_contains: "not_contains";
|
|
1511
|
+
greater_than: "greater_than";
|
|
1512
|
+
less_than: "less_than";
|
|
1513
|
+
is_empty: "is_empty";
|
|
1514
|
+
is_not_empty: "is_not_empty";
|
|
1515
|
+
}>;
|
|
1516
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1517
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1518
|
+
}, z.core.$strip>>>>;
|
|
1519
|
+
isFixed: z.ZodBoolean;
|
|
1520
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1521
|
+
status: z.ZodEnum<{
|
|
1522
|
+
D: "D";
|
|
1523
|
+
P: "P";
|
|
1524
|
+
A: "A";
|
|
1525
|
+
S: "S";
|
|
1526
|
+
}>;
|
|
1527
|
+
type: z.ZodLiteral<"message_panel">;
|
|
1528
|
+
title: z.ZodString;
|
|
1529
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1530
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1532
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1533
|
+
id: z.ZodString;
|
|
1534
|
+
title: z.ZodString;
|
|
1535
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1538
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1539
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1540
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1541
|
+
type: z.ZodEnum<{
|
|
1542
|
+
required: "required";
|
|
1543
|
+
min: "min";
|
|
1544
|
+
max: "max";
|
|
1545
|
+
minLength: "minLength";
|
|
1546
|
+
maxLength: "maxLength";
|
|
1547
|
+
pattern: "pattern";
|
|
1548
|
+
email: "email";
|
|
1549
|
+
url: "url";
|
|
1550
|
+
custom: "custom";
|
|
1551
|
+
}>;
|
|
1552
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1553
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1554
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
}, z.core.$strip>>>>;
|
|
1556
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1557
|
+
field: z.ZodString;
|
|
1558
|
+
operator: z.ZodEnum<{
|
|
1559
|
+
equals: "equals";
|
|
1560
|
+
not_equals: "not_equals";
|
|
1561
|
+
contains: "contains";
|
|
1562
|
+
not_contains: "not_contains";
|
|
1563
|
+
greater_than: "greater_than";
|
|
1564
|
+
less_than: "less_than";
|
|
1565
|
+
is_empty: "is_empty";
|
|
1566
|
+
is_not_empty: "is_not_empty";
|
|
1567
|
+
}>;
|
|
1568
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1569
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1570
|
+
}, z.core.$strip>>>>;
|
|
1571
|
+
isFixed: z.ZodBoolean;
|
|
1572
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
status: z.ZodEnum<{
|
|
1574
|
+
D: "D";
|
|
1575
|
+
P: "P";
|
|
1576
|
+
A: "A";
|
|
1577
|
+
S: "S";
|
|
1578
|
+
}>;
|
|
1579
|
+
type: z.ZodLiteral<"yes_no">;
|
|
1580
|
+
yesLabel: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
noLabel: z.ZodOptional<z.ZodString>;
|
|
1582
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
1583
|
+
horizontal: "horizontal";
|
|
1584
|
+
vertical: "vertical";
|
|
1585
|
+
}>>;
|
|
1586
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1587
|
+
id: z.ZodString;
|
|
1588
|
+
title: z.ZodString;
|
|
1589
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1593
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1594
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1595
|
+
type: z.ZodEnum<{
|
|
1596
|
+
required: "required";
|
|
1597
|
+
min: "min";
|
|
1598
|
+
max: "max";
|
|
1599
|
+
minLength: "minLength";
|
|
1600
|
+
maxLength: "maxLength";
|
|
1601
|
+
pattern: "pattern";
|
|
1602
|
+
email: "email";
|
|
1603
|
+
url: "url";
|
|
1604
|
+
custom: "custom";
|
|
1605
|
+
}>;
|
|
1606
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1607
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1609
|
+
}, z.core.$strip>>>>;
|
|
1610
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1611
|
+
field: z.ZodString;
|
|
1612
|
+
operator: z.ZodEnum<{
|
|
1613
|
+
equals: "equals";
|
|
1614
|
+
not_equals: "not_equals";
|
|
1615
|
+
contains: "contains";
|
|
1616
|
+
not_contains: "not_contains";
|
|
1617
|
+
greater_than: "greater_than";
|
|
1618
|
+
less_than: "less_than";
|
|
1619
|
+
is_empty: "is_empty";
|
|
1620
|
+
is_not_empty: "is_not_empty";
|
|
1621
|
+
}>;
|
|
1622
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1623
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1624
|
+
}, z.core.$strip>>>>;
|
|
1625
|
+
isFixed: z.ZodBoolean;
|
|
1626
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1627
|
+
status: z.ZodEnum<{
|
|
1628
|
+
D: "D";
|
|
1629
|
+
P: "P";
|
|
1630
|
+
A: "A";
|
|
1631
|
+
S: "S";
|
|
1632
|
+
}>;
|
|
1633
|
+
type: z.ZodLiteral<"rating_matrix">;
|
|
1634
|
+
statements: z.ZodArray<z.ZodObject<{
|
|
1635
|
+
id: z.ZodString;
|
|
1636
|
+
value: z.ZodString;
|
|
1637
|
+
label: z.ZodString;
|
|
1638
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1639
|
+
}, z.core.$strip>>;
|
|
1640
|
+
scale: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1641
|
+
kind: z.ZodLiteral<"likert">;
|
|
1642
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
1644
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1645
|
+
kind: z.ZodLiteral<"numerical">;
|
|
1646
|
+
pointCount: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
|
|
1647
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
1649
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1650
|
+
kind: z.ZodLiteral<"custom">;
|
|
1651
|
+
scalePoints: z.ZodArray<z.ZodObject<{
|
|
1652
|
+
id: z.ZodString;
|
|
1653
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1654
|
+
label: z.ZodString;
|
|
1655
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1656
|
+
}, z.core.$strip>>;
|
|
1657
|
+
}, z.core.$strip>], "kind">;
|
|
1658
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
1659
|
+
star: "star";
|
|
1660
|
+
emoji: "emoji";
|
|
1661
|
+
radio: "radio";
|
|
1662
|
+
button: "button";
|
|
1663
|
+
}>>;
|
|
1664
|
+
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1665
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1666
|
+
id: z.ZodString;
|
|
1667
|
+
title: z.ZodString;
|
|
1668
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1669
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1671
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1672
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1673
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1674
|
+
type: z.ZodEnum<{
|
|
1675
|
+
required: "required";
|
|
1676
|
+
min: "min";
|
|
1677
|
+
max: "max";
|
|
1678
|
+
minLength: "minLength";
|
|
1679
|
+
maxLength: "maxLength";
|
|
1680
|
+
pattern: "pattern";
|
|
1681
|
+
email: "email";
|
|
1682
|
+
url: "url";
|
|
1683
|
+
custom: "custom";
|
|
1684
|
+
}>;
|
|
1685
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1686
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
}, z.core.$strip>>>>;
|
|
1689
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1690
|
+
field: z.ZodString;
|
|
1691
|
+
operator: z.ZodEnum<{
|
|
1692
|
+
equals: "equals";
|
|
1693
|
+
not_equals: "not_equals";
|
|
1694
|
+
contains: "contains";
|
|
1695
|
+
not_contains: "not_contains";
|
|
1696
|
+
greater_than: "greater_than";
|
|
1697
|
+
less_than: "less_than";
|
|
1698
|
+
is_empty: "is_empty";
|
|
1699
|
+
is_not_empty: "is_not_empty";
|
|
1700
|
+
}>;
|
|
1701
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1702
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1703
|
+
}, z.core.$strip>>>>;
|
|
1704
|
+
isFixed: z.ZodBoolean;
|
|
1705
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1706
|
+
status: z.ZodEnum<{
|
|
1707
|
+
D: "D";
|
|
1708
|
+
P: "P";
|
|
1709
|
+
A: "A";
|
|
1710
|
+
S: "S";
|
|
1711
|
+
}>;
|
|
1712
|
+
type: z.ZodLiteral<"matrix_single_choice">;
|
|
1713
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1714
|
+
id: z.ZodString;
|
|
1715
|
+
value: z.ZodString;
|
|
1716
|
+
label: z.ZodString;
|
|
1717
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1718
|
+
}, z.core.$strip>>;
|
|
1719
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1720
|
+
id: z.ZodString;
|
|
1721
|
+
value: z.ZodString;
|
|
1722
|
+
label: z.ZodString;
|
|
1723
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1724
|
+
}, z.core.$strip>>;
|
|
1725
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1726
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1727
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1728
|
+
id: z.ZodString;
|
|
1729
|
+
title: z.ZodString;
|
|
1730
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1732
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1733
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1734
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1735
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1736
|
+
type: z.ZodEnum<{
|
|
1737
|
+
required: "required";
|
|
1738
|
+
min: "min";
|
|
1739
|
+
max: "max";
|
|
1740
|
+
minLength: "minLength";
|
|
1741
|
+
maxLength: "maxLength";
|
|
1742
|
+
pattern: "pattern";
|
|
1743
|
+
email: "email";
|
|
1744
|
+
url: "url";
|
|
1745
|
+
custom: "custom";
|
|
1746
|
+
}>;
|
|
1747
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1748
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1750
|
+
}, z.core.$strip>>>>;
|
|
1751
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1752
|
+
field: z.ZodString;
|
|
1753
|
+
operator: z.ZodEnum<{
|
|
1754
|
+
equals: "equals";
|
|
1755
|
+
not_equals: "not_equals";
|
|
1756
|
+
contains: "contains";
|
|
1757
|
+
not_contains: "not_contains";
|
|
1758
|
+
greater_than: "greater_than";
|
|
1759
|
+
less_than: "less_than";
|
|
1760
|
+
is_empty: "is_empty";
|
|
1761
|
+
is_not_empty: "is_not_empty";
|
|
1762
|
+
}>;
|
|
1763
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1764
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1765
|
+
}, z.core.$strip>>>>;
|
|
1766
|
+
isFixed: z.ZodBoolean;
|
|
1767
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
status: z.ZodEnum<{
|
|
1769
|
+
D: "D";
|
|
1770
|
+
P: "P";
|
|
1771
|
+
A: "A";
|
|
1772
|
+
S: "S";
|
|
1773
|
+
}>;
|
|
1774
|
+
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
1775
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1776
|
+
id: z.ZodString;
|
|
1777
|
+
value: z.ZodString;
|
|
1778
|
+
label: z.ZodString;
|
|
1779
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1780
|
+
}, z.core.$strip>>;
|
|
1781
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1782
|
+
id: z.ZodString;
|
|
1783
|
+
value: z.ZodString;
|
|
1784
|
+
label: z.ZodString;
|
|
1785
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1786
|
+
}, z.core.$strip>>;
|
|
1787
|
+
minSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
1788
|
+
maxSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
1789
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1790
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
869
1791
|
}, z.core.$strip>, z.ZodObject<{
|
|
870
1792
|
id: z.ZodString;
|
|
871
1793
|
title: z.ZodString;
|
|
@@ -1235,4 +2157,4 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1235
2157
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
1236
2158
|
cascadeLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1237
2159
|
}, z.core.$strip>], "type">;
|
|
1238
|
-
export type CombinedQuestion = z.infer<typeof ratingQuestionSchema> | z.infer<typeof annotationQuestionSchema> | z.infer<typeof multipleChoiceSingleQuestionSchema> | z.infer<typeof multipleChoiceMultipleQuestionSchema> | z.infer<typeof npsQuestionSchema> | z.infer<typeof shortAnswerQuestionSchema> | z.infer<typeof longAnswerQuestionSchema> | z.infer<typeof nestedDropdownQuestionSchema>;
|
|
2160
|
+
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 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>;
|