@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
|
@@ -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";
|
|
@@ -282,6 +289,415 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
282
289
|
type: z.ZodLiteral<"annotation">;
|
|
283
290
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
284
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>>;
|
|
285
701
|
}, z.core.$strip>, z.ZodObject<{
|
|
286
702
|
id: z.ZodString;
|
|
287
703
|
title: z.ZodString;
|
|
@@ -720,7 +1136,56 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
720
1136
|
type: z.ZodLiteral<"annotation">;
|
|
721
1137
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
722
1138
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
723
|
-
}, 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>>]>>>;
|
|
724
1189
|
}, z.core.$strip>;
|
|
725
1190
|
frequencyAndSchedulingProperties: z.ZodObject<{
|
|
726
1191
|
surveyType: z.ZodEnum<{
|
|
@@ -943,6 +1408,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
943
1408
|
dark: "dark";
|
|
944
1409
|
system: "system";
|
|
945
1410
|
}>>;
|
|
1411
|
+
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
1412
|
+
rtl: z.ZodBoolean;
|
|
1413
|
+
previousButton: z.ZodEnum<{
|
|
1414
|
+
never: "never";
|
|
1415
|
+
always: "always";
|
|
1416
|
+
auto: "auto";
|
|
1417
|
+
}>;
|
|
946
1418
|
}, z.core.$strip>;
|
|
947
1419
|
selectedPosition: z.ZodEnum<{
|
|
948
1420
|
"top-left": "top-left";
|
|
@@ -39,6 +39,16 @@ export declare const ShareableModes: {
|
|
|
39
39
|
readonly DARK: "dark";
|
|
40
40
|
readonly SYSTEM: "system";
|
|
41
41
|
};
|
|
42
|
+
export declare const previousButtonModeSchema: z.ZodEnum<{
|
|
43
|
+
never: "never";
|
|
44
|
+
always: "always";
|
|
45
|
+
auto: "auto";
|
|
46
|
+
}>;
|
|
47
|
+
export declare const PreviousButtonModes: {
|
|
48
|
+
readonly NEVER: "never";
|
|
49
|
+
readonly ALWAYS: "always";
|
|
50
|
+
readonly AUTO: "auto";
|
|
51
|
+
};
|
|
42
52
|
export declare const featureSettingsSchema: z.ZodObject<{
|
|
43
53
|
darkOverlay: z.ZodBoolean;
|
|
44
54
|
closeButton: z.ZodBoolean;
|
|
@@ -52,6 +62,13 @@ export declare const featureSettingsSchema: z.ZodObject<{
|
|
|
52
62
|
dark: "dark";
|
|
53
63
|
system: "system";
|
|
54
64
|
}>>;
|
|
65
|
+
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
66
|
+
rtl: z.ZodBoolean;
|
|
67
|
+
previousButton: z.ZodEnum<{
|
|
68
|
+
never: "never";
|
|
69
|
+
always: "always";
|
|
70
|
+
auto: "auto";
|
|
71
|
+
}>;
|
|
55
72
|
}, z.core.$strip>;
|
|
56
73
|
export declare const themeColorsSchema: z.ZodObject<{
|
|
57
74
|
theme: z.ZodOptional<z.ZodString>;
|
|
@@ -86,6 +103,13 @@ export declare const themeConfigurationSchema: z.ZodObject<{
|
|
|
86
103
|
dark: "dark";
|
|
87
104
|
system: "system";
|
|
88
105
|
}>>;
|
|
106
|
+
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
107
|
+
rtl: z.ZodBoolean;
|
|
108
|
+
previousButton: z.ZodEnum<{
|
|
109
|
+
never: "never";
|
|
110
|
+
always: "always";
|
|
111
|
+
auto: "auto";
|
|
112
|
+
}>;
|
|
89
113
|
}, z.core.$strip>;
|
|
90
114
|
selectedPosition: z.ZodEnum<{
|
|
91
115
|
"top-left": "top-left";
|
|
@@ -113,6 +137,7 @@ export declare const themeConfigurationSchema: z.ZodObject<{
|
|
|
113
137
|
export type Position = z.infer<typeof positionSchema>;
|
|
114
138
|
export type ThemeMode = z.infer<typeof themeModeSchema>;
|
|
115
139
|
export type ShareableMode = z.infer<typeof shareableModeSchema>;
|
|
140
|
+
export type PreviousButtonMode = z.infer<typeof previousButtonModeSchema>;
|
|
116
141
|
export type FeatureSettings = z.infer<typeof featureSettingsSchema>;
|
|
117
142
|
export type ThemeColors = z.infer<typeof themeColorsSchema>;
|
|
118
143
|
export type Themes = z.infer<typeof themesSchema>;
|