@openframe-org/criteria-set-protocol 2.2.2 → 2.2.4
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.
|
@@ -227,3 +227,31 @@ export declare const documentTreeOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
227
227
|
documentTreeFolderTextFormat: string;
|
|
228
228
|
hideFromDocumentTree?: false | undefined;
|
|
229
229
|
}>]>;
|
|
230
|
+
export declare const treeResultSchema: z.ZodObject<{
|
|
231
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
232
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
text: z.ZodOptional<z.ZodString>;
|
|
234
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
type?: "number" | "boolean" | "percentage" | undefined;
|
|
241
|
+
total?: number | undefined;
|
|
242
|
+
value?: number | undefined;
|
|
243
|
+
text?: string | undefined;
|
|
244
|
+
maximumValue?: number | undefined;
|
|
245
|
+
minimumValue?: number | undefined;
|
|
246
|
+
exclusiveMaximum?: number | undefined;
|
|
247
|
+
exclusiveMinimum?: number | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
type?: "number" | "boolean" | "percentage" | undefined;
|
|
250
|
+
total?: number | undefined;
|
|
251
|
+
value?: number | undefined;
|
|
252
|
+
text?: string | undefined;
|
|
253
|
+
maximumValue?: number | undefined;
|
|
254
|
+
minimumValue?: number | undefined;
|
|
255
|
+
exclusiveMaximum?: number | undefined;
|
|
256
|
+
exclusiveMinimum?: number | undefined;
|
|
257
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.documentTreeOptionsSchema = exports.breadcrumbOptionsSchema = exports.abstractElementSchema = exports.criteriaTreeElementTypeSchema = exports.elementDataSchema = exports.taskItemValueSchema = exports.taskItemScalarValueSchema = exports.colorSchema = void 0;
|
|
3
|
+
exports.treeResultSchema = exports.documentTreeOptionsSchema = exports.breadcrumbOptionsSchema = exports.abstractElementSchema = exports.criteriaTreeElementTypeSchema = exports.elementDataSchema = exports.taskItemValueSchema = exports.taskItemScalarValueSchema = exports.colorSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const documentation_1 = require("./documentation");
|
|
6
6
|
exports.colorSchema = zod_1.z
|
|
@@ -107,3 +107,4 @@ exports.documentTreeOptionsSchema = zod_1.z
|
|
|
107
107
|
.string()
|
|
108
108
|
.describe("The format of the document tree folder text, use ':code:' and ':title:' to define where the code and/or title should be inserted"),
|
|
109
109
|
}));
|
|
110
|
+
exports.treeResultSchema = exports.elementDataSchema.describe('TreeResult - The result of the evaluation of a criteria set');
|
|
@@ -1,4 +1,68 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const elementDataMapSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
3
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
4
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
text: z.ZodOptional<z.ZodString>;
|
|
6
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
type?: "number" | "boolean" | "percentage" | undefined;
|
|
13
|
+
total?: number | undefined;
|
|
14
|
+
value?: number | undefined;
|
|
15
|
+
text?: string | undefined;
|
|
16
|
+
maximumValue?: number | undefined;
|
|
17
|
+
minimumValue?: number | undefined;
|
|
18
|
+
exclusiveMaximum?: number | undefined;
|
|
19
|
+
exclusiveMinimum?: number | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
type?: "number" | "boolean" | "percentage" | undefined;
|
|
22
|
+
total?: number | undefined;
|
|
23
|
+
value?: number | undefined;
|
|
24
|
+
text?: string | undefined;
|
|
25
|
+
maximumValue?: number | undefined;
|
|
26
|
+
minimumValue?: number | undefined;
|
|
27
|
+
exclusiveMaximum?: number | undefined;
|
|
28
|
+
exclusiveMinimum?: number | undefined;
|
|
29
|
+
}>, z.ZodIntersection<z.ZodObject<{
|
|
30
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
31
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
text: z.ZodOptional<z.ZodString>;
|
|
33
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
type?: "number" | "boolean" | "percentage" | undefined;
|
|
40
|
+
total?: number | undefined;
|
|
41
|
+
value?: number | undefined;
|
|
42
|
+
text?: string | undefined;
|
|
43
|
+
maximumValue?: number | undefined;
|
|
44
|
+
minimumValue?: number | undefined;
|
|
45
|
+
exclusiveMaximum?: number | undefined;
|
|
46
|
+
exclusiveMinimum?: number | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
type?: "number" | "boolean" | "percentage" | undefined;
|
|
49
|
+
total?: number | undefined;
|
|
50
|
+
value?: number | undefined;
|
|
51
|
+
text?: string | undefined;
|
|
52
|
+
maximumValue?: number | undefined;
|
|
53
|
+
minimumValue?: number | undefined;
|
|
54
|
+
exclusiveMaximum?: number | undefined;
|
|
55
|
+
exclusiveMinimum?: number | undefined;
|
|
56
|
+
}>, z.ZodObject<{
|
|
57
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
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">]>>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
readOnly?: boolean | undefined;
|
|
61
|
+
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
readOnly?: boolean | undefined;
|
|
64
|
+
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
65
|
+
}>>]>>;
|
|
2
66
|
export declare const dataMapSchema: z.ZodObject<{
|
|
3
67
|
version: z.ZodString;
|
|
4
68
|
elements: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dataMapSchema = void 0;
|
|
3
|
+
exports.dataMapSchema = exports.elementDataMapSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("./common");
|
|
6
6
|
const task_item_1 = require("./task-item");
|
|
7
|
+
exports.elementDataMapSchema = zod_1.z
|
|
8
|
+
.record(zod_1.z.string(), common_1.elementDataSchema.or(task_item_1.taskItemDataSchema));
|
|
7
9
|
exports.dataMapSchema = zod_1.z
|
|
8
10
|
.object({
|
|
9
11
|
version: zod_1.z
|
|
10
12
|
.string()
|
|
11
13
|
.describe("The version of the criteria set used to generate the data map"),
|
|
12
|
-
elements:
|
|
13
|
-
.record(zod_1.z.string(), common_1.elementDataSchema.or(task_item_1.taskItemDataSchema))
|
|
14
|
+
elements: exports.elementDataMapSchema
|
|
14
15
|
.describe("The data map consisting of a map of element codes to their data"),
|
|
15
|
-
result: common_1.
|
|
16
|
+
result: common_1.treeResultSchema.describe("The overall result of the evaluation of the criteria set"),
|
|
16
17
|
certifications: zod_1.z
|
|
17
18
|
.array(zod_1.z.string())
|
|
18
19
|
.optional()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { booleanTypeSchema, certificationDefinitionSchema, certificationDefinitionTypeSchema, colorSchema, criteriaSetOptionsSchema, criteriaSetsAndVersionsSchema, criteriaTreeElementSchema, criteriaTreeElementTypeSchema, criteriaTreeSchema, criterionOptionsSchema, criterionSchema, dashboardCategoryListingTypeSchema, dataMapSchema, documentationItemSchema, elementDataSchema, inlineDocumentationItemSchema, linkDocumentationItemSchema, metadataSchema, numberBasedCertificationDefinitionRulesSchema, numberBasedCertificationDefinitionSchema, numberTypeSchema, pdfDocumentationItemSchema, percentageBasedCertificationDefinitionRulesSchema, percentageBasedCertificationDefinitionSchema, pointOptionSchema, schemaDefinitionSchema, schemaDefinitionsSchema, selectMultipleTypeSchema, selectSingleTypeSchema, taskGroupSchema, taskItemDataSchema, taskItemDefinitionSchema, taskItemOptionsSchema, taskItemScalarValueSchema, taskItemSchema, taskItemValueMapSchema, taskItemValueSchema, taskOptionsSchema, taskSchema, themeOptionsSchema, themeSchema, themeStyleSchema } from "../schemas";
|
|
2
|
+
import { booleanTypeSchema, certificationDefinitionSchema, certificationDefinitionTypeSchema, colorSchema, criteriaSetOptionsSchema, criteriaSetsAndVersionsSchema, criteriaTreeElementSchema, criteriaTreeElementTypeSchema, criteriaTreeSchema, criterionOptionsSchema, criterionSchema, dashboardCategoryListingTypeSchema, dataMapSchema, documentationItemSchema, elementDataSchema, inlineDocumentationItemSchema, linkDocumentationItemSchema, metadataSchema, numberBasedCertificationDefinitionRulesSchema, numberBasedCertificationDefinitionSchema, numberTypeSchema, pdfDocumentationItemSchema, percentageBasedCertificationDefinitionRulesSchema, percentageBasedCertificationDefinitionSchema, pointOptionSchema, schemaDefinitionSchema, schemaDefinitionsSchema, selectMultipleTypeSchema, selectSingleTypeSchema, taskGroupSchema, taskItemDataSchema, taskItemDefinitionSchema, taskItemOptionsSchema, taskItemScalarValueSchema, taskItemSchema, taskItemValueMapSchema, taskItemValueSchema, taskOptionsSchema, taskSchema, themeOptionsSchema, themeSchema, themeStyleSchema, treeResultSchema } from "../schemas";
|
|
3
3
|
export type CertificationDefinitionType = z.infer<typeof certificationDefinitionTypeSchema>;
|
|
4
4
|
export type NumberBasedCertificationDefinitionRules = z.infer<typeof numberBasedCertificationDefinitionRulesSchema>;
|
|
5
5
|
export type PercentageBasedCertificationDefinitionRules = z.infer<typeof percentageBasedCertificationDefinitionRulesSchema>;
|
|
@@ -27,6 +27,7 @@ export type SelectMultipleType = z.infer<typeof selectMultipleTypeSchema>;
|
|
|
27
27
|
export type NumberType = z.infer<typeof numberTypeSchema>;
|
|
28
28
|
export type BooleanType = z.infer<typeof booleanTypeSchema>;
|
|
29
29
|
export type TaskItemDefinition = z.infer<typeof taskItemDefinitionSchema>;
|
|
30
|
+
export type TreeResult = z.infer<typeof treeResultSchema>;
|
|
30
31
|
export type ThemeOptions = z.infer<typeof themeOptionsSchema>;
|
|
31
32
|
export type CriterionOptions = z.infer<typeof criterionOptionsSchema>;
|
|
32
33
|
export type TaskOptions = z.infer<typeof taskOptionsSchema>;
|
package/package.json
CHANGED