@encatch/schema 1.0.1-beta.3 → 1.1.0-beta.11
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 +99 -50
- 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 +250 -33
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +24 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +2 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +139 -28
- package/dist/types/schemas/fields/field-schema.d.ts +219 -10
- package/dist/types/schemas/fields/form-properties-schema.d.ts +149 -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
|
@@ -3,13 +3,9 @@ import { OtherFieldsSchema, OtherFieldsTranslationSchema } from "./other-screen-
|
|
|
3
3
|
export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
4
|
isEnabled: z.ZodLiteral<false>;
|
|
5
5
|
otherFields: z.ZodObject<{
|
|
6
|
-
pagination: z.ZodBoolean;
|
|
7
6
|
questionNumber: z.ZodBoolean;
|
|
8
|
-
pageTitle: z.ZodBoolean;
|
|
9
|
-
blockerFeedback: z.ZodBoolean;
|
|
10
7
|
submitButtonLabel: z.ZodString;
|
|
11
8
|
previousButtonLabel: z.ZodString;
|
|
12
|
-
nextButtonLabel: z.ZodString;
|
|
13
9
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
14
10
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
15
11
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -17,7 +13,6 @@ export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion
|
|
|
17
13
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
18
14
|
submitButtonLabel: z.ZodString;
|
|
19
15
|
previousButtonLabel: z.ZodString;
|
|
20
|
-
nextButtonLabel: z.ZodString;
|
|
21
16
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
22
17
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
23
18
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -25,13 +20,9 @@ export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion
|
|
|
25
20
|
}, z.core.$strip>, z.ZodObject<{
|
|
26
21
|
isEnabled: z.ZodLiteral<true>;
|
|
27
22
|
otherFields: z.ZodObject<{
|
|
28
|
-
pagination: z.ZodBoolean;
|
|
29
23
|
questionNumber: z.ZodBoolean;
|
|
30
|
-
pageTitle: z.ZodBoolean;
|
|
31
|
-
blockerFeedback: z.ZodBoolean;
|
|
32
24
|
submitButtonLabel: z.ZodString;
|
|
33
25
|
previousButtonLabel: z.ZodString;
|
|
34
|
-
nextButtonLabel: z.ZodString;
|
|
35
26
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
36
27
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
37
28
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -39,7 +30,6 @@ export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion
|
|
|
39
30
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
40
31
|
submitButtonLabel: z.ZodString;
|
|
41
32
|
previousButtonLabel: z.ZodString;
|
|
42
|
-
nextButtonLabel: z.ZodString;
|
|
43
33
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
44
34
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
45
35
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -56,23 +46,24 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
|
56
46
|
}, z.core.$strip>;
|
|
57
47
|
}, z.core.$strip>;
|
|
58
48
|
featureSettings: z.ZodObject<{
|
|
59
|
-
darkOverlay: z.ZodBoolean
|
|
60
|
-
closeButton: z.ZodBoolean
|
|
61
|
-
progressBar: z.ZodBoolean
|
|
62
|
-
showBranding: z.ZodBoolean
|
|
49
|
+
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
50
|
+
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
51
|
+
progressBar: z.ZodDefault<z.ZodBoolean>;
|
|
52
|
+
showBranding: z.ZodDefault<z.ZodBoolean>;
|
|
63
53
|
customPosition: z.ZodBoolean;
|
|
64
54
|
customCss: z.ZodOptional<z.ZodString>;
|
|
65
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
66
56
|
light: "light";
|
|
67
57
|
dark: "dark";
|
|
68
58
|
system: "system";
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
59
|
+
}>>>;
|
|
60
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
62
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
72
63
|
never: "never";
|
|
73
64
|
always: "always";
|
|
74
65
|
auto: "auto";
|
|
75
|
-
}
|
|
66
|
+
}>>;
|
|
76
67
|
}, z.core.$strip>;
|
|
77
68
|
selectedPosition: z.ZodEnum<{
|
|
78
69
|
"top-left": "top-left";
|
|
@@ -113,6 +104,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
113
104
|
questionnaireFields: z.ZodObject<{
|
|
114
105
|
questions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
106
|
id: z.ZodString;
|
|
107
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
116
108
|
title: z.ZodString;
|
|
117
109
|
description: z.ZodOptional<z.ZodString>;
|
|
118
110
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -160,7 +152,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
160
152
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
161
153
|
left: "left";
|
|
162
154
|
center: "center";
|
|
155
|
+
justify: "justify";
|
|
163
156
|
}>>>;
|
|
157
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
164
158
|
type: z.ZodLiteral<"rating">;
|
|
165
159
|
showLabels: z.ZodOptional<z.ZodBoolean>;
|
|
166
160
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -182,6 +176,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
182
176
|
color: z.ZodOptional<z.ZodString>;
|
|
183
177
|
}, z.core.$strip>, z.ZodObject<{
|
|
184
178
|
id: z.ZodString;
|
|
179
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
185
180
|
title: z.ZodString;
|
|
186
181
|
description: z.ZodOptional<z.ZodString>;
|
|
187
182
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -229,12 +224,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
229
224
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
230
225
|
left: "left";
|
|
231
226
|
center: "center";
|
|
227
|
+
justify: "justify";
|
|
232
228
|
}>>>;
|
|
229
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
233
230
|
type: z.ZodLiteral<"annotation">;
|
|
234
231
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
235
232
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
236
233
|
}, z.core.$strip>, z.ZodObject<{
|
|
237
234
|
id: z.ZodString;
|
|
235
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
238
236
|
describe: z.ZodOptional<z.ZodString>;
|
|
239
237
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
240
238
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -280,14 +278,16 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
280
278
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
281
279
|
left: "left";
|
|
282
280
|
center: "center";
|
|
281
|
+
justify: "justify";
|
|
283
282
|
}>>>;
|
|
283
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
284
284
|
type: z.ZodLiteral<"welcome">;
|
|
285
285
|
title: z.ZodString;
|
|
286
286
|
description: z.ZodOptional<z.ZodString>;
|
|
287
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
288
287
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
289
288
|
}, z.core.$strip>, z.ZodObject<{
|
|
290
289
|
id: z.ZodString;
|
|
290
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
291
291
|
describe: z.ZodOptional<z.ZodString>;
|
|
292
292
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
293
293
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -333,14 +333,16 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
333
333
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
334
334
|
left: "left";
|
|
335
335
|
center: "center";
|
|
336
|
+
justify: "justify";
|
|
336
337
|
}>>>;
|
|
338
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
337
339
|
type: z.ZodLiteral<"thank_you">;
|
|
338
340
|
title: z.ZodString;
|
|
339
341
|
description: z.ZodOptional<z.ZodString>;
|
|
340
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
341
342
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
342
343
|
}, z.core.$strip>, z.ZodObject<{
|
|
343
344
|
id: z.ZodString;
|
|
345
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
344
346
|
describe: z.ZodOptional<z.ZodString>;
|
|
345
347
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
346
348
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -386,14 +388,16 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
386
388
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
387
389
|
left: "left";
|
|
388
390
|
center: "center";
|
|
391
|
+
justify: "justify";
|
|
389
392
|
}>>>;
|
|
393
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
390
394
|
type: z.ZodLiteral<"message_panel">;
|
|
391
395
|
title: z.ZodString;
|
|
392
396
|
description: z.ZodOptional<z.ZodString>;
|
|
393
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
394
397
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
395
398
|
}, z.core.$strip>, z.ZodObject<{
|
|
396
399
|
id: z.ZodString;
|
|
400
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
397
401
|
title: z.ZodString;
|
|
398
402
|
description: z.ZodOptional<z.ZodString>;
|
|
399
403
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -441,10 +445,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
441
445
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
442
446
|
left: "left";
|
|
443
447
|
center: "center";
|
|
448
|
+
justify: "justify";
|
|
444
449
|
}>>>;
|
|
450
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
445
451
|
type: z.ZodLiteral<"exit_form">;
|
|
446
452
|
}, z.core.$strip>, z.ZodObject<{
|
|
447
453
|
id: z.ZodString;
|
|
454
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
448
455
|
title: z.ZodString;
|
|
449
456
|
description: z.ZodOptional<z.ZodString>;
|
|
450
457
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -492,7 +499,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
492
499
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
493
500
|
left: "left";
|
|
494
501
|
center: "center";
|
|
502
|
+
justify: "justify";
|
|
495
503
|
}>>>;
|
|
504
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
496
505
|
type: z.ZodLiteral<"yes_no">;
|
|
497
506
|
yesLabel: z.ZodOptional<z.ZodString>;
|
|
498
507
|
noLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -502,6 +511,61 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
502
511
|
}>>;
|
|
503
512
|
}, z.core.$strip>, z.ZodObject<{
|
|
504
513
|
id: z.ZodString;
|
|
514
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
515
|
+
title: z.ZodString;
|
|
516
|
+
description: z.ZodOptional<z.ZodString>;
|
|
517
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
518
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
519
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
520
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
521
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
522
|
+
type: z.ZodEnum<{
|
|
523
|
+
custom: "custom";
|
|
524
|
+
pattern: "pattern";
|
|
525
|
+
required: "required";
|
|
526
|
+
min: "min";
|
|
527
|
+
max: "max";
|
|
528
|
+
minLength: "minLength";
|
|
529
|
+
maxLength: "maxLength";
|
|
530
|
+
email: "email";
|
|
531
|
+
url: "url";
|
|
532
|
+
}>;
|
|
533
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
534
|
+
message: z.ZodOptional<z.ZodString>;
|
|
535
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
536
|
+
}, z.core.$strip>>>>;
|
|
537
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
538
|
+
field: z.ZodString;
|
|
539
|
+
operator: z.ZodEnum<{
|
|
540
|
+
equals: "equals";
|
|
541
|
+
not_equals: "not_equals";
|
|
542
|
+
contains: "contains";
|
|
543
|
+
not_contains: "not_contains";
|
|
544
|
+
greater_than: "greater_than";
|
|
545
|
+
less_than: "less_than";
|
|
546
|
+
is_empty: "is_empty";
|
|
547
|
+
is_not_empty: "is_not_empty";
|
|
548
|
+
}>;
|
|
549
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
550
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
551
|
+
}, z.core.$strip>>>>;
|
|
552
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
553
|
+
status: z.ZodEnum<{
|
|
554
|
+
D: "D";
|
|
555
|
+
P: "P";
|
|
556
|
+
A: "A";
|
|
557
|
+
S: "S";
|
|
558
|
+
}>;
|
|
559
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
560
|
+
left: "left";
|
|
561
|
+
center: "center";
|
|
562
|
+
justify: "justify";
|
|
563
|
+
}>>>;
|
|
564
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
565
|
+
type: z.ZodLiteral<"consent">;
|
|
566
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
567
|
+
id: z.ZodString;
|
|
568
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
505
569
|
title: z.ZodString;
|
|
506
570
|
description: z.ZodOptional<z.ZodString>;
|
|
507
571
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -549,7 +613,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
549
613
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
550
614
|
left: "left";
|
|
551
615
|
center: "center";
|
|
616
|
+
justify: "justify";
|
|
552
617
|
}>>>;
|
|
618
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
553
619
|
type: z.ZodLiteral<"rating_matrix">;
|
|
554
620
|
statements: z.ZodArray<z.ZodObject<{
|
|
555
621
|
id: z.ZodString;
|
|
@@ -592,6 +658,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
592
658
|
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
593
659
|
}, z.core.$strip>, z.ZodObject<{
|
|
594
660
|
id: z.ZodString;
|
|
661
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
595
662
|
title: z.ZodString;
|
|
596
663
|
description: z.ZodOptional<z.ZodString>;
|
|
597
664
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -639,7 +706,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
639
706
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
640
707
|
left: "left";
|
|
641
708
|
center: "center";
|
|
709
|
+
justify: "justify";
|
|
642
710
|
}>>>;
|
|
711
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
643
712
|
type: z.ZodLiteral<"matrix_single_choice">;
|
|
644
713
|
rows: z.ZodArray<z.ZodObject<{
|
|
645
714
|
id: z.ZodString;
|
|
@@ -657,6 +726,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
657
726
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
658
727
|
}, z.core.$strip>, z.ZodObject<{
|
|
659
728
|
id: z.ZodString;
|
|
729
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
660
730
|
title: z.ZodString;
|
|
661
731
|
description: z.ZodOptional<z.ZodString>;
|
|
662
732
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -704,7 +774,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
704
774
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
705
775
|
left: "left";
|
|
706
776
|
center: "center";
|
|
777
|
+
justify: "justify";
|
|
707
778
|
}>>>;
|
|
779
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
708
780
|
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
709
781
|
rows: z.ZodArray<z.ZodObject<{
|
|
710
782
|
id: z.ZodString;
|
|
@@ -724,6 +796,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
724
796
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
725
797
|
}, z.core.$strip>, z.ZodObject<{
|
|
726
798
|
id: z.ZodString;
|
|
799
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
727
800
|
title: z.ZodString;
|
|
728
801
|
description: z.ZodOptional<z.ZodString>;
|
|
729
802
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -771,7 +844,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
771
844
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
772
845
|
left: "left";
|
|
773
846
|
center: "center";
|
|
847
|
+
justify: "justify";
|
|
774
848
|
}>>>;
|
|
849
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
775
850
|
type: z.ZodLiteral<"single_choice">;
|
|
776
851
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
777
852
|
radio: "radio";
|
|
@@ -795,6 +870,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
795
870
|
}, z.core.$strip>>;
|
|
796
871
|
}, z.core.$strip>, z.ZodObject<{
|
|
797
872
|
id: z.ZodString;
|
|
873
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
798
874
|
title: z.ZodString;
|
|
799
875
|
description: z.ZodOptional<z.ZodString>;
|
|
800
876
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -842,7 +918,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
842
918
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
843
919
|
left: "left";
|
|
844
920
|
center: "center";
|
|
921
|
+
justify: "justify";
|
|
845
922
|
}>>>;
|
|
923
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
846
924
|
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
847
925
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
848
926
|
list: "list";
|
|
@@ -867,6 +945,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
867
945
|
}, z.core.$strip>>;
|
|
868
946
|
}, z.core.$strip>, z.ZodObject<{
|
|
869
947
|
id: z.ZodString;
|
|
948
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
870
949
|
title: z.ZodString;
|
|
871
950
|
description: z.ZodOptional<z.ZodString>;
|
|
872
951
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -914,7 +993,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
914
993
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
915
994
|
left: "left";
|
|
916
995
|
center: "center";
|
|
996
|
+
justify: "justify";
|
|
917
997
|
}>>>;
|
|
998
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
918
999
|
type: z.ZodLiteral<"nps">;
|
|
919
1000
|
min: z.ZodLiteral<0>;
|
|
920
1001
|
max: z.ZodLiteral<10>;
|
|
@@ -924,6 +1005,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
924
1005
|
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
925
1006
|
}, z.core.$strip>, z.ZodObject<{
|
|
926
1007
|
id: z.ZodString;
|
|
1008
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
927
1009
|
title: z.ZodString;
|
|
928
1010
|
description: z.ZodOptional<z.ZodString>;
|
|
929
1011
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -971,7 +1053,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
971
1053
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
972
1054
|
left: "left";
|
|
973
1055
|
center: "center";
|
|
1056
|
+
justify: "justify";
|
|
974
1057
|
}>>>;
|
|
1058
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
975
1059
|
type: z.ZodLiteral<"short_answer">;
|
|
976
1060
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
977
1061
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -984,6 +1068,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
984
1068
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
985
1069
|
}, z.core.$strip>, z.ZodObject<{
|
|
986
1070
|
id: z.ZodString;
|
|
1071
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
987
1072
|
title: z.ZodString;
|
|
988
1073
|
description: z.ZodOptional<z.ZodString>;
|
|
989
1074
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1031,7 +1116,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1031
1116
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1032
1117
|
left: "left";
|
|
1033
1118
|
center: "center";
|
|
1119
|
+
justify: "justify";
|
|
1034
1120
|
}>>>;
|
|
1121
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1035
1122
|
type: z.ZodLiteral<"long_text">;
|
|
1036
1123
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
1037
1124
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1043,6 +1130,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1043
1130
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
1044
1131
|
}, z.core.$strip>, z.ZodObject<{
|
|
1045
1132
|
id: z.ZodString;
|
|
1133
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1046
1134
|
title: z.ZodString;
|
|
1047
1135
|
description: z.ZodOptional<z.ZodString>;
|
|
1048
1136
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1090,7 +1178,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1090
1178
|
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1091
1179
|
left: "left";
|
|
1092
1180
|
center: "center";
|
|
1181
|
+
justify: "justify";
|
|
1093
1182
|
}>>>;
|
|
1183
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1094
1184
|
type: z.ZodLiteral<"nested_selection">;
|
|
1095
1185
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1096
1186
|
options: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
@@ -1112,14 +1202,17 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1112
1202
|
sections: z.ZodArray<z.ZodObject<{
|
|
1113
1203
|
id: z.ZodString;
|
|
1114
1204
|
title: z.ZodString;
|
|
1115
|
-
titleTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1116
1205
|
description: z.ZodOptional<z.ZodString>;
|
|
1117
|
-
descriptionTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1118
1206
|
showTitle: z.ZodDefault<z.ZodBoolean>;
|
|
1119
1207
|
showDescription: z.ZodDefault<z.ZodBoolean>;
|
|
1120
1208
|
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1121
|
-
|
|
1209
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1210
|
+
title: z.ZodString;
|
|
1211
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1213
|
+
}, z.core.$strip>>>;
|
|
1122
1214
|
inAppSingleQuestion: z.ZodDefault<z.ZodBoolean>;
|
|
1215
|
+
isPreviousAllowed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1123
1216
|
questionIds: z.ZodArray<z.ZodString>;
|
|
1124
1217
|
}, z.core.$strip>>;
|
|
1125
1218
|
selectedLanguages: z.ZodArray<z.ZodObject<{
|
|
@@ -1130,6 +1223,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1130
1223
|
title: z.ZodString;
|
|
1131
1224
|
description: z.ZodOptional<z.ZodString>;
|
|
1132
1225
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1133
1227
|
type: z.ZodLiteral<"rating">;
|
|
1134
1228
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
1135
1229
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1137,18 +1231,21 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1137
1231
|
title: z.ZodString;
|
|
1138
1232
|
description: z.ZodOptional<z.ZodString>;
|
|
1139
1233
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1140
1235
|
type: z.ZodLiteral<"single_choice">;
|
|
1141
1236
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1142
1237
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1143
1238
|
title: z.ZodString;
|
|
1144
1239
|
description: z.ZodOptional<z.ZodString>;
|
|
1145
1240
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1146
1242
|
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
1147
1243
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1148
1244
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1149
1245
|
title: z.ZodString;
|
|
1150
1246
|
description: z.ZodOptional<z.ZodString>;
|
|
1151
1247
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1248
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1152
1249
|
type: z.ZodLiteral<"nps">;
|
|
1153
1250
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
1154
1251
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1156,24 +1253,28 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1156
1253
|
title: z.ZodString;
|
|
1157
1254
|
description: z.ZodOptional<z.ZodString>;
|
|
1158
1255
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1256
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1159
1257
|
type: z.ZodLiteral<"short_answer">;
|
|
1160
1258
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1161
1259
|
}, z.core.$strip>, z.ZodObject<{
|
|
1162
1260
|
title: z.ZodString;
|
|
1163
1261
|
description: z.ZodOptional<z.ZodString>;
|
|
1164
1262
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1165
1264
|
type: z.ZodLiteral<"long_text">;
|
|
1166
1265
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1167
1266
|
}, z.core.$strip>, z.ZodObject<{
|
|
1168
1267
|
title: z.ZodString;
|
|
1169
1268
|
description: z.ZodOptional<z.ZodString>;
|
|
1170
1269
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1270
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1171
1271
|
type: z.ZodLiteral<"nested_selection">;
|
|
1172
1272
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1173
1273
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1174
1274
|
title: z.ZodString;
|
|
1175
1275
|
description: z.ZodOptional<z.ZodString>;
|
|
1176
1276
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1277
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1177
1278
|
type: z.ZodLiteral<"annotation">;
|
|
1178
1279
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
1179
1280
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
@@ -1181,24 +1282,25 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1181
1282
|
title: z.ZodString;
|
|
1182
1283
|
description: z.ZodOptional<z.ZodString>;
|
|
1183
1284
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1184
1286
|
type: z.ZodLiteral<"welcome">;
|
|
1185
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1186
1287
|
}, z.core.$strip>, z.ZodObject<{
|
|
1187
1288
|
title: z.ZodString;
|
|
1188
1289
|
description: z.ZodOptional<z.ZodString>;
|
|
1189
1290
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1291
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1190
1292
|
type: z.ZodLiteral<"thank_you">;
|
|
1191
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1192
1293
|
}, z.core.$strip>, z.ZodObject<{
|
|
1193
1294
|
title: z.ZodString;
|
|
1194
1295
|
description: z.ZodOptional<z.ZodString>;
|
|
1195
1296
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1196
1298
|
type: z.ZodLiteral<"message_panel">;
|
|
1197
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1198
1299
|
}, z.core.$strip>, z.ZodObject<{
|
|
1199
1300
|
title: z.ZodString;
|
|
1200
1301
|
description: z.ZodOptional<z.ZodString>;
|
|
1201
1302
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1303
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1202
1304
|
type: z.ZodLiteral<"yes_no">;
|
|
1203
1305
|
yesLabel: z.ZodOptional<z.ZodString>;
|
|
1204
1306
|
noLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1206,6 +1308,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1206
1308
|
title: z.ZodString;
|
|
1207
1309
|
description: z.ZodOptional<z.ZodString>;
|
|
1208
1310
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1311
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1312
|
+
type: z.ZodLiteral<"consent">;
|
|
1313
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1314
|
+
title: z.ZodString;
|
|
1315
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1209
1318
|
type: z.ZodLiteral<"rating_matrix">;
|
|
1210
1319
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
1211
1320
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1213,11 +1322,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1213
1322
|
title: z.ZodString;
|
|
1214
1323
|
description: z.ZodOptional<z.ZodString>;
|
|
1215
1324
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1216
1326
|
type: z.ZodLiteral<"matrix_single_choice">;
|
|
1217
1327
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1218
1328
|
title: z.ZodString;
|
|
1219
1329
|
description: z.ZodOptional<z.ZodString>;
|
|
1220
1330
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1331
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1221
1332
|
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
1222
1333
|
}, z.core.$catchall<z.ZodString>>]>>>;
|
|
1223
1334
|
}, z.core.$strip>;
|
|
@@ -1295,13 +1406,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1295
1406
|
otherConfigurationProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1296
1407
|
isEnabled: z.ZodLiteral<false>;
|
|
1297
1408
|
otherFields: z.ZodObject<{
|
|
1298
|
-
pagination: z.ZodBoolean;
|
|
1299
1409
|
questionNumber: z.ZodBoolean;
|
|
1300
|
-
pageTitle: z.ZodBoolean;
|
|
1301
|
-
blockerFeedback: z.ZodBoolean;
|
|
1302
1410
|
submitButtonLabel: z.ZodString;
|
|
1303
1411
|
previousButtonLabel: z.ZodString;
|
|
1304
|
-
nextButtonLabel: z.ZodString;
|
|
1305
1412
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1306
1413
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1307
1414
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1309,7 +1416,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1309
1416
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1310
1417
|
submitButtonLabel: z.ZodString;
|
|
1311
1418
|
previousButtonLabel: z.ZodString;
|
|
1312
|
-
nextButtonLabel: z.ZodString;
|
|
1313
1419
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1314
1420
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1315
1421
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1317,13 +1423,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1317
1423
|
}, z.core.$strip>, z.ZodObject<{
|
|
1318
1424
|
isEnabled: z.ZodLiteral<true>;
|
|
1319
1425
|
otherFields: z.ZodObject<{
|
|
1320
|
-
pagination: z.ZodBoolean;
|
|
1321
1426
|
questionNumber: z.ZodBoolean;
|
|
1322
|
-
pageTitle: z.ZodBoolean;
|
|
1323
|
-
blockerFeedback: z.ZodBoolean;
|
|
1324
1427
|
submitButtonLabel: z.ZodString;
|
|
1325
1428
|
previousButtonLabel: z.ZodString;
|
|
1326
|
-
nextButtonLabel: z.ZodString;
|
|
1327
1429
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1328
1430
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1329
1431
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1331,7 +1433,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1331
1433
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1332
1434
|
submitButtonLabel: z.ZodString;
|
|
1333
1435
|
previousButtonLabel: z.ZodString;
|
|
1334
|
-
nextButtonLabel: z.ZodString;
|
|
1335
1436
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1336
1437
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1337
1438
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1348,23 +1449,24 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1348
1449
|
}, z.core.$strip>;
|
|
1349
1450
|
}, z.core.$strip>;
|
|
1350
1451
|
featureSettings: z.ZodObject<{
|
|
1351
|
-
darkOverlay: z.ZodBoolean
|
|
1352
|
-
closeButton: z.ZodBoolean
|
|
1353
|
-
progressBar: z.ZodBoolean
|
|
1354
|
-
showBranding: z.ZodBoolean
|
|
1452
|
+
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
1453
|
+
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
1454
|
+
progressBar: z.ZodDefault<z.ZodBoolean>;
|
|
1455
|
+
showBranding: z.ZodDefault<z.ZodBoolean>;
|
|
1355
1456
|
customPosition: z.ZodBoolean;
|
|
1356
1457
|
customCss: z.ZodOptional<z.ZodString>;
|
|
1357
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
1458
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1358
1459
|
light: "light";
|
|
1359
1460
|
dark: "dark";
|
|
1360
1461
|
system: "system";
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
|
|
1462
|
+
}>>>;
|
|
1463
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
1464
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
1465
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
1364
1466
|
never: "never";
|
|
1365
1467
|
always: "always";
|
|
1366
1468
|
auto: "auto";
|
|
1367
|
-
}
|
|
1469
|
+
}>>;
|
|
1368
1470
|
}, z.core.$strip>;
|
|
1369
1471
|
selectedPosition: z.ZodEnum<{
|
|
1370
1472
|
"top-left": "top-left";
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const OtherFieldsSchema: z.ZodObject<{
|
|
3
|
-
pagination: z.ZodBoolean;
|
|
4
3
|
questionNumber: z.ZodBoolean;
|
|
5
|
-
pageTitle: z.ZodBoolean;
|
|
6
|
-
blockerFeedback: z.ZodBoolean;
|
|
7
4
|
submitButtonLabel: z.ZodString;
|
|
8
5
|
previousButtonLabel: z.ZodString;
|
|
9
|
-
nextButtonLabel: z.ZodString;
|
|
10
6
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
11
7
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
12
8
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -22,7 +18,6 @@ export declare const LanguagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
22
18
|
export declare const OtherFieldsTranslationSchema: z.ZodObject<{
|
|
23
19
|
submitButtonLabel: z.ZodString;
|
|
24
20
|
previousButtonLabel: z.ZodString;
|
|
25
|
-
nextButtonLabel: z.ZodString;
|
|
26
21
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
27
22
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
28
23
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|