@openframe-org/criteria-set-protocol 2.0.1 → 2.0.2

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.
@@ -325,7 +325,7 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
325
325
  }, {
326
326
  type: z.ZodLiteral<"task">;
327
327
  description: z.ZodOptional<z.ZodString>;
328
- items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
328
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
329
329
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
330
330
  title: z.ZodString;
331
331
  code: z.ZodString;
@@ -542,10 +542,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
542
542
  }, {
543
543
  hideCode?: boolean | undefined;
544
544
  }>>;
545
- }>, "strip", z.ZodTypeAny, {
545
+ }>, "title">, "strip", z.ZodTypeAny, {
546
546
  type: "task-item";
547
547
  code: string;
548
- title: string;
549
548
  definition: {
550
549
  type: "select-single";
551
550
  options: {
@@ -607,7 +606,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
607
606
  }, {
608
607
  type: "task-item";
609
608
  code: string;
610
- title: string;
611
609
  definition: {
612
610
  type: "select-single";
613
611
  options: {
@@ -681,7 +679,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
681
679
  items: {
682
680
  type: "task-item";
683
681
  code: string;
684
- title: string;
685
682
  definition: {
686
683
  type: "select-single";
687
684
  options: {
@@ -773,7 +770,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
773
770
  items: {
774
771
  type: "task-item";
775
772
  code: string;
776
- title: string;
777
773
  definition: {
778
774
  type: "select-single";
779
775
  options: {
@@ -880,7 +876,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
880
876
  items: {
881
877
  type: "task-item";
882
878
  code: string;
883
- title: string;
884
879
  definition: {
885
880
  type: "select-single";
886
881
  options: {
@@ -1003,7 +998,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1003
998
  items: {
1004
999
  type: "task-item";
1005
1000
  code: string;
1006
- title: string;
1007
1001
  definition: {
1008
1002
  type: "select-single";
1009
1003
  options: {
@@ -1141,7 +1135,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1141
1135
  items: {
1142
1136
  type: "task-item";
1143
1137
  code: string;
1144
- title: string;
1145
1138
  definition: {
1146
1139
  type: "select-single";
1147
1140
  options: {
@@ -1294,7 +1287,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1294
1287
  items: {
1295
1288
  type: "task-item";
1296
1289
  code: string;
1297
- title: string;
1298
1290
  definition: {
1299
1291
  type: "select-single";
1300
1292
  options: {
@@ -1459,7 +1451,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1459
1451
  items: {
1460
1452
  type: "task-item";
1461
1453
  code: string;
1462
- title: string;
1463
1454
  definition: {
1464
1455
  type: "select-single";
1465
1456
  options: {
@@ -1653,7 +1644,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1653
1644
  items: {
1654
1645
  type: "task-item";
1655
1646
  code: string;
1656
- title: string;
1657
1647
  definition: {
1658
1648
  type: "select-single";
1659
1649
  options: {
@@ -1953,7 +1943,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1953
1943
  items: {
1954
1944
  type: "task-item";
1955
1945
  code: string;
1956
- title: string;
1957
1946
  definition: {
1958
1947
  type: "select-single";
1959
1948
  options: {
@@ -2179,7 +2168,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2179
2168
  items: {
2180
2169
  type: "task-item";
2181
2170
  code: string;
2182
- title: string;
2183
2171
  definition: {
2184
2172
  type: "select-single";
2185
2173
  options: {
@@ -2705,7 +2693,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
2705
2693
  }, {
2706
2694
  type: z.ZodLiteral<"task">;
2707
2695
  description: z.ZodOptional<z.ZodString>;
2708
- items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
2696
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
2709
2697
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
2710
2698
  title: z.ZodString;
2711
2699
  code: z.ZodString;
@@ -2922,10 +2910,9 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
2922
2910
  }, {
2923
2911
  hideCode?: boolean | undefined;
2924
2912
  }>>;
2925
- }>, "strip", z.ZodTypeAny, {
2913
+ }>, "title">, "strip", z.ZodTypeAny, {
2926
2914
  type: "task-item";
2927
2915
  code: string;
2928
- title: string;
2929
2916
  definition: {
2930
2917
  type: "select-single";
2931
2918
  options: {
@@ -2987,7 +2974,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
2987
2974
  }, {
2988
2975
  type: "task-item";
2989
2976
  code: string;
2990
- title: string;
2991
2977
  definition: {
2992
2978
  type: "select-single";
2993
2979
  options: {
@@ -3061,7 +3047,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3061
3047
  items: {
3062
3048
  type: "task-item";
3063
3049
  code: string;
3064
- title: string;
3065
3050
  definition: {
3066
3051
  type: "select-single";
3067
3052
  options: {
@@ -3153,7 +3138,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3153
3138
  items: {
3154
3139
  type: "task-item";
3155
3140
  code: string;
3156
- title: string;
3157
3141
  definition: {
3158
3142
  type: "select-single";
3159
3143
  options: {
@@ -3260,7 +3244,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3260
3244
  items: {
3261
3245
  type: "task-item";
3262
3246
  code: string;
3263
- title: string;
3264
3247
  definition: {
3265
3248
  type: "select-single";
3266
3249
  options: {
@@ -3383,7 +3366,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3383
3366
  items: {
3384
3367
  type: "task-item";
3385
3368
  code: string;
3386
- title: string;
3387
3369
  definition: {
3388
3370
  type: "select-single";
3389
3371
  options: {
@@ -3521,7 +3503,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3521
3503
  items: {
3522
3504
  type: "task-item";
3523
3505
  code: string;
3524
- title: string;
3525
3506
  definition: {
3526
3507
  type: "select-single";
3527
3508
  options: {
@@ -3674,7 +3655,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3674
3655
  items: {
3675
3656
  type: "task-item";
3676
3657
  code: string;
3677
- title: string;
3678
3658
  definition: {
3679
3659
  type: "select-single";
3680
3660
  options: {
@@ -3839,7 +3819,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3839
3819
  items: {
3840
3820
  type: "task-item";
3841
3821
  code: string;
3842
- title: string;
3843
3822
  definition: {
3844
3823
  type: "select-single";
3845
3824
  options: {
@@ -4033,7 +4012,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4033
4012
  items: {
4034
4013
  type: "task-item";
4035
4014
  code: string;
4036
- title: string;
4037
4015
  definition: {
4038
4016
  type: "select-single";
4039
4017
  options: {
@@ -4411,7 +4389,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4411
4389
  }, {
4412
4390
  type: z.ZodLiteral<"task">;
4413
4391
  description: z.ZodOptional<z.ZodString>;
4414
- items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
4392
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
4415
4393
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
4416
4394
  title: z.ZodString;
4417
4395
  code: z.ZodString;
@@ -4628,10 +4606,9 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4628
4606
  }, {
4629
4607
  hideCode?: boolean | undefined;
4630
4608
  }>>;
4631
- }>, "strip", z.ZodTypeAny, {
4609
+ }>, "title">, "strip", z.ZodTypeAny, {
4632
4610
  type: "task-item";
4633
4611
  code: string;
4634
- title: string;
4635
4612
  definition: {
4636
4613
  type: "select-single";
4637
4614
  options: {
@@ -4693,7 +4670,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4693
4670
  }, {
4694
4671
  type: "task-item";
4695
4672
  code: string;
4696
- title: string;
4697
4673
  definition: {
4698
4674
  type: "select-single";
4699
4675
  options: {
@@ -4767,7 +4743,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4767
4743
  items: {
4768
4744
  type: "task-item";
4769
4745
  code: string;
4770
- title: string;
4771
4746
  definition: {
4772
4747
  type: "select-single";
4773
4748
  options: {
@@ -4859,7 +4834,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4859
4834
  items: {
4860
4835
  type: "task-item";
4861
4836
  code: string;
4862
- title: string;
4863
4837
  definition: {
4864
4838
  type: "select-single";
4865
4839
  options: {
@@ -4966,7 +4940,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4966
4940
  items: {
4967
4941
  type: "task-item";
4968
4942
  code: string;
4969
- title: string;
4970
4943
  definition: {
4971
4944
  type: "select-single";
4972
4945
  options: {
@@ -5089,7 +5062,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5089
5062
  items: {
5090
5063
  type: "task-item";
5091
5064
  code: string;
5092
- title: string;
5093
5065
  definition: {
5094
5066
  type: "select-single";
5095
5067
  options: {
@@ -5227,7 +5199,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5227
5199
  items: {
5228
5200
  type: "task-item";
5229
5201
  code: string;
5230
- title: string;
5231
5202
  definition: {
5232
5203
  type: "select-single";
5233
5204
  options: {
@@ -5380,7 +5351,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5380
5351
  items: {
5381
5352
  type: "task-item";
5382
5353
  code: string;
5383
- title: string;
5384
5354
  definition: {
5385
5355
  type: "select-single";
5386
5356
  options: {
@@ -5654,7 +5624,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5654
5624
  }, {
5655
5625
  type: z.ZodLiteral<"task">;
5656
5626
  description: z.ZodOptional<z.ZodString>;
5657
- items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
5627
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
5658
5628
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
5659
5629
  title: z.ZodString;
5660
5630
  code: z.ZodString;
@@ -5871,10 +5841,9 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5871
5841
  }, {
5872
5842
  hideCode?: boolean | undefined;
5873
5843
  }>>;
5874
- }>, "strip", z.ZodTypeAny, {
5844
+ }>, "title">, "strip", z.ZodTypeAny, {
5875
5845
  type: "task-item";
5876
5846
  code: string;
5877
- title: string;
5878
5847
  definition: {
5879
5848
  type: "select-single";
5880
5849
  options: {
@@ -5936,7 +5905,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5936
5905
  }, {
5937
5906
  type: "task-item";
5938
5907
  code: string;
5939
- title: string;
5940
5908
  definition: {
5941
5909
  type: "select-single";
5942
5910
  options: {
@@ -6010,7 +5978,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6010
5978
  items: {
6011
5979
  type: "task-item";
6012
5980
  code: string;
6013
- title: string;
6014
5981
  definition: {
6015
5982
  type: "select-single";
6016
5983
  options: {
@@ -6102,7 +6069,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6102
6069
  items: {
6103
6070
  type: "task-item";
6104
6071
  code: string;
6105
- title: string;
6106
6072
  definition: {
6107
6073
  type: "select-single";
6108
6074
  options: {
@@ -6209,7 +6175,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6209
6175
  items: {
6210
6176
  type: "task-item";
6211
6177
  code: string;
6212
- title: string;
6213
6178
  definition: {
6214
6179
  type: "select-single";
6215
6180
  options: {
@@ -6332,7 +6297,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6332
6297
  items: {
6333
6298
  type: "task-item";
6334
6299
  code: string;
6335
- title: string;
6336
6300
  definition: {
6337
6301
  type: "select-single";
6338
6302
  options: {
@@ -6512,7 +6476,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6512
6476
  }, {
6513
6477
  type: z.ZodLiteral<"task">;
6514
6478
  description: z.ZodOptional<z.ZodString>;
6515
- items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
6479
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
6516
6480
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
6517
6481
  title: z.ZodString;
6518
6482
  code: z.ZodString;
@@ -6729,10 +6693,9 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6729
6693
  }, {
6730
6694
  hideCode?: boolean | undefined;
6731
6695
  }>>;
6732
- }>, "strip", z.ZodTypeAny, {
6696
+ }>, "title">, "strip", z.ZodTypeAny, {
6733
6697
  type: "task-item";
6734
6698
  code: string;
6735
- title: string;
6736
6699
  definition: {
6737
6700
  type: "select-single";
6738
6701
  options: {
@@ -6794,7 +6757,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6794
6757
  }, {
6795
6758
  type: "task-item";
6796
6759
  code: string;
6797
- title: string;
6798
6760
  definition: {
6799
6761
  type: "select-single";
6800
6762
  options: {
@@ -6868,7 +6830,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6868
6830
  items: {
6869
6831
  type: "task-item";
6870
6832
  code: string;
6871
- title: string;
6872
6833
  definition: {
6873
6834
  type: "select-single";
6874
6835
  options: {
@@ -6960,7 +6921,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6960
6921
  items: {
6961
6922
  type: "task-item";
6962
6923
  code: string;
6963
- title: string;
6964
6924
  definition: {
6965
6925
  type: "select-single";
6966
6926
  options: {
@@ -7045,7 +7005,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
7045
7005
  text: string;
7046
7006
  })[] | undefined;
7047
7007
  sortOrder?: number | undefined;
7048
- }>, z.ZodObject<z.objectUtil.extendShape<{
7008
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
7049
7009
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
7050
7010
  title: z.ZodString;
7051
7011
  code: z.ZodString;
@@ -7262,10 +7222,9 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
7262
7222
  }, {
7263
7223
  hideCode?: boolean | undefined;
7264
7224
  }>>;
7265
- }>, "strip", z.ZodTypeAny, {
7225
+ }>, "title">, "strip", z.ZodTypeAny, {
7266
7226
  type: "task-item";
7267
7227
  code: string;
7268
- title: string;
7269
7228
  definition: {
7270
7229
  type: "select-single";
7271
7230
  options: {
@@ -7327,7 +7286,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
7327
7286
  }, {
7328
7287
  type: "task-item";
7329
7288
  code: string;
7330
- title: string;
7331
7289
  definition: {
7332
7290
  type: "select-single";
7333
7291
  options: {
@@ -212,7 +212,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
212
212
  }, {
213
213
  type: z.ZodLiteral<"task">;
214
214
  description: z.ZodOptional<z.ZodString>;
215
- items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
215
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
216
216
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
217
217
  title: z.ZodString;
218
218
  code: z.ZodString;
@@ -429,10 +429,9 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
429
429
  }, {
430
430
  hideCode?: boolean | undefined;
431
431
  }>>;
432
- }>, "strip", z.ZodTypeAny, {
432
+ }>, "title">, "strip", z.ZodTypeAny, {
433
433
  type: "task-item";
434
434
  code: string;
435
- title: string;
436
435
  definition: {
437
436
  type: "select-single";
438
437
  options: {
@@ -494,7 +493,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
494
493
  }, {
495
494
  type: "task-item";
496
495
  code: string;
497
- title: string;
498
496
  definition: {
499
497
  type: "select-single";
500
498
  options: {
@@ -568,7 +566,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
568
566
  items: {
569
567
  type: "task-item";
570
568
  code: string;
571
- title: string;
572
569
  definition: {
573
570
  type: "select-single";
574
571
  options: {
@@ -660,7 +657,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
660
657
  items: {
661
658
  type: "task-item";
662
659
  code: string;
663
- title: string;
664
660
  definition: {
665
661
  type: "select-single";
666
662
  options: {
@@ -767,7 +763,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
767
763
  items: {
768
764
  type: "task-item";
769
765
  code: string;
770
- title: string;
771
766
  definition: {
772
767
  type: "select-single";
773
768
  options: {
@@ -890,7 +885,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
890
885
  items: {
891
886
  type: "task-item";
892
887
  code: string;
893
- title: string;
894
888
  definition: {
895
889
  type: "select-single";
896
890
  options: {
@@ -1028,7 +1022,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1028
1022
  items: {
1029
1023
  type: "task-item";
1030
1024
  code: string;
1031
- title: string;
1032
1025
  definition: {
1033
1026
  type: "select-single";
1034
1027
  options: {
@@ -1181,7 +1174,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1181
1174
  items: {
1182
1175
  type: "task-item";
1183
1176
  code: string;
1184
- title: string;
1185
1177
  definition: {
1186
1178
  type: "select-single";
1187
1179
  options: {
@@ -145,7 +145,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
145
145
  }, {
146
146
  type: z.ZodLiteral<"task">;
147
147
  description: z.ZodOptional<z.ZodString>;
148
- items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
148
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
149
149
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
150
150
  title: z.ZodString;
151
151
  code: z.ZodString;
@@ -362,10 +362,9 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
362
362
  }, {
363
363
  hideCode?: boolean | undefined;
364
364
  }>>;
365
- }>, "strip", z.ZodTypeAny, {
365
+ }>, "title">, "strip", z.ZodTypeAny, {
366
366
  type: "task-item";
367
367
  code: string;
368
- title: string;
369
368
  definition: {
370
369
  type: "select-single";
371
370
  options: {
@@ -427,7 +426,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
427
426
  }, {
428
427
  type: "task-item";
429
428
  code: string;
430
- title: string;
431
429
  definition: {
432
430
  type: "select-single";
433
431
  options: {
@@ -501,7 +499,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
501
499
  items: {
502
500
  type: "task-item";
503
501
  code: string;
504
- title: string;
505
502
  definition: {
506
503
  type: "select-single";
507
504
  options: {
@@ -593,7 +590,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
593
590
  items: {
594
591
  type: "task-item";
595
592
  code: string;
596
- title: string;
597
593
  definition: {
598
594
  type: "select-single";
599
595
  options: {
@@ -700,7 +696,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
700
696
  items: {
701
697
  type: "task-item";
702
698
  code: string;
703
- title: string;
704
699
  definition: {
705
700
  type: "select-single";
706
701
  options: {
@@ -823,7 +818,6 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
823
818
  items: {
824
819
  type: "task-item";
825
820
  code: string;
826
- title: string;
827
821
  definition: {
828
822
  type: "select-single";
829
823
  options: {
@@ -295,7 +295,7 @@ export declare const taskItemOptionsSchema: z.ZodObject<{
295
295
  }, {
296
296
  hideCode?: boolean | undefined;
297
297
  }>;
298
- export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<{
298
+ export declare const taskItemSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
299
299
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
300
300
  title: z.ZodString;
301
301
  code: z.ZodString;
@@ -512,10 +512,9 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<{
512
512
  }, {
513
513
  hideCode?: boolean | undefined;
514
514
  }>>;
515
- }>, "strip", z.ZodTypeAny, {
515
+ }>, "title">, "strip", z.ZodTypeAny, {
516
516
  type: "task-item";
517
517
  code: string;
518
- title: string;
519
518
  definition: {
520
519
  type: "select-single";
521
520
  options: {
@@ -577,7 +576,6 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<{
577
576
  }, {
578
577
  type: "task-item";
579
578
  code: string;
580
- title: string;
581
579
  definition: {
582
580
  type: "select-single";
583
581
  options: {
@@ -57,4 +57,4 @@ exports.taskItemSchema = common_1.abstractElementSchema.extend({
57
57
  providedData: exports.taskItemValueMapSchema.optional(),
58
58
  valueReference: common_1.taskItemValueSchema.optional(),
59
59
  options: exports.taskItemOptionsSchema.optional(),
60
- });
60
+ }).omit({ title: true });
@@ -74,7 +74,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
74
74
  }, {
75
75
  type: z.ZodLiteral<"task">;
76
76
  description: z.ZodOptional<z.ZodString>;
77
- items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
77
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
78
78
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
79
79
  title: z.ZodString;
80
80
  code: z.ZodString;
@@ -291,10 +291,9 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
291
291
  }, {
292
292
  hideCode?: boolean | undefined;
293
293
  }>>;
294
- }>, "strip", z.ZodTypeAny, {
294
+ }>, "title">, "strip", z.ZodTypeAny, {
295
295
  type: "task-item";
296
296
  code: string;
297
- title: string;
298
297
  definition: {
299
298
  type: "select-single";
300
299
  options: {
@@ -356,7 +355,6 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
356
355
  }, {
357
356
  type: "task-item";
358
357
  code: string;
359
- title: string;
360
358
  definition: {
361
359
  type: "select-single";
362
360
  options: {
@@ -430,7 +428,6 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
430
428
  items: {
431
429
  type: "task-item";
432
430
  code: string;
433
- title: string;
434
431
  definition: {
435
432
  type: "select-single";
436
433
  options: {
@@ -522,7 +519,6 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
522
519
  items: {
523
520
  type: "task-item";
524
521
  code: string;
525
- title: string;
526
522
  definition: {
527
523
  type: "select-single";
528
524
  options: {
@@ -376,7 +376,7 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
376
376
  }, {
377
377
  type: z.ZodLiteral<"task">;
378
378
  description: z.ZodOptional<z.ZodString>;
379
- items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
379
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
380
380
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
381
381
  title: z.ZodString;
382
382
  code: z.ZodString;
@@ -593,10 +593,9 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
593
593
  }, {
594
594
  hideCode?: boolean | undefined;
595
595
  }>>;
596
- }>, "strip", z.ZodTypeAny, {
596
+ }>, "title">, "strip", z.ZodTypeAny, {
597
597
  type: "task-item";
598
598
  code: string;
599
- title: string;
600
599
  definition: {
601
600
  type: "select-single";
602
601
  options: {
@@ -658,7 +657,6 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
658
657
  }, {
659
658
  type: "task-item";
660
659
  code: string;
661
- title: string;
662
660
  definition: {
663
661
  type: "select-single";
664
662
  options: {
@@ -732,7 +730,6 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
732
730
  items: {
733
731
  type: "task-item";
734
732
  code: string;
735
- title: string;
736
733
  definition: {
737
734
  type: "select-single";
738
735
  options: {
@@ -824,7 +821,6 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
824
821
  items: {
825
822
  type: "task-item";
826
823
  code: string;
827
- title: string;
828
824
  definition: {
829
825
  type: "select-single";
830
826
  options: {
@@ -931,7 +927,6 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
931
927
  items: {
932
928
  type: "task-item";
933
929
  code: string;
934
- title: string;
935
930
  definition: {
936
931
  type: "select-single";
937
932
  options: {
@@ -1054,7 +1049,6 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1054
1049
  items: {
1055
1050
  type: "task-item";
1056
1051
  code: string;
1057
- title: string;
1058
1052
  definition: {
1059
1053
  type: "select-single";
1060
1054
  options: {
@@ -1192,7 +1186,6 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1192
1186
  items: {
1193
1187
  type: "task-item";
1194
1188
  code: string;
1195
- title: string;
1196
1189
  definition: {
1197
1190
  type: "select-single";
1198
1191
  options: {
@@ -1345,7 +1338,6 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1345
1338
  items: {
1346
1339
  type: "task-item";
1347
1340
  code: string;
1348
- title: string;
1349
1341
  definition: {
1350
1342
  type: "select-single";
1351
1343
  options: {
@@ -1510,7 +1502,6 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1510
1502
  items: {
1511
1503
  type: "task-item";
1512
1504
  code: string;
1513
- title: string;
1514
1505
  definition: {
1515
1506
  type: "select-single";
1516
1507
  options: {
@@ -1704,7 +1695,6 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1704
1695
  items: {
1705
1696
  type: "task-item";
1706
1697
  code: string;
1707
- title: string;
1708
1698
  definition: {
1709
1699
  type: "select-single";
1710
1700
  options: {
@@ -1,4 +1,4 @@
1
- import { Color, CriteriaTree, CriteriaTreeElement } from "./types";
1
+ import { Color, CriteriaTree, CriteriaTreeElement, TaskItem } from "./types";
2
2
  export declare const isTheme: (element: CriteriaTreeElement) => element is {
3
3
  type: "theme";
4
4
  code: string;
@@ -18,7 +18,6 @@ export declare const isTheme: (element: CriteriaTreeElement) => element is {
18
18
  items: {
19
19
  type: "task-item";
20
20
  code: string;
21
- title: string;
22
21
  definition: {
23
22
  type: "select-single";
24
23
  options: {
@@ -209,7 +208,6 @@ export declare const isCriterion: (element: CriteriaTreeElement) => element is {
209
208
  items: {
210
209
  type: "task-item";
211
210
  code: string;
212
- title: string;
213
211
  definition: {
214
212
  type: "select-single";
215
213
  options: {
@@ -359,7 +357,6 @@ export declare const isTaskGroup: (element: CriteriaTreeElement) => element is {
359
357
  items: {
360
358
  type: "task-item";
361
359
  code: string;
362
- title: string;
363
360
  definition: {
364
361
  type: "select-single";
365
362
  options: {
@@ -479,7 +476,6 @@ export declare const isTask: (element: CriteriaTreeElement) => element is {
479
476
  items: {
480
477
  type: "task-item";
481
478
  code: string;
482
- title: string;
483
479
  definition: {
484
480
  type: "select-single";
485
481
  options: {
@@ -568,7 +564,6 @@ export declare const isTask: (element: CriteriaTreeElement) => element is {
568
564
  export declare const isTaskItem: (element: CriteriaTreeElement) => element is {
569
565
  type: "task-item";
570
566
  code: string;
571
- title: string;
572
567
  definition: {
573
568
  type: "select-single";
574
569
  options: {
@@ -639,7 +634,7 @@ export declare const shouldHideCode: (element: Pick<CriteriaTreeElement, "option
639
634
  /**
640
635
  * Get the qualified name of a tree element, which is the title with the code prepended if it is different
641
636
  */
642
- export declare const getQualifiedName: (element: Pick<CriteriaTreeElement, "code" | "title" | "options">) => string;
637
+ export declare const getQualifiedName: (element: Pick<Exclude<CriteriaTreeElement, TaskItem>, "code" | "title" | "options">) => string;
643
638
  /**
644
639
  * Find an element in the criteria tree by its code
645
640
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "A protocol and tools for defining and working with criteria sets",
5
5
  "private": false,
6
6
  "author": "Andrés Angulo <aa@openframe.org>",