@openframe-org/criteria-set-protocol 2.2.3 → 2.2.5
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.
|
@@ -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,16 +1,17 @@
|
|
|
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
16
|
result: common_1.treeResultSchema.describe("The overall result of the evaluation of the criteria set"),
|
|
16
17
|
certifications: zod_1.z
|
|
@@ -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, treeResultSchema } from "../schemas";
|
|
2
|
+
import { booleanTypeSchema, certificationDefinitionSchema, certificationDefinitionTypeSchema, colorSchema, criteriaSetOptionsSchema, criteriaSetsAndVersionsSchema, criteriaTreeElementSchema, criteriaTreeElementTypeSchema, criteriaTreeSchema, criterionOptionsSchema, criterionSchema, dashboardCategoryListingTypeSchema, dataMapSchema, documentationItemSchema, elementDataMapSchema, 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>;
|
|
@@ -17,6 +17,7 @@ export type LinkDocumentationItem = z.infer<typeof linkDocumentationItemSchema>;
|
|
|
17
17
|
export type DocumentationItem = z.infer<typeof documentationItemSchema>;
|
|
18
18
|
export type Metadata = z.infer<typeof metadataSchema>;
|
|
19
19
|
export type ElementData = z.infer<typeof elementDataSchema>;
|
|
20
|
+
export type ElementDataMap = z.infer<typeof elementDataMapSchema>;
|
|
20
21
|
export type TaskItemData = z.infer<typeof taskItemDataSchema>;
|
|
21
22
|
export type TaskItemScalarValue = z.infer<typeof taskItemScalarValueSchema>;
|
|
22
23
|
export type TaskItemValue = z.infer<typeof taskItemValueSchema>;
|
package/package.json
CHANGED