@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
|
@@ -9,20 +9,18 @@ export declare const taskGroupOptionsSchema: z.ZodObject<{
|
|
|
9
9
|
hideCode?: boolean | undefined;
|
|
10
10
|
hideFromHierarchy?: boolean | undefined;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const taskGroupSchema: z.ZodObject<
|
|
13
|
-
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
12
|
+
export declare const taskGroupSchema: z.ZodObject<{
|
|
14
13
|
title: z.ZodString;
|
|
15
14
|
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
16
15
|
code: z.ZodString;
|
|
17
16
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
-
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
19
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
17
|
+
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
20
18
|
label: z.ZodString;
|
|
21
19
|
text: z.ZodString;
|
|
22
|
-
}
|
|
20
|
+
} & {
|
|
23
21
|
type: z.ZodLiteral<"pdf">;
|
|
24
22
|
url: z.ZodString;
|
|
25
|
-
}
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
24
|
type: "pdf";
|
|
27
25
|
url: string;
|
|
28
26
|
label: string;
|
|
@@ -32,13 +30,12 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
32
30
|
url: string;
|
|
33
31
|
label: string;
|
|
34
32
|
text: string;
|
|
35
|
-
}>, z.ZodObject<
|
|
36
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
33
|
+
}>, z.ZodObject<{
|
|
37
34
|
label: z.ZodString;
|
|
38
35
|
text: z.ZodString;
|
|
39
|
-
}
|
|
36
|
+
} & {
|
|
40
37
|
type: z.ZodLiteral<"text">;
|
|
41
|
-
}
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
39
|
type: "text";
|
|
43
40
|
label: string;
|
|
44
41
|
text: string;
|
|
@@ -46,14 +43,13 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
46
43
|
type: "text";
|
|
47
44
|
label: string;
|
|
48
45
|
text: string;
|
|
49
|
-
}>, z.ZodObject<
|
|
50
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
46
|
+
}>, z.ZodObject<{
|
|
51
47
|
label: z.ZodString;
|
|
52
48
|
text: z.ZodString;
|
|
53
|
-
}
|
|
49
|
+
} & {
|
|
54
50
|
type: z.ZodLiteral<"link">;
|
|
55
51
|
url: z.ZodString;
|
|
56
|
-
}
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
53
|
type: "link";
|
|
58
54
|
url: string;
|
|
59
55
|
label: string;
|
|
@@ -99,24 +95,22 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
99
95
|
readOnly?: boolean | undefined;
|
|
100
96
|
}>>;
|
|
101
97
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
}
|
|
98
|
+
} & {
|
|
103
99
|
type: z.ZodLiteral<"task-group">;
|
|
104
100
|
description: z.ZodOptional<z.ZodString>;
|
|
105
101
|
category: z.ZodOptional<z.ZodString>;
|
|
106
|
-
items: z.ZodArray<z.ZodLazy<z.ZodObject<
|
|
107
|
-
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
102
|
+
items: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
108
103
|
title: z.ZodString;
|
|
109
104
|
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
110
105
|
code: z.ZodString;
|
|
111
106
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
112
|
-
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
113
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
107
|
+
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
114
108
|
label: z.ZodString;
|
|
115
109
|
text: z.ZodString;
|
|
116
|
-
}
|
|
110
|
+
} & {
|
|
117
111
|
type: z.ZodLiteral<"pdf">;
|
|
118
112
|
url: z.ZodString;
|
|
119
|
-
}
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
114
|
type: "pdf";
|
|
121
115
|
url: string;
|
|
122
116
|
label: string;
|
|
@@ -126,13 +120,12 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
126
120
|
url: string;
|
|
127
121
|
label: string;
|
|
128
122
|
text: string;
|
|
129
|
-
}>, z.ZodObject<
|
|
130
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
123
|
+
}>, z.ZodObject<{
|
|
131
124
|
label: z.ZodString;
|
|
132
125
|
text: z.ZodString;
|
|
133
|
-
}
|
|
126
|
+
} & {
|
|
134
127
|
type: z.ZodLiteral<"text">;
|
|
135
|
-
}
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
129
|
type: "text";
|
|
137
130
|
label: string;
|
|
138
131
|
text: string;
|
|
@@ -140,14 +133,13 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
140
133
|
type: "text";
|
|
141
134
|
label: string;
|
|
142
135
|
text: string;
|
|
143
|
-
}>, z.ZodObject<
|
|
144
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
136
|
+
}>, z.ZodObject<{
|
|
145
137
|
label: z.ZodString;
|
|
146
138
|
text: z.ZodString;
|
|
147
|
-
}
|
|
139
|
+
} & {
|
|
148
140
|
type: z.ZodLiteral<"link">;
|
|
149
141
|
url: z.ZodString;
|
|
150
|
-
}
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
143
|
type: "link";
|
|
152
144
|
url: string;
|
|
153
145
|
label: string;
|
|
@@ -193,23 +185,20 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
193
185
|
readOnly?: boolean | undefined;
|
|
194
186
|
}>>;
|
|
195
187
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
196
|
-
}
|
|
188
|
+
} & {
|
|
197
189
|
type: z.ZodLiteral<"task">;
|
|
198
190
|
description: z.ZodOptional<z.ZodString>;
|
|
199
|
-
items: z.ZodArray<z.ZodLazy<z.ZodObject<
|
|
200
|
-
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
201
|
-
title: z.ZodString;
|
|
202
|
-
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
191
|
+
items: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
203
192
|
code: z.ZodString;
|
|
193
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
204
194
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
205
|
-
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
206
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
195
|
+
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
207
196
|
label: z.ZodString;
|
|
208
197
|
text: z.ZodString;
|
|
209
|
-
}
|
|
198
|
+
} & {
|
|
210
199
|
type: z.ZodLiteral<"pdf">;
|
|
211
200
|
url: z.ZodString;
|
|
212
|
-
}
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
202
|
type: "pdf";
|
|
214
203
|
url: string;
|
|
215
204
|
label: string;
|
|
@@ -219,13 +208,12 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
219
208
|
url: string;
|
|
220
209
|
label: string;
|
|
221
210
|
text: string;
|
|
222
|
-
}>, z.ZodObject<
|
|
223
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
211
|
+
}>, z.ZodObject<{
|
|
224
212
|
label: z.ZodString;
|
|
225
213
|
text: z.ZodString;
|
|
226
|
-
}
|
|
214
|
+
} & {
|
|
227
215
|
type: z.ZodLiteral<"text">;
|
|
228
|
-
}
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
217
|
type: "text";
|
|
230
218
|
label: string;
|
|
231
219
|
text: string;
|
|
@@ -233,14 +221,13 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
233
221
|
type: "text";
|
|
234
222
|
label: string;
|
|
235
223
|
text: string;
|
|
236
|
-
}>, z.ZodObject<
|
|
237
|
-
type: z.ZodEnum<["pdf", "text", "link"]>;
|
|
224
|
+
}>, z.ZodObject<{
|
|
238
225
|
label: z.ZodString;
|
|
239
226
|
text: z.ZodString;
|
|
240
|
-
}
|
|
227
|
+
} & {
|
|
241
228
|
type: z.ZodLiteral<"link">;
|
|
242
229
|
url: z.ZodString;
|
|
243
|
-
}
|
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
|
244
231
|
type: "link";
|
|
245
232
|
url: string;
|
|
246
233
|
label: string;
|
|
@@ -251,44 +238,10 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
251
238
|
label: string;
|
|
252
239
|
text: string;
|
|
253
240
|
}>]>, "many">>;
|
|
254
|
-
data: z.ZodOptional<z.ZodObject<{
|
|
255
|
-
type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
|
|
256
|
-
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">]>>;
|
|
257
|
-
text: z.ZodOptional<z.ZodString>;
|
|
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
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
263
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
264
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
265
|
-
}, "strip", z.ZodTypeAny, {
|
|
266
|
-
type?: "number" | "percentage" | undefined;
|
|
267
|
-
total?: number | undefined;
|
|
268
|
-
value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
269
|
-
text?: string | undefined;
|
|
270
|
-
maximumValue?: number | undefined;
|
|
271
|
-
minimumValue?: number | undefined;
|
|
272
|
-
exclusiveMaximum?: number | undefined;
|
|
273
|
-
exclusiveMinimum?: number | undefined;
|
|
274
|
-
step?: number | undefined;
|
|
275
|
-
readOnly?: boolean | undefined;
|
|
276
|
-
}, {
|
|
277
|
-
type?: "number" | "percentage" | undefined;
|
|
278
|
-
total?: number | undefined;
|
|
279
|
-
value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
280
|
-
text?: string | undefined;
|
|
281
|
-
maximumValue?: number | undefined;
|
|
282
|
-
minimumValue?: number | undefined;
|
|
283
|
-
exclusiveMaximum?: number | undefined;
|
|
284
|
-
exclusiveMinimum?: number | undefined;
|
|
285
|
-
step?: number | undefined;
|
|
286
|
-
readOnly?: boolean | undefined;
|
|
287
|
-
}>>;
|
|
288
241
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
}
|
|
242
|
+
} & {
|
|
290
243
|
type: z.ZodLiteral<"task-item">;
|
|
291
|
-
data: z.ZodOptional<z.ZodObject<
|
|
244
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
292
245
|
type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
|
|
293
246
|
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">]>>;
|
|
294
247
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -299,9 +252,9 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
299
252
|
step: z.ZodOptional<z.ZodNumber>;
|
|
300
253
|
total: z.ZodOptional<z.ZodNumber>;
|
|
301
254
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
-
}
|
|
255
|
+
} & {
|
|
303
256
|
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">]>>;
|
|
304
|
-
}
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
258
|
type?: "number" | "percentage" | undefined;
|
|
306
259
|
total?: number | undefined;
|
|
307
260
|
value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
@@ -326,11 +279,10 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
326
279
|
readOnly?: boolean | undefined;
|
|
327
280
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
328
281
|
}>>;
|
|
329
|
-
definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
330
|
-
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
282
|
+
definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
331
283
|
label: z.ZodOptional<z.ZodString>;
|
|
332
284
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
333
|
-
}
|
|
285
|
+
} & {
|
|
334
286
|
type: z.ZodLiteral<"select-single">;
|
|
335
287
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
336
288
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -354,7 +306,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
354
306
|
outro?: string | undefined;
|
|
355
307
|
}>, "many">;
|
|
356
308
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
357
|
-
}
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
310
|
type: "select-single";
|
|
359
311
|
options: {
|
|
360
312
|
value: string | number | boolean | null;
|
|
@@ -382,11 +334,10 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
382
334
|
maximum?: number | undefined;
|
|
383
335
|
defaultValue?: string | undefined;
|
|
384
336
|
readOnly?: boolean | undefined;
|
|
385
|
-
}>, z.ZodObject<
|
|
386
|
-
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
337
|
+
}>, z.ZodObject<{
|
|
387
338
|
label: z.ZodOptional<z.ZodString>;
|
|
388
339
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
389
|
-
}
|
|
340
|
+
} & {
|
|
390
341
|
type: z.ZodLiteral<"select-multiple">;
|
|
391
342
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
392
343
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -410,7 +361,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
410
361
|
outro?: string | undefined;
|
|
411
362
|
}>, "many">;
|
|
412
363
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
413
|
-
}
|
|
364
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
365
|
type: "select-multiple";
|
|
415
366
|
options: {
|
|
416
367
|
value: string | number | boolean | null;
|
|
@@ -438,17 +389,16 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
438
389
|
maximum?: number | undefined;
|
|
439
390
|
defaultValue?: string[] | undefined;
|
|
440
391
|
readOnly?: boolean | undefined;
|
|
441
|
-
}>, z.ZodObject<
|
|
442
|
-
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
392
|
+
}>, z.ZodObject<{
|
|
443
393
|
label: z.ZodOptional<z.ZodString>;
|
|
444
394
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
-
}
|
|
395
|
+
} & {
|
|
446
396
|
type: z.ZodLiteral<"number">;
|
|
447
397
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
448
398
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
449
399
|
step: z.ZodOptional<z.ZodNumber>;
|
|
450
400
|
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
451
|
-
}
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
452
402
|
type: "number";
|
|
453
403
|
label?: string | undefined;
|
|
454
404
|
minimum?: number | undefined;
|
|
@@ -464,11 +414,10 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
464
414
|
defaultValue?: number | undefined;
|
|
465
415
|
step?: number | undefined;
|
|
466
416
|
readOnly?: boolean | undefined;
|
|
467
|
-
}>, z.ZodObject<
|
|
468
|
-
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
417
|
+
}>, z.ZodObject<{
|
|
469
418
|
label: z.ZodOptional<z.ZodString>;
|
|
470
419
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
-
}
|
|
420
|
+
} & {
|
|
472
421
|
type: z.ZodLiteral<"boolean">;
|
|
473
422
|
labels: z.ZodOptional<z.ZodObject<{
|
|
474
423
|
true: z.ZodString;
|
|
@@ -481,7 +430,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
481
430
|
true: string;
|
|
482
431
|
}>>;
|
|
483
432
|
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
484
|
-
}
|
|
433
|
+
}, "strip", z.ZodTypeAny, {
|
|
485
434
|
type: "boolean";
|
|
486
435
|
label?: string | undefined;
|
|
487
436
|
labels?: {
|
|
@@ -512,7 +461,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
512
461
|
hideCode?: boolean | undefined;
|
|
513
462
|
excludeFromTargets?: boolean | undefined;
|
|
514
463
|
}>>;
|
|
515
|
-
}
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
465
|
code: string;
|
|
517
466
|
type: "task-item";
|
|
518
467
|
definition: {
|
|
@@ -692,7 +641,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
692
641
|
}, {
|
|
693
642
|
hideCode?: boolean | undefined;
|
|
694
643
|
}>>;
|
|
695
|
-
}
|
|
644
|
+
}, "strip", z.ZodTypeAny, {
|
|
696
645
|
code: string;
|
|
697
646
|
type: "task";
|
|
698
647
|
title: string;
|
|
@@ -953,7 +902,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
953
902
|
hideCode?: boolean | undefined;
|
|
954
903
|
hideFromHierarchy?: boolean | undefined;
|
|
955
904
|
}>>;
|
|
956
|
-
}
|
|
905
|
+
}, "strip", z.ZodTypeAny, {
|
|
957
906
|
code: string;
|
|
958
907
|
type: "task-group";
|
|
959
908
|
title: string;
|