@openframe-org/criteria-set-protocol 2.2.11 → 2.2.13

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.
@@ -23,25 +23,25 @@ export declare const elementDataSchema: z.ZodObject<{
23
23
  minimumValue: z.ZodOptional<z.ZodNumber>;
24
24
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
25
25
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
26
- }, "strip", z.ZodTypeAny, {
27
- type?: "number" | "boolean" | "percentage" | undefined;
28
- total?: number | undefined;
29
- value?: number | boolean | undefined;
30
- text?: string | undefined;
31
- maximumValue?: number | undefined;
32
- minimumValue?: number | undefined;
33
- exclusiveMaximum?: number | undefined;
34
- exclusiveMinimum?: number | undefined;
35
- }, {
36
- type?: "number" | "boolean" | "percentage" | undefined;
37
- total?: number | undefined;
38
- value?: number | boolean | undefined;
39
- text?: string | undefined;
40
- maximumValue?: number | undefined;
41
- minimumValue?: number | undefined;
42
- exclusiveMaximum?: number | undefined;
43
- exclusiveMinimum?: number | undefined;
44
- }>;
26
+ }, "strip", z.ZodAny, z.objectOutputType<{
27
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
28
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
29
+ text: z.ZodOptional<z.ZodString>;
30
+ total: z.ZodOptional<z.ZodNumber>;
31
+ maximumValue: z.ZodOptional<z.ZodNumber>;
32
+ minimumValue: z.ZodOptional<z.ZodNumber>;
33
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
34
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
35
+ }, z.ZodAny, "strip">, z.objectInputType<{
36
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
37
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
38
+ text: z.ZodOptional<z.ZodString>;
39
+ total: z.ZodOptional<z.ZodNumber>;
40
+ maximumValue: z.ZodOptional<z.ZodNumber>;
41
+ minimumValue: z.ZodOptional<z.ZodNumber>;
42
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
43
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
44
+ }, z.ZodAny, "strip">>;
45
45
  export declare const criteriaTreeElementTypeSchema: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
46
46
  export declare const abstractElementSchema: z.ZodObject<{
47
47
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
@@ -104,41 +104,41 @@ export declare const abstractElementSchema: z.ZodObject<{
104
104
  minimumValue: z.ZodOptional<z.ZodNumber>;
105
105
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
106
106
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
107
- }, "strip", z.ZodTypeAny, {
108
- type?: "number" | "boolean" | "percentage" | undefined;
109
- total?: number | undefined;
110
- value?: number | boolean | undefined;
111
- text?: string | undefined;
112
- maximumValue?: number | undefined;
113
- minimumValue?: number | undefined;
114
- exclusiveMaximum?: number | undefined;
115
- exclusiveMinimum?: number | undefined;
116
- }, {
117
- type?: "number" | "boolean" | "percentage" | undefined;
118
- total?: number | undefined;
119
- value?: number | boolean | undefined;
120
- text?: string | undefined;
121
- maximumValue?: number | undefined;
122
- minimumValue?: number | undefined;
123
- exclusiveMaximum?: number | undefined;
124
- exclusiveMinimum?: number | undefined;
125
- }>>;
107
+ }, "strip", z.ZodAny, z.objectOutputType<{
108
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
109
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
110
+ text: z.ZodOptional<z.ZodString>;
111
+ total: z.ZodOptional<z.ZodNumber>;
112
+ maximumValue: z.ZodOptional<z.ZodNumber>;
113
+ minimumValue: z.ZodOptional<z.ZodNumber>;
114
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
115
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
116
+ }, z.ZodAny, "strip">, z.objectInputType<{
117
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
118
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
119
+ text: z.ZodOptional<z.ZodString>;
120
+ total: z.ZodOptional<z.ZodNumber>;
121
+ maximumValue: z.ZodOptional<z.ZodNumber>;
122
+ minimumValue: z.ZodOptional<z.ZodNumber>;
123
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
124
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
125
+ }, z.ZodAny, "strip">>>;
126
126
  sortOrder: z.ZodOptional<z.ZodNumber>;
127
127
  }, "strip", z.ZodTypeAny, {
128
128
  code: string;
129
129
  type: "theme" | "criterion" | "task-group" | "task" | "task-item";
130
130
  title: string;
131
131
  longFormTitle: string;
132
- data?: {
133
- type?: "number" | "boolean" | "percentage" | undefined;
134
- total?: number | undefined;
135
- value?: number | boolean | undefined;
136
- text?: string | undefined;
137
- maximumValue?: number | undefined;
138
- minimumValue?: number | undefined;
139
- exclusiveMaximum?: number | undefined;
140
- exclusiveMinimum?: number | undefined;
141
- } | undefined;
132
+ data?: z.objectOutputType<{
133
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
134
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
135
+ text: z.ZodOptional<z.ZodString>;
136
+ total: z.ZodOptional<z.ZodNumber>;
137
+ maximumValue: z.ZodOptional<z.ZodNumber>;
138
+ minimumValue: z.ZodOptional<z.ZodNumber>;
139
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
140
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
141
+ }, z.ZodAny, "strip"> | undefined;
142
142
  tags?: string[] | undefined;
143
143
  documentation?: ({
144
144
  type: "pdf";
@@ -161,16 +161,16 @@ export declare const abstractElementSchema: z.ZodObject<{
161
161
  type: "theme" | "criterion" | "task-group" | "task" | "task-item";
162
162
  title: string;
163
163
  longFormTitle: string;
164
- data?: {
165
- type?: "number" | "boolean" | "percentage" | undefined;
166
- total?: number | undefined;
167
- value?: number | boolean | undefined;
168
- text?: string | undefined;
169
- maximumValue?: number | undefined;
170
- minimumValue?: number | undefined;
171
- exclusiveMaximum?: number | undefined;
172
- exclusiveMinimum?: number | undefined;
173
- } | undefined;
164
+ data?: z.objectInputType<{
165
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
166
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
167
+ text: z.ZodOptional<z.ZodString>;
168
+ total: z.ZodOptional<z.ZodNumber>;
169
+ maximumValue: z.ZodOptional<z.ZodNumber>;
170
+ minimumValue: z.ZodOptional<z.ZodNumber>;
171
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
172
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
173
+ }, z.ZodAny, "strip"> | undefined;
174
174
  tags?: string[] | undefined;
175
175
  documentation?: ({
176
176
  type: "pdf";
@@ -234,6 +234,13 @@ export declare const criteriaTreeOptionsSchema: z.ZodObject<{
234
234
  }, {
235
235
  criteriaTreeElementTextFormat: string;
236
236
  }>;
237
+ export declare const reportOptionsSchema: z.ZodObject<{
238
+ reportTextFormat: z.ZodOptional<z.ZodString>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ reportTextFormat?: string | undefined;
241
+ }, {
242
+ reportTextFormat?: string | undefined;
243
+ }>;
237
244
  export declare const treeResultSchema: z.ZodObject<{
238
245
  type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
239
246
  value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
@@ -243,22 +250,22 @@ export declare const treeResultSchema: z.ZodObject<{
243
250
  minimumValue: z.ZodOptional<z.ZodNumber>;
244
251
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
245
252
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
246
- }, "strip", z.ZodTypeAny, {
247
- type?: "number" | "boolean" | "percentage" | undefined;
248
- total?: number | undefined;
249
- value?: number | boolean | undefined;
250
- text?: string | undefined;
251
- maximumValue?: number | undefined;
252
- minimumValue?: number | undefined;
253
- exclusiveMaximum?: number | undefined;
254
- exclusiveMinimum?: number | undefined;
255
- }, {
256
- type?: "number" | "boolean" | "percentage" | undefined;
257
- total?: number | undefined;
258
- value?: number | boolean | undefined;
259
- text?: string | undefined;
260
- maximumValue?: number | undefined;
261
- minimumValue?: number | undefined;
262
- exclusiveMaximum?: number | undefined;
263
- exclusiveMinimum?: number | undefined;
264
- }>;
253
+ }, "strip", z.ZodAny, z.objectOutputType<{
254
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
255
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
256
+ text: z.ZodOptional<z.ZodString>;
257
+ total: z.ZodOptional<z.ZodNumber>;
258
+ maximumValue: z.ZodOptional<z.ZodNumber>;
259
+ minimumValue: z.ZodOptional<z.ZodNumber>;
260
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
261
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
262
+ }, z.ZodAny, "strip">, z.objectInputType<{
263
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
264
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
265
+ text: z.ZodOptional<z.ZodString>;
266
+ total: z.ZodOptional<z.ZodNumber>;
267
+ maximumValue: z.ZodOptional<z.ZodNumber>;
268
+ minimumValue: z.ZodOptional<z.ZodNumber>;
269
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
270
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
271
+ }, z.ZodAny, "strip">>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.treeResultSchema = exports.criteriaTreeOptionsSchema = exports.documentTreeOptionsSchema = exports.breadcrumbOptionsSchema = exports.abstractElementSchema = exports.criteriaTreeElementTypeSchema = exports.elementDataSchema = exports.taskItemValueSchema = exports.taskItemScalarValueSchema = exports.colorSchema = void 0;
3
+ exports.treeResultSchema = exports.reportOptionsSchema = exports.criteriaTreeOptionsSchema = exports.documentTreeOptionsSchema = exports.breadcrumbOptionsSchema = exports.abstractElementSchema = exports.criteriaTreeElementTypeSchema = exports.elementDataSchema = exports.taskItemValueSchema = exports.taskItemScalarValueSchema = exports.colorSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const documentation_1 = require("./documentation");
6
6
  exports.colorSchema = zod_1.z
@@ -49,6 +49,7 @@ exports.elementDataSchema = zod_1.z
49
49
  .optional()
50
50
  .describe("Minimum allowed value (exclusive)")
51
51
  })
52
+ .catchall(zod_1.z.any())
52
53
  .describe("ElementData - Element data containing value constraints and metadata");
53
54
  exports.criteriaTreeElementTypeSchema = zod_1.z
54
55
  .enum(["theme", "criterion", "task-group", "task", "task-item"])
@@ -113,4 +114,11 @@ exports.criteriaTreeOptionsSchema = zod_1.z
113
114
  .string()
114
115
  .describe("The format of the criteria tree element text, use ':code:' and ':title:' to define where the code and/or title should be inserted")
115
116
  });
117
+ exports.reportOptionsSchema = zod_1.z
118
+ .object({
119
+ reportTextFormat: zod_1.z
120
+ .string()
121
+ .optional()
122
+ .describe("The format of the report row text, use ':code:' and ':title:' to define where the code and/or title should be inserted, if not provided only the title will be rendered")
123
+ });
116
124
  exports.treeResultSchema = exports.elementDataSchema.describe("TreeResult - The result of the evaluation of a criteria set");