@openframe-org/criteria-set-protocol 2.5.0 → 3.0.0-alpha.10
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 +86 -44
- package/dist/v1/schemas/certification.js +29 -9
- package/dist/v1/schemas/common.d.ts +66 -51
- package/dist/v1/schemas/common.js +38 -35
- package/dist/v1/schemas/criteria-tree.d.ts +12413 -624
- package/dist/v1/schemas/criteria-tree.js +1 -1
- package/dist/v1/schemas/criterion.d.ts +2083 -116
- package/dist/v1/schemas/criterion.js +1 -1
- package/dist/v1/schemas/data-map.d.ts +3982 -75
- package/dist/v1/schemas/data-map.js +1 -1
- package/dist/v1/schemas/metadata.d.ts +6 -10
- package/dist/v1/schemas/metadata.js +4 -15
- package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +5 -5
- package/dist/v1/schemas/request/matrix-request-body-schema.js +5 -5
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +4 -4
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +4 -4
- package/dist/v1/schemas/response.d.ts +4 -7
- package/dist/v1/schemas/task-group.d.ts +2050 -90
- package/dist/v1/schemas/task-group.js +2 -2
- package/dist/v1/schemas/task-item.d.ts +4016 -124
- package/dist/v1/schemas/task-item.js +33 -35
- package/dist/v1/schemas/task.d.ts +2025 -72
- package/dist/v1/schemas/task.js +2 -2
- package/dist/v1/schemas/theme.d.ts +2113 -139
- package/dist/v1/schemas/theme.js +2 -2
- package/dist/v1/utils.js +4 -7
- package/package.json +1 -1
|
@@ -9,30 +9,30 @@ exports.taskItemValueMapSchema = zod_1.z
|
|
|
9
9
|
exports.pointOptionSchema = zod_1.z.object({
|
|
10
10
|
id: zod_1.z
|
|
11
11
|
.string()
|
|
12
|
-
.
|
|
12
|
+
.nullable()
|
|
13
13
|
.describe("Optional unique identifier for the point option"),
|
|
14
14
|
text: zod_1.z.string().describe("Display text for the point option"),
|
|
15
15
|
intro: zod_1.z
|
|
16
16
|
.string()
|
|
17
|
-
.
|
|
17
|
+
.nullable()
|
|
18
18
|
.describe("Optional introductory text for the point option"),
|
|
19
19
|
outro: zod_1.z
|
|
20
20
|
.string()
|
|
21
|
-
.
|
|
21
|
+
.nullable()
|
|
22
22
|
.describe("Optional concluding text for the point option"),
|
|
23
23
|
value: zod_1.z
|
|
24
24
|
.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.null()])
|
|
25
|
-
.describe("The value associated with this point option")
|
|
25
|
+
.describe("The value associated with this point option")
|
|
26
26
|
});
|
|
27
27
|
const abstractDefinitionSchema = zod_1.z.object({
|
|
28
28
|
type: zod_1.z
|
|
29
29
|
.enum(["select-single", "select-multiple", "number", "boolean"])
|
|
30
30
|
.describe("The type of task item definition"),
|
|
31
|
-
label: zod_1.z.string().
|
|
31
|
+
label: zod_1.z.string().nullable().describe("Optional label for the task item"),
|
|
32
32
|
readOnly: zod_1.z
|
|
33
33
|
.boolean()
|
|
34
|
-
.
|
|
35
|
-
.describe("Whether the task item is read-only")
|
|
34
|
+
.nullable()
|
|
35
|
+
.describe("Whether the task item is read-only")
|
|
36
36
|
});
|
|
37
37
|
exports.selectSingleTypeSchema = abstractDefinitionSchema.extend({
|
|
38
38
|
type: zod_1.z
|
|
@@ -40,16 +40,16 @@ exports.selectSingleTypeSchema = abstractDefinitionSchema.extend({
|
|
|
40
40
|
.describe("Indicates a single-selection type task item"),
|
|
41
41
|
minimum: zod_1.z
|
|
42
42
|
.number()
|
|
43
|
-
.
|
|
43
|
+
.nullable()
|
|
44
44
|
.describe("Minimum value, used when treating this task item as an interpolation"),
|
|
45
45
|
maximum: zod_1.z
|
|
46
46
|
.number()
|
|
47
|
-
.
|
|
47
|
+
.nullable()
|
|
48
48
|
.describe("Maximum value, used when treating this task item as an interpolation"),
|
|
49
49
|
options: zod_1.z
|
|
50
50
|
.array(exports.pointOptionSchema)
|
|
51
51
|
.describe("Available options for selection"),
|
|
52
|
-
defaultValue: zod_1.z.string().
|
|
52
|
+
defaultValue: zod_1.z.string().nullable().describe("Default selected value")
|
|
53
53
|
});
|
|
54
54
|
exports.selectMultipleTypeSchema = abstractDefinitionSchema.extend({
|
|
55
55
|
type: zod_1.z
|
|
@@ -57,66 +57,64 @@ exports.selectMultipleTypeSchema = abstractDefinitionSchema.extend({
|
|
|
57
57
|
.describe("Indicates a multiple-selection type task item"),
|
|
58
58
|
minimum: zod_1.z
|
|
59
59
|
.number()
|
|
60
|
-
.
|
|
60
|
+
.nullable()
|
|
61
61
|
.describe("Minimum value, used when treating this task item as an interpolation"),
|
|
62
62
|
maximum: zod_1.z
|
|
63
63
|
.number()
|
|
64
|
-
.
|
|
64
|
+
.nullable()
|
|
65
65
|
.describe("Maximum value, used when treating this task item as an interpolation"),
|
|
66
66
|
options: zod_1.z
|
|
67
67
|
.array(exports.pointOptionSchema)
|
|
68
68
|
.describe("Available options for selection"),
|
|
69
69
|
defaultValue: zod_1.z
|
|
70
70
|
.array(zod_1.z.string())
|
|
71
|
-
.
|
|
72
|
-
.describe("Default selected values")
|
|
71
|
+
.nullable()
|
|
72
|
+
.describe("Default selected values")
|
|
73
73
|
});
|
|
74
74
|
exports.numberTypeSchema = abstractDefinitionSchema.extend({
|
|
75
75
|
type: zod_1.z
|
|
76
76
|
.literal("number")
|
|
77
|
-
.
|
|
77
|
+
.nullable()
|
|
78
78
|
.describe("Indicates a numeric type task item"),
|
|
79
|
-
minimum: zod_1.z.number().
|
|
80
|
-
maximum: zod_1.z.number().
|
|
81
|
-
step: zod_1.z.number().
|
|
82
|
-
defaultValue: zod_1.z.number().
|
|
79
|
+
minimum: zod_1.z.number().nullable().describe("Minimum allowed value"),
|
|
80
|
+
maximum: zod_1.z.number().nullable().describe("Maximum allowed value"),
|
|
81
|
+
step: zod_1.z.number().nullable().describe("Step size for numeric input"),
|
|
82
|
+
defaultValue: zod_1.z.number().nullable().describe("Default numeric value")
|
|
83
83
|
});
|
|
84
84
|
exports.booleanTypeSchema = abstractDefinitionSchema.extend({
|
|
85
85
|
type: zod_1.z.literal("boolean").describe("Indicates a boolean type task item"),
|
|
86
86
|
labels: zod_1.z
|
|
87
87
|
.object({
|
|
88
88
|
true: zod_1.z.string().describe("Label for the true value"),
|
|
89
|
-
false: zod_1.z.string().describe("Label for the false value")
|
|
89
|
+
false: zod_1.z.string().describe("Label for the false value")
|
|
90
90
|
})
|
|
91
|
-
.
|
|
91
|
+
.nullable()
|
|
92
92
|
.describe("Custom labels for boolean values"),
|
|
93
|
-
defaultValue: zod_1.z.boolean().
|
|
93
|
+
defaultValue: zod_1.z.boolean().nullable().describe("Default boolean value")
|
|
94
94
|
});
|
|
95
95
|
exports.taskItemDefinitionSchema = zod_1.z
|
|
96
96
|
.discriminatedUnion("type", [
|
|
97
97
|
exports.selectSingleTypeSchema,
|
|
98
98
|
exports.selectMultipleTypeSchema,
|
|
99
99
|
exports.numberTypeSchema,
|
|
100
|
-
exports.booleanTypeSchema
|
|
100
|
+
exports.booleanTypeSchema
|
|
101
101
|
])
|
|
102
102
|
.describe("TaskItemDefinition - Defines the type and behavior of a task item");
|
|
103
|
-
exports.taskItemDataSchema =
|
|
104
|
-
.and(zod_1.z.object({
|
|
103
|
+
exports.taskItemDataSchema = zod_1.z.object({
|
|
105
104
|
readOnly: zod_1.z
|
|
106
105
|
.boolean()
|
|
107
|
-
.
|
|
106
|
+
.nullable()
|
|
108
107
|
.describe("Whether the element value can be modified"),
|
|
109
108
|
valueReference: common_1.taskItemValueSchema
|
|
110
|
-
.
|
|
111
|
-
.describe("Reference to a task item value")
|
|
112
|
-
}))
|
|
113
|
-
.describe("TaskItemData - The data associated with a task item");
|
|
109
|
+
.nullable()
|
|
110
|
+
.describe("Reference to a task item value")
|
|
111
|
+
}).extend(common_1.elementDataSchema).describe("TaskItemData - The data associated with a task item");
|
|
114
112
|
exports.taskItemOptionsSchema = zod_1.z
|
|
115
113
|
.object({
|
|
116
114
|
excludeFromTargets: zod_1.z
|
|
117
115
|
.boolean()
|
|
118
|
-
.
|
|
119
|
-
.describe("Whether to exclude this task item from the targets page altogether")
|
|
116
|
+
.nullable()
|
|
117
|
+
.describe("Whether to exclude this task item from the targets page altogether")
|
|
120
118
|
})
|
|
121
119
|
.describe("TaskItemOptions - Options for configuring the display and behavior of a task item");
|
|
122
120
|
exports.taskItemSchema = common_1.abstractElementSchema
|
|
@@ -126,12 +124,12 @@ exports.taskItemSchema = common_1.abstractElementSchema
|
|
|
126
124
|
.literal("task-item")
|
|
127
125
|
.describe("Identifies the schema type as a task item"),
|
|
128
126
|
data: exports.taskItemDataSchema
|
|
129
|
-
.
|
|
127
|
+
.nullable()
|
|
130
128
|
.describe("Additional data associated with the task item"),
|
|
131
129
|
definition: exports.taskItemDefinitionSchema.describe("The definition that specifies the type and behavior of the task item"),
|
|
132
130
|
description: zod_1.z
|
|
133
131
|
.string()
|
|
134
|
-
.
|
|
132
|
+
.nullable()
|
|
135
133
|
.describe("Additional detailed description of the task item"),
|
|
136
|
-
options: exports.taskItemOptionsSchema.describe("Configuration options for the task item display and behavior")
|
|
134
|
+
options: exports.taskItemOptionsSchema.describe("Configuration options for the task item display and behavior")
|
|
137
135
|
});
|