@openframe-org/criteria-set-protocol 2.7.8 → 2.7.9
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/criteria-set.d.ts +1 -0
- package/dist/v1/schemas/criteria-set.js +1 -0
- package/dist/v1/schemas/criteria-tree.d.ts +7 -6
- package/dist/v1/schemas/criteria-tree.js +1 -2
- package/dist/v1/schemas/data-map.d.ts +7 -0
- package/dist/v1/schemas/data-map.js +2 -0
- package/package.json +1 -1
|
@@ -10,5 +10,6 @@ exports.dashboardCategoryListingTypeSchema = zod_1.z.enum(exports.DASHBOARD_CATE
|
|
|
10
10
|
exports.criteriaSetOptionsSchema = zod_1.z
|
|
11
11
|
.object({
|
|
12
12
|
dashboardRenderingType: exports.dashboardCategoryListingTypeSchema.describe("Whether to render the criteria set in a dashboard as a list of criteria or as a list of tasks"),
|
|
13
|
+
canExportMatrix: zod_1.z.boolean().describe("Whether the criteria set can be exported as a matrix")
|
|
13
14
|
})
|
|
14
15
|
.describe("CriteriaSetOptions - options for a criteria set");
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const criteriaTreeSchema: z.ZodObject<{
|
|
3
|
+
options: z.ZodObject<{
|
|
4
|
+
dashboardRenderingType: z.ZodEnum<{
|
|
5
|
+
"per-criteria": "per-criteria";
|
|
6
|
+
"per-task": "per-task";
|
|
7
|
+
}>;
|
|
8
|
+
canExportMatrix: z.ZodBoolean;
|
|
9
|
+
}, z.core.$strip>;
|
|
3
10
|
version: z.ZodString;
|
|
4
11
|
revision: z.ZodString;
|
|
5
12
|
result: z.ZodType<{
|
|
@@ -471,12 +478,6 @@ export declare const criteriaTreeSchema: z.ZodObject<{
|
|
|
471
478
|
exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
|
|
472
479
|
}, z.core.$strip>;
|
|
473
480
|
}, z.core.$strip>], "type">>>;
|
|
474
|
-
options: z.ZodObject<{
|
|
475
|
-
dashboardRenderingType: z.ZodEnum<{
|
|
476
|
-
"per-criteria": "per-criteria";
|
|
477
|
-
"per-task": "per-task";
|
|
478
|
-
}>;
|
|
479
|
-
}, z.core.$strip>;
|
|
480
481
|
}, z.core.$strip>;
|
|
481
482
|
export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
482
483
|
code: z.ZodString;
|
|
@@ -9,13 +9,13 @@ const criterion_1 = require("./criterion");
|
|
|
9
9
|
const task_group_1 = require("./task-group");
|
|
10
10
|
const task_1 = require("./task");
|
|
11
11
|
const task_item_1 = require("./task-item");
|
|
12
|
-
const criteria_set_1 = require("./criteria-set");
|
|
13
12
|
exports.criteriaTreeSchema = data_map_1.dataMapSchema
|
|
14
13
|
.pick({
|
|
15
14
|
version: true,
|
|
16
15
|
revision: true,
|
|
17
16
|
result: true,
|
|
18
17
|
certifications: true,
|
|
18
|
+
options: true,
|
|
19
19
|
})
|
|
20
20
|
.extend({
|
|
21
21
|
themes: zod_1.z
|
|
@@ -25,7 +25,6 @@ exports.criteriaTreeSchema = data_map_1.dataMapSchema
|
|
|
25
25
|
.array(certification_1.certificationDefinitionSchema)
|
|
26
26
|
.optional()
|
|
27
27
|
.describe("Definitions of the attainable certifications"),
|
|
28
|
-
options: criteria_set_1.criteriaSetOptionsSchema.describe("Configuration options for the criteria set display and behavior"),
|
|
29
28
|
});
|
|
30
29
|
exports.criteriaTreeElementSchema = zod_1.z
|
|
31
30
|
.discriminatedUnion("type", [
|
|
@@ -262,4 +262,11 @@ export declare const dataMapSchema: z.ZodObject<{
|
|
|
262
262
|
value: boolean;
|
|
263
263
|
}), unknown>>;
|
|
264
264
|
certifications: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
265
|
+
options: z.ZodObject<{
|
|
266
|
+
dashboardRenderingType: z.ZodEnum<{
|
|
267
|
+
"per-criteria": "per-criteria";
|
|
268
|
+
"per-task": "per-task";
|
|
269
|
+
}>;
|
|
270
|
+
canExportMatrix: z.ZodBoolean;
|
|
271
|
+
}, z.core.$strip>;
|
|
265
272
|
}, z.core.$strip>;
|
|
@@ -4,6 +4,7 @@ exports.dataMapSchema = exports.elementDataMapSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("./common");
|
|
6
6
|
const task_item_1 = require("./task-item");
|
|
7
|
+
const criteria_set_1 = require("./criteria-set");
|
|
7
8
|
exports.elementDataMapSchema = zod_1.z
|
|
8
9
|
.record(zod_1.z.string(), common_1.elementDataSchema.or(task_item_1.taskItemDataSchema));
|
|
9
10
|
exports.dataMapSchema = zod_1.z
|
|
@@ -19,5 +20,6 @@ exports.dataMapSchema = zod_1.z
|
|
|
19
20
|
.array(zod_1.z.string())
|
|
20
21
|
.optional()
|
|
21
22
|
.describe("The attained certifications"),
|
|
23
|
+
options: criteria_set_1.criteriaSetOptionsSchema.describe("Configuration options for the criteria set display and behavior"),
|
|
22
24
|
})
|
|
23
25
|
.describe("DataMap");
|
package/package.json
CHANGED