@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const taskOptionsSchema: z.ZodIntersection<z.ZodObject<{
|
|
2
|
+
export declare const taskOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
3
3
|
breadcrumbTextFormat: z.ZodString;
|
|
4
4
|
documentTreeFolderTextFormat: z.ZodString;
|
|
5
5
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -17,6 +17,12 @@ export declare const taskOptionsSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
17
17
|
criteriaTreeElementTextFormat: string;
|
|
18
18
|
}, {
|
|
19
19
|
criteriaTreeElementTextFormat: string;
|
|
20
|
+
}>>, z.ZodObject<{
|
|
21
|
+
reportTextFormat: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
reportTextFormat?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
reportTextFormat?: string | undefined;
|
|
20
26
|
}>>;
|
|
21
27
|
export declare const taskSchema: z.ZodObject<{
|
|
22
28
|
title: z.ZodString;
|
|
@@ -78,25 +84,25 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
78
84
|
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
79
85
|
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
80
86
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
81
|
-
}, "strip", z.
|
|
82
|
-
type
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
maximumValue
|
|
87
|
-
minimumValue
|
|
88
|
-
exclusiveMaximum
|
|
89
|
-
exclusiveMinimum
|
|
90
|
-
}, {
|
|
91
|
-
type
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
maximumValue
|
|
96
|
-
minimumValue
|
|
97
|
-
exclusiveMaximum
|
|
98
|
-
exclusiveMinimum
|
|
99
|
-
}
|
|
87
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
88
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
89
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
90
|
+
text: z.ZodOptional<z.ZodString>;
|
|
91
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
97
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
98
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
99
|
+
text: z.ZodOptional<z.ZodString>;
|
|
100
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
}, z.ZodAny, "strip">>>;
|
|
100
106
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
101
107
|
} & {
|
|
102
108
|
type: z.ZodLiteral<"task">;
|
|
@@ -162,25 +168,25 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
162
168
|
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
163
169
|
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
164
170
|
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
165
|
-
}, "strip", z.
|
|
166
|
-
type
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
maximumValue
|
|
171
|
-
minimumValue
|
|
172
|
-
exclusiveMaximum
|
|
173
|
-
exclusiveMinimum
|
|
174
|
-
}, {
|
|
175
|
-
type
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
maximumValue
|
|
180
|
-
minimumValue
|
|
181
|
-
exclusiveMaximum
|
|
182
|
-
exclusiveMinimum
|
|
183
|
-
}
|
|
171
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
172
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
173
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
174
|
+
text: z.ZodOptional<z.ZodString>;
|
|
175
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
181
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
182
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
183
|
+
text: z.ZodOptional<z.ZodString>;
|
|
184
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
}, z.ZodAny, "strip">>, z.ZodObject<{
|
|
184
190
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
185
191
|
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">]>>;
|
|
186
192
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -429,6 +435,8 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
429
435
|
minimumValue?: number | undefined;
|
|
430
436
|
exclusiveMaximum?: number | undefined;
|
|
431
437
|
exclusiveMinimum?: number | undefined;
|
|
438
|
+
} & {
|
|
439
|
+
[k: string]: any;
|
|
432
440
|
} & {
|
|
433
441
|
readOnly?: boolean | undefined;
|
|
434
442
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
@@ -512,6 +520,8 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
512
520
|
minimumValue?: number | undefined;
|
|
513
521
|
exclusiveMaximum?: number | undefined;
|
|
514
522
|
exclusiveMinimum?: number | undefined;
|
|
523
|
+
} & {
|
|
524
|
+
[k: string]: any;
|
|
515
525
|
} & {
|
|
516
526
|
readOnly?: boolean | undefined;
|
|
517
527
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
@@ -535,7 +545,7 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
535
545
|
})[] | undefined;
|
|
536
546
|
sortOrder?: number | undefined;
|
|
537
547
|
}>>, "many">;
|
|
538
|
-
options: z.ZodIntersection<z.ZodObject<{
|
|
548
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
539
549
|
breadcrumbTextFormat: z.ZodString;
|
|
540
550
|
documentTreeFolderTextFormat: z.ZodString;
|
|
541
551
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -553,6 +563,12 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
553
563
|
criteriaTreeElementTextFormat: string;
|
|
554
564
|
}, {
|
|
555
565
|
criteriaTreeElementTextFormat: string;
|
|
566
|
+
}>>, z.ZodObject<{
|
|
567
|
+
reportTextFormat: z.ZodOptional<z.ZodString>;
|
|
568
|
+
}, "strip", z.ZodTypeAny, {
|
|
569
|
+
reportTextFormat?: string | undefined;
|
|
570
|
+
}, {
|
|
571
|
+
reportTextFormat?: string | undefined;
|
|
556
572
|
}>>;
|
|
557
573
|
}, "strip", z.ZodTypeAny, {
|
|
558
574
|
code: string;
|
|
@@ -564,6 +580,8 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
564
580
|
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
565
581
|
} & {
|
|
566
582
|
criteriaTreeElementTextFormat: string;
|
|
583
|
+
} & {
|
|
584
|
+
reportTextFormat?: string | undefined;
|
|
567
585
|
};
|
|
568
586
|
items: {
|
|
569
587
|
code: string;
|
|
@@ -626,6 +644,8 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
626
644
|
minimumValue?: number | undefined;
|
|
627
645
|
exclusiveMaximum?: number | undefined;
|
|
628
646
|
exclusiveMinimum?: number | undefined;
|
|
647
|
+
} & {
|
|
648
|
+
[k: string]: any;
|
|
629
649
|
} & {
|
|
630
650
|
readOnly?: boolean | undefined;
|
|
631
651
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
@@ -650,16 +670,16 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
650
670
|
sortOrder?: number | undefined;
|
|
651
671
|
}[];
|
|
652
672
|
longFormTitle: string;
|
|
653
|
-
data?: {
|
|
654
|
-
type
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
maximumValue
|
|
659
|
-
minimumValue
|
|
660
|
-
exclusiveMaximum
|
|
661
|
-
exclusiveMinimum
|
|
662
|
-
} | undefined;
|
|
673
|
+
data?: z.objectOutputType<{
|
|
674
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
675
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
676
|
+
text: z.ZodOptional<z.ZodString>;
|
|
677
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
678
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
679
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
680
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
681
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
682
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
663
683
|
description?: string | undefined;
|
|
664
684
|
tags?: string[] | undefined;
|
|
665
685
|
documentation?: ({
|
|
@@ -688,6 +708,8 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
688
708
|
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
689
709
|
} & {
|
|
690
710
|
criteriaTreeElementTextFormat: string;
|
|
711
|
+
} & {
|
|
712
|
+
reportTextFormat?: string | undefined;
|
|
691
713
|
};
|
|
692
714
|
items: {
|
|
693
715
|
code: string;
|
|
@@ -750,6 +772,8 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
750
772
|
minimumValue?: number | undefined;
|
|
751
773
|
exclusiveMaximum?: number | undefined;
|
|
752
774
|
exclusiveMinimum?: number | undefined;
|
|
775
|
+
} & {
|
|
776
|
+
[k: string]: any;
|
|
753
777
|
} & {
|
|
754
778
|
readOnly?: boolean | undefined;
|
|
755
779
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
@@ -774,16 +798,16 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
774
798
|
sortOrder?: number | undefined;
|
|
775
799
|
}[];
|
|
776
800
|
longFormTitle: string;
|
|
777
|
-
data?: {
|
|
778
|
-
type
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
maximumValue
|
|
783
|
-
minimumValue
|
|
784
|
-
exclusiveMaximum
|
|
785
|
-
exclusiveMinimum
|
|
786
|
-
} | undefined;
|
|
801
|
+
data?: z.objectInputType<{
|
|
802
|
+
type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
|
|
803
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
804
|
+
text: z.ZodOptional<z.ZodString>;
|
|
805
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
806
|
+
maximumValue: z.ZodOptional<z.ZodNumber>;
|
|
807
|
+
minimumValue: z.ZodOptional<z.ZodNumber>;
|
|
808
|
+
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
809
|
+
exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
|
|
810
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
787
811
|
description?: string | undefined;
|
|
788
812
|
tags?: string[] | undefined;
|
|
789
813
|
documentation?: ({
|
package/dist/v1/schemas/task.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.taskOptionsSchema = zod_1.z
|
|
|
19
19
|
.describe("Whether the title of the indicator task view should show the task code, or the hardcoded description text"),
|
|
20
20
|
})
|
|
21
21
|
.and(common_1.criteriaTreeOptionsSchema)
|
|
22
|
+
.and(common_1.reportOptionsSchema)
|
|
22
23
|
.describe("TaskOptions - Configuration options for task display and behavior");
|
|
23
24
|
exports.taskSchema = common_1.abstractElementSchema.extend({
|
|
24
25
|
type: zod_1.z.literal("task").describe("Identifies the schema type as a task"),
|