@openframe-org/criteria-set-protocol 2.2.11 → 2.2.13
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.
- package/dist/v1/schemas/common.d.ts +84 -77
- package/dist/v1/schemas/common.js +9 -1
- package/dist/v1/schemas/criteria-tree.d.ts +1406 -1162
- package/dist/v1/schemas/criterion.d.ts +251 -201
- package/dist/v1/schemas/criterion.js +1 -0
- package/dist/v1/schemas/data-map.d.ts +123 -115
- package/dist/v1/schemas/task-group.d.ts +144 -118
- package/dist/v1/schemas/task-item.d.ts +42 -38
- package/dist/v1/schemas/task.d.ts +84 -60
- package/dist/v1/schemas/task.js +1 -0
- package/dist/v1/schemas/theme.d.ts +381 -309
- package/dist/v1/schemas/theme.js +1 -0
- package/package.json +1 -1
|
@@ -23,25 +23,25 @@ export declare const elementDataSchema: z.ZodObject<{
|
|
|
23
23
|
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
24
24
|
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
}, "strip", z.
|
|
27
|
-
type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
maximumValue
|
|
32
|
-
minimumValue
|
|
33
|
-
exclusiveMaximum
|
|
34
|
-
exclusiveMinimum
|
|
35
|
-
}, {
|
|
36
|
-
type
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
maximumValue
|
|
41
|
-
minimumValue
|
|
42
|
-
exclusiveMaximum
|
|
43
|
-
exclusiveMinimum
|
|
44
|
-
}
|
|
26
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
27
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
28
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
29
|
+
text: z.ZodOptional<z.ZodString>;
|
|
30
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
36
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
37
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
38
|
+
text: z.ZodOptional<z.ZodString>;
|
|
39
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
}, z.ZodAny, "strip">>;
|
|
45
45
|
export declare const criteriaTreeElementTypeSchema: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
46
46
|
export declare const abstractElementSchema: z.ZodObject<{
|
|
47
47
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
@@ -104,41 +104,41 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
104
104
|
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
105
105
|
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
106
106
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
107
|
-
}, "strip", z.
|
|
108
|
-
type
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
maximumValue
|
|
113
|
-
minimumValue
|
|
114
|
-
exclusiveMaximum
|
|
115
|
-
exclusiveMinimum
|
|
116
|
-
}, {
|
|
117
|
-
type
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
maximumValue
|
|
122
|
-
minimumValue
|
|
123
|
-
exclusiveMaximum
|
|
124
|
-
exclusiveMinimum
|
|
125
|
-
}
|
|
107
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
108
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
109
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
110
|
+
text: z.ZodOptional<z.ZodString>;
|
|
111
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
117
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
118
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
119
|
+
text: z.ZodOptional<z.ZodString>;
|
|
120
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
}, z.ZodAny, "strip">>>;
|
|
126
126
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
128
|
code: string;
|
|
129
129
|
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
130
130
|
title: string;
|
|
131
131
|
longFormTitle: string;
|
|
132
|
-
data?: {
|
|
133
|
-
type
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
maximumValue
|
|
138
|
-
minimumValue
|
|
139
|
-
exclusiveMaximum
|
|
140
|
-
exclusiveMinimum
|
|
141
|
-
} | undefined;
|
|
132
|
+
data?: z.objectOutputType<{
|
|
133
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
134
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
135
|
+
text: z.ZodOptional<z.ZodString>;
|
|
136
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
142
142
|
tags?: string[] | undefined;
|
|
143
143
|
documentation?: ({
|
|
144
144
|
type: "pdf";
|
|
@@ -161,16 +161,16 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
161
161
|
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
162
162
|
title: string;
|
|
163
163
|
longFormTitle: string;
|
|
164
|
-
data?: {
|
|
165
|
-
type
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
maximumValue
|
|
170
|
-
minimumValue
|
|
171
|
-
exclusiveMaximum
|
|
172
|
-
exclusiveMinimum
|
|
173
|
-
} | undefined;
|
|
164
|
+
data?: z.objectInputType<{
|
|
165
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
166
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
167
|
+
text: z.ZodOptional<z.ZodString>;
|
|
168
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
174
174
|
tags?: string[] | undefined;
|
|
175
175
|
documentation?: ({
|
|
176
176
|
type: "pdf";
|
|
@@ -234,6 +234,13 @@ export declare const criteriaTreeOptionsSchema: z.ZodObject<{
|
|
|
234
234
|
}, {
|
|
235
235
|
criteriaTreeElementTextFormat: string;
|
|
236
236
|
}>;
|
|
237
|
+
export declare const reportOptionsSchema: z.ZodObject<{
|
|
238
|
+
reportTextFormat: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
reportTextFormat?: string | undefined;
|
|
241
|
+
}, {
|
|
242
|
+
reportTextFormat?: string | undefined;
|
|
243
|
+
}>;
|
|
237
244
|
export declare const treeResultSchema: z.ZodObject<{
|
|
238
245
|
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
239
246
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
@@ -243,22 +250,22 @@ export declare const treeResultSchema: z.ZodObject<{
|
|
|
243
250
|
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
244
251
|
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
245
252
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
246
|
-
}, "strip", z.
|
|
247
|
-
type
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
maximumValue
|
|
252
|
-
minimumValue
|
|
253
|
-
exclusiveMaximum
|
|
254
|
-
exclusiveMinimum
|
|
255
|
-
}, {
|
|
256
|
-
type
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
maximumValue
|
|
261
|
-
minimumValue
|
|
262
|
-
exclusiveMaximum
|
|
263
|
-
exclusiveMinimum
|
|
264
|
-
}
|
|
253
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
254
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
255
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
256
|
+
text: z.ZodOptional<z.ZodString>;
|
|
257
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
263
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
264
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
265
|
+
text: z.ZodOptional<z.ZodString>;
|
|
266
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
}, z.ZodAny, "strip">>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.treeResultSchema = exports.criteriaTreeOptionsSchema = exports.documentTreeOptionsSchema = exports.breadcrumbOptionsSchema = exports.abstractElementSchema = exports.criteriaTreeElementTypeSchema = exports.elementDataSchema = exports.taskItemValueSchema = exports.taskItemScalarValueSchema = exports.colorSchema = void 0;
|
|
3
|
+
exports.treeResultSchema = exports.reportOptionsSchema = exports.criteriaTreeOptionsSchema = 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
|
|
@@ -49,6 +49,7 @@ exports.elementDataSchema = zod_1.z
|
|
|
49
49
|
.optional()
|
|
50
50
|
.describe("Minimum allowed value (exclusive)")
|
|
51
51
|
})
|
|
52
|
+
.catchall(zod_1.z.any())
|
|
52
53
|
.describe("ElementData - Element data containing value constraints and metadata");
|
|
53
54
|
exports.criteriaTreeElementTypeSchema = zod_1.z
|
|
54
55
|
.enum(["theme", "criterion", "task-group", "task", "task-item"])
|
|
@@ -113,4 +114,11 @@ exports.criteriaTreeOptionsSchema = zod_1.z
|
|
|
113
114
|
.string()
|
|
114
115
|
.describe("The format of the criteria tree element text, use ':code:' and ':title:' to define where the code and/or title should be inserted")
|
|
115
116
|
});
|
|
117
|
+
exports.reportOptionsSchema = zod_1.z
|
|
118
|
+
.object({
|
|
119
|
+
reportTextFormat: zod_1.z
|
|
120
|
+
.string()
|
|
121
|
+
.optional()
|
|
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
|
+
});
|
|
116
124
|
exports.treeResultSchema = exports.elementDataSchema.describe("TreeResult - The result of the evaluation of a criteria set");
|