@openframe-org/criteria-set-protocol 2.0.28 → 2.0.29
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/certification.d.ts +12 -16
- package/dist/v1/schemas/common.d.ts +9 -12
- package/dist/v1/schemas/criteria-tree.d.ts +345 -661
- package/dist/v1/schemas/criterion.d.ts +64 -119
- package/dist/v1/schemas/documentation.d.ts +18 -24
- package/dist/v1/schemas/task-group.d.ts +52 -103
- package/dist/v1/schemas/task-item.d.ts +55 -106
- package/dist/v1/schemas/task.d.ts +40 -87
- package/dist/v1/schemas/theme.d.ts +76 -135
- package/package.json +5 -5
|
@@ -6,20 +6,18 @@ export declare const taskOptionsSchema: z.ZodObject<{
|
|
|
6
6
|
}, {
|
|
7
7
|
hideCode?: boolean | undefined;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const taskSchema: z.ZodObject<
|
|
10
|
-
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
9
|
+
export declare const taskSchema: z.ZodObject<{
|
|
11
10
|
title: z.ZodString;
|
|
12
11
|
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
13
12
|
code: z.ZodString;
|
|
14
13
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15
|
-
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
16
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
14
|
+
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
17
15
|
label: z.ZodString;
|
|
18
16
|
text: z.ZodString;
|
|
19
|
-
}
|
|
17
|
+
} & {
|
|
20
18
|
type: z.ZodLiteral<"pdf">;
|
|
21
19
|
url: z.ZodString;
|
|
22
|
-
}
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
21
|
type: "pdf";
|
|
24
22
|
url: string;
|
|
25
23
|
label: string;
|
|
@@ -29,13 +27,12 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
29
27
|
url: string;
|
|
30
28
|
label: string;
|
|
31
29
|
text: string;
|
|
32
|
-
}>, z.ZodObject<
|
|
33
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
30
|
+
}>, z.ZodObject<{
|
|
34
31
|
label: z.ZodString;
|
|
35
32
|
text: z.ZodString;
|
|
36
|
-
}
|
|
33
|
+
} & {
|
|
37
34
|
type: z.ZodLiteral<"text">;
|
|
38
|
-
}
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
36
|
type: "text";
|
|
40
37
|
label: string;
|
|
41
38
|
text: string;
|
|
@@ -43,14 +40,13 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
43
40
|
type: "text";
|
|
44
41
|
label: string;
|
|
45
42
|
text: string;
|
|
46
|
-
}>, z.ZodObject<
|
|
47
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
43
|
+
}>, z.ZodObject<{
|
|
48
44
|
label: z.ZodString;
|
|
49
45
|
text: z.ZodString;
|
|
50
|
-
}
|
|
46
|
+
} & {
|
|
51
47
|
type: z.ZodLiteral<"link">;
|
|
52
48
|
url: z.ZodString;
|
|
53
|
-
}
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
50
|
type: "link";
|
|
55
51
|
url: string;
|
|
56
52
|
label: string;
|
|
@@ -96,23 +92,20 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
96
92
|
readOnly?: boolean | undefined;
|
|
97
93
|
}>>;
|
|
98
94
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
99
|
-
}
|
|
95
|
+
} & {
|
|
100
96
|
type: z.ZodLiteral<"task">;
|
|
101
97
|
description: z.ZodOptional<z.ZodString>;
|
|
102
|
-
items: z.ZodArray<z.ZodLazy<z.ZodObject<
|
|
103
|
-
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
104
|
-
title: z.ZodString;
|
|
105
|
-
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
98
|
+
items: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
106
99
|
code: z.ZodString;
|
|
100
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
107
101
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
108
|
-
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
109
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
102
|
+
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
110
103
|
label: z.ZodString;
|
|
111
104
|
text: z.ZodString;
|
|
112
|
-
}
|
|
105
|
+
} & {
|
|
113
106
|
type: z.ZodLiteral<"pdf">;
|
|
114
107
|
url: z.ZodString;
|
|
115
|
-
}
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
109
|
type: "pdf";
|
|
117
110
|
url: string;
|
|
118
111
|
label: string;
|
|
@@ -122,13 +115,12 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
122
115
|
url: string;
|
|
123
116
|
label: string;
|
|
124
117
|
text: string;
|
|
125
|
-
}>, z.ZodObject<
|
|
126
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
118
|
+
}>, z.ZodObject<{
|
|
127
119
|
label: z.ZodString;
|
|
128
120
|
text: z.ZodString;
|
|
129
|
-
}
|
|
121
|
+
} & {
|
|
130
122
|
type: z.ZodLiteral<"text">;
|
|
131
|
-
}
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
124
|
type: "text";
|
|
133
125
|
label: string;
|
|
134
126
|
text: string;
|
|
@@ -136,14 +128,13 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
136
128
|
type: "text";
|
|
137
129
|
label: string;
|
|
138
130
|
text: string;
|
|
139
|
-
}>, z.ZodObject<
|
|
140
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
131
|
+
}>, z.ZodObject<{
|
|
141
132
|
label: z.ZodString;
|
|
142
133
|
text: z.ZodString;
|
|
143
|
-
}
|
|
134
|
+
} & {
|
|
144
135
|
type: z.ZodLiteral<"link">;
|
|
145
136
|
url: z.ZodString;
|
|
146
|
-
}
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
138
|
type: "link";
|
|
148
139
|
url: string;
|
|
149
140
|
label: string;
|
|
@@ -154,44 +145,10 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
154
145
|
label: string;
|
|
155
146
|
text: string;
|
|
156
147
|
}>]>, "many">>;
|
|
157
|
-
data: z.ZodOptional<z.ZodObject<{
|
|
158
|
-
type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
|
|
159
|
-
value: 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">]>>;
|
|
160
|
-
text: z.ZodOptional<z.ZodString>;
|
|
161
|
-
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
162
|
-
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
163
|
-
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
164
|
-
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
165
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
166
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
167
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
-
}, "strip", z.ZodTypeAny, {
|
|
169
|
-
type?: "number" | "percentage" | undefined;
|
|
170
|
-
total?: number | undefined;
|
|
171
|
-
value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
172
|
-
text?: string | undefined;
|
|
173
|
-
maximumValue?: number | undefined;
|
|
174
|
-
minimumValue?: number | undefined;
|
|
175
|
-
exclusiveMaximum?: number | undefined;
|
|
176
|
-
exclusiveMinimum?: number | undefined;
|
|
177
|
-
step?: number | undefined;
|
|
178
|
-
readOnly?: boolean | undefined;
|
|
179
|
-
}, {
|
|
180
|
-
type?: "number" | "percentage" | undefined;
|
|
181
|
-
total?: number | undefined;
|
|
182
|
-
value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
183
|
-
text?: string | undefined;
|
|
184
|
-
maximumValue?: number | undefined;
|
|
185
|
-
minimumValue?: number | undefined;
|
|
186
|
-
exclusiveMaximum?: number | undefined;
|
|
187
|
-
exclusiveMinimum?: number | undefined;
|
|
188
|
-
step?: number | undefined;
|
|
189
|
-
readOnly?: boolean | undefined;
|
|
190
|
-
}>>;
|
|
191
148
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
192
|
-
}
|
|
149
|
+
} & {
|
|
193
150
|
type: z.ZodLiteral<"task-item">;
|
|
194
|
-
data: z.ZodOptional<z.ZodObject<
|
|
151
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
195
152
|
type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
|
|
196
153
|
value: 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">]>>;
|
|
197
154
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -202,9 +159,9 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
202
159
|
step: z.ZodOptional<z.ZodNumber>;
|
|
203
160
|
total: z.ZodOptional<z.ZodNumber>;
|
|
204
161
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
-
}
|
|
162
|
+
} & {
|
|
206
163
|
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">]>>;
|
|
207
|
-
}
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
165
|
type?: "number" | "percentage" | undefined;
|
|
209
166
|
total?: number | undefined;
|
|
210
167
|
value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
@@ -229,11 +186,10 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
229
186
|
readOnly?: boolean | undefined;
|
|
230
187
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
231
188
|
}>>;
|
|
232
|
-
definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
233
|
-
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
189
|
+
definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
234
190
|
label: z.ZodOptional<z.ZodString>;
|
|
235
191
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
-
}
|
|
192
|
+
} & {
|
|
237
193
|
type: z.ZodLiteral<"select-single">;
|
|
238
194
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
239
195
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -257,7 +213,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
257
213
|
outro?: string | undefined;
|
|
258
214
|
}>, "many">;
|
|
259
215
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
260
|
-
}
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
217
|
type: "select-single";
|
|
262
218
|
options: {
|
|
263
219
|
value: string | number | boolean | null;
|
|
@@ -285,11 +241,10 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
285
241
|
maximum?: number | undefined;
|
|
286
242
|
defaultValue?: string | undefined;
|
|
287
243
|
readOnly?: boolean | undefined;
|
|
288
|
-
}>, z.ZodObject<
|
|
289
|
-
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
244
|
+
}>, z.ZodObject<{
|
|
290
245
|
label: z.ZodOptional<z.ZodString>;
|
|
291
246
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
-
}
|
|
247
|
+
} & {
|
|
293
248
|
type: z.ZodLiteral<"select-multiple">;
|
|
294
249
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
295
250
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -313,7 +268,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
313
268
|
outro?: string | undefined;
|
|
314
269
|
}>, "many">;
|
|
315
270
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
316
|
-
}
|
|
271
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
272
|
type: "select-multiple";
|
|
318
273
|
options: {
|
|
319
274
|
value: string | number | boolean | null;
|
|
@@ -341,17 +296,16 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
341
296
|
maximum?: number | undefined;
|
|
342
297
|
defaultValue?: string[] | undefined;
|
|
343
298
|
readOnly?: boolean | undefined;
|
|
344
|
-
}>, z.ZodObject<
|
|
345
|
-
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
299
|
+
}>, z.ZodObject<{
|
|
346
300
|
label: z.ZodOptional<z.ZodString>;
|
|
347
301
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
348
|
-
}
|
|
302
|
+
} & {
|
|
349
303
|
type: z.ZodLiteral<"number">;
|
|
350
304
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
351
305
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
352
306
|
step: z.ZodOptional<z.ZodNumber>;
|
|
353
307
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
354
|
-
}
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
309
|
type: "number";
|
|
356
310
|
label?: string | undefined;
|
|
357
311
|
minimum?: number | undefined;
|
|
@@ -367,11 +321,10 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
367
321
|
defaultValue?: number | undefined;
|
|
368
322
|
step?: number | undefined;
|
|
369
323
|
readOnly?: boolean | undefined;
|
|
370
|
-
}>, z.ZodObject<
|
|
371
|
-
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
324
|
+
}>, z.ZodObject<{
|
|
372
325
|
label: z.ZodOptional<z.ZodString>;
|
|
373
326
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
374
|
-
}
|
|
327
|
+
} & {
|
|
375
328
|
type: z.ZodLiteral<"boolean">;
|
|
376
329
|
labels: z.ZodOptional<z.ZodObject<{
|
|
377
330
|
true: z.ZodString;
|
|
@@ -384,7 +337,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
384
337
|
true: string;
|
|
385
338
|
}>>;
|
|
386
339
|
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
387
|
-
}
|
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
|
388
341
|
type: "boolean";
|
|
389
342
|
label?: string | undefined;
|
|
390
343
|
labels?: {
|
|
@@ -415,7 +368,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
415
368
|
hideCode?: boolean | undefined;
|
|
416
369
|
excludeFromTargets?: boolean | undefined;
|
|
417
370
|
}>>;
|
|
418
|
-
}
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
419
372
|
code: string;
|
|
420
373
|
type: "task-item";
|
|
421
374
|
definition: {
|
|
@@ -595,7 +548,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
595
548
|
}, {
|
|
596
549
|
hideCode?: boolean | undefined;
|
|
597
550
|
}>>;
|
|
598
|
-
}
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
599
552
|
code: string;
|
|
600
553
|
type: "task";
|
|
601
554
|
title: string;
|