@encatch/schema 1.1.0-beta.5 → 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 +57 -31
- 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 -25
- 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 -25
- package/dist/types/schemas/fields/field-schema.d.ts +145 -7
- package/dist/types/schemas/fields/form-properties-schema.d.ts +89 -44
- 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 +0 -15
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
questions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
28
|
id: z.ZodString;
|
|
29
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
29
30
|
title: z.ZodString;
|
|
30
31
|
description: z.ZodOptional<z.ZodString>;
|
|
31
32
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -96,6 +97,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
96
97
|
color: z.ZodOptional<z.ZodString>;
|
|
97
98
|
}, z.core.$strip>, z.ZodObject<{
|
|
98
99
|
id: z.ZodString;
|
|
100
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
99
101
|
title: z.ZodString;
|
|
100
102
|
description: z.ZodOptional<z.ZodString>;
|
|
101
103
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -150,6 +152,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
150
152
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
151
153
|
}, z.core.$strip>, z.ZodObject<{
|
|
152
154
|
id: z.ZodString;
|
|
155
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
153
156
|
describe: z.ZodOptional<z.ZodString>;
|
|
154
157
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
155
158
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -200,10 +203,10 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
200
203
|
type: z.ZodLiteral<"welcome">;
|
|
201
204
|
title: z.ZodString;
|
|
202
205
|
description: z.ZodOptional<z.ZodString>;
|
|
203
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
204
206
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
205
207
|
}, z.core.$strip>, z.ZodObject<{
|
|
206
208
|
id: z.ZodString;
|
|
209
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
207
210
|
describe: z.ZodOptional<z.ZodString>;
|
|
208
211
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
209
212
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -254,10 +257,10 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
254
257
|
type: z.ZodLiteral<"thank_you">;
|
|
255
258
|
title: z.ZodString;
|
|
256
259
|
description: z.ZodOptional<z.ZodString>;
|
|
257
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
258
260
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
259
261
|
}, z.core.$strip>, z.ZodObject<{
|
|
260
262
|
id: z.ZodString;
|
|
263
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
261
264
|
describe: z.ZodOptional<z.ZodString>;
|
|
262
265
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
263
266
|
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -308,10 +311,10 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
308
311
|
type: z.ZodLiteral<"message_panel">;
|
|
309
312
|
title: z.ZodString;
|
|
310
313
|
description: z.ZodOptional<z.ZodString>;
|
|
311
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
312
314
|
imageUrl: z.ZodOptional<z.ZodString>;
|
|
313
315
|
}, z.core.$strip>, z.ZodObject<{
|
|
314
316
|
id: z.ZodString;
|
|
317
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
315
318
|
title: z.ZodString;
|
|
316
319
|
description: z.ZodOptional<z.ZodString>;
|
|
317
320
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -364,6 +367,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
364
367
|
type: z.ZodLiteral<"exit_form">;
|
|
365
368
|
}, z.core.$strip>, z.ZodObject<{
|
|
366
369
|
id: z.ZodString;
|
|
370
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
367
371
|
title: z.ZodString;
|
|
368
372
|
description: z.ZodOptional<z.ZodString>;
|
|
369
373
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -422,6 +426,60 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
422
426
|
}>>;
|
|
423
427
|
}, z.core.$strip>, z.ZodObject<{
|
|
424
428
|
id: z.ZodString;
|
|
429
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
430
|
+
title: z.ZodString;
|
|
431
|
+
description: z.ZodOptional<z.ZodString>;
|
|
432
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
433
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
434
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
435
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
436
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
437
|
+
type: z.ZodEnum<{
|
|
438
|
+
custom: "custom";
|
|
439
|
+
pattern: "pattern";
|
|
440
|
+
required: "required";
|
|
441
|
+
min: "min";
|
|
442
|
+
max: "max";
|
|
443
|
+
minLength: "minLength";
|
|
444
|
+
maxLength: "maxLength";
|
|
445
|
+
email: "email";
|
|
446
|
+
url: "url";
|
|
447
|
+
}>;
|
|
448
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
449
|
+
message: z.ZodOptional<z.ZodString>;
|
|
450
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
451
|
+
}, z.core.$strip>>>>;
|
|
452
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
453
|
+
field: z.ZodString;
|
|
454
|
+
operator: z.ZodEnum<{
|
|
455
|
+
equals: "equals";
|
|
456
|
+
not_equals: "not_equals";
|
|
457
|
+
contains: "contains";
|
|
458
|
+
not_contains: "not_contains";
|
|
459
|
+
greater_than: "greater_than";
|
|
460
|
+
less_than: "less_than";
|
|
461
|
+
is_empty: "is_empty";
|
|
462
|
+
is_not_empty: "is_not_empty";
|
|
463
|
+
}>;
|
|
464
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
465
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
466
|
+
}, z.core.$strip>>>>;
|
|
467
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
468
|
+
status: z.ZodEnum<{
|
|
469
|
+
D: "D";
|
|
470
|
+
P: "P";
|
|
471
|
+
A: "A";
|
|
472
|
+
S: "S";
|
|
473
|
+
}>;
|
|
474
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
left: "left";
|
|
476
|
+
center: "center";
|
|
477
|
+
}>>>;
|
|
478
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
479
|
+
type: z.ZodLiteral<"consent">;
|
|
480
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
481
|
+
id: z.ZodString;
|
|
482
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
425
483
|
title: z.ZodString;
|
|
426
484
|
description: z.ZodOptional<z.ZodString>;
|
|
427
485
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -513,6 +571,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
513
571
|
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
514
572
|
}, z.core.$strip>, z.ZodObject<{
|
|
515
573
|
id: z.ZodString;
|
|
574
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
516
575
|
title: z.ZodString;
|
|
517
576
|
description: z.ZodOptional<z.ZodString>;
|
|
518
577
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -579,6 +638,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
579
638
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
580
639
|
}, z.core.$strip>, z.ZodObject<{
|
|
581
640
|
id: z.ZodString;
|
|
641
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
582
642
|
title: z.ZodString;
|
|
583
643
|
description: z.ZodOptional<z.ZodString>;
|
|
584
644
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -647,6 +707,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
647
707
|
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
648
708
|
}, z.core.$strip>, z.ZodObject<{
|
|
649
709
|
id: z.ZodString;
|
|
710
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
650
711
|
title: z.ZodString;
|
|
651
712
|
description: z.ZodOptional<z.ZodString>;
|
|
652
713
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -719,6 +780,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
719
780
|
}, z.core.$strip>>;
|
|
720
781
|
}, z.core.$strip>, z.ZodObject<{
|
|
721
782
|
id: z.ZodString;
|
|
783
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
722
784
|
title: z.ZodString;
|
|
723
785
|
description: z.ZodOptional<z.ZodString>;
|
|
724
786
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -792,6 +854,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
792
854
|
}, z.core.$strip>>;
|
|
793
855
|
}, z.core.$strip>, z.ZodObject<{
|
|
794
856
|
id: z.ZodString;
|
|
857
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
795
858
|
title: z.ZodString;
|
|
796
859
|
description: z.ZodOptional<z.ZodString>;
|
|
797
860
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -850,6 +913,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
850
913
|
prepopulatedValue: z.ZodOptional<z.ZodNumber>;
|
|
851
914
|
}, z.core.$strip>, z.ZodObject<{
|
|
852
915
|
id: z.ZodString;
|
|
916
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
853
917
|
title: z.ZodString;
|
|
854
918
|
description: z.ZodOptional<z.ZodString>;
|
|
855
919
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -911,6 +975,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
911
975
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
912
976
|
}, z.core.$strip>, z.ZodObject<{
|
|
913
977
|
id: z.ZodString;
|
|
978
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
914
979
|
title: z.ZodString;
|
|
915
980
|
description: z.ZodOptional<z.ZodString>;
|
|
916
981
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -971,6 +1036,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
971
1036
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
972
1037
|
}, z.core.$strip>, z.ZodObject<{
|
|
973
1038
|
id: z.ZodString;
|
|
1039
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
974
1040
|
title: z.ZodString;
|
|
975
1041
|
description: z.ZodOptional<z.ZodString>;
|
|
976
1042
|
describe: z.ZodOptional<z.ZodString>;
|
|
@@ -1045,13 +1111,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1045
1111
|
otherConfigurationProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1046
1112
|
isEnabled: z.ZodLiteral<false>;
|
|
1047
1113
|
otherFields: z.ZodObject<{
|
|
1048
|
-
pagination: z.ZodBoolean;
|
|
1049
1114
|
questionNumber: z.ZodBoolean;
|
|
1050
|
-
pageTitle: z.ZodBoolean;
|
|
1051
|
-
blockerFeedback: z.ZodBoolean;
|
|
1052
1115
|
submitButtonLabel: z.ZodString;
|
|
1053
1116
|
previousButtonLabel: z.ZodString;
|
|
1054
|
-
nextButtonLabel: z.ZodString;
|
|
1055
1117
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1056
1118
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1057
1119
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1059,7 +1121,6 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1059
1121
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1060
1122
|
submitButtonLabel: z.ZodString;
|
|
1061
1123
|
previousButtonLabel: z.ZodString;
|
|
1062
|
-
nextButtonLabel: z.ZodString;
|
|
1063
1124
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1064
1125
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1065
1126
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1067,13 +1128,9 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1067
1128
|
}, z.core.$strip>, z.ZodObject<{
|
|
1068
1129
|
isEnabled: z.ZodLiteral<true>;
|
|
1069
1130
|
otherFields: z.ZodObject<{
|
|
1070
|
-
pagination: z.ZodBoolean;
|
|
1071
1131
|
questionNumber: z.ZodBoolean;
|
|
1072
|
-
pageTitle: z.ZodBoolean;
|
|
1073
|
-
blockerFeedback: z.ZodBoolean;
|
|
1074
1132
|
submitButtonLabel: z.ZodString;
|
|
1075
1133
|
previousButtonLabel: z.ZodString;
|
|
1076
|
-
nextButtonLabel: z.ZodString;
|
|
1077
1134
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1078
1135
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1079
1136
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1081,7 +1138,6 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1081
1138
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1082
1139
|
submitButtonLabel: z.ZodString;
|
|
1083
1140
|
previousButtonLabel: z.ZodString;
|
|
1084
|
-
nextButtonLabel: z.ZodString;
|
|
1085
1141
|
aiEnhancementSuccessMessage: z.ZodString;
|
|
1086
1142
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1087
1143
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
@@ -1152,21 +1208,18 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1152
1208
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1153
1209
|
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1154
1210
|
type: z.ZodLiteral<"welcome">;
|
|
1155
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1156
1211
|
}, z.core.$strip>, z.ZodObject<{
|
|
1157
1212
|
title: z.ZodString;
|
|
1158
1213
|
description: z.ZodOptional<z.ZodString>;
|
|
1159
1214
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1160
1215
|
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1161
1216
|
type: z.ZodLiteral<"thank_you">;
|
|
1162
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1163
1217
|
}, z.core.$strip>, z.ZodObject<{
|
|
1164
1218
|
title: z.ZodString;
|
|
1165
1219
|
description: z.ZodOptional<z.ZodString>;
|
|
1166
1220
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1167
1221
|
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1168
1222
|
type: z.ZodLiteral<"message_panel">;
|
|
1169
|
-
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1170
1223
|
}, z.core.$strip>, z.ZodObject<{
|
|
1171
1224
|
title: z.ZodString;
|
|
1172
1225
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1223,23 +1276,24 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1223
1276
|
}, z.core.$strip>;
|
|
1224
1277
|
}, z.core.$strip>;
|
|
1225
1278
|
featureSettings: z.ZodObject<{
|
|
1226
|
-
darkOverlay: z.ZodBoolean
|
|
1227
|
-
closeButton: z.ZodBoolean
|
|
1228
|
-
progressBar: z.ZodBoolean
|
|
1229
|
-
showBranding: z.ZodBoolean
|
|
1279
|
+
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
1280
|
+
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
1281
|
+
progressBar: z.ZodDefault<z.ZodBoolean>;
|
|
1282
|
+
showBranding: z.ZodDefault<z.ZodBoolean>;
|
|
1230
1283
|
customPosition: z.ZodBoolean;
|
|
1231
1284
|
customCss: z.ZodOptional<z.ZodString>;
|
|
1232
|
-
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
1285
|
+
shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1233
1286
|
light: "light";
|
|
1234
1287
|
dark: "dark";
|
|
1235
1288
|
system: "system";
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
|
|
1289
|
+
}>>>;
|
|
1290
|
+
enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
|
|
1291
|
+
rtl: z.ZodDefault<z.ZodBoolean>;
|
|
1292
|
+
previousButton: z.ZodDefault<z.ZodEnum<{
|
|
1239
1293
|
never: "never";
|
|
1240
1294
|
always: "always";
|
|
1241
1295
|
auto: "auto";
|
|
1242
|
-
}
|
|
1296
|
+
}>>;
|
|
1243
1297
|
}, z.core.$strip>;
|
|
1244
1298
|
selectedPosition: z.ZodEnum<{
|
|
1245
1299
|
"top-left": "top-left";
|