@openframe-org/criteria-set-protocol 3.0.0-alpha.10 → 3.0.0-alpha.12
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 +1 -1
- package/dist/v1/schemas/common.js +1 -1
- package/dist/v1/schemas/criteria-tree.d.ts +718 -12352
- package/dist/v1/schemas/criterion.d.ts +29 -1968
- package/dist/v1/schemas/criterion.js +1 -1
- package/dist/v1/schemas/data-map.d.ts +28 -3906
- package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +0 -1
- package/dist/v1/schemas/request/matrix-request-body-schema.js +0 -4
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +0 -1
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +2 -6
- package/dist/v1/schemas/task-group.d.ts +25 -1964
- package/dist/v1/schemas/task-item.d.ts +51 -3929
- package/dist/v1/schemas/task-item.js +15 -14
- package/dist/v1/schemas/task.d.ts +26 -1965
- package/dist/v1/schemas/task.js +1 -1
- package/dist/v1/schemas/theme.d.ts +31 -1970
- package/dist/v1/schemas/theme.js +1 -1
- package/dist/v1/services/criteria-set.service.d.ts +0 -1
- package/dist/v1/utils.js +11 -4
- 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,52 +69,53 @@ 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
|
|
76
76
|
.literal("number")
|
|
77
|
-
.nullable()
|
|
78
77
|
.describe("Indicates a numeric type task item"),
|
|
79
78
|
minimum: zod_1.z.number().nullable().describe("Minimum allowed value"),
|
|
80
79
|
maximum: zod_1.z.number().nullable().describe("Maximum allowed value"),
|
|
81
80
|
step: zod_1.z.number().nullable().describe("Step size for numeric input"),
|
|
82
|
-
defaultValue: zod_1.z.number().nullable().describe("Default numeric value")
|
|
81
|
+
defaultValue: zod_1.z.number().nullable().describe("Default numeric value"),
|
|
83
82
|
});
|
|
84
83
|
exports.booleanTypeSchema = abstractDefinitionSchema.extend({
|
|
85
84
|
type: zod_1.z.literal("boolean").describe("Indicates a boolean type task item"),
|
|
86
85
|
labels: zod_1.z
|
|
87
86
|
.object({
|
|
88
87
|
true: zod_1.z.string().describe("Label for the true value"),
|
|
89
|
-
false: zod_1.z.string().describe("Label for the false value")
|
|
88
|
+
false: zod_1.z.string().describe("Label for the false value"),
|
|
90
89
|
})
|
|
91
90
|
.nullable()
|
|
92
91
|
.describe("Custom labels for boolean values"),
|
|
93
|
-
defaultValue: zod_1.z.boolean().nullable().describe("Default boolean value")
|
|
92
|
+
defaultValue: zod_1.z.boolean().nullable().describe("Default boolean value"),
|
|
94
93
|
});
|
|
95
94
|
exports.taskItemDefinitionSchema = zod_1.z
|
|
96
95
|
.discriminatedUnion("type", [
|
|
97
96
|
exports.selectSingleTypeSchema,
|
|
98
97
|
exports.selectMultipleTypeSchema,
|
|
99
98
|
exports.numberTypeSchema,
|
|
100
|
-
exports.booleanTypeSchema
|
|
99
|
+
exports.booleanTypeSchema,
|
|
101
100
|
])
|
|
102
101
|
.describe("TaskItemDefinition - Defines the type and behavior of a task item");
|
|
103
|
-
exports.taskItemDataSchema =
|
|
102
|
+
exports.taskItemDataSchema = common_1.elementDataSchema
|
|
103
|
+
.and(zod_1.z.object({
|
|
104
104
|
readOnly: zod_1.z
|
|
105
105
|
.boolean()
|
|
106
106
|
.nullable()
|
|
107
107
|
.describe("Whether the element value can be modified"),
|
|
108
108
|
valueReference: common_1.taskItemValueSchema
|
|
109
109
|
.nullable()
|
|
110
|
-
.describe("Reference to a task item value")
|
|
111
|
-
})
|
|
110
|
+
.describe("Reference to a task item value"),
|
|
111
|
+
}))
|
|
112
|
+
.describe("TaskItemData - The data associated with a task item");
|
|
112
113
|
exports.taskItemOptionsSchema = zod_1.z
|
|
113
114
|
.object({
|
|
114
115
|
excludeFromTargets: zod_1.z
|
|
115
116
|
.boolean()
|
|
116
117
|
.nullable()
|
|
117
|
-
.describe("Whether to exclude this task item from the targets page altogether")
|
|
118
|
+
.describe("Whether to exclude this task item from the targets page altogether"),
|
|
118
119
|
})
|
|
119
120
|
.describe("TaskItemOptions - Options for configuring the display and behavior of a task item");
|
|
120
121
|
exports.taskItemSchema = common_1.abstractElementSchema
|
|
@@ -131,5 +132,5 @@ exports.taskItemSchema = common_1.abstractElementSchema
|
|
|
131
132
|
.string()
|
|
132
133
|
.nullable()
|
|
133
134
|
.describe("Additional detailed description of the task item"),
|
|
134
|
-
options: exports.taskItemOptionsSchema.describe("Configuration options for the task item display and behavior")
|
|
135
|
+
options: exports.taskItemOptionsSchema.describe("Configuration options for the task item display and behavior"),
|
|
135
136
|
});
|