@openframe-org/criteria-set-protocol 2.0.16 → 2.0.18
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/README.md +1 -1
- package/dist/index.js +17 -7
- package/dist/v1/schemas/certification.d.ts +8 -8
- package/dist/v1/schemas/common.d.ts +2 -2
- package/dist/v1/schemas/criteria-tree.d.ts +358 -166
- package/dist/v1/schemas/criterion.d.ts +64 -29
- package/dist/v1/schemas/metadata.d.ts +2 -2
- package/dist/v1/schemas/response.d.ts +2 -2
- package/dist/v1/schemas/task-group.d.ts +48 -19
- package/dist/v1/schemas/task-item.d.ts +46 -5
- package/dist/v1/schemas/task-item.js +1 -1
- package/dist/v1/schemas/task.d.ts +34 -11
- package/dist/v1/schemas/theme.d.ts +82 -41
- package/dist/v1/types/express.d.ts +0 -1
- package/dist/v1/utils.d.ts +6 -761
- package/package.json +1 -1
|
@@ -327,6 +327,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
327
327
|
}>>;
|
|
328
328
|
definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
329
329
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
330
|
+
label: z.ZodOptional<z.ZodString>;
|
|
330
331
|
}, {
|
|
331
332
|
type: z.ZodLiteral<"select-single">;
|
|
332
333
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -357,6 +358,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
357
358
|
intro?: string | undefined;
|
|
358
359
|
outro?: string | undefined;
|
|
359
360
|
}[];
|
|
361
|
+
label?: string | undefined;
|
|
360
362
|
}, {
|
|
361
363
|
type: "select-single";
|
|
362
364
|
options: {
|
|
@@ -366,8 +368,10 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
366
368
|
intro?: string | undefined;
|
|
367
369
|
outro?: string | undefined;
|
|
368
370
|
}[];
|
|
371
|
+
label?: string | undefined;
|
|
369
372
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
370
373
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
374
|
+
label: z.ZodOptional<z.ZodString>;
|
|
371
375
|
}, {
|
|
372
376
|
type: z.ZodLiteral<"select-multiple">;
|
|
373
377
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -398,6 +402,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
398
402
|
intro?: string | undefined;
|
|
399
403
|
outro?: string | undefined;
|
|
400
404
|
}[];
|
|
405
|
+
label?: string | undefined;
|
|
401
406
|
}, {
|
|
402
407
|
type: "select-multiple";
|
|
403
408
|
options: {
|
|
@@ -407,8 +412,10 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
407
412
|
intro?: string | undefined;
|
|
408
413
|
outro?: string | undefined;
|
|
409
414
|
}[];
|
|
415
|
+
label?: string | undefined;
|
|
410
416
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
411
417
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
418
|
+
label: z.ZodOptional<z.ZodString>;
|
|
412
419
|
}, {
|
|
413
420
|
type: z.ZodLiteral<"number">;
|
|
414
421
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -416,16 +423,19 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
416
423
|
step: z.ZodOptional<z.ZodNumber>;
|
|
417
424
|
}>, "strip", z.ZodTypeAny, {
|
|
418
425
|
type: "number";
|
|
426
|
+
label?: string | undefined;
|
|
419
427
|
minimum?: number | undefined;
|
|
420
428
|
maximum?: number | undefined;
|
|
421
429
|
step?: number | undefined;
|
|
422
430
|
}, {
|
|
423
431
|
type: "number";
|
|
432
|
+
label?: string | undefined;
|
|
424
433
|
minimum?: number | undefined;
|
|
425
434
|
maximum?: number | undefined;
|
|
426
435
|
step?: number | undefined;
|
|
427
436
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
428
437
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
438
|
+
label: z.ZodOptional<z.ZodString>;
|
|
429
439
|
}, {
|
|
430
440
|
type: z.ZodLiteral<"boolean">;
|
|
431
441
|
labels: z.ZodOptional<z.ZodObject<{
|
|
@@ -440,19 +450,20 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
440
450
|
}>>;
|
|
441
451
|
}>, "strip", z.ZodTypeAny, {
|
|
442
452
|
type: "boolean";
|
|
453
|
+
label?: string | undefined;
|
|
443
454
|
labels?: {
|
|
444
455
|
false: string;
|
|
445
456
|
true: string;
|
|
446
457
|
} | undefined;
|
|
447
458
|
}, {
|
|
448
459
|
type: "boolean";
|
|
460
|
+
label?: string | undefined;
|
|
449
461
|
labels?: {
|
|
450
462
|
false: string;
|
|
451
463
|
true: string;
|
|
452
464
|
} | undefined;
|
|
453
465
|
}>]>;
|
|
454
466
|
description: z.ZodOptional<z.ZodString>;
|
|
455
|
-
providedData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
|
|
456
467
|
valueReference: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
|
|
457
468
|
options: z.ZodOptional<z.ZodObject<{
|
|
458
469
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -462,8 +473,8 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
462
473
|
hideCode?: boolean | undefined;
|
|
463
474
|
}>>;
|
|
464
475
|
}>, "strip", z.ZodTypeAny, {
|
|
465
|
-
type: "task-item";
|
|
466
476
|
code: string;
|
|
477
|
+
type: "task-item";
|
|
467
478
|
definition: {
|
|
468
479
|
type: "select-single";
|
|
469
480
|
options: {
|
|
@@ -473,6 +484,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
473
484
|
intro?: string | undefined;
|
|
474
485
|
outro?: string | undefined;
|
|
475
486
|
}[];
|
|
487
|
+
label?: string | undefined;
|
|
476
488
|
} | {
|
|
477
489
|
type: "select-multiple";
|
|
478
490
|
options: {
|
|
@@ -482,13 +494,16 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
482
494
|
intro?: string | undefined;
|
|
483
495
|
outro?: string | undefined;
|
|
484
496
|
}[];
|
|
497
|
+
label?: string | undefined;
|
|
485
498
|
} | {
|
|
486
499
|
type: "number";
|
|
500
|
+
label?: string | undefined;
|
|
487
501
|
minimum?: number | undefined;
|
|
488
502
|
maximum?: number | undefined;
|
|
489
503
|
step?: number | undefined;
|
|
490
504
|
} | {
|
|
491
505
|
type: "boolean";
|
|
506
|
+
label?: string | undefined;
|
|
492
507
|
labels?: {
|
|
493
508
|
false: string;
|
|
494
509
|
true: string;
|
|
@@ -530,10 +545,9 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
530
545
|
})[] | undefined;
|
|
531
546
|
sortOrder?: number | undefined;
|
|
532
547
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
533
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
534
548
|
}, {
|
|
535
|
-
type: "task-item";
|
|
536
549
|
code: string;
|
|
550
|
+
type: "task-item";
|
|
537
551
|
definition: {
|
|
538
552
|
type: "select-single";
|
|
539
553
|
options: {
|
|
@@ -543,6 +557,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
543
557
|
intro?: string | undefined;
|
|
544
558
|
outro?: string | undefined;
|
|
545
559
|
}[];
|
|
560
|
+
label?: string | undefined;
|
|
546
561
|
} | {
|
|
547
562
|
type: "select-multiple";
|
|
548
563
|
options: {
|
|
@@ -552,13 +567,16 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
552
567
|
intro?: string | undefined;
|
|
553
568
|
outro?: string | undefined;
|
|
554
569
|
}[];
|
|
570
|
+
label?: string | undefined;
|
|
555
571
|
} | {
|
|
556
572
|
type: "number";
|
|
573
|
+
label?: string | undefined;
|
|
557
574
|
minimum?: number | undefined;
|
|
558
575
|
maximum?: number | undefined;
|
|
559
576
|
step?: number | undefined;
|
|
560
577
|
} | {
|
|
561
578
|
type: "boolean";
|
|
579
|
+
label?: string | undefined;
|
|
562
580
|
labels?: {
|
|
563
581
|
false: string;
|
|
564
582
|
true: string;
|
|
@@ -600,7 +618,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
600
618
|
})[] | undefined;
|
|
601
619
|
sortOrder?: number | undefined;
|
|
602
620
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
603
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
604
621
|
}>>, "many">;
|
|
605
622
|
options: z.ZodOptional<z.ZodObject<{
|
|
606
623
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -610,12 +627,12 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
610
627
|
hideCode?: boolean | undefined;
|
|
611
628
|
}>>;
|
|
612
629
|
}>, "strip", z.ZodTypeAny, {
|
|
613
|
-
type: "task";
|
|
614
630
|
code: string;
|
|
631
|
+
type: "task";
|
|
615
632
|
title: string;
|
|
616
633
|
items: {
|
|
617
|
-
type: "task-item";
|
|
618
634
|
code: string;
|
|
635
|
+
type: "task-item";
|
|
619
636
|
definition: {
|
|
620
637
|
type: "select-single";
|
|
621
638
|
options: {
|
|
@@ -625,6 +642,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
625
642
|
intro?: string | undefined;
|
|
626
643
|
outro?: string | undefined;
|
|
627
644
|
}[];
|
|
645
|
+
label?: string | undefined;
|
|
628
646
|
} | {
|
|
629
647
|
type: "select-multiple";
|
|
630
648
|
options: {
|
|
@@ -634,13 +652,16 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
634
652
|
intro?: string | undefined;
|
|
635
653
|
outro?: string | undefined;
|
|
636
654
|
}[];
|
|
655
|
+
label?: string | undefined;
|
|
637
656
|
} | {
|
|
638
657
|
type: "number";
|
|
658
|
+
label?: string | undefined;
|
|
639
659
|
minimum?: number | undefined;
|
|
640
660
|
maximum?: number | undefined;
|
|
641
661
|
step?: number | undefined;
|
|
642
662
|
} | {
|
|
643
663
|
type: "boolean";
|
|
664
|
+
label?: string | undefined;
|
|
644
665
|
labels?: {
|
|
645
666
|
false: string;
|
|
646
667
|
true: string;
|
|
@@ -682,7 +703,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
682
703
|
})[] | undefined;
|
|
683
704
|
sortOrder?: number | undefined;
|
|
684
705
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
685
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
686
706
|
}[];
|
|
687
707
|
data?: {
|
|
688
708
|
type?: "number" | "percentage" | undefined;
|
|
@@ -719,12 +739,12 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
719
739
|
})[] | undefined;
|
|
720
740
|
sortOrder?: number | undefined;
|
|
721
741
|
}, {
|
|
722
|
-
type: "task";
|
|
723
742
|
code: string;
|
|
743
|
+
type: "task";
|
|
724
744
|
title: string;
|
|
725
745
|
items: {
|
|
726
|
-
type: "task-item";
|
|
727
746
|
code: string;
|
|
747
|
+
type: "task-item";
|
|
728
748
|
definition: {
|
|
729
749
|
type: "select-single";
|
|
730
750
|
options: {
|
|
@@ -734,6 +754,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
734
754
|
intro?: string | undefined;
|
|
735
755
|
outro?: string | undefined;
|
|
736
756
|
}[];
|
|
757
|
+
label?: string | undefined;
|
|
737
758
|
} | {
|
|
738
759
|
type: "select-multiple";
|
|
739
760
|
options: {
|
|
@@ -743,13 +764,16 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
743
764
|
intro?: string | undefined;
|
|
744
765
|
outro?: string | undefined;
|
|
745
766
|
}[];
|
|
767
|
+
label?: string | undefined;
|
|
746
768
|
} | {
|
|
747
769
|
type: "number";
|
|
770
|
+
label?: string | undefined;
|
|
748
771
|
minimum?: number | undefined;
|
|
749
772
|
maximum?: number | undefined;
|
|
750
773
|
step?: number | undefined;
|
|
751
774
|
} | {
|
|
752
775
|
type: "boolean";
|
|
776
|
+
label?: string | undefined;
|
|
753
777
|
labels?: {
|
|
754
778
|
false: string;
|
|
755
779
|
true: string;
|
|
@@ -791,7 +815,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
791
815
|
})[] | undefined;
|
|
792
816
|
sortOrder?: number | undefined;
|
|
793
817
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
794
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
795
818
|
}[];
|
|
796
819
|
data?: {
|
|
797
820
|
type?: "number" | "percentage" | undefined;
|
|
@@ -839,16 +862,16 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
839
862
|
hideFromHierarchy?: boolean | undefined;
|
|
840
863
|
}>>;
|
|
841
864
|
}>, "strip", z.ZodTypeAny, {
|
|
842
|
-
type: "task-group";
|
|
843
865
|
code: string;
|
|
866
|
+
type: "task-group";
|
|
844
867
|
title: string;
|
|
845
868
|
items: {
|
|
846
|
-
type: "task";
|
|
847
869
|
code: string;
|
|
870
|
+
type: "task";
|
|
848
871
|
title: string;
|
|
849
872
|
items: {
|
|
850
|
-
type: "task-item";
|
|
851
873
|
code: string;
|
|
874
|
+
type: "task-item";
|
|
852
875
|
definition: {
|
|
853
876
|
type: "select-single";
|
|
854
877
|
options: {
|
|
@@ -858,6 +881,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
858
881
|
intro?: string | undefined;
|
|
859
882
|
outro?: string | undefined;
|
|
860
883
|
}[];
|
|
884
|
+
label?: string | undefined;
|
|
861
885
|
} | {
|
|
862
886
|
type: "select-multiple";
|
|
863
887
|
options: {
|
|
@@ -867,13 +891,16 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
867
891
|
intro?: string | undefined;
|
|
868
892
|
outro?: string | undefined;
|
|
869
893
|
}[];
|
|
894
|
+
label?: string | undefined;
|
|
870
895
|
} | {
|
|
871
896
|
type: "number";
|
|
897
|
+
label?: string | undefined;
|
|
872
898
|
minimum?: number | undefined;
|
|
873
899
|
maximum?: number | undefined;
|
|
874
900
|
step?: number | undefined;
|
|
875
901
|
} | {
|
|
876
902
|
type: "boolean";
|
|
903
|
+
label?: string | undefined;
|
|
877
904
|
labels?: {
|
|
878
905
|
false: string;
|
|
879
906
|
true: string;
|
|
@@ -915,7 +942,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
915
942
|
})[] | undefined;
|
|
916
943
|
sortOrder?: number | undefined;
|
|
917
944
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
918
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
919
945
|
}[];
|
|
920
946
|
data?: {
|
|
921
947
|
type?: "number" | "percentage" | undefined;
|
|
@@ -988,16 +1014,16 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
988
1014
|
sortOrder?: number | undefined;
|
|
989
1015
|
category?: string | undefined;
|
|
990
1016
|
}, {
|
|
991
|
-
type: "task-group";
|
|
992
1017
|
code: string;
|
|
1018
|
+
type: "task-group";
|
|
993
1019
|
title: string;
|
|
994
1020
|
items: {
|
|
995
|
-
type: "task";
|
|
996
1021
|
code: string;
|
|
1022
|
+
type: "task";
|
|
997
1023
|
title: string;
|
|
998
1024
|
items: {
|
|
999
|
-
type: "task-item";
|
|
1000
1025
|
code: string;
|
|
1026
|
+
type: "task-item";
|
|
1001
1027
|
definition: {
|
|
1002
1028
|
type: "select-single";
|
|
1003
1029
|
options: {
|
|
@@ -1007,6 +1033,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1007
1033
|
intro?: string | undefined;
|
|
1008
1034
|
outro?: string | undefined;
|
|
1009
1035
|
}[];
|
|
1036
|
+
label?: string | undefined;
|
|
1010
1037
|
} | {
|
|
1011
1038
|
type: "select-multiple";
|
|
1012
1039
|
options: {
|
|
@@ -1016,13 +1043,16 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1016
1043
|
intro?: string | undefined;
|
|
1017
1044
|
outro?: string | undefined;
|
|
1018
1045
|
}[];
|
|
1046
|
+
label?: string | undefined;
|
|
1019
1047
|
} | {
|
|
1020
1048
|
type: "number";
|
|
1049
|
+
label?: string | undefined;
|
|
1021
1050
|
minimum?: number | undefined;
|
|
1022
1051
|
maximum?: number | undefined;
|
|
1023
1052
|
step?: number | undefined;
|
|
1024
1053
|
} | {
|
|
1025
1054
|
type: "boolean";
|
|
1055
|
+
label?: string | undefined;
|
|
1026
1056
|
labels?: {
|
|
1027
1057
|
false: string;
|
|
1028
1058
|
true: string;
|
|
@@ -1064,7 +1094,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1064
1094
|
})[] | undefined;
|
|
1065
1095
|
sortOrder?: number | undefined;
|
|
1066
1096
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
1067
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
1068
1097
|
}[];
|
|
1069
1098
|
data?: {
|
|
1070
1099
|
type?: "number" | "percentage" | undefined;
|
|
@@ -21,6 +21,7 @@ export declare const pointOptionSchema: z.ZodObject<{
|
|
|
21
21
|
}>;
|
|
22
22
|
export declare const selectSingleTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
23
23
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
24
|
+
label: z.ZodOptional<z.ZodString>;
|
|
24
25
|
}, {
|
|
25
26
|
type: z.ZodLiteral<"select-single">;
|
|
26
27
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -51,6 +52,7 @@ export declare const selectSingleTypeSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
51
52
|
intro?: string | undefined;
|
|
52
53
|
outro?: string | undefined;
|
|
53
54
|
}[];
|
|
55
|
+
label?: string | undefined;
|
|
54
56
|
}, {
|
|
55
57
|
type: "select-single";
|
|
56
58
|
options: {
|
|
@@ -60,9 +62,11 @@ export declare const selectSingleTypeSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
60
62
|
intro?: string | undefined;
|
|
61
63
|
outro?: string | undefined;
|
|
62
64
|
}[];
|
|
65
|
+
label?: string | undefined;
|
|
63
66
|
}>;
|
|
64
67
|
export declare const selectMultipleTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
65
68
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
69
|
+
label: z.ZodOptional<z.ZodString>;
|
|
66
70
|
}, {
|
|
67
71
|
type: z.ZodLiteral<"select-multiple">;
|
|
68
72
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -93,6 +97,7 @@ export declare const selectMultipleTypeSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
93
97
|
intro?: string | undefined;
|
|
94
98
|
outro?: string | undefined;
|
|
95
99
|
}[];
|
|
100
|
+
label?: string | undefined;
|
|
96
101
|
}, {
|
|
97
102
|
type: "select-multiple";
|
|
98
103
|
options: {
|
|
@@ -102,9 +107,11 @@ export declare const selectMultipleTypeSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
102
107
|
intro?: string | undefined;
|
|
103
108
|
outro?: string | undefined;
|
|
104
109
|
}[];
|
|
110
|
+
label?: string | undefined;
|
|
105
111
|
}>;
|
|
106
112
|
export declare const numberTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
107
113
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
114
|
+
label: z.ZodOptional<z.ZodString>;
|
|
108
115
|
}, {
|
|
109
116
|
type: z.ZodLiteral<"number">;
|
|
110
117
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -112,17 +119,20 @@ export declare const numberTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
112
119
|
step: z.ZodOptional<z.ZodNumber>;
|
|
113
120
|
}>, "strip", z.ZodTypeAny, {
|
|
114
121
|
type: "number";
|
|
122
|
+
label?: string | undefined;
|
|
115
123
|
minimum?: number | undefined;
|
|
116
124
|
maximum?: number | undefined;
|
|
117
125
|
step?: number | undefined;
|
|
118
126
|
}, {
|
|
119
127
|
type: "number";
|
|
128
|
+
label?: string | undefined;
|
|
120
129
|
minimum?: number | undefined;
|
|
121
130
|
maximum?: number | undefined;
|
|
122
131
|
step?: number | undefined;
|
|
123
132
|
}>;
|
|
124
133
|
export declare const booleanTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
125
134
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
135
|
+
label: z.ZodOptional<z.ZodString>;
|
|
126
136
|
}, {
|
|
127
137
|
type: z.ZodLiteral<"boolean">;
|
|
128
138
|
labels: z.ZodOptional<z.ZodObject<{
|
|
@@ -137,12 +147,14 @@ export declare const booleanTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
137
147
|
}>>;
|
|
138
148
|
}>, "strip", z.ZodTypeAny, {
|
|
139
149
|
type: "boolean";
|
|
150
|
+
label?: string | undefined;
|
|
140
151
|
labels?: {
|
|
141
152
|
false: string;
|
|
142
153
|
true: string;
|
|
143
154
|
} | undefined;
|
|
144
155
|
}, {
|
|
145
156
|
type: "boolean";
|
|
157
|
+
label?: string | undefined;
|
|
146
158
|
labels?: {
|
|
147
159
|
false: string;
|
|
148
160
|
true: string;
|
|
@@ -150,6 +162,7 @@ export declare const booleanTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
150
162
|
}>;
|
|
151
163
|
export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
152
164
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
165
|
+
label: z.ZodOptional<z.ZodString>;
|
|
153
166
|
}, {
|
|
154
167
|
type: z.ZodLiteral<"select-single">;
|
|
155
168
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -180,6 +193,7 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
180
193
|
intro?: string | undefined;
|
|
181
194
|
outro?: string | undefined;
|
|
182
195
|
}[];
|
|
196
|
+
label?: string | undefined;
|
|
183
197
|
}, {
|
|
184
198
|
type: "select-single";
|
|
185
199
|
options: {
|
|
@@ -189,8 +203,10 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
189
203
|
intro?: string | undefined;
|
|
190
204
|
outro?: string | undefined;
|
|
191
205
|
}[];
|
|
206
|
+
label?: string | undefined;
|
|
192
207
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
193
208
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
209
|
+
label: z.ZodOptional<z.ZodString>;
|
|
194
210
|
}, {
|
|
195
211
|
type: z.ZodLiteral<"select-multiple">;
|
|
196
212
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -221,6 +237,7 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
221
237
|
intro?: string | undefined;
|
|
222
238
|
outro?: string | undefined;
|
|
223
239
|
}[];
|
|
240
|
+
label?: string | undefined;
|
|
224
241
|
}, {
|
|
225
242
|
type: "select-multiple";
|
|
226
243
|
options: {
|
|
@@ -230,8 +247,10 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
230
247
|
intro?: string | undefined;
|
|
231
248
|
outro?: string | undefined;
|
|
232
249
|
}[];
|
|
250
|
+
label?: string | undefined;
|
|
233
251
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
234
252
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
253
|
+
label: z.ZodOptional<z.ZodString>;
|
|
235
254
|
}, {
|
|
236
255
|
type: z.ZodLiteral<"number">;
|
|
237
256
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -239,16 +258,19 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
239
258
|
step: z.ZodOptional<z.ZodNumber>;
|
|
240
259
|
}>, "strip", z.ZodTypeAny, {
|
|
241
260
|
type: "number";
|
|
261
|
+
label?: string | undefined;
|
|
242
262
|
minimum?: number | undefined;
|
|
243
263
|
maximum?: number | undefined;
|
|
244
264
|
step?: number | undefined;
|
|
245
265
|
}, {
|
|
246
266
|
type: "number";
|
|
267
|
+
label?: string | undefined;
|
|
247
268
|
minimum?: number | undefined;
|
|
248
269
|
maximum?: number | undefined;
|
|
249
270
|
step?: number | undefined;
|
|
250
271
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
251
272
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
273
|
+
label: z.ZodOptional<z.ZodString>;
|
|
252
274
|
}, {
|
|
253
275
|
type: z.ZodLiteral<"boolean">;
|
|
254
276
|
labels: z.ZodOptional<z.ZodObject<{
|
|
@@ -263,12 +285,14 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
263
285
|
}>>;
|
|
264
286
|
}>, "strip", z.ZodTypeAny, {
|
|
265
287
|
type: "boolean";
|
|
288
|
+
label?: string | undefined;
|
|
266
289
|
labels?: {
|
|
267
290
|
false: string;
|
|
268
291
|
true: string;
|
|
269
292
|
} | undefined;
|
|
270
293
|
}, {
|
|
271
294
|
type: "boolean";
|
|
295
|
+
label?: string | undefined;
|
|
272
296
|
labels?: {
|
|
273
297
|
false: string;
|
|
274
298
|
true: string;
|
|
@@ -451,6 +475,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
451
475
|
}>>;
|
|
452
476
|
definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
453
477
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
478
|
+
label: z.ZodOptional<z.ZodString>;
|
|
454
479
|
}, {
|
|
455
480
|
type: z.ZodLiteral<"select-single">;
|
|
456
481
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -481,6 +506,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
481
506
|
intro?: string | undefined;
|
|
482
507
|
outro?: string | undefined;
|
|
483
508
|
}[];
|
|
509
|
+
label?: string | undefined;
|
|
484
510
|
}, {
|
|
485
511
|
type: "select-single";
|
|
486
512
|
options: {
|
|
@@ -490,8 +516,10 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
490
516
|
intro?: string | undefined;
|
|
491
517
|
outro?: string | undefined;
|
|
492
518
|
}[];
|
|
519
|
+
label?: string | undefined;
|
|
493
520
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
494
521
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
522
|
+
label: z.ZodOptional<z.ZodString>;
|
|
495
523
|
}, {
|
|
496
524
|
type: z.ZodLiteral<"select-multiple">;
|
|
497
525
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -522,6 +550,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
522
550
|
intro?: string | undefined;
|
|
523
551
|
outro?: string | undefined;
|
|
524
552
|
}[];
|
|
553
|
+
label?: string | undefined;
|
|
525
554
|
}, {
|
|
526
555
|
type: "select-multiple";
|
|
527
556
|
options: {
|
|
@@ -531,8 +560,10 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
531
560
|
intro?: string | undefined;
|
|
532
561
|
outro?: string | undefined;
|
|
533
562
|
}[];
|
|
563
|
+
label?: string | undefined;
|
|
534
564
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
535
565
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
566
|
+
label: z.ZodOptional<z.ZodString>;
|
|
536
567
|
}, {
|
|
537
568
|
type: z.ZodLiteral<"number">;
|
|
538
569
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -540,16 +571,19 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
540
571
|
step: z.ZodOptional<z.ZodNumber>;
|
|
541
572
|
}>, "strip", z.ZodTypeAny, {
|
|
542
573
|
type: "number";
|
|
574
|
+
label?: string | undefined;
|
|
543
575
|
minimum?: number | undefined;
|
|
544
576
|
maximum?: number | undefined;
|
|
545
577
|
step?: number | undefined;
|
|
546
578
|
}, {
|
|
547
579
|
type: "number";
|
|
580
|
+
label?: string | undefined;
|
|
548
581
|
minimum?: number | undefined;
|
|
549
582
|
maximum?: number | undefined;
|
|
550
583
|
step?: number | undefined;
|
|
551
584
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
552
585
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
586
|
+
label: z.ZodOptional<z.ZodString>;
|
|
553
587
|
}, {
|
|
554
588
|
type: z.ZodLiteral<"boolean">;
|
|
555
589
|
labels: z.ZodOptional<z.ZodObject<{
|
|
@@ -564,19 +598,20 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
564
598
|
}>>;
|
|
565
599
|
}>, "strip", z.ZodTypeAny, {
|
|
566
600
|
type: "boolean";
|
|
601
|
+
label?: string | undefined;
|
|
567
602
|
labels?: {
|
|
568
603
|
false: string;
|
|
569
604
|
true: string;
|
|
570
605
|
} | undefined;
|
|
571
606
|
}, {
|
|
572
607
|
type: "boolean";
|
|
608
|
+
label?: string | undefined;
|
|
573
609
|
labels?: {
|
|
574
610
|
false: string;
|
|
575
611
|
true: string;
|
|
576
612
|
} | undefined;
|
|
577
613
|
}>]>;
|
|
578
614
|
description: z.ZodOptional<z.ZodString>;
|
|
579
|
-
providedData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
|
|
580
615
|
valueReference: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
|
|
581
616
|
options: z.ZodOptional<z.ZodObject<{
|
|
582
617
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -586,8 +621,8 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
586
621
|
hideCode?: boolean | undefined;
|
|
587
622
|
}>>;
|
|
588
623
|
}>, "strip", z.ZodTypeAny, {
|
|
589
|
-
type: "task-item";
|
|
590
624
|
code: string;
|
|
625
|
+
type: "task-item";
|
|
591
626
|
definition: {
|
|
592
627
|
type: "select-single";
|
|
593
628
|
options: {
|
|
@@ -597,6 +632,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
597
632
|
intro?: string | undefined;
|
|
598
633
|
outro?: string | undefined;
|
|
599
634
|
}[];
|
|
635
|
+
label?: string | undefined;
|
|
600
636
|
} | {
|
|
601
637
|
type: "select-multiple";
|
|
602
638
|
options: {
|
|
@@ -606,13 +642,16 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
606
642
|
intro?: string | undefined;
|
|
607
643
|
outro?: string | undefined;
|
|
608
644
|
}[];
|
|
645
|
+
label?: string | undefined;
|
|
609
646
|
} | {
|
|
610
647
|
type: "number";
|
|
648
|
+
label?: string | undefined;
|
|
611
649
|
minimum?: number | undefined;
|
|
612
650
|
maximum?: number | undefined;
|
|
613
651
|
step?: number | undefined;
|
|
614
652
|
} | {
|
|
615
653
|
type: "boolean";
|
|
654
|
+
label?: string | undefined;
|
|
616
655
|
labels?: {
|
|
617
656
|
false: string;
|
|
618
657
|
true: string;
|
|
@@ -654,10 +693,9 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
654
693
|
})[] | undefined;
|
|
655
694
|
sortOrder?: number | undefined;
|
|
656
695
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
657
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
658
696
|
}, {
|
|
659
|
-
type: "task-item";
|
|
660
697
|
code: string;
|
|
698
|
+
type: "task-item";
|
|
661
699
|
definition: {
|
|
662
700
|
type: "select-single";
|
|
663
701
|
options: {
|
|
@@ -667,6 +705,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
667
705
|
intro?: string | undefined;
|
|
668
706
|
outro?: string | undefined;
|
|
669
707
|
}[];
|
|
708
|
+
label?: string | undefined;
|
|
670
709
|
} | {
|
|
671
710
|
type: "select-multiple";
|
|
672
711
|
options: {
|
|
@@ -676,13 +715,16 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
676
715
|
intro?: string | undefined;
|
|
677
716
|
outro?: string | undefined;
|
|
678
717
|
}[];
|
|
718
|
+
label?: string | undefined;
|
|
679
719
|
} | {
|
|
680
720
|
type: "number";
|
|
721
|
+
label?: string | undefined;
|
|
681
722
|
minimum?: number | undefined;
|
|
682
723
|
maximum?: number | undefined;
|
|
683
724
|
step?: number | undefined;
|
|
684
725
|
} | {
|
|
685
726
|
type: "boolean";
|
|
727
|
+
label?: string | undefined;
|
|
686
728
|
labels?: {
|
|
687
729
|
false: string;
|
|
688
730
|
true: string;
|
|
@@ -724,5 +766,4 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
724
766
|
})[] | undefined;
|
|
725
767
|
sortOrder?: number | undefined;
|
|
726
768
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
727
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
728
769
|
}>;
|