@openframe-org/criteria-set-protocol 2.0.15 → 2.0.16

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.
Files changed (51) hide show
  1. package/dist/index.js +7 -17
  2. package/dist/services/i-versioned.service.d.ts +16 -0
  3. package/dist/services/i-versioned.service.js +2 -0
  4. package/dist/services/index.d.ts +2 -0
  5. package/dist/services/index.js +18 -0
  6. package/dist/services/versions.service.d.ts +38 -0
  7. package/dist/services/versions.service.js +49 -0
  8. package/dist/types.d.ts +2 -0
  9. package/dist/types.js +2 -0
  10. package/dist/v1/schemas/certification.d.ts +8 -8
  11. package/dist/v1/schemas/common.d.ts +2 -2
  12. package/dist/v1/schemas/criteria-set-id-param-schema.d.ts +11 -0
  13. package/dist/v1/schemas/criteria-set-id-param-schema.js +11 -0
  14. package/dist/v1/schemas/criteria-set.d.ts +8 -0
  15. package/dist/v1/schemas/criteria-set.js +7 -0
  16. package/dist/v1/schemas/criteria-tree.d.ts +118 -118
  17. package/dist/v1/schemas/criterion.d.ts +20 -20
  18. package/dist/v1/schemas/download-matrix-body-schema.d.ts +15 -0
  19. package/dist/v1/schemas/download-matrix-body-schema.js +36 -0
  20. package/dist/v1/schemas/index.d.ts +1 -0
  21. package/dist/v1/schemas/index.js +1 -0
  22. package/dist/v1/schemas/matrix-body-schema.d.ts +20 -0
  23. package/dist/v1/schemas/matrix-body-schema.js +14 -0
  24. package/dist/v1/schemas/metadata.d.ts +2 -2
  25. package/dist/v1/schemas/quality.d.ts +498 -181
  26. package/dist/v1/schemas/quality.js +2 -2
  27. package/dist/v1/schemas/response.d.ts +2 -2
  28. package/dist/v1/schemas/task-group.d.ts +12 -12
  29. package/dist/v1/schemas/task-item.d.ts +2 -2
  30. package/dist/v1/schemas/task.d.ts +6 -6
  31. package/dist/v1/schemas/theme.d.ts +30 -30
  32. package/dist/v1/schemas/tree-and-data-body-schema.d.ts +17 -0
  33. package/dist/v1/schemas/tree-and-data-body-schema.js +13 -0
  34. package/dist/v1/schemas/tree-and-matrix-body-schema.d.ts +19 -0
  35. package/dist/v1/schemas/tree-and-matrix-body-schema.js +38 -0
  36. package/dist/v1/schemas/tree-body-schema.d.ts +17 -0
  37. package/dist/v1/schemas/tree-body-schema.js +37 -0
  38. package/dist/v1/schemas/utils.d.ts +4 -1
  39. package/dist/v1/schemas/utils.js +7 -1
  40. package/dist/v1/schemas/version-param-schema.d.ts +11 -0
  41. package/dist/v1/schemas/version-param-schema.js +11 -0
  42. package/dist/v1/services/i-protocol-v1.service.d.ts +26 -0
  43. package/dist/v1/services/i-protocol-v1.service.js +2 -0
  44. package/dist/v1/types/criteria.d.ts +2 -1
  45. package/dist/v1/types/express.d.ts +1 -0
  46. package/dist/v1/utils/color.d.ts +2 -0
  47. package/dist/v1/utils/color.js +10 -0
  48. package/dist/v1/utils/index.d.ts +7 -0
  49. package/dist/v1/utils/index.js +15 -0
  50. package/dist/v1/utils.d.ts +761 -6
  51. package/package.json +1 -1
@@ -692,8 +692,8 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
692
692
  hideCode?: boolean | undefined;
693
693
  }>>;
694
694
  }>, "strip", z.ZodTypeAny, {
695
- code: string;
696
695
  type: "task-item";
696
+ code: string;
697
697
  definition: {
698
698
  type: "select-single";
699
699
  options: {
@@ -762,8 +762,8 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
762
762
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
763
763
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
764
764
  }, {
765
- code: string;
766
765
  type: "task-item";
766
+ code: string;
767
767
  definition: {
768
768
  type: "select-single";
769
769
  options: {
@@ -840,12 +840,12 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
840
840
  hideCode?: boolean | undefined;
841
841
  }>>;
842
842
  }>, "strip", z.ZodTypeAny, {
843
- code: string;
844
843
  type: "task";
844
+ code: string;
845
845
  title: string;
846
846
  items: {
847
- code: string;
848
847
  type: "task-item";
848
+ code: string;
849
849
  definition: {
850
850
  type: "select-single";
851
851
  options: {
@@ -949,12 +949,12 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
949
949
  })[] | undefined;
950
950
  sortOrder?: number | undefined;
951
951
  }, {
952
- code: string;
953
952
  type: "task";
953
+ code: string;
954
954
  title: string;
955
955
  items: {
956
- code: string;
957
956
  type: "task-item";
957
+ code: string;
958
958
  definition: {
959
959
  type: "select-single";
960
960
  options: {
@@ -1069,16 +1069,16 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1069
1069
  hideFromHierarchy?: boolean | undefined;
1070
1070
  }>>;
1071
1071
  }>, "strip", z.ZodTypeAny, {
1072
- code: string;
1073
1072
  type: "task-group";
1073
+ code: string;
1074
1074
  title: string;
1075
1075
  items: {
1076
- code: string;
1077
1076
  type: "task";
1077
+ code: string;
1078
1078
  title: string;
1079
1079
  items: {
1080
- code: string;
1081
1080
  type: "task-item";
1081
+ code: string;
1082
1082
  definition: {
1083
1083
  type: "select-single";
1084
1084
  options: {
@@ -1218,16 +1218,16 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1218
1218
  sortOrder?: number | undefined;
1219
1219
  category?: string | undefined;
1220
1220
  }, {
1221
- code: string;
1222
1221
  type: "task-group";
1222
+ code: string;
1223
1223
  title: string;
1224
1224
  items: {
1225
- code: string;
1226
1225
  type: "task";
1226
+ code: string;
1227
1227
  title: string;
1228
1228
  items: {
1229
- code: string;
1230
1229
  type: "task-item";
1230
+ code: string;
1231
1231
  definition: {
1232
1232
  type: "select-single";
1233
1233
  options: {
@@ -1378,20 +1378,20 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1378
1378
  hideFromHierarchy?: boolean | undefined;
1379
1379
  }>>;
1380
1380
  }>, "strip", z.ZodTypeAny, {
1381
- code: string;
1382
1381
  type: "criterion";
1382
+ code: string;
1383
1383
  title: string;
1384
1384
  items: {
1385
- code: string;
1386
1385
  type: "task-group";
1386
+ code: string;
1387
1387
  title: string;
1388
1388
  items: {
1389
- code: string;
1390
1389
  type: "task";
1390
+ code: string;
1391
1391
  title: string;
1392
1392
  items: {
1393
- code: string;
1394
1393
  type: "task-item";
1394
+ code: string;
1395
1395
  definition: {
1396
1396
  type: "select-single";
1397
1397
  options: {
@@ -1566,20 +1566,20 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1566
1566
  })[] | undefined;
1567
1567
  sortOrder?: number | undefined;
1568
1568
  }, {
1569
- code: string;
1570
1569
  type: "criterion";
1570
+ code: string;
1571
1571
  title: string;
1572
1572
  items: {
1573
- code: string;
1574
1573
  type: "task-group";
1574
+ code: string;
1575
1575
  title: string;
1576
1576
  items: {
1577
- code: string;
1578
1577
  type: "task";
1578
+ code: string;
1579
1579
  title: string;
1580
1580
  items: {
1581
- code: string;
1582
1581
  type: "task-item";
1582
+ code: string;
1583
1583
  definition: {
1584
1584
  type: "select-single";
1585
1585
  options: {
@@ -1765,24 +1765,24 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1765
1765
  hideFromHierarchy?: boolean | undefined;
1766
1766
  }>>;
1767
1767
  }>, "strip", z.ZodTypeAny, {
1768
- code: string;
1769
1768
  type: "theme";
1769
+ code: string;
1770
1770
  title: string;
1771
1771
  items: {
1772
- code: string;
1773
1772
  type: "criterion";
1773
+ code: string;
1774
1774
  title: string;
1775
1775
  items: {
1776
- code: string;
1777
1776
  type: "task-group";
1777
+ code: string;
1778
1778
  title: string;
1779
1779
  items: {
1780
- code: string;
1781
1780
  type: "task";
1781
+ code: string;
1782
1782
  title: string;
1783
1783
  items: {
1784
- code: string;
1785
1784
  type: "task-item";
1785
+ code: string;
1786
1786
  definition: {
1787
1787
  type: "select-single";
1788
1788
  options: {
@@ -2004,24 +2004,24 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2004
2004
  })[] | undefined;
2005
2005
  sortOrder?: number | undefined;
2006
2006
  }, {
2007
- code: string;
2008
2007
  type: "theme";
2008
+ code: string;
2009
2009
  title: string;
2010
2010
  items: {
2011
- code: string;
2012
2011
  type: "criterion";
2012
+ code: string;
2013
2013
  title: string;
2014
2014
  items: {
2015
- code: string;
2016
2015
  type: "task-group";
2016
+ code: string;
2017
2017
  title: string;
2018
2018
  items: {
2019
- code: string;
2020
2019
  type: "task";
2020
+ code: string;
2021
2021
  title: string;
2022
2022
  items: {
2023
- code: string;
2024
2023
  type: "task-item";
2024
+ code: string;
2025
2025
  definition: {
2026
2026
  type: "select-single";
2027
2027
  options: {
@@ -2269,9 +2269,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2269
2269
  exclusiveMinimum?: number | undefined;
2270
2270
  }>;
2271
2271
  }>, "strip", z.ZodTypeAny, {
2272
+ type: "number";
2272
2273
  code: string;
2273
2274
  name: string;
2274
- type: "number";
2275
2275
  rulesText: string;
2276
2276
  rules: {
2277
2277
  minimum?: number | undefined;
@@ -2282,9 +2282,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2282
2282
  description?: string | undefined;
2283
2283
  icon?: string | undefined;
2284
2284
  }, {
2285
+ type: "number";
2285
2286
  code: string;
2286
2287
  name: string;
2287
- type: "number";
2288
2288
  rulesText: string;
2289
2289
  rules: {
2290
2290
  minimum?: number | undefined;
@@ -2320,9 +2320,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2320
2320
  exclusiveMinimum?: number | undefined;
2321
2321
  }>;
2322
2322
  }>, "strip", z.ZodTypeAny, {
2323
+ type: "percentage";
2323
2324
  code: string;
2324
2325
  name: string;
2325
- type: "percentage";
2326
2326
  rulesText: string;
2327
2327
  rules: {
2328
2328
  minimum?: number | undefined;
@@ -2333,9 +2333,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2333
2333
  description?: string | undefined;
2334
2334
  icon?: string | undefined;
2335
2335
  }, {
2336
+ type: "percentage";
2336
2337
  code: string;
2337
2338
  name: string;
2338
- type: "percentage";
2339
2339
  rulesText: string;
2340
2340
  rules: {
2341
2341
  minimum?: number | undefined;
@@ -2349,24 +2349,24 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2349
2349
  }>, "strip", z.ZodTypeAny, {
2350
2350
  version: string;
2351
2351
  themes: {
2352
- code: string;
2353
2352
  type: "theme";
2353
+ code: string;
2354
2354
  title: string;
2355
2355
  items: {
2356
- code: string;
2357
2356
  type: "criterion";
2357
+ code: string;
2358
2358
  title: string;
2359
2359
  items: {
2360
- code: string;
2361
2360
  type: "task-group";
2361
+ code: string;
2362
2362
  title: string;
2363
2363
  items: {
2364
- code: string;
2365
2364
  type: "task";
2365
+ code: string;
2366
2366
  title: string;
2367
2367
  items: {
2368
- code: string;
2369
2368
  type: "task-item";
2369
+ code: string;
2370
2370
  definition: {
2371
2371
  type: "select-single";
2372
2372
  options: {
@@ -2591,9 +2591,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2591
2591
  result?: any;
2592
2592
  certifications?: string[] | undefined;
2593
2593
  certificationDefinitions?: ({
2594
+ type: "number";
2594
2595
  code: string;
2595
2596
  name: string;
2596
- type: "number";
2597
2597
  rulesText: string;
2598
2598
  rules: {
2599
2599
  minimum?: number | undefined;
@@ -2604,9 +2604,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2604
2604
  description?: string | undefined;
2605
2605
  icon?: string | undefined;
2606
2606
  } | {
2607
+ type: "percentage";
2607
2608
  code: string;
2608
2609
  name: string;
2609
- type: "percentage";
2610
2610
  rulesText: string;
2611
2611
  rules: {
2612
2612
  minimum?: number | undefined;
@@ -2620,24 +2620,24 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2620
2620
  }, {
2621
2621
  version: string;
2622
2622
  themes: {
2623
- code: string;
2624
2623
  type: "theme";
2624
+ code: string;
2625
2625
  title: string;
2626
2626
  items: {
2627
- code: string;
2628
2627
  type: "criterion";
2628
+ code: string;
2629
2629
  title: string;
2630
2630
  items: {
2631
- code: string;
2632
2631
  type: "task-group";
2632
+ code: string;
2633
2633
  title: string;
2634
2634
  items: {
2635
- code: string;
2636
2635
  type: "task";
2636
+ code: string;
2637
2637
  title: string;
2638
2638
  items: {
2639
- code: string;
2640
2639
  type: "task-item";
2640
+ code: string;
2641
2641
  definition: {
2642
2642
  type: "select-single";
2643
2643
  options: {
@@ -2862,9 +2862,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2862
2862
  result?: any;
2863
2863
  certifications?: string[] | undefined;
2864
2864
  certificationDefinitions?: ({
2865
+ type: "number";
2865
2866
  code: string;
2866
2867
  name: string;
2867
- type: "number";
2868
2868
  rulesText: string;
2869
2869
  rules: {
2870
2870
  minimum?: number | undefined;
@@ -2875,9 +2875,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
2875
2875
  description?: string | undefined;
2876
2876
  icon?: string | undefined;
2877
2877
  } | {
2878
+ type: "percentage";
2878
2879
  code: string;
2879
2880
  name: string;
2880
- type: "percentage";
2881
2881
  rulesText: string;
2882
2882
  rules: {
2883
2883
  minimum?: number | undefined;
@@ -3576,8 +3576,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3576
3576
  hideCode?: boolean | undefined;
3577
3577
  }>>;
3578
3578
  }>, "strip", z.ZodTypeAny, {
3579
- code: string;
3580
3579
  type: "task-item";
3580
+ code: string;
3581
3581
  definition: {
3582
3582
  type: "select-single";
3583
3583
  options: {
@@ -3646,8 +3646,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3646
3646
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
3647
3647
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
3648
3648
  }, {
3649
- code: string;
3650
3649
  type: "task-item";
3650
+ code: string;
3651
3651
  definition: {
3652
3652
  type: "select-single";
3653
3653
  options: {
@@ -3724,12 +3724,12 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3724
3724
  hideCode?: boolean | undefined;
3725
3725
  }>>;
3726
3726
  }>, "strip", z.ZodTypeAny, {
3727
- code: string;
3728
3727
  type: "task";
3728
+ code: string;
3729
3729
  title: string;
3730
3730
  items: {
3731
- code: string;
3732
3731
  type: "task-item";
3732
+ code: string;
3733
3733
  definition: {
3734
3734
  type: "select-single";
3735
3735
  options: {
@@ -3833,12 +3833,12 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3833
3833
  })[] | undefined;
3834
3834
  sortOrder?: number | undefined;
3835
3835
  }, {
3836
- code: string;
3837
3836
  type: "task";
3837
+ code: string;
3838
3838
  title: string;
3839
3839
  items: {
3840
- code: string;
3841
3840
  type: "task-item";
3841
+ code: string;
3842
3842
  definition: {
3843
3843
  type: "select-single";
3844
3844
  options: {
@@ -3953,16 +3953,16 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
3953
3953
  hideFromHierarchy?: boolean | undefined;
3954
3954
  }>>;
3955
3955
  }>, "strip", z.ZodTypeAny, {
3956
- code: string;
3957
3956
  type: "task-group";
3957
+ code: string;
3958
3958
  title: string;
3959
3959
  items: {
3960
- code: string;
3961
3960
  type: "task";
3961
+ code: string;
3962
3962
  title: string;
3963
3963
  items: {
3964
- code: string;
3965
3964
  type: "task-item";
3965
+ code: string;
3966
3966
  definition: {
3967
3967
  type: "select-single";
3968
3968
  options: {
@@ -4102,16 +4102,16 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4102
4102
  sortOrder?: number | undefined;
4103
4103
  category?: string | undefined;
4104
4104
  }, {
4105
- code: string;
4106
4105
  type: "task-group";
4106
+ code: string;
4107
4107
  title: string;
4108
4108
  items: {
4109
- code: string;
4110
4109
  type: "task";
4110
+ code: string;
4111
4111
  title: string;
4112
4112
  items: {
4113
- code: string;
4114
4113
  type: "task-item";
4114
+ code: string;
4115
4115
  definition: {
4116
4116
  type: "select-single";
4117
4117
  options: {
@@ -4262,20 +4262,20 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4262
4262
  hideFromHierarchy?: boolean | undefined;
4263
4263
  }>>;
4264
4264
  }>, "strip", z.ZodTypeAny, {
4265
- code: string;
4266
4265
  type: "criterion";
4266
+ code: string;
4267
4267
  title: string;
4268
4268
  items: {
4269
- code: string;
4270
4269
  type: "task-group";
4270
+ code: string;
4271
4271
  title: string;
4272
4272
  items: {
4273
- code: string;
4274
4273
  type: "task";
4274
+ code: string;
4275
4275
  title: string;
4276
4276
  items: {
4277
- code: string;
4278
4277
  type: "task-item";
4278
+ code: string;
4279
4279
  definition: {
4280
4280
  type: "select-single";
4281
4281
  options: {
@@ -4450,20 +4450,20 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4450
4450
  })[] | undefined;
4451
4451
  sortOrder?: number | undefined;
4452
4452
  }, {
4453
- code: string;
4454
4453
  type: "criterion";
4454
+ code: string;
4455
4455
  title: string;
4456
4456
  items: {
4457
- code: string;
4458
4457
  type: "task-group";
4458
+ code: string;
4459
4459
  title: string;
4460
4460
  items: {
4461
- code: string;
4462
4461
  type: "task";
4462
+ code: string;
4463
4463
  title: string;
4464
4464
  items: {
4465
- code: string;
4466
4465
  type: "task-item";
4466
+ code: string;
4467
4467
  definition: {
4468
4468
  type: "select-single";
4469
4469
  options: {
@@ -4649,24 +4649,24 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4649
4649
  hideFromHierarchy?: boolean | undefined;
4650
4650
  }>>;
4651
4651
  }>, "strip", z.ZodTypeAny, {
4652
- code: string;
4653
4652
  type: "theme";
4653
+ code: string;
4654
4654
  title: string;
4655
4655
  items: {
4656
- code: string;
4657
4656
  type: "criterion";
4657
+ code: string;
4658
4658
  title: string;
4659
4659
  items: {
4660
- code: string;
4661
4660
  type: "task-group";
4661
+ code: string;
4662
4662
  title: string;
4663
4663
  items: {
4664
- code: string;
4665
4664
  type: "task";
4665
+ code: string;
4666
4666
  title: string;
4667
4667
  items: {
4668
- code: string;
4669
4668
  type: "task-item";
4669
+ code: string;
4670
4670
  definition: {
4671
4671
  type: "select-single";
4672
4672
  options: {
@@ -4888,24 +4888,24 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
4888
4888
  })[] | undefined;
4889
4889
  sortOrder?: number | undefined;
4890
4890
  }, {
4891
- code: string;
4892
4891
  type: "theme";
4892
+ code: string;
4893
4893
  title: string;
4894
4894
  items: {
4895
- code: string;
4896
4895
  type: "criterion";
4896
+ code: string;
4897
4897
  title: string;
4898
4898
  items: {
4899
- code: string;
4900
4899
  type: "task-group";
4900
+ code: string;
4901
4901
  title: string;
4902
4902
  items: {
4903
- code: string;
4904
4903
  type: "task";
4904
+ code: string;
4905
4905
  title: string;
4906
4906
  items: {
4907
- code: string;
4908
4907
  type: "task-item";
4908
+ code: string;
4909
4909
  definition: {
4910
4910
  type: "select-single";
4911
4911
  options: {
@@ -5671,8 +5671,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5671
5671
  hideCode?: boolean | undefined;
5672
5672
  }>>;
5673
5673
  }>, "strip", z.ZodTypeAny, {
5674
- code: string;
5675
5674
  type: "task-item";
5675
+ code: string;
5676
5676
  definition: {
5677
5677
  type: "select-single";
5678
5678
  options: {
@@ -5741,8 +5741,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5741
5741
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
5742
5742
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
5743
5743
  }, {
5744
- code: string;
5745
5744
  type: "task-item";
5745
+ code: string;
5746
5746
  definition: {
5747
5747
  type: "select-single";
5748
5748
  options: {
@@ -5819,12 +5819,12 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5819
5819
  hideCode?: boolean | undefined;
5820
5820
  }>>;
5821
5821
  }>, "strip", z.ZodTypeAny, {
5822
- code: string;
5823
5822
  type: "task";
5823
+ code: string;
5824
5824
  title: string;
5825
5825
  items: {
5826
- code: string;
5827
5826
  type: "task-item";
5827
+ code: string;
5828
5828
  definition: {
5829
5829
  type: "select-single";
5830
5830
  options: {
@@ -5928,12 +5928,12 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
5928
5928
  })[] | undefined;
5929
5929
  sortOrder?: number | undefined;
5930
5930
  }, {
5931
- code: string;
5932
5931
  type: "task";
5932
+ code: string;
5933
5933
  title: string;
5934
5934
  items: {
5935
- code: string;
5936
5935
  type: "task-item";
5936
+ code: string;
5937
5937
  definition: {
5938
5938
  type: "select-single";
5939
5939
  options: {
@@ -6048,16 +6048,16 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6048
6048
  hideFromHierarchy?: boolean | undefined;
6049
6049
  }>>;
6050
6050
  }>, "strip", z.ZodTypeAny, {
6051
- code: string;
6052
6051
  type: "task-group";
6052
+ code: string;
6053
6053
  title: string;
6054
6054
  items: {
6055
- code: string;
6056
6055
  type: "task";
6056
+ code: string;
6057
6057
  title: string;
6058
6058
  items: {
6059
- code: string;
6060
6059
  type: "task-item";
6060
+ code: string;
6061
6061
  definition: {
6062
6062
  type: "select-single";
6063
6063
  options: {
@@ -6197,16 +6197,16 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6197
6197
  sortOrder?: number | undefined;
6198
6198
  category?: string | undefined;
6199
6199
  }, {
6200
- code: string;
6201
6200
  type: "task-group";
6201
+ code: string;
6202
6202
  title: string;
6203
6203
  items: {
6204
- code: string;
6205
6204
  type: "task";
6205
+ code: string;
6206
6206
  title: string;
6207
6207
  items: {
6208
- code: string;
6209
6208
  type: "task-item";
6209
+ code: string;
6210
6210
  definition: {
6211
6211
  type: "select-single";
6212
6212
  options: {
@@ -6357,20 +6357,20 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6357
6357
  hideFromHierarchy?: boolean | undefined;
6358
6358
  }>>;
6359
6359
  }>, "strip", z.ZodTypeAny, {
6360
- code: string;
6361
6360
  type: "criterion";
6361
+ code: string;
6362
6362
  title: string;
6363
6363
  items: {
6364
- code: string;
6365
6364
  type: "task-group";
6365
+ code: string;
6366
6366
  title: string;
6367
6367
  items: {
6368
- code: string;
6369
6368
  type: "task";
6369
+ code: string;
6370
6370
  title: string;
6371
6371
  items: {
6372
- code: string;
6373
6372
  type: "task-item";
6373
+ code: string;
6374
6374
  definition: {
6375
6375
  type: "select-single";
6376
6376
  options: {
@@ -6545,20 +6545,20 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
6545
6545
  })[] | undefined;
6546
6546
  sortOrder?: number | undefined;
6547
6547
  }, {
6548
- code: string;
6549
6548
  type: "criterion";
6549
+ code: string;
6550
6550
  title: string;
6551
6551
  items: {
6552
- code: string;
6553
6552
  type: "task-group";
6553
+ code: string;
6554
6554
  title: string;
6555
6555
  items: {
6556
- code: string;
6557
6556
  type: "task";
6557
+ code: string;
6558
6558
  title: string;
6559
6559
  items: {
6560
- code: string;
6561
6560
  type: "task-item";
6561
+ code: string;
6562
6562
  definition: {
6563
6563
  type: "select-single";
6564
6564
  options: {
@@ -7185,8 +7185,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
7185
7185
  hideCode?: boolean | undefined;
7186
7186
  }>>;
7187
7187
  }>, "strip", z.ZodTypeAny, {
7188
- code: string;
7189
7188
  type: "task-item";
7189
+ code: string;
7190
7190
  definition: {
7191
7191
  type: "select-single";
7192
7192
  options: {
@@ -7255,8 +7255,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
7255
7255
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
7256
7256
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
7257
7257
  }, {
7258
- code: string;
7259
7258
  type: "task-item";
7259
+ code: string;
7260
7260
  definition: {
7261
7261
  type: "select-single";
7262
7262
  options: {
@@ -7333,12 +7333,12 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
7333
7333
  hideCode?: boolean | undefined;
7334
7334
  }>>;
7335
7335
  }>, "strip", z.ZodTypeAny, {
7336
- code: string;
7337
7336
  type: "task";
7337
+ code: string;
7338
7338
  title: string;
7339
7339
  items: {
7340
- code: string;
7341
7340
  type: "task-item";
7341
+ code: string;
7342
7342
  definition: {
7343
7343
  type: "select-single";
7344
7344
  options: {
@@ -7442,12 +7442,12 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
7442
7442
  })[] | undefined;
7443
7443
  sortOrder?: number | undefined;
7444
7444
  }, {
7445
- code: string;
7446
7445
  type: "task";
7446
+ code: string;
7447
7447
  title: string;
7448
7448
  items: {
7449
- code: string;
7450
7449
  type: "task-item";
7450
+ code: string;
7451
7451
  definition: {
7452
7452
  type: "select-single";
7453
7453
  options: {
@@ -7562,16 +7562,16 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
7562
7562
  hideFromHierarchy?: boolean | undefined;
7563
7563
  }>>;
7564
7564
  }>, "strip", z.ZodTypeAny, {
7565
- code: string;
7566
7565
  type: "task-group";
7566
+ code: string;
7567
7567
  title: string;
7568
7568
  items: {
7569
- code: string;
7570
7569
  type: "task";
7570
+ code: string;
7571
7571
  title: string;
7572
7572
  items: {
7573
- code: string;
7574
7573
  type: "task-item";
7574
+ code: string;
7575
7575
  definition: {
7576
7576
  type: "select-single";
7577
7577
  options: {
@@ -7711,16 +7711,16 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
7711
7711
  sortOrder?: number | undefined;
7712
7712
  category?: string | undefined;
7713
7713
  }, {
7714
- code: string;
7715
7714
  type: "task-group";
7715
+ code: string;
7716
7716
  title: string;
7717
7717
  items: {
7718
- code: string;
7719
7718
  type: "task";
7719
+ code: string;
7720
7720
  title: string;
7721
7721
  items: {
7722
- code: string;
7723
7722
  type: "task-item";
7723
+ code: string;
7724
7724
  definition: {
7725
7725
  type: "select-single";
7726
7726
  options: {
@@ -8219,8 +8219,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
8219
8219
  hideCode?: boolean | undefined;
8220
8220
  }>>;
8221
8221
  }>, "strip", z.ZodTypeAny, {
8222
- code: string;
8223
8222
  type: "task-item";
8223
+ code: string;
8224
8224
  definition: {
8225
8225
  type: "select-single";
8226
8226
  options: {
@@ -8289,8 +8289,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
8289
8289
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
8290
8290
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
8291
8291
  }, {
8292
- code: string;
8293
8292
  type: "task-item";
8293
+ code: string;
8294
8294
  definition: {
8295
8295
  type: "select-single";
8296
8296
  options: {
@@ -8367,12 +8367,12 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
8367
8367
  hideCode?: boolean | undefined;
8368
8368
  }>>;
8369
8369
  }>, "strip", z.ZodTypeAny, {
8370
- code: string;
8371
8370
  type: "task";
8371
+ code: string;
8372
8372
  title: string;
8373
8373
  items: {
8374
- code: string;
8375
8374
  type: "task-item";
8375
+ code: string;
8376
8376
  definition: {
8377
8377
  type: "select-single";
8378
8378
  options: {
@@ -8476,12 +8476,12 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
8476
8476
  })[] | undefined;
8477
8477
  sortOrder?: number | undefined;
8478
8478
  }, {
8479
- code: string;
8480
8479
  type: "task";
8480
+ code: string;
8481
8481
  title: string;
8482
8482
  items: {
8483
- code: string;
8484
8483
  type: "task-item";
8484
+ code: string;
8485
8485
  definition: {
8486
8486
  type: "select-single";
8487
8487
  options: {
@@ -8851,8 +8851,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
8851
8851
  hideCode?: boolean | undefined;
8852
8852
  }>>;
8853
8853
  }>, "strip", z.ZodTypeAny, {
8854
- code: string;
8855
8854
  type: "task-item";
8855
+ code: string;
8856
8856
  definition: {
8857
8857
  type: "select-single";
8858
8858
  options: {
@@ -8921,8 +8921,8 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
8921
8921
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
8922
8922
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
8923
8923
  }, {
8924
- code: string;
8925
8924
  type: "task-item";
8925
+ code: string;
8926
8926
  definition: {
8927
8927
  type: "select-single";
8928
8928
  options: {