@code-pushup/models 0.45.1 → 0.47.0
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/index.js +4 -4
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/lib/audit-output.d.ts +78 -72
- package/src/lib/audit.d.ts +6 -4
- package/src/lib/category-config.d.ts +19 -12
- package/src/lib/core-config.d.ts +3121 -5539
- package/src/lib/group.d.ts +6 -4
- package/src/lib/implementation/schemas.d.ts +4 -4
- package/src/lib/issue.d.ts +2 -2
- package/src/lib/plugin-config.d.ts +766 -1563
- package/src/lib/report.d.ts +173 -143
- package/src/lib/reports-diff.d.ts +1174 -424
- package/src/lib/runner-config.d.ts +204 -192
- package/src/lib/table.d.ts +14 -12
package/index.js
CHANGED
|
@@ -63,7 +63,7 @@ function missingRefsForCategoriesErrorMsg(categories, plugins) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
// packages/models/src/lib/implementation/schemas.ts
|
|
66
|
-
var
|
|
66
|
+
var tableCellValueSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]).default(null);
|
|
67
67
|
function executionMetaSchema(options = {
|
|
68
68
|
descriptionDate: "Execution start date and time",
|
|
69
69
|
descriptionDuration: "Execution duration in ms"
|
|
@@ -228,10 +228,10 @@ var tableColumnObjectSchema = z4.object({
|
|
|
228
228
|
label: z4.string().optional(),
|
|
229
229
|
align: tableAlignmentSchema.optional()
|
|
230
230
|
});
|
|
231
|
-
var tableRowObjectSchema = z4.record(
|
|
231
|
+
var tableRowObjectSchema = z4.record(tableCellValueSchema, {
|
|
232
232
|
description: "Object row"
|
|
233
233
|
});
|
|
234
|
-
var tableRowPrimitiveSchema = z4.array(
|
|
234
|
+
var tableRowPrimitiveSchema = z4.array(tableCellValueSchema, {
|
|
235
235
|
description: "Primitive row"
|
|
236
236
|
});
|
|
237
237
|
var tableSharedSchema = z4.object({
|
|
@@ -739,12 +739,12 @@ export {
|
|
|
739
739
|
pluginConfigSchema,
|
|
740
740
|
pluginMetaSchema,
|
|
741
741
|
pluginReportSchema,
|
|
742
|
-
primitiveValueSchema,
|
|
743
742
|
reportSchema,
|
|
744
743
|
reportsDiffSchema,
|
|
745
744
|
runnerConfigSchema,
|
|
746
745
|
runnerFunctionSchema,
|
|
747
746
|
tableAlignmentSchema,
|
|
747
|
+
tableCellValueSchema,
|
|
748
748
|
tableColumnObjectSchema,
|
|
749
749
|
tableColumnPrimitiveSchema,
|
|
750
750
|
tableRowObjectSchema,
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { TableCellValue, tableCellValueSchema, } from './lib/implementation/schemas';
|
|
2
2
|
export { Audit, auditSchema } from './lib/audit';
|
|
3
3
|
export { AuditDetails, AuditOutput, AuditOutputs, auditDetailsSchema, auditOutputSchema, auditOutputsSchema, } from './lib/audit-output';
|
|
4
4
|
export { CategoryConfig, CategoryRef, categoryConfigSchema, categoryRefSchema, } from './lib/category-config';
|
|
@@ -42,7 +42,7 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
42
42
|
}>>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
message: string;
|
|
45
|
-
severity: "
|
|
45
|
+
severity: "info" | "warning" | "error";
|
|
46
46
|
source?: {
|
|
47
47
|
file: string;
|
|
48
48
|
position?: {
|
|
@@ -54,7 +54,7 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
54
54
|
} | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
message: string;
|
|
57
|
-
severity: "
|
|
57
|
+
severity: "info" | "warning" | "error";
|
|
58
58
|
source?: {
|
|
59
59
|
file: string;
|
|
60
60
|
position?: {
|
|
@@ -65,20 +65,22 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
65
65
|
} | undefined;
|
|
66
66
|
} | undefined;
|
|
67
67
|
}>, "many">>;
|
|
68
|
-
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
68
|
+
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
69
69
|
title: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, {
|
|
70
71
|
columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>;
|
|
71
|
-
rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
72
|
-
}
|
|
73
|
-
rows: (string | number)[][];
|
|
72
|
+
rows: z.ZodArray<z.ZodArray<z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">, "many">;
|
|
73
|
+
}>, "strip", z.ZodTypeAny, {
|
|
74
|
+
rows: (string | number | boolean | null)[][];
|
|
74
75
|
title?: string | undefined;
|
|
75
76
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
76
77
|
}, {
|
|
77
|
-
rows: (string | number)[][];
|
|
78
|
+
rows: (string | number | boolean | null | undefined)[][];
|
|
78
79
|
title?: string | undefined;
|
|
79
80
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
80
|
-
}>, z.ZodObject<{
|
|
81
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
81
82
|
title: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, {
|
|
82
84
|
columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{
|
|
83
85
|
key: z.ZodString;
|
|
84
86
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -92,9 +94,9 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
92
94
|
label?: string | undefined;
|
|
93
95
|
align?: "left" | "center" | "right" | undefined;
|
|
94
96
|
}>, "many">]>>;
|
|
95
|
-
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
96
|
-
}
|
|
97
|
-
rows: Record<string, string | number>[];
|
|
97
|
+
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>, "many">;
|
|
98
|
+
}>, "strip", z.ZodTypeAny, {
|
|
99
|
+
rows: Record<string, string | number | boolean | null>[];
|
|
98
100
|
title?: string | undefined;
|
|
99
101
|
columns?: ("left" | "center" | "right")[] | {
|
|
100
102
|
key: string;
|
|
@@ -102,7 +104,7 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
102
104
|
align?: "left" | "center" | "right" | undefined;
|
|
103
105
|
}[] | undefined;
|
|
104
106
|
}, {
|
|
105
|
-
rows: Record<string, string | number>[];
|
|
107
|
+
rows: Record<string, string | number | boolean | null | undefined>[];
|
|
106
108
|
title?: string | undefined;
|
|
107
109
|
columns?: ("left" | "center" | "right")[] | {
|
|
108
110
|
key: string;
|
|
@@ -113,7 +115,7 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
113
115
|
}, "strip", z.ZodTypeAny, {
|
|
114
116
|
issues?: {
|
|
115
117
|
message: string;
|
|
116
|
-
severity: "
|
|
118
|
+
severity: "info" | "warning" | "error";
|
|
117
119
|
source?: {
|
|
118
120
|
file: string;
|
|
119
121
|
position?: {
|
|
@@ -125,11 +127,11 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
125
127
|
} | undefined;
|
|
126
128
|
}[] | undefined;
|
|
127
129
|
table?: {
|
|
128
|
-
rows: (string | number)[][];
|
|
130
|
+
rows: (string | number | boolean | null)[][];
|
|
129
131
|
title?: string | undefined;
|
|
130
132
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
131
133
|
} | {
|
|
132
|
-
rows: Record<string, string | number>[];
|
|
134
|
+
rows: Record<string, string | number | boolean | null>[];
|
|
133
135
|
title?: string | undefined;
|
|
134
136
|
columns?: ("left" | "center" | "right")[] | {
|
|
135
137
|
key: string;
|
|
@@ -140,7 +142,7 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
140
142
|
}, {
|
|
141
143
|
issues?: {
|
|
142
144
|
message: string;
|
|
143
|
-
severity: "
|
|
145
|
+
severity: "info" | "warning" | "error";
|
|
144
146
|
source?: {
|
|
145
147
|
file: string;
|
|
146
148
|
position?: {
|
|
@@ -152,11 +154,11 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
152
154
|
} | undefined;
|
|
153
155
|
}[] | undefined;
|
|
154
156
|
table?: {
|
|
155
|
-
rows: (string | number)[][];
|
|
157
|
+
rows: (string | number | boolean | null | undefined)[][];
|
|
156
158
|
title?: string | undefined;
|
|
157
159
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
158
160
|
} | {
|
|
159
|
-
rows: Record<string, string | number>[];
|
|
161
|
+
rows: Record<string, string | number | boolean | null | undefined>[];
|
|
160
162
|
title?: string | undefined;
|
|
161
163
|
columns?: ("left" | "center" | "right")[] | {
|
|
162
164
|
key: string;
|
|
@@ -212,7 +214,7 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
212
214
|
}>>;
|
|
213
215
|
}, "strip", z.ZodTypeAny, {
|
|
214
216
|
message: string;
|
|
215
|
-
severity: "
|
|
217
|
+
severity: "info" | "warning" | "error";
|
|
216
218
|
source?: {
|
|
217
219
|
file: string;
|
|
218
220
|
position?: {
|
|
@@ -224,7 +226,7 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
224
226
|
} | undefined;
|
|
225
227
|
}, {
|
|
226
228
|
message: string;
|
|
227
|
-
severity: "
|
|
229
|
+
severity: "info" | "warning" | "error";
|
|
228
230
|
source?: {
|
|
229
231
|
file: string;
|
|
230
232
|
position?: {
|
|
@@ -235,20 +237,22 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
235
237
|
} | undefined;
|
|
236
238
|
} | undefined;
|
|
237
239
|
}>, "many">>;
|
|
238
|
-
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
240
|
+
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
239
241
|
title: z.ZodOptional<z.ZodString>;
|
|
242
|
+
}, {
|
|
240
243
|
columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>;
|
|
241
|
-
rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
242
|
-
}
|
|
243
|
-
rows: (string | number)[][];
|
|
244
|
+
rows: z.ZodArray<z.ZodArray<z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">, "many">;
|
|
245
|
+
}>, "strip", z.ZodTypeAny, {
|
|
246
|
+
rows: (string | number | boolean | null)[][];
|
|
244
247
|
title?: string | undefined;
|
|
245
248
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
246
249
|
}, {
|
|
247
|
-
rows: (string | number)[][];
|
|
250
|
+
rows: (string | number | boolean | null | undefined)[][];
|
|
248
251
|
title?: string | undefined;
|
|
249
252
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
250
|
-
}>, z.ZodObject<{
|
|
253
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
251
254
|
title: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, {
|
|
252
256
|
columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{
|
|
253
257
|
key: z.ZodString;
|
|
254
258
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -262,9 +266,9 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
262
266
|
label?: string | undefined;
|
|
263
267
|
align?: "left" | "center" | "right" | undefined;
|
|
264
268
|
}>, "many">]>>;
|
|
265
|
-
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
266
|
-
}
|
|
267
|
-
rows: Record<string, string | number>[];
|
|
269
|
+
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>, "many">;
|
|
270
|
+
}>, "strip", z.ZodTypeAny, {
|
|
271
|
+
rows: Record<string, string | number | boolean | null>[];
|
|
268
272
|
title?: string | undefined;
|
|
269
273
|
columns?: ("left" | "center" | "right")[] | {
|
|
270
274
|
key: string;
|
|
@@ -272,7 +276,7 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
272
276
|
align?: "left" | "center" | "right" | undefined;
|
|
273
277
|
}[] | undefined;
|
|
274
278
|
}, {
|
|
275
|
-
rows: Record<string, string | number>[];
|
|
279
|
+
rows: Record<string, string | number | boolean | null | undefined>[];
|
|
276
280
|
title?: string | undefined;
|
|
277
281
|
columns?: ("left" | "center" | "right")[] | {
|
|
278
282
|
key: string;
|
|
@@ -283,7 +287,7 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
283
287
|
}, "strip", z.ZodTypeAny, {
|
|
284
288
|
issues?: {
|
|
285
289
|
message: string;
|
|
286
|
-
severity: "
|
|
290
|
+
severity: "info" | "warning" | "error";
|
|
287
291
|
source?: {
|
|
288
292
|
file: string;
|
|
289
293
|
position?: {
|
|
@@ -295,11 +299,11 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
295
299
|
} | undefined;
|
|
296
300
|
}[] | undefined;
|
|
297
301
|
table?: {
|
|
298
|
-
rows: (string | number)[][];
|
|
302
|
+
rows: (string | number | boolean | null)[][];
|
|
299
303
|
title?: string | undefined;
|
|
300
304
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
301
305
|
} | {
|
|
302
|
-
rows: Record<string, string | number>[];
|
|
306
|
+
rows: Record<string, string | number | boolean | null>[];
|
|
303
307
|
title?: string | undefined;
|
|
304
308
|
columns?: ("left" | "center" | "right")[] | {
|
|
305
309
|
key: string;
|
|
@@ -310,7 +314,7 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
310
314
|
}, {
|
|
311
315
|
issues?: {
|
|
312
316
|
message: string;
|
|
313
|
-
severity: "
|
|
317
|
+
severity: "info" | "warning" | "error";
|
|
314
318
|
source?: {
|
|
315
319
|
file: string;
|
|
316
320
|
position?: {
|
|
@@ -322,11 +326,11 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
322
326
|
} | undefined;
|
|
323
327
|
}[] | undefined;
|
|
324
328
|
table?: {
|
|
325
|
-
rows: (string | number)[][];
|
|
329
|
+
rows: (string | number | boolean | null | undefined)[][];
|
|
326
330
|
title?: string | undefined;
|
|
327
331
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
328
332
|
} | {
|
|
329
|
-
rows: Record<string, string | number>[];
|
|
333
|
+
rows: Record<string, string | number | boolean | null | undefined>[];
|
|
330
334
|
title?: string | undefined;
|
|
331
335
|
columns?: ("left" | "center" | "right")[] | {
|
|
332
336
|
key: string;
|
|
@@ -343,7 +347,7 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
343
347
|
details?: {
|
|
344
348
|
issues?: {
|
|
345
349
|
message: string;
|
|
346
|
-
severity: "
|
|
350
|
+
severity: "info" | "warning" | "error";
|
|
347
351
|
source?: {
|
|
348
352
|
file: string;
|
|
349
353
|
position?: {
|
|
@@ -355,11 +359,11 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
355
359
|
} | undefined;
|
|
356
360
|
}[] | undefined;
|
|
357
361
|
table?: {
|
|
358
|
-
rows: (string | number)[][];
|
|
362
|
+
rows: (string | number | boolean | null)[][];
|
|
359
363
|
title?: string | undefined;
|
|
360
364
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
361
365
|
} | {
|
|
362
|
-
rows: Record<string, string | number>[];
|
|
366
|
+
rows: Record<string, string | number | boolean | null>[];
|
|
363
367
|
title?: string | undefined;
|
|
364
368
|
columns?: ("left" | "center" | "right")[] | {
|
|
365
369
|
key: string;
|
|
@@ -376,7 +380,7 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
376
380
|
details?: {
|
|
377
381
|
issues?: {
|
|
378
382
|
message: string;
|
|
379
|
-
severity: "
|
|
383
|
+
severity: "info" | "warning" | "error";
|
|
380
384
|
source?: {
|
|
381
385
|
file: string;
|
|
382
386
|
position?: {
|
|
@@ -388,11 +392,11 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
388
392
|
} | undefined;
|
|
389
393
|
}[] | undefined;
|
|
390
394
|
table?: {
|
|
391
|
-
rows: (string | number)[][];
|
|
395
|
+
rows: (string | number | boolean | null | undefined)[][];
|
|
392
396
|
title?: string | undefined;
|
|
393
397
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
394
398
|
} | {
|
|
395
|
-
rows: Record<string, string | number>[];
|
|
399
|
+
rows: Record<string, string | number | boolean | null | undefined>[];
|
|
396
400
|
title?: string | undefined;
|
|
397
401
|
columns?: ("left" | "center" | "right")[] | {
|
|
398
402
|
key: string;
|
|
@@ -449,7 +453,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
449
453
|
}>>;
|
|
450
454
|
}, "strip", z.ZodTypeAny, {
|
|
451
455
|
message: string;
|
|
452
|
-
severity: "
|
|
456
|
+
severity: "info" | "warning" | "error";
|
|
453
457
|
source?: {
|
|
454
458
|
file: string;
|
|
455
459
|
position?: {
|
|
@@ -461,7 +465,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
461
465
|
} | undefined;
|
|
462
466
|
}, {
|
|
463
467
|
message: string;
|
|
464
|
-
severity: "
|
|
468
|
+
severity: "info" | "warning" | "error";
|
|
465
469
|
source?: {
|
|
466
470
|
file: string;
|
|
467
471
|
position?: {
|
|
@@ -472,20 +476,22 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
472
476
|
} | undefined;
|
|
473
477
|
} | undefined;
|
|
474
478
|
}>, "many">>;
|
|
475
|
-
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
479
|
+
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
476
480
|
title: z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, {
|
|
477
482
|
columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>;
|
|
478
|
-
rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
479
|
-
}
|
|
480
|
-
rows: (string | number)[][];
|
|
483
|
+
rows: z.ZodArray<z.ZodArray<z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">, "many">;
|
|
484
|
+
}>, "strip", z.ZodTypeAny, {
|
|
485
|
+
rows: (string | number | boolean | null)[][];
|
|
481
486
|
title?: string | undefined;
|
|
482
487
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
483
488
|
}, {
|
|
484
|
-
rows: (string | number)[][];
|
|
489
|
+
rows: (string | number | boolean | null | undefined)[][];
|
|
485
490
|
title?: string | undefined;
|
|
486
491
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
487
|
-
}>, z.ZodObject<{
|
|
492
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
488
493
|
title: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, {
|
|
489
495
|
columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{
|
|
490
496
|
key: z.ZodString;
|
|
491
497
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -499,9 +505,9 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
499
505
|
label?: string | undefined;
|
|
500
506
|
align?: "left" | "center" | "right" | undefined;
|
|
501
507
|
}>, "many">]>>;
|
|
502
|
-
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
503
|
-
}
|
|
504
|
-
rows: Record<string, string | number>[];
|
|
508
|
+
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>, "many">;
|
|
509
|
+
}>, "strip", z.ZodTypeAny, {
|
|
510
|
+
rows: Record<string, string | number | boolean | null>[];
|
|
505
511
|
title?: string | undefined;
|
|
506
512
|
columns?: ("left" | "center" | "right")[] | {
|
|
507
513
|
key: string;
|
|
@@ -509,7 +515,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
509
515
|
align?: "left" | "center" | "right" | undefined;
|
|
510
516
|
}[] | undefined;
|
|
511
517
|
}, {
|
|
512
|
-
rows: Record<string, string | number>[];
|
|
518
|
+
rows: Record<string, string | number | boolean | null | undefined>[];
|
|
513
519
|
title?: string | undefined;
|
|
514
520
|
columns?: ("left" | "center" | "right")[] | {
|
|
515
521
|
key: string;
|
|
@@ -520,7 +526,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
520
526
|
}, "strip", z.ZodTypeAny, {
|
|
521
527
|
issues?: {
|
|
522
528
|
message: string;
|
|
523
|
-
severity: "
|
|
529
|
+
severity: "info" | "warning" | "error";
|
|
524
530
|
source?: {
|
|
525
531
|
file: string;
|
|
526
532
|
position?: {
|
|
@@ -532,11 +538,11 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
532
538
|
} | undefined;
|
|
533
539
|
}[] | undefined;
|
|
534
540
|
table?: {
|
|
535
|
-
rows: (string | number)[][];
|
|
541
|
+
rows: (string | number | boolean | null)[][];
|
|
536
542
|
title?: string | undefined;
|
|
537
543
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
538
544
|
} | {
|
|
539
|
-
rows: Record<string, string | number>[];
|
|
545
|
+
rows: Record<string, string | number | boolean | null>[];
|
|
540
546
|
title?: string | undefined;
|
|
541
547
|
columns?: ("left" | "center" | "right")[] | {
|
|
542
548
|
key: string;
|
|
@@ -547,7 +553,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
547
553
|
}, {
|
|
548
554
|
issues?: {
|
|
549
555
|
message: string;
|
|
550
|
-
severity: "
|
|
556
|
+
severity: "info" | "warning" | "error";
|
|
551
557
|
source?: {
|
|
552
558
|
file: string;
|
|
553
559
|
position?: {
|
|
@@ -559,11 +565,11 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
559
565
|
} | undefined;
|
|
560
566
|
}[] | undefined;
|
|
561
567
|
table?: {
|
|
562
|
-
rows: (string | number)[][];
|
|
568
|
+
rows: (string | number | boolean | null | undefined)[][];
|
|
563
569
|
title?: string | undefined;
|
|
564
570
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
565
571
|
} | {
|
|
566
|
-
rows: Record<string, string | number>[];
|
|
572
|
+
rows: Record<string, string | number | boolean | null | undefined>[];
|
|
567
573
|
title?: string | undefined;
|
|
568
574
|
columns?: ("left" | "center" | "right")[] | {
|
|
569
575
|
key: string;
|
|
@@ -580,7 +586,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
580
586
|
details?: {
|
|
581
587
|
issues?: {
|
|
582
588
|
message: string;
|
|
583
|
-
severity: "
|
|
589
|
+
severity: "info" | "warning" | "error";
|
|
584
590
|
source?: {
|
|
585
591
|
file: string;
|
|
586
592
|
position?: {
|
|
@@ -592,11 +598,11 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
592
598
|
} | undefined;
|
|
593
599
|
}[] | undefined;
|
|
594
600
|
table?: {
|
|
595
|
-
rows: (string | number)[][];
|
|
601
|
+
rows: (string | number | boolean | null)[][];
|
|
596
602
|
title?: string | undefined;
|
|
597
603
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
598
604
|
} | {
|
|
599
|
-
rows: Record<string, string | number>[];
|
|
605
|
+
rows: Record<string, string | number | boolean | null>[];
|
|
600
606
|
title?: string | undefined;
|
|
601
607
|
columns?: ("left" | "center" | "right")[] | {
|
|
602
608
|
key: string;
|
|
@@ -613,7 +619,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
613
619
|
details?: {
|
|
614
620
|
issues?: {
|
|
615
621
|
message: string;
|
|
616
|
-
severity: "
|
|
622
|
+
severity: "info" | "warning" | "error";
|
|
617
623
|
source?: {
|
|
618
624
|
file: string;
|
|
619
625
|
position?: {
|
|
@@ -625,11 +631,11 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
625
631
|
} | undefined;
|
|
626
632
|
}[] | undefined;
|
|
627
633
|
table?: {
|
|
628
|
-
rows: (string | number)[][];
|
|
634
|
+
rows: (string | number | boolean | null | undefined)[][];
|
|
629
635
|
title?: string | undefined;
|
|
630
636
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
631
637
|
} | {
|
|
632
|
-
rows: Record<string, string | number>[];
|
|
638
|
+
rows: Record<string, string | number | boolean | null | undefined>[];
|
|
633
639
|
title?: string | undefined;
|
|
634
640
|
columns?: ("left" | "center" | "right")[] | {
|
|
635
641
|
key: string;
|
|
@@ -646,7 +652,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
646
652
|
details?: {
|
|
647
653
|
issues?: {
|
|
648
654
|
message: string;
|
|
649
|
-
severity: "
|
|
655
|
+
severity: "info" | "warning" | "error";
|
|
650
656
|
source?: {
|
|
651
657
|
file: string;
|
|
652
658
|
position?: {
|
|
@@ -658,11 +664,11 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
658
664
|
} | undefined;
|
|
659
665
|
}[] | undefined;
|
|
660
666
|
table?: {
|
|
661
|
-
rows: (string | number)[][];
|
|
667
|
+
rows: (string | number | boolean | null)[][];
|
|
662
668
|
title?: string | undefined;
|
|
663
669
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
664
670
|
} | {
|
|
665
|
-
rows: Record<string, string | number>[];
|
|
671
|
+
rows: Record<string, string | number | boolean | null>[];
|
|
666
672
|
title?: string | undefined;
|
|
667
673
|
columns?: ("left" | "center" | "right")[] | {
|
|
668
674
|
key: string;
|
|
@@ -679,7 +685,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
679
685
|
details?: {
|
|
680
686
|
issues?: {
|
|
681
687
|
message: string;
|
|
682
|
-
severity: "
|
|
688
|
+
severity: "info" | "warning" | "error";
|
|
683
689
|
source?: {
|
|
684
690
|
file: string;
|
|
685
691
|
position?: {
|
|
@@ -691,11 +697,11 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
691
697
|
} | undefined;
|
|
692
698
|
}[] | undefined;
|
|
693
699
|
table?: {
|
|
694
|
-
rows: (string | number)[][];
|
|
700
|
+
rows: (string | number | boolean | null | undefined)[][];
|
|
695
701
|
title?: string | undefined;
|
|
696
702
|
columns?: ("left" | "center" | "right")[] | undefined;
|
|
697
703
|
} | {
|
|
698
|
-
rows: Record<string, string | number>[];
|
|
704
|
+
rows: Record<string, string | number | boolean | null | undefined>[];
|
|
699
705
|
title?: string | undefined;
|
|
700
706
|
columns?: ("left" | "center" | "right")[] | {
|
|
701
707
|
key: string;
|
package/src/lib/audit.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const auditSchema: z.ZodObject<{
|
|
2
|
+
export declare const auditSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
3
|
slug: z.ZodString;
|
|
4
|
+
}, {
|
|
4
5
|
title: z.ZodString;
|
|
5
6
|
description: z.ZodOptional<z.ZodString>;
|
|
6
7
|
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
7
|
-
}
|
|
8
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8
9
|
slug: string;
|
|
9
10
|
title: string;
|
|
10
11
|
description?: string | undefined;
|
|
@@ -16,12 +17,13 @@ export declare const auditSchema: z.ZodObject<{
|
|
|
16
17
|
docsUrl?: string | undefined;
|
|
17
18
|
}>;
|
|
18
19
|
export type Audit = z.infer<typeof auditSchema>;
|
|
19
|
-
export declare const pluginAuditsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
20
|
+
export declare const pluginAuditsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
20
21
|
slug: z.ZodString;
|
|
22
|
+
}, {
|
|
21
23
|
title: z.ZodString;
|
|
22
24
|
description: z.ZodOptional<z.ZodString>;
|
|
23
25
|
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
24
|
-
}
|
|
26
|
+
}>, "strip", z.ZodTypeAny, {
|
|
25
27
|
slug: string;
|
|
26
28
|
title: string;
|
|
27
29
|
description?: string | undefined;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const categoryRefSchema: z.ZodObject<{
|
|
2
|
+
export declare const categoryRefSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
3
|
slug: z.ZodString;
|
|
4
4
|
weight: z.ZodNumber;
|
|
5
|
+
}, {
|
|
5
6
|
type: z.ZodEnum<["audit", "group"]>;
|
|
6
7
|
plugin: z.ZodString;
|
|
7
|
-
}
|
|
8
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8
9
|
slug: string;
|
|
9
10
|
weight: number;
|
|
10
11
|
type: "audit" | "group";
|
|
@@ -16,15 +17,15 @@ export declare const categoryRefSchema: z.ZodObject<{
|
|
|
16
17
|
plugin: string;
|
|
17
18
|
}>;
|
|
18
19
|
export type CategoryRef = z.infer<typeof categoryRefSchema>;
|
|
19
|
-
export declare const categoryConfigSchema: z.ZodObject<{
|
|
20
|
-
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
export declare const categoryConfigSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
21
21
|
slug: z.ZodString;
|
|
22
|
-
refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
22
|
+
refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
23
23
|
slug: z.ZodString;
|
|
24
24
|
weight: z.ZodNumber;
|
|
25
|
+
}, {
|
|
25
26
|
type: z.ZodEnum<["audit", "group"]>;
|
|
26
27
|
plugin: z.ZodString;
|
|
27
|
-
}
|
|
28
|
+
}>, "strip", z.ZodTypeAny, {
|
|
28
29
|
slug: string;
|
|
29
30
|
weight: number;
|
|
30
31
|
type: "audit" | "group";
|
|
@@ -55,10 +56,13 @@ export declare const categoryConfigSchema: z.ZodObject<{
|
|
|
55
56
|
type: "audit" | "group";
|
|
56
57
|
plugin: string;
|
|
57
58
|
}[]>;
|
|
59
|
+
}, {
|
|
58
60
|
title: z.ZodString;
|
|
61
|
+
description: z.ZodOptional<z.ZodString>;
|
|
59
62
|
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
63
|
+
}>, {
|
|
60
64
|
isBinary: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
-
}
|
|
65
|
+
}>, "strip", z.ZodTypeAny, {
|
|
62
66
|
slug: string;
|
|
63
67
|
refs: {
|
|
64
68
|
slug: string;
|
|
@@ -85,15 +89,15 @@ export declare const categoryConfigSchema: z.ZodObject<{
|
|
|
85
89
|
}>;
|
|
86
90
|
export type CategoryConfig = z.infer<typeof categoryConfigSchema>;
|
|
87
91
|
export declare function duplicateRefsInCategoryMetricsErrorMsg(metrics: CategoryRef[]): string;
|
|
88
|
-
export declare const categoriesSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
89
|
-
description: z.ZodOptional<z.ZodString>;
|
|
92
|
+
export declare const categoriesSchema: z.ZodEffects<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
90
93
|
slug: z.ZodString;
|
|
91
|
-
refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
94
|
+
refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
92
95
|
slug: z.ZodString;
|
|
93
96
|
weight: z.ZodNumber;
|
|
97
|
+
}, {
|
|
94
98
|
type: z.ZodEnum<["audit", "group"]>;
|
|
95
99
|
plugin: z.ZodString;
|
|
96
|
-
}
|
|
100
|
+
}>, "strip", z.ZodTypeAny, {
|
|
97
101
|
slug: string;
|
|
98
102
|
weight: number;
|
|
99
103
|
type: "audit" | "group";
|
|
@@ -124,10 +128,13 @@ export declare const categoriesSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
|
124
128
|
type: "audit" | "group";
|
|
125
129
|
plugin: string;
|
|
126
130
|
}[]>;
|
|
131
|
+
}, {
|
|
127
132
|
title: z.ZodString;
|
|
133
|
+
description: z.ZodOptional<z.ZodString>;
|
|
128
134
|
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
135
|
+
}>, {
|
|
129
136
|
isBinary: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
-
}
|
|
137
|
+
}>, "strip", z.ZodTypeAny, {
|
|
131
138
|
slug: string;
|
|
132
139
|
refs: {
|
|
133
140
|
slug: string;
|