@openframe-org/criteria-set-protocol 2.0.16 → 2.0.18
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/README.md +1 -1
- package/dist/index.js +17 -7
- package/dist/v1/schemas/certification.d.ts +8 -8
- package/dist/v1/schemas/common.d.ts +2 -2
- package/dist/v1/schemas/criteria-tree.d.ts +358 -166
- package/dist/v1/schemas/criterion.d.ts +64 -29
- package/dist/v1/schemas/metadata.d.ts +2 -2
- package/dist/v1/schemas/response.d.ts +2 -2
- package/dist/v1/schemas/task-group.d.ts +48 -19
- package/dist/v1/schemas/task-item.d.ts +46 -5
- package/dist/v1/schemas/task-item.js +1 -1
- package/dist/v1/schemas/task.d.ts +34 -11
- package/dist/v1/schemas/theme.d.ts +82 -41
- package/dist/v1/types/express.d.ts +0 -1
- package/dist/v1/utils.d.ts +6 -761
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ exports.pointOptionSchema = zod_1.z.object({
|
|
|
13
13
|
});
|
|
14
14
|
const abstractDefinitionSchema = zod_1.z.object({
|
|
15
15
|
type: zod_1.z.enum(["select-single", "select-multiple", "number", "boolean"]),
|
|
16
|
+
label: zod_1.z.string().optional()
|
|
16
17
|
});
|
|
17
18
|
exports.selectSingleTypeSchema = abstractDefinitionSchema.extend({
|
|
18
19
|
type: zod_1.z.literal("select-single"),
|
|
@@ -56,7 +57,6 @@ exports.taskItemSchema = common_1.abstractElementSchema
|
|
|
56
57
|
data: exports.taskItemDataSchema.optional(),
|
|
57
58
|
definition: exports.taskItemDefinitionSchema,
|
|
58
59
|
description: zod_1.z.string().optional(),
|
|
59
|
-
providedData: exports.taskItemValueMapSchema.optional(),
|
|
60
60
|
valueReference: common_1.taskItemValueSchema.optional(),
|
|
61
61
|
options: exports.taskItemOptionsSchema.optional(),
|
|
62
62
|
});
|
|
@@ -231,6 +231,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
231
231
|
}>>;
|
|
232
232
|
definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
233
233
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
234
|
+
label: z.ZodOptional<z.ZodString>;
|
|
234
235
|
}, {
|
|
235
236
|
type: z.ZodLiteral<"select-single">;
|
|
236
237
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -261,6 +262,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
261
262
|
intro?: string | undefined;
|
|
262
263
|
outro?: string | undefined;
|
|
263
264
|
}[];
|
|
265
|
+
label?: string | undefined;
|
|
264
266
|
}, {
|
|
265
267
|
type: "select-single";
|
|
266
268
|
options: {
|
|
@@ -270,8 +272,10 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
270
272
|
intro?: string | undefined;
|
|
271
273
|
outro?: string | undefined;
|
|
272
274
|
}[];
|
|
275
|
+
label?: string | undefined;
|
|
273
276
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
274
277
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
278
|
+
label: z.ZodOptional<z.ZodString>;
|
|
275
279
|
}, {
|
|
276
280
|
type: z.ZodLiteral<"select-multiple">;
|
|
277
281
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -302,6 +306,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
302
306
|
intro?: string | undefined;
|
|
303
307
|
outro?: string | undefined;
|
|
304
308
|
}[];
|
|
309
|
+
label?: string | undefined;
|
|
305
310
|
}, {
|
|
306
311
|
type: "select-multiple";
|
|
307
312
|
options: {
|
|
@@ -311,8 +316,10 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
311
316
|
intro?: string | undefined;
|
|
312
317
|
outro?: string | undefined;
|
|
313
318
|
}[];
|
|
319
|
+
label?: string | undefined;
|
|
314
320
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
315
321
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
322
|
+
label: z.ZodOptional<z.ZodString>;
|
|
316
323
|
}, {
|
|
317
324
|
type: z.ZodLiteral<"number">;
|
|
318
325
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
@@ -320,16 +327,19 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
320
327
|
step: z.ZodOptional<z.ZodNumber>;
|
|
321
328
|
}>, "strip", z.ZodTypeAny, {
|
|
322
329
|
type: "number";
|
|
330
|
+
label?: string | undefined;
|
|
323
331
|
minimum?: number | undefined;
|
|
324
332
|
maximum?: number | undefined;
|
|
325
333
|
step?: number | undefined;
|
|
326
334
|
}, {
|
|
327
335
|
type: "number";
|
|
336
|
+
label?: string | undefined;
|
|
328
337
|
minimum?: number | undefined;
|
|
329
338
|
maximum?: number | undefined;
|
|
330
339
|
step?: number | undefined;
|
|
331
340
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
332
341
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
342
|
+
label: z.ZodOptional<z.ZodString>;
|
|
333
343
|
}, {
|
|
334
344
|
type: z.ZodLiteral<"boolean">;
|
|
335
345
|
labels: z.ZodOptional<z.ZodObject<{
|
|
@@ -344,19 +354,20 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
344
354
|
}>>;
|
|
345
355
|
}>, "strip", z.ZodTypeAny, {
|
|
346
356
|
type: "boolean";
|
|
357
|
+
label?: string | undefined;
|
|
347
358
|
labels?: {
|
|
348
359
|
false: string;
|
|
349
360
|
true: string;
|
|
350
361
|
} | undefined;
|
|
351
362
|
}, {
|
|
352
363
|
type: "boolean";
|
|
364
|
+
label?: string | undefined;
|
|
353
365
|
labels?: {
|
|
354
366
|
false: string;
|
|
355
367
|
true: string;
|
|
356
368
|
} | undefined;
|
|
357
369
|
}>]>;
|
|
358
370
|
description: z.ZodOptional<z.ZodString>;
|
|
359
|
-
providedData: z.ZodOptional<z.ZodRecord<z.ZodString, 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">]>>>;
|
|
360
371
|
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">]>>;
|
|
361
372
|
options: z.ZodOptional<z.ZodObject<{
|
|
362
373
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -366,8 +377,8 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
366
377
|
hideCode?: boolean | undefined;
|
|
367
378
|
}>>;
|
|
368
379
|
}>, "strip", z.ZodTypeAny, {
|
|
369
|
-
type: "task-item";
|
|
370
380
|
code: string;
|
|
381
|
+
type: "task-item";
|
|
371
382
|
definition: {
|
|
372
383
|
type: "select-single";
|
|
373
384
|
options: {
|
|
@@ -377,6 +388,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
377
388
|
intro?: string | undefined;
|
|
378
389
|
outro?: string | undefined;
|
|
379
390
|
}[];
|
|
391
|
+
label?: string | undefined;
|
|
380
392
|
} | {
|
|
381
393
|
type: "select-multiple";
|
|
382
394
|
options: {
|
|
@@ -386,13 +398,16 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
386
398
|
intro?: string | undefined;
|
|
387
399
|
outro?: string | undefined;
|
|
388
400
|
}[];
|
|
401
|
+
label?: string | undefined;
|
|
389
402
|
} | {
|
|
390
403
|
type: "number";
|
|
404
|
+
label?: string | undefined;
|
|
391
405
|
minimum?: number | undefined;
|
|
392
406
|
maximum?: number | undefined;
|
|
393
407
|
step?: number | undefined;
|
|
394
408
|
} | {
|
|
395
409
|
type: "boolean";
|
|
410
|
+
label?: string | undefined;
|
|
396
411
|
labels?: {
|
|
397
412
|
false: string;
|
|
398
413
|
true: string;
|
|
@@ -434,10 +449,9 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
434
449
|
})[] | undefined;
|
|
435
450
|
sortOrder?: number | undefined;
|
|
436
451
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
437
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
438
452
|
}, {
|
|
439
|
-
type: "task-item";
|
|
440
453
|
code: string;
|
|
454
|
+
type: "task-item";
|
|
441
455
|
definition: {
|
|
442
456
|
type: "select-single";
|
|
443
457
|
options: {
|
|
@@ -447,6 +461,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
447
461
|
intro?: string | undefined;
|
|
448
462
|
outro?: string | undefined;
|
|
449
463
|
}[];
|
|
464
|
+
label?: string | undefined;
|
|
450
465
|
} | {
|
|
451
466
|
type: "select-multiple";
|
|
452
467
|
options: {
|
|
@@ -456,13 +471,16 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
456
471
|
intro?: string | undefined;
|
|
457
472
|
outro?: string | undefined;
|
|
458
473
|
}[];
|
|
474
|
+
label?: string | undefined;
|
|
459
475
|
} | {
|
|
460
476
|
type: "number";
|
|
477
|
+
label?: string | undefined;
|
|
461
478
|
minimum?: number | undefined;
|
|
462
479
|
maximum?: number | undefined;
|
|
463
480
|
step?: number | undefined;
|
|
464
481
|
} | {
|
|
465
482
|
type: "boolean";
|
|
483
|
+
label?: string | undefined;
|
|
466
484
|
labels?: {
|
|
467
485
|
false: string;
|
|
468
486
|
true: string;
|
|
@@ -504,7 +522,6 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
504
522
|
})[] | undefined;
|
|
505
523
|
sortOrder?: number | undefined;
|
|
506
524
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
507
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
508
525
|
}>>, "many">;
|
|
509
526
|
options: z.ZodOptional<z.ZodObject<{
|
|
510
527
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -514,12 +531,12 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
514
531
|
hideCode?: boolean | undefined;
|
|
515
532
|
}>>;
|
|
516
533
|
}>, "strip", z.ZodTypeAny, {
|
|
517
|
-
type: "task";
|
|
518
534
|
code: string;
|
|
535
|
+
type: "task";
|
|
519
536
|
title: string;
|
|
520
537
|
items: {
|
|
521
|
-
type: "task-item";
|
|
522
538
|
code: string;
|
|
539
|
+
type: "task-item";
|
|
523
540
|
definition: {
|
|
524
541
|
type: "select-single";
|
|
525
542
|
options: {
|
|
@@ -529,6 +546,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
529
546
|
intro?: string | undefined;
|
|
530
547
|
outro?: string | undefined;
|
|
531
548
|
}[];
|
|
549
|
+
label?: string | undefined;
|
|
532
550
|
} | {
|
|
533
551
|
type: "select-multiple";
|
|
534
552
|
options: {
|
|
@@ -538,13 +556,16 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
538
556
|
intro?: string | undefined;
|
|
539
557
|
outro?: string | undefined;
|
|
540
558
|
}[];
|
|
559
|
+
label?: string | undefined;
|
|
541
560
|
} | {
|
|
542
561
|
type: "number";
|
|
562
|
+
label?: string | undefined;
|
|
543
563
|
minimum?: number | undefined;
|
|
544
564
|
maximum?: number | undefined;
|
|
545
565
|
step?: number | undefined;
|
|
546
566
|
} | {
|
|
547
567
|
type: "boolean";
|
|
568
|
+
label?: string | undefined;
|
|
548
569
|
labels?: {
|
|
549
570
|
false: string;
|
|
550
571
|
true: string;
|
|
@@ -586,7 +607,6 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
586
607
|
})[] | undefined;
|
|
587
608
|
sortOrder?: number | undefined;
|
|
588
609
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
589
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
590
610
|
}[];
|
|
591
611
|
data?: {
|
|
592
612
|
type?: "number" | "percentage" | undefined;
|
|
@@ -623,12 +643,12 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
623
643
|
})[] | undefined;
|
|
624
644
|
sortOrder?: number | undefined;
|
|
625
645
|
}, {
|
|
626
|
-
type: "task";
|
|
627
646
|
code: string;
|
|
647
|
+
type: "task";
|
|
628
648
|
title: string;
|
|
629
649
|
items: {
|
|
630
|
-
type: "task-item";
|
|
631
650
|
code: string;
|
|
651
|
+
type: "task-item";
|
|
632
652
|
definition: {
|
|
633
653
|
type: "select-single";
|
|
634
654
|
options: {
|
|
@@ -638,6 +658,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
638
658
|
intro?: string | undefined;
|
|
639
659
|
outro?: string | undefined;
|
|
640
660
|
}[];
|
|
661
|
+
label?: string | undefined;
|
|
641
662
|
} | {
|
|
642
663
|
type: "select-multiple";
|
|
643
664
|
options: {
|
|
@@ -647,13 +668,16 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
647
668
|
intro?: string | undefined;
|
|
648
669
|
outro?: string | undefined;
|
|
649
670
|
}[];
|
|
671
|
+
label?: string | undefined;
|
|
650
672
|
} | {
|
|
651
673
|
type: "number";
|
|
674
|
+
label?: string | undefined;
|
|
652
675
|
minimum?: number | undefined;
|
|
653
676
|
maximum?: number | undefined;
|
|
654
677
|
step?: number | undefined;
|
|
655
678
|
} | {
|
|
656
679
|
type: "boolean";
|
|
680
|
+
label?: string | undefined;
|
|
657
681
|
labels?: {
|
|
658
682
|
false: string;
|
|
659
683
|
true: string;
|
|
@@ -695,7 +719,6 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
695
719
|
})[] | undefined;
|
|
696
720
|
sortOrder?: number | undefined;
|
|
697
721
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
698
|
-
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
699
722
|
}[];
|
|
700
723
|
data?: {
|
|
701
724
|
type?: "number" | "percentage" | undefined;
|