@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
|
@@ -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,13 +1202,15 @@ 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>;
|
|
1123
1215
|
questionIds: z.ZodArray<z.ZodString>;
|
|
1124
1216
|
}, z.core.$strip>>;
|
|
@@ -1130,6 +1222,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1130
1222
|
title: z.ZodString;
|
|
1131
1223
|
description: z.ZodOptional<z.ZodString>;
|
|
1132
1224
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1225
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1133
1226
|
type: z.ZodLiteral<"rating">;
|
|
1134
1227
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
1135
1228
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1137,18 +1230,21 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1137
1230
|
title: z.ZodString;
|
|
1138
1231
|
description: z.ZodOptional<z.ZodString>;
|
|
1139
1232
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1233
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1140
1234
|
type: z.ZodLiteral<"single_choice">;
|
|
1141
1235
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1142
1236
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1143
1237
|
title: z.ZodString;
|
|
1144
1238
|
description: z.ZodOptional<z.ZodString>;
|
|
1145
1239
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1240
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1146
1241
|
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
1147
1242
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1148
1243
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1149
1244
|
title: z.ZodString;
|
|
1150
1245
|
description: z.ZodOptional<z.ZodString>;
|
|
1151
1246
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1247
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1152
1248
|
type: z.ZodLiteral<"nps">;
|
|
1153
1249
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
1154
1250
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1156,24 +1252,28 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1156
1252
|
title: z.ZodString;
|
|
1157
1253
|
description: z.ZodOptional<z.ZodString>;
|
|
1158
1254
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1255
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1159
1256
|
type: z.ZodLiteral<"short_answer">;
|
|
1160
1257
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1161
1258
|
}, z.core.$strip>, z.ZodObject<{
|
|
1162
1259
|
title: z.ZodString;
|
|
1163
1260
|
description: z.ZodOptional<z.ZodString>;
|
|
1164
1261
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1262
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1165
1263
|
type: z.ZodLiteral<"long_text">;
|
|
1166
1264
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1167
1265
|
}, z.core.$strip>, z.ZodObject<{
|
|
1168
1266
|
title: z.ZodString;
|
|
1169
1267
|
description: z.ZodOptional<z.ZodString>;
|
|
1170
1268
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1171
1270
|
type: z.ZodLiteral<"nested_selection">;
|
|
1172
1271
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1173
1272
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1174
1273
|
title: z.ZodString;
|
|
1175
1274
|
description: z.ZodOptional<z.ZodString>;
|
|
1176
1275
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1276
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1177
1277
|
type: z.ZodLiteral<"annotation">;
|
|
1178
1278
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
1179
1279
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
@@ -1181,24 +1281,25 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1181
1281
|
title: z.ZodString;
|
|
1182
1282
|
description: z.ZodOptional<z.ZodString>;
|
|
1183
1283
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1284
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1184
1285
|
type: z.ZodLiteral<"welcome">;
|
|
1185
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1186
1286
|
}, z.core.$strip>, z.ZodObject<{
|
|
1187
1287
|
title: z.ZodString;
|
|
1188
1288
|
description: z.ZodOptional<z.ZodString>;
|
|
1189
1289
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1190
1291
|
type: z.ZodLiteral<"thank_you">;
|
|
1191
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1192
1292
|
}, z.core.$strip>, z.ZodObject<{
|
|
1193
1293
|
title: z.ZodString;
|
|
1194
1294
|
description: z.ZodOptional<z.ZodString>;
|
|
1195
1295
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1296
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1196
1297
|
type: z.ZodLiteral<"message_panel">;
|
|
1197
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1198
1298
|
}, z.core.$strip>, z.ZodObject<{
|
|
1199
1299
|
title: z.ZodString;
|
|
1200
1300
|
description: z.ZodOptional<z.ZodString>;
|
|
1201
1301
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1302
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1202
1303
|
type: z.ZodLiteral<"yes_no">;
|
|
1203
1304
|
yesLabel: z.ZodOptional<z.ZodString>;
|
|
1204
1305
|
noLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1206,6 +1307,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1206
1307
|
title: z.ZodString;
|
|
1207
1308
|
description: z.ZodOptional<z.ZodString>;
|
|
1208
1309
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1310
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1311
|
+
type: z.ZodLiteral<"consent">;
|
|
1312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1313
|
+
title: z.ZodString;
|
|
1314
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1315
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1209
1317
|
type: z.ZodLiteral<"rating_matrix">;
|
|
1210
1318
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
1211
1319
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1213,11 +1321,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1213
1321
|
title: z.ZodString;
|
|
1214
1322
|
description: z.ZodOptional<z.ZodString>;
|
|
1215
1323
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1324
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1216
1325
|
type: z.ZodLiteral<"matrix_single_choice">;
|
|
1217
1326
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1218
1327
|
title: z.ZodString;
|
|
1219
1328
|
description: z.ZodOptional<z.ZodString>;
|
|
1220
1329
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1330
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1221
1331
|
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
1222
1332
|
}, z.core.$catchall<z.ZodString>>]>>>;
|
|
1223
1333
|
}, z.core.$strip>;
|
|
@@ -1295,13 +1405,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1295
1405
|
otherConfigurationProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1296
1406
|
isEnabled: z.ZodLiteral<false>;
|
|
1297
1407
|
otherFields: z.ZodObject<{
|
|
1298
|
-
pagination: z.ZodBoolean;
|
|
1299
1408
|
questionNumber: z.ZodBoolean;
|
|
1300
|
-
pageTitle: z.ZodBoolean;
|
|
1301
|
-
blockerFeedback: z.ZodBoolean;
|
|
1302
1409
|
submitButtonLabel: z.ZodString;
|
|
1303
1410
|
previousButtonLabel: z.ZodString;
|
|
1304
|
-
nextButtonLabel: z.ZodString;
|
|
1305
1411
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1306
1412
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1307
1413
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1309,7 +1415,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1309
1415
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1310
1416
|
submitButtonLabel: z.ZodString;
|
|
1311
1417
|
previousButtonLabel: z.ZodString;
|
|
1312
|
-
nextButtonLabel: z.ZodString;
|
|
1313
1418
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1314
1419
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1315
1420
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1317,13 +1422,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1317
1422
|
}, z.core.$strip>, z.ZodObject<{
|
|
1318
1423
|
isEnabled: z.ZodLiteral<true>;
|
|
1319
1424
|
otherFields: z.ZodObject<{
|
|
1320
|
-
pagination: z.ZodBoolean;
|
|
1321
1425
|
questionNumber: z.ZodBoolean;
|
|
1322
|
-
pageTitle: z.ZodBoolean;
|
|
1323
|
-
blockerFeedback: z.ZodBoolean;
|
|
1324
1426
|
submitButtonLabel: z.ZodString;
|
|
1325
1427
|
previousButtonLabel: z.ZodString;
|
|
1326
|
-
nextButtonLabel: z.ZodString;
|
|
1327
1428
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1328
1429
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1329
1430
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1331,7 +1432,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1331
1432
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1332
1433
|
submitButtonLabel: z.ZodString;
|
|
1333
1434
|
previousButtonLabel: z.ZodString;
|
|
1334
|
-
nextButtonLabel: z.ZodString;
|
|
1335
1435
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1336
1436
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1337
1437
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1348,23 +1448,24 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1348
1448
|
}, z.core.$strip>;
|
|
1349
1449
|
}, z.core.$strip>;
|
|
1350
1450
|
featureSettings: z.ZodObject<{
|
|
1351
|
-
darkOverlay: z.ZodBoolean
|
|
1352
|
-
closeButton: z.ZodBoolean
|
|
1353
|
-
progressBar: z.ZodBoolean
|
|
1354
|
-
showBranding: z.ZodBoolean
|
|
1451
|
+
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
1452
|
+
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
1453
|
+
progressBar: z.ZodDefault<z.ZodBoolean>;
|
|
1454
|
+
showBranding: z.ZodDefault<z.ZodBoolean>;
|
|
1355
1455
|
customPosition: z.ZodBoolean;
|
|
1356
1456
|
customCss: z.ZodOptional<z.ZodString>;
|
|
1357
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
1457
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1358
1458
|
light: "light";
|
|
1359
1459
|
dark: "dark";
|
|
1360
1460
|
system: "system";
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
|
|
1461
|
+
}>>>;
|
|
1462
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
1463
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
1464
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
1364
1465
|
never: "never";
|
|
1365
1466
|
always: "always";
|
|
1366
1467
|
auto: "auto";
|
|
1367
|
-
}
|
|
1468
|
+
}>>;
|
|
1368
1469
|
}, z.core.$strip>;
|
|
1369
1470
|
selectedPosition: z.ZodEnum<{
|
|
1370
1471
|
"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;
|