@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
|
@@ -128,6 +128,13 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
|
128
128
|
dark: "dark";
|
|
129
129
|
system: "system";
|
|
130
130
|
}>>;
|
|
131
|
+
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
132
|
+
rtl: z.ZodBoolean;
|
|
133
|
+
previousButton: z.ZodEnum<{
|
|
134
|
+
never: "never";
|
|
135
|
+
always: "always";
|
|
136
|
+
auto: "auto";
|
|
137
|
+
}>;
|
|
131
138
|
}, z.core.$strip>;
|
|
132
139
|
selectedPosition: z.ZodEnum<{
|
|
133
140
|
"top-left": "top-left";
|
|
@@ -170,6 +177,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
170
177
|
id: z.ZodString;
|
|
171
178
|
title: z.ZodString;
|
|
172
179
|
description: z.ZodOptional<z.ZodString>;
|
|
180
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
173
181
|
describe: z.ZodOptional<z.ZodString>;
|
|
174
182
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
175
183
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -235,6 +243,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
235
243
|
id: z.ZodString;
|
|
236
244
|
title: z.ZodString;
|
|
237
245
|
description: z.ZodOptional<z.ZodString>;
|
|
246
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
238
247
|
describe: z.ZodOptional<z.ZodString>;
|
|
239
248
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
240
249
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -280,10 +289,420 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
280
289
|
type: z.ZodLiteral<"annotation">;
|
|
281
290
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
282
291
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
+
id: z.ZodString;
|
|
294
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
295
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
296
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
297
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
298
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
299
|
+
type: z.ZodEnum<{
|
|
300
|
+
required: "required";
|
|
301
|
+
min: "min";
|
|
302
|
+
max: "max";
|
|
303
|
+
minLength: "minLength";
|
|
304
|
+
maxLength: "maxLength";
|
|
305
|
+
pattern: "pattern";
|
|
306
|
+
email: "email";
|
|
307
|
+
url: "url";
|
|
308
|
+
custom: "custom";
|
|
309
|
+
}>;
|
|
310
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
311
|
+
message: z.ZodOptional<z.ZodString>;
|
|
312
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
313
|
+
}, z.core.$strip>>>>;
|
|
314
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
315
|
+
field: z.ZodString;
|
|
316
|
+
operator: z.ZodEnum<{
|
|
317
|
+
equals: "equals";
|
|
318
|
+
not_equals: "not_equals";
|
|
319
|
+
contains: "contains";
|
|
320
|
+
not_contains: "not_contains";
|
|
321
|
+
greater_than: "greater_than";
|
|
322
|
+
less_than: "less_than";
|
|
323
|
+
is_empty: "is_empty";
|
|
324
|
+
is_not_empty: "is_not_empty";
|
|
325
|
+
}>;
|
|
326
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
327
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
328
|
+
}, z.core.$strip>>>>;
|
|
329
|
+
isFixed: z.ZodBoolean;
|
|
330
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
331
|
+
status: z.ZodEnum<{
|
|
332
|
+
D: "D";
|
|
333
|
+
P: "P";
|
|
334
|
+
A: "A";
|
|
335
|
+
S: "S";
|
|
336
|
+
}>;
|
|
337
|
+
type: z.ZodLiteral<"welcome">;
|
|
338
|
+
title: z.ZodString;
|
|
339
|
+
description: z.ZodOptional<z.ZodString>;
|
|
340
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
341
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
342
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
343
|
+
id: z.ZodString;
|
|
344
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
345
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
346
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
347
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
348
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
|
+
type: z.ZodEnum<{
|
|
350
|
+
required: "required";
|
|
351
|
+
min: "min";
|
|
352
|
+
max: "max";
|
|
353
|
+
minLength: "minLength";
|
|
354
|
+
maxLength: "maxLength";
|
|
355
|
+
pattern: "pattern";
|
|
356
|
+
email: "email";
|
|
357
|
+
url: "url";
|
|
358
|
+
custom: "custom";
|
|
359
|
+
}>;
|
|
360
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
361
|
+
message: z.ZodOptional<z.ZodString>;
|
|
362
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
363
|
+
}, z.core.$strip>>>>;
|
|
364
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
365
|
+
field: z.ZodString;
|
|
366
|
+
operator: z.ZodEnum<{
|
|
367
|
+
equals: "equals";
|
|
368
|
+
not_equals: "not_equals";
|
|
369
|
+
contains: "contains";
|
|
370
|
+
not_contains: "not_contains";
|
|
371
|
+
greater_than: "greater_than";
|
|
372
|
+
less_than: "less_than";
|
|
373
|
+
is_empty: "is_empty";
|
|
374
|
+
is_not_empty: "is_not_empty";
|
|
375
|
+
}>;
|
|
376
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
377
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
378
|
+
}, z.core.$strip>>>>;
|
|
379
|
+
isFixed: z.ZodBoolean;
|
|
380
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
381
|
+
status: z.ZodEnum<{
|
|
382
|
+
D: "D";
|
|
383
|
+
P: "P";
|
|
384
|
+
A: "A";
|
|
385
|
+
S: "S";
|
|
386
|
+
}>;
|
|
387
|
+
type: z.ZodLiteral<"thank_you">;
|
|
388
|
+
title: z.ZodString;
|
|
389
|
+
description: z.ZodOptional<z.ZodString>;
|
|
390
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
391
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
393
|
+
id: z.ZodString;
|
|
394
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
395
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
396
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
397
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
398
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
399
|
+
type: z.ZodEnum<{
|
|
400
|
+
required: "required";
|
|
401
|
+
min: "min";
|
|
402
|
+
max: "max";
|
|
403
|
+
minLength: "minLength";
|
|
404
|
+
maxLength: "maxLength";
|
|
405
|
+
pattern: "pattern";
|
|
406
|
+
email: "email";
|
|
407
|
+
url: "url";
|
|
408
|
+
custom: "custom";
|
|
409
|
+
}>;
|
|
410
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
411
|
+
message: z.ZodOptional<z.ZodString>;
|
|
412
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
413
|
+
}, z.core.$strip>>>>;
|
|
414
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
415
|
+
field: z.ZodString;
|
|
416
|
+
operator: z.ZodEnum<{
|
|
417
|
+
equals: "equals";
|
|
418
|
+
not_equals: "not_equals";
|
|
419
|
+
contains: "contains";
|
|
420
|
+
not_contains: "not_contains";
|
|
421
|
+
greater_than: "greater_than";
|
|
422
|
+
less_than: "less_than";
|
|
423
|
+
is_empty: "is_empty";
|
|
424
|
+
is_not_empty: "is_not_empty";
|
|
425
|
+
}>;
|
|
426
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
427
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
428
|
+
}, z.core.$strip>>>>;
|
|
429
|
+
isFixed: z.ZodBoolean;
|
|
430
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
431
|
+
status: z.ZodEnum<{
|
|
432
|
+
D: "D";
|
|
433
|
+
P: "P";
|
|
434
|
+
A: "A";
|
|
435
|
+
S: "S";
|
|
436
|
+
}>;
|
|
437
|
+
type: z.ZodLiteral<"message_panel">;
|
|
438
|
+
title: z.ZodString;
|
|
439
|
+
description: z.ZodOptional<z.ZodString>;
|
|
440
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
441
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
442
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
title: z.ZodString;
|
|
445
|
+
description: z.ZodOptional<z.ZodString>;
|
|
446
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
447
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
448
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
449
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
450
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
451
|
+
type: z.ZodEnum<{
|
|
452
|
+
required: "required";
|
|
453
|
+
min: "min";
|
|
454
|
+
max: "max";
|
|
455
|
+
minLength: "minLength";
|
|
456
|
+
maxLength: "maxLength";
|
|
457
|
+
pattern: "pattern";
|
|
458
|
+
email: "email";
|
|
459
|
+
url: "url";
|
|
460
|
+
custom: "custom";
|
|
461
|
+
}>;
|
|
462
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
463
|
+
message: z.ZodOptional<z.ZodString>;
|
|
464
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
465
|
+
}, z.core.$strip>>>>;
|
|
466
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
467
|
+
field: z.ZodString;
|
|
468
|
+
operator: z.ZodEnum<{
|
|
469
|
+
equals: "equals";
|
|
470
|
+
not_equals: "not_equals";
|
|
471
|
+
contains: "contains";
|
|
472
|
+
not_contains: "not_contains";
|
|
473
|
+
greater_than: "greater_than";
|
|
474
|
+
less_than: "less_than";
|
|
475
|
+
is_empty: "is_empty";
|
|
476
|
+
is_not_empty: "is_not_empty";
|
|
477
|
+
}>;
|
|
478
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
479
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>>>>;
|
|
481
|
+
isFixed: z.ZodBoolean;
|
|
482
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
483
|
+
status: z.ZodEnum<{
|
|
484
|
+
D: "D";
|
|
485
|
+
P: "P";
|
|
486
|
+
A: "A";
|
|
487
|
+
S: "S";
|
|
488
|
+
}>;
|
|
489
|
+
type: z.ZodLiteral<"yes_no">;
|
|
490
|
+
yesLabel: z.ZodOptional<z.ZodString>;
|
|
491
|
+
noLabel: z.ZodOptional<z.ZodString>;
|
|
492
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
493
|
+
horizontal: "horizontal";
|
|
494
|
+
vertical: "vertical";
|
|
495
|
+
}>>;
|
|
496
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
497
|
+
id: z.ZodString;
|
|
498
|
+
title: z.ZodString;
|
|
499
|
+
description: z.ZodOptional<z.ZodString>;
|
|
500
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
501
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
502
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
503
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
504
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
505
|
+
type: z.ZodEnum<{
|
|
506
|
+
required: "required";
|
|
507
|
+
min: "min";
|
|
508
|
+
max: "max";
|
|
509
|
+
minLength: "minLength";
|
|
510
|
+
maxLength: "maxLength";
|
|
511
|
+
pattern: "pattern";
|
|
512
|
+
email: "email";
|
|
513
|
+
url: "url";
|
|
514
|
+
custom: "custom";
|
|
515
|
+
}>;
|
|
516
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
517
|
+
message: z.ZodOptional<z.ZodString>;
|
|
518
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
519
|
+
}, z.core.$strip>>>>;
|
|
520
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
521
|
+
field: z.ZodString;
|
|
522
|
+
operator: z.ZodEnum<{
|
|
523
|
+
equals: "equals";
|
|
524
|
+
not_equals: "not_equals";
|
|
525
|
+
contains: "contains";
|
|
526
|
+
not_contains: "not_contains";
|
|
527
|
+
greater_than: "greater_than";
|
|
528
|
+
less_than: "less_than";
|
|
529
|
+
is_empty: "is_empty";
|
|
530
|
+
is_not_empty: "is_not_empty";
|
|
531
|
+
}>;
|
|
532
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
533
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
534
|
+
}, z.core.$strip>>>>;
|
|
535
|
+
isFixed: z.ZodBoolean;
|
|
536
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
537
|
+
status: z.ZodEnum<{
|
|
538
|
+
D: "D";
|
|
539
|
+
P: "P";
|
|
540
|
+
A: "A";
|
|
541
|
+
S: "S";
|
|
542
|
+
}>;
|
|
543
|
+
type: z.ZodLiteral<"rating_matrix">;
|
|
544
|
+
statements: z.ZodArray<z.ZodObject<{
|
|
545
|
+
id: z.ZodString;
|
|
546
|
+
value: z.ZodString;
|
|
547
|
+
label: z.ZodString;
|
|
548
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
549
|
+
}, z.core.$strip>>;
|
|
550
|
+
scale: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
551
|
+
kind: z.ZodLiteral<"likert">;
|
|
552
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
553
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
554
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
555
|
+
kind: z.ZodLiteral<"numerical">;
|
|
556
|
+
pointCount: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
|
|
557
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
558
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
559
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
560
|
+
kind: z.ZodLiteral<"custom">;
|
|
561
|
+
scalePoints: z.ZodArray<z.ZodObject<{
|
|
562
|
+
id: z.ZodString;
|
|
563
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
564
|
+
label: z.ZodString;
|
|
565
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
566
|
+
}, z.core.$strip>>;
|
|
567
|
+
}, z.core.$strip>], "kind">;
|
|
568
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
569
|
+
star: "star";
|
|
570
|
+
emoji: "emoji";
|
|
571
|
+
radio: "radio";
|
|
572
|
+
button: "button";
|
|
573
|
+
}>>;
|
|
574
|
+
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
575
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
576
|
+
id: z.ZodString;
|
|
577
|
+
title: z.ZodString;
|
|
578
|
+
description: z.ZodOptional<z.ZodString>;
|
|
579
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
580
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
581
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
582
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
583
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
584
|
+
type: z.ZodEnum<{
|
|
585
|
+
required: "required";
|
|
586
|
+
min: "min";
|
|
587
|
+
max: "max";
|
|
588
|
+
minLength: "minLength";
|
|
589
|
+
maxLength: "maxLength";
|
|
590
|
+
pattern: "pattern";
|
|
591
|
+
email: "email";
|
|
592
|
+
url: "url";
|
|
593
|
+
custom: "custom";
|
|
594
|
+
}>;
|
|
595
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
596
|
+
message: z.ZodOptional<z.ZodString>;
|
|
597
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
598
|
+
}, z.core.$strip>>>>;
|
|
599
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
600
|
+
field: z.ZodString;
|
|
601
|
+
operator: z.ZodEnum<{
|
|
602
|
+
equals: "equals";
|
|
603
|
+
not_equals: "not_equals";
|
|
604
|
+
contains: "contains";
|
|
605
|
+
not_contains: "not_contains";
|
|
606
|
+
greater_than: "greater_than";
|
|
607
|
+
less_than: "less_than";
|
|
608
|
+
is_empty: "is_empty";
|
|
609
|
+
is_not_empty: "is_not_empty";
|
|
610
|
+
}>;
|
|
611
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
612
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
613
|
+
}, z.core.$strip>>>>;
|
|
614
|
+
isFixed: z.ZodBoolean;
|
|
615
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
616
|
+
status: z.ZodEnum<{
|
|
617
|
+
D: "D";
|
|
618
|
+
P: "P";
|
|
619
|
+
A: "A";
|
|
620
|
+
S: "S";
|
|
621
|
+
}>;
|
|
622
|
+
type: z.ZodLiteral<"matrix_single_choice">;
|
|
623
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
624
|
+
id: z.ZodString;
|
|
625
|
+
value: z.ZodString;
|
|
626
|
+
label: z.ZodString;
|
|
627
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>>;
|
|
629
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
630
|
+
id: z.ZodString;
|
|
631
|
+
value: z.ZodString;
|
|
632
|
+
label: z.ZodString;
|
|
633
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
634
|
+
}, z.core.$strip>>;
|
|
635
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
636
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
637
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
638
|
+
id: z.ZodString;
|
|
639
|
+
title: z.ZodString;
|
|
640
|
+
description: z.ZodOptional<z.ZodString>;
|
|
641
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
642
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
643
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
644
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
645
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
646
|
+
type: z.ZodEnum<{
|
|
647
|
+
required: "required";
|
|
648
|
+
min: "min";
|
|
649
|
+
max: "max";
|
|
650
|
+
minLength: "minLength";
|
|
651
|
+
maxLength: "maxLength";
|
|
652
|
+
pattern: "pattern";
|
|
653
|
+
email: "email";
|
|
654
|
+
url: "url";
|
|
655
|
+
custom: "custom";
|
|
656
|
+
}>;
|
|
657
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
658
|
+
message: z.ZodOptional<z.ZodString>;
|
|
659
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
660
|
+
}, z.core.$strip>>>>;
|
|
661
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
662
|
+
field: z.ZodString;
|
|
663
|
+
operator: z.ZodEnum<{
|
|
664
|
+
equals: "equals";
|
|
665
|
+
not_equals: "not_equals";
|
|
666
|
+
contains: "contains";
|
|
667
|
+
not_contains: "not_contains";
|
|
668
|
+
greater_than: "greater_than";
|
|
669
|
+
less_than: "less_than";
|
|
670
|
+
is_empty: "is_empty";
|
|
671
|
+
is_not_empty: "is_not_empty";
|
|
672
|
+
}>;
|
|
673
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
674
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
675
|
+
}, z.core.$strip>>>>;
|
|
676
|
+
isFixed: z.ZodBoolean;
|
|
677
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
678
|
+
status: z.ZodEnum<{
|
|
679
|
+
D: "D";
|
|
680
|
+
P: "P";
|
|
681
|
+
A: "A";
|
|
682
|
+
S: "S";
|
|
683
|
+
}>;
|
|
684
|
+
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
685
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
686
|
+
id: z.ZodString;
|
|
687
|
+
value: z.ZodString;
|
|
688
|
+
label: z.ZodString;
|
|
689
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
690
|
+
}, z.core.$strip>>;
|
|
691
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
692
|
+
id: z.ZodString;
|
|
693
|
+
value: z.ZodString;
|
|
694
|
+
label: z.ZodString;
|
|
695
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
696
|
+
}, z.core.$strip>>;
|
|
697
|
+
minSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
698
|
+
maxSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
699
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
700
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
283
701
|
}, z.core.$strip>, z.ZodObject<{
|
|
284
702
|
id: z.ZodString;
|
|
285
703
|
title: z.ZodString;
|
|
286
704
|
description: z.ZodOptional<z.ZodString>;
|
|
705
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
287
706
|
describe: z.ZodOptional<z.ZodString>;
|
|
288
707
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
289
708
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -351,6 +770,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
351
770
|
id: z.ZodString;
|
|
352
771
|
title: z.ZodString;
|
|
353
772
|
description: z.ZodOptional<z.ZodString>;
|
|
773
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
354
774
|
describe: z.ZodOptional<z.ZodString>;
|
|
355
775
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
356
776
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -419,6 +839,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
419
839
|
id: z.ZodString;
|
|
420
840
|
title: z.ZodString;
|
|
421
841
|
description: z.ZodOptional<z.ZodString>;
|
|
842
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
422
843
|
describe: z.ZodOptional<z.ZodString>;
|
|
423
844
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
424
845
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -472,6 +893,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
472
893
|
id: z.ZodString;
|
|
473
894
|
title: z.ZodString;
|
|
474
895
|
description: z.ZodOptional<z.ZodString>;
|
|
896
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
475
897
|
describe: z.ZodOptional<z.ZodString>;
|
|
476
898
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
477
899
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -522,14 +944,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
522
944
|
regexPattern: z.ZodOptional<z.ZodString>;
|
|
523
945
|
enableEnhanceWithAi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
524
946
|
promptTemplate: z.ZodOptional<z.ZodString>;
|
|
525
|
-
cooldownSeconds: z.ZodOptional<z.ZodNumber>;
|
|
526
|
-
maxEnhancements: z.ZodOptional<z.ZodNumber>;
|
|
527
947
|
maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
|
|
528
948
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
529
949
|
}, z.core.$strip>, z.ZodObject<{
|
|
530
950
|
id: z.ZodString;
|
|
531
951
|
title: z.ZodString;
|
|
532
952
|
description: z.ZodOptional<z.ZodString>;
|
|
953
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
533
954
|
describe: z.ZodOptional<z.ZodString>;
|
|
534
955
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
535
956
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -579,14 +1000,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
579
1000
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
580
1001
|
enableEnhanceWithAi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
581
1002
|
promptTemplate: z.ZodOptional<z.ZodString>;
|
|
582
|
-
cooldownSeconds: z.ZodOptional<z.ZodNumber>;
|
|
583
|
-
maxEnhancements: z.ZodOptional<z.ZodNumber>;
|
|
584
1003
|
maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
|
|
585
1004
|
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
586
1005
|
}, z.core.$strip>, z.ZodObject<{
|
|
587
1006
|
id: z.ZodString;
|
|
588
1007
|
title: z.ZodString;
|
|
589
1008
|
description: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
590
1010
|
describe: z.ZodOptional<z.ZodString>;
|
|
591
1011
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
592
1012
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -658,57 +1078,114 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
658
1078
|
isFixed: z.ZodDefault<z.ZodBoolean>;
|
|
659
1079
|
}, z.core.$strip>>;
|
|
660
1080
|
translations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
661
|
-
type: z.ZodLiteral<"rating">;
|
|
662
1081
|
title: z.ZodString;
|
|
663
1082
|
description: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
664
1084
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1085
|
+
type: z.ZodLiteral<"rating">;
|
|
665
1086
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
666
1087
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
667
1088
|
}, z.core.$strip>, z.ZodObject<{
|
|
668
|
-
type: z.ZodLiteral<"single_choice">;
|
|
669
1089
|
title: z.ZodString;
|
|
670
1090
|
description: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
671
1092
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
type: z.ZodLiteral<"single_choice">;
|
|
672
1094
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
673
1095
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
674
|
-
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
675
1096
|
title: z.ZodString;
|
|
676
1097
|
description: z.ZodOptional<z.ZodString>;
|
|
1098
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
677
1099
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1100
|
+
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
678
1101
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
679
1102
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
680
|
-
type: z.ZodLiteral<"nps">;
|
|
681
1103
|
title: z.ZodString;
|
|
682
1104
|
description: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
683
1106
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
type: z.ZodLiteral<"nps">;
|
|
684
1108
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
685
1109
|
maxLabel: z.ZodOptional<z.ZodString>;
|
|
686
1110
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
687
|
-
type: z.ZodLiteral<"short_answer">;
|
|
688
1111
|
title: z.ZodString;
|
|
689
1112
|
description: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
690
1114
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
type: z.ZodLiteral<"short_answer">;
|
|
691
1116
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
692
1117
|
}, z.core.$strip>, z.ZodObject<{
|
|
693
|
-
type: z.ZodLiteral<"long_text">;
|
|
694
1118
|
title: z.ZodString;
|
|
695
1119
|
description: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
696
1121
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
type: z.ZodLiteral<"long_text">;
|
|
697
1123
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
698
1124
|
}, z.core.$strip>, z.ZodObject<{
|
|
699
|
-
type: z.ZodLiteral<"nested_selection">;
|
|
700
1125
|
title: z.ZodString;
|
|
701
1126
|
description: z.ZodOptional<z.ZodString>;
|
|
1127
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
702
1128
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1129
|
+
type: z.ZodLiteral<"nested_selection">;
|
|
703
1130
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
704
1131
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
705
|
-
type: z.ZodLiteral<"annotation">;
|
|
706
1132
|
title: z.ZodString;
|
|
707
1133
|
description: z.ZodOptional<z.ZodString>;
|
|
1134
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
708
1135
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
type: z.ZodLiteral<"annotation">;
|
|
709
1137
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
710
1138
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
711
|
-
}, z.core.$strip
|
|
1139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1140
|
+
title: z.ZodString;
|
|
1141
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1142
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1143
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1144
|
+
type: z.ZodLiteral<"welcome">;
|
|
1145
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1147
|
+
title: z.ZodString;
|
|
1148
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1149
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1150
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1151
|
+
type: z.ZodLiteral<"thank_you">;
|
|
1152
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1154
|
+
title: z.ZodString;
|
|
1155
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1157
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1158
|
+
type: z.ZodLiteral<"message_panel">;
|
|
1159
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1161
|
+
title: z.ZodString;
|
|
1162
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1163
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1164
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1165
|
+
type: z.ZodLiteral<"yes_no">;
|
|
1166
|
+
yesLabel: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
noLabel: z.ZodOptional<z.ZodString>;
|
|
1168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1169
|
+
title: z.ZodString;
|
|
1170
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
type: z.ZodLiteral<"rating_matrix">;
|
|
1174
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
1176
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1177
|
+
title: z.ZodString;
|
|
1178
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1179
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
type: z.ZodLiteral<"matrix_single_choice">;
|
|
1182
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1183
|
+
title: z.ZodString;
|
|
1184
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
1188
|
+
}, z.core.$catchall<z.ZodString>>]>>>;
|
|
712
1189
|
}, z.core.$strip>;
|
|
713
1190
|
frequencyAndSchedulingProperties: z.ZodObject<{
|
|
714
1191
|
surveyType: z.ZodEnum<{
|
|
@@ -931,6 +1408,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
931
1408
|
dark: "dark";
|
|
932
1409
|
system: "system";
|
|
933
1410
|
}>>;
|
|
1411
|
+
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
1412
|
+
rtl: z.ZodBoolean;
|
|
1413
|
+
previousButton: z.ZodEnum<{
|
|
1414
|
+
never: "never";
|
|
1415
|
+
always: "always";
|
|
1416
|
+
auto: "auto";
|
|
1417
|
+
}>;
|
|
934
1418
|
}, z.core.$strip>;
|
|
935
1419
|
selectedPosition: z.ZodEnum<{
|
|
936
1420
|
"top-left": "top-left";
|