@openframe-org/criteria-set-protocol 2.0.4 → 2.0.6-beta.1

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.
Files changed (35) hide show
  1. package/dist/v1/schemas/certification.d.ts +80 -80
  2. package/dist/v1/schemas/certification.js +7 -6
  3. package/dist/v1/schemas/common.d.ts +59 -90
  4. package/dist/v1/schemas/common.js +15 -14
  5. package/dist/v1/schemas/criteria-tree.d.ts +2017 -2866
  6. package/dist/v1/schemas/criteria-tree.js +2 -1
  7. package/dist/v1/schemas/criterion.d.ts +373 -520
  8. package/dist/v1/schemas/criterion.js +4 -3
  9. package/dist/v1/schemas/data-map.d.ts +2 -2
  10. package/dist/v1/schemas/data-map.js +2 -1
  11. package/dist/v1/schemas/index.d.ts +1 -0
  12. package/dist/v1/schemas/index.js +1 -0
  13. package/dist/v1/schemas/metadata.d.ts +18 -21
  14. package/dist/v1/schemas/metadata.js +7 -6
  15. package/dist/v1/schemas/request/matrix-body-schema.d.ts +7 -7
  16. package/dist/v1/schemas/request/matrix-body-schema.js +5 -4
  17. package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +7 -7
  18. package/dist/v1/schemas/request/matrix-request-body-schema.js +5 -4
  19. package/dist/v1/schemas/request/tree-and-data-body-schema.d.ts +6 -6
  20. package/dist/v1/schemas/request/tree-and-data-body-schema.js +4 -3
  21. package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +6 -6
  22. package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +4 -3
  23. package/dist/v1/schemas/response.d.ts +14 -17
  24. package/dist/v1/schemas/task-group.d.ts +266 -379
  25. package/dist/v1/schemas/task-group.js +5 -4
  26. package/dist/v1/schemas/task-item.d.ts +172 -218
  27. package/dist/v1/schemas/task-item.js +14 -13
  28. package/dist/v1/schemas/task.d.ts +172 -251
  29. package/dist/v1/schemas/task.js +4 -3
  30. package/dist/v1/schemas/theme.d.ts +499 -706
  31. package/dist/v1/schemas/theme.js +4 -3
  32. package/dist/v1/schemas/utils.d.ts +6 -0
  33. package/dist/v1/schemas/utils.js +14 -0
  34. package/dist/v1/utils.d.ts +293 -293
  35. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare const taskOptionsSchema: z.ZodObject<{
3
- hideCode: z.ZodOptional<z.ZodBoolean>;
3
+ hideCode: z.ZodType<boolean | null | undefined, z.ZodTypeDef, boolean | undefined>;
4
4
  }, "strip", z.ZodTypeAny, {
5
- hideCode?: boolean | undefined;
5
+ hideCode?: boolean | null | undefined;
6
6
  }, {
7
7
  hideCode?: boolean | undefined;
8
8
  }>;
@@ -10,79 +10,48 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
10
10
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
11
11
  title: z.ZodString;
12
12
  code: z.ZodString;
13
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
15
- type: z.ZodEnum<["pdf", "text", "link"]>;
16
- label: z.ZodString;
17
- text: z.ZodString;
18
- }, {
19
- type: z.ZodLiteral<"pdf">;
20
- url: z.ZodString;
21
- }>, "strip", z.ZodTypeAny, {
13
+ tags: z.ZodType<string[] | null | undefined, z.ZodTypeDef, string[] | undefined>;
14
+ documentation: z.ZodType<({
22
15
  type: "pdf";
23
16
  url: string;
24
17
  label: string;
25
18
  text: string;
26
- }, {
27
- type: "pdf";
28
- url: string;
29
- label: string;
30
- text: string;
31
- }>, z.ZodObject<z.objectUtil.extendShape<{
32
- type: z.ZodEnum<["pdf", "text", "link"]>;
33
- label: z.ZodString;
34
- text: z.ZodString;
35
- }, {
36
- type: z.ZodLiteral<"text">;
37
- }>, "strip", z.ZodTypeAny, {
19
+ } | {
38
20
  type: "text";
39
21
  label: string;
40
22
  text: string;
41
- }, {
42
- type: "text";
23
+ } | {
24
+ type: "link";
25
+ url: string;
43
26
  label: string;
44
27
  text: string;
45
- }>, z.ZodObject<z.objectUtil.extendShape<{
46
- type: z.ZodEnum<["pdf", "text", "link"]>;
47
- label: z.ZodString;
48
- text: z.ZodString;
49
- }, {
50
- type: z.ZodLiteral<"link">;
51
- url: z.ZodString;
52
- }>, "strip", z.ZodTypeAny, {
53
- type: "link";
28
+ })[] | null | undefined, z.ZodTypeDef, ({
29
+ type: "pdf";
54
30
  url: string;
55
31
  label: string;
56
32
  text: string;
57
- }, {
33
+ } | {
34
+ type: "text";
35
+ label: string;
36
+ text: string;
37
+ } | {
58
38
  type: "link";
59
39
  url: string;
60
40
  label: string;
61
41
  text: string;
62
- }>]>, "many">>;
63
- data: z.ZodOptional<z.ZodObject<{
64
- type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
65
- value: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
66
- text: z.ZodOptional<z.ZodString>;
67
- maximumValue: z.ZodOptional<z.ZodNumber>;
68
- minimumValue: z.ZodOptional<z.ZodNumber>;
69
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
70
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
71
- step: z.ZodOptional<z.ZodNumber>;
72
- total: z.ZodOptional<z.ZodNumber>;
73
- readOnly: z.ZodOptional<z.ZodBoolean>;
74
- }, "strip", z.ZodTypeAny, {
75
- type?: "number" | "percentage" | undefined;
76
- total?: number | undefined;
42
+ })[] | undefined>;
43
+ data: z.ZodType<{
44
+ type?: "number" | "percentage" | null | undefined;
45
+ total?: number | null | undefined;
77
46
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
78
- text?: string | undefined;
79
- maximumValue?: number | undefined;
80
- minimumValue?: number | undefined;
81
- exclusiveMaximum?: number | undefined;
82
- exclusiveMinimum?: number | undefined;
83
- step?: number | undefined;
84
- readOnly?: boolean | undefined;
85
- }, {
47
+ text?: string | null | undefined;
48
+ maximumValue?: number | null | undefined;
49
+ minimumValue?: number | null | undefined;
50
+ exclusiveMaximum?: number | null | undefined;
51
+ exclusiveMinimum?: number | null | undefined;
52
+ step?: number | null | undefined;
53
+ readOnly?: boolean | null | undefined;
54
+ } | null | undefined, z.ZodTypeDef, {
86
55
  type?: "number" | "percentage" | undefined;
87
56
  total?: number | undefined;
88
57
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -93,88 +62,57 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
93
62
  exclusiveMinimum?: number | undefined;
94
63
  step?: number | undefined;
95
64
  readOnly?: boolean | undefined;
96
- }>>;
97
- sortOrder: z.ZodOptional<z.ZodNumber>;
65
+ } | undefined>;
66
+ sortOrder: z.ZodType<number | null | undefined, z.ZodTypeDef, number | undefined>;
98
67
  }, {
99
68
  type: z.ZodLiteral<"task">;
100
- description: z.ZodOptional<z.ZodString>;
69
+ description: z.ZodType<string | null | undefined, z.ZodTypeDef, string | undefined>;
101
70
  items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
102
71
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
103
72
  title: z.ZodString;
104
73
  code: z.ZodString;
105
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
107
- type: z.ZodEnum<["pdf", "text", "link"]>;
108
- label: z.ZodString;
109
- text: z.ZodString;
110
- }, {
111
- type: z.ZodLiteral<"pdf">;
112
- url: z.ZodString;
113
- }>, "strip", z.ZodTypeAny, {
114
- type: "pdf";
115
- url: string;
116
- label: string;
117
- text: string;
118
- }, {
74
+ tags: z.ZodType<string[] | null | undefined, z.ZodTypeDef, string[] | undefined>;
75
+ documentation: z.ZodType<({
119
76
  type: "pdf";
120
77
  url: string;
121
78
  label: string;
122
79
  text: string;
123
- }>, z.ZodObject<z.objectUtil.extendShape<{
124
- type: z.ZodEnum<["pdf", "text", "link"]>;
125
- label: z.ZodString;
126
- text: z.ZodString;
127
- }, {
128
- type: z.ZodLiteral<"text">;
129
- }>, "strip", z.ZodTypeAny, {
80
+ } | {
130
81
  type: "text";
131
82
  label: string;
132
83
  text: string;
133
- }, {
134
- type: "text";
84
+ } | {
85
+ type: "link";
86
+ url: string;
135
87
  label: string;
136
88
  text: string;
137
- }>, z.ZodObject<z.objectUtil.extendShape<{
138
- type: z.ZodEnum<["pdf", "text", "link"]>;
139
- label: z.ZodString;
140
- text: z.ZodString;
141
- }, {
142
- type: z.ZodLiteral<"link">;
143
- url: z.ZodString;
144
- }>, "strip", z.ZodTypeAny, {
145
- type: "link";
89
+ })[] | null | undefined, z.ZodTypeDef, ({
90
+ type: "pdf";
146
91
  url: string;
147
92
  label: string;
148
93
  text: string;
149
- }, {
94
+ } | {
95
+ type: "text";
96
+ label: string;
97
+ text: string;
98
+ } | {
150
99
  type: "link";
151
100
  url: string;
152
101
  label: string;
153
102
  text: string;
154
- }>]>, "many">>;
155
- data: z.ZodOptional<z.ZodObject<{
156
- type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
157
- value: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
158
- text: z.ZodOptional<z.ZodString>;
159
- maximumValue: z.ZodOptional<z.ZodNumber>;
160
- minimumValue: z.ZodOptional<z.ZodNumber>;
161
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
162
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
163
- step: z.ZodOptional<z.ZodNumber>;
164
- total: z.ZodOptional<z.ZodNumber>;
165
- readOnly: z.ZodOptional<z.ZodBoolean>;
166
- }, "strip", z.ZodTypeAny, {
167
- type?: "number" | "percentage" | undefined;
168
- total?: number | undefined;
103
+ })[] | undefined>;
104
+ data: z.ZodType<{
105
+ type?: "number" | "percentage" | null | undefined;
106
+ total?: number | null | undefined;
169
107
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
170
- text?: string | undefined;
171
- maximumValue?: number | undefined;
172
- minimumValue?: number | undefined;
173
- exclusiveMaximum?: number | undefined;
174
- exclusiveMinimum?: number | undefined;
175
- step?: number | undefined;
176
- readOnly?: boolean | undefined;
177
- }, {
108
+ text?: string | null | undefined;
109
+ maximumValue?: number | null | undefined;
110
+ minimumValue?: number | null | undefined;
111
+ exclusiveMaximum?: number | null | undefined;
112
+ exclusiveMinimum?: number | null | undefined;
113
+ step?: number | null | undefined;
114
+ readOnly?: boolean | null | undefined;
115
+ } | null | undefined, z.ZodTypeDef, {
178
116
  type?: "number" | "percentage" | undefined;
179
117
  total?: number | undefined;
180
118
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -185,36 +123,23 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
185
123
  exclusiveMinimum?: number | undefined;
186
124
  step?: number | undefined;
187
125
  readOnly?: boolean | undefined;
188
- }>>;
189
- sortOrder: z.ZodOptional<z.ZodNumber>;
126
+ } | undefined>;
127
+ sortOrder: z.ZodType<number | null | undefined, z.ZodTypeDef, number | undefined>;
190
128
  }, {
191
129
  type: z.ZodLiteral<"task-item">;
192
- data: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
193
- type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
194
- value: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
195
- text: z.ZodOptional<z.ZodString>;
196
- maximumValue: z.ZodOptional<z.ZodNumber>;
197
- minimumValue: z.ZodOptional<z.ZodNumber>;
198
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
199
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
200
- step: z.ZodOptional<z.ZodNumber>;
201
- total: z.ZodOptional<z.ZodNumber>;
202
- readOnly: z.ZodOptional<z.ZodBoolean>;
203
- }, {
204
- valueReference: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
205
- }>, "strip", z.ZodTypeAny, {
206
- type?: "number" | "percentage" | undefined;
207
- total?: number | undefined;
130
+ data: z.ZodType<{
131
+ type?: "number" | "percentage" | null | undefined;
132
+ total?: number | null | undefined;
208
133
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
209
- text?: string | undefined;
210
- maximumValue?: number | undefined;
211
- minimumValue?: number | undefined;
212
- exclusiveMaximum?: number | undefined;
213
- exclusiveMinimum?: number | undefined;
214
- step?: number | undefined;
215
- readOnly?: boolean | undefined;
134
+ text?: string | null | undefined;
135
+ maximumValue?: number | null | undefined;
136
+ minimumValue?: number | null | undefined;
137
+ exclusiveMaximum?: number | null | undefined;
138
+ exclusiveMinimum?: number | null | undefined;
139
+ step?: number | null | undefined;
140
+ readOnly?: boolean | null | undefined;
216
141
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
217
- }, {
142
+ } | null | undefined, z.ZodTypeDef, {
218
143
  type?: "number" | "percentage" | undefined;
219
144
  total?: number | undefined;
220
145
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -226,23 +151,23 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
226
151
  step?: number | undefined;
227
152
  readOnly?: boolean | undefined;
228
153
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
229
- }>>;
154
+ } | undefined>;
230
155
  definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
231
156
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
232
157
  }, {
233
158
  type: z.ZodLiteral<"select-single">;
234
159
  options: z.ZodArray<z.ZodObject<{
235
- id: z.ZodOptional<z.ZodString>;
160
+ id: z.ZodType<string | null | undefined, z.ZodTypeDef, string | undefined>;
236
161
  text: z.ZodString;
237
- intro: z.ZodOptional<z.ZodString>;
238
- outro: z.ZodOptional<z.ZodString>;
162
+ intro: z.ZodType<string | null | undefined, z.ZodTypeDef, string | undefined>;
163
+ outro: z.ZodType<string | null | undefined, z.ZodTypeDef, string | undefined>;
239
164
  value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
240
165
  }, "strip", z.ZodTypeAny, {
241
166
  value: string | number | boolean | null;
242
167
  text: string;
243
- id?: string | undefined;
244
- intro?: string | undefined;
245
- outro?: string | undefined;
168
+ id?: string | null | undefined;
169
+ intro?: string | null | undefined;
170
+ outro?: string | null | undefined;
246
171
  }, {
247
172
  value: string | number | boolean | null;
248
173
  text: string;
@@ -255,9 +180,9 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
255
180
  options: {
256
181
  value: string | number | boolean | null;
257
182
  text: string;
258
- id?: string | undefined;
259
- intro?: string | undefined;
260
- outro?: string | undefined;
183
+ id?: string | null | undefined;
184
+ intro?: string | null | undefined;
185
+ outro?: string | null | undefined;
261
186
  }[];
262
187
  }, {
263
188
  type: "select-single";
@@ -273,17 +198,17 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
273
198
  }, {
274
199
  type: z.ZodLiteral<"select-multiple">;
275
200
  options: z.ZodArray<z.ZodObject<{
276
- id: z.ZodOptional<z.ZodString>;
201
+ id: z.ZodType<string | null | undefined, z.ZodTypeDef, string | undefined>;
277
202
  text: z.ZodString;
278
- intro: z.ZodOptional<z.ZodString>;
279
- outro: z.ZodOptional<z.ZodString>;
203
+ intro: z.ZodType<string | null | undefined, z.ZodTypeDef, string | undefined>;
204
+ outro: z.ZodType<string | null | undefined, z.ZodTypeDef, string | undefined>;
280
205
  value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
281
206
  }, "strip", z.ZodTypeAny, {
282
207
  value: string | number | boolean | null;
283
208
  text: string;
284
- id?: string | undefined;
285
- intro?: string | undefined;
286
- outro?: string | undefined;
209
+ id?: string | null | undefined;
210
+ intro?: string | null | undefined;
211
+ outro?: string | null | undefined;
287
212
  }, {
288
213
  value: string | number | boolean | null;
289
214
  text: string;
@@ -296,9 +221,9 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
296
221
  options: {
297
222
  value: string | number | boolean | null;
298
223
  text: string;
299
- id?: string | undefined;
300
- intro?: string | undefined;
301
- outro?: string | undefined;
224
+ id?: string | null | undefined;
225
+ intro?: string | null | undefined;
226
+ outro?: string | null | undefined;
302
227
  }[];
303
228
  }, {
304
229
  type: "select-multiple";
@@ -313,14 +238,14 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
313
238
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
314
239
  }, {
315
240
  type: z.ZodLiteral<"number">;
316
- minimum: z.ZodOptional<z.ZodNumber>;
317
- maximum: z.ZodOptional<z.ZodNumber>;
318
- step: z.ZodOptional<z.ZodNumber>;
241
+ minimum: z.ZodType<number | null | undefined, z.ZodTypeDef, number | undefined>;
242
+ maximum: z.ZodType<number | null | undefined, z.ZodTypeDef, number | undefined>;
243
+ step: z.ZodType<number | null | undefined, z.ZodTypeDef, number | undefined>;
319
244
  }>, "strip", z.ZodTypeAny, {
320
245
  type: "number";
321
- minimum?: number | undefined;
322
- maximum?: number | undefined;
323
- step?: number | undefined;
246
+ minimum?: number | null | undefined;
247
+ maximum?: number | null | undefined;
248
+ step?: number | null | undefined;
324
249
  }, {
325
250
  type: "number";
326
251
  minimum?: number | undefined;
@@ -353,16 +278,14 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
353
278
  true: string;
354
279
  } | undefined;
355
280
  }>]>;
356
- description: z.ZodOptional<z.ZodString>;
357
- providedData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
358
- valueReference: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
359
- options: z.ZodOptional<z.ZodObject<{
360
- hideCode: z.ZodOptional<z.ZodBoolean>;
361
- }, "strip", z.ZodTypeAny, {
362
- hideCode?: boolean | undefined;
363
- }, {
281
+ description: z.ZodType<string | null | undefined, z.ZodTypeDef, string | undefined>;
282
+ providedData: z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined>;
283
+ valueReference: z.ZodType<string | number | boolean | (string | number | boolean | null)[] | null | undefined, z.ZodTypeDef, string | number | boolean | (string | number | boolean | null)[] | null | undefined>;
284
+ options: z.ZodType<{
285
+ hideCode?: boolean | null | undefined;
286
+ } | null | undefined, z.ZodTypeDef, {
364
287
  hideCode?: boolean | undefined;
365
- }>>;
288
+ } | undefined>;
366
289
  }>, "title">, "strip", z.ZodTypeAny, {
367
290
  type: "task-item";
368
291
  code: string;
@@ -371,24 +294,24 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
371
294
  options: {
372
295
  value: string | number | boolean | null;
373
296
  text: string;
374
- id?: string | undefined;
375
- intro?: string | undefined;
376
- outro?: string | undefined;
297
+ id?: string | null | undefined;
298
+ intro?: string | null | undefined;
299
+ outro?: string | null | undefined;
377
300
  }[];
378
301
  } | {
379
302
  type: "select-multiple";
380
303
  options: {
381
304
  value: string | number | boolean | null;
382
305
  text: string;
383
- id?: string | undefined;
384
- intro?: string | undefined;
385
- outro?: string | undefined;
306
+ id?: string | null | undefined;
307
+ intro?: string | null | undefined;
308
+ outro?: string | null | undefined;
386
309
  }[];
387
310
  } | {
388
311
  type: "number";
389
- minimum?: number | undefined;
390
- maximum?: number | undefined;
391
- step?: number | undefined;
312
+ minimum?: number | null | undefined;
313
+ maximum?: number | null | undefined;
314
+ step?: number | null | undefined;
392
315
  } | {
393
316
  type: "boolean";
394
317
  labels?: {
@@ -397,23 +320,23 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
397
320
  } | undefined;
398
321
  };
399
322
  data?: {
400
- type?: "number" | "percentage" | undefined;
401
- total?: number | undefined;
323
+ type?: "number" | "percentage" | null | undefined;
324
+ total?: number | null | undefined;
402
325
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
403
- text?: string | undefined;
404
- maximumValue?: number | undefined;
405
- minimumValue?: number | undefined;
406
- exclusiveMaximum?: number | undefined;
407
- exclusiveMinimum?: number | undefined;
408
- step?: number | undefined;
409
- readOnly?: boolean | undefined;
326
+ text?: string | null | undefined;
327
+ maximumValue?: number | null | undefined;
328
+ minimumValue?: number | null | undefined;
329
+ exclusiveMaximum?: number | null | undefined;
330
+ exclusiveMinimum?: number | null | undefined;
331
+ step?: number | null | undefined;
332
+ readOnly?: boolean | null | undefined;
410
333
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
411
- } | undefined;
334
+ } | null | undefined;
412
335
  options?: {
413
- hideCode?: boolean | undefined;
414
- } | undefined;
415
- description?: string | undefined;
416
- tags?: string[] | undefined;
336
+ hideCode?: boolean | null | undefined;
337
+ } | null | undefined;
338
+ description?: string | null | undefined;
339
+ tags?: string[] | null | undefined;
417
340
  documentation?: ({
418
341
  type: "pdf";
419
342
  url: string;
@@ -428,10 +351,10 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
428
351
  url: string;
429
352
  label: string;
430
353
  text: string;
431
- })[] | undefined;
432
- sortOrder?: number | undefined;
354
+ })[] | null | undefined;
355
+ sortOrder?: number | null | undefined;
433
356
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
434
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
357
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
435
358
  }, {
436
359
  type: "task-item";
437
360
  code: string;
@@ -502,13 +425,11 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
502
425
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
503
426
  providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
504
427
  }>>, "many">;
505
- options: z.ZodOptional<z.ZodObject<{
506
- hideCode: z.ZodOptional<z.ZodBoolean>;
507
- }, "strip", z.ZodTypeAny, {
508
- hideCode?: boolean | undefined;
509
- }, {
428
+ options: z.ZodType<{
429
+ hideCode?: boolean | null | undefined;
430
+ } | null | undefined, z.ZodTypeDef, {
510
431
  hideCode?: boolean | undefined;
511
- }>>;
432
+ } | undefined>;
512
433
  }>, "strip", z.ZodTypeAny, {
513
434
  type: "task";
514
435
  code: string;
@@ -521,24 +442,24 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
521
442
  options: {
522
443
  value: string | number | boolean | null;
523
444
  text: string;
524
- id?: string | undefined;
525
- intro?: string | undefined;
526
- outro?: string | undefined;
445
+ id?: string | null | undefined;
446
+ intro?: string | null | undefined;
447
+ outro?: string | null | undefined;
527
448
  }[];
528
449
  } | {
529
450
  type: "select-multiple";
530
451
  options: {
531
452
  value: string | number | boolean | null;
532
453
  text: string;
533
- id?: string | undefined;
534
- intro?: string | undefined;
535
- outro?: string | undefined;
454
+ id?: string | null | undefined;
455
+ intro?: string | null | undefined;
456
+ outro?: string | null | undefined;
536
457
  }[];
537
458
  } | {
538
459
  type: "number";
539
- minimum?: number | undefined;
540
- maximum?: number | undefined;
541
- step?: number | undefined;
460
+ minimum?: number | null | undefined;
461
+ maximum?: number | null | undefined;
462
+ step?: number | null | undefined;
542
463
  } | {
543
464
  type: "boolean";
544
465
  labels?: {
@@ -547,23 +468,23 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
547
468
  } | undefined;
548
469
  };
549
470
  data?: {
550
- type?: "number" | "percentage" | undefined;
551
- total?: number | undefined;
471
+ type?: "number" | "percentage" | null | undefined;
472
+ total?: number | null | undefined;
552
473
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
553
- text?: string | undefined;
554
- maximumValue?: number | undefined;
555
- minimumValue?: number | undefined;
556
- exclusiveMaximum?: number | undefined;
557
- exclusiveMinimum?: number | undefined;
558
- step?: number | undefined;
559
- readOnly?: boolean | undefined;
474
+ text?: string | null | undefined;
475
+ maximumValue?: number | null | undefined;
476
+ minimumValue?: number | null | undefined;
477
+ exclusiveMaximum?: number | null | undefined;
478
+ exclusiveMinimum?: number | null | undefined;
479
+ step?: number | null | undefined;
480
+ readOnly?: boolean | null | undefined;
560
481
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
561
- } | undefined;
482
+ } | null | undefined;
562
483
  options?: {
563
- hideCode?: boolean | undefined;
564
- } | undefined;
565
- description?: string | undefined;
566
- tags?: string[] | undefined;
484
+ hideCode?: boolean | null | undefined;
485
+ } | null | undefined;
486
+ description?: string | null | undefined;
487
+ tags?: string[] | null | undefined;
567
488
  documentation?: ({
568
489
  type: "pdf";
569
490
  url: string;
@@ -578,28 +499,28 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
578
499
  url: string;
579
500
  label: string;
580
501
  text: string;
581
- })[] | undefined;
582
- sortOrder?: number | undefined;
502
+ })[] | null | undefined;
503
+ sortOrder?: number | null | undefined;
583
504
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
584
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
505
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
585
506
  }[];
586
507
  data?: {
587
- type?: "number" | "percentage" | undefined;
588
- total?: number | undefined;
508
+ type?: "number" | "percentage" | null | undefined;
509
+ total?: number | null | undefined;
589
510
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
590
- text?: string | undefined;
591
- maximumValue?: number | undefined;
592
- minimumValue?: number | undefined;
593
- exclusiveMaximum?: number | undefined;
594
- exclusiveMinimum?: number | undefined;
595
- step?: number | undefined;
596
- readOnly?: boolean | undefined;
597
- } | undefined;
511
+ text?: string | null | undefined;
512
+ maximumValue?: number | null | undefined;
513
+ minimumValue?: number | null | undefined;
514
+ exclusiveMaximum?: number | null | undefined;
515
+ exclusiveMinimum?: number | null | undefined;
516
+ step?: number | null | undefined;
517
+ readOnly?: boolean | null | undefined;
518
+ } | null | undefined;
598
519
  options?: {
599
- hideCode?: boolean | undefined;
600
- } | undefined;
601
- description?: string | undefined;
602
- tags?: string[] | undefined;
520
+ hideCode?: boolean | null | undefined;
521
+ } | null | undefined;
522
+ description?: string | null | undefined;
523
+ tags?: string[] | null | undefined;
603
524
  documentation?: ({
604
525
  type: "pdf";
605
526
  url: string;
@@ -614,8 +535,8 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
614
535
  url: string;
615
536
  label: string;
616
537
  text: string;
617
- })[] | undefined;
618
- sortOrder?: number | undefined;
538
+ })[] | null | undefined;
539
+ sortOrder?: number | null | undefined;
619
540
  }, {
620
541
  type: "task";
621
542
  code: string;
@@ -4,12 +4,13 @@ exports.taskSchema = exports.taskOptionsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("./task-item");
6
6
  const common_1 = require("./common");
7
+ const utils_1 = require("./utils");
7
8
  exports.taskOptionsSchema = zod_1.z.object({
8
- hideCode: zod_1.z.boolean().optional(),
9
+ hideCode: (0, utils_1.optional)(zod_1.z.boolean()),
9
10
  });
10
11
  exports.taskSchema = common_1.abstractElementSchema.extend({
11
12
  type: zod_1.z.literal("task"),
12
- description: zod_1.z.string().optional(),
13
+ description: (0, utils_1.optional)(zod_1.z.string()),
13
14
  items: zod_1.z.array(zod_1.z.lazy(() => task_item_1.taskItemSchema)),
14
- options: exports.taskOptionsSchema.optional(),
15
+ options: (0, utils_1.optional)(exports.taskOptionsSchema),
15
16
  });