@openframe-org/criteria-set-protocol 3.0.0-alpha.5 → 3.0.0-alpha.7
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 +3 -9
- package/dist/v1/schemas/common.js +2 -3
- package/dist/v1/schemas/criteria-tree.d.ts +12 -18
- package/dist/v1/schemas/criterion.d.ts +3 -3
- package/dist/v1/schemas/data-map.d.ts +2 -8
- package/dist/v1/schemas/task-group.d.ts +1 -1
- package/dist/v1/schemas/task.d.ts +2 -2
- package/dist/v1/schemas/theme.d.ts +4 -4
- package/package.json +1 -1
|
@@ -104,22 +104,16 @@ export declare const criteriaTreeOptionsSchema: z.ZodObject<{
|
|
|
104
104
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
105
105
|
}, z.core.$strip>;
|
|
106
106
|
export declare const reportOptionsSchema: z.ZodObject<{
|
|
107
|
-
reportTitleTextFormat: z.
|
|
107
|
+
reportTitleTextFormat: z.ZodString;
|
|
108
108
|
}, z.core.$strip>;
|
|
109
109
|
export declare const treeResultSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
110
|
-
value: z.ZodNullable<z.ZodNumber>;
|
|
111
|
-
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
112
|
-
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
113
|
-
weight: z.ZodNullable<z.ZodNumber>;
|
|
114
110
|
type: z.ZodLiteral<"number">;
|
|
115
111
|
total: z.ZodNullable<z.ZodNumber>;
|
|
116
|
-
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
117
112
|
value: z.ZodNullable<z.ZodNumber>;
|
|
118
|
-
|
|
119
|
-
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
120
|
-
weight: z.ZodNullable<z.ZodNumber>;
|
|
113
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
121
114
|
type: z.ZodLiteral<"percentage">;
|
|
122
115
|
total: z.ZodOptional<z.ZodNever>;
|
|
116
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
123
117
|
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
124
118
|
type: z.ZodLiteral<"boolean">;
|
|
125
119
|
value: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -123,7 +123,6 @@ exports.reportOptionsSchema = zod_1.z
|
|
|
123
123
|
.object({
|
|
124
124
|
reportTitleTextFormat: zod_1.z
|
|
125
125
|
.string()
|
|
126
|
-
.
|
|
127
|
-
.describe("The format of the report row text, use ':code:' and ':title:' to define where the code and/or title should be inserted, if not provided only the title will be rendered")
|
|
126
|
+
.describe("The format of the report row text, use ':code:' and ':title:' to define where the code and/or title should be inserted")
|
|
128
127
|
});
|
|
129
|
-
exports.treeResultSchema =
|
|
128
|
+
exports.treeResultSchema = numberElementDataSchema.omit({ weight: true, minimumValue: true, maximumValue: true }).or(percentageElementDataSchema.omit({ weight: true, minimumValue: true, maximumValue: true })).or(booleanElementDataSchema).describe("TreeResult - The result of the evaluation of a criteria set");
|
|
@@ -3,19 +3,13 @@ export declare const criteriaTreeSchema: z.ZodObject<{
|
|
|
3
3
|
version: z.ZodString;
|
|
4
4
|
revision: z.ZodString;
|
|
5
5
|
result: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
6
|
-
value: z.ZodNullable<z.ZodNumber>;
|
|
7
|
-
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
8
|
-
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
9
|
-
weight: z.ZodNullable<z.ZodNumber>;
|
|
10
6
|
type: z.ZodLiteral<"number">;
|
|
11
7
|
total: z.ZodNullable<z.ZodNumber>;
|
|
12
|
-
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
13
8
|
value: z.ZodNullable<z.ZodNumber>;
|
|
14
|
-
|
|
15
|
-
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
16
|
-
weight: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
17
10
|
type: z.ZodLiteral<"percentage">;
|
|
18
11
|
total: z.ZodOptional<z.ZodNever>;
|
|
12
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
19
13
|
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
20
14
|
type: z.ZodLiteral<"boolean">;
|
|
21
15
|
value: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -319,7 +313,7 @@ export declare const criteriaTreeSchema: z.ZodObject<{
|
|
|
319
313
|
}, z.core.$strip>, z.ZodObject<{
|
|
320
314
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
321
315
|
}, z.core.$strip>>, z.ZodObject<{
|
|
322
|
-
reportTitleTextFormat: z.
|
|
316
|
+
reportTitleTextFormat: z.ZodString;
|
|
323
317
|
}, z.core.$strip>>;
|
|
324
318
|
}, z.core.$strip>>>;
|
|
325
319
|
}, z.core.$strip>>>;
|
|
@@ -340,7 +334,7 @@ export declare const criteriaTreeSchema: z.ZodObject<{
|
|
|
340
334
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
341
335
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
342
336
|
}, z.core.$strip>>, z.ZodObject<{
|
|
343
|
-
reportTitleTextFormat: z.
|
|
337
|
+
reportTitleTextFormat: z.ZodString;
|
|
344
338
|
}, z.core.$strip>>;
|
|
345
339
|
}, z.core.$strip>>;
|
|
346
340
|
options: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
@@ -358,7 +352,7 @@ export declare const criteriaTreeSchema: z.ZodObject<{
|
|
|
358
352
|
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
359
353
|
documentTreeFolderTextFormat: z.ZodString;
|
|
360
354
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
361
|
-
reportTitleTextFormat: z.
|
|
355
|
+
reportTitleTextFormat: z.ZodString;
|
|
362
356
|
}, z.core.$strip>>;
|
|
363
357
|
}, z.core.$strip>>;
|
|
364
358
|
certificationDefinitions: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -703,7 +697,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
703
697
|
}, z.core.$strip>, z.ZodObject<{
|
|
704
698
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
705
699
|
}, z.core.$strip>>, z.ZodObject<{
|
|
706
|
-
reportTitleTextFormat: z.
|
|
700
|
+
reportTitleTextFormat: z.ZodString;
|
|
707
701
|
}, z.core.$strip>>;
|
|
708
702
|
}, z.core.$strip>>>;
|
|
709
703
|
}, z.core.$strip>>>;
|
|
@@ -724,7 +718,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
724
718
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
725
719
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
726
720
|
}, z.core.$strip>>, z.ZodObject<{
|
|
727
|
-
reportTitleTextFormat: z.
|
|
721
|
+
reportTitleTextFormat: z.ZodString;
|
|
728
722
|
}, z.core.$strip>>;
|
|
729
723
|
}, z.core.$strip>>;
|
|
730
724
|
options: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
@@ -742,7 +736,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
742
736
|
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
743
737
|
documentTreeFolderTextFormat: z.ZodString;
|
|
744
738
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
745
|
-
reportTitleTextFormat: z.
|
|
739
|
+
reportTitleTextFormat: z.ZodString;
|
|
746
740
|
}, z.core.$strip>>;
|
|
747
741
|
}, z.core.$strip>, z.ZodObject<{
|
|
748
742
|
title: z.ZodString;
|
|
@@ -982,7 +976,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
982
976
|
}, z.core.$strip>, z.ZodObject<{
|
|
983
977
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
984
978
|
}, z.core.$strip>>, z.ZodObject<{
|
|
985
|
-
reportTitleTextFormat: z.
|
|
979
|
+
reportTitleTextFormat: z.ZodString;
|
|
986
980
|
}, z.core.$strip>>;
|
|
987
981
|
}, z.core.$strip>>>;
|
|
988
982
|
}, z.core.$strip>>>;
|
|
@@ -1003,7 +997,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1003
997
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
1004
998
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
1005
999
|
}, z.core.$strip>>, z.ZodObject<{
|
|
1006
|
-
reportTitleTextFormat: z.
|
|
1000
|
+
reportTitleTextFormat: z.ZodString;
|
|
1007
1001
|
}, z.core.$strip>>;
|
|
1008
1002
|
}, z.core.$strip>, z.ZodObject<{
|
|
1009
1003
|
title: z.ZodString;
|
|
@@ -1199,7 +1193,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1199
1193
|
}, z.core.$strip>, z.ZodObject<{
|
|
1200
1194
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
1201
1195
|
}, z.core.$strip>>, z.ZodObject<{
|
|
1202
|
-
reportTitleTextFormat: z.
|
|
1196
|
+
reportTitleTextFormat: z.ZodString;
|
|
1203
1197
|
}, z.core.$strip>>;
|
|
1204
1198
|
}, z.core.$strip>>>;
|
|
1205
1199
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1350,7 +1344,7 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1350
1344
|
}, z.core.$strip>, z.ZodObject<{
|
|
1351
1345
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
1352
1346
|
}, z.core.$strip>>, z.ZodObject<{
|
|
1353
|
-
reportTitleTextFormat: z.
|
|
1347
|
+
reportTitleTextFormat: z.ZodString;
|
|
1354
1348
|
}, z.core.$strip>>;
|
|
1355
1349
|
}, z.core.$strip>, z.ZodObject<{
|
|
1356
1350
|
code: z.ZodString;
|
|
@@ -16,7 +16,7 @@ export declare const criterionOptionsSchema: z.ZodIntersection<z.ZodIntersection
|
|
|
16
16
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
17
17
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
18
18
|
}, z.core.$strip>>, z.ZodObject<{
|
|
19
|
-
reportTitleTextFormat: z.
|
|
19
|
+
reportTitleTextFormat: z.ZodString;
|
|
20
20
|
}, z.core.$strip>>;
|
|
21
21
|
export declare const criterionSchema: z.ZodObject<{
|
|
22
22
|
title: z.ZodString;
|
|
@@ -256,7 +256,7 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
256
256
|
}, z.core.$strip>, z.ZodObject<{
|
|
257
257
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
258
258
|
}, z.core.$strip>>, z.ZodObject<{
|
|
259
|
-
reportTitleTextFormat: z.
|
|
259
|
+
reportTitleTextFormat: z.ZodString;
|
|
260
260
|
}, z.core.$strip>>;
|
|
261
261
|
}, z.core.$strip>>>;
|
|
262
262
|
}, z.core.$strip>>>;
|
|
@@ -277,6 +277,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
277
277
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
278
278
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
279
279
|
}, z.core.$strip>>, z.ZodObject<{
|
|
280
|
-
reportTitleTextFormat: z.
|
|
280
|
+
reportTitleTextFormat: z.ZodString;
|
|
281
281
|
}, z.core.$strip>>;
|
|
282
282
|
}, z.core.$strip>;
|
|
@@ -95,19 +95,13 @@ export declare const dataMapSchema: z.ZodObject<{
|
|
|
95
95
|
valueReference: z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
|
|
96
96
|
}, z.core.$strip>>]>>;
|
|
97
97
|
result: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
98
|
-
value: z.ZodNullable<z.ZodNumber>;
|
|
99
|
-
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
100
|
-
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
101
|
-
weight: z.ZodNullable<z.ZodNumber>;
|
|
102
98
|
type: z.ZodLiteral<"number">;
|
|
103
99
|
total: z.ZodNullable<z.ZodNumber>;
|
|
104
|
-
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
105
100
|
value: z.ZodNullable<z.ZodNumber>;
|
|
106
|
-
|
|
107
|
-
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
108
|
-
weight: z.ZodNullable<z.ZodNumber>;
|
|
101
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
109
102
|
type: z.ZodLiteral<"percentage">;
|
|
110
103
|
total: z.ZodOptional<z.ZodNever>;
|
|
104
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
111
105
|
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
112
106
|
type: z.ZodLiteral<"boolean">;
|
|
113
107
|
value: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -193,7 +193,7 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
193
193
|
}, z.core.$strip>, z.ZodObject<{
|
|
194
194
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
195
195
|
}, z.core.$strip>>, z.ZodObject<{
|
|
196
|
-
reportTitleTextFormat: z.
|
|
196
|
+
reportTitleTextFormat: z.ZodString;
|
|
197
197
|
}, z.core.$strip>>;
|
|
198
198
|
}, z.core.$strip>>>;
|
|
199
199
|
}, z.core.$strip>;
|
|
@@ -6,7 +6,7 @@ export declare const taskOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
|
|
|
6
6
|
}, z.core.$strip>, z.ZodObject<{
|
|
7
7
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
8
8
|
}, z.core.$strip>>, z.ZodObject<{
|
|
9
|
-
reportTitleTextFormat: z.
|
|
9
|
+
reportTitleTextFormat: z.ZodString;
|
|
10
10
|
}, z.core.$strip>>;
|
|
11
11
|
export declare const taskSchema: z.ZodObject<{
|
|
12
12
|
title: z.ZodString;
|
|
@@ -156,6 +156,6 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
156
156
|
}, z.core.$strip>, z.ZodObject<{
|
|
157
157
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
158
158
|
}, z.core.$strip>>, z.ZodObject<{
|
|
159
|
-
reportTitleTextFormat: z.
|
|
159
|
+
reportTitleTextFormat: z.ZodString;
|
|
160
160
|
}, z.core.$strip>>;
|
|
161
161
|
}, z.core.$strip>;
|
|
@@ -26,7 +26,7 @@ export declare const themeOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.Z
|
|
|
26
26
|
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
27
27
|
documentTreeFolderTextFormat: z.ZodString;
|
|
28
28
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
29
|
-
reportTitleTextFormat: z.
|
|
29
|
+
reportTitleTextFormat: z.ZodString;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
31
|
export declare const themeSchema: z.ZodObject<{
|
|
32
32
|
title: z.ZodString;
|
|
@@ -322,7 +322,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
322
322
|
}, z.core.$strip>, z.ZodObject<{
|
|
323
323
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
324
324
|
}, z.core.$strip>>, z.ZodObject<{
|
|
325
|
-
reportTitleTextFormat: z.
|
|
325
|
+
reportTitleTextFormat: z.ZodString;
|
|
326
326
|
}, z.core.$strip>>;
|
|
327
327
|
}, z.core.$strip>>>;
|
|
328
328
|
}, z.core.$strip>>>;
|
|
@@ -343,7 +343,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
343
343
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
344
344
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
345
345
|
}, z.core.$strip>>, z.ZodObject<{
|
|
346
|
-
reportTitleTextFormat: z.
|
|
346
|
+
reportTitleTextFormat: z.ZodString;
|
|
347
347
|
}, z.core.$strip>>;
|
|
348
348
|
}, z.core.$strip>>;
|
|
349
349
|
options: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
@@ -361,6 +361,6 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
361
361
|
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
362
362
|
documentTreeFolderTextFormat: z.ZodString;
|
|
363
363
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
364
|
-
reportTitleTextFormat: z.
|
|
364
|
+
reportTitleTextFormat: z.ZodString;
|
|
365
365
|
}, z.core.$strip>>;
|
|
366
366
|
}, z.core.$strip>;
|
package/package.json
CHANGED