@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.
@@ -419,6 +419,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
419
419
  }>>;
420
420
  definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
421
421
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
422
+ label: z.ZodOptional<z.ZodString>;
422
423
  }, {
423
424
  type: z.ZodLiteral<"select-single">;
424
425
  options: z.ZodArray<z.ZodObject<{
@@ -449,6 +450,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
449
450
  intro?: string | undefined;
450
451
  outro?: string | undefined;
451
452
  }[];
453
+ label?: string | undefined;
452
454
  }, {
453
455
  type: "select-single";
454
456
  options: {
@@ -458,8 +460,10 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
458
460
  intro?: string | undefined;
459
461
  outro?: string | undefined;
460
462
  }[];
463
+ label?: string | undefined;
461
464
  }>, z.ZodObject<z.objectUtil.extendShape<{
462
465
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
466
+ label: z.ZodOptional<z.ZodString>;
463
467
  }, {
464
468
  type: z.ZodLiteral<"select-multiple">;
465
469
  options: z.ZodArray<z.ZodObject<{
@@ -490,6 +494,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
490
494
  intro?: string | undefined;
491
495
  outro?: string | undefined;
492
496
  }[];
497
+ label?: string | undefined;
493
498
  }, {
494
499
  type: "select-multiple";
495
500
  options: {
@@ -499,8 +504,10 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
499
504
  intro?: string | undefined;
500
505
  outro?: string | undefined;
501
506
  }[];
507
+ label?: string | undefined;
502
508
  }>, z.ZodObject<z.objectUtil.extendShape<{
503
509
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
510
+ label: z.ZodOptional<z.ZodString>;
504
511
  }, {
505
512
  type: z.ZodLiteral<"number">;
506
513
  minimum: z.ZodOptional<z.ZodNumber>;
@@ -508,16 +515,19 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
508
515
  step: z.ZodOptional<z.ZodNumber>;
509
516
  }>, "strip", z.ZodTypeAny, {
510
517
  type: "number";
518
+ label?: string | undefined;
511
519
  minimum?: number | undefined;
512
520
  maximum?: number | undefined;
513
521
  step?: number | undefined;
514
522
  }, {
515
523
  type: "number";
524
+ label?: string | undefined;
516
525
  minimum?: number | undefined;
517
526
  maximum?: number | undefined;
518
527
  step?: number | undefined;
519
528
  }>, z.ZodObject<z.objectUtil.extendShape<{
520
529
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
530
+ label: z.ZodOptional<z.ZodString>;
521
531
  }, {
522
532
  type: z.ZodLiteral<"boolean">;
523
533
  labels: z.ZodOptional<z.ZodObject<{
@@ -532,19 +542,20 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
532
542
  }>>;
533
543
  }>, "strip", z.ZodTypeAny, {
534
544
  type: "boolean";
545
+ label?: string | undefined;
535
546
  labels?: {
536
547
  false: string;
537
548
  true: string;
538
549
  } | undefined;
539
550
  }, {
540
551
  type: "boolean";
552
+ label?: string | undefined;
541
553
  labels?: {
542
554
  false: string;
543
555
  true: string;
544
556
  } | undefined;
545
557
  }>]>;
546
558
  description: z.ZodOptional<z.ZodString>;
547
- 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">]>>>;
548
559
  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">]>>;
549
560
  options: z.ZodOptional<z.ZodObject<{
550
561
  hideCode: z.ZodOptional<z.ZodBoolean>;
@@ -554,8 +565,8 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
554
565
  hideCode?: boolean | undefined;
555
566
  }>>;
556
567
  }>, "strip", z.ZodTypeAny, {
557
- type: "task-item";
558
568
  code: string;
569
+ type: "task-item";
559
570
  definition: {
560
571
  type: "select-single";
561
572
  options: {
@@ -565,6 +576,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
565
576
  intro?: string | undefined;
566
577
  outro?: string | undefined;
567
578
  }[];
579
+ label?: string | undefined;
568
580
  } | {
569
581
  type: "select-multiple";
570
582
  options: {
@@ -574,13 +586,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
574
586
  intro?: string | undefined;
575
587
  outro?: string | undefined;
576
588
  }[];
589
+ label?: string | undefined;
577
590
  } | {
578
591
  type: "number";
592
+ label?: string | undefined;
579
593
  minimum?: number | undefined;
580
594
  maximum?: number | undefined;
581
595
  step?: number | undefined;
582
596
  } | {
583
597
  type: "boolean";
598
+ label?: string | undefined;
584
599
  labels?: {
585
600
  false: string;
586
601
  true: string;
@@ -622,10 +637,9 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
622
637
  })[] | undefined;
623
638
  sortOrder?: number | undefined;
624
639
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
625
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
626
640
  }, {
627
- type: "task-item";
628
641
  code: string;
642
+ type: "task-item";
629
643
  definition: {
630
644
  type: "select-single";
631
645
  options: {
@@ -635,6 +649,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
635
649
  intro?: string | undefined;
636
650
  outro?: string | undefined;
637
651
  }[];
652
+ label?: string | undefined;
638
653
  } | {
639
654
  type: "select-multiple";
640
655
  options: {
@@ -644,13 +659,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
644
659
  intro?: string | undefined;
645
660
  outro?: string | undefined;
646
661
  }[];
662
+ label?: string | undefined;
647
663
  } | {
648
664
  type: "number";
665
+ label?: string | undefined;
649
666
  minimum?: number | undefined;
650
667
  maximum?: number | undefined;
651
668
  step?: number | undefined;
652
669
  } | {
653
670
  type: "boolean";
671
+ label?: string | undefined;
654
672
  labels?: {
655
673
  false: string;
656
674
  true: string;
@@ -692,7 +710,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
692
710
  })[] | undefined;
693
711
  sortOrder?: number | undefined;
694
712
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
695
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
696
713
  }>>, "many">;
697
714
  options: z.ZodOptional<z.ZodObject<{
698
715
  hideCode: z.ZodOptional<z.ZodBoolean>;
@@ -702,12 +719,12 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
702
719
  hideCode?: boolean | undefined;
703
720
  }>>;
704
721
  }>, "strip", z.ZodTypeAny, {
705
- type: "task";
706
722
  code: string;
723
+ type: "task";
707
724
  title: string;
708
725
  items: {
709
- type: "task-item";
710
726
  code: string;
727
+ type: "task-item";
711
728
  definition: {
712
729
  type: "select-single";
713
730
  options: {
@@ -717,6 +734,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
717
734
  intro?: string | undefined;
718
735
  outro?: string | undefined;
719
736
  }[];
737
+ label?: string | undefined;
720
738
  } | {
721
739
  type: "select-multiple";
722
740
  options: {
@@ -726,13 +744,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
726
744
  intro?: string | undefined;
727
745
  outro?: string | undefined;
728
746
  }[];
747
+ label?: string | undefined;
729
748
  } | {
730
749
  type: "number";
750
+ label?: string | undefined;
731
751
  minimum?: number | undefined;
732
752
  maximum?: number | undefined;
733
753
  step?: number | undefined;
734
754
  } | {
735
755
  type: "boolean";
756
+ label?: string | undefined;
736
757
  labels?: {
737
758
  false: string;
738
759
  true: string;
@@ -774,7 +795,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
774
795
  })[] | undefined;
775
796
  sortOrder?: number | undefined;
776
797
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
777
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
778
798
  }[];
779
799
  data?: {
780
800
  type?: "number" | "percentage" | undefined;
@@ -811,12 +831,12 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
811
831
  })[] | undefined;
812
832
  sortOrder?: number | undefined;
813
833
  }, {
814
- type: "task";
815
834
  code: string;
835
+ type: "task";
816
836
  title: string;
817
837
  items: {
818
- type: "task-item";
819
838
  code: string;
839
+ type: "task-item";
820
840
  definition: {
821
841
  type: "select-single";
822
842
  options: {
@@ -826,6 +846,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
826
846
  intro?: string | undefined;
827
847
  outro?: string | undefined;
828
848
  }[];
849
+ label?: string | undefined;
829
850
  } | {
830
851
  type: "select-multiple";
831
852
  options: {
@@ -835,13 +856,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
835
856
  intro?: string | undefined;
836
857
  outro?: string | undefined;
837
858
  }[];
859
+ label?: string | undefined;
838
860
  } | {
839
861
  type: "number";
862
+ label?: string | undefined;
840
863
  minimum?: number | undefined;
841
864
  maximum?: number | undefined;
842
865
  step?: number | undefined;
843
866
  } | {
844
867
  type: "boolean";
868
+ label?: string | undefined;
845
869
  labels?: {
846
870
  false: string;
847
871
  true: string;
@@ -883,7 +907,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
883
907
  })[] | undefined;
884
908
  sortOrder?: number | undefined;
885
909
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
886
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
887
910
  }[];
888
911
  data?: {
889
912
  type?: "number" | "percentage" | undefined;
@@ -931,16 +954,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
931
954
  hideFromHierarchy?: boolean | undefined;
932
955
  }>>;
933
956
  }>, "strip", z.ZodTypeAny, {
934
- type: "task-group";
935
957
  code: string;
958
+ type: "task-group";
936
959
  title: string;
937
960
  items: {
938
- type: "task";
939
961
  code: string;
962
+ type: "task";
940
963
  title: string;
941
964
  items: {
942
- type: "task-item";
943
965
  code: string;
966
+ type: "task-item";
944
967
  definition: {
945
968
  type: "select-single";
946
969
  options: {
@@ -950,6 +973,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
950
973
  intro?: string | undefined;
951
974
  outro?: string | undefined;
952
975
  }[];
976
+ label?: string | undefined;
953
977
  } | {
954
978
  type: "select-multiple";
955
979
  options: {
@@ -959,13 +983,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
959
983
  intro?: string | undefined;
960
984
  outro?: string | undefined;
961
985
  }[];
986
+ label?: string | undefined;
962
987
  } | {
963
988
  type: "number";
989
+ label?: string | undefined;
964
990
  minimum?: number | undefined;
965
991
  maximum?: number | undefined;
966
992
  step?: number | undefined;
967
993
  } | {
968
994
  type: "boolean";
995
+ label?: string | undefined;
969
996
  labels?: {
970
997
  false: string;
971
998
  true: string;
@@ -1007,7 +1034,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1007
1034
  })[] | undefined;
1008
1035
  sortOrder?: number | undefined;
1009
1036
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1010
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
1011
1037
  }[];
1012
1038
  data?: {
1013
1039
  type?: "number" | "percentage" | undefined;
@@ -1080,16 +1106,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1080
1106
  sortOrder?: number | undefined;
1081
1107
  category?: string | undefined;
1082
1108
  }, {
1083
- type: "task-group";
1084
1109
  code: string;
1110
+ type: "task-group";
1085
1111
  title: string;
1086
1112
  items: {
1087
- type: "task";
1088
1113
  code: string;
1114
+ type: "task";
1089
1115
  title: string;
1090
1116
  items: {
1091
- type: "task-item";
1092
1117
  code: string;
1118
+ type: "task-item";
1093
1119
  definition: {
1094
1120
  type: "select-single";
1095
1121
  options: {
@@ -1099,6 +1125,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1099
1125
  intro?: string | undefined;
1100
1126
  outro?: string | undefined;
1101
1127
  }[];
1128
+ label?: string | undefined;
1102
1129
  } | {
1103
1130
  type: "select-multiple";
1104
1131
  options: {
@@ -1108,13 +1135,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1108
1135
  intro?: string | undefined;
1109
1136
  outro?: string | undefined;
1110
1137
  }[];
1138
+ label?: string | undefined;
1111
1139
  } | {
1112
1140
  type: "number";
1141
+ label?: string | undefined;
1113
1142
  minimum?: number | undefined;
1114
1143
  maximum?: number | undefined;
1115
1144
  step?: number | undefined;
1116
1145
  } | {
1117
1146
  type: "boolean";
1147
+ label?: string | undefined;
1118
1148
  labels?: {
1119
1149
  false: string;
1120
1150
  true: string;
@@ -1156,7 +1186,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1156
1186
  })[] | undefined;
1157
1187
  sortOrder?: number | undefined;
1158
1188
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1159
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
1160
1189
  }[];
1161
1190
  data?: {
1162
1191
  type?: "number" | "percentage" | undefined;
@@ -1240,20 +1269,20 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1240
1269
  hideFromHierarchy?: boolean | undefined;
1241
1270
  }>>;
1242
1271
  }>, "strip", z.ZodTypeAny, {
1243
- type: "criterion";
1244
1272
  code: string;
1273
+ type: "criterion";
1245
1274
  title: string;
1246
1275
  items: {
1247
- type: "task-group";
1248
1276
  code: string;
1277
+ type: "task-group";
1249
1278
  title: string;
1250
1279
  items: {
1251
- type: "task";
1252
1280
  code: string;
1281
+ type: "task";
1253
1282
  title: string;
1254
1283
  items: {
1255
- type: "task-item";
1256
1284
  code: string;
1285
+ type: "task-item";
1257
1286
  definition: {
1258
1287
  type: "select-single";
1259
1288
  options: {
@@ -1263,6 +1292,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1263
1292
  intro?: string | undefined;
1264
1293
  outro?: string | undefined;
1265
1294
  }[];
1295
+ label?: string | undefined;
1266
1296
  } | {
1267
1297
  type: "select-multiple";
1268
1298
  options: {
@@ -1272,13 +1302,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1272
1302
  intro?: string | undefined;
1273
1303
  outro?: string | undefined;
1274
1304
  }[];
1305
+ label?: string | undefined;
1275
1306
  } | {
1276
1307
  type: "number";
1308
+ label?: string | undefined;
1277
1309
  minimum?: number | undefined;
1278
1310
  maximum?: number | undefined;
1279
1311
  step?: number | undefined;
1280
1312
  } | {
1281
1313
  type: "boolean";
1314
+ label?: string | undefined;
1282
1315
  labels?: {
1283
1316
  false: string;
1284
1317
  true: string;
@@ -1320,7 +1353,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1320
1353
  })[] | undefined;
1321
1354
  sortOrder?: number | undefined;
1322
1355
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1323
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
1324
1356
  }[];
1325
1357
  data?: {
1326
1358
  type?: "number" | "percentage" | undefined;
@@ -1428,20 +1460,20 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1428
1460
  })[] | undefined;
1429
1461
  sortOrder?: number | undefined;
1430
1462
  }, {
1431
- type: "criterion";
1432
1463
  code: string;
1464
+ type: "criterion";
1433
1465
  title: string;
1434
1466
  items: {
1435
- type: "task-group";
1436
1467
  code: string;
1468
+ type: "task-group";
1437
1469
  title: string;
1438
1470
  items: {
1439
- type: "task";
1440
1471
  code: string;
1472
+ type: "task";
1441
1473
  title: string;
1442
1474
  items: {
1443
- type: "task-item";
1444
1475
  code: string;
1476
+ type: "task-item";
1445
1477
  definition: {
1446
1478
  type: "select-single";
1447
1479
  options: {
@@ -1451,6 +1483,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1451
1483
  intro?: string | undefined;
1452
1484
  outro?: string | undefined;
1453
1485
  }[];
1486
+ label?: string | undefined;
1454
1487
  } | {
1455
1488
  type: "select-multiple";
1456
1489
  options: {
@@ -1460,13 +1493,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1460
1493
  intro?: string | undefined;
1461
1494
  outro?: string | undefined;
1462
1495
  }[];
1496
+ label?: string | undefined;
1463
1497
  } | {
1464
1498
  type: "number";
1499
+ label?: string | undefined;
1465
1500
  minimum?: number | undefined;
1466
1501
  maximum?: number | undefined;
1467
1502
  step?: number | undefined;
1468
1503
  } | {
1469
1504
  type: "boolean";
1505
+ label?: string | undefined;
1470
1506
  labels?: {
1471
1507
  false: string;
1472
1508
  true: string;
@@ -1508,7 +1544,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1508
1544
  })[] | undefined;
1509
1545
  sortOrder?: number | undefined;
1510
1546
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1511
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
1512
1547
  }[];
1513
1548
  data?: {
1514
1549
  type?: "number" | "percentage" | undefined;
@@ -30,8 +30,8 @@ export declare const metadataSchema: z.ZodObject<{
30
30
  result?: Record<string, any> | undefined;
31
31
  }>>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- id: string;
34
33
  name: string;
34
+ id: string;
35
35
  description: string;
36
36
  date: Date;
37
37
  version: string;
@@ -43,8 +43,8 @@ export declare const metadataSchema: z.ZodObject<{
43
43
  result?: Record<string, any> | undefined;
44
44
  } | undefined;
45
45
  }, {
46
- id: string;
47
46
  name: string;
47
+ id: string;
48
48
  description: string;
49
49
  date: Date;
50
50
  version: string;
@@ -19,8 +19,8 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
19
19
  result?: Record<string, any> | undefined;
20
20
  }>>;
21
21
  }, "strip", z.ZodTypeAny, {
22
- id: string;
23
22
  name: string;
23
+ id: string;
24
24
  description: string;
25
25
  date: Date;
26
26
  version: string;
@@ -32,8 +32,8 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
32
32
  result?: Record<string, any> | undefined;
33
33
  } | undefined;
34
34
  }, {
35
- id: string;
36
35
  name: string;
36
+ id: string;
37
37
  description: string;
38
38
  date: Date;
39
39
  version: string;