@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.
- package/dist/v1/schemas/certification.d.ts +86 -44
- package/dist/v1/schemas/certification.js +29 -9
- package/dist/v1/schemas/common.d.ts +30 -36
- package/dist/v1/schemas/common.js +18 -26
- package/dist/v1/schemas/criteria-tree.d.ts +500 -528
- package/dist/v1/schemas/criteria-tree.js +1 -1
- package/dist/v1/schemas/criterion.d.ts +92 -100
- package/dist/v1/schemas/criterion.js +1 -1
- package/dist/v1/schemas/data-map.d.ts +40 -50
- package/dist/v1/schemas/data-map.js +1 -1
- package/dist/v1/schemas/metadata.d.ts +10 -10
- package/dist/v1/schemas/metadata.js +7 -7
- package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +5 -5
- package/dist/v1/schemas/request/matrix-request-body-schema.js +5 -5
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +4 -4
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +4 -4
- package/dist/v1/schemas/response.d.ts +7 -7
- package/dist/v1/schemas/task-group.d.ts +69 -75
- package/dist/v1/schemas/task-group.js +2 -2
- package/dist/v1/schemas/task-item.d.ts +109 -113
- package/dist/v1/schemas/task-item.js +23 -23
- package/dist/v1/schemas/task.d.ts +58 -62
- package/dist/v1/schemas/task.js +2 -2
- package/dist/v1/schemas/theme.d.ts +110 -120
- package/dist/v1/schemas/theme.js +2 -2
- package/dist/v1/utils.js +4 -7
- package/package.json +1 -1
|
@@ -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.
|
|
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.
|
|
18
|
+
breadcrumbTextFormat: z.ZodNullable<z.ZodNever>;
|
|
19
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
hideFromBreadcrumbs: z.ZodDefault<z.
|
|
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.
|
|
24
|
+
documentTreeFolderTextFormat: z.ZodNullable<z.ZodNever>;
|
|
25
25
|
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
hideFromDocumentTree: z.
|
|
26
|
+
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
27
27
|
documentTreeFolderTextFormat: z.ZodString;
|
|
28
28
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
29
|
-
reportTitleTextFormat: z.
|
|
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.
|
|
36
|
-
documentation: z.
|
|
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.
|
|
52
|
-
type: z.
|
|
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.
|
|
58
|
-
text: z.
|
|
59
|
-
total: z.
|
|
60
|
-
maximumValue: z.
|
|
61
|
-
minimumValue: z.
|
|
62
|
-
|
|
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.
|
|
64
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
67
65
|
type: z.ZodLiteral<"theme">;
|
|
68
|
-
style: z.
|
|
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.
|
|
85
|
-
documentation: z.
|
|
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.
|
|
101
|
-
type: z.
|
|
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.
|
|
107
|
-
text: z.
|
|
108
|
-
total: z.
|
|
109
|
-
maximumValue: z.
|
|
110
|
-
minimumValue: z.
|
|
111
|
-
|
|
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.
|
|
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.
|
|
122
|
-
documentation: z.
|
|
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.
|
|
138
|
-
type: z.
|
|
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.
|
|
144
|
-
text: z.
|
|
145
|
-
total: z.
|
|
146
|
-
maximumValue: z.
|
|
147
|
-
minimumValue: z.
|
|
148
|
-
|
|
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.
|
|
146
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
153
147
|
type: z.ZodLiteral<"task-group">;
|
|
154
|
-
description: z.
|
|
155
|
-
category: z.
|
|
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.
|
|
161
|
-
documentation: z.
|
|
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.
|
|
177
|
-
type: z.
|
|
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.
|
|
183
|
-
text: z.
|
|
184
|
-
total: z.
|
|
185
|
-
maximumValue: z.
|
|
186
|
-
minimumValue: z.
|
|
187
|
-
|
|
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.
|
|
183
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
192
184
|
type: z.ZodLiteral<"task">;
|
|
193
|
-
description: z.
|
|
185
|
+
description: z.ZodNullable<z.ZodString>;
|
|
194
186
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
195
187
|
code: z.ZodString;
|
|
196
|
-
tags: z.
|
|
197
|
-
documentation: z.
|
|
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.
|
|
204
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
213
205
|
type: z.ZodLiteral<"task-item">;
|
|
214
|
-
data: z.
|
|
215
|
-
type: z.
|
|
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.
|
|
221
|
-
text: z.
|
|
222
|
-
total: z.
|
|
223
|
-
maximumValue: z.
|
|
224
|
-
minimumValue: z.
|
|
225
|
-
|
|
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.
|
|
230
|
-
valueReference: z.
|
|
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.
|
|
234
|
-
readOnly: z.
|
|
223
|
+
label: z.ZodNullable<z.ZodString>;
|
|
224
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
235
225
|
type: z.ZodLiteral<"select-single">;
|
|
236
|
-
minimum: z.
|
|
237
|
-
maximum: z.
|
|
226
|
+
minimum: z.ZodNullable<z.ZodNumber>;
|
|
227
|
+
maximum: z.ZodNullable<z.ZodNumber>;
|
|
238
228
|
options: z.ZodArray<z.ZodObject<{
|
|
239
|
-
id: z.
|
|
229
|
+
id: z.ZodNullable<z.ZodString>;
|
|
240
230
|
text: z.ZodString;
|
|
241
|
-
intro: z.
|
|
242
|
-
outro: z.
|
|
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.
|
|
235
|
+
defaultValue: z.ZodNullable<z.ZodString>;
|
|
246
236
|
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
-
label: z.
|
|
248
|
-
readOnly: z.
|
|
237
|
+
label: z.ZodNullable<z.ZodString>;
|
|
238
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
249
239
|
type: z.ZodLiteral<"select-multiple">;
|
|
250
|
-
minimum: z.
|
|
251
|
-
maximum: z.
|
|
240
|
+
minimum: z.ZodNullable<z.ZodNumber>;
|
|
241
|
+
maximum: z.ZodNullable<z.ZodNumber>;
|
|
252
242
|
options: z.ZodArray<z.ZodObject<{
|
|
253
|
-
id: z.
|
|
243
|
+
id: z.ZodNullable<z.ZodString>;
|
|
254
244
|
text: z.ZodString;
|
|
255
|
-
intro: z.
|
|
256
|
-
outro: z.
|
|
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.
|
|
249
|
+
defaultValue: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
260
250
|
}, z.core.$strip>, z.ZodObject<{
|
|
261
|
-
label: z.
|
|
262
|
-
readOnly: z.
|
|
263
|
-
type: z.
|
|
264
|
-
minimum: z.
|
|
265
|
-
maximum: z.
|
|
266
|
-
step: z.
|
|
267
|
-
defaultValue: z.
|
|
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.
|
|
270
|
-
readOnly: z.
|
|
259
|
+
label: z.ZodNullable<z.ZodString>;
|
|
260
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
271
261
|
type: z.ZodLiteral<"boolean">;
|
|
272
|
-
labels: z.
|
|
262
|
+
labels: z.ZodNullable<z.ZodObject<{
|
|
273
263
|
true: z.ZodString;
|
|
274
264
|
false: z.ZodString;
|
|
275
265
|
}, z.core.$strip>>;
|
|
276
|
-
defaultValue: z.
|
|
266
|
+
defaultValue: z.ZodNullable<z.ZodBoolean>;
|
|
277
267
|
}, z.core.$strip>], "type">;
|
|
278
|
-
description: z.
|
|
268
|
+
description: z.ZodNullable<z.ZodString>;
|
|
279
269
|
options: z.ZodObject<{
|
|
280
|
-
excludeFromTargets: z.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
288
|
+
breadcrumbTextFormat: z.ZodNullable<z.ZodNever>;
|
|
299
289
|
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
-
hideFromBreadcrumbs: z.ZodDefault<z.
|
|
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.
|
|
294
|
+
documentTreeFolderTextFormat: z.ZodNullable<z.ZodNever>;
|
|
305
295
|
}, z.core.$strip>, z.ZodObject<{
|
|
306
|
-
hideFromDocumentTree: z.
|
|
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.
|
|
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.
|
|
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.
|
|
308
|
+
breadcrumbTextFormat: z.ZodNullable<z.ZodNever>;
|
|
319
309
|
}, z.core.$strip>, z.ZodObject<{
|
|
320
|
-
hideFromBreadcrumbs: z.ZodDefault<z.
|
|
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.
|
|
314
|
+
documentTreeFolderTextFormat: z.ZodNullable<z.ZodNever>;
|
|
325
315
|
}, z.core.$strip>, z.ZodObject<{
|
|
326
|
-
hideFromDocumentTree: z.
|
|
316
|
+
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
327
317
|
documentTreeFolderTextFormat: z.ZodString;
|
|
328
318
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
329
|
-
reportTitleTextFormat: z.
|
|
319
|
+
reportTitleTextFormat: z.ZodNullable<z.ZodString>;
|
|
330
320
|
}, z.core.$strip>>;
|
|
331
321
|
}, z.core.$strip>;
|
package/dist/v1/schemas/theme.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.themeOptionsSchema = zod_1.z
|
|
|
14
14
|
.object({
|
|
15
15
|
hideCodeInReport: zod_1.z
|
|
16
16
|
.boolean()
|
|
17
|
-
.
|
|
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
|
-
.
|
|
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
|
|
82
|
+
return ((isNil(definition.rules.minimum) ||
|
|
82
83
|
value > definition.rules.minimum) &&
|
|
83
|
-
(definition.rules.
|
|
84
|
-
value
|
|
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