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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +34 -27
  2. package/dist/index.d.ts +1 -1
  3. package/dist/v1/errors/DataValidationError.d.ts +1 -1
  4. package/dist/v1/errors/DataValidationError.js +1 -1
  5. package/dist/v1/errors/ParameterValidationError.d.ts +1 -1
  6. package/dist/v1/errors/ParameterValidationError.js +1 -1
  7. package/dist/v1/errors/ValidationError.d.ts +1 -1
  8. package/dist/v1/errors/ValidationError.js +1 -1
  9. package/dist/v1/errors/index.d.ts +4 -4
  10. package/dist/v1/errors/types.d.ts +1 -1
  11. package/dist/v1/index.d.ts +5 -5
  12. package/dist/v1/schemas/certification.d.ts +1 -1
  13. package/dist/v1/schemas/certification.js +19 -13
  14. package/dist/v1/schemas/common.d.ts +13 -11
  15. package/dist/v1/schemas/common.js +27 -11
  16. package/dist/v1/schemas/criteria-tree.d.ts +365 -311
  17. package/dist/v1/schemas/criteria-tree.js +13 -5
  18. package/dist/v1/schemas/criterion.d.ts +68 -58
  19. package/dist/v1/schemas/criterion.js +4 -4
  20. package/dist/v1/schemas/data-map.d.ts +1 -1
  21. package/dist/v1/schemas/data-map.js +1 -1
  22. package/dist/v1/schemas/documentation.d.ts +1 -1
  23. package/dist/v1/schemas/documentation.js +9 -5
  24. package/dist/v1/schemas/index.d.ts +13 -13
  25. package/dist/v1/schemas/metadata.d.ts +1 -1
  26. package/dist/v1/schemas/metadata.js +6 -6
  27. package/dist/v1/schemas/quality.d.ts +469 -141
  28. package/dist/v1/schemas/quality.js +7 -7
  29. package/dist/v1/schemas/request/criteria-set-id-param-schema.d.ts +1 -1
  30. package/dist/v1/schemas/request/criteria-set-id-param-schema.js +3 -2
  31. package/dist/v1/schemas/request/index.d.ts +4 -4
  32. package/dist/v1/schemas/request/matrix-body-schema.d.ts +1 -1
  33. package/dist/v1/schemas/request/matrix-body-schema.js +5 -3
  34. package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +1 -1
  35. package/dist/v1/schemas/request/matrix-request-body-schema.js +8 -6
  36. package/dist/v1/schemas/request/tree-and-data-body-schema.d.ts +1 -1
  37. package/dist/v1/schemas/request/tree-and-data-body-schema.js +5 -3
  38. package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +1 -1
  39. package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +7 -5
  40. package/dist/v1/schemas/request/version-param-schema.d.ts +1 -1
  41. package/dist/v1/schemas/request/version-param-schema.js +3 -2
  42. package/dist/v1/schemas/response.d.ts +2 -2
  43. package/dist/v1/schemas/response.js +1 -1
  44. package/dist/v1/schemas/task-group.d.ts +47 -39
  45. package/dist/v1/schemas/task-group.js +5 -5
  46. package/dist/v1/schemas/task-item.d.ts +23 -20
  47. package/dist/v1/schemas/task-item.js +29 -35
  48. package/dist/v1/schemas/task.d.ts +30 -24
  49. package/dist/v1/schemas/task.js +4 -4
  50. package/dist/v1/schemas/theme.d.ts +93 -81
  51. package/dist/v1/schemas/theme.js +4 -4
  52. package/dist/v1/services/i-criteria-set.service.d.ts +1 -1
  53. package/dist/v1/services/index.d.ts +2 -2
  54. package/dist/v1/services/manager.service.js +4 -1
  55. package/dist/v1/types/criteria.d.ts +2 -2
  56. package/dist/v1/types/express.d.ts +3 -3
  57. package/dist/v1/types/index.d.ts +2 -2
  58. package/dist/v1/utils.d.ts +38 -33
  59. package/dist/v1/utils.js +6 -6
  60. package/package.json +11 -3
@@ -9,12 +9,20 @@ const criterion_1 = require("./criterion");
9
9
  const task_group_1 = require("./task-group");
10
10
  const task_1 = require("./task");
11
11
  const task_item_1 = require("./task-item");
12
- exports.criteriaTreeSchema = data_map_1.dataMapSchema.pick({
12
+ exports.criteriaTreeSchema = data_map_1.dataMapSchema
13
+ .pick({
13
14
  version: true,
14
15
  result: true,
15
- certifications: true
16
- }).extend({
16
+ certifications: true,
17
+ })
18
+ .extend({
17
19
  themes: zod_1.z.array(theme_1.themeSchema),
18
- certificationDefinitions: (0, zod_1.optional)(zod_1.z.array(certification_1.certificationDefinitionSchema))
20
+ certificationDefinitions: zod_1.z.array(certification_1.certificationDefinitionSchema).optional(),
19
21
  });
20
- exports.criteriaTreeElementSchema = zod_1.z.discriminatedUnion('type', [theme_1.themeSchema, criterion_1.criterionSchema, task_group_1.taskGroupSchema, task_1.taskSchema, task_item_1.taskItemSchema]);
22
+ exports.criteriaTreeElementSchema = zod_1.z.discriminatedUnion("type", [
23
+ theme_1.themeSchema,
24
+ criterion_1.criterionSchema,
25
+ task_group_1.taskGroupSchema,
26
+ task_1.taskSchema,
27
+ task_item_1.taskItemSchema,
28
+ ]);
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
2
  export declare const criterionOptionsSchema: z.ZodObject<{
3
3
  hideCode: z.ZodOptional<z.ZodBoolean>;
4
4
  hideFromHierarchy: z.ZodOptional<z.ZodBoolean>;
@@ -63,16 +63,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
63
63
  label: string;
64
64
  text: string;
65
65
  }>]>, "many">>;
66
- data: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
66
+ data: z.ZodOptional<z.ZodObject<{
67
67
  value: 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">]>>;
68
- text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
68
+ text: z.ZodOptional<z.ZodString>;
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
71
71
  text?: string | undefined;
72
72
  }, {
73
73
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
74
74
  text?: string | undefined;
75
- }>>>;
75
+ }>>;
76
76
  sortOrder: z.ZodOptional<z.ZodNumber>;
77
77
  }, {
78
78
  type: z.ZodLiteral<"criterion">;
@@ -130,16 +130,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
130
130
  label: string;
131
131
  text: string;
132
132
  }>]>, "many">>;
133
- data: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
133
+ data: z.ZodOptional<z.ZodObject<{
134
134
  value: 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">]>>;
135
- text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
135
+ text: z.ZodOptional<z.ZodString>;
136
136
  }, "strip", z.ZodTypeAny, {
137
137
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
138
138
  text?: string | undefined;
139
139
  }, {
140
140
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
141
141
  text?: string | undefined;
142
- }>>>;
142
+ }>>;
143
143
  sortOrder: z.ZodOptional<z.ZodNumber>;
144
144
  }, {
145
145
  type: z.ZodLiteral<"task-group">;
@@ -198,16 +198,16 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
198
198
  label: string;
199
199
  text: string;
200
200
  }>]>, "many">>;
201
- data: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
201
+ data: z.ZodOptional<z.ZodObject<{
202
202
  value: 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">]>>;
203
- text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
203
+ text: z.ZodOptional<z.ZodString>;
204
204
  }, "strip", z.ZodTypeAny, {
205
205
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
206
206
  text?: string | undefined;
207
207
  }, {
208
208
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
209
209
  text?: string | undefined;
210
- }>>>;
210
+ }>>;
211
211
  sortOrder: z.ZodOptional<z.ZodNumber>;
212
212
  }, {
213
213
  type: z.ZodLiteral<"task">;
@@ -266,24 +266,25 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
266
266
  label: string;
267
267
  text: string;
268
268
  }>]>, "many">>;
269
- data: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
269
+ data: z.ZodOptional<z.ZodObject<{
270
270
  value: 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">]>>;
271
- text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
271
+ text: z.ZodOptional<z.ZodString>;
272
272
  }, "strip", z.ZodTypeAny, {
273
273
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
274
274
  text?: string | undefined;
275
275
  }, {
276
276
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
277
277
  text?: string | undefined;
278
- }>>>;
278
+ }>>;
279
279
  sortOrder: z.ZodOptional<z.ZodNumber>;
280
280
  }, {
281
281
  type: z.ZodLiteral<"task-item">;
282
- data: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
282
+ data: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
283
283
  value: 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">]>>;
284
- text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
285
- valueReference: z.ZodOptional<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">]>>>;
286
- }, "strip", z.ZodTypeAny, {
284
+ text: z.ZodOptional<z.ZodString>;
285
+ }, {
286
+ 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">]>>;
287
+ }>, "strip", z.ZodTypeAny, {
287
288
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
288
289
  text?: string | undefined;
289
290
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -291,7 +292,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
291
292
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
292
293
  text?: string | undefined;
293
294
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
294
- }>>>;
295
+ }>>;
295
296
  definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
296
297
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
297
298
  }, {
@@ -420,6 +421,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
420
421
  }>]>;
421
422
  description: z.ZodOptional<z.ZodString>;
422
423
  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">]>>>;
424
+ 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">]>>;
423
425
  options: z.ZodOptional<z.ZodObject<{
424
426
  hideCode: z.ZodOptional<z.ZodBoolean>;
425
427
  }, "strip", z.ZodTypeAny, {
@@ -461,11 +463,11 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
461
463
  true: string;
462
464
  } | undefined;
463
465
  };
464
- data?: (Record<string, any> & {
466
+ data?: {
465
467
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
466
468
  text?: string | undefined;
467
469
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
468
- }) | undefined;
470
+ } | undefined;
469
471
  options?: {
470
472
  hideCode?: boolean | undefined;
471
473
  } | undefined;
@@ -487,6 +489,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
487
489
  text: string;
488
490
  })[] | undefined;
489
491
  sortOrder?: number | undefined;
492
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
490
493
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
491
494
  }, {
492
495
  type: "task-item";
@@ -522,11 +525,11 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
522
525
  true: string;
523
526
  } | undefined;
524
527
  };
525
- data?: (Record<string, any> & {
528
+ data?: {
526
529
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
527
530
  text?: string | undefined;
528
531
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
529
- }) | undefined;
532
+ } | undefined;
530
533
  options?: {
531
534
  hideCode?: boolean | undefined;
532
535
  } | undefined;
@@ -548,6 +551,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
548
551
  text: string;
549
552
  })[] | undefined;
550
553
  sortOrder?: number | undefined;
554
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
551
555
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
552
556
  }>>, "many">;
553
557
  options: z.ZodOptional<z.ZodObject<{
@@ -595,11 +599,11 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
595
599
  true: string;
596
600
  } | undefined;
597
601
  };
598
- data?: (Record<string, any> & {
602
+ data?: {
599
603
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
600
604
  text?: string | undefined;
601
605
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
602
- }) | undefined;
606
+ } | undefined;
603
607
  options?: {
604
608
  hideCode?: boolean | undefined;
605
609
  } | undefined;
@@ -621,12 +625,13 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
621
625
  text: string;
622
626
  })[] | undefined;
623
627
  sortOrder?: number | undefined;
628
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
624
629
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
625
630
  }[];
626
- data?: (Record<string, any> & {
631
+ data?: {
627
632
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
628
633
  text?: string | undefined;
629
- }) | undefined;
634
+ } | undefined;
630
635
  options?: {
631
636
  hideCode?: boolean | undefined;
632
637
  } | undefined;
@@ -686,11 +691,11 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
686
691
  true: string;
687
692
  } | undefined;
688
693
  };
689
- data?: (Record<string, any> & {
694
+ data?: {
690
695
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
691
696
  text?: string | undefined;
692
697
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
693
- }) | undefined;
698
+ } | undefined;
694
699
  options?: {
695
700
  hideCode?: boolean | undefined;
696
701
  } | undefined;
@@ -712,12 +717,13 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
712
717
  text: string;
713
718
  })[] | undefined;
714
719
  sortOrder?: number | undefined;
720
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
715
721
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
716
722
  }[];
717
- data?: (Record<string, any> & {
723
+ data?: {
718
724
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
719
725
  text?: string | undefined;
720
- }) | undefined;
726
+ } | undefined;
721
727
  options?: {
722
728
  hideCode?: boolean | undefined;
723
729
  } | undefined;
@@ -792,11 +798,11 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
792
798
  true: string;
793
799
  } | undefined;
794
800
  };
795
- data?: (Record<string, any> & {
801
+ data?: {
796
802
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
797
803
  text?: string | undefined;
798
804
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
799
- }) | undefined;
805
+ } | undefined;
800
806
  options?: {
801
807
  hideCode?: boolean | undefined;
802
808
  } | undefined;
@@ -818,12 +824,13 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
818
824
  text: string;
819
825
  })[] | undefined;
820
826
  sortOrder?: number | undefined;
827
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
821
828
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
822
829
  }[];
823
- data?: (Record<string, any> & {
830
+ data?: {
824
831
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
825
832
  text?: string | undefined;
826
- }) | undefined;
833
+ } | undefined;
827
834
  options?: {
828
835
  hideCode?: boolean | undefined;
829
836
  } | undefined;
@@ -846,10 +853,10 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
846
853
  })[] | undefined;
847
854
  sortOrder?: number | undefined;
848
855
  }[];
849
- data?: (Record<string, any> & {
856
+ data?: {
850
857
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
851
858
  text?: string | undefined;
852
- }) | undefined;
859
+ } | undefined;
853
860
  options?: {
854
861
  hideCode?: boolean | undefined;
855
862
  hideFromHierarchy?: boolean | undefined;
@@ -914,11 +921,11 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
914
921
  true: string;
915
922
  } | undefined;
916
923
  };
917
- data?: (Record<string, any> & {
924
+ data?: {
918
925
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
919
926
  text?: string | undefined;
920
927
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
921
- }) | undefined;
928
+ } | undefined;
922
929
  options?: {
923
930
  hideCode?: boolean | undefined;
924
931
  } | undefined;
@@ -940,12 +947,13 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
940
947
  text: string;
941
948
  })[] | undefined;
942
949
  sortOrder?: number | undefined;
950
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
943
951
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
944
952
  }[];
945
- data?: (Record<string, any> & {
953
+ data?: {
946
954
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
947
955
  text?: string | undefined;
948
- }) | undefined;
956
+ } | undefined;
949
957
  options?: {
950
958
  hideCode?: boolean | undefined;
951
959
  } | undefined;
@@ -968,10 +976,10 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
968
976
  })[] | undefined;
969
977
  sortOrder?: number | undefined;
970
978
  }[];
971
- data?: (Record<string, any> & {
979
+ data?: {
972
980
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
973
981
  text?: string | undefined;
974
- }) | undefined;
982
+ } | undefined;
975
983
  options?: {
976
984
  hideCode?: boolean | undefined;
977
985
  hideFromHierarchy?: boolean | undefined;
@@ -1051,11 +1059,11 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1051
1059
  true: string;
1052
1060
  } | undefined;
1053
1061
  };
1054
- data?: (Record<string, any> & {
1062
+ data?: {
1055
1063
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1056
1064
  text?: string | undefined;
1057
1065
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1058
- }) | undefined;
1066
+ } | undefined;
1059
1067
  options?: {
1060
1068
  hideCode?: boolean | undefined;
1061
1069
  } | undefined;
@@ -1077,12 +1085,13 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1077
1085
  text: string;
1078
1086
  })[] | undefined;
1079
1087
  sortOrder?: number | undefined;
1088
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1080
1089
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
1081
1090
  }[];
1082
- data?: (Record<string, any> & {
1091
+ data?: {
1083
1092
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1084
1093
  text?: string | undefined;
1085
- }) | undefined;
1094
+ } | undefined;
1086
1095
  options?: {
1087
1096
  hideCode?: boolean | undefined;
1088
1097
  } | undefined;
@@ -1105,10 +1114,10 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1105
1114
  })[] | undefined;
1106
1115
  sortOrder?: number | undefined;
1107
1116
  }[];
1108
- data?: (Record<string, any> & {
1117
+ data?: {
1109
1118
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1110
1119
  text?: string | undefined;
1111
- }) | undefined;
1120
+ } | undefined;
1112
1121
  options?: {
1113
1122
  hideCode?: boolean | undefined;
1114
1123
  hideFromHierarchy?: boolean | undefined;
@@ -1132,10 +1141,10 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1132
1141
  sortOrder?: number | undefined;
1133
1142
  category?: string | undefined;
1134
1143
  }[];
1135
- data?: (Record<string, any> & {
1144
+ data?: {
1136
1145
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1137
1146
  text?: string | undefined;
1138
- }) | undefined;
1147
+ } | undefined;
1139
1148
  options?: {
1140
1149
  hideCode?: boolean | undefined;
1141
1150
  hideFromHierarchy?: boolean | undefined;
@@ -1203,11 +1212,11 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1203
1212
  true: string;
1204
1213
  } | undefined;
1205
1214
  };
1206
- data?: (Record<string, any> & {
1215
+ data?: {
1207
1216
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1208
1217
  text?: string | undefined;
1209
1218
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1210
- }) | undefined;
1219
+ } | undefined;
1211
1220
  options?: {
1212
1221
  hideCode?: boolean | undefined;
1213
1222
  } | undefined;
@@ -1229,12 +1238,13 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1229
1238
  text: string;
1230
1239
  })[] | undefined;
1231
1240
  sortOrder?: number | undefined;
1241
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1232
1242
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
1233
1243
  }[];
1234
- data?: (Record<string, any> & {
1244
+ data?: {
1235
1245
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1236
1246
  text?: string | undefined;
1237
- }) | undefined;
1247
+ } | undefined;
1238
1248
  options?: {
1239
1249
  hideCode?: boolean | undefined;
1240
1250
  } | undefined;
@@ -1257,10 +1267,10 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1257
1267
  })[] | undefined;
1258
1268
  sortOrder?: number | undefined;
1259
1269
  }[];
1260
- data?: (Record<string, any> & {
1270
+ data?: {
1261
1271
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1262
1272
  text?: string | undefined;
1263
- }) | undefined;
1273
+ } | undefined;
1264
1274
  options?: {
1265
1275
  hideCode?: boolean | undefined;
1266
1276
  hideFromHierarchy?: boolean | undefined;
@@ -1284,10 +1294,10 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
1284
1294
  sortOrder?: number | undefined;
1285
1295
  category?: string | undefined;
1286
1296
  }[];
1287
- data?: (Record<string, any> & {
1297
+ data?: {
1288
1298
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
1289
1299
  text?: string | undefined;
1290
- }) | undefined;
1300
+ } | undefined;
1291
1301
  options?: {
1292
1302
  hideCode?: boolean | undefined;
1293
1303
  hideFromHierarchy?: boolean | undefined;
@@ -5,11 +5,11 @@ const zod_1 = require("zod");
5
5
  const task_group_1 = require("./task-group");
6
6
  const common_1 = require("./common");
7
7
  exports.criterionOptionsSchema = zod_1.z.object({
8
- hideCode: (0, zod_1.optional)(zod_1.z.boolean()),
9
- hideFromHierarchy: (0, zod_1.optional)(zod_1.z.boolean()),
8
+ hideCode: zod_1.z.boolean().optional(),
9
+ hideFromHierarchy: zod_1.z.boolean().optional(),
10
10
  });
11
11
  exports.criterionSchema = common_1.abstractElementSchema.extend({
12
- type: zod_1.z.literal('criterion'),
12
+ type: zod_1.z.literal("criterion"),
13
13
  items: zod_1.z.array(zod_1.z.lazy(() => task_group_1.taskGroupSchema)),
14
- options: (0, zod_1.optional)(exports.criterionOptionsSchema),
14
+ options: exports.criterionOptionsSchema.optional(),
15
15
  });
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
2
  export declare const dataMapSchema: z.ZodObject<{
3
3
  version: z.ZodString;
4
4
  elements: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -6,5 +6,5 @@ exports.dataMapSchema = zod_1.z.object({
6
6
  version: zod_1.z.string(),
7
7
  elements: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
8
8
  result: zod_1.z.any(),
9
- certifications: (0, zod_1.optional)(zod_1.z.array(zod_1.z.string())),
9
+ certifications: zod_1.z.array(zod_1.z.string()).optional(),
10
10
  });
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
2
  export declare const pdfDocumentationItemSchema: z.ZodObject<z.objectUtil.extendShape<{
3
3
  type: z.ZodEnum<["pdf", "text", "link"]>;
4
4
  label: z.ZodString;
@@ -3,19 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.documentationItemSchema = exports.linkDocumentationItemSchema = exports.inlineDocumentationItemSchema = exports.pdfDocumentationItemSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const abstractDocumentationItemSchema = zod_1.z.object({
6
- type: zod_1.z.enum(['pdf', 'text', 'link']),
6
+ type: zod_1.z.enum(["pdf", "text", "link"]),
7
7
  label: zod_1.z.string(),
8
8
  text: zod_1.z.string(),
9
9
  });
10
10
  exports.pdfDocumentationItemSchema = abstractDocumentationItemSchema.extend({
11
- type: zod_1.z.literal('pdf'),
11
+ type: zod_1.z.literal("pdf"),
12
12
  url: zod_1.z.string().url(),
13
13
  });
14
14
  exports.inlineDocumentationItemSchema = abstractDocumentationItemSchema.extend({
15
- type: zod_1.z.literal('text'),
15
+ type: zod_1.z.literal("text"),
16
16
  });
17
17
  exports.linkDocumentationItemSchema = abstractDocumentationItemSchema.extend({
18
- type: zod_1.z.literal('link'),
18
+ type: zod_1.z.literal("link"),
19
19
  url: zod_1.z.string().url(),
20
20
  });
21
- exports.documentationItemSchema = zod_1.z.discriminatedUnion('type', [exports.pdfDocumentationItemSchema, exports.inlineDocumentationItemSchema, exports.linkDocumentationItemSchema]);
21
+ exports.documentationItemSchema = zod_1.z.discriminatedUnion("type", [
22
+ exports.pdfDocumentationItemSchema,
23
+ exports.inlineDocumentationItemSchema,
24
+ exports.linkDocumentationItemSchema,
25
+ ]);
@@ -1,13 +1,13 @@
1
- export * from './request';
2
- export * from './certification';
3
- export * from './common';
4
- export * from './criteria-tree';
5
- export * from './criterion';
6
- export * from './data-map';
7
- export * from './documentation';
8
- export * from './metadata';
9
- export * from './response';
10
- export * from './task';
11
- export * from './task-group';
12
- export * from './task-item';
13
- export * from './theme';
1
+ export * from "./request";
2
+ export * from "./certification";
3
+ export * from "./common";
4
+ export * from "./criteria-tree";
5
+ export * from "./criterion";
6
+ export * from "./data-map";
7
+ export * from "./documentation";
8
+ export * from "./metadata";
9
+ export * from "./response";
10
+ export * from "./task";
11
+ export * from "./task-group";
12
+ export * from "./task-item";
13
+ export * from "./theme";
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
2
  export declare const schemaDefinitionSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
3
3
  export declare const schemaDefinitionsSchema: z.ZodObject<{
4
4
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -4,8 +4,8 @@ exports.metadataSchema = exports.schemaDefinitionsSchema = exports.schemaDefinit
4
4
  const zod_1 = require("zod");
5
5
  exports.schemaDefinitionSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
6
6
  exports.schemaDefinitionsSchema = zod_1.z.object({
7
- parameters: (0, zod_1.optional)(exports.schemaDefinitionSchema),
8
- result: (0, zod_1.optional)(exports.schemaDefinitionSchema),
7
+ parameters: exports.schemaDefinitionSchema.optional(),
8
+ result: exports.schemaDefinitionSchema.optional(),
9
9
  });
10
10
  exports.metadataSchema = zod_1.z.object({
11
11
  id: zod_1.z.string(),
@@ -13,8 +13,8 @@ exports.metadataSchema = zod_1.z.object({
13
13
  date: zod_1.z.date(),
14
14
  name: zod_1.z.string(),
15
15
  description: zod_1.z.string(),
16
- documentation: (0, zod_1.optional)(zod_1.z.string()),
17
- locales: (0, zod_1.optional)(zod_1.z.array(zod_1.z.string())),
18
- defaultLocale: (0, zod_1.optional)(zod_1.z.string()),
19
- schemas: (0, zod_1.optional)(exports.schemaDefinitionsSchema),
16
+ documentation: zod_1.z.string().optional(),
17
+ locales: zod_1.z.array(zod_1.z.string()).optional(),
18
+ defaultLocale: zod_1.z.string().optional(),
19
+ schemas: exports.schemaDefinitionsSchema.optional(),
20
20
  });