@openframe-org/criteria-set-protocol 1.5.2 → 1.5.3
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.
|
@@ -32,12 +32,16 @@ export declare const percentageBasedCertificationDefinitionRulesSchema: z.ZodObj
|
|
|
32
32
|
exclusiveMinimum?: number | undefined;
|
|
33
33
|
exclusiveMaximum?: number | undefined;
|
|
34
34
|
}>;
|
|
35
|
-
export declare const numberBasedCertificationDefinitionSchema: z.ZodObject<{
|
|
35
|
+
export declare const numberBasedCertificationDefinitionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
36
36
|
code: z.ZodString;
|
|
37
|
-
type: z.ZodLiteral<"number">;
|
|
37
|
+
type: z.ZodUnion<[z.ZodLiteral<"number">, z.ZodLiteral<"percentage">]>;
|
|
38
38
|
icon: z.ZodOptional<z.ZodString>;
|
|
39
39
|
name: z.ZodString;
|
|
40
40
|
description: z.ZodOptional<z.ZodString>;
|
|
41
|
+
rules: z.ZodAny;
|
|
42
|
+
rulesText: z.ZodString;
|
|
43
|
+
}, {
|
|
44
|
+
type: z.ZodLiteral<"number">;
|
|
41
45
|
rules: z.ZodObject<{
|
|
42
46
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
43
47
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -54,8 +58,7 @@ export declare const numberBasedCertificationDefinitionSchema: z.ZodObject<{
|
|
|
54
58
|
exclusiveMinimum?: number | undefined;
|
|
55
59
|
exclusiveMaximum?: number | undefined;
|
|
56
60
|
}>;
|
|
57
|
-
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
}>, "strip", z.ZodTypeAny, {
|
|
59
62
|
type: "number";
|
|
60
63
|
code: string;
|
|
61
64
|
name: string;
|
|
@@ -82,12 +85,16 @@ export declare const numberBasedCertificationDefinitionSchema: z.ZodObject<{
|
|
|
82
85
|
description?: string | undefined;
|
|
83
86
|
icon?: string | undefined;
|
|
84
87
|
}>;
|
|
85
|
-
export declare const percentageBasedCertificationDefinitionSchema: z.ZodObject<{
|
|
88
|
+
export declare const percentageBasedCertificationDefinitionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
86
89
|
code: z.ZodString;
|
|
87
|
-
type: z.ZodLiteral<"percentage">;
|
|
90
|
+
type: z.ZodUnion<[z.ZodLiteral<"number">, z.ZodLiteral<"percentage">]>;
|
|
88
91
|
icon: z.ZodOptional<z.ZodString>;
|
|
89
92
|
name: z.ZodString;
|
|
90
93
|
description: z.ZodOptional<z.ZodString>;
|
|
94
|
+
rules: z.ZodAny;
|
|
95
|
+
rulesText: z.ZodString;
|
|
96
|
+
}, {
|
|
97
|
+
type: z.ZodLiteral<"percentage">;
|
|
91
98
|
rules: z.ZodObject<{
|
|
92
99
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
93
100
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -104,8 +111,7 @@ export declare const percentageBasedCertificationDefinitionSchema: z.ZodObject<{
|
|
|
104
111
|
exclusiveMinimum?: number | undefined;
|
|
105
112
|
exclusiveMaximum?: number | undefined;
|
|
106
113
|
}>;
|
|
107
|
-
|
|
108
|
-
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
}>, "strip", z.ZodTypeAny, {
|
|
109
115
|
type: "percentage";
|
|
110
116
|
code: string;
|
|
111
117
|
name: string;
|
|
@@ -132,12 +138,16 @@ export declare const percentageBasedCertificationDefinitionSchema: z.ZodObject<{
|
|
|
132
138
|
description?: string | undefined;
|
|
133
139
|
icon?: string | undefined;
|
|
134
140
|
}>;
|
|
135
|
-
export declare const certificationDefinitionSchema: z.
|
|
141
|
+
export declare const certificationDefinitionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
136
142
|
code: z.ZodString;
|
|
137
|
-
type: z.ZodLiteral<"number">;
|
|
143
|
+
type: z.ZodUnion<[z.ZodLiteral<"number">, z.ZodLiteral<"percentage">]>;
|
|
138
144
|
icon: z.ZodOptional<z.ZodString>;
|
|
139
145
|
name: z.ZodString;
|
|
140
146
|
description: z.ZodOptional<z.ZodString>;
|
|
147
|
+
rules: z.ZodAny;
|
|
148
|
+
rulesText: z.ZodString;
|
|
149
|
+
}, {
|
|
150
|
+
type: z.ZodLiteral<"number">;
|
|
141
151
|
rules: z.ZodObject<{
|
|
142
152
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
143
153
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -154,8 +164,7 @@ export declare const certificationDefinitionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
154
164
|
exclusiveMinimum?: number | undefined;
|
|
155
165
|
exclusiveMaximum?: number | undefined;
|
|
156
166
|
}>;
|
|
157
|
-
|
|
158
|
-
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
}>, "strip", z.ZodTypeAny, {
|
|
159
168
|
type: "number";
|
|
160
169
|
code: string;
|
|
161
170
|
name: string;
|
|
@@ -181,12 +190,16 @@ export declare const certificationDefinitionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
181
190
|
rulesText: string;
|
|
182
191
|
description?: string | undefined;
|
|
183
192
|
icon?: string | undefined;
|
|
184
|
-
}>, z.ZodObject<{
|
|
193
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
185
194
|
code: z.ZodString;
|
|
186
|
-
type: z.ZodLiteral<"percentage">;
|
|
195
|
+
type: z.ZodUnion<[z.ZodLiteral<"number">, z.ZodLiteral<"percentage">]>;
|
|
187
196
|
icon: z.ZodOptional<z.ZodString>;
|
|
188
197
|
name: z.ZodString;
|
|
189
198
|
description: z.ZodOptional<z.ZodString>;
|
|
199
|
+
rules: z.ZodAny;
|
|
200
|
+
rulesText: z.ZodString;
|
|
201
|
+
}, {
|
|
202
|
+
type: z.ZodLiteral<"percentage">;
|
|
190
203
|
rules: z.ZodObject<{
|
|
191
204
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
192
205
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -203,8 +216,7 @@ export declare const certificationDefinitionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
203
216
|
exclusiveMinimum?: number | undefined;
|
|
204
217
|
exclusiveMaximum?: number | undefined;
|
|
205
218
|
}>;
|
|
206
|
-
|
|
207
|
-
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
}>, "strip", z.ZodTypeAny, {
|
|
208
220
|
type: "percentage";
|
|
209
221
|
code: string;
|
|
210
222
|
name: string;
|
|
@@ -10,25 +10,24 @@ exports.numberBasedCertificationDefinitionRulesSchema = zod_1.z.object({
|
|
|
10
10
|
exclusiveMaximum: zod_1.z.number().optional()
|
|
11
11
|
});
|
|
12
12
|
exports.percentageBasedCertificationDefinitionRulesSchema = exports.numberBasedCertificationDefinitionRulesSchema;
|
|
13
|
-
|
|
13
|
+
const abstractCertificationDefinitionSchema = zod_1.z.object({
|
|
14
14
|
code: zod_1.z.string(),
|
|
15
|
-
type:
|
|
15
|
+
type: exports.certificationDefinitionTypeSchema,
|
|
16
16
|
icon: zod_1.z.string().optional(),
|
|
17
17
|
name: zod_1.z.string(),
|
|
18
18
|
description: zod_1.z.string().optional(),
|
|
19
|
-
rules:
|
|
19
|
+
rules: zod_1.z.any(),
|
|
20
20
|
rulesText: zod_1.z.string()
|
|
21
21
|
});
|
|
22
|
-
exports.
|
|
23
|
-
|
|
22
|
+
exports.numberBasedCertificationDefinitionSchema = abstractCertificationDefinitionSchema.extend({
|
|
23
|
+
type: zod_1.z.literal('number'),
|
|
24
|
+
rules: exports.numberBasedCertificationDefinitionRulesSchema
|
|
25
|
+
});
|
|
26
|
+
exports.percentageBasedCertificationDefinitionSchema = abstractCertificationDefinitionSchema.extend({
|
|
24
27
|
type: zod_1.z.literal('percentage'),
|
|
25
|
-
|
|
26
|
-
name: zod_1.z.string(),
|
|
27
|
-
description: zod_1.z.string().optional(),
|
|
28
|
-
rules: exports.percentageBasedCertificationDefinitionRulesSchema,
|
|
29
|
-
rulesText: zod_1.z.string()
|
|
28
|
+
rules: exports.percentageBasedCertificationDefinitionRulesSchema
|
|
30
29
|
});
|
|
31
|
-
exports.certificationDefinitionSchema = zod_1.z.
|
|
30
|
+
exports.certificationDefinitionSchema = zod_1.z.discriminatedUnion('type', [
|
|
32
31
|
exports.numberBasedCertificationDefinitionSchema,
|
|
33
32
|
exports.percentageBasedCertificationDefinitionSchema
|
|
34
33
|
]);
|
|
@@ -1310,12 +1310,16 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
1310
1310
|
})[] | undefined;
|
|
1311
1311
|
sortOrder?: number | undefined;
|
|
1312
1312
|
}>, "many">;
|
|
1313
|
-
certificationDefinitions: z.ZodOptional<z.ZodArray<z.
|
|
1313
|
+
certificationDefinitions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
1314
1314
|
code: z.ZodString;
|
|
1315
|
-
type: z.ZodLiteral<"number">;
|
|
1315
|
+
type: z.ZodUnion<[z.ZodLiteral<"number">, z.ZodLiteral<"percentage">]>;
|
|
1316
1316
|
icon: z.ZodOptional<z.ZodString>;
|
|
1317
1317
|
name: z.ZodString;
|
|
1318
1318
|
description: z.ZodOptional<z.ZodString>;
|
|
1319
|
+
rules: z.ZodAny;
|
|
1320
|
+
rulesText: z.ZodString;
|
|
1321
|
+
}, {
|
|
1322
|
+
type: z.ZodLiteral<"number">;
|
|
1319
1323
|
rules: z.ZodObject<{
|
|
1320
1324
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
1321
1325
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1332,8 +1336,7 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
1332
1336
|
exclusiveMinimum?: number | undefined;
|
|
1333
1337
|
exclusiveMaximum?: number | undefined;
|
|
1334
1338
|
}>;
|
|
1335
|
-
|
|
1336
|
-
}, "strip", z.ZodTypeAny, {
|
|
1339
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1337
1340
|
type: "number";
|
|
1338
1341
|
code: string;
|
|
1339
1342
|
name: string;
|
|
@@ -1359,12 +1362,16 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
1359
1362
|
rulesText: string;
|
|
1360
1363
|
description?: string | undefined;
|
|
1361
1364
|
icon?: string | undefined;
|
|
1362
|
-
}>, z.ZodObject<{
|
|
1365
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1363
1366
|
code: z.ZodString;
|
|
1364
|
-
type: z.ZodLiteral<"percentage">;
|
|
1367
|
+
type: z.ZodUnion<[z.ZodLiteral<"number">, z.ZodLiteral<"percentage">]>;
|
|
1365
1368
|
icon: z.ZodOptional<z.ZodString>;
|
|
1366
1369
|
name: z.ZodString;
|
|
1367
1370
|
description: z.ZodOptional<z.ZodString>;
|
|
1371
|
+
rules: z.ZodAny;
|
|
1372
|
+
rulesText: z.ZodString;
|
|
1373
|
+
}, {
|
|
1374
|
+
type: z.ZodLiteral<"percentage">;
|
|
1368
1375
|
rules: z.ZodObject<{
|
|
1369
1376
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
1370
1377
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1381,8 +1388,7 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
1381
1388
|
exclusiveMinimum?: number | undefined;
|
|
1382
1389
|
exclusiveMaximum?: number | undefined;
|
|
1383
1390
|
}>;
|
|
1384
|
-
|
|
1385
|
-
}, "strip", z.ZodTypeAny, {
|
|
1391
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1386
1392
|
type: "percentage";
|
|
1387
1393
|
code: string;
|
|
1388
1394
|
name: string;
|
package/package.json
CHANGED