@encatch/schema 1.1.0-beta.6 → 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 +52 -11
- 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 -9
- 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 -9
- package/dist/types/schemas/fields/field-schema.d.ts +145 -1
- package/dist/types/schemas/fields/form-properties-schema.d.ts +89 -18
- package/dist/types/schemas/fields/theme-schema.d.ts +20 -18
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
questions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
28
|
id: z.ZodString;
|
|
29
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
29
30
|
title: z.ZodString;
|
|
30
31
|
description: z.ZodOptional<z.ZodString>;
|
|
31
32
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -96,6 +97,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
96
97
|
color: z.ZodOptional<z.ZodString>;
|
|
97
98
|
}, z.core.$strip>, z.ZodObject<{
|
|
98
99
|
id: z.ZodString;
|
|
100
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
99
101
|
title: z.ZodString;
|
|
100
102
|
description: z.ZodOptional<z.ZodString>;
|
|
101
103
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -150,6 +152,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
150
152
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
151
153
|
}, z.core.$strip>, z.ZodObject<{
|
|
152
154
|
id: z.ZodString;
|
|
155
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
153
156
|
describe: z.ZodOptional<z.ZodString>;
|
|
154
157
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
155
158
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -203,6 +206,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
203
206
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
204
207
|
}, z.core.$strip>, z.ZodObject<{
|
|
205
208
|
id: z.ZodString;
|
|
209
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
206
210
|
describe: z.ZodOptional<z.ZodString>;
|
|
207
211
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
208
212
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -256,6 +260,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
256
260
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
257
261
|
}, z.core.$strip>, z.ZodObject<{
|
|
258
262
|
id: z.ZodString;
|
|
263
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
259
264
|
describe: z.ZodOptional<z.ZodString>;
|
|
260
265
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
261
266
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -309,6 +314,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
309
314
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
310
315
|
}, z.core.$strip>, z.ZodObject<{
|
|
311
316
|
id: z.ZodString;
|
|
317
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
312
318
|
title: z.ZodString;
|
|
313
319
|
description: z.ZodOptional<z.ZodString>;
|
|
314
320
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -361,6 +367,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
361
367
|
type: z.ZodLiteral<"exit_form">;
|
|
362
368
|
}, z.core.$strip>, z.ZodObject<{
|
|
363
369
|
id: z.ZodString;
|
|
370
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
364
371
|
title: z.ZodString;
|
|
365
372
|
description: z.ZodOptional<z.ZodString>;
|
|
366
373
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -419,6 +426,60 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
419
426
|
}>>;
|
|
420
427
|
}, z.core.$strip>, z.ZodObject<{
|
|
421
428
|
id: z.ZodString;
|
|
429
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
430
|
+
title: z.ZodString;
|
|
431
|
+
description: z.ZodOptional<z.ZodString>;
|
|
432
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
433
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
434
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
435
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
436
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
437
|
+
type: z.ZodEnum<{
|
|
438
|
+
custom: "custom";
|
|
439
|
+
pattern: "pattern";
|
|
440
|
+
required: "required";
|
|
441
|
+
min: "min";
|
|
442
|
+
max: "max";
|
|
443
|
+
minLength: "minLength";
|
|
444
|
+
maxLength: "maxLength";
|
|
445
|
+
email: "email";
|
|
446
|
+
url: "url";
|
|
447
|
+
}>;
|
|
448
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
449
|
+
message: z.ZodOptional<z.ZodString>;
|
|
450
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
451
|
+
}, z.core.$strip>>>>;
|
|
452
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
453
|
+
field: z.ZodString;
|
|
454
|
+
operator: z.ZodEnum<{
|
|
455
|
+
equals: "equals";
|
|
456
|
+
not_equals: "not_equals";
|
|
457
|
+
contains: "contains";
|
|
458
|
+
not_contains: "not_contains";
|
|
459
|
+
greater_than: "greater_than";
|
|
460
|
+
less_than: "less_than";
|
|
461
|
+
is_empty: "is_empty";
|
|
462
|
+
is_not_empty: "is_not_empty";
|
|
463
|
+
}>;
|
|
464
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
465
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
466
|
+
}, z.core.$strip>>>>;
|
|
467
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
468
|
+
status: z.ZodEnum<{
|
|
469
|
+
D: "D";
|
|
470
|
+
P: "P";
|
|
471
|
+
A: "A";
|
|
472
|
+
S: "S";
|
|
473
|
+
}>;
|
|
474
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
left: "left";
|
|
476
|
+
center: "center";
|
|
477
|
+
}>>>;
|
|
478
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
479
|
+
type: z.ZodLiteral<"consent">;
|
|
480
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
481
|
+
id: z.ZodString;
|
|
482
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
422
483
|
title: z.ZodString;
|
|
423
484
|
description: z.ZodOptional<z.ZodString>;
|
|
424
485
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -510,6 +571,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
510
571
|
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
511
572
|
}, z.core.$strip>, z.ZodObject<{
|
|
512
573
|
id: z.ZodString;
|
|
574
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
513
575
|
title: z.ZodString;
|
|
514
576
|
description: z.ZodOptional<z.ZodString>;
|
|
515
577
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -576,6 +638,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
576
638
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
577
639
|
}, z.core.$strip>, z.ZodObject<{
|
|
578
640
|
id: z.ZodString;
|
|
641
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
579
642
|
title: z.ZodString;
|
|
580
643
|
description: z.ZodOptional<z.ZodString>;
|
|
581
644
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -644,6 +707,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
644
707
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
645
708
|
}, z.core.$strip>, z.ZodObject<{
|
|
646
709
|
id: z.ZodString;
|
|
710
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
647
711
|
title: z.ZodString;
|
|
648
712
|
description: z.ZodOptional<z.ZodString>;
|
|
649
713
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -716,6 +780,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
716
780
|
}, z.core.$strip>>;
|
|
717
781
|
}, z.core.$strip>, z.ZodObject<{
|
|
718
782
|
id: z.ZodString;
|
|
783
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
719
784
|
title: z.ZodString;
|
|
720
785
|
description: z.ZodOptional<z.ZodString>;
|
|
721
786
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -789,6 +854,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
789
854
|
}, z.core.$strip>>;
|
|
790
855
|
}, z.core.$strip>, z.ZodObject<{
|
|
791
856
|
id: z.ZodString;
|
|
857
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
792
858
|
title: z.ZodString;
|
|
793
859
|
description: z.ZodOptional<z.ZodString>;
|
|
794
860
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -847,6 +913,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
847
913
|
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
848
914
|
}, z.core.$strip>, z.ZodObject<{
|
|
849
915
|
id: z.ZodString;
|
|
916
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
850
917
|
title: z.ZodString;
|
|
851
918
|
description: z.ZodOptional<z.ZodString>;
|
|
852
919
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -908,6 +975,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
908
975
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
909
976
|
}, z.core.$strip>, z.ZodObject<{
|
|
910
977
|
id: z.ZodString;
|
|
978
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
911
979
|
title: z.ZodString;
|
|
912
980
|
description: z.ZodOptional<z.ZodString>;
|
|
913
981
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -968,6 +1036,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
968
1036
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
969
1037
|
}, z.core.$strip>, z.ZodObject<{
|
|
970
1038
|
id: z.ZodString;
|
|
1039
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
971
1040
|
title: z.ZodString;
|
|
972
1041
|
description: z.ZodOptional<z.ZodString>;
|
|
973
1042
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1207,23 +1276,24 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1207
1276
|
}, z.core.$strip>;
|
|
1208
1277
|
}, z.core.$strip>;
|
|
1209
1278
|
featureSettings: z.ZodObject<{
|
|
1210
|
-
darkOverlay: z.ZodBoolean
|
|
1211
|
-
closeButton: z.ZodBoolean
|
|
1212
|
-
progressBar: z.ZodBoolean
|
|
1213
|
-
showBranding: z.ZodBoolean
|
|
1279
|
+
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
1280
|
+
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
1281
|
+
progressBar: z.ZodDefault<z.ZodBoolean>;
|
|
1282
|
+
showBranding: z.ZodDefault<z.ZodBoolean>;
|
|
1214
1283
|
customPosition: z.ZodBoolean;
|
|
1215
1284
|
customCss: z.ZodOptional<z.ZodString>;
|
|
1216
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
1285
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1217
1286
|
light: "light";
|
|
1218
1287
|
dark: "dark";
|
|
1219
1288
|
system: "system";
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1289
|
+
}>>>;
|
|
1290
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
1291
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
1292
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
1223
1293
|
never: "never";
|
|
1224
1294
|
always: "always";
|
|
1225
1295
|
auto: "auto";
|
|
1226
|
-
}
|
|
1296
|
+
}>>;
|
|
1227
1297
|
}, z.core.$strip>;
|
|
1228
1298
|
selectedPosition: z.ZodEnum<{
|
|
1229
1299
|
"top-left": "top-left";
|
|
@@ -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>;
|
|
@@ -457,6 +464,7 @@ export declare const welcomeQuestionSchema: z.ZodObject<{
|
|
|
457
464
|
}, z.core.$strip>;
|
|
458
465
|
export declare const thankYouQuestionSchema: z.ZodObject<{
|
|
459
466
|
id: z.ZodString;
|
|
467
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
460
468
|
describe: z.ZodOptional<z.ZodString>;
|
|
461
469
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
462
470
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -511,6 +519,7 @@ export declare const thankYouQuestionSchema: z.ZodObject<{
|
|
|
511
519
|
}, z.core.$strip>;
|
|
512
520
|
export declare const messagePanelQuestionSchema: z.ZodObject<{
|
|
513
521
|
id: z.ZodString;
|
|
522
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
514
523
|
describe: z.ZodOptional<z.ZodString>;
|
|
515
524
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
516
525
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -565,6 +574,7 @@ export declare const messagePanelQuestionSchema: z.ZodObject<{
|
|
|
565
574
|
}, z.core.$strip>;
|
|
566
575
|
export declare const exitFormQuestionSchema: z.ZodObject<{
|
|
567
576
|
id: z.ZodString;
|
|
577
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
568
578
|
title: z.ZodString;
|
|
569
579
|
description: z.ZodOptional<z.ZodString>;
|
|
570
580
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -618,6 +628,7 @@ export declare const exitFormQuestionSchema: z.ZodObject<{
|
|
|
618
628
|
}, z.core.$strip>;
|
|
619
629
|
export declare const yesNoQuestionSchema: z.ZodObject<{
|
|
620
630
|
id: z.ZodString;
|
|
631
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
621
632
|
title: z.ZodString;
|
|
622
633
|
description: z.ZodOptional<z.ZodString>;
|
|
623
634
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -675,6 +686,60 @@ export declare const yesNoQuestionSchema: z.ZodObject<{
|
|
|
675
686
|
vertical: "vertical";
|
|
676
687
|
}>>;
|
|
677
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>;
|
|
678
743
|
export declare const ratingMatrixDisplayStyleSchema: z.ZodEnum<{
|
|
679
744
|
star: "star";
|
|
680
745
|
emoji: "emoji";
|
|
@@ -727,6 +792,7 @@ export declare const ratingMatrixScaleSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
727
792
|
}, z.core.$strip>], "kind">;
|
|
728
793
|
export declare const ratingMatrixQuestionSchema: z.ZodObject<{
|
|
729
794
|
id: z.ZodString;
|
|
795
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
730
796
|
title: z.ZodString;
|
|
731
797
|
description: z.ZodOptional<z.ZodString>;
|
|
732
798
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -831,6 +897,7 @@ export declare const matrixColumnSchema: z.ZodObject<{
|
|
|
831
897
|
}, z.core.$strip>;
|
|
832
898
|
export declare const matrixSingleChoiceQuestionSchema: z.ZodObject<{
|
|
833
899
|
id: z.ZodString;
|
|
900
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
834
901
|
title: z.ZodString;
|
|
835
902
|
description: z.ZodOptional<z.ZodString>;
|
|
836
903
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -898,6 +965,7 @@ export declare const matrixSingleChoiceQuestionSchema: z.ZodObject<{
|
|
|
898
965
|
}, z.core.$strip>;
|
|
899
966
|
export declare const matrixMultipleChoiceQuestionSchema: z.ZodObject<{
|
|
900
967
|
id: z.ZodString;
|
|
968
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
901
969
|
title: z.ZodString;
|
|
902
970
|
description: z.ZodOptional<z.ZodString>;
|
|
903
971
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -975,6 +1043,7 @@ export declare const questionOptionSchema: z.ZodObject<{
|
|
|
975
1043
|
export declare const nestedOptionSchema: z.ZodType<any>;
|
|
976
1044
|
export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
977
1045
|
id: z.ZodString;
|
|
1046
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
978
1047
|
title: z.ZodString;
|
|
979
1048
|
description: z.ZodOptional<z.ZodString>;
|
|
980
1049
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1048,6 +1117,7 @@ export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
|
|
|
1048
1117
|
}, z.core.$strip>;
|
|
1049
1118
|
export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
1050
1119
|
id: z.ZodString;
|
|
1120
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1051
1121
|
title: z.ZodString;
|
|
1052
1122
|
description: z.ZodOptional<z.ZodString>;
|
|
1053
1123
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1122,6 +1192,7 @@ export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
|
|
|
1122
1192
|
}, z.core.$strip>;
|
|
1123
1193
|
export declare const npsQuestionSchema: z.ZodObject<{
|
|
1124
1194
|
id: z.ZodString;
|
|
1195
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1125
1196
|
title: z.ZodString;
|
|
1126
1197
|
description: z.ZodOptional<z.ZodString>;
|
|
1127
1198
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1181,6 +1252,7 @@ export declare const npsQuestionSchema: z.ZodObject<{
|
|
|
1181
1252
|
}, z.core.$strip>;
|
|
1182
1253
|
export declare const shortAnswerQuestionSchema: z.ZodObject<{
|
|
1183
1254
|
id: z.ZodString;
|
|
1255
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1184
1256
|
title: z.ZodString;
|
|
1185
1257
|
description: z.ZodOptional<z.ZodString>;
|
|
1186
1258
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1243,6 +1315,7 @@ export declare const shortAnswerQuestionSchema: z.ZodObject<{
|
|
|
1243
1315
|
}, z.core.$strip>;
|
|
1244
1316
|
export declare const longAnswerQuestionSchema: z.ZodObject<{
|
|
1245
1317
|
id: z.ZodString;
|
|
1318
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1246
1319
|
title: z.ZodString;
|
|
1247
1320
|
description: z.ZodOptional<z.ZodString>;
|
|
1248
1321
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1304,6 +1377,7 @@ export declare const longAnswerQuestionSchema: z.ZodObject<{
|
|
|
1304
1377
|
}, z.core.$strip>;
|
|
1305
1378
|
export declare const nestedDropdownQuestionSchema: z.ZodObject<{
|
|
1306
1379
|
id: z.ZodString;
|
|
1380
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1307
1381
|
title: z.ZodString;
|
|
1308
1382
|
description: z.ZodOptional<z.ZodString>;
|
|
1309
1383
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1387,6 +1461,7 @@ export type MessagePanelQuestion = z.infer<typeof messagePanelQuestionSchema>;
|
|
|
1387
1461
|
export type ExitFormQuestion = z.infer<typeof exitFormQuestionSchema>;
|
|
1388
1462
|
export type YesNoDisplayStyle = z.infer<typeof yesNoDisplayStyleSchema>;
|
|
1389
1463
|
export type YesNoQuestion = z.infer<typeof yesNoQuestionSchema>;
|
|
1464
|
+
export type ConsentQuestion = z.infer<typeof consentQuestionSchema>;
|
|
1390
1465
|
export type RatingMatrixStatement = z.infer<typeof ratingMatrixStatementSchema>;
|
|
1391
1466
|
export type RatingMatrixScalePoint = z.infer<typeof ratingMatrixScalePointSchema>;
|
|
1392
1467
|
export type RatingMatrixScale = z.infer<typeof ratingMatrixScaleSchema>;
|
|
@@ -1410,6 +1485,7 @@ export type NestedDropdownQuestion = z.infer<typeof nestedDropdownQuestionSchema
|
|
|
1410
1485
|
export type Section = z.infer<typeof sectionSchema>;
|
|
1411
1486
|
export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1412
1487
|
id: z.ZodString;
|
|
1488
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1413
1489
|
title: z.ZodString;
|
|
1414
1490
|
description: z.ZodOptional<z.ZodString>;
|
|
1415
1491
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1480,6 +1556,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1480
1556
|
color: z.ZodOptional<z.ZodString>;
|
|
1481
1557
|
}, z.core.$strip>, z.ZodObject<{
|
|
1482
1558
|
id: z.ZodString;
|
|
1559
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1483
1560
|
title: z.ZodString;
|
|
1484
1561
|
description: z.ZodOptional<z.ZodString>;
|
|
1485
1562
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1534,6 +1611,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1534
1611
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
1535
1612
|
}, z.core.$strip>, z.ZodObject<{
|
|
1536
1613
|
id: z.ZodString;
|
|
1614
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1537
1615
|
describe: z.ZodOptional<z.ZodString>;
|
|
1538
1616
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1539
1617
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1587,6 +1665,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1587
1665
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1588
1666
|
}, z.core.$strip>, z.ZodObject<{
|
|
1589
1667
|
id: z.ZodString;
|
|
1668
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1590
1669
|
describe: z.ZodOptional<z.ZodString>;
|
|
1591
1670
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1592
1671
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1640,6 +1719,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1640
1719
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1641
1720
|
}, z.core.$strip>, z.ZodObject<{
|
|
1642
1721
|
id: z.ZodString;
|
|
1722
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1643
1723
|
describe: z.ZodOptional<z.ZodString>;
|
|
1644
1724
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1645
1725
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1693,6 +1773,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1693
1773
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1694
1774
|
}, z.core.$strip>, z.ZodObject<{
|
|
1695
1775
|
id: z.ZodString;
|
|
1776
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1696
1777
|
title: z.ZodString;
|
|
1697
1778
|
description: z.ZodOptional<z.ZodString>;
|
|
1698
1779
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1745,6 +1826,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1745
1826
|
type: z.ZodLiteral<"exit_form">;
|
|
1746
1827
|
}, z.core.$strip>, z.ZodObject<{
|
|
1747
1828
|
id: z.ZodString;
|
|
1829
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1748
1830
|
title: z.ZodString;
|
|
1749
1831
|
description: z.ZodOptional<z.ZodString>;
|
|
1750
1832
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1803,6 +1885,60 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1803
1885
|
}>>;
|
|
1804
1886
|
}, z.core.$strip>, z.ZodObject<{
|
|
1805
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>;
|
|
1806
1942
|
title: z.ZodString;
|
|
1807
1943
|
description: z.ZodOptional<z.ZodString>;
|
|
1808
1944
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1894,6 +2030,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1894
2030
|
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1895
2031
|
}, z.core.$strip>, z.ZodObject<{
|
|
1896
2032
|
id: z.ZodString;
|
|
2033
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1897
2034
|
title: z.ZodString;
|
|
1898
2035
|
description: z.ZodOptional<z.ZodString>;
|
|
1899
2036
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1960,6 +2097,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1960
2097
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1961
2098
|
}, z.core.$strip>, z.ZodObject<{
|
|
1962
2099
|
id: z.ZodString;
|
|
2100
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1963
2101
|
title: z.ZodString;
|
|
1964
2102
|
description: z.ZodOptional<z.ZodString>;
|
|
1965
2103
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2028,6 +2166,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2028
2166
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2029
2167
|
}, z.core.$strip>, z.ZodObject<{
|
|
2030
2168
|
id: z.ZodString;
|
|
2169
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2031
2170
|
title: z.ZodString;
|
|
2032
2171
|
description: z.ZodOptional<z.ZodString>;
|
|
2033
2172
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2100,6 +2239,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2100
2239
|
}, z.core.$strip>>;
|
|
2101
2240
|
}, z.core.$strip>, z.ZodObject<{
|
|
2102
2241
|
id: z.ZodString;
|
|
2242
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2103
2243
|
title: z.ZodString;
|
|
2104
2244
|
description: z.ZodOptional<z.ZodString>;
|
|
2105
2245
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2173,6 +2313,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2173
2313
|
}, z.core.$strip>>;
|
|
2174
2314
|
}, z.core.$strip>, z.ZodObject<{
|
|
2175
2315
|
id: z.ZodString;
|
|
2316
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2176
2317
|
title: z.ZodString;
|
|
2177
2318
|
description: z.ZodOptional<z.ZodString>;
|
|
2178
2319
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2231,6 +2372,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2231
2372
|
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
2232
2373
|
}, z.core.$strip>, z.ZodObject<{
|
|
2233
2374
|
id: z.ZodString;
|
|
2375
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2234
2376
|
title: z.ZodString;
|
|
2235
2377
|
description: z.ZodOptional<z.ZodString>;
|
|
2236
2378
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2292,6 +2434,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2292
2434
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
2293
2435
|
}, z.core.$strip>, z.ZodObject<{
|
|
2294
2436
|
id: z.ZodString;
|
|
2437
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2295
2438
|
title: z.ZodString;
|
|
2296
2439
|
description: z.ZodOptional<z.ZodString>;
|
|
2297
2440
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2352,6 +2495,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2352
2495
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
2353
2496
|
}, z.core.$strip>, z.ZodObject<{
|
|
2354
2497
|
id: z.ZodString;
|
|
2498
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2355
2499
|
title: z.ZodString;
|
|
2356
2500
|
description: z.ZodOptional<z.ZodString>;
|
|
2357
2501
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -2419,4 +2563,4 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
2419
2563
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
2420
2564
|
cascadeLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2421
2565
|
}, z.core.$strip>], "type">;
|
|
2422
|
-
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>;
|