@encatch/schema 1.0.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 +344 -82
- 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 +997 -150
- package/dist/types/schemas/api/refine-text-schema.d.ts +7 -12
- 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 +490 -13
- package/dist/types/schemas/fields/field-schema.d.ts +1091 -160
- package/dist/types/schemas/fields/form-properties-schema.d.ts +497 -13
- package/dist/types/schemas/fields/theme-schema.d.ts +25 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +350 -44
- package/package.json +1 -1
|
@@ -29,6 +29,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
29
29
|
id: z.ZodString;
|
|
30
30
|
title: z.ZodString;
|
|
31
31
|
description: z.ZodOptional<z.ZodString>;
|
|
32
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
32
33
|
describe: z.ZodOptional<z.ZodString>;
|
|
33
34
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
34
35
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -94,6 +95,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
94
95
|
id: z.ZodString;
|
|
95
96
|
title: z.ZodString;
|
|
96
97
|
description: z.ZodOptional<z.ZodString>;
|
|
98
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
97
99
|
describe: z.ZodOptional<z.ZodString>;
|
|
98
100
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
99
101
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -141,8 +143,418 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
141
143
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
142
144
|
}, z.core.$strip>, z.ZodObject<{
|
|
143
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">;
|
|
144
190
|
title: z.ZodString;
|
|
145
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>>;
|
|
553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
554
|
+
id: z.ZodString;
|
|
555
|
+
title: z.ZodString;
|
|
556
|
+
description: z.ZodOptional<z.ZodString>;
|
|
557
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
146
558
|
describe: z.ZodOptional<z.ZodString>;
|
|
147
559
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
148
560
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -210,6 +622,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
210
622
|
id: z.ZodString;
|
|
211
623
|
title: z.ZodString;
|
|
212
624
|
description: z.ZodOptional<z.ZodString>;
|
|
625
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
213
626
|
describe: z.ZodOptional<z.ZodString>;
|
|
214
627
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
215
628
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -278,6 +691,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
278
691
|
id: z.ZodString;
|
|
279
692
|
title: z.ZodString;
|
|
280
693
|
description: z.ZodOptional<z.ZodString>;
|
|
694
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
281
695
|
describe: z.ZodOptional<z.ZodString>;
|
|
282
696
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
283
697
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -331,6 +745,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
331
745
|
id: z.ZodString;
|
|
332
746
|
title: z.ZodString;
|
|
333
747
|
description: z.ZodOptional<z.ZodString>;
|
|
748
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
334
749
|
describe: z.ZodOptional<z.ZodString>;
|
|
335
750
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
336
751
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -381,14 +796,13 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
381
796
|
regexPattern: z.ZodOptional<z.ZodString>;
|
|
382
797
|
enableEnhanceWithAi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
383
798
|
promptTemplate: z.ZodOptional<z.ZodString>;
|
|
384
|
-
cooldownSeconds: z.ZodOptional<z.ZodNumber>;
|
|
385
|
-
maxEnhancements: z.ZodOptional<z.ZodNumber>;
|
|
386
799
|
maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
|
|
387
800
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
388
801
|
}, z.core.$strip>, z.ZodObject<{
|
|
389
802
|
id: z.ZodString;
|
|
390
803
|
title: z.ZodString;
|
|
391
804
|
description: z.ZodOptional<z.ZodString>;
|
|
805
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
392
806
|
describe: z.ZodOptional<z.ZodString>;
|
|
393
807
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
394
808
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -438,14 +852,13 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
438
852
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
439
853
|
enableEnhanceWithAi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
440
854
|
promptTemplate: z.ZodOptional<z.ZodString>;
|
|
441
|
-
cooldownSeconds: z.ZodOptional<z.ZodNumber>;
|
|
442
|
-
maxEnhancements: z.ZodOptional<z.ZodNumber>;
|
|
443
855
|
maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
|
|
444
856
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
445
857
|
}, z.core.$strip>, z.ZodObject<{
|
|
446
858
|
id: z.ZodString;
|
|
447
859
|
title: z.ZodString;
|
|
448
860
|
description: z.ZodOptional<z.ZodString>;
|
|
861
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
449
862
|
describe: z.ZodOptional<z.ZodString>;
|
|
450
863
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
451
864
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -617,57 +1030,114 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
617
1030
|
}, z.core.$strip>>;
|
|
618
1031
|
}, z.core.$strip>], "isEnabled">>;
|
|
619
1032
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
620
|
-
type: z.ZodLiteral<"rating">;
|
|
621
1033
|
title: z.ZodString;
|
|
622
1034
|
description: z.ZodOptional<z.ZodString>;
|
|
1035
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
623
1036
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
type: z.ZodLiteral<"rating">;
|
|
624
1038
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
625
1039
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
626
1040
|
}, z.core.$strip>, z.ZodObject<{
|
|
627
|
-
type: z.ZodLiteral<"single_choice">;
|
|
628
1041
|
title: z.ZodString;
|
|
629
1042
|
description: z.ZodOptional<z.ZodString>;
|
|
1043
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
630
1044
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
type: z.ZodLiteral<"single_choice">;
|
|
631
1046
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
632
1047
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
633
|
-
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
634
1048
|
title: z.ZodString;
|
|
635
1049
|
description: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
636
1051
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1052
|
+
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
637
1053
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
638
1054
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
639
|
-
type: z.ZodLiteral<"nps">;
|
|
640
1055
|
title: z.ZodString;
|
|
641
1056
|
description: z.ZodOptional<z.ZodString>;
|
|
1057
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
642
1058
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
type: z.ZodLiteral<"nps">;
|
|
643
1060
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
644
1061
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
645
1062
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
646
|
-
type: z.ZodLiteral<"short_answer">;
|
|
647
1063
|
title: z.ZodString;
|
|
648
1064
|
description: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
649
1066
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1067
|
+
type: z.ZodLiteral<"short_answer">;
|
|
650
1068
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
651
1069
|
}, z.core.$strip>, z.ZodObject<{
|
|
652
|
-
type: z.ZodLiteral<"long_text">;
|
|
653
1070
|
title: z.ZodString;
|
|
654
1071
|
description: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
655
1073
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1074
|
+
type: z.ZodLiteral<"long_text">;
|
|
656
1075
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
657
1076
|
}, z.core.$strip>, z.ZodObject<{
|
|
658
|
-
type: z.ZodLiteral<"nested_selection">;
|
|
659
1077
|
title: z.ZodString;
|
|
660
1078
|
description: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
661
1080
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
type: z.ZodLiteral<"nested_selection">;
|
|
662
1082
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
663
1083
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
664
|
-
type: z.ZodLiteral<"annotation">;
|
|
665
1084
|
title: z.ZodString;
|
|
666
1085
|
description: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
667
1087
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1088
|
+
type: z.ZodLiteral<"annotation">;
|
|
668
1089
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
669
1090
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
670
|
-
}, 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>>]>>>>;
|
|
671
1141
|
onSectionChange: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodNumber], null>, z.ZodVoid>>;
|
|
672
1142
|
onClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodVoid>>;
|
|
673
1143
|
sections: z.ZodArray<z.ZodObject<{
|
|
@@ -697,6 +1167,13 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
697
1167
|
dark: "dark";
|
|
698
1168
|
system: "system";
|
|
699
1169
|
}>>;
|
|
1170
|
+
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
1171
|
+
rtl: z.ZodBoolean;
|
|
1172
|
+
previousButton: z.ZodEnum<{
|
|
1173
|
+
never: "never";
|
|
1174
|
+
always: "always";
|
|
1175
|
+
auto: "auto";
|
|
1176
|
+
}>;
|
|
700
1177
|
}, z.core.$strip>;
|
|
701
1178
|
selectedPosition: z.ZodEnum<{
|
|
702
1179
|
"top-left": "top-left";
|