@openframe-org/criteria-set-protocol 2.5.0 → 3.0.0-alpha.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.
- package/dist/v1/schemas/certification.d.ts +32 -32
- package/dist/v1/schemas/certification.js +6 -6
- package/dist/v1/schemas/common.d.ts +36 -36
- package/dist/v1/schemas/common.js +18 -18
- package/dist/v1/schemas/criteria-tree.d.ts +524 -524
- package/dist/v1/schemas/criteria-tree.js +1 -1
- package/dist/v1/schemas/criterion.d.ts +100 -100
- package/dist/v1/schemas/criterion.js +1 -1
- package/dist/v1/schemas/data-map.d.ts +50 -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 +75 -75
- package/dist/v1/schemas/task-group.js +2 -2
- package/dist/v1/schemas/task-item.d.ts +113 -113
- package/dist/v1/schemas/task-item.js +23 -23
- package/dist/v1/schemas/task.d.ts +62 -62
- package/dist/v1/schemas/task.js +2 -2
- package/dist/v1/schemas/theme.d.ts +120 -120
- package/dist/v1/schemas/theme.js +2 -2
- package/dist/v1/utils.js +5 -4
- 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,24 @@ 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
|
-
exclusiveMaximum: z.
|
|
63
|
-
exclusiveMinimum: z.
|
|
64
|
-
weight: z.
|
|
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
|
+
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
64
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
65
65
|
}, z.core.$catchall<z.ZodAny>>>;
|
|
66
|
-
sortOrder: z.
|
|
66
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
67
67
|
type: z.ZodLiteral<"theme">;
|
|
68
|
-
style: z.
|
|
68
|
+
style: z.ZodNullable<z.ZodObject<{
|
|
69
69
|
primaryColor: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
70
70
|
red: z.ZodNumber;
|
|
71
71
|
green: z.ZodNumber;
|
|
@@ -81,8 +81,8 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
81
81
|
title: z.ZodString;
|
|
82
82
|
longFormTitle: z.ZodString;
|
|
83
83
|
code: z.ZodString;
|
|
84
|
-
tags: z.
|
|
85
|
-
documentation: z.
|
|
84
|
+
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
85
|
+
documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
86
|
label: z.ZodString;
|
|
87
87
|
text: z.ZodString;
|
|
88
88
|
type: z.ZodLiteral<"pdf">;
|
|
@@ -97,29 +97,29 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
97
97
|
type: z.ZodLiteral<"link">;
|
|
98
98
|
url: z.ZodString;
|
|
99
99
|
}, z.core.$strip>], "type">>>;
|
|
100
|
-
data: z.
|
|
101
|
-
type: z.
|
|
100
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
101
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
102
102
|
number: "number";
|
|
103
103
|
boolean: "boolean";
|
|
104
104
|
percentage: "percentage";
|
|
105
105
|
}>>;
|
|
106
|
-
value: z.
|
|
107
|
-
text: z.
|
|
108
|
-
total: z.
|
|
109
|
-
maximumValue: z.
|
|
110
|
-
minimumValue: z.
|
|
111
|
-
exclusiveMaximum: z.
|
|
112
|
-
exclusiveMinimum: z.
|
|
113
|
-
weight: z.
|
|
106
|
+
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
107
|
+
text: z.ZodNullable<z.ZodString>;
|
|
108
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
109
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
111
|
+
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
112
|
+
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
113
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
114
114
|
}, z.core.$catchall<z.ZodAny>>>;
|
|
115
|
-
sortOrder: z.
|
|
115
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
116
116
|
type: z.ZodLiteral<"criterion">;
|
|
117
117
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
118
118
|
title: z.ZodString;
|
|
119
119
|
longFormTitle: z.ZodString;
|
|
120
120
|
code: z.ZodString;
|
|
121
|
-
tags: z.
|
|
122
|
-
documentation: z.
|
|
121
|
+
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
122
|
+
documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
123
123
|
label: z.ZodString;
|
|
124
124
|
text: z.ZodString;
|
|
125
125
|
type: z.ZodLiteral<"pdf">;
|
|
@@ -134,31 +134,31 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
134
134
|
type: z.ZodLiteral<"link">;
|
|
135
135
|
url: z.ZodString;
|
|
136
136
|
}, z.core.$strip>], "type">>>;
|
|
137
|
-
data: z.
|
|
138
|
-
type: z.
|
|
137
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
138
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
139
139
|
number: "number";
|
|
140
140
|
boolean: "boolean";
|
|
141
141
|
percentage: "percentage";
|
|
142
142
|
}>>;
|
|
143
|
-
value: z.
|
|
144
|
-
text: z.
|
|
145
|
-
total: z.
|
|
146
|
-
maximumValue: z.
|
|
147
|
-
minimumValue: z.
|
|
148
|
-
exclusiveMaximum: z.
|
|
149
|
-
exclusiveMinimum: z.
|
|
150
|
-
weight: z.
|
|
143
|
+
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
144
|
+
text: z.ZodNullable<z.ZodString>;
|
|
145
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
146
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
147
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
148
|
+
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
149
|
+
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
150
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
151
151
|
}, z.core.$catchall<z.ZodAny>>>;
|
|
152
|
-
sortOrder: z.
|
|
152
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
153
153
|
type: z.ZodLiteral<"task-group">;
|
|
154
|
-
description: z.
|
|
155
|
-
category: z.
|
|
154
|
+
description: z.ZodNullable<z.ZodString>;
|
|
155
|
+
category: z.ZodNullable<z.ZodString>;
|
|
156
156
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
157
157
|
title: z.ZodString;
|
|
158
158
|
longFormTitle: z.ZodString;
|
|
159
159
|
code: z.ZodString;
|
|
160
|
-
tags: z.
|
|
161
|
-
documentation: z.
|
|
160
|
+
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
161
|
+
documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
162
162
|
label: z.ZodString;
|
|
163
163
|
text: z.ZodString;
|
|
164
164
|
type: z.ZodLiteral<"pdf">;
|
|
@@ -173,28 +173,28 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
173
173
|
type: z.ZodLiteral<"link">;
|
|
174
174
|
url: z.ZodString;
|
|
175
175
|
}, z.core.$strip>], "type">>>;
|
|
176
|
-
data: z.
|
|
177
|
-
type: z.
|
|
176
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
177
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
178
178
|
number: "number";
|
|
179
179
|
boolean: "boolean";
|
|
180
180
|
percentage: "percentage";
|
|
181
181
|
}>>;
|
|
182
|
-
value: z.
|
|
183
|
-
text: z.
|
|
184
|
-
total: z.
|
|
185
|
-
maximumValue: z.
|
|
186
|
-
minimumValue: z.
|
|
187
|
-
exclusiveMaximum: z.
|
|
188
|
-
exclusiveMinimum: z.
|
|
189
|
-
weight: z.
|
|
182
|
+
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
183
|
+
text: z.ZodNullable<z.ZodString>;
|
|
184
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
185
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
186
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
187
|
+
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
188
|
+
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
189
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
190
190
|
}, z.core.$catchall<z.ZodAny>>>;
|
|
191
|
-
sortOrder: z.
|
|
191
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
192
192
|
type: z.ZodLiteral<"task">;
|
|
193
|
-
description: z.
|
|
193
|
+
description: z.ZodNullable<z.ZodString>;
|
|
194
194
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
195
195
|
code: z.ZodString;
|
|
196
|
-
tags: z.
|
|
197
|
-
documentation: z.
|
|
196
|
+
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
197
|
+
documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
198
|
label: z.ZodString;
|
|
199
199
|
text: z.ZodString;
|
|
200
200
|
type: z.ZodLiteral<"pdf">;
|
|
@@ -209,123 +209,123 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
209
209
|
type: z.ZodLiteral<"link">;
|
|
210
210
|
url: z.ZodString;
|
|
211
211
|
}, z.core.$strip>], "type">>>;
|
|
212
|
-
sortOrder: z.
|
|
212
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
213
213
|
type: z.ZodLiteral<"task-item">;
|
|
214
|
-
data: z.
|
|
215
|
-
type: z.
|
|
214
|
+
data: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
215
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
216
216
|
number: "number";
|
|
217
217
|
boolean: "boolean";
|
|
218
218
|
percentage: "percentage";
|
|
219
219
|
}>>;
|
|
220
|
-
value: z.
|
|
221
|
-
text: z.
|
|
222
|
-
total: z.
|
|
223
|
-
maximumValue: z.
|
|
224
|
-
minimumValue: z.
|
|
225
|
-
exclusiveMaximum: z.
|
|
226
|
-
exclusiveMinimum: z.
|
|
227
|
-
weight: z.
|
|
220
|
+
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
221
|
+
text: z.ZodNullable<z.ZodString>;
|
|
222
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
223
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
224
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
225
|
+
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
226
|
+
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
227
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
228
228
|
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
229
|
-
readOnly: z.
|
|
230
|
-
valueReference: z.
|
|
229
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
230
|
+
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
231
|
}, z.core.$strip>>>;
|
|
232
232
|
definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
233
|
-
label: z.
|
|
234
|
-
readOnly: z.
|
|
233
|
+
label: z.ZodNullable<z.ZodString>;
|
|
234
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
235
235
|
type: z.ZodLiteral<"select-single">;
|
|
236
|
-
minimum: z.
|
|
237
|
-
maximum: z.
|
|
236
|
+
minimum: z.ZodNullable<z.ZodNumber>;
|
|
237
|
+
maximum: z.ZodNullable<z.ZodNumber>;
|
|
238
238
|
options: z.ZodArray<z.ZodObject<{
|
|
239
|
-
id: z.
|
|
239
|
+
id: z.ZodNullable<z.ZodString>;
|
|
240
240
|
text: z.ZodString;
|
|
241
|
-
intro: z.
|
|
242
|
-
outro: z.
|
|
241
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
242
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
243
243
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
244
244
|
}, z.core.$strip>>;
|
|
245
|
-
defaultValue: z.
|
|
245
|
+
defaultValue: z.ZodNullable<z.ZodString>;
|
|
246
246
|
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
-
label: z.
|
|
248
|
-
readOnly: z.
|
|
247
|
+
label: z.ZodNullable<z.ZodString>;
|
|
248
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
249
249
|
type: z.ZodLiteral<"select-multiple">;
|
|
250
|
-
minimum: z.
|
|
251
|
-
maximum: z.
|
|
250
|
+
minimum: z.ZodNullable<z.ZodNumber>;
|
|
251
|
+
maximum: z.ZodNullable<z.ZodNumber>;
|
|
252
252
|
options: z.ZodArray<z.ZodObject<{
|
|
253
|
-
id: z.
|
|
253
|
+
id: z.ZodNullable<z.ZodString>;
|
|
254
254
|
text: z.ZodString;
|
|
255
|
-
intro: z.
|
|
256
|
-
outro: z.
|
|
255
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
256
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
257
257
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
258
258
|
}, z.core.$strip>>;
|
|
259
|
-
defaultValue: z.
|
|
259
|
+
defaultValue: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
260
260
|
}, 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.
|
|
261
|
+
label: z.ZodNullable<z.ZodString>;
|
|
262
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
263
|
+
type: z.ZodNullable<z.ZodLiteral<"number">>;
|
|
264
|
+
minimum: z.ZodNullable<z.ZodNumber>;
|
|
265
|
+
maximum: z.ZodNullable<z.ZodNumber>;
|
|
266
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
267
|
+
defaultValue: z.ZodNullable<z.ZodNumber>;
|
|
268
268
|
}, z.core.$strip>, z.ZodObject<{
|
|
269
|
-
label: z.
|
|
270
|
-
readOnly: z.
|
|
269
|
+
label: z.ZodNullable<z.ZodString>;
|
|
270
|
+
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
271
271
|
type: z.ZodLiteral<"boolean">;
|
|
272
|
-
labels: z.
|
|
272
|
+
labels: z.ZodNullable<z.ZodObject<{
|
|
273
273
|
true: z.ZodString;
|
|
274
274
|
false: z.ZodString;
|
|
275
275
|
}, z.core.$strip>>;
|
|
276
|
-
defaultValue: z.
|
|
276
|
+
defaultValue: z.ZodNullable<z.ZodBoolean>;
|
|
277
277
|
}, z.core.$strip>], "type">;
|
|
278
|
-
description: z.
|
|
278
|
+
description: z.ZodNullable<z.ZodString>;
|
|
279
279
|
options: z.ZodObject<{
|
|
280
|
-
excludeFromTargets: z.
|
|
280
|
+
excludeFromTargets: z.ZodNullable<z.ZodBoolean>;
|
|
281
281
|
}, z.core.$strip>;
|
|
282
282
|
}, z.core.$strip>>>;
|
|
283
283
|
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
284
284
|
breadcrumbTextFormat: z.ZodString;
|
|
285
285
|
documentTreeFolderTextFormat: z.ZodString;
|
|
286
|
-
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.
|
|
286
|
+
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
287
287
|
}, z.core.$strip>, z.ZodObject<{
|
|
288
288
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
289
289
|
}, z.core.$strip>>, z.ZodObject<{
|
|
290
|
-
reportTitleTextFormat: z.
|
|
290
|
+
reportTitleTextFormat: z.ZodNullable<z.ZodString>;
|
|
291
291
|
}, z.core.$strip>>;
|
|
292
292
|
}, z.core.$strip>>>;
|
|
293
293
|
}, z.core.$strip>>>;
|
|
294
294
|
options: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
295
|
-
hideCodeInReport: z.ZodDefault<z.
|
|
295
|
+
hideCodeInReport: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
296
296
|
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
297
297
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
298
|
-
breadcrumbTextFormat: z.
|
|
298
|
+
breadcrumbTextFormat: z.ZodNullable<z.ZodNever>;
|
|
299
299
|
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
-
hideFromBreadcrumbs: z.ZodDefault<z.
|
|
300
|
+
hideFromBreadcrumbs: z.ZodDefault<z.ZodNullable<z.ZodLiteral<false>>>;
|
|
301
301
|
breadcrumbTextFormat: z.ZodString;
|
|
302
302
|
}, z.core.$strip>]>>, z.ZodUnion<[z.ZodObject<{
|
|
303
303
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
304
|
-
documentTreeFolderTextFormat: z.
|
|
304
|
+
documentTreeFolderTextFormat: z.ZodNullable<z.ZodNever>;
|
|
305
305
|
}, z.core.$strip>, z.ZodObject<{
|
|
306
|
-
hideFromDocumentTree: z.
|
|
306
|
+
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
307
307
|
documentTreeFolderTextFormat: z.ZodString;
|
|
308
308
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
309
309
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
310
310
|
}, z.core.$strip>>, z.ZodObject<{
|
|
311
|
-
reportTitleTextFormat: z.
|
|
311
|
+
reportTitleTextFormat: z.ZodNullable<z.ZodString>;
|
|
312
312
|
}, z.core.$strip>>;
|
|
313
313
|
}, z.core.$strip>>;
|
|
314
314
|
options: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
315
|
-
hideCodeInReport: z.ZodDefault<z.
|
|
315
|
+
hideCodeInReport: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
316
316
|
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
317
317
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
318
|
-
breadcrumbTextFormat: z.
|
|
318
|
+
breadcrumbTextFormat: z.ZodNullable<z.ZodNever>;
|
|
319
319
|
}, z.core.$strip>, z.ZodObject<{
|
|
320
|
-
hideFromBreadcrumbs: z.ZodDefault<z.
|
|
320
|
+
hideFromBreadcrumbs: z.ZodDefault<z.ZodNullable<z.ZodLiteral<false>>>;
|
|
321
321
|
breadcrumbTextFormat: z.ZodString;
|
|
322
322
|
}, z.core.$strip>]>>, z.ZodUnion<[z.ZodObject<{
|
|
323
323
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
324
|
-
documentTreeFolderTextFormat: z.
|
|
324
|
+
documentTreeFolderTextFormat: z.ZodNullable<z.ZodNever>;
|
|
325
325
|
}, z.core.$strip>, z.ZodObject<{
|
|
326
|
-
hideFromDocumentTree: z.
|
|
326
|
+
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
327
327
|
documentTreeFolderTextFormat: z.ZodString;
|
|
328
328
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
329
|
-
reportTitleTextFormat: z.
|
|
329
|
+
reportTitleTextFormat: z.ZodNullable<z.ZodString>;
|
|
330
330
|
}, z.core.$strip>>;
|
|
331
331
|
}, 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,13 +79,13 @@ 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.exclusiveMinimum
|
|
84
|
+
(isNil(definition.rules.exclusiveMinimum) ||
|
|
84
85
|
value >= definition.rules.exclusiveMinimum) &&
|
|
85
|
-
(definition.rules.maximum
|
|
86
|
+
(isNil(definition.rules.maximum) ||
|
|
86
87
|
value < definition.rules.maximum) &&
|
|
87
|
-
(definition.rules.exclusiveMaximum
|
|
88
|
+
(isNil(definition.rules.exclusiveMaximum) ||
|
|
88
89
|
value <= definition.rules.exclusiveMaximum));
|
|
89
90
|
});
|
|
90
91
|
};
|
package/package.json
CHANGED