@openframe-org/criteria-set-protocol 2.2.7 → 2.2.8

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.
@@ -44,18 +44,18 @@ exports.elementDataSchema = zod_1.z
44
44
  .optional()
45
45
  .describe("Minimum allowed value (exclusive)")
46
46
  })
47
- .and(zod_1.z.union([zod_1.z.object({
48
- type: zod_1.z
49
- .enum(["number", "percentage"])
50
- .optional()
51
- .describe("Type of data"),
52
- value: zod_1.z.number().optional().describe("Value of the element"),
53
- }), zod_1.z.object({
54
- type: zod_1.z
55
- .literal('boolean')
56
- .describe("Type of data"),
57
- value: zod_1.z.boolean().optional().describe("Value of the element"),
58
- })]))
47
+ .and(zod_1.z.object({
48
+ type: zod_1.z
49
+ .enum(["number", "percentage"])
50
+ .optional()
51
+ .describe("Type of data"),
52
+ value: zod_1.z.number().optional().describe("Value of the element"),
53
+ }).or(zod_1.z.object({
54
+ type: zod_1.z
55
+ .literal('boolean')
56
+ .describe("Type of data"),
57
+ value: zod_1.z.boolean().optional().describe("Value of the element"),
58
+ })))
59
59
  .describe("ElementData - Element data containing value constraints and metadata");
60
60
  exports.criteriaTreeElementTypeSchema = zod_1.z
61
61
  .enum(["theme", "criterion", "task-group", "task", "task-item"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "A protocol and tools for defining and working with criteria sets",
5
5
  "private": false,
6
6
  "author": "Andrés Angulo <aa@openframe.org>",