@openframe-org/criteria-set-protocol 2.0.0-beta.4 → 2.0.0-beta.5
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 +8 -8
- package/dist/v1/schemas/common.js +1 -2
- package/dist/v1/schemas/criteria-tree.d.ts +128 -128
- package/dist/v1/schemas/criterion.d.ts +24 -24
- package/dist/v1/schemas/task-group.d.ts +15 -15
- package/dist/v1/schemas/task-item.d.ts +3 -3
- package/dist/v1/schemas/task.d.ts +8 -8
- package/dist/v1/schemas/theme.d.ts +35 -35
- package/dist/v1/utils.d.ts +10 -10
- package/package.json +1 -1
|
@@ -13,13 +13,13 @@ export declare const colorSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
13
13
|
blue: number;
|
|
14
14
|
}>]>;
|
|
15
15
|
export declare const elementDataSchema: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
|
16
|
-
value: z.ZodOptional<z.
|
|
16
|
+
value: z.ZodOptional<z.ZodAny>;
|
|
17
17
|
text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
value?:
|
|
19
|
+
value?: any;
|
|
20
20
|
text?: string | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
value?:
|
|
22
|
+
value?: any;
|
|
23
23
|
text?: string | undefined;
|
|
24
24
|
}>>;
|
|
25
25
|
export declare const criteriaTreeElementTypeSchema: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
@@ -78,13 +78,13 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
78
78
|
text: string;
|
|
79
79
|
}>]>, "many">>;
|
|
80
80
|
data: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
|
81
|
-
value: z.ZodOptional<z.
|
|
81
|
+
value: z.ZodOptional<z.ZodAny>;
|
|
82
82
|
text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
value?:
|
|
84
|
+
value?: any;
|
|
85
85
|
text?: string | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
value?:
|
|
87
|
+
value?: any;
|
|
88
88
|
text?: string | undefined;
|
|
89
89
|
}>>>;
|
|
90
90
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
@@ -93,7 +93,7 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
93
93
|
code: string;
|
|
94
94
|
title: string;
|
|
95
95
|
data?: (Record<string, any> & {
|
|
96
|
-
value?:
|
|
96
|
+
value?: any;
|
|
97
97
|
text?: string | undefined;
|
|
98
98
|
}) | undefined;
|
|
99
99
|
tags?: string[] | undefined;
|
|
@@ -118,7 +118,7 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
118
118
|
code: string;
|
|
119
119
|
title: string;
|
|
120
120
|
data?: (Record<string, any> & {
|
|
121
|
-
value?:
|
|
121
|
+
value?: any;
|
|
122
122
|
text?: string | undefined;
|
|
123
123
|
}) | undefined;
|
|
124
124
|
tags?: string[] | undefined;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.abstractElementSchema = exports.criteriaTreeElementTypeSchema = exports.elementDataSchema = exports.colorSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const task_item_1 = require("./task-item");
|
|
6
5
|
const documentation_1 = require("./documentation");
|
|
7
6
|
exports.colorSchema = zod_1.z.union([
|
|
8
7
|
zod_1.z.string(),
|
|
@@ -14,7 +13,7 @@ exports.colorSchema = zod_1.z.union([
|
|
|
14
13
|
]);
|
|
15
14
|
exports.elementDataSchema = zod_1.z.intersection(zod_1.z.record(zod_1.z.string(), zod_1.z.any()), zod_1.z
|
|
16
15
|
.object({
|
|
17
|
-
value:
|
|
16
|
+
value: zod_1.z.any(),
|
|
18
17
|
text: zod_1.z.string().optional(),
|
|
19
18
|
})
|
|
20
19
|
.partial());
|