@openframe-org/criteria-set-protocol 2.5.0 → 3.0.0-alpha.3

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.
@@ -12,28 +12,28 @@ export declare const themeStyleSchema: z.ZodObject<{
12
12
  }, z.core.$strip>]>;
13
13
  }, z.core.$strip>;
14
14
  export declare const themeOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
15
- hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15
+ hideCodeInReport: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
16
16
  }, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
17
17
  hideFromBreadcrumbs: z.ZodLiteral<true>;
18
- breadcrumbTextFormat: z.ZodOptional<z.ZodNever>;
18
+ breadcrumbTextFormat: z.ZodNullable<z.ZodNever>;
19
19
  }, z.core.$strip>, z.ZodObject<{
20
- hideFromBreadcrumbs: z.ZodDefault<z.ZodOptional<z.ZodLiteral<false>>>;
20
+ hideFromBreadcrumbs: z.ZodDefault<z.ZodNullable<z.ZodLiteral<false>>>;
21
21
  breadcrumbTextFormat: z.ZodString;
22
22
  }, z.core.$strip>]>>, z.ZodUnion<[z.ZodObject<{
23
23
  hideFromDocumentTree: z.ZodLiteral<true>;
24
- documentTreeFolderTextFormat: z.ZodOptional<z.ZodNever>;
24
+ documentTreeFolderTextFormat: z.ZodNullable<z.ZodNever>;
25
25
  }, z.core.$strip>, z.ZodObject<{
26
- hideFromDocumentTree: z.ZodOptional<z.ZodLiteral<false>>;
26
+ hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
27
27
  documentTreeFolderTextFormat: z.ZodString;
28
28
  }, z.core.$strip>]>>, z.ZodObject<{
29
- reportTitleTextFormat: z.ZodOptional<z.ZodString>;
29
+ reportTitleTextFormat: z.ZodNullable<z.ZodString>;
30
30
  }, z.core.$strip>>;
31
31
  export declare const themeSchema: z.ZodObject<{
32
32
  title: z.ZodString;
33
33
  longFormTitle: z.ZodString;
34
34
  code: z.ZodString;
35
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
35
+ tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
36
+ documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
37
37
  label: z.ZodString;
38
38
  text: z.ZodString;
39
39
  type: z.ZodLiteral<"pdf">;
@@ -48,24 +48,22 @@ export declare const themeSchema: z.ZodObject<{
48
48
  type: z.ZodLiteral<"link">;
49
49
  url: z.ZodString;
50
50
  }, z.core.$strip>], "type">>>;
51
- data: z.ZodOptional<z.ZodObject<{
52
- type: z.ZodOptional<z.ZodEnum<{
51
+ data: z.ZodNullable<z.ZodObject<{
52
+ type: z.ZodNullable<z.ZodEnum<{
53
53
  number: "number";
54
54
  boolean: "boolean";
55
55
  percentage: "percentage";
56
56
  }>>;
57
- value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
58
- text: z.ZodOptional<z.ZodString>;
59
- total: z.ZodOptional<z.ZodNumber>;
60
- maximumValue: z.ZodOptional<z.ZodNumber>;
61
- minimumValue: z.ZodOptional<z.ZodNumber>;
62
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
63
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
64
- weight: z.ZodOptional<z.ZodNumber>;
57
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
58
+ text: z.ZodNullable<z.ZodString>;
59
+ total: z.ZodNullable<z.ZodNumber>;
60
+ maximumValue: z.ZodNullable<z.ZodNumber>;
61
+ minimumValue: z.ZodNullable<z.ZodNumber>;
62
+ weight: z.ZodNullable<z.ZodNumber>;
65
63
  }, z.core.$catchall<z.ZodAny>>>;
66
- sortOrder: z.ZodOptional<z.ZodNumber>;
64
+ sortOrder: z.ZodNullable<z.ZodNumber>;
67
65
  type: z.ZodLiteral<"theme">;
68
- style: z.ZodOptional<z.ZodObject<{
66
+ style: z.ZodNullable<z.ZodObject<{
69
67
  primaryColor: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
70
68
  red: z.ZodNumber;
71
69
  green: z.ZodNumber;
@@ -81,8 +79,8 @@ export declare const themeSchema: z.ZodObject<{
81
79
  title: z.ZodString;
82
80
  longFormTitle: z.ZodString;
83
81
  code: z.ZodString;
84
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
82
+ tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
83
+ documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
86
84
  label: z.ZodString;
87
85
  text: z.ZodString;
88
86
  type: z.ZodLiteral<"pdf">;
@@ -97,29 +95,27 @@ export declare const themeSchema: z.ZodObject<{
97
95
  type: z.ZodLiteral<"link">;
98
96
  url: z.ZodString;
99
97
  }, z.core.$strip>], "type">>>;
100
- data: z.ZodOptional<z.ZodObject<{
101
- type: z.ZodOptional<z.ZodEnum<{
98
+ data: z.ZodNullable<z.ZodObject<{
99
+ type: z.ZodNullable<z.ZodEnum<{
102
100
  number: "number";
103
101
  boolean: "boolean";
104
102
  percentage: "percentage";
105
103
  }>>;
106
- value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
107
- text: z.ZodOptional<z.ZodString>;
108
- total: z.ZodOptional<z.ZodNumber>;
109
- maximumValue: z.ZodOptional<z.ZodNumber>;
110
- minimumValue: z.ZodOptional<z.ZodNumber>;
111
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
112
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
113
- weight: z.ZodOptional<z.ZodNumber>;
104
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
105
+ text: z.ZodNullable<z.ZodString>;
106
+ total: z.ZodNullable<z.ZodNumber>;
107
+ maximumValue: z.ZodNullable<z.ZodNumber>;
108
+ minimumValue: z.ZodNullable<z.ZodNumber>;
109
+ weight: z.ZodNullable<z.ZodNumber>;
114
110
  }, z.core.$catchall<z.ZodAny>>>;
115
- sortOrder: z.ZodOptional<z.ZodNumber>;
111
+ sortOrder: z.ZodNullable<z.ZodNumber>;
116
112
  type: z.ZodLiteral<"criterion">;
117
113
  items: z.ZodArray<z.ZodLazy<z.ZodObject<{
118
114
  title: z.ZodString;
119
115
  longFormTitle: z.ZodString;
120
116
  code: z.ZodString;
121
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
122
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
118
+ documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
123
119
  label: z.ZodString;
124
120
  text: z.ZodString;
125
121
  type: z.ZodLiteral<"pdf">;
@@ -134,31 +130,29 @@ export declare const themeSchema: z.ZodObject<{
134
130
  type: z.ZodLiteral<"link">;
135
131
  url: z.ZodString;
136
132
  }, z.core.$strip>], "type">>>;
137
- data: z.ZodOptional<z.ZodObject<{
138
- type: z.ZodOptional<z.ZodEnum<{
133
+ data: z.ZodNullable<z.ZodObject<{
134
+ type: z.ZodNullable<z.ZodEnum<{
139
135
  number: "number";
140
136
  boolean: "boolean";
141
137
  percentage: "percentage";
142
138
  }>>;
143
- value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
144
- text: z.ZodOptional<z.ZodString>;
145
- total: z.ZodOptional<z.ZodNumber>;
146
- maximumValue: z.ZodOptional<z.ZodNumber>;
147
- minimumValue: z.ZodOptional<z.ZodNumber>;
148
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
149
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
150
- weight: z.ZodOptional<z.ZodNumber>;
139
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
140
+ text: z.ZodNullable<z.ZodString>;
141
+ total: z.ZodNullable<z.ZodNumber>;
142
+ maximumValue: z.ZodNullable<z.ZodNumber>;
143
+ minimumValue: z.ZodNullable<z.ZodNumber>;
144
+ weight: z.ZodNullable<z.ZodNumber>;
151
145
  }, z.core.$catchall<z.ZodAny>>>;
152
- sortOrder: z.ZodOptional<z.ZodNumber>;
146
+ sortOrder: z.ZodNullable<z.ZodNumber>;
153
147
  type: z.ZodLiteral<"task-group">;
154
- description: z.ZodOptional<z.ZodString>;
155
- category: z.ZodOptional<z.ZodString>;
148
+ description: z.ZodNullable<z.ZodString>;
149
+ category: z.ZodNullable<z.ZodString>;
156
150
  items: z.ZodArray<z.ZodLazy<z.ZodObject<{
157
151
  title: z.ZodString;
158
152
  longFormTitle: z.ZodString;
159
153
  code: z.ZodString;
160
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
154
+ tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
155
+ documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
162
156
  label: z.ZodString;
163
157
  text: z.ZodString;
164
158
  type: z.ZodLiteral<"pdf">;
@@ -173,28 +167,26 @@ export declare const themeSchema: z.ZodObject<{
173
167
  type: z.ZodLiteral<"link">;
174
168
  url: z.ZodString;
175
169
  }, z.core.$strip>], "type">>>;
176
- data: z.ZodOptional<z.ZodObject<{
177
- type: z.ZodOptional<z.ZodEnum<{
170
+ data: z.ZodNullable<z.ZodObject<{
171
+ type: z.ZodNullable<z.ZodEnum<{
178
172
  number: "number";
179
173
  boolean: "boolean";
180
174
  percentage: "percentage";
181
175
  }>>;
182
- value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
183
- text: z.ZodOptional<z.ZodString>;
184
- total: z.ZodOptional<z.ZodNumber>;
185
- maximumValue: z.ZodOptional<z.ZodNumber>;
186
- minimumValue: z.ZodOptional<z.ZodNumber>;
187
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
188
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
189
- weight: z.ZodOptional<z.ZodNumber>;
176
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
177
+ text: z.ZodNullable<z.ZodString>;
178
+ total: z.ZodNullable<z.ZodNumber>;
179
+ maximumValue: z.ZodNullable<z.ZodNumber>;
180
+ minimumValue: z.ZodNullable<z.ZodNumber>;
181
+ weight: z.ZodNullable<z.ZodNumber>;
190
182
  }, z.core.$catchall<z.ZodAny>>>;
191
- sortOrder: z.ZodOptional<z.ZodNumber>;
183
+ sortOrder: z.ZodNullable<z.ZodNumber>;
192
184
  type: z.ZodLiteral<"task">;
193
- description: z.ZodOptional<z.ZodString>;
185
+ description: z.ZodNullable<z.ZodString>;
194
186
  items: z.ZodArray<z.ZodLazy<z.ZodObject<{
195
187
  code: z.ZodString;
196
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
197
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
188
+ tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
189
+ documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
198
190
  label: z.ZodString;
199
191
  text: z.ZodString;
200
192
  type: z.ZodLiteral<"pdf">;
@@ -209,123 +201,121 @@ export declare const themeSchema: z.ZodObject<{
209
201
  type: z.ZodLiteral<"link">;
210
202
  url: z.ZodString;
211
203
  }, z.core.$strip>], "type">>>;
212
- sortOrder: z.ZodOptional<z.ZodNumber>;
204
+ sortOrder: z.ZodNullable<z.ZodNumber>;
213
205
  type: z.ZodLiteral<"task-item">;
214
- data: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
215
- type: z.ZodOptional<z.ZodEnum<{
206
+ data: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
207
+ type: z.ZodNullable<z.ZodEnum<{
216
208
  number: "number";
217
209
  boolean: "boolean";
218
210
  percentage: "percentage";
219
211
  }>>;
220
- value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
221
- text: z.ZodOptional<z.ZodString>;
222
- total: z.ZodOptional<z.ZodNumber>;
223
- maximumValue: z.ZodOptional<z.ZodNumber>;
224
- minimumValue: z.ZodOptional<z.ZodNumber>;
225
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
226
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
227
- weight: z.ZodOptional<z.ZodNumber>;
212
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
213
+ text: z.ZodNullable<z.ZodString>;
214
+ total: z.ZodNullable<z.ZodNumber>;
215
+ maximumValue: z.ZodNullable<z.ZodNumber>;
216
+ minimumValue: z.ZodNullable<z.ZodNumber>;
217
+ weight: z.ZodNullable<z.ZodNumber>;
228
218
  }, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
229
- readOnly: z.ZodOptional<z.ZodBoolean>;
230
- valueReference: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
219
+ readOnly: z.ZodNullable<z.ZodBoolean>;
220
+ valueReference: z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
231
221
  }, z.core.$strip>>>;
232
222
  definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
233
- label: z.ZodOptional<z.ZodString>;
234
- readOnly: z.ZodOptional<z.ZodBoolean>;
223
+ label: z.ZodNullable<z.ZodString>;
224
+ readOnly: z.ZodNullable<z.ZodBoolean>;
235
225
  type: z.ZodLiteral<"select-single">;
236
- minimum: z.ZodOptional<z.ZodNumber>;
237
- maximum: z.ZodOptional<z.ZodNumber>;
226
+ minimum: z.ZodNullable<z.ZodNumber>;
227
+ maximum: z.ZodNullable<z.ZodNumber>;
238
228
  options: z.ZodArray<z.ZodObject<{
239
- id: z.ZodOptional<z.ZodString>;
229
+ id: z.ZodNullable<z.ZodString>;
240
230
  text: z.ZodString;
241
- intro: z.ZodOptional<z.ZodString>;
242
- outro: z.ZodOptional<z.ZodString>;
231
+ intro: z.ZodNullable<z.ZodString>;
232
+ outro: z.ZodNullable<z.ZodString>;
243
233
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
244
234
  }, z.core.$strip>>;
245
- defaultValue: z.ZodOptional<z.ZodString>;
235
+ defaultValue: z.ZodNullable<z.ZodString>;
246
236
  }, z.core.$strip>, z.ZodObject<{
247
- label: z.ZodOptional<z.ZodString>;
248
- readOnly: z.ZodOptional<z.ZodBoolean>;
237
+ label: z.ZodNullable<z.ZodString>;
238
+ readOnly: z.ZodNullable<z.ZodBoolean>;
249
239
  type: z.ZodLiteral<"select-multiple">;
250
- minimum: z.ZodOptional<z.ZodNumber>;
251
- maximum: z.ZodOptional<z.ZodNumber>;
240
+ minimum: z.ZodNullable<z.ZodNumber>;
241
+ maximum: z.ZodNullable<z.ZodNumber>;
252
242
  options: z.ZodArray<z.ZodObject<{
253
- id: z.ZodOptional<z.ZodString>;
243
+ id: z.ZodNullable<z.ZodString>;
254
244
  text: z.ZodString;
255
- intro: z.ZodOptional<z.ZodString>;
256
- outro: z.ZodOptional<z.ZodString>;
245
+ intro: z.ZodNullable<z.ZodString>;
246
+ outro: z.ZodNullable<z.ZodString>;
257
247
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
258
248
  }, z.core.$strip>>;
259
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
249
+ defaultValue: z.ZodNullable<z.ZodArray<z.ZodString>>;
260
250
  }, z.core.$strip>, z.ZodObject<{
261
- label: z.ZodOptional<z.ZodString>;
262
- readOnly: z.ZodOptional<z.ZodBoolean>;
263
- type: z.ZodOptional<z.ZodLiteral<"number">>;
264
- minimum: z.ZodOptional<z.ZodNumber>;
265
- maximum: z.ZodOptional<z.ZodNumber>;
266
- step: z.ZodOptional<z.ZodNumber>;
267
- defaultValue: z.ZodOptional<z.ZodNumber>;
251
+ label: z.ZodNullable<z.ZodString>;
252
+ readOnly: z.ZodNullable<z.ZodBoolean>;
253
+ type: z.ZodNullable<z.ZodLiteral<"number">>;
254
+ minimum: z.ZodNullable<z.ZodNumber>;
255
+ maximum: z.ZodNullable<z.ZodNumber>;
256
+ step: z.ZodNullable<z.ZodNumber>;
257
+ defaultValue: z.ZodNullable<z.ZodNumber>;
268
258
  }, z.core.$strip>, z.ZodObject<{
269
- label: z.ZodOptional<z.ZodString>;
270
- readOnly: z.ZodOptional<z.ZodBoolean>;
259
+ label: z.ZodNullable<z.ZodString>;
260
+ readOnly: z.ZodNullable<z.ZodBoolean>;
271
261
  type: z.ZodLiteral<"boolean">;
272
- labels: z.ZodOptional<z.ZodObject<{
262
+ labels: z.ZodNullable<z.ZodObject<{
273
263
  true: z.ZodString;
274
264
  false: z.ZodString;
275
265
  }, z.core.$strip>>;
276
- defaultValue: z.ZodOptional<z.ZodBoolean>;
266
+ defaultValue: z.ZodNullable<z.ZodBoolean>;
277
267
  }, z.core.$strip>], "type">;
278
- description: z.ZodOptional<z.ZodString>;
268
+ description: z.ZodNullable<z.ZodString>;
279
269
  options: z.ZodObject<{
280
- excludeFromTargets: z.ZodOptional<z.ZodBoolean>;
270
+ excludeFromTargets: z.ZodNullable<z.ZodBoolean>;
281
271
  }, z.core.$strip>;
282
272
  }, z.core.$strip>>>;
283
273
  options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
284
274
  breadcrumbTextFormat: z.ZodString;
285
275
  documentTreeFolderTextFormat: z.ZodString;
286
- showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
276
+ showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
287
277
  }, z.core.$strip>, z.ZodObject<{
288
278
  criteriaTreeElementTextFormat: z.ZodString;
289
279
  }, z.core.$strip>>, z.ZodObject<{
290
- reportTitleTextFormat: z.ZodOptional<z.ZodString>;
280
+ reportTitleTextFormat: z.ZodNullable<z.ZodString>;
291
281
  }, z.core.$strip>>;
292
282
  }, z.core.$strip>>>;
293
283
  }, z.core.$strip>>>;
294
284
  options: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
295
- hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
285
+ hideCodeInReport: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
296
286
  }, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
297
287
  hideFromBreadcrumbs: z.ZodLiteral<true>;
298
- breadcrumbTextFormat: z.ZodOptional<z.ZodNever>;
288
+ breadcrumbTextFormat: z.ZodNullable<z.ZodNever>;
299
289
  }, z.core.$strip>, z.ZodObject<{
300
- hideFromBreadcrumbs: z.ZodDefault<z.ZodOptional<z.ZodLiteral<false>>>;
290
+ hideFromBreadcrumbs: z.ZodDefault<z.ZodNullable<z.ZodLiteral<false>>>;
301
291
  breadcrumbTextFormat: z.ZodString;
302
292
  }, z.core.$strip>]>>, z.ZodUnion<[z.ZodObject<{
303
293
  hideFromDocumentTree: z.ZodLiteral<true>;
304
- documentTreeFolderTextFormat: z.ZodOptional<z.ZodNever>;
294
+ documentTreeFolderTextFormat: z.ZodNullable<z.ZodNever>;
305
295
  }, z.core.$strip>, z.ZodObject<{
306
- hideFromDocumentTree: z.ZodOptional<z.ZodLiteral<false>>;
296
+ hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
307
297
  documentTreeFolderTextFormat: z.ZodString;
308
298
  }, z.core.$strip>]>>, z.ZodObject<{
309
299
  criteriaTreeElementTextFormat: z.ZodString;
310
300
  }, z.core.$strip>>, z.ZodObject<{
311
- reportTitleTextFormat: z.ZodOptional<z.ZodString>;
301
+ reportTitleTextFormat: z.ZodNullable<z.ZodString>;
312
302
  }, z.core.$strip>>;
313
303
  }, z.core.$strip>>;
314
304
  options: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
315
- hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
305
+ hideCodeInReport: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
316
306
  }, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
317
307
  hideFromBreadcrumbs: z.ZodLiteral<true>;
318
- breadcrumbTextFormat: z.ZodOptional<z.ZodNever>;
308
+ breadcrumbTextFormat: z.ZodNullable<z.ZodNever>;
319
309
  }, z.core.$strip>, z.ZodObject<{
320
- hideFromBreadcrumbs: z.ZodDefault<z.ZodOptional<z.ZodLiteral<false>>>;
310
+ hideFromBreadcrumbs: z.ZodDefault<z.ZodNullable<z.ZodLiteral<false>>>;
321
311
  breadcrumbTextFormat: z.ZodString;
322
312
  }, z.core.$strip>]>>, z.ZodUnion<[z.ZodObject<{
323
313
  hideFromDocumentTree: z.ZodLiteral<true>;
324
- documentTreeFolderTextFormat: z.ZodOptional<z.ZodNever>;
314
+ documentTreeFolderTextFormat: z.ZodNullable<z.ZodNever>;
325
315
  }, z.core.$strip>, z.ZodObject<{
326
- hideFromDocumentTree: z.ZodOptional<z.ZodLiteral<false>>;
316
+ hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
327
317
  documentTreeFolderTextFormat: z.ZodString;
328
318
  }, z.core.$strip>]>>, z.ZodObject<{
329
- reportTitleTextFormat: z.ZodOptional<z.ZodString>;
319
+ reportTitleTextFormat: z.ZodNullable<z.ZodString>;
330
320
  }, z.core.$strip>>;
331
321
  }, z.core.$strip>;
@@ -14,7 +14,7 @@ exports.themeOptionsSchema = zod_1.z
14
14
  .object({
15
15
  hideCodeInReport: zod_1.z
16
16
  .boolean()
17
- .optional()
17
+ .nullable()
18
18
  .default(false)
19
19
  .describe("Whether to hide the theme code in the generated PDF report"),
20
20
  })
@@ -26,7 +26,7 @@ exports.themeSchema = common_1.abstractElementSchema
26
26
  .extend({
27
27
  type: zod_1.z.literal("theme").describe("Identifies the schema type as a theme"),
28
28
  style: exports.themeStyleSchema
29
- .optional()
29
+ .nullable()
30
30
  .describe("Visual styling configuration for the theme"),
31
31
  items: zod_1.z.array(criterion_1.criterionSchema).describe("The criteria in this theme"),
32
32
  options: exports.themeOptionsSchema.describe("Configuration options for the theme display and behavior"),
package/dist/v1/utils.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getCertificationsByValue = exports.applyReportTitleTextFormatFormattingPlaceholders = exports.applyCriteriaTreeElementTextFormatFormattingPlaceholders = exports.applyDocumentTreeFolderTextFormattingPlaceholders = exports.applyBreadcrumbTextFormattingPlaceholders = exports.findInTree = exports.toColorHexString = exports.isTaskItem = exports.isTask = exports.isTaskGroup = exports.isCriterion = exports.isTheme = void 0;
4
+ const isNil = (value) => value === null || value === undefined;
4
5
  const isTheme = (element) => element.type === "theme";
5
6
  exports.isTheme = isTheme;
6
7
  const isCriterion = (element) => element.type === "criterion";
@@ -78,14 +79,10 @@ const getCertificationsByValue = (certificationDefinitions, value) => {
78
79
  return undefined;
79
80
  }
80
81
  return certificationDefinitions.filter((definition) => {
81
- return ((definition.rules.minimum === undefined ||
82
+ return ((isNil(definition.rules.minimum) ||
82
83
  value > definition.rules.minimum) &&
83
- (definition.rules.exclusiveMinimum === undefined ||
84
- value >= definition.rules.exclusiveMinimum) &&
85
- (definition.rules.maximum === undefined ||
86
- value < definition.rules.maximum) &&
87
- (definition.rules.exclusiveMaximum === undefined ||
88
- value <= definition.rules.exclusiveMaximum));
84
+ (isNil(definition.rules.maximum) ||
85
+ value < definition.rules.maximum));
89
86
  });
90
87
  };
91
88
  exports.getCertificationsByValue = getCertificationsByValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "2.5.0",
3
+ "version": "3.0.0-alpha.3",
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>",