@openframe-org/criteria-set-protocol 3.0.0-alpha.1 → 3.0.0-alpha.11
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 +54 -12
- package/dist/v1/schemas/certification.js +27 -7
- package/dist/v1/schemas/common.d.ts +54 -39
- package/dist/v1/schemas/common.js +31 -28
- package/dist/v1/schemas/criteria-tree.d.ts +413 -258
- package/dist/v1/schemas/criterion.d.ts +79 -51
- package/dist/v1/schemas/data-map.d.ts +85 -56
- package/dist/v1/schemas/metadata.d.ts +0 -4
- package/dist/v1/schemas/metadata.js +0 -11
- package/dist/v1/schemas/response.d.ts +0 -3
- package/dist/v1/schemas/task-group.d.ts +55 -34
- package/dist/v1/schemas/task-item.d.ts +36 -22
- package/dist/v1/schemas/task.d.ts +38 -24
- package/dist/v1/schemas/theme.d.ts +100 -65
- package/dist/v1/utils.js +1 -5
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare const taskOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
|
|
|
6
6
|
}, z.core.$strip>, z.ZodObject<{
|
|
7
7
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
8
8
|
}, z.core.$strip>>, z.ZodObject<{
|
|
9
|
-
reportTitleTextFormat: z.
|
|
9
|
+
reportTitleTextFormat: z.ZodString;
|
|
10
10
|
}, z.core.$strip>>;
|
|
11
11
|
export declare const taskSchema: z.ZodObject<{
|
|
12
12
|
title: z.ZodString;
|
|
@@ -28,21 +28,28 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
28
28
|
type: z.ZodLiteral<"link">;
|
|
29
29
|
url: z.ZodString;
|
|
30
30
|
}, z.core.$strip>], "type">>>;
|
|
31
|
-
data: z.ZodNullable<z.ZodObject<{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
38
|
-
text: z.ZodNullable<z.ZodString>;
|
|
31
|
+
data: z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
32
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
type: z.ZodLiteral<"number">;
|
|
39
37
|
total: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
39
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
41
41
|
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
42
|
-
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
43
|
-
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
44
42
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
45
|
-
|
|
43
|
+
type: z.ZodLiteral<"percentage">;
|
|
44
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
45
|
+
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
46
|
+
type: z.ZodLiteral<"boolean">;
|
|
47
|
+
value: z.ZodNullable<z.ZodBoolean>;
|
|
48
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
49
|
+
maximumValue: z.ZodOptional<z.ZodNever>;
|
|
50
|
+
minimumValue: z.ZodOptional<z.ZodNever>;
|
|
51
|
+
weight: z.ZodOptional<z.ZodNever>;
|
|
52
|
+
}, z.core.$catchall<z.ZodAny>>]>>;
|
|
46
53
|
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
47
54
|
type: z.ZodLiteral<"task">;
|
|
48
55
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -66,21 +73,28 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
66
73
|
}, z.core.$strip>], "type">>>;
|
|
67
74
|
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
68
75
|
type: z.ZodLiteral<"task-item">;
|
|
69
|
-
data: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
70
|
-
|
|
71
|
-
number: "number";
|
|
72
|
-
boolean: "boolean";
|
|
73
|
-
percentage: "percentage";
|
|
74
|
-
}>>;
|
|
75
|
-
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
76
|
-
text: z.ZodNullable<z.ZodString>;
|
|
77
|
-
total: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
data: z.ZodNullable<z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
77
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
78
78
|
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
79
79
|
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
80
|
-
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
81
|
-
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
82
80
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
81
|
+
type: z.ZodLiteral<"number">;
|
|
82
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
83
83
|
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
84
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
86
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
87
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
88
|
+
type: z.ZodLiteral<"percentage">;
|
|
89
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
90
|
+
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
91
|
+
type: z.ZodLiteral<"boolean">;
|
|
92
|
+
value: z.ZodNullable<z.ZodBoolean>;
|
|
93
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
94
|
+
maximumValue: z.ZodOptional<z.ZodNever>;
|
|
95
|
+
minimumValue: z.ZodOptional<z.ZodNever>;
|
|
96
|
+
weight: z.ZodOptional<z.ZodNever>;
|
|
97
|
+
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
84
98
|
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
85
99
|
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]>>]>>;
|
|
86
100
|
}, z.core.$strip>>>;
|
|
@@ -142,6 +156,6 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
142
156
|
}, z.core.$strip>, z.ZodObject<{
|
|
143
157
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
144
158
|
}, z.core.$strip>>, z.ZodObject<{
|
|
145
|
-
reportTitleTextFormat: z.
|
|
159
|
+
reportTitleTextFormat: z.ZodString;
|
|
146
160
|
}, z.core.$strip>>;
|
|
147
161
|
}, z.core.$strip>;
|
|
@@ -15,18 +15,18 @@ export declare const themeOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.Z
|
|
|
15
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.ZodOptional<z.ZodNever>;
|
|
19
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
20
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.ZodOptional<z.ZodNever>;
|
|
25
25
|
}, z.core.$strip>, z.ZodObject<{
|
|
26
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.ZodString;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
31
|
export declare const themeSchema: z.ZodObject<{
|
|
32
32
|
title: z.ZodString;
|
|
@@ -48,21 +48,28 @@ 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.ZodNullable<z.ZodObject<{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
58
|
-
text: z.ZodNullable<z.ZodString>;
|
|
51
|
+
data: z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
52
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
type: z.ZodLiteral<"number">;
|
|
59
57
|
total: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
59
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
60
60
|
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
61
61
|
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
62
|
-
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
63
|
-
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
64
62
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
65
|
-
|
|
63
|
+
type: z.ZodLiteral<"percentage">;
|
|
64
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
65
|
+
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
66
|
+
type: z.ZodLiteral<"boolean">;
|
|
67
|
+
value: z.ZodNullable<z.ZodBoolean>;
|
|
68
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
69
|
+
maximumValue: z.ZodOptional<z.ZodNever>;
|
|
70
|
+
minimumValue: z.ZodOptional<z.ZodNever>;
|
|
71
|
+
weight: z.ZodOptional<z.ZodNever>;
|
|
72
|
+
}, z.core.$catchall<z.ZodAny>>]>>;
|
|
66
73
|
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
67
74
|
type: z.ZodLiteral<"theme">;
|
|
68
75
|
style: z.ZodNullable<z.ZodObject<{
|
|
@@ -97,21 +104,28 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
97
104
|
type: z.ZodLiteral<"link">;
|
|
98
105
|
url: z.ZodString;
|
|
99
106
|
}, z.core.$strip>], "type">>>;
|
|
100
|
-
data: z.ZodNullable<z.ZodObject<{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
107
|
-
text: z.ZodNullable<z.ZodString>;
|
|
107
|
+
data: z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
108
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
109
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
111
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
112
|
+
type: z.ZodLiteral<"number">;
|
|
108
113
|
total: z.ZodNullable<z.ZodNumber>;
|
|
114
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
115
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
109
116
|
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
110
117
|
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
111
|
-
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
112
|
-
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
113
118
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
114
|
-
|
|
119
|
+
type: z.ZodLiteral<"percentage">;
|
|
120
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
121
|
+
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
122
|
+
type: z.ZodLiteral<"boolean">;
|
|
123
|
+
value: z.ZodNullable<z.ZodBoolean>;
|
|
124
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
125
|
+
maximumValue: z.ZodOptional<z.ZodNever>;
|
|
126
|
+
minimumValue: z.ZodOptional<z.ZodNever>;
|
|
127
|
+
weight: z.ZodOptional<z.ZodNever>;
|
|
128
|
+
}, z.core.$catchall<z.ZodAny>>]>>;
|
|
115
129
|
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
116
130
|
type: z.ZodLiteral<"criterion">;
|
|
117
131
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
@@ -134,21 +148,28 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
134
148
|
type: z.ZodLiteral<"link">;
|
|
135
149
|
url: z.ZodString;
|
|
136
150
|
}, z.core.$strip>], "type">>>;
|
|
137
|
-
data: z.ZodNullable<z.ZodObject<{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
144
|
-
text: z.ZodNullable<z.ZodString>;
|
|
151
|
+
data: z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
152
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
153
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
154
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
155
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
156
|
+
type: z.ZodLiteral<"number">;
|
|
145
157
|
total: z.ZodNullable<z.ZodNumber>;
|
|
158
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
159
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
146
160
|
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
147
161
|
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
148
|
-
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
149
|
-
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
150
162
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
151
|
-
|
|
163
|
+
type: z.ZodLiteral<"percentage">;
|
|
164
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
165
|
+
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
166
|
+
type: z.ZodLiteral<"boolean">;
|
|
167
|
+
value: z.ZodNullable<z.ZodBoolean>;
|
|
168
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
169
|
+
maximumValue: z.ZodOptional<z.ZodNever>;
|
|
170
|
+
minimumValue: z.ZodOptional<z.ZodNever>;
|
|
171
|
+
weight: z.ZodOptional<z.ZodNever>;
|
|
172
|
+
}, z.core.$catchall<z.ZodAny>>]>>;
|
|
152
173
|
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
153
174
|
type: z.ZodLiteral<"task-group">;
|
|
154
175
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -173,21 +194,28 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
173
194
|
type: z.ZodLiteral<"link">;
|
|
174
195
|
url: z.ZodString;
|
|
175
196
|
}, z.core.$strip>], "type">>>;
|
|
176
|
-
data: z.ZodNullable<z.ZodObject<{
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
183
|
-
text: z.ZodNullable<z.ZodString>;
|
|
197
|
+
data: z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
198
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
199
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
200
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
201
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
202
|
+
type: z.ZodLiteral<"number">;
|
|
184
203
|
total: z.ZodNullable<z.ZodNumber>;
|
|
204
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
205
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
185
206
|
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
186
207
|
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
187
|
-
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
188
|
-
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
189
208
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
190
|
-
|
|
209
|
+
type: z.ZodLiteral<"percentage">;
|
|
210
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
211
|
+
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
212
|
+
type: z.ZodLiteral<"boolean">;
|
|
213
|
+
value: z.ZodNullable<z.ZodBoolean>;
|
|
214
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
215
|
+
maximumValue: z.ZodOptional<z.ZodNever>;
|
|
216
|
+
minimumValue: z.ZodOptional<z.ZodNever>;
|
|
217
|
+
weight: z.ZodOptional<z.ZodNever>;
|
|
218
|
+
}, z.core.$catchall<z.ZodAny>>]>>;
|
|
191
219
|
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
192
220
|
type: z.ZodLiteral<"task">;
|
|
193
221
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -211,21 +239,28 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
211
239
|
}, z.core.$strip>], "type">>>;
|
|
212
240
|
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
213
241
|
type: z.ZodLiteral<"task-item">;
|
|
214
|
-
data: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
215
|
-
|
|
216
|
-
number: "number";
|
|
217
|
-
boolean: "boolean";
|
|
218
|
-
percentage: "percentage";
|
|
219
|
-
}>>;
|
|
220
|
-
value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
|
221
|
-
text: z.ZodNullable<z.ZodString>;
|
|
222
|
-
total: z.ZodNullable<z.ZodNumber>;
|
|
242
|
+
data: z.ZodNullable<z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
243
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
223
244
|
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
224
245
|
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
225
|
-
exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
|
|
226
|
-
exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
|
|
227
246
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
247
|
+
type: z.ZodLiteral<"number">;
|
|
248
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
228
249
|
}, z.core.$catchall<z.ZodAny>>, z.ZodObject<{
|
|
250
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
251
|
+
maximumValue: z.ZodNullable<z.ZodNumber>;
|
|
252
|
+
minimumValue: z.ZodNullable<z.ZodNumber>;
|
|
253
|
+
weight: z.ZodNullable<z.ZodNumber>;
|
|
254
|
+
type: z.ZodLiteral<"percentage">;
|
|
255
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
256
|
+
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
257
|
+
type: z.ZodLiteral<"boolean">;
|
|
258
|
+
value: z.ZodNullable<z.ZodBoolean>;
|
|
259
|
+
total: z.ZodOptional<z.ZodNever>;
|
|
260
|
+
maximumValue: z.ZodOptional<z.ZodNever>;
|
|
261
|
+
minimumValue: z.ZodOptional<z.ZodNever>;
|
|
262
|
+
weight: z.ZodOptional<z.ZodNever>;
|
|
263
|
+
}, z.core.$catchall<z.ZodAny>>]>, z.ZodObject<{
|
|
229
264
|
readOnly: z.ZodNullable<z.ZodBoolean>;
|
|
230
265
|
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
266
|
}, z.core.$strip>>>;
|
|
@@ -287,7 +322,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
287
322
|
}, z.core.$strip>, z.ZodObject<{
|
|
288
323
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
289
324
|
}, z.core.$strip>>, z.ZodObject<{
|
|
290
|
-
reportTitleTextFormat: z.
|
|
325
|
+
reportTitleTextFormat: z.ZodString;
|
|
291
326
|
}, z.core.$strip>>;
|
|
292
327
|
}, z.core.$strip>>>;
|
|
293
328
|
}, z.core.$strip>>>;
|
|
@@ -295,37 +330,37 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
295
330
|
hideCodeInReport: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
296
331
|
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
297
332
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
298
|
-
breadcrumbTextFormat: z.
|
|
333
|
+
breadcrumbTextFormat: z.ZodOptional<z.ZodNever>;
|
|
299
334
|
}, z.core.$strip>, z.ZodObject<{
|
|
300
335
|
hideFromBreadcrumbs: z.ZodDefault<z.ZodNullable<z.ZodLiteral<false>>>;
|
|
301
336
|
breadcrumbTextFormat: z.ZodString;
|
|
302
337
|
}, z.core.$strip>]>>, z.ZodUnion<[z.ZodObject<{
|
|
303
338
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
304
|
-
documentTreeFolderTextFormat: z.
|
|
339
|
+
documentTreeFolderTextFormat: z.ZodOptional<z.ZodNever>;
|
|
305
340
|
}, z.core.$strip>, z.ZodObject<{
|
|
306
341
|
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
307
342
|
documentTreeFolderTextFormat: z.ZodString;
|
|
308
343
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
309
344
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
310
345
|
}, z.core.$strip>>, z.ZodObject<{
|
|
311
|
-
reportTitleTextFormat: z.
|
|
346
|
+
reportTitleTextFormat: z.ZodString;
|
|
312
347
|
}, z.core.$strip>>;
|
|
313
348
|
}, z.core.$strip>>;
|
|
314
349
|
options: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
315
350
|
hideCodeInReport: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
316
351
|
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
317
352
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
318
|
-
breadcrumbTextFormat: z.
|
|
353
|
+
breadcrumbTextFormat: z.ZodOptional<z.ZodNever>;
|
|
319
354
|
}, z.core.$strip>, z.ZodObject<{
|
|
320
355
|
hideFromBreadcrumbs: z.ZodDefault<z.ZodNullable<z.ZodLiteral<false>>>;
|
|
321
356
|
breadcrumbTextFormat: z.ZodString;
|
|
322
357
|
}, z.core.$strip>]>>, z.ZodUnion<[z.ZodObject<{
|
|
323
358
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
324
|
-
documentTreeFolderTextFormat: z.
|
|
359
|
+
documentTreeFolderTextFormat: z.ZodOptional<z.ZodNever>;
|
|
325
360
|
}, z.core.$strip>, z.ZodObject<{
|
|
326
361
|
hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
|
|
327
362
|
documentTreeFolderTextFormat: z.ZodString;
|
|
328
363
|
}, z.core.$strip>]>>, z.ZodObject<{
|
|
329
|
-
reportTitleTextFormat: z.
|
|
364
|
+
reportTitleTextFormat: z.ZodString;
|
|
330
365
|
}, z.core.$strip>>;
|
|
331
366
|
}, z.core.$strip>;
|
package/dist/v1/utils.js
CHANGED
|
@@ -81,12 +81,8 @@ const getCertificationsByValue = (certificationDefinitions, value) => {
|
|
|
81
81
|
return certificationDefinitions.filter((definition) => {
|
|
82
82
|
return ((isNil(definition.rules.minimum) ||
|
|
83
83
|
value > definition.rules.minimum) &&
|
|
84
|
-
(isNil(definition.rules.exclusiveMinimum) ||
|
|
85
|
-
value >= definition.rules.exclusiveMinimum) &&
|
|
86
84
|
(isNil(definition.rules.maximum) ||
|
|
87
|
-
value < definition.rules.maximum)
|
|
88
|
-
(isNil(definition.rules.exclusiveMaximum) ||
|
|
89
|
-
value <= definition.rules.exclusiveMaximum));
|
|
85
|
+
value < definition.rules.maximum));
|
|
90
86
|
});
|
|
91
87
|
};
|
|
92
88
|
exports.getCertificationsByValue = getCertificationsByValue;
|
package/package.json
CHANGED