@openframe-org/criteria-set-protocol 2.0.7-beta.1 → 2.0.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/certification.d.ts +128 -128
- package/dist/v1/schemas/certification.js +6 -6
- package/dist/v1/schemas/common.d.ts +88 -88
- package/dist/v1/schemas/common.js +14 -14
- package/dist/v1/schemas/criteria-tree.d.ts +3601 -3601
- package/dist/v1/schemas/criteria-tree.js +1 -1
- package/dist/v1/schemas/criterion.d.ts +659 -659
- package/dist/v1/schemas/criterion.js +3 -3
- package/dist/v1/schemas/data-map.d.ts +3 -3
- package/dist/v1/schemas/data-map.js +1 -1
- package/dist/v1/schemas/metadata.d.ts +29 -29
- package/dist/v1/schemas/metadata.js +6 -6
- package/dist/v1/schemas/request/matrix-body-schema.d.ts +12 -12
- package/dist/v1/schemas/request/matrix-body-schema.js +5 -5
- package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +12 -12
- package/dist/v1/schemas/request/matrix-request-body-schema.js +5 -5
- package/dist/v1/schemas/request/tree-and-data-body-schema.d.ts +11 -11
- package/dist/v1/schemas/request/tree-and-data-body-schema.js +4 -4
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +11 -11
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +4 -4
- package/dist/v1/schemas/response.d.ts +23 -23
- package/dist/v1/schemas/task-group.d.ts +465 -465
- package/dist/v1/schemas/task-group.js +4 -4
- package/dist/v1/schemas/task-item.d.ts +297 -297
- package/dist/v1/schemas/task-item.js +14 -14
- package/dist/v1/schemas/task.d.ts +299 -299
- package/dist/v1/schemas/task.js +3 -3
- package/dist/v1/schemas/theme.d.ts +881 -881
- package/dist/v1/schemas/theme.js +3 -3
- package/dist/v1/utils.d.ts +298 -298
- package/package.json +1 -1
|
@@ -5,10 +5,10 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const common_1 = require("./common");
|
|
6
6
|
exports.taskItemValueMapSchema = zod_1.z.record(zod_1.z.string(), common_1.taskItemValueSchema);
|
|
7
7
|
exports.pointOptionSchema = zod_1.z.object({
|
|
8
|
-
id: zod_1.z.string().
|
|
8
|
+
id: zod_1.z.string().optional(),
|
|
9
9
|
text: zod_1.z.string(),
|
|
10
|
-
intro: zod_1.z.string().
|
|
11
|
-
outro: zod_1.z.string().
|
|
10
|
+
intro: zod_1.z.string().optional(),
|
|
11
|
+
outro: zod_1.z.string().optional(),
|
|
12
12
|
value: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.null()]),
|
|
13
13
|
});
|
|
14
14
|
const abstractDefinitionSchema = zod_1.z.object({
|
|
@@ -24,9 +24,9 @@ exports.selectMultipleTypeSchema = abstractDefinitionSchema.extend({
|
|
|
24
24
|
});
|
|
25
25
|
exports.numberTypeSchema = abstractDefinitionSchema.extend({
|
|
26
26
|
type: zod_1.z.literal("number"),
|
|
27
|
-
minimum: zod_1.z.number().
|
|
28
|
-
maximum: zod_1.z.number().
|
|
29
|
-
step: zod_1.z.number().
|
|
27
|
+
minimum: zod_1.z.number().optional(),
|
|
28
|
+
maximum: zod_1.z.number().optional(),
|
|
29
|
+
step: zod_1.z.number().optional(),
|
|
30
30
|
});
|
|
31
31
|
exports.booleanTypeSchema = abstractDefinitionSchema.extend({
|
|
32
32
|
type: zod_1.z.literal("boolean"),
|
|
@@ -35,7 +35,7 @@ exports.booleanTypeSchema = abstractDefinitionSchema.extend({
|
|
|
35
35
|
true: zod_1.z.string(),
|
|
36
36
|
false: zod_1.z.string(),
|
|
37
37
|
})
|
|
38
|
-
.
|
|
38
|
+
.optional(),
|
|
39
39
|
});
|
|
40
40
|
exports.taskItemDefinitionSchema = zod_1.z.discriminatedUnion("type", [
|
|
41
41
|
exports.selectSingleTypeSchema,
|
|
@@ -44,17 +44,17 @@ exports.taskItemDefinitionSchema = zod_1.z.discriminatedUnion("type", [
|
|
|
44
44
|
exports.booleanTypeSchema,
|
|
45
45
|
]);
|
|
46
46
|
exports.taskItemDataSchema = common_1.elementDataSchema.extend({
|
|
47
|
-
valueReference: common_1.taskItemValueSchema.
|
|
47
|
+
valueReference: common_1.taskItemValueSchema.optional(),
|
|
48
48
|
});
|
|
49
49
|
exports.taskItemOptionsSchema = zod_1.z.object({
|
|
50
|
-
hideCode: zod_1.z.boolean().
|
|
50
|
+
hideCode: zod_1.z.boolean().optional(),
|
|
51
51
|
});
|
|
52
52
|
exports.taskItemSchema = common_1.abstractElementSchema.extend({
|
|
53
53
|
type: zod_1.z.literal("task-item"),
|
|
54
|
-
data: exports.taskItemDataSchema.
|
|
54
|
+
data: exports.taskItemDataSchema.optional(),
|
|
55
55
|
definition: exports.taskItemDefinitionSchema,
|
|
56
|
-
description: zod_1.z.string().
|
|
57
|
-
providedData: exports.taskItemValueMapSchema.
|
|
58
|
-
valueReference: common_1.taskItemValueSchema.
|
|
59
|
-
options: exports.taskItemOptionsSchema.
|
|
56
|
+
description: zod_1.z.string().optional(),
|
|
57
|
+
providedData: exports.taskItemValueMapSchema.optional(),
|
|
58
|
+
valueReference: common_1.taskItemValueSchema.optional(),
|
|
59
|
+
options: exports.taskItemOptionsSchema.optional(),
|
|
60
60
|
}).omit({ title: true });
|