@openframe-org/criteria-set-protocol 3.0.0-alpha.1 → 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.
@@ -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,44 +79,42 @@ 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 = common_1.elementDataSchema
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
109
  .nullable()
111
- .describe("Reference to a task item value"),
112
- }))
113
- .describe("TaskItemData - The data associated with a task item");
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
116
  .nullable()
119
- .describe("Whether to exclude this task item from the targets page altogether"),
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
@@ -133,5 +131,5 @@ exports.taskItemSchema = common_1.abstractElementSchema
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
  });