@openframe-org/criteria-set-protocol 3.0.0-alpha.10 → 3.0.0-alpha.11
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-tree.d.ts +707 -12341
- package/dist/v1/schemas/criterion.d.ts +23 -1962
- package/dist/v1/schemas/data-map.d.ts +28 -3906
- package/dist/v1/schemas/task-group.d.ts +23 -1962
- package/dist/v1/schemas/task-item.d.ts +48 -3926
- package/dist/v1/schemas/task-item.js +15 -13
- package/dist/v1/schemas/task.d.ts +23 -1962
- package/dist/v1/schemas/theme.d.ts +23 -1962
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ exports.pointOptionSchema = zod_1.z.object({
|
|
|
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
|
|
@@ -32,7 +32,7 @@ const abstractDefinitionSchema = zod_1.z.object({
|
|
|
32
32
|
readOnly: zod_1.z
|
|
33
33
|
.boolean()
|
|
34
34
|
.nullable()
|
|
35
|
-
.describe("Whether the task item is read-only")
|
|
35
|
+
.describe("Whether the task item is read-only"),
|
|
36
36
|
});
|
|
37
37
|
exports.selectSingleTypeSchema = abstractDefinitionSchema.extend({
|
|
38
38
|
type: zod_1.z
|
|
@@ -49,7 +49,7 @@ exports.selectSingleTypeSchema = abstractDefinitionSchema.extend({
|
|
|
49
49
|
options: zod_1.z
|
|
50
50
|
.array(exports.pointOptionSchema)
|
|
51
51
|
.describe("Available options for selection"),
|
|
52
|
-
defaultValue: zod_1.z.string().nullable().describe("Default selected value")
|
|
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
|
|
@@ -69,7 +69,7 @@ exports.selectMultipleTypeSchema = abstractDefinitionSchema.extend({
|
|
|
69
69
|
defaultValue: zod_1.z
|
|
70
70
|
.array(zod_1.z.string())
|
|
71
71
|
.nullable()
|
|
72
|
-
.describe("Default selected values")
|
|
72
|
+
.describe("Default selected values"),
|
|
73
73
|
});
|
|
74
74
|
exports.numberTypeSchema = abstractDefinitionSchema.extend({
|
|
75
75
|
type: zod_1.z
|
|
@@ -79,42 +79,44 @@ exports.numberTypeSchema = abstractDefinitionSchema.extend({
|
|
|
79
79
|
minimum: zod_1.z.number().nullable().describe("Minimum allowed value"),
|
|
80
80
|
maximum: zod_1.z.number().nullable().describe("Maximum allowed value"),
|
|
81
81
|
step: zod_1.z.number().nullable().describe("Step size for numeric input"),
|
|
82
|
-
defaultValue: zod_1.z.number().nullable().describe("Default numeric value")
|
|
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().nullable().describe("Default boolean value")
|
|
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 =
|
|
103
|
+
exports.taskItemDataSchema = common_1.elementDataSchema
|
|
104
|
+
.and(zod_1.z.object({
|
|
104
105
|
readOnly: zod_1.z
|
|
105
106
|
.boolean()
|
|
106
107
|
.nullable()
|
|
107
108
|
.describe("Whether the element value can be modified"),
|
|
108
109
|
valueReference: common_1.taskItemValueSchema
|
|
109
110
|
.nullable()
|
|
110
|
-
.describe("Reference to a task item value")
|
|
111
|
-
})
|
|
111
|
+
.describe("Reference to a task item value"),
|
|
112
|
+
}))
|
|
113
|
+
.describe("TaskItemData - The data associated with a task item");
|
|
112
114
|
exports.taskItemOptionsSchema = zod_1.z
|
|
113
115
|
.object({
|
|
114
116
|
excludeFromTargets: zod_1.z
|
|
115
117
|
.boolean()
|
|
116
118
|
.nullable()
|
|
117
|
-
.describe("Whether to exclude this task item from the targets page altogether")
|
|
119
|
+
.describe("Whether to exclude this task item from the targets page altogether"),
|
|
118
120
|
})
|
|
119
121
|
.describe("TaskItemOptions - Options for configuring the display and behavior of a task item");
|
|
120
122
|
exports.taskItemSchema = common_1.abstractElementSchema
|
|
@@ -131,5 +133,5 @@ exports.taskItemSchema = common_1.abstractElementSchema
|
|
|
131
133
|
.string()
|
|
132
134
|
.nullable()
|
|
133
135
|
.describe("Additional detailed description of the task item"),
|
|
134
|
-
options: exports.taskItemOptionsSchema.describe("Configuration options for the task item display and behavior")
|
|
136
|
+
options: exports.taskItemOptionsSchema.describe("Configuration options for the task item display and behavior"),
|
|
135
137
|
});
|