@openframe-org/criteria-set-protocol 2.2.11 → 2.2.12
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 +77 -77
- package/dist/v1/schemas/common.js +1 -0
- package/dist/v1/schemas/criteria-tree.d.ts +1216 -1128
- package/dist/v1/schemas/criterion.d.ts +212 -196
- package/dist/v1/schemas/data-map.d.ts +123 -115
- package/dist/v1/schemas/task-group.d.ts +129 -117
- package/dist/v1/schemas/task-item.d.ts +42 -38
- package/dist/v1/schemas/task.d.ts +66 -58
- package/dist/v1/schemas/theme.d.ts +315 -295
- 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";
|
|
@@ -243,22 +243,22 @@ export declare const treeResultSchema: z.ZodObject<{
|
|
|
243
243
|
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
244
244
|
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
245
245
|
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
|
-
}
|
|
246
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
247
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
248
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
249
|
+
text: z.ZodOptional<z.ZodString>;
|
|
250
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
256
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
257
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
258
|
+
text: z.ZodOptional<z.ZodString>;
|
|
259
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
}, z.ZodAny, "strip">>;
|
|
@@ -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"])
|