@encatch/schema 1.1.0-beta.5 → 1.1.0-beta.7
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 +57 -31
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +172 -25
- 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 +79 -25
- package/dist/types/schemas/fields/field-schema.d.ts +145 -7
- package/dist/types/schemas/fields/form-properties-schema.d.ts +89 -44
- 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 +0 -15
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export declare const questionTypeSchema: z.ZodEnum<{
|
|
|
16
16
|
matrix_single_choice: "matrix_single_choice";
|
|
17
17
|
matrix_multiple_choice: "matrix_multiple_choice";
|
|
18
18
|
exit_form: "exit_form";
|
|
19
|
+
consent: "consent";
|
|
19
20
|
}>;
|
|
20
21
|
export declare const QuestionTypes: {
|
|
21
22
|
readonly RATING: "rating";
|
|
@@ -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";
|
|
@@ -207,6 +209,7 @@ export declare const ChoiceOrderOptions: {
|
|
|
207
209
|
};
|
|
208
210
|
export declare const questionSchema: z.ZodObject<{
|
|
209
211
|
id: z.ZodString;
|
|
212
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
210
213
|
type: z.ZodEnum<{
|
|
211
214
|
rating: "rating";
|
|
212
215
|
single_choice: "single_choice";
|
|
@@ -224,6 +227,7 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
224
227
|
matrix_single_choice: "matrix_single_choice";
|
|
225
228
|
matrix_multiple_choice: "matrix_multiple_choice";
|
|
226
229
|
exit_form: "exit_form";
|
|
230
|
+
consent: "consent";
|
|
227
231
|
}>;
|
|
228
232
|
title: z.ZodString;
|
|
229
233
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -277,6 +281,7 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
277
281
|
}, z.core.$strip>;
|
|
278
282
|
export declare const ratingQuestionSchema: z.ZodObject<{
|
|
279
283
|
id: z.ZodString;
|
|
284
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
280
285
|
title: z.ZodString;
|
|
281
286
|
description: z.ZodOptional<z.ZodString>;
|
|
282
287
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -348,6 +353,7 @@ export declare const ratingQuestionSchema: z.ZodObject<{
|
|
|
348
353
|
}, z.core.$strip>;
|
|
349
354
|
export declare const annotationQuestionSchema: z.ZodObject<{
|
|
350
355
|
id: z.ZodString;
|
|
356
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
351
357
|
title: z.ZodString;
|
|
352
358
|
description: z.ZodOptional<z.ZodString>;
|
|
353
359
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -403,6 +409,7 @@ export declare const annotationQuestionSchema: z.ZodObject<{
|
|
|
403
409
|
}, z.core.$strip>;
|
|
404
410
|
export declare const welcomeQuestionSchema: z.ZodObject<{
|
|
405
411
|
id: z.ZodString;
|
|
412
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
406
413
|
describe: z.ZodOptional<z.ZodString>;
|
|
407
414
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
408
415
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -453,11 +460,11 @@ export declare const welcomeQuestionSchema: z.ZodObject<{
|
|
|
453
460
|
type: z.ZodLiteral<"welcome">;
|
|
454
461
|
title: z.ZodString;
|
|
455
462
|
description: z.ZodOptional<z.ZodString>;
|
|
456
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
457
463
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
458
464
|
}, z.core.$strip>;
|
|
459
465
|
export declare const thankYouQuestionSchema: z.ZodObject<{
|
|
460
466
|
id: z.ZodString;
|
|
467
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
461
468
|
describe: z.ZodOptional<z.ZodString>;
|
|
462
469
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
463
470
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -508,11 +515,11 @@ export declare const thankYouQuestionSchema: z.ZodObject<{
|
|
|
508
515
|
type: z.ZodLiteral<"thank_you">;
|
|
509
516
|
title: z.ZodString;
|
|
510
517
|
description: z.ZodOptional<z.ZodString>;
|
|
511
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
512
518
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
513
519
|
}, z.core.$strip>;
|
|
514
520
|
export declare const messagePanelQuestionSchema: z.ZodObject<{
|
|
515
521
|
id: z.ZodString;
|
|
522
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
516
523
|
describe: z.ZodOptional<z.ZodString>;
|
|
517
524
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
518
525
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -563,11 +570,11 @@ export declare const messagePanelQuestionSchema: z.ZodObject<{
|
|
|
563
570
|
type: z.ZodLiteral<"message_panel">;
|
|
564
571
|
title: z.ZodString;
|
|
565
572
|
description: z.ZodOptional<z.ZodString>;
|
|
566
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
567
573
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
568
574
|
}, z.core.$strip>;
|
|
569
575
|
export declare const exitFormQuestionSchema: z.ZodObject<{
|
|
570
576
|
id: z.ZodString;
|
|
577
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
571
578
|
title: z.ZodString;
|
|
572
579
|
description: z.ZodOptional<z.ZodString>;
|
|
573
580
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -621,6 +628,7 @@ export declare const exitFormQuestionSchema: z.ZodObject<{
|
|
|
621
628
|
}, z.core.$strip>;
|
|
622
629
|
export declare const yesNoQuestionSchema: z.ZodObject<{
|
|
623
630
|
id: z.ZodString;
|
|
631
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
624
632
|
title: z.ZodString;
|
|
625
633
|
description: z.ZodOptional<z.ZodString>;
|
|
626
634
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -678,6 +686,60 @@ export declare const yesNoQuestionSchema: z.ZodObject<{
|
|
|
678
686
|
vertical: "vertical";
|
|
679
687
|
}>>;
|
|
680
688
|
}, z.core.$strip>;
|
|
689
|
+
export declare const consentQuestionSchema: z.ZodObject<{
|
|
690
|
+
id: z.ZodString;
|
|
691
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
692
|
+
title: z.ZodString;
|
|
693
|
+
description: z.ZodOptional<z.ZodString>;
|
|
694
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
695
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
696
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
697
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
698
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
699
|
+
type: z.ZodEnum<{
|
|
700
|
+
custom: "custom";
|
|
701
|
+
pattern: "pattern";
|
|
702
|
+
required: "required";
|
|
703
|
+
min: "min";
|
|
704
|
+
max: "max";
|
|
705
|
+
minLength: "minLength";
|
|
706
|
+
maxLength: "maxLength";
|
|
707
|
+
email: "email";
|
|
708
|
+
url: "url";
|
|
709
|
+
}>;
|
|
710
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
711
|
+
message: z.ZodOptional<z.ZodString>;
|
|
712
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
713
|
+
}, z.core.$strip>>>>;
|
|
714
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
715
|
+
field: z.ZodString;
|
|
716
|
+
operator: z.ZodEnum<{
|
|
717
|
+
equals: "equals";
|
|
718
|
+
not_equals: "not_equals";
|
|
719
|
+
contains: "contains";
|
|
720
|
+
not_contains: "not_contains";
|
|
721
|
+
greater_than: "greater_than";
|
|
722
|
+
less_than: "less_than";
|
|
723
|
+
is_empty: "is_empty";
|
|
724
|
+
is_not_empty: "is_not_empty";
|
|
725
|
+
}>;
|
|
726
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
727
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
728
|
+
}, z.core.$strip>>>>;
|
|
729
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
730
|
+
status: z.ZodEnum<{
|
|
731
|
+
D: "D";
|
|
732
|
+
P: "P";
|
|
733
|
+
A: "A";
|
|
734
|
+
S: "S";
|
|
735
|
+
}>;
|
|
736
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
737
|
+
left: "left";
|
|
738
|
+
center: "center";
|
|
739
|
+
}>>>;
|
|
740
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
741
|
+
type: z.ZodLiteral<"consent">;
|
|
742
|
+
}, z.core.$strip>;
|
|
681
743
|
export declare const ratingMatrixDisplayStyleSchema: z.ZodEnum<{
|
|
682
744
|
star: "star";
|
|
683
745
|
emoji: "emoji";
|
|
@@ -730,6 +792,7 @@ export declare const ratingMatrixScaleSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
730
792
|
}, z.core.$strip>], "kind">;
|
|
731
793
|
export declare const ratingMatrixQuestionSchema: z.ZodObject<{
|
|
732
794
|
id: z.ZodString;
|
|
795
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
733
796
|
title: z.ZodString;
|
|
734
797
|
description: z.ZodOptional<z.ZodString>;
|
|
735
798
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -834,6 +897,7 @@ export declare const matrixColumnSchema: z.ZodObject<{
|
|
|
834
897
|
}, z.core.$strip>;
|
|
835
898
|
export declare const matrixSingleChoiceQuestionSchema: z.ZodObject<{
|
|
836
899
|
id: z.ZodString;
|
|
900
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
837
901
|
title: z.ZodString;
|
|
838
902
|
description: z.ZodOptional<z.ZodString>;
|
|
839
903
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -901,6 +965,7 @@ export declare const matrixSingleChoiceQuestionSchema: z.ZodObject<{
|
|
|
901
965
|
}, z.core.$strip>;
|
|
902
966
|
export declare const matrixMultipleChoiceQuestionSchema: z.ZodObject<{
|
|
903
967
|
id: z.ZodString;
|
|
968
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
904
969
|
title: z.ZodString;
|
|
905
970
|
description: z.ZodOptional<z.ZodString>;
|
|
906
971
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -978,6 +1043,7 @@ export declare const questionOptionSchema: z.ZodObject<{
|
|
|
978
1043
|
export declare const nestedOptionSchema: z.ZodType<any>;
|
|
979
1044
|
export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
980
1045
|
id: z.ZodString;
|
|
1046
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
981
1047
|
title: z.ZodString;
|
|
982
1048
|
description: z.ZodOptional<z.ZodString>;
|
|
983
1049
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1051,6 +1117,7 @@ export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
|
1051
1117
|
}, z.core.$strip>;
|
|
1052
1118
|
export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
1053
1119
|
id: z.ZodString;
|
|
1120
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1054
1121
|
title: z.ZodString;
|
|
1055
1122
|
description: z.ZodOptional<z.ZodString>;
|
|
1056
1123
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1125,6 +1192,7 @@ export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
|
1125
1192
|
}, z.core.$strip>;
|
|
1126
1193
|
export declare const npsQuestionSchema: z.ZodObject<{
|
|
1127
1194
|
id: z.ZodString;
|
|
1195
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1128
1196
|
title: z.ZodString;
|
|
1129
1197
|
description: z.ZodOptional<z.ZodString>;
|
|
1130
1198
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1184,6 +1252,7 @@ export declare const npsQuestionSchema: z.ZodObject<{
|
|
|
1184
1252
|
}, z.core.$strip>;
|
|
1185
1253
|
export declare const shortAnswerQuestionSchema: z.ZodObject<{
|
|
1186
1254
|
id: z.ZodString;
|
|
1255
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1187
1256
|
title: z.ZodString;
|
|
1188
1257
|
description: z.ZodOptional<z.ZodString>;
|
|
1189
1258
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1246,6 +1315,7 @@ export declare const shortAnswerQuestionSchema: z.ZodObject<{
|
|
|
1246
1315
|
}, z.core.$strip>;
|
|
1247
1316
|
export declare const longAnswerQuestionSchema: z.ZodObject<{
|
|
1248
1317
|
id: z.ZodString;
|
|
1318
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1249
1319
|
title: z.ZodString;
|
|
1250
1320
|
description: z.ZodOptional<z.ZodString>;
|
|
1251
1321
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1307,6 +1377,7 @@ export declare const longAnswerQuestionSchema: z.ZodObject<{
|
|
|
1307
1377
|
}, z.core.$strip>;
|
|
1308
1378
|
export declare const nestedDropdownQuestionSchema: z.ZodObject<{
|
|
1309
1379
|
id: z.ZodString;
|
|
1380
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1310
1381
|
title: z.ZodString;
|
|
1311
1382
|
description: z.ZodOptional<z.ZodString>;
|
|
1312
1383
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1390,6 +1461,7 @@ export type MessagePanelQuestion = z.infer<typeof messagePanelQuestionSchema>;
|
|
|
1390
1461
|
export type ExitFormQuestion = z.infer<typeof exitFormQuestionSchema>;
|
|
1391
1462
|
export type YesNoDisplayStyle = z.infer<typeof yesNoDisplayStyleSchema>;
|
|
1392
1463
|
export type YesNoQuestion = z.infer<typeof yesNoQuestionSchema>;
|
|
1464
|
+
export type ConsentQuestion = z.infer<typeof consentQuestionSchema>;
|
|
1393
1465
|
export type RatingMatrixStatement = z.infer<typeof ratingMatrixStatementSchema>;
|
|
1394
1466
|
export type RatingMatrixScalePoint = z.infer<typeof ratingMatrixScalePointSchema>;
|
|
1395
1467
|
export type RatingMatrixScale = z.infer<typeof ratingMatrixScaleSchema>;
|
|
@@ -1413,6 +1485,7 @@ export type NestedDropdownQuestion = z.infer<typeof nestedDropdownQuestionSchema
|
|
|
1413
1485
|
export type Section = z.infer<typeof sectionSchema>;
|
|
1414
1486
|
export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1415
1487
|
id: z.ZodString;
|
|
1488
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1416
1489
|
title: z.ZodString;
|
|
1417
1490
|
description: z.ZodOptional<z.ZodString>;
|
|
1418
1491
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1483,6 +1556,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1483
1556
|
color: z.ZodOptional<z.ZodString>;
|
|
1484
1557
|
}, z.core.$strip>, z.ZodObject<{
|
|
1485
1558
|
id: z.ZodString;
|
|
1559
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1486
1560
|
title: z.ZodString;
|
|
1487
1561
|
description: z.ZodOptional<z.ZodString>;
|
|
1488
1562
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1537,6 +1611,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1537
1611
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
1538
1612
|
}, z.core.$strip>, z.ZodObject<{
|
|
1539
1613
|
id: z.ZodString;
|
|
1614
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1540
1615
|
describe: z.ZodOptional<z.ZodString>;
|
|
1541
1616
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1542
1617
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1587,10 +1662,10 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1587
1662
|
type: z.ZodLiteral<"welcome">;
|
|
1588
1663
|
title: z.ZodString;
|
|
1589
1664
|
description: z.ZodOptional<z.ZodString>;
|
|
1590
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1591
1665
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1592
1666
|
}, z.core.$strip>, z.ZodObject<{
|
|
1593
1667
|
id: z.ZodString;
|
|
1668
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1594
1669
|
describe: z.ZodOptional<z.ZodString>;
|
|
1595
1670
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1596
1671
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1641,10 +1716,10 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1641
1716
|
type: z.ZodLiteral<"thank_you">;
|
|
1642
1717
|
title: z.ZodString;
|
|
1643
1718
|
description: z.ZodOptional<z.ZodString>;
|
|
1644
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1645
1719
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1646
1720
|
}, z.core.$strip>, z.ZodObject<{
|
|
1647
1721
|
id: z.ZodString;
|
|
1722
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1648
1723
|
describe: z.ZodOptional<z.ZodString>;
|
|
1649
1724
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1650
1725
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1695,10 +1770,10 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1695
1770
|
type: z.ZodLiteral<"message_panel">;
|
|
1696
1771
|
title: z.ZodString;
|
|
1697
1772
|
description: z.ZodOptional<z.ZodString>;
|
|
1698
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1699
1773
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1700
1774
|
}, z.core.$strip>, z.ZodObject<{
|
|
1701
1775
|
id: z.ZodString;
|
|
1776
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1702
1777
|
title: z.ZodString;
|
|
1703
1778
|
description: z.ZodOptional<z.ZodString>;
|
|
1704
1779
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1751,6 +1826,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1751
1826
|
type: z.ZodLiteral<"exit_form">;
|
|
1752
1827
|
}, z.core.$strip>, z.ZodObject<{
|
|
1753
1828
|
id: z.ZodString;
|
|
1829
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1754
1830
|
title: z.ZodString;
|
|
1755
1831
|
description: z.ZodOptional<z.ZodString>;
|
|
1756
1832
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1809,6 +1885,60 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1809
1885
|
}>>;
|
|
1810
1886
|
}, z.core.$strip>, z.ZodObject<{
|
|
1811
1887
|
id: z.ZodString;
|
|
1888
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1889
|
+
title: z.ZodString;
|
|
1890
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1891
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1892
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1893
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
1894
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1895
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1896
|
+
type: z.ZodEnum<{
|
|
1897
|
+
custom: "custom";
|
|
1898
|
+
pattern: "pattern";
|
|
1899
|
+
required: "required";
|
|
1900
|
+
min: "min";
|
|
1901
|
+
max: "max";
|
|
1902
|
+
minLength: "minLength";
|
|
1903
|
+
maxLength: "maxLength";
|
|
1904
|
+
email: "email";
|
|
1905
|
+
url: "url";
|
|
1906
|
+
}>;
|
|
1907
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1908
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1909
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
}, z.core.$strip>>>>;
|
|
1911
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1912
|
+
field: z.ZodString;
|
|
1913
|
+
operator: z.ZodEnum<{
|
|
1914
|
+
equals: "equals";
|
|
1915
|
+
not_equals: "not_equals";
|
|
1916
|
+
contains: "contains";
|
|
1917
|
+
not_contains: "not_contains";
|
|
1918
|
+
greater_than: "greater_than";
|
|
1919
|
+
less_than: "less_than";
|
|
1920
|
+
is_empty: "is_empty";
|
|
1921
|
+
is_not_empty: "is_not_empty";
|
|
1922
|
+
}>;
|
|
1923
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1924
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
1925
|
+
}, z.core.$strip>>>>;
|
|
1926
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
1927
|
+
status: z.ZodEnum<{
|
|
1928
|
+
D: "D";
|
|
1929
|
+
P: "P";
|
|
1930
|
+
A: "A";
|
|
1931
|
+
S: "S";
|
|
1932
|
+
}>;
|
|
1933
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1934
|
+
left: "left";
|
|
1935
|
+
center: "center";
|
|
1936
|
+
}>>>;
|
|
1937
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1938
|
+
type: z.ZodLiteral<"consent">;
|
|
1939
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1940
|
+
id: z.ZodString;
|
|
1941
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1812
1942
|
title: z.ZodString;
|
|
1813
1943
|
description: z.ZodOptional<z.ZodString>;
|
|
1814
1944
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1900,6 +2030,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1900
2030
|
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1901
2031
|
}, z.core.$strip>, z.ZodObject<{
|
|
1902
2032
|
id: z.ZodString;
|
|
2033
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1903
2034
|
title: z.ZodString;
|
|
1904
2035
|
description: z.ZodOptional<z.ZodString>;
|
|
1905
2036
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1966,6 +2097,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1966
2097
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1967
2098
|
}, z.core.$strip>, z.ZodObject<{
|
|
1968
2099
|
id: z.ZodString;
|
|
2100
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1969
2101
|
title: z.ZodString;
|
|
1970
2102
|
description: z.ZodOptional<z.ZodString>;
|
|
1971
2103
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2034,6 +2166,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2034
2166
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2035
2167
|
}, z.core.$strip>, z.ZodObject<{
|
|
2036
2168
|
id: z.ZodString;
|
|
2169
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2037
2170
|
title: z.ZodString;
|
|
2038
2171
|
description: z.ZodOptional<z.ZodString>;
|
|
2039
2172
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2106,6 +2239,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2106
2239
|
}, z.core.$strip>>;
|
|
2107
2240
|
}, z.core.$strip>, z.ZodObject<{
|
|
2108
2241
|
id: z.ZodString;
|
|
2242
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2109
2243
|
title: z.ZodString;
|
|
2110
2244
|
description: z.ZodOptional<z.ZodString>;
|
|
2111
2245
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2179,6 +2313,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2179
2313
|
}, z.core.$strip>>;
|
|
2180
2314
|
}, z.core.$strip>, z.ZodObject<{
|
|
2181
2315
|
id: z.ZodString;
|
|
2316
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2182
2317
|
title: z.ZodString;
|
|
2183
2318
|
description: z.ZodOptional<z.ZodString>;
|
|
2184
2319
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2237,6 +2372,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2237
2372
|
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
2238
2373
|
}, z.core.$strip>, z.ZodObject<{
|
|
2239
2374
|
id: z.ZodString;
|
|
2375
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2240
2376
|
title: z.ZodString;
|
|
2241
2377
|
description: z.ZodOptional<z.ZodString>;
|
|
2242
2378
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2298,6 +2434,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2298
2434
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
2299
2435
|
}, z.core.$strip>, z.ZodObject<{
|
|
2300
2436
|
id: z.ZodString;
|
|
2437
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2301
2438
|
title: z.ZodString;
|
|
2302
2439
|
description: z.ZodOptional<z.ZodString>;
|
|
2303
2440
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2358,6 +2495,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2358
2495
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
2359
2496
|
}, z.core.$strip>, z.ZodObject<{
|
|
2360
2497
|
id: z.ZodString;
|
|
2498
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2361
2499
|
title: z.ZodString;
|
|
2362
2500
|
description: z.ZodOptional<z.ZodString>;
|
|
2363
2501
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2425,4 +2563,4 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2425
2563
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
2426
2564
|
cascadeLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2427
2565
|
}, z.core.$strip>], "type">;
|
|
2428
|
-
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>;
|
|
2566
|
+
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>;
|