@encatch/schema 1.1.0-beta.6 → 1.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +52 -11
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +172 -9
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +6 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +2 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +79 -9
- package/dist/types/schemas/fields/field-schema.d.ts +145 -1
- package/dist/types/schemas/fields/form-properties-schema.d.ts +89 -18
- package/dist/types/schemas/fields/theme-schema.d.ts +20 -18
- package/package.json +1 -1
|
@@ -46,23 +46,24 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
48
|
featureSettings: z.ZodObject<{
|
|
49
|
-
darkOverlay: z.ZodBoolean
|
|
50
|
-
closeButton: z.ZodBoolean
|
|
51
|
-
progressBar: z.ZodBoolean
|
|
52
|
-
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>;
|
|
53
53
|
customPosition: z.ZodBoolean;
|
|
54
54
|
customCss: z.ZodOptional<z.ZodString>;
|
|
55
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
56
56
|
light: "light";
|
|
57
57
|
dark: "dark";
|
|
58
58
|
system: "system";
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
}>>>;
|
|
60
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
62
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
62
63
|
never: "never";
|
|
63
64
|
always: "always";
|
|
64
65
|
auto: "auto";
|
|
65
|
-
}
|
|
66
|
+
}>>;
|
|
66
67
|
}, z.core.$strip>;
|
|
67
68
|
selectedPosition: z.ZodEnum<{
|
|
68
69
|
"top-left": "top-left";
|
|
@@ -103,6 +104,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
103
104
|
questionnaireFields: z.ZodObject<{
|
|
104
105
|
questions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
105
106
|
id: z.ZodString;
|
|
107
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
106
108
|
title: z.ZodString;
|
|
107
109
|
description: z.ZodOptional<z.ZodString>;
|
|
108
110
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -173,6 +175,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
173
175
|
color: z.ZodOptional<z.ZodString>;
|
|
174
176
|
}, z.core.$strip>, z.ZodObject<{
|
|
175
177
|
id: z.ZodString;
|
|
178
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
176
179
|
title: z.ZodString;
|
|
177
180
|
description: z.ZodOptional<z.ZodString>;
|
|
178
181
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -227,6 +230,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
227
230
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
228
231
|
}, z.core.$strip>, z.ZodObject<{
|
|
229
232
|
id: z.ZodString;
|
|
233
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
230
234
|
describe: z.ZodOptional<z.ZodString>;
|
|
231
235
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
232
236
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -280,6 +284,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
280
284
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
281
285
|
}, z.core.$strip>, z.ZodObject<{
|
|
282
286
|
id: z.ZodString;
|
|
287
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
283
288
|
describe: z.ZodOptional<z.ZodString>;
|
|
284
289
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
285
290
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -333,6 +338,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
333
338
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
334
339
|
}, z.core.$strip>, z.ZodObject<{
|
|
335
340
|
id: z.ZodString;
|
|
341
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
336
342
|
describe: z.ZodOptional<z.ZodString>;
|
|
337
343
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
338
344
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -386,6 +392,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
386
392
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
387
393
|
}, z.core.$strip>, z.ZodObject<{
|
|
388
394
|
id: z.ZodString;
|
|
395
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
389
396
|
title: z.ZodString;
|
|
390
397
|
description: z.ZodOptional<z.ZodString>;
|
|
391
398
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -438,6 +445,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
438
445
|
type: z.ZodLiteral<"exit_form">;
|
|
439
446
|
}, z.core.$strip>, z.ZodObject<{
|
|
440
447
|
id: z.ZodString;
|
|
448
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
441
449
|
title: z.ZodString;
|
|
442
450
|
description: z.ZodOptional<z.ZodString>;
|
|
443
451
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -496,6 +504,60 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
496
504
|
}>>;
|
|
497
505
|
}, z.core.$strip>, z.ZodObject<{
|
|
498
506
|
id: z.ZodString;
|
|
507
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
508
|
+
title: z.ZodString;
|
|
509
|
+
description: z.ZodOptional<z.ZodString>;
|
|
510
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
511
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
512
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
513
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
514
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
515
|
+
type: z.ZodEnum<{
|
|
516
|
+
custom: "custom";
|
|
517
|
+
pattern: "pattern";
|
|
518
|
+
required: "required";
|
|
519
|
+
min: "min";
|
|
520
|
+
max: "max";
|
|
521
|
+
minLength: "minLength";
|
|
522
|
+
maxLength: "maxLength";
|
|
523
|
+
email: "email";
|
|
524
|
+
url: "url";
|
|
525
|
+
}>;
|
|
526
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
527
|
+
message: z.ZodOptional<z.ZodString>;
|
|
528
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
529
|
+
}, z.core.$strip>>>>;
|
|
530
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
531
|
+
field: z.ZodString;
|
|
532
|
+
operator: z.ZodEnum<{
|
|
533
|
+
equals: "equals";
|
|
534
|
+
not_equals: "not_equals";
|
|
535
|
+
contains: "contains";
|
|
536
|
+
not_contains: "not_contains";
|
|
537
|
+
greater_than: "greater_than";
|
|
538
|
+
less_than: "less_than";
|
|
539
|
+
is_empty: "is_empty";
|
|
540
|
+
is_not_empty: "is_not_empty";
|
|
541
|
+
}>;
|
|
542
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
543
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
544
|
+
}, z.core.$strip>>>>;
|
|
545
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
546
|
+
status: z.ZodEnum<{
|
|
547
|
+
D: "D";
|
|
548
|
+
P: "P";
|
|
549
|
+
A: "A";
|
|
550
|
+
S: "S";
|
|
551
|
+
}>;
|
|
552
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
553
|
+
left: "left";
|
|
554
|
+
center: "center";
|
|
555
|
+
}>>>;
|
|
556
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
557
|
+
type: z.ZodLiteral<"consent">;
|
|
558
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
559
|
+
id: z.ZodString;
|
|
560
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
499
561
|
title: z.ZodString;
|
|
500
562
|
description: z.ZodOptional<z.ZodString>;
|
|
501
563
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -587,6 +649,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
587
649
|
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
588
650
|
}, z.core.$strip>, z.ZodObject<{
|
|
589
651
|
id: z.ZodString;
|
|
652
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
590
653
|
title: z.ZodString;
|
|
591
654
|
description: z.ZodOptional<z.ZodString>;
|
|
592
655
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -653,6 +716,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
653
716
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
654
717
|
}, z.core.$strip>, z.ZodObject<{
|
|
655
718
|
id: z.ZodString;
|
|
719
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
656
720
|
title: z.ZodString;
|
|
657
721
|
description: z.ZodOptional<z.ZodString>;
|
|
658
722
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -721,6 +785,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
721
785
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
722
786
|
}, z.core.$strip>, z.ZodObject<{
|
|
723
787
|
id: z.ZodString;
|
|
788
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
724
789
|
title: z.ZodString;
|
|
725
790
|
description: z.ZodOptional<z.ZodString>;
|
|
726
791
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -793,6 +858,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
793
858
|
}, z.core.$strip>>;
|
|
794
859
|
}, z.core.$strip>, z.ZodObject<{
|
|
795
860
|
id: z.ZodString;
|
|
861
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
796
862
|
title: z.ZodString;
|
|
797
863
|
description: z.ZodOptional<z.ZodString>;
|
|
798
864
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -866,6 +932,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
866
932
|
}, z.core.$strip>>;
|
|
867
933
|
}, z.core.$strip>, z.ZodObject<{
|
|
868
934
|
id: z.ZodString;
|
|
935
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
869
936
|
title: z.ZodString;
|
|
870
937
|
description: z.ZodOptional<z.ZodString>;
|
|
871
938
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -924,6 +991,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
924
991
|
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
925
992
|
}, z.core.$strip>, z.ZodObject<{
|
|
926
993
|
id: z.ZodString;
|
|
994
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
927
995
|
title: z.ZodString;
|
|
928
996
|
description: z.ZodOptional<z.ZodString>;
|
|
929
997
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -985,6 +1053,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
985
1053
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
986
1054
|
}, z.core.$strip>, z.ZodObject<{
|
|
987
1055
|
id: z.ZodString;
|
|
1056
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
988
1057
|
title: z.ZodString;
|
|
989
1058
|
description: z.ZodOptional<z.ZodString>;
|
|
990
1059
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1045,6 +1114,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1045
1114
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
1046
1115
|
}, z.core.$strip>, z.ZodObject<{
|
|
1047
1116
|
id: z.ZodString;
|
|
1117
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1048
1118
|
title: z.ZodString;
|
|
1049
1119
|
description: z.ZodOptional<z.ZodString>;
|
|
1050
1120
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1355,23 +1425,24 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1355
1425
|
}, z.core.$strip>;
|
|
1356
1426
|
}, z.core.$strip>;
|
|
1357
1427
|
featureSettings: z.ZodObject<{
|
|
1358
|
-
darkOverlay: z.ZodBoolean
|
|
1359
|
-
closeButton: z.ZodBoolean
|
|
1360
|
-
progressBar: z.ZodBoolean
|
|
1361
|
-
showBranding: z.ZodBoolean
|
|
1428
|
+
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
1429
|
+
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
1430
|
+
progressBar: z.ZodDefault<z.ZodBoolean>;
|
|
1431
|
+
showBranding: z.ZodDefault<z.ZodBoolean>;
|
|
1362
1432
|
customPosition: z.ZodBoolean;
|
|
1363
1433
|
customCss: z.ZodOptional<z.ZodString>;
|
|
1364
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
1434
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1365
1435
|
light: "light";
|
|
1366
1436
|
dark: "dark";
|
|
1367
1437
|
system: "system";
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
|
|
1438
|
+
}>>>;
|
|
1439
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
1440
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
1441
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
1371
1442
|
never: "never";
|
|
1372
1443
|
always: "always";
|
|
1373
1444
|
auto: "auto";
|
|
1374
|
-
}
|
|
1445
|
+
}>>;
|
|
1375
1446
|
}, z.core.$strip>;
|
|
1376
1447
|
selectedPosition: z.ZodEnum<{
|
|
1377
1448
|
"top-left": "top-left";
|
|
@@ -50,23 +50,24 @@ export declare const PreviousButtonModes: {
|
|
|
50
50
|
readonly AUTO: "auto";
|
|
51
51
|
};
|
|
52
52
|
export declare const featureSettingsSchema: z.ZodObject<{
|
|
53
|
-
darkOverlay: z.ZodBoolean
|
|
54
|
-
closeButton: z.ZodBoolean
|
|
55
|
-
progressBar: z.ZodBoolean
|
|
56
|
-
showBranding: z.ZodBoolean
|
|
53
|
+
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
54
|
+
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
+
progressBar: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
showBranding: z.ZodDefault<z.ZodBoolean>;
|
|
57
57
|
customPosition: z.ZodBoolean;
|
|
58
58
|
customCss: z.ZodOptional<z.ZodString>;
|
|
59
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
60
60
|
light: "light";
|
|
61
61
|
dark: "dark";
|
|
62
62
|
system: "system";
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
}>>>;
|
|
64
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
66
67
|
never: "never";
|
|
67
68
|
always: "always";
|
|
68
69
|
auto: "auto";
|
|
69
|
-
}
|
|
70
|
+
}>>;
|
|
70
71
|
}, z.core.$strip>;
|
|
71
72
|
export declare const themeColorsSchema: z.ZodObject<{
|
|
72
73
|
theme: z.ZodOptional<z.ZodString>;
|
|
@@ -89,23 +90,24 @@ export declare const themeConfigurationSchema: z.ZodObject<{
|
|
|
89
90
|
}, z.core.$strip>;
|
|
90
91
|
}, z.core.$strip>;
|
|
91
92
|
featureSettings: z.ZodObject<{
|
|
92
|
-
darkOverlay: z.ZodBoolean
|
|
93
|
-
closeButton: z.ZodBoolean
|
|
94
|
-
progressBar: z.ZodBoolean
|
|
95
|
-
showBranding: z.ZodBoolean
|
|
93
|
+
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
94
|
+
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
+
progressBar: z.ZodDefault<z.ZodBoolean>;
|
|
96
|
+
showBranding: z.ZodDefault<z.ZodBoolean>;
|
|
96
97
|
customPosition: z.ZodBoolean;
|
|
97
98
|
customCss: z.ZodOptional<z.ZodString>;
|
|
98
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
99
100
|
light: "light";
|
|
100
101
|
dark: "dark";
|
|
101
102
|
system: "system";
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
}>>>;
|
|
104
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
106
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
105
107
|
never: "never";
|
|
106
108
|
always: "always";
|
|
107
109
|
auto: "auto";
|
|
108
|
-
}
|
|
110
|
+
}>>;
|
|
109
111
|
}, z.core.$strip>;
|
|
110
112
|
selectedPosition: z.ZodEnum<{
|
|
111
113
|
"top-left": "top-left";
|
package/package.json
CHANGED