@openframe-org/criteria-set-protocol 2.3.0 → 2.4.0

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.
@@ -250,8 +250,6 @@ export declare const treeResultSchema: z.ZodObject<{
250
250
  minimumValue: z.ZodOptional<z.ZodNumber>;
251
251
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
252
252
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
253
- } & {
254
- percentage: z.ZodNumber;
255
253
  }, "strip", z.ZodAny, z.objectOutputType<{
256
254
  type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
257
255
  value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
@@ -261,8 +259,6 @@ export declare const treeResultSchema: z.ZodObject<{
261
259
  minimumValue: z.ZodOptional<z.ZodNumber>;
262
260
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
263
261
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
264
- } & {
265
- percentage: z.ZodNumber;
266
262
  }, z.ZodAny, "strip">, z.objectInputType<{
267
263
  type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
268
264
  value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
@@ -272,6 +268,4 @@ export declare const treeResultSchema: z.ZodObject<{
272
268
  minimumValue: z.ZodOptional<z.ZodNumber>;
273
269
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
274
270
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
275
- } & {
276
- percentage: z.ZodNumber;
277
271
  }, z.ZodAny, "strip">>;
@@ -121,6 +121,4 @@ exports.reportOptionsSchema = zod_1.z
121
121
  .optional()
122
122
  .describe("The format of the report row text, use ':code:' and ':title:' to define where the code and/or title should be inserted, if not provided only the title will be rendered")
123
123
  });
124
- exports.treeResultSchema = exports.elementDataSchema.extend({
125
- percentage: zod_1.z.number().min(0).max(1).describe("Result as a percentage of the total"),
126
- }).describe("TreeResult - The result of the evaluation of a criteria set");
124
+ exports.treeResultSchema = exports.elementDataSchema.describe("TreeResult - The result of the evaluation of a criteria set");
@@ -75,8 +75,6 @@ export declare const criteriaTreeSchema: z.ZodObject<Pick<{
75
75
  minimumValue: z.ZodOptional<z.ZodNumber>;
76
76
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
77
77
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
78
- } & {
79
- percentage: z.ZodNumber;
80
78
  }, "strip", z.ZodAny, z.objectOutputType<{
81
79
  type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
82
80
  value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
@@ -86,8 +84,6 @@ export declare const criteriaTreeSchema: z.ZodObject<Pick<{
86
84
  minimumValue: z.ZodOptional<z.ZodNumber>;
87
85
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
88
86
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
89
- } & {
90
- percentage: z.ZodNumber;
91
87
  }, z.ZodAny, "strip">, z.objectInputType<{
92
88
  type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
93
89
  value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
@@ -97,8 +93,6 @@ export declare const criteriaTreeSchema: z.ZodObject<Pick<{
97
93
  minimumValue: z.ZodOptional<z.ZodNumber>;
98
94
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
99
95
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
100
- } & {
101
- percentage: z.ZodNumber;
102
96
  }, z.ZodAny, "strip">>;
103
97
  certifications: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
104
98
  }, "version" | "revision" | "result" | "certifications"> & {
@@ -2735,7 +2729,6 @@ export declare const criteriaTreeSchema: z.ZodObject<Pick<{
2735
2729
  version: string;
2736
2730
  revision: string;
2737
2731
  result: {
2738
- percentage: number;
2739
2732
  type?: "number" | "boolean" | "percentage" | undefined;
2740
2733
  total?: number | undefined;
2741
2734
  value?: number | boolean | undefined;
@@ -3060,7 +3053,6 @@ export declare const criteriaTreeSchema: z.ZodObject<Pick<{
3060
3053
  version: string;
3061
3054
  revision: string;
3062
3055
  result: {
3063
- percentage: number;
3064
3056
  type?: "number" | "boolean" | "percentage" | undefined;
3065
3057
  total?: number | undefined;
3066
3058
  value?: number | boolean | undefined;
@@ -139,8 +139,6 @@ export declare const dataMapSchema: z.ZodObject<{
139
139
  minimumValue: z.ZodOptional<z.ZodNumber>;
140
140
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
141
141
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
142
- } & {
143
- percentage: z.ZodNumber;
144
142
  }, "strip", z.ZodAny, z.objectOutputType<{
145
143
  type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
146
144
  value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
@@ -150,8 +148,6 @@ export declare const dataMapSchema: z.ZodObject<{
150
148
  minimumValue: z.ZodOptional<z.ZodNumber>;
151
149
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
152
150
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
153
- } & {
154
- percentage: z.ZodNumber;
155
151
  }, z.ZodAny, "strip">, z.objectInputType<{
156
152
  type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
157
153
  value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
@@ -161,8 +157,6 @@ export declare const dataMapSchema: z.ZodObject<{
161
157
  minimumValue: z.ZodOptional<z.ZodNumber>;
162
158
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
163
159
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
164
- } & {
165
- percentage: z.ZodNumber;
166
160
  }, z.ZodAny, "strip">>;
167
161
  certifications: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
168
162
  }, "strip", z.ZodTypeAny, {
@@ -193,7 +187,6 @@ export declare const dataMapSchema: z.ZodObject<{
193
187
  version: string;
194
188
  revision: string;
195
189
  result: {
196
- percentage: number;
197
190
  type?: "number" | "boolean" | "percentage" | undefined;
198
191
  total?: number | undefined;
199
192
  value?: number | boolean | undefined;
@@ -234,7 +227,6 @@ export declare const dataMapSchema: z.ZodObject<{
234
227
  version: string;
235
228
  revision: string;
236
229
  result: {
237
- percentage: number;
238
230
  type?: "number" | "boolean" | "percentage" | undefined;
239
231
  total?: number | undefined;
240
232
  value?: number | boolean | undefined;
@@ -20,6 +20,7 @@ export declare const metadataSchema: z.ZodObject<{
20
20
  date: z.ZodDate;
21
21
  name: z.ZodString;
22
22
  shortName: z.ZodString;
23
+ group: z.ZodString;
23
24
  description: z.ZodString;
24
25
  documentation: z.ZodOptional<z.ZodString>;
25
26
  locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -41,6 +42,7 @@ export declare const metadataSchema: z.ZodObject<{
41
42
  name: string;
42
43
  id: string;
43
44
  description: string;
45
+ group: string;
44
46
  date: Date;
45
47
  version: string;
46
48
  revision: string;
@@ -57,6 +59,7 @@ export declare const metadataSchema: z.ZodObject<{
57
59
  name: string;
58
60
  id: string;
59
61
  description: string;
62
+ group: string;
60
63
  date: Date;
61
64
  version: string;
62
65
  revision: string;
@@ -26,6 +26,7 @@ exports.metadataSchema = zod_1.z
26
26
  date: zod_1.z.date().describe("The date when the criteria set was created"),
27
27
  name: zod_1.z.string().describe("The name of the criteria set"),
28
28
  shortName: zod_1.z.string().describe("A short version of the name of the criteria set"),
29
+ group: zod_1.z.string().describe("The arbitrary group identifier for the criteria set, used for grouping criteria sets in the UI"),
29
30
  description: zod_1.z
30
31
  .string()
31
32
  .describe("A detailed description of the criteria set"),
@@ -6,6 +6,7 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
6
6
  date: z.ZodDate;
7
7
  name: z.ZodString;
8
8
  shortName: z.ZodString;
9
+ group: z.ZodString;
9
10
  description: z.ZodString;
10
11
  documentation: z.ZodOptional<z.ZodString>;
11
12
  locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -27,6 +28,7 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
27
28
  name: string;
28
29
  id: string;
29
30
  description: string;
31
+ group: string;
30
32
  date: Date;
31
33
  version: string;
32
34
  revision: string;
@@ -43,6 +45,7 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
43
45
  name: string;
44
46
  id: string;
45
47
  description: string;
48
+ group: string;
46
49
  date: Date;
47
50
  version: string;
48
51
  revision: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
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>",