@encatch/schema 1.0.1-beta.3 → 1.1.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +82 -47
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +4 -4
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +248 -31
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +6 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +2 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +138 -28
- package/dist/types/schemas/fields/field-schema.d.ts +218 -10
- package/dist/types/schemas/fields/form-properties-schema.d.ts +148 -47
- package/dist/types/schemas/fields/other-screen-schema.d.ts +0 -5
- package/dist/types/schemas/fields/theme-schema.d.ts +20 -18
- package/dist/types/schemas/fields/translations-schema.d.ts +121 -16
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export declare const questionResponseSchema: z.ZodObject<{
|
|
|
16
16
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
17
17
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
18
18
|
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
consent: z.ZodOptional<z.ZodBoolean>;
|
|
19
20
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
21
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
21
22
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -47,6 +48,7 @@ export declare const responseSchema: z.ZodObject<{
|
|
|
47
48
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
48
49
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
49
50
|
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
consent: z.ZodOptional<z.ZodBoolean>;
|
|
50
52
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
53
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
52
54
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -169,6 +171,7 @@ export declare const partialFeedbackSchema: z.ZodObject<{
|
|
|
169
171
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
170
172
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
171
173
|
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
+
consent: z.ZodOptional<z.ZodBoolean>;
|
|
172
175
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
173
176
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
174
177
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -244,6 +247,7 @@ export declare const submitFeedbackSchema: z.ZodObject<{
|
|
|
244
247
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
245
248
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
246
249
|
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
+
consent: z.ZodOptional<z.ZodBoolean>;
|
|
247
251
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
248
252
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
249
253
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -319,6 +323,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
319
323
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
320
324
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
321
325
|
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
326
|
+
consent: z.ZodOptional<z.ZodBoolean>;
|
|
322
327
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
323
328
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
324
329
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -393,6 +398,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
393
398
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
394
399
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
395
400
|
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
401
|
+
consent: z.ZodOptional<z.ZodBoolean>;
|
|
396
402
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
397
403
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
398
404
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -21,6 +21,7 @@ export declare const AnswerItemSchema: z.ZodObject<{
|
|
|
21
21
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
22
22
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
23
23
|
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
consent: z.ZodOptional<z.ZodBoolean>;
|
|
24
25
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
26
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
26
27
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -46,6 +47,7 @@ export declare const AnswerSchema: z.ZodObject<{
|
|
|
46
47
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
47
48
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
48
49
|
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
consent: z.ZodOptional<z.ZodBoolean>;
|
|
49
51
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
52
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
51
53
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -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>;
|
|
@@ -73,7 +74,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
73
74
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
74
75
|
left: "left";
|
|
75
76
|
center: "center";
|
|
77
|
+
justify: "justify";
|
|
76
78
|
}>>>;
|
|
79
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
77
80
|
type: z.ZodLiteral<"rating">;
|
|
78
81
|
showLabels: z.ZodOptional<z.ZodBoolean>;
|
|
79
82
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -95,6 +98,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
95
98
|
color: z.ZodOptional<z.ZodString>;
|
|
96
99
|
}, z.core.$strip>, z.ZodObject<{
|
|
97
100
|
id: z.ZodString;
|
|
101
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
98
102
|
title: z.ZodString;
|
|
99
103
|
description: z.ZodOptional<z.ZodString>;
|
|
100
104
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -142,12 +146,15 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
142
146
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
143
147
|
left: "left";
|
|
144
148
|
center: "center";
|
|
149
|
+
justify: "justify";
|
|
145
150
|
}>>>;
|
|
151
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
146
152
|
type: z.ZodLiteral<"annotation">;
|
|
147
153
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
148
154
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
149
155
|
}, z.core.$strip>, z.ZodObject<{
|
|
150
156
|
id: z.ZodString;
|
|
157
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
151
158
|
describe: z.ZodOptional<z.ZodString>;
|
|
152
159
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
153
160
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -193,14 +200,16 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
193
200
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
194
201
|
left: "left";
|
|
195
202
|
center: "center";
|
|
203
|
+
justify: "justify";
|
|
196
204
|
}>>>;
|
|
205
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
197
206
|
type: z.ZodLiteral<"welcome">;
|
|
198
207
|
title: z.ZodString;
|
|
199
208
|
description: z.ZodOptional<z.ZodString>;
|
|
200
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
201
209
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
202
210
|
}, z.core.$strip>, z.ZodObject<{
|
|
203
211
|
id: z.ZodString;
|
|
212
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
204
213
|
describe: z.ZodOptional<z.ZodString>;
|
|
205
214
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
206
215
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -246,14 +255,16 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
246
255
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
247
256
|
left: "left";
|
|
248
257
|
center: "center";
|
|
258
|
+
justify: "justify";
|
|
249
259
|
}>>>;
|
|
260
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
250
261
|
type: z.ZodLiteral<"thank_you">;
|
|
251
262
|
title: z.ZodString;
|
|
252
263
|
description: z.ZodOptional<z.ZodString>;
|
|
253
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
254
264
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
255
265
|
}, z.core.$strip>, z.ZodObject<{
|
|
256
266
|
id: z.ZodString;
|
|
267
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
257
268
|
describe: z.ZodOptional<z.ZodString>;
|
|
258
269
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
259
270
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -299,14 +310,16 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
299
310
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
300
311
|
left: "left";
|
|
301
312
|
center: "center";
|
|
313
|
+
justify: "justify";
|
|
302
314
|
}>>>;
|
|
315
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
303
316
|
type: z.ZodLiteral<"message_panel">;
|
|
304
317
|
title: z.ZodString;
|
|
305
318
|
description: z.ZodOptional<z.ZodString>;
|
|
306
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
307
319
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
308
320
|
}, z.core.$strip>, z.ZodObject<{
|
|
309
321
|
id: z.ZodString;
|
|
322
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
310
323
|
title: z.ZodString;
|
|
311
324
|
description: z.ZodOptional<z.ZodString>;
|
|
312
325
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -354,10 +367,13 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
354
367
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
355
368
|
left: "left";
|
|
356
369
|
center: "center";
|
|
370
|
+
justify: "justify";
|
|
357
371
|
}>>>;
|
|
372
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
358
373
|
type: z.ZodLiteral<"exit_form">;
|
|
359
374
|
}, z.core.$strip>, z.ZodObject<{
|
|
360
375
|
id: z.ZodString;
|
|
376
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
361
377
|
title: z.ZodString;
|
|
362
378
|
description: z.ZodOptional<z.ZodString>;
|
|
363
379
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -405,7 +421,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
405
421
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
406
422
|
left: "left";
|
|
407
423
|
center: "center";
|
|
424
|
+
justify: "justify";
|
|
408
425
|
}>>>;
|
|
426
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
409
427
|
type: z.ZodLiteral<"yes_no">;
|
|
410
428
|
yesLabel: z.ZodOptional<z.ZodString>;
|
|
411
429
|
noLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -415,6 +433,61 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
415
433
|
}>>;
|
|
416
434
|
}, z.core.$strip>, z.ZodObject<{
|
|
417
435
|
id: z.ZodString;
|
|
436
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
437
|
+
title: z.ZodString;
|
|
438
|
+
description: z.ZodOptional<z.ZodString>;
|
|
439
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
440
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
441
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
442
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
443
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
444
|
+
type: z.ZodEnum<{
|
|
445
|
+
custom: "custom";
|
|
446
|
+
pattern: "pattern";
|
|
447
|
+
required: "required";
|
|
448
|
+
min: "min";
|
|
449
|
+
max: "max";
|
|
450
|
+
minLength: "minLength";
|
|
451
|
+
maxLength: "maxLength";
|
|
452
|
+
email: "email";
|
|
453
|
+
url: "url";
|
|
454
|
+
}>;
|
|
455
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
456
|
+
message: z.ZodOptional<z.ZodString>;
|
|
457
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
458
|
+
}, z.core.$strip>>>>;
|
|
459
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
460
|
+
field: z.ZodString;
|
|
461
|
+
operator: z.ZodEnum<{
|
|
462
|
+
equals: "equals";
|
|
463
|
+
not_equals: "not_equals";
|
|
464
|
+
contains: "contains";
|
|
465
|
+
not_contains: "not_contains";
|
|
466
|
+
greater_than: "greater_than";
|
|
467
|
+
less_than: "less_than";
|
|
468
|
+
is_empty: "is_empty";
|
|
469
|
+
is_not_empty: "is_not_empty";
|
|
470
|
+
}>;
|
|
471
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
472
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
473
|
+
}, z.core.$strip>>>>;
|
|
474
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
475
|
+
status: z.ZodEnum<{
|
|
476
|
+
D: "D";
|
|
477
|
+
P: "P";
|
|
478
|
+
A: "A";
|
|
479
|
+
S: "S";
|
|
480
|
+
}>;
|
|
481
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
482
|
+
left: "left";
|
|
483
|
+
center: "center";
|
|
484
|
+
justify: "justify";
|
|
485
|
+
}>>>;
|
|
486
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
487
|
+
type: z.ZodLiteral<"consent">;
|
|
488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
489
|
+
id: z.ZodString;
|
|
490
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
418
491
|
title: z.ZodString;
|
|
419
492
|
description: z.ZodOptional<z.ZodString>;
|
|
420
493
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -462,7 +535,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
462
535
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
463
536
|
left: "left";
|
|
464
537
|
center: "center";
|
|
538
|
+
justify: "justify";
|
|
465
539
|
}>>>;
|
|
540
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
466
541
|
type: z.ZodLiteral<"rating_matrix">;
|
|
467
542
|
statements: z.ZodArray<z.ZodObject<{
|
|
468
543
|
id: z.ZodString;
|
|
@@ -505,6 +580,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
505
580
|
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
506
581
|
}, z.core.$strip>, z.ZodObject<{
|
|
507
582
|
id: z.ZodString;
|
|
583
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
508
584
|
title: z.ZodString;
|
|
509
585
|
description: z.ZodOptional<z.ZodString>;
|
|
510
586
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -552,7 +628,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
552
628
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
553
629
|
left: "left";
|
|
554
630
|
center: "center";
|
|
631
|
+
justify: "justify";
|
|
555
632
|
}>>>;
|
|
633
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
556
634
|
type: z.ZodLiteral<"matrix_single_choice">;
|
|
557
635
|
rows: z.ZodArray<z.ZodObject<{
|
|
558
636
|
id: z.ZodString;
|
|
@@ -570,6 +648,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
570
648
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
571
649
|
}, z.core.$strip>, z.ZodObject<{
|
|
572
650
|
id: z.ZodString;
|
|
651
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
573
652
|
title: z.ZodString;
|
|
574
653
|
description: z.ZodOptional<z.ZodString>;
|
|
575
654
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -617,7 +696,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
617
696
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
618
697
|
left: "left";
|
|
619
698
|
center: "center";
|
|
699
|
+
justify: "justify";
|
|
620
700
|
}>>>;
|
|
701
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
621
702
|
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
622
703
|
rows: z.ZodArray<z.ZodObject<{
|
|
623
704
|
id: z.ZodString;
|
|
@@ -637,6 +718,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
637
718
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
638
719
|
}, z.core.$strip>, z.ZodObject<{
|
|
639
720
|
id: z.ZodString;
|
|
721
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
640
722
|
title: z.ZodString;
|
|
641
723
|
description: z.ZodOptional<z.ZodString>;
|
|
642
724
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -684,7 +766,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
684
766
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
685
767
|
left: "left";
|
|
686
768
|
center: "center";
|
|
769
|
+
justify: "justify";
|
|
687
770
|
}>>>;
|
|
771
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
688
772
|
type: z.ZodLiteral<"single_choice">;
|
|
689
773
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
690
774
|
radio: "radio";
|
|
@@ -708,6 +792,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
708
792
|
}, z.core.$strip>>;
|
|
709
793
|
}, z.core.$strip>, z.ZodObject<{
|
|
710
794
|
id: z.ZodString;
|
|
795
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
711
796
|
title: z.ZodString;
|
|
712
797
|
description: z.ZodOptional<z.ZodString>;
|
|
713
798
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -755,7 +840,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
755
840
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
756
841
|
left: "left";
|
|
757
842
|
center: "center";
|
|
843
|
+
justify: "justify";
|
|
758
844
|
}>>>;
|
|
845
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
759
846
|
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
760
847
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
761
848
|
list: "list";
|
|
@@ -780,6 +867,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
780
867
|
}, z.core.$strip>>;
|
|
781
868
|
}, z.core.$strip>, z.ZodObject<{
|
|
782
869
|
id: z.ZodString;
|
|
870
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
783
871
|
title: z.ZodString;
|
|
784
872
|
description: z.ZodOptional<z.ZodString>;
|
|
785
873
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -827,7 +915,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
827
915
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
828
916
|
left: "left";
|
|
829
917
|
center: "center";
|
|
918
|
+
justify: "justify";
|
|
830
919
|
}>>>;
|
|
920
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
831
921
|
type: z.ZodLiteral<"nps">;
|
|
832
922
|
min: z.ZodLiteral<0>;
|
|
833
923
|
max: z.ZodLiteral<10>;
|
|
@@ -837,6 +927,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
837
927
|
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
838
928
|
}, z.core.$strip>, z.ZodObject<{
|
|
839
929
|
id: z.ZodString;
|
|
930
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
840
931
|
title: z.ZodString;
|
|
841
932
|
description: z.ZodOptional<z.ZodString>;
|
|
842
933
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -884,7 +975,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
884
975
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
885
976
|
left: "left";
|
|
886
977
|
center: "center";
|
|
978
|
+
justify: "justify";
|
|
887
979
|
}>>>;
|
|
980
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
888
981
|
type: z.ZodLiteral<"short_answer">;
|
|
889
982
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
890
983
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -897,6 +990,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
897
990
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
898
991
|
}, z.core.$strip>, z.ZodObject<{
|
|
899
992
|
id: z.ZodString;
|
|
993
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
900
994
|
title: z.ZodString;
|
|
901
995
|
description: z.ZodOptional<z.ZodString>;
|
|
902
996
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -944,7 +1038,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
944
1038
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
945
1039
|
left: "left";
|
|
946
1040
|
center: "center";
|
|
1041
|
+
justify: "justify";
|
|
947
1042
|
}>>>;
|
|
1043
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
948
1044
|
type: z.ZodLiteral<"long_text">;
|
|
949
1045
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
950
1046
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -956,6 +1052,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
956
1052
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
957
1053
|
}, z.core.$strip>, z.ZodObject<{
|
|
958
1054
|
id: z.ZodString;
|
|
1055
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
959
1056
|
title: z.ZodString;
|
|
960
1057
|
description: z.ZodOptional<z.ZodString>;
|
|
961
1058
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1003,7 +1100,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1003
1100
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1004
1101
|
left: "left";
|
|
1005
1102
|
center: "center";
|
|
1103
|
+
justify: "justify";
|
|
1006
1104
|
}>>>;
|
|
1105
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1007
1106
|
type: z.ZodLiteral<"nested_selection">;
|
|
1008
1107
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1009
1108
|
options: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
@@ -1029,13 +1128,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1029
1128
|
otherConfigurationProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1030
1129
|
isEnabled: z.ZodLiteral<false>;
|
|
1031
1130
|
otherFields: z.ZodObject<{
|
|
1032
|
-
pagination: z.ZodBoolean;
|
|
1033
1131
|
questionNumber: z.ZodBoolean;
|
|
1034
|
-
pageTitle: z.ZodBoolean;
|
|
1035
|
-
blockerFeedback: z.ZodBoolean;
|
|
1036
1132
|
submitButtonLabel: z.ZodString;
|
|
1037
1133
|
previousButtonLabel: z.ZodString;
|
|
1038
|
-
nextButtonLabel: z.ZodString;
|
|
1039
1134
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1040
1135
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1041
1136
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1043,7 +1138,6 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1043
1138
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1044
1139
|
submitButtonLabel: z.ZodString;
|
|
1045
1140
|
previousButtonLabel: z.ZodString;
|
|
1046
|
-
nextButtonLabel: z.ZodString;
|
|
1047
1141
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1048
1142
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1049
1143
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1051,13 +1145,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1051
1145
|
}, z.core.$strip>, z.ZodObject<{
|
|
1052
1146
|
isEnabled: z.ZodLiteral<true>;
|
|
1053
1147
|
otherFields: z.ZodObject<{
|
|
1054
|
-
pagination: z.ZodBoolean;
|
|
1055
1148
|
questionNumber: z.ZodBoolean;
|
|
1056
|
-
pageTitle: z.ZodBoolean;
|
|
1057
|
-
blockerFeedback: z.ZodBoolean;
|
|
1058
1149
|
submitButtonLabel: z.ZodString;
|
|
1059
1150
|
previousButtonLabel: z.ZodString;
|
|
1060
|
-
nextButtonLabel: z.ZodString;
|
|
1061
1151
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1062
1152
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1063
1153
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1065,7 +1155,6 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1065
1155
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1066
1156
|
submitButtonLabel: z.ZodString;
|
|
1067
1157
|
previousButtonLabel: z.ZodString;
|
|
1068
|
-
nextButtonLabel: z.ZodString;
|
|
1069
1158
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1070
1159
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1071
1160
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1075,6 +1164,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1075
1164
|
title: z.ZodString;
|
|
1076
1165
|
description: z.ZodOptional<z.ZodString>;
|
|
1077
1166
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1078
1168
|
type: z.ZodLiteral<"rating">;
|
|
1079
1169
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
1080
1170
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1082,18 +1172,21 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1082
1172
|
title: z.ZodString;
|
|
1083
1173
|
description: z.ZodOptional<z.ZodString>;
|
|
1084
1174
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1085
1176
|
type: z.ZodLiteral<"single_choice">;
|
|
1086
1177
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1087
1178
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1088
1179
|
title: z.ZodString;
|
|
1089
1180
|
description: z.ZodOptional<z.ZodString>;
|
|
1090
1181
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1182
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1091
1183
|
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
1092
1184
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1093
1185
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1094
1186
|
title: z.ZodString;
|
|
1095
1187
|
description: z.ZodOptional<z.ZodString>;
|
|
1096
1188
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1097
1190
|
type: z.ZodLiteral<"nps">;
|
|
1098
1191
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
1099
1192
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1101,24 +1194,28 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1101
1194
|
title: z.ZodString;
|
|
1102
1195
|
description: z.ZodOptional<z.ZodString>;
|
|
1103
1196
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1104
1198
|
type: z.ZodLiteral<"short_answer">;
|
|
1105
1199
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1106
1200
|
}, z.core.$strip>, z.ZodObject<{
|
|
1107
1201
|
title: z.ZodString;
|
|
1108
1202
|
description: z.ZodOptional<z.ZodString>;
|
|
1109
1203
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1204
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1110
1205
|
type: z.ZodLiteral<"long_text">;
|
|
1111
1206
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1112
1207
|
}, z.core.$strip>, z.ZodObject<{
|
|
1113
1208
|
title: z.ZodString;
|
|
1114
1209
|
description: z.ZodOptional<z.ZodString>;
|
|
1115
1210
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1116
1212
|
type: z.ZodLiteral<"nested_selection">;
|
|
1117
1213
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1118
1214
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1119
1215
|
title: z.ZodString;
|
|
1120
1216
|
description: z.ZodOptional<z.ZodString>;
|
|
1121
1217
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1218
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1122
1219
|
type: z.ZodLiteral<"annotation">;
|
|
1123
1220
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
1124
1221
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
@@ -1126,24 +1223,25 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1126
1223
|
title: z.ZodString;
|
|
1127
1224
|
description: z.ZodOptional<z.ZodString>;
|
|
1128
1225
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1129
1227
|
type: z.ZodLiteral<"welcome">;
|
|
1130
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1131
1228
|
}, z.core.$strip>, z.ZodObject<{
|
|
1132
1229
|
title: z.ZodString;
|
|
1133
1230
|
description: z.ZodOptional<z.ZodString>;
|
|
1134
1231
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1135
1233
|
type: z.ZodLiteral<"thank_you">;
|
|
1136
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1137
1234
|
}, z.core.$strip>, z.ZodObject<{
|
|
1138
1235
|
title: z.ZodString;
|
|
1139
1236
|
description: z.ZodOptional<z.ZodString>;
|
|
1140
1237
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1141
1239
|
type: z.ZodLiteral<"message_panel">;
|
|
1142
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1143
1240
|
}, z.core.$strip>, z.ZodObject<{
|
|
1144
1241
|
title: z.ZodString;
|
|
1145
1242
|
description: z.ZodOptional<z.ZodString>;
|
|
1146
1243
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1244
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1147
1245
|
type: z.ZodLiteral<"yes_no">;
|
|
1148
1246
|
yesLabel: z.ZodOptional<z.ZodString>;
|
|
1149
1247
|
noLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1151,6 +1249,13 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1151
1249
|
title: z.ZodString;
|
|
1152
1250
|
description: z.ZodOptional<z.ZodString>;
|
|
1153
1251
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1252
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1253
|
+
type: z.ZodLiteral<"consent">;
|
|
1254
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1255
|
+
title: z.ZodString;
|
|
1256
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1258
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1154
1259
|
type: z.ZodLiteral<"rating_matrix">;
|
|
1155
1260
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
1156
1261
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1158,11 +1263,13 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1158
1263
|
title: z.ZodString;
|
|
1159
1264
|
description: z.ZodOptional<z.ZodString>;
|
|
1160
1265
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1266
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1161
1267
|
type: z.ZodLiteral<"matrix_single_choice">;
|
|
1162
1268
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1163
1269
|
title: z.ZodString;
|
|
1164
1270
|
description: z.ZodOptional<z.ZodString>;
|
|
1165
1271
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1272
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1166
1273
|
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
1167
1274
|
}, z.core.$catchall<z.ZodString>>]>>>>;
|
|
1168
1275
|
onSectionChange: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodNumber], null>, z.ZodVoid>>;
|
|
@@ -1170,13 +1277,15 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1170
1277
|
sections: z.ZodArray<z.ZodObject<{
|
|
1171
1278
|
id: z.ZodString;
|
|
1172
1279
|
title: z.ZodString;
|
|
1173
|
-
titleTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1174
1280
|
description: z.ZodOptional<z.ZodString>;
|
|
1175
|
-
descriptionTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1176
1281
|
showTitle: z.ZodDefault<z.ZodBoolean>;
|
|
1177
1282
|
showDescription: z.ZodDefault<z.ZodBoolean>;
|
|
1178
1283
|
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1179
|
-
|
|
1284
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1285
|
+
title: z.ZodString;
|
|
1286
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1287
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
}, z.core.$strip>>>;
|
|
1180
1289
|
inAppSingleQuestion: z.ZodDefault<z.ZodBoolean>;
|
|
1181
1290
|
questionIds: z.ZodArray<z.ZodString>;
|
|
1182
1291
|
}, z.core.$strip>>;
|
|
@@ -1190,23 +1299,24 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1190
1299
|
}, z.core.$strip>;
|
|
1191
1300
|
}, z.core.$strip>;
|
|
1192
1301
|
featureSettings: z.ZodObject<{
|
|
1193
|
-
darkOverlay: z.ZodBoolean
|
|
1194
|
-
closeButton: z.ZodBoolean
|
|
1195
|
-
progressBar: z.ZodBoolean
|
|
1196
|
-
showBranding: z.ZodBoolean
|
|
1302
|
+
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
1303
|
+
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
1304
|
+
progressBar: z.ZodDefault<z.ZodBoolean>;
|
|
1305
|
+
showBranding: z.ZodDefault<z.ZodBoolean>;
|
|
1197
1306
|
customPosition: z.ZodBoolean;
|
|
1198
1307
|
customCss: z.ZodOptional<z.ZodString>;
|
|
1199
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
1308
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1200
1309
|
light: "light";
|
|
1201
1310
|
dark: "dark";
|
|
1202
1311
|
system: "system";
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1312
|
+
}>>>;
|
|
1313
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
1314
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
1315
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
1206
1316
|
never: "never";
|
|
1207
1317
|
always: "always";
|
|
1208
1318
|
auto: "auto";
|
|
1209
|
-
}
|
|
1319
|
+
}>>;
|
|
1210
1320
|
}, z.core.$strip>;
|
|
1211
1321
|
selectedPosition: z.ZodEnum<{
|
|
1212
1322
|
"top-left": "top-left";
|