@encatch/schema 1.0.1-beta.0 → 1.0.1-beta.1
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 +279 -5
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +2 -2
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +986 -147
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +24 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +8 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +466 -1
- package/dist/types/schemas/fields/field-schema.d.ts +1074 -152
- package/dist/types/schemas/fields/form-properties-schema.d.ts +473 -1
- package/dist/types/schemas/fields/theme-schema.d.ts +25 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +263 -4
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ export declare const questionResponseSchema: z.ZodObject<{
|
|
|
15
15
|
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
16
16
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
17
17
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
18
19
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
20
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
20
21
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -27,6 +28,9 @@ export declare const questionResponseSchema: z.ZodObject<{
|
|
|
27
28
|
comment: z.ZodString;
|
|
28
29
|
}, z.core.$strip>>;
|
|
29
30
|
}, z.core.$strip>>;
|
|
31
|
+
ratingMatrix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
32
|
+
matrixSingleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
|
+
matrixMultipleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
30
34
|
others: z.ZodOptional<z.ZodString>;
|
|
31
35
|
}, z.core.$strip>;
|
|
32
36
|
type: z.ZodString;
|
|
@@ -42,6 +46,7 @@ export declare const responseSchema: z.ZodObject<{
|
|
|
42
46
|
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
43
47
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
44
48
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
45
50
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
51
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
47
52
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -54,6 +59,9 @@ export declare const responseSchema: z.ZodObject<{
|
|
|
54
59
|
comment: z.ZodString;
|
|
55
60
|
}, z.core.$strip>>;
|
|
56
61
|
}, z.core.$strip>>;
|
|
62
|
+
ratingMatrix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
63
|
+
matrixSingleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
64
|
+
matrixMultipleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
57
65
|
others: z.ZodOptional<z.ZodString>;
|
|
58
66
|
}, z.core.$strip>;
|
|
59
67
|
type: z.ZodString;
|
|
@@ -160,6 +168,7 @@ export declare const partialFeedbackSchema: z.ZodObject<{
|
|
|
160
168
|
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
161
169
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
162
170
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
163
172
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
164
173
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
165
174
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -172,6 +181,9 @@ export declare const partialFeedbackSchema: z.ZodObject<{
|
|
|
172
181
|
comment: z.ZodString;
|
|
173
182
|
}, z.core.$strip>>;
|
|
174
183
|
}, z.core.$strip>>;
|
|
184
|
+
ratingMatrix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
185
|
+
matrixSingleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
186
|
+
matrixMultipleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
175
187
|
others: z.ZodOptional<z.ZodString>;
|
|
176
188
|
}, z.core.$strip>;
|
|
177
189
|
type: z.ZodString;
|
|
@@ -231,6 +243,7 @@ export declare const submitFeedbackSchema: z.ZodObject<{
|
|
|
231
243
|
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
232
244
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
233
245
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
234
247
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
235
248
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
236
249
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -243,6 +256,9 @@ export declare const submitFeedbackSchema: z.ZodObject<{
|
|
|
243
256
|
comment: z.ZodString;
|
|
244
257
|
}, z.core.$strip>>;
|
|
245
258
|
}, z.core.$strip>>;
|
|
259
|
+
ratingMatrix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
260
|
+
matrixSingleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
261
|
+
matrixMultipleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
246
262
|
others: z.ZodOptional<z.ZodString>;
|
|
247
263
|
}, z.core.$strip>;
|
|
248
264
|
type: z.ZodString;
|
|
@@ -302,6 +318,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
302
318
|
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
303
319
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
304
320
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
321
|
+
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
305
322
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
306
323
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
307
324
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -314,6 +331,9 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
314
331
|
comment: z.ZodString;
|
|
315
332
|
}, z.core.$strip>>;
|
|
316
333
|
}, z.core.$strip>>;
|
|
334
|
+
ratingMatrix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
335
|
+
matrixSingleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
336
|
+
matrixMultipleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
317
337
|
others: z.ZodOptional<z.ZodString>;
|
|
318
338
|
}, z.core.$strip>;
|
|
319
339
|
type: z.ZodString;
|
|
@@ -372,6 +392,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
372
392
|
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
373
393
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
374
394
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
375
396
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
376
397
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
377
398
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -384,6 +405,9 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
384
405
|
comment: z.ZodString;
|
|
385
406
|
}, z.core.$strip>>;
|
|
386
407
|
}, z.core.$strip>>;
|
|
408
|
+
ratingMatrix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
409
|
+
matrixSingleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
410
|
+
matrixMultipleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
387
411
|
others: z.ZodOptional<z.ZodString>;
|
|
388
412
|
}, z.core.$strip>;
|
|
389
413
|
type: z.ZodString;
|
|
@@ -20,6 +20,7 @@ export declare const AnswerItemSchema: z.ZodObject<{
|
|
|
20
20
|
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
21
21
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
22
22
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
23
24
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
25
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
25
26
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -32,6 +33,9 @@ export declare const AnswerItemSchema: z.ZodObject<{
|
|
|
32
33
|
comment: z.ZodString;
|
|
33
34
|
}, z.core.$strip>>;
|
|
34
35
|
}, z.core.$strip>>;
|
|
36
|
+
ratingMatrix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
37
|
+
matrixSingleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
|
+
matrixMultipleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
35
39
|
others: z.ZodOptional<z.ZodString>;
|
|
36
40
|
}, z.core.$strip>;
|
|
37
41
|
export declare const AnswerSchema: z.ZodObject<{
|
|
@@ -41,6 +45,7 @@ export declare const AnswerSchema: z.ZodObject<{
|
|
|
41
45
|
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
42
46
|
singleChoice: z.ZodOptional<z.ZodString>;
|
|
43
47
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
yesNo: z.ZodOptional<z.ZodBoolean>;
|
|
44
49
|
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
50
|
singleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
46
51
|
multipleChoiceOther: z.ZodOptional<z.ZodString>;
|
|
@@ -53,6 +58,9 @@ export declare const AnswerSchema: z.ZodObject<{
|
|
|
53
58
|
comment: z.ZodString;
|
|
54
59
|
}, z.core.$strip>>;
|
|
55
60
|
}, z.core.$strip>>;
|
|
61
|
+
ratingMatrix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
62
|
+
matrixSingleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
63
|
+
matrixMultipleChoice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
56
64
|
others: z.ZodOptional<z.ZodString>;
|
|
57
65
|
}, z.core.$strip>;
|
|
58
66
|
export type AnnotationMarker = z.infer<typeof AnnotationMarkerSchema>;
|
|
@@ -141,6 +141,415 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
141
141
|
type: z.ZodLiteral<"annotation">;
|
|
142
142
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
143
143
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
147
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
148
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
149
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
150
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
151
|
+
type: z.ZodEnum<{
|
|
152
|
+
required: "required";
|
|
153
|
+
min: "min";
|
|
154
|
+
max: "max";
|
|
155
|
+
minLength: "minLength";
|
|
156
|
+
maxLength: "maxLength";
|
|
157
|
+
pattern: "pattern";
|
|
158
|
+
email: "email";
|
|
159
|
+
url: "url";
|
|
160
|
+
custom: "custom";
|
|
161
|
+
}>;
|
|
162
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
163
|
+
message: z.ZodOptional<z.ZodString>;
|
|
164
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>>>>;
|
|
166
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
167
|
+
field: z.ZodString;
|
|
168
|
+
operator: z.ZodEnum<{
|
|
169
|
+
equals: "equals";
|
|
170
|
+
not_equals: "not_equals";
|
|
171
|
+
contains: "contains";
|
|
172
|
+
not_contains: "not_contains";
|
|
173
|
+
greater_than: "greater_than";
|
|
174
|
+
less_than: "less_than";
|
|
175
|
+
is_empty: "is_empty";
|
|
176
|
+
is_not_empty: "is_not_empty";
|
|
177
|
+
}>;
|
|
178
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
179
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
180
|
+
}, z.core.$strip>>>>;
|
|
181
|
+
isFixed: z.ZodBoolean;
|
|
182
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
183
|
+
status: z.ZodEnum<{
|
|
184
|
+
D: "D";
|
|
185
|
+
P: "P";
|
|
186
|
+
A: "A";
|
|
187
|
+
S: "S";
|
|
188
|
+
}>;
|
|
189
|
+
type: z.ZodLiteral<"welcome">;
|
|
190
|
+
title: z.ZodString;
|
|
191
|
+
description: z.ZodOptional<z.ZodString>;
|
|
192
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
193
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
197
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
198
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
199
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
200
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
201
|
+
type: z.ZodEnum<{
|
|
202
|
+
required: "required";
|
|
203
|
+
min: "min";
|
|
204
|
+
max: "max";
|
|
205
|
+
minLength: "minLength";
|
|
206
|
+
maxLength: "maxLength";
|
|
207
|
+
pattern: "pattern";
|
|
208
|
+
email: "email";
|
|
209
|
+
url: "url";
|
|
210
|
+
custom: "custom";
|
|
211
|
+
}>;
|
|
212
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
213
|
+
message: z.ZodOptional<z.ZodString>;
|
|
214
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, z.core.$strip>>>>;
|
|
216
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
217
|
+
field: z.ZodString;
|
|
218
|
+
operator: z.ZodEnum<{
|
|
219
|
+
equals: "equals";
|
|
220
|
+
not_equals: "not_equals";
|
|
221
|
+
contains: "contains";
|
|
222
|
+
not_contains: "not_contains";
|
|
223
|
+
greater_than: "greater_than";
|
|
224
|
+
less_than: "less_than";
|
|
225
|
+
is_empty: "is_empty";
|
|
226
|
+
is_not_empty: "is_not_empty";
|
|
227
|
+
}>;
|
|
228
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
229
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
230
|
+
}, z.core.$strip>>>>;
|
|
231
|
+
isFixed: z.ZodBoolean;
|
|
232
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
233
|
+
status: z.ZodEnum<{
|
|
234
|
+
D: "D";
|
|
235
|
+
P: "P";
|
|
236
|
+
A: "A";
|
|
237
|
+
S: "S";
|
|
238
|
+
}>;
|
|
239
|
+
type: z.ZodLiteral<"thank_you">;
|
|
240
|
+
title: z.ZodString;
|
|
241
|
+
description: z.ZodOptional<z.ZodString>;
|
|
242
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
243
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
245
|
+
id: z.ZodString;
|
|
246
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
247
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
248
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
249
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
250
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
251
|
+
type: z.ZodEnum<{
|
|
252
|
+
required: "required";
|
|
253
|
+
min: "min";
|
|
254
|
+
max: "max";
|
|
255
|
+
minLength: "minLength";
|
|
256
|
+
maxLength: "maxLength";
|
|
257
|
+
pattern: "pattern";
|
|
258
|
+
email: "email";
|
|
259
|
+
url: "url";
|
|
260
|
+
custom: "custom";
|
|
261
|
+
}>;
|
|
262
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
263
|
+
message: z.ZodOptional<z.ZodString>;
|
|
264
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>>>>;
|
|
266
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
267
|
+
field: z.ZodString;
|
|
268
|
+
operator: z.ZodEnum<{
|
|
269
|
+
equals: "equals";
|
|
270
|
+
not_equals: "not_equals";
|
|
271
|
+
contains: "contains";
|
|
272
|
+
not_contains: "not_contains";
|
|
273
|
+
greater_than: "greater_than";
|
|
274
|
+
less_than: "less_than";
|
|
275
|
+
is_empty: "is_empty";
|
|
276
|
+
is_not_empty: "is_not_empty";
|
|
277
|
+
}>;
|
|
278
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
279
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>>>>;
|
|
281
|
+
isFixed: z.ZodBoolean;
|
|
282
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
283
|
+
status: z.ZodEnum<{
|
|
284
|
+
D: "D";
|
|
285
|
+
P: "P";
|
|
286
|
+
A: "A";
|
|
287
|
+
S: "S";
|
|
288
|
+
}>;
|
|
289
|
+
type: z.ZodLiteral<"message_panel">;
|
|
290
|
+
title: z.ZodString;
|
|
291
|
+
description: z.ZodOptional<z.ZodString>;
|
|
292
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
293
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
295
|
+
id: z.ZodString;
|
|
296
|
+
title: z.ZodString;
|
|
297
|
+
description: z.ZodOptional<z.ZodString>;
|
|
298
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
299
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
300
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
301
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
302
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
303
|
+
type: z.ZodEnum<{
|
|
304
|
+
required: "required";
|
|
305
|
+
min: "min";
|
|
306
|
+
max: "max";
|
|
307
|
+
minLength: "minLength";
|
|
308
|
+
maxLength: "maxLength";
|
|
309
|
+
pattern: "pattern";
|
|
310
|
+
email: "email";
|
|
311
|
+
url: "url";
|
|
312
|
+
custom: "custom";
|
|
313
|
+
}>;
|
|
314
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
315
|
+
message: z.ZodOptional<z.ZodString>;
|
|
316
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
317
|
+
}, z.core.$strip>>>>;
|
|
318
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
|
+
field: z.ZodString;
|
|
320
|
+
operator: z.ZodEnum<{
|
|
321
|
+
equals: "equals";
|
|
322
|
+
not_equals: "not_equals";
|
|
323
|
+
contains: "contains";
|
|
324
|
+
not_contains: "not_contains";
|
|
325
|
+
greater_than: "greater_than";
|
|
326
|
+
less_than: "less_than";
|
|
327
|
+
is_empty: "is_empty";
|
|
328
|
+
is_not_empty: "is_not_empty";
|
|
329
|
+
}>;
|
|
330
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
331
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
332
|
+
}, z.core.$strip>>>>;
|
|
333
|
+
isFixed: z.ZodBoolean;
|
|
334
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
335
|
+
status: z.ZodEnum<{
|
|
336
|
+
D: "D";
|
|
337
|
+
P: "P";
|
|
338
|
+
A: "A";
|
|
339
|
+
S: "S";
|
|
340
|
+
}>;
|
|
341
|
+
type: z.ZodLiteral<"yes_no">;
|
|
342
|
+
yesLabel: z.ZodOptional<z.ZodString>;
|
|
343
|
+
noLabel: z.ZodOptional<z.ZodString>;
|
|
344
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
345
|
+
horizontal: "horizontal";
|
|
346
|
+
vertical: "vertical";
|
|
347
|
+
}>>;
|
|
348
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
349
|
+
id: z.ZodString;
|
|
350
|
+
title: z.ZodString;
|
|
351
|
+
description: z.ZodOptional<z.ZodString>;
|
|
352
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
353
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
354
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
355
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
356
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
357
|
+
type: z.ZodEnum<{
|
|
358
|
+
required: "required";
|
|
359
|
+
min: "min";
|
|
360
|
+
max: "max";
|
|
361
|
+
minLength: "minLength";
|
|
362
|
+
maxLength: "maxLength";
|
|
363
|
+
pattern: "pattern";
|
|
364
|
+
email: "email";
|
|
365
|
+
url: "url";
|
|
366
|
+
custom: "custom";
|
|
367
|
+
}>;
|
|
368
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
369
|
+
message: z.ZodOptional<z.ZodString>;
|
|
370
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
371
|
+
}, z.core.$strip>>>>;
|
|
372
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
373
|
+
field: z.ZodString;
|
|
374
|
+
operator: z.ZodEnum<{
|
|
375
|
+
equals: "equals";
|
|
376
|
+
not_equals: "not_equals";
|
|
377
|
+
contains: "contains";
|
|
378
|
+
not_contains: "not_contains";
|
|
379
|
+
greater_than: "greater_than";
|
|
380
|
+
less_than: "less_than";
|
|
381
|
+
is_empty: "is_empty";
|
|
382
|
+
is_not_empty: "is_not_empty";
|
|
383
|
+
}>;
|
|
384
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
385
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
386
|
+
}, z.core.$strip>>>>;
|
|
387
|
+
isFixed: z.ZodBoolean;
|
|
388
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
389
|
+
status: z.ZodEnum<{
|
|
390
|
+
D: "D";
|
|
391
|
+
P: "P";
|
|
392
|
+
A: "A";
|
|
393
|
+
S: "S";
|
|
394
|
+
}>;
|
|
395
|
+
type: z.ZodLiteral<"rating_matrix">;
|
|
396
|
+
statements: z.ZodArray<z.ZodObject<{
|
|
397
|
+
id: z.ZodString;
|
|
398
|
+
value: z.ZodString;
|
|
399
|
+
label: z.ZodString;
|
|
400
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
401
|
+
}, z.core.$strip>>;
|
|
402
|
+
scale: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
403
|
+
kind: z.ZodLiteral<"likert">;
|
|
404
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
405
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
406
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
407
|
+
kind: z.ZodLiteral<"numerical">;
|
|
408
|
+
pointCount: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
|
|
409
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
410
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
412
|
+
kind: z.ZodLiteral<"custom">;
|
|
413
|
+
scalePoints: z.ZodArray<z.ZodObject<{
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
416
|
+
label: z.ZodString;
|
|
417
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strip>>;
|
|
419
|
+
}, z.core.$strip>], "kind">;
|
|
420
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
421
|
+
star: "star";
|
|
422
|
+
emoji: "emoji";
|
|
423
|
+
radio: "radio";
|
|
424
|
+
button: "button";
|
|
425
|
+
}>>;
|
|
426
|
+
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
427
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
428
|
+
id: z.ZodString;
|
|
429
|
+
title: z.ZodString;
|
|
430
|
+
description: z.ZodOptional<z.ZodString>;
|
|
431
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
432
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
433
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
434
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
435
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
436
|
+
type: z.ZodEnum<{
|
|
437
|
+
required: "required";
|
|
438
|
+
min: "min";
|
|
439
|
+
max: "max";
|
|
440
|
+
minLength: "minLength";
|
|
441
|
+
maxLength: "maxLength";
|
|
442
|
+
pattern: "pattern";
|
|
443
|
+
email: "email";
|
|
444
|
+
url: "url";
|
|
445
|
+
custom: "custom";
|
|
446
|
+
}>;
|
|
447
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
448
|
+
message: z.ZodOptional<z.ZodString>;
|
|
449
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$strip>>>>;
|
|
451
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
452
|
+
field: z.ZodString;
|
|
453
|
+
operator: z.ZodEnum<{
|
|
454
|
+
equals: "equals";
|
|
455
|
+
not_equals: "not_equals";
|
|
456
|
+
contains: "contains";
|
|
457
|
+
not_contains: "not_contains";
|
|
458
|
+
greater_than: "greater_than";
|
|
459
|
+
less_than: "less_than";
|
|
460
|
+
is_empty: "is_empty";
|
|
461
|
+
is_not_empty: "is_not_empty";
|
|
462
|
+
}>;
|
|
463
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
464
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
465
|
+
}, z.core.$strip>>>>;
|
|
466
|
+
isFixed: z.ZodBoolean;
|
|
467
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
468
|
+
status: z.ZodEnum<{
|
|
469
|
+
D: "D";
|
|
470
|
+
P: "P";
|
|
471
|
+
A: "A";
|
|
472
|
+
S: "S";
|
|
473
|
+
}>;
|
|
474
|
+
type: z.ZodLiteral<"matrix_single_choice">;
|
|
475
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
476
|
+
id: z.ZodString;
|
|
477
|
+
value: z.ZodString;
|
|
478
|
+
label: z.ZodString;
|
|
479
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>>;
|
|
481
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
value: z.ZodString;
|
|
484
|
+
label: z.ZodString;
|
|
485
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
486
|
+
}, z.core.$strip>>;
|
|
487
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
488
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
489
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
490
|
+
id: z.ZodString;
|
|
491
|
+
title: z.ZodString;
|
|
492
|
+
description: z.ZodOptional<z.ZodString>;
|
|
493
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
494
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
495
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
496
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
497
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
498
|
+
type: z.ZodEnum<{
|
|
499
|
+
required: "required";
|
|
500
|
+
min: "min";
|
|
501
|
+
max: "max";
|
|
502
|
+
minLength: "minLength";
|
|
503
|
+
maxLength: "maxLength";
|
|
504
|
+
pattern: "pattern";
|
|
505
|
+
email: "email";
|
|
506
|
+
url: "url";
|
|
507
|
+
custom: "custom";
|
|
508
|
+
}>;
|
|
509
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
510
|
+
message: z.ZodOptional<z.ZodString>;
|
|
511
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
512
|
+
}, z.core.$strip>>>>;
|
|
513
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
514
|
+
field: z.ZodString;
|
|
515
|
+
operator: z.ZodEnum<{
|
|
516
|
+
equals: "equals";
|
|
517
|
+
not_equals: "not_equals";
|
|
518
|
+
contains: "contains";
|
|
519
|
+
not_contains: "not_contains";
|
|
520
|
+
greater_than: "greater_than";
|
|
521
|
+
less_than: "less_than";
|
|
522
|
+
is_empty: "is_empty";
|
|
523
|
+
is_not_empty: "is_not_empty";
|
|
524
|
+
}>;
|
|
525
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
526
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
527
|
+
}, z.core.$strip>>>>;
|
|
528
|
+
isFixed: z.ZodBoolean;
|
|
529
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
530
|
+
status: z.ZodEnum<{
|
|
531
|
+
D: "D";
|
|
532
|
+
P: "P";
|
|
533
|
+
A: "A";
|
|
534
|
+
S: "S";
|
|
535
|
+
}>;
|
|
536
|
+
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
537
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
538
|
+
id: z.ZodString;
|
|
539
|
+
value: z.ZodString;
|
|
540
|
+
label: z.ZodString;
|
|
541
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
542
|
+
}, z.core.$strip>>;
|
|
543
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
544
|
+
id: z.ZodString;
|
|
545
|
+
value: z.ZodString;
|
|
546
|
+
label: z.ZodString;
|
|
547
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
548
|
+
}, z.core.$strip>>;
|
|
549
|
+
minSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
550
|
+
maxSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
551
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
552
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
144
553
|
}, z.core.$strip>, z.ZodObject<{
|
|
145
554
|
id: z.ZodString;
|
|
146
555
|
title: z.ZodString;
|
|
@@ -679,7 +1088,56 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
679
1088
|
type: z.ZodLiteral<"annotation">;
|
|
680
1089
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
681
1090
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
682
|
-
}, z.core.$strip
|
|
1091
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1092
|
+
title: z.ZodString;
|
|
1093
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1094
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1095
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1096
|
+
type: z.ZodLiteral<"welcome">;
|
|
1097
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1098
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1099
|
+
title: z.ZodString;
|
|
1100
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1101
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
type: z.ZodLiteral<"thank_you">;
|
|
1104
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1106
|
+
title: z.ZodString;
|
|
1107
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1109
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1110
|
+
type: z.ZodLiteral<"message_panel">;
|
|
1111
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1113
|
+
title: z.ZodString;
|
|
1114
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1117
|
+
type: z.ZodLiteral<"yes_no">;
|
|
1118
|
+
yesLabel: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
noLabel: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1121
|
+
title: z.ZodString;
|
|
1122
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1123
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1125
|
+
type: z.ZodLiteral<"rating_matrix">;
|
|
1126
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
1127
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
1128
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1129
|
+
title: z.ZodString;
|
|
1130
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
type: z.ZodLiteral<"matrix_single_choice">;
|
|
1134
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1135
|
+
title: z.ZodString;
|
|
1136
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1137
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1139
|
+
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
1140
|
+
}, z.core.$catchall<z.ZodString>>]>>>>;
|
|
683
1141
|
onSectionChange: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodNumber], null>, z.ZodVoid>>;
|
|
684
1142
|
onClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodVoid>>;
|
|
685
1143
|
sections: z.ZodArray<z.ZodObject<{
|
|
@@ -709,6 +1167,13 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
709
1167
|
dark: "dark";
|
|
710
1168
|
system: "system";
|
|
711
1169
|
}>>;
|
|
1170
|
+
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
1171
|
+
rtl: z.ZodBoolean;
|
|
1172
|
+
previousButton: z.ZodEnum<{
|
|
1173
|
+
never: "never";
|
|
1174
|
+
always: "always";
|
|
1175
|
+
auto: "auto";
|
|
1176
|
+
}>;
|
|
712
1177
|
}, z.core.$strip>;
|
|
713
1178
|
selectedPosition: z.ZodEnum<{
|
|
714
1179
|
"top-left": "top-left";
|