@encatch/schema 1.0.1-beta.2 → 1.0.1-beta.3
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 +503 -584
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +80 -112
- package/dist/types/schemas/fields/app-props-schema.d.ts +40 -34
- package/dist/types/schemas/fields/field-schema.d.ts +82 -74
- package/dist/types/schemas/fields/form-properties-schema.d.ts +40 -58
- package/dist/types/schemas/fields/form-schema.d.ts +0 -58
- package/dist/types/schemas/fields/theme-schema.d.ts +0 -4
- package/package.json +1 -1
|
@@ -61,14 +61,12 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
|
61
61
|
progressBar: z.ZodBoolean;
|
|
62
62
|
showBranding: z.ZodBoolean;
|
|
63
63
|
customPosition: z.ZodBoolean;
|
|
64
|
-
customIconPosition: z.ZodBoolean;
|
|
65
64
|
customCss: z.ZodOptional<z.ZodString>;
|
|
66
65
|
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
67
66
|
light: "light";
|
|
68
67
|
dark: "dark";
|
|
69
68
|
system: "system";
|
|
70
69
|
}>>;
|
|
71
|
-
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
72
70
|
rtl: z.ZodBoolean;
|
|
73
71
|
previousButton: z.ZodEnum<{
|
|
74
72
|
never: "never";
|
|
@@ -123,15 +121,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
123
121
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
124
122
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
123
|
type: z.ZodEnum<{
|
|
124
|
+
custom: "custom";
|
|
125
|
+
pattern: "pattern";
|
|
126
126
|
required: "required";
|
|
127
127
|
min: "min";
|
|
128
128
|
max: "max";
|
|
129
129
|
minLength: "minLength";
|
|
130
130
|
maxLength: "maxLength";
|
|
131
|
-
pattern: "pattern";
|
|
132
131
|
email: "email";
|
|
133
132
|
url: "url";
|
|
134
|
-
custom: "custom";
|
|
135
133
|
}>;
|
|
136
134
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
137
135
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -192,15 +190,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
192
190
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
193
191
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
194
192
|
type: z.ZodEnum<{
|
|
193
|
+
custom: "custom";
|
|
194
|
+
pattern: "pattern";
|
|
195
195
|
required: "required";
|
|
196
196
|
min: "min";
|
|
197
197
|
max: "max";
|
|
198
198
|
minLength: "minLength";
|
|
199
199
|
maxLength: "maxLength";
|
|
200
|
-
pattern: "pattern";
|
|
201
200
|
email: "email";
|
|
202
201
|
url: "url";
|
|
203
|
-
custom: "custom";
|
|
204
202
|
}>;
|
|
205
203
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
206
204
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -243,15 +241,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
243
241
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
244
242
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
245
243
|
type: z.ZodEnum<{
|
|
244
|
+
custom: "custom";
|
|
245
|
+
pattern: "pattern";
|
|
246
246
|
required: "required";
|
|
247
247
|
min: "min";
|
|
248
248
|
max: "max";
|
|
249
249
|
minLength: "minLength";
|
|
250
250
|
maxLength: "maxLength";
|
|
251
|
-
pattern: "pattern";
|
|
252
251
|
email: "email";
|
|
253
252
|
url: "url";
|
|
254
|
-
custom: "custom";
|
|
255
253
|
}>;
|
|
256
254
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
257
255
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -296,15 +294,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
296
294
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
297
295
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
298
296
|
type: z.ZodEnum<{
|
|
297
|
+
custom: "custom";
|
|
298
|
+
pattern: "pattern";
|
|
299
299
|
required: "required";
|
|
300
300
|
min: "min";
|
|
301
301
|
max: "max";
|
|
302
302
|
minLength: "minLength";
|
|
303
303
|
maxLength: "maxLength";
|
|
304
|
-
pattern: "pattern";
|
|
305
304
|
email: "email";
|
|
306
305
|
url: "url";
|
|
307
|
-
custom: "custom";
|
|
308
306
|
}>;
|
|
309
307
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
310
308
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -349,15 +347,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
349
347
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
350
348
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
351
349
|
type: z.ZodEnum<{
|
|
350
|
+
custom: "custom";
|
|
351
|
+
pattern: "pattern";
|
|
352
352
|
required: "required";
|
|
353
353
|
min: "min";
|
|
354
354
|
max: "max";
|
|
355
355
|
minLength: "minLength";
|
|
356
356
|
maxLength: "maxLength";
|
|
357
|
-
pattern: "pattern";
|
|
358
357
|
email: "email";
|
|
359
358
|
url: "url";
|
|
360
|
-
custom: "custom";
|
|
361
359
|
}>;
|
|
362
360
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
363
361
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -404,15 +402,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
404
402
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
405
403
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
406
404
|
type: z.ZodEnum<{
|
|
405
|
+
custom: "custom";
|
|
406
|
+
pattern: "pattern";
|
|
407
407
|
required: "required";
|
|
408
408
|
min: "min";
|
|
409
409
|
max: "max";
|
|
410
410
|
minLength: "minLength";
|
|
411
411
|
maxLength: "maxLength";
|
|
412
|
-
pattern: "pattern";
|
|
413
412
|
email: "email";
|
|
414
413
|
url: "url";
|
|
415
|
-
custom: "custom";
|
|
416
414
|
}>;
|
|
417
415
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
418
416
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -455,15 +453,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
455
453
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
456
454
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
457
455
|
type: z.ZodEnum<{
|
|
456
|
+
custom: "custom";
|
|
457
|
+
pattern: "pattern";
|
|
458
458
|
required: "required";
|
|
459
459
|
min: "min";
|
|
460
460
|
max: "max";
|
|
461
461
|
minLength: "minLength";
|
|
462
462
|
maxLength: "maxLength";
|
|
463
|
-
pattern: "pattern";
|
|
464
463
|
email: "email";
|
|
465
464
|
url: "url";
|
|
466
|
-
custom: "custom";
|
|
467
465
|
}>;
|
|
468
466
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
469
467
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -512,15 +510,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
512
510
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
513
511
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
514
512
|
type: z.ZodEnum<{
|
|
513
|
+
custom: "custom";
|
|
514
|
+
pattern: "pattern";
|
|
515
515
|
required: "required";
|
|
516
516
|
min: "min";
|
|
517
517
|
max: "max";
|
|
518
518
|
minLength: "minLength";
|
|
519
519
|
maxLength: "maxLength";
|
|
520
|
-
pattern: "pattern";
|
|
521
520
|
email: "email";
|
|
522
521
|
url: "url";
|
|
523
|
-
custom: "custom";
|
|
524
522
|
}>;
|
|
525
523
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
526
524
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -602,15 +600,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
602
600
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
603
601
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
604
602
|
type: z.ZodEnum<{
|
|
603
|
+
custom: "custom";
|
|
604
|
+
pattern: "pattern";
|
|
605
605
|
required: "required";
|
|
606
606
|
min: "min";
|
|
607
607
|
max: "max";
|
|
608
608
|
minLength: "minLength";
|
|
609
609
|
maxLength: "maxLength";
|
|
610
|
-
pattern: "pattern";
|
|
611
610
|
email: "email";
|
|
612
611
|
url: "url";
|
|
613
|
-
custom: "custom";
|
|
614
612
|
}>;
|
|
615
613
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
616
614
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -667,15 +665,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
667
665
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
668
666
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
669
667
|
type: z.ZodEnum<{
|
|
668
|
+
custom: "custom";
|
|
669
|
+
pattern: "pattern";
|
|
670
670
|
required: "required";
|
|
671
671
|
min: "min";
|
|
672
672
|
max: "max";
|
|
673
673
|
minLength: "minLength";
|
|
674
674
|
maxLength: "maxLength";
|
|
675
|
-
pattern: "pattern";
|
|
676
675
|
email: "email";
|
|
677
676
|
url: "url";
|
|
678
|
-
custom: "custom";
|
|
679
677
|
}>;
|
|
680
678
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
681
679
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -734,15 +732,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
734
732
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
735
733
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
736
734
|
type: z.ZodEnum<{
|
|
735
|
+
custom: "custom";
|
|
736
|
+
pattern: "pattern";
|
|
737
737
|
required: "required";
|
|
738
738
|
min: "min";
|
|
739
739
|
max: "max";
|
|
740
740
|
minLength: "minLength";
|
|
741
741
|
maxLength: "maxLength";
|
|
742
|
-
pattern: "pattern";
|
|
743
742
|
email: "email";
|
|
744
743
|
url: "url";
|
|
745
|
-
custom: "custom";
|
|
746
744
|
}>;
|
|
747
745
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
748
746
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -805,15 +803,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
805
803
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
806
804
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
807
805
|
type: z.ZodEnum<{
|
|
806
|
+
custom: "custom";
|
|
807
|
+
pattern: "pattern";
|
|
808
808
|
required: "required";
|
|
809
809
|
min: "min";
|
|
810
810
|
max: "max";
|
|
811
811
|
minLength: "minLength";
|
|
812
812
|
maxLength: "maxLength";
|
|
813
|
-
pattern: "pattern";
|
|
814
813
|
email: "email";
|
|
815
814
|
url: "url";
|
|
816
|
-
custom: "custom";
|
|
817
815
|
}>;
|
|
818
816
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
819
817
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -877,15 +875,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
877
875
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
878
876
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
879
877
|
type: z.ZodEnum<{
|
|
878
|
+
custom: "custom";
|
|
879
|
+
pattern: "pattern";
|
|
880
880
|
required: "required";
|
|
881
881
|
min: "min";
|
|
882
882
|
max: "max";
|
|
883
883
|
minLength: "minLength";
|
|
884
884
|
maxLength: "maxLength";
|
|
885
|
-
pattern: "pattern";
|
|
886
885
|
email: "email";
|
|
887
886
|
url: "url";
|
|
888
|
-
custom: "custom";
|
|
889
887
|
}>;
|
|
890
888
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
891
889
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -934,15 +932,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
934
932
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
935
933
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
936
934
|
type: z.ZodEnum<{
|
|
935
|
+
custom: "custom";
|
|
936
|
+
pattern: "pattern";
|
|
937
937
|
required: "required";
|
|
938
938
|
min: "min";
|
|
939
939
|
max: "max";
|
|
940
940
|
minLength: "minLength";
|
|
941
941
|
maxLength: "maxLength";
|
|
942
|
-
pattern: "pattern";
|
|
943
942
|
email: "email";
|
|
944
943
|
url: "url";
|
|
945
|
-
custom: "custom";
|
|
946
944
|
}>;
|
|
947
945
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
948
946
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -994,15 +992,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
994
992
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
995
993
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
996
994
|
type: z.ZodEnum<{
|
|
995
|
+
custom: "custom";
|
|
996
|
+
pattern: "pattern";
|
|
997
997
|
required: "required";
|
|
998
998
|
min: "min";
|
|
999
999
|
max: "max";
|
|
1000
1000
|
minLength: "minLength";
|
|
1001
1001
|
maxLength: "maxLength";
|
|
1002
|
-
pattern: "pattern";
|
|
1003
1002
|
email: "email";
|
|
1004
1003
|
url: "url";
|
|
1005
|
-
custom: "custom";
|
|
1006
1004
|
}>;
|
|
1007
1005
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1008
1006
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1053,15 +1051,15 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1053
1051
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1054
1052
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1055
1053
|
type: z.ZodEnum<{
|
|
1054
|
+
custom: "custom";
|
|
1055
|
+
pattern: "pattern";
|
|
1056
1056
|
required: "required";
|
|
1057
1057
|
min: "min";
|
|
1058
1058
|
max: "max";
|
|
1059
1059
|
minLength: "minLength";
|
|
1060
1060
|
maxLength: "maxLength";
|
|
1061
|
-
pattern: "pattern";
|
|
1062
1061
|
email: "email";
|
|
1063
1062
|
url: "url";
|
|
1064
|
-
custom: "custom";
|
|
1065
1063
|
}>;
|
|
1066
1064
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1067
1065
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1114,6 +1112,14 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1114
1112
|
sections: z.ZodArray<z.ZodObject<{
|
|
1115
1113
|
id: z.ZodString;
|
|
1116
1114
|
title: z.ZodString;
|
|
1115
|
+
titleTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1116
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1117
|
+
descriptionTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1118
|
+
showTitle: z.ZodDefault<z.ZodBoolean>;
|
|
1119
|
+
showDescription: z.ZodDefault<z.ZodBoolean>;
|
|
1120
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
nextButtonLabelTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1122
|
+
inAppSingleQuestion: z.ZodDefault<z.ZodBoolean>;
|
|
1117
1123
|
questionIds: z.ZodArray<z.ZodString>;
|
|
1118
1124
|
}, z.core.$strip>>;
|
|
1119
1125
|
selectedLanguages: z.ZodArray<z.ZodObject<{
|
|
@@ -1215,28 +1221,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1215
1221
|
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
1216
1222
|
}, z.core.$catchall<z.ZodString>>]>>>;
|
|
1217
1223
|
}, z.core.$strip>;
|
|
1218
|
-
frequencyAndSchedulingProperties: z.ZodObject<{
|
|
1219
|
-
surveyType: z.ZodEnum<{
|
|
1220
|
-
S: "S";
|
|
1221
|
-
R: "R";
|
|
1222
|
-
}>;
|
|
1223
|
-
showOnce: z.ZodEnum<{
|
|
1224
|
-
Y: "Y";
|
|
1225
|
-
N: "N";
|
|
1226
|
-
}>;
|
|
1227
|
-
stopWhenResponsesCount: z.ZodString;
|
|
1228
|
-
recurringValue: z.ZodString;
|
|
1229
|
-
recurringUnit: z.ZodEnum<{
|
|
1230
|
-
minutes: "minutes";
|
|
1231
|
-
hours: "hours";
|
|
1232
|
-
days: "days";
|
|
1233
|
-
weeks: "weeks";
|
|
1234
|
-
months: "months";
|
|
1235
|
-
years: "years";
|
|
1236
|
-
}>;
|
|
1237
|
-
startDate: z.ZodString;
|
|
1238
|
-
stopDate: z.ZodString;
|
|
1239
|
-
}, z.core.$strip>;
|
|
1240
1224
|
externalPublishingProperties: z.ZodObject<{
|
|
1241
1225
|
isShareable: z.ZodBoolean;
|
|
1242
1226
|
isEmailShareable: z.ZodBoolean;
|
|
@@ -1369,14 +1353,12 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
1369
1353
|
progressBar: z.ZodBoolean;
|
|
1370
1354
|
showBranding: z.ZodBoolean;
|
|
1371
1355
|
customPosition: z.ZodBoolean;
|
|
1372
|
-
customIconPosition: z.ZodBoolean;
|
|
1373
1356
|
customCss: z.ZodOptional<z.ZodString>;
|
|
1374
1357
|
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
1375
1358
|
light: "light";
|
|
1376
1359
|
dark: "dark";
|
|
1377
1360
|
system: "system";
|
|
1378
1361
|
}>>;
|
|
1379
|
-
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
1380
1362
|
rtl: z.ZodBoolean;
|
|
1381
1363
|
previousButton: z.ZodEnum<{
|
|
1382
1364
|
never: "never";
|
|
@@ -1,58 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const surveyTypeSchema: z.ZodEnum<{
|
|
3
|
-
S: "S";
|
|
4
|
-
R: "R";
|
|
5
|
-
}>;
|
|
6
|
-
export declare const SurveyTypes: {
|
|
7
|
-
readonly RECURRING: "R";
|
|
8
|
-
readonly ONE_TIME: "S";
|
|
9
|
-
};
|
|
10
|
-
export declare const yesNoSchema: z.ZodEnum<{
|
|
11
|
-
Y: "Y";
|
|
12
|
-
N: "N";
|
|
13
|
-
}>;
|
|
14
|
-
export declare const YesNoValues: {
|
|
15
|
-
readonly YES: "Y";
|
|
16
|
-
readonly NO: "N";
|
|
17
|
-
};
|
|
18
|
-
export declare const recurringUnitSchema: z.ZodEnum<{
|
|
19
|
-
minutes: "minutes";
|
|
20
|
-
hours: "hours";
|
|
21
|
-
days: "days";
|
|
22
|
-
weeks: "weeks";
|
|
23
|
-
months: "months";
|
|
24
|
-
years: "years";
|
|
25
|
-
}>;
|
|
26
|
-
export declare const RecurringUnits: {
|
|
27
|
-
readonly MINUTES: "minutes";
|
|
28
|
-
readonly HOURS: "hours";
|
|
29
|
-
readonly DAYS: "days";
|
|
30
|
-
readonly WEEKS: "weeks";
|
|
31
|
-
readonly MONTHS: "months";
|
|
32
|
-
readonly YEARS: "years";
|
|
33
|
-
};
|
|
34
|
-
export declare const frequencyAndSchedulingPropertiesSchema: z.ZodObject<{
|
|
35
|
-
surveyType: z.ZodEnum<{
|
|
36
|
-
S: "S";
|
|
37
|
-
R: "R";
|
|
38
|
-
}>;
|
|
39
|
-
showOnce: z.ZodEnum<{
|
|
40
|
-
Y: "Y";
|
|
41
|
-
N: "N";
|
|
42
|
-
}>;
|
|
43
|
-
stopWhenResponsesCount: z.ZodString;
|
|
44
|
-
recurringValue: z.ZodString;
|
|
45
|
-
recurringUnit: z.ZodEnum<{
|
|
46
|
-
minutes: "minutes";
|
|
47
|
-
hours: "hours";
|
|
48
|
-
days: "days";
|
|
49
|
-
weeks: "weeks";
|
|
50
|
-
months: "months";
|
|
51
|
-
years: "years";
|
|
52
|
-
}>;
|
|
53
|
-
startDate: z.ZodString;
|
|
54
|
-
stopDate: z.ZodString;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
2
|
export declare const externalPublishingPropertiesSchema: z.ZodObject<{
|
|
57
3
|
isShareable: z.ZodBoolean;
|
|
58
4
|
isEmailShareable: z.ZodBoolean;
|
|
@@ -79,10 +25,6 @@ export declare const feedbackConfigurationSchema: z.ZodObject<{
|
|
|
79
25
|
S: "S";
|
|
80
26
|
}>;
|
|
81
27
|
}, z.core.$strip>;
|
|
82
|
-
export type SurveyType = z.infer<typeof surveyTypeSchema>;
|
|
83
|
-
export type YesNo = z.infer<typeof yesNoSchema>;
|
|
84
|
-
export type RecurringUnit = z.infer<typeof recurringUnitSchema>;
|
|
85
28
|
export type PublicationStatus = z.infer<typeof publicationStatusSchema>;
|
|
86
29
|
export type FeedbackConfiguration = z.infer<typeof feedbackConfigurationSchema>;
|
|
87
|
-
export type FrequencyAndSchedulingProperties = z.infer<typeof frequencyAndSchedulingPropertiesSchema>;
|
|
88
30
|
export type ExternalPublishingProperties = z.infer<typeof externalPublishingPropertiesSchema>;
|
|
@@ -55,14 +55,12 @@ export declare const featureSettingsSchema: z.ZodObject<{
|
|
|
55
55
|
progressBar: z.ZodBoolean;
|
|
56
56
|
showBranding: z.ZodBoolean;
|
|
57
57
|
customPosition: z.ZodBoolean;
|
|
58
|
-
customIconPosition: z.ZodBoolean;
|
|
59
58
|
customCss: z.ZodOptional<z.ZodString>;
|
|
60
59
|
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
61
60
|
light: "light";
|
|
62
61
|
dark: "dark";
|
|
63
62
|
system: "system";
|
|
64
63
|
}>>;
|
|
65
|
-
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
66
64
|
rtl: z.ZodBoolean;
|
|
67
65
|
previousButton: z.ZodEnum<{
|
|
68
66
|
never: "never";
|
|
@@ -96,14 +94,12 @@ export declare const themeConfigurationSchema: z.ZodObject<{
|
|
|
96
94
|
progressBar: z.ZodBoolean;
|
|
97
95
|
showBranding: z.ZodBoolean;
|
|
98
96
|
customPosition: z.ZodBoolean;
|
|
99
|
-
customIconPosition: z.ZodBoolean;
|
|
100
97
|
customCss: z.ZodOptional<z.ZodString>;
|
|
101
98
|
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
102
99
|
light: "light";
|
|
103
100
|
dark: "dark";
|
|
104
101
|
system: "system";
|
|
105
102
|
}>>;
|
|
106
|
-
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
107
103
|
rtl: z.ZodBoolean;
|
|
108
104
|
previousButton: z.ZodEnum<{
|
|
109
105
|
never: "never";
|
package/package.json
CHANGED