@code-pushup/models 0.106.0 → 0.107.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/package.json +2 -2
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/audit-output.d.ts +24 -0
- package/src/lib/audit.d.ts +10 -2
- package/src/lib/cache-config.d.ts +24 -0
- package/src/lib/category-config.d.ts +18 -2
- package/src/lib/commit.d.ts +8 -0
- package/src/lib/configuration.d.ts +8 -0
- package/src/lib/core-config.d.ts +29 -21
- package/src/lib/group.d.ts +27 -3
- package/src/lib/implementation/schemas.d.ts +27 -3
- package/src/lib/implementation/schemas.js +16 -16
- package/src/lib/implementation/schemas.js.map +1 -1
- package/src/lib/implementation/validate.d.ts +16 -0
- package/src/lib/issue.d.ts +16 -0
- package/src/lib/persist-config.d.ts +16 -0
- package/src/lib/plugin-config.d.ts +50 -10
- package/src/lib/report.d.ts +32 -8
- package/src/lib/reports-diff.d.ts +87 -31
- package/src/lib/runner-config.d.ts +43 -3
- package/src/lib/source.d.ts +8 -0
- package/src/lib/table.d.ts +48 -0
- package/src/lib/tree.d.ts +48 -0
- package/src/lib/upload-config.d.ts +9 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
export declare const outputTransformSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
2
|
+
export declare const outputTransformSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodUnknown], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
3
3
|
slug: z.ZodString;
|
|
4
4
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
5
5
|
value: z.ZodNumber;
|
|
@@ -118,6 +118,14 @@ export declare const outputTransformSchema: z.ZodPipe<z.ZodCustom<unknown, unkno
|
|
|
118
118
|
}, z.core.$strip>]>>>;
|
|
119
119
|
}, z.core.$strip>>;
|
|
120
120
|
}, z.core.$strip>>>]>>, unknown>>;
|
|
121
|
+
/**
|
|
122
|
+
* Type Definition: `OutputTransform`
|
|
123
|
+
*
|
|
124
|
+
* This type is derived from a Zod schema and represents
|
|
125
|
+
* the validated structure of `OutputTransform` used within the application.
|
|
126
|
+
*
|
|
127
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#outputtransform}
|
|
128
|
+
*/
|
|
121
129
|
export type OutputTransform = z.infer<typeof outputTransformSchema>;
|
|
122
130
|
export declare const runnerArgsSchema: z.ZodObject<{
|
|
123
131
|
persist: z.ZodObject<{
|
|
@@ -130,12 +138,20 @@ export declare const runnerArgsSchema: z.ZodObject<{
|
|
|
130
138
|
skipReports: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
131
139
|
}, z.core.$strip>;
|
|
132
140
|
}, z.core.$strip>;
|
|
141
|
+
/**
|
|
142
|
+
* Type Definition: `RunnerArgs`
|
|
143
|
+
*
|
|
144
|
+
* This type is derived from a Zod schema and represents
|
|
145
|
+
* the validated structure of `RunnerArgs` used within the application.
|
|
146
|
+
*
|
|
147
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerargs}
|
|
148
|
+
*/
|
|
133
149
|
export type RunnerArgs = z.infer<typeof runnerArgsSchema>;
|
|
134
150
|
export declare const runnerConfigSchema: z.ZodObject<{
|
|
135
151
|
command: z.ZodString;
|
|
136
152
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
153
|
outputFile: z.ZodString;
|
|
138
|
-
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
154
|
+
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodUnknown], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
139
155
|
slug: z.ZodString;
|
|
140
156
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
141
157
|
value: z.ZodNumber;
|
|
@@ -256,8 +272,16 @@ export declare const runnerConfigSchema: z.ZodObject<{
|
|
|
256
272
|
}, z.core.$strip>>>]>>, unknown>>>;
|
|
257
273
|
configFile: z.ZodOptional<z.ZodString>;
|
|
258
274
|
}, z.core.$strip>;
|
|
275
|
+
/**
|
|
276
|
+
* Type Definition: `RunnerConfig`
|
|
277
|
+
*
|
|
278
|
+
* This type is derived from a Zod schema and represents
|
|
279
|
+
* the validated structure of `RunnerConfig` used within the application.
|
|
280
|
+
*
|
|
281
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerconfig}
|
|
282
|
+
*/
|
|
259
283
|
export type RunnerConfig = z.infer<typeof runnerConfigSchema>;
|
|
260
|
-
export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
284
|
+
export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodObject<{
|
|
261
285
|
persist: z.ZodObject<{
|
|
262
286
|
outputDir: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
263
287
|
filename: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -386,9 +410,25 @@ export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknow
|
|
|
386
410
|
}, z.core.$strip>]>>>;
|
|
387
411
|
}, z.core.$strip>>;
|
|
388
412
|
}, z.core.$strip>>>]>>, unknown>>;
|
|
413
|
+
/**
|
|
414
|
+
* Type Definition: `RunnerFunction`
|
|
415
|
+
*
|
|
416
|
+
* This type is derived from a Zod schema and represents
|
|
417
|
+
* the validated structure of `RunnerFunction` used within the application.
|
|
418
|
+
*
|
|
419
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerfunction}
|
|
420
|
+
*/
|
|
389
421
|
export type RunnerFunction = z.infer<typeof runnerFunctionSchema>;
|
|
390
422
|
export declare const runnerFilesPathsSchema: z.ZodObject<{
|
|
391
423
|
runnerConfigPath: z.ZodString;
|
|
392
424
|
runnerOutputPath: z.ZodString;
|
|
393
425
|
}, z.core.$strip>;
|
|
426
|
+
/**
|
|
427
|
+
* Type Definition: `RunnerFilesPaths`
|
|
428
|
+
*
|
|
429
|
+
* This type is derived from a Zod schema and represents
|
|
430
|
+
* the validated structure of `RunnerFilesPaths` used within the application.
|
|
431
|
+
*
|
|
432
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerfilespaths}
|
|
433
|
+
*/
|
|
394
434
|
export type RunnerFilesPaths = z.infer<typeof runnerFilesPathsSchema>;
|
package/src/lib/source.d.ts
CHANGED
|
@@ -8,4 +8,12 @@ export declare const sourceFileLocationSchema: z.ZodObject<{
|
|
|
8
8
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
}, z.core.$strip>>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
|
+
/**
|
|
12
|
+
* Type Definition: `SourceFileLocation`
|
|
13
|
+
*
|
|
14
|
+
* This type is derived from a Zod schema and represents
|
|
15
|
+
* the validated structure of `SourceFileLocation` used within the application.
|
|
16
|
+
*
|
|
17
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#sourcefilelocation}
|
|
18
|
+
*/
|
|
11
19
|
export type SourceFileLocation = z.infer<typeof sourceFileLocationSchema>;
|
package/src/lib/table.d.ts
CHANGED
|
@@ -4,12 +4,28 @@ export declare const tableAlignmentSchema: z.ZodEnum<{
|
|
|
4
4
|
center: "center";
|
|
5
5
|
right: "right";
|
|
6
6
|
}>;
|
|
7
|
+
/**
|
|
8
|
+
* Type Definition: `TableAlignment`
|
|
9
|
+
*
|
|
10
|
+
* This type is derived from a Zod schema and represents
|
|
11
|
+
* the validated structure of `TableAlignment` used within the application.
|
|
12
|
+
*
|
|
13
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablealignment}
|
|
14
|
+
*/
|
|
7
15
|
export type TableAlignment = z.infer<typeof tableAlignmentSchema>;
|
|
8
16
|
export declare const tableColumnPrimitiveSchema: z.ZodEnum<{
|
|
9
17
|
left: "left";
|
|
10
18
|
center: "center";
|
|
11
19
|
right: "right";
|
|
12
20
|
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Type Definition: `TableColumnPrimitive`
|
|
23
|
+
*
|
|
24
|
+
* This type is derived from a Zod schema and represents
|
|
25
|
+
* the validated structure of `TableColumnPrimitive` used within the application.
|
|
26
|
+
*
|
|
27
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablecolumnprimitive}
|
|
28
|
+
*/
|
|
13
29
|
export type TableColumnPrimitive = z.infer<typeof tableColumnPrimitiveSchema>;
|
|
14
30
|
export declare const tableColumnObjectSchema: z.ZodObject<{
|
|
15
31
|
key: z.ZodString;
|
|
@@ -20,10 +36,34 @@ export declare const tableColumnObjectSchema: z.ZodObject<{
|
|
|
20
36
|
right: "right";
|
|
21
37
|
}>>;
|
|
22
38
|
}, z.core.$strip>;
|
|
39
|
+
/**
|
|
40
|
+
* Type Definition: `TableColumnObject`
|
|
41
|
+
*
|
|
42
|
+
* This type is derived from a Zod schema and represents
|
|
43
|
+
* the validated structure of `TableColumnObject` used within the application.
|
|
44
|
+
*
|
|
45
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablecolumnobject}
|
|
46
|
+
*/
|
|
23
47
|
export type TableColumnObject = z.infer<typeof tableColumnObjectSchema>;
|
|
24
48
|
export declare const tableRowObjectSchema: z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
49
|
+
/**
|
|
50
|
+
* Type Definition: `TableRowObject`
|
|
51
|
+
*
|
|
52
|
+
* This type is derived from a Zod schema and represents
|
|
53
|
+
* the validated structure of `TableRowObject` used within the application.
|
|
54
|
+
*
|
|
55
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablerowobject}
|
|
56
|
+
*/
|
|
25
57
|
export type TableRowObject = z.infer<typeof tableRowObjectSchema>;
|
|
26
58
|
export declare const tableRowPrimitiveSchema: z.ZodArray<z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
59
|
+
/**
|
|
60
|
+
* Type Definition: `TableRowPrimitive`
|
|
61
|
+
*
|
|
62
|
+
* This type is derived from a Zod schema and represents
|
|
63
|
+
* the validated structure of `TableRowPrimitive` used within the application.
|
|
64
|
+
*
|
|
65
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablerowprimitive}
|
|
66
|
+
*/
|
|
27
67
|
export type TableRowPrimitive = z.infer<typeof tableRowPrimitiveSchema>;
|
|
28
68
|
export declare const tableSchema: (description?: string) => z.ZodUnion<readonly [z.ZodObject<{
|
|
29
69
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -50,4 +90,12 @@ export declare const tableSchema: (description?: string) => z.ZodUnion<readonly
|
|
|
50
90
|
}, z.core.$strip>>]>>;
|
|
51
91
|
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>>;
|
|
52
92
|
}, z.core.$strip>]>;
|
|
93
|
+
/**
|
|
94
|
+
* Type Definition: `Table`
|
|
95
|
+
*
|
|
96
|
+
* This type is derived from a Zod schema and represents
|
|
97
|
+
* the validated structure of `Table` used within the application.
|
|
98
|
+
*
|
|
99
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#table}
|
|
100
|
+
*/
|
|
53
101
|
export type Table = z.infer<ReturnType<typeof tableSchema>>;
|
package/src/lib/tree.d.ts
CHANGED
|
@@ -4,6 +4,14 @@ declare const basicTreeNodeDataSchema: z.ZodObject<{
|
|
|
4
4
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export declare const basicTreeNodeSchema: z.ZodType<BasicTreeNode>;
|
|
7
|
+
/**
|
|
8
|
+
* Type Definition: `BasicTreeNode`
|
|
9
|
+
*
|
|
10
|
+
* This type is derived from a Zod schema and represents
|
|
11
|
+
* the validated structure of `BasicTreeNode` used within the application.
|
|
12
|
+
*
|
|
13
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#basictreenode}
|
|
14
|
+
*/
|
|
7
15
|
export type BasicTreeNode = z.infer<typeof basicTreeNodeDataSchema> & {
|
|
8
16
|
children?: BasicTreeNode[];
|
|
9
17
|
};
|
|
@@ -15,6 +23,14 @@ export declare const coverageTreeMissingLOCSchema: z.ZodObject<{
|
|
|
15
23
|
name: z.ZodOptional<z.ZodString>;
|
|
16
24
|
kind: z.ZodOptional<z.ZodString>;
|
|
17
25
|
}, z.core.$strip>;
|
|
26
|
+
/**
|
|
27
|
+
* Type Definition: `CoverageTreeMissingLOC`
|
|
28
|
+
*
|
|
29
|
+
* This type is derived from a Zod schema and represents
|
|
30
|
+
* the validated structure of `CoverageTreeMissingLOC` used within the application.
|
|
31
|
+
*
|
|
32
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#coveragetreemissingloc}
|
|
33
|
+
*/
|
|
18
34
|
export type CoverageTreeMissingLOC = z.infer<typeof coverageTreeMissingLOCSchema>;
|
|
19
35
|
declare const coverageTreeNodeDataSchema: z.ZodObject<{
|
|
20
36
|
name: z.ZodString;
|
|
@@ -31,6 +47,14 @@ declare const coverageTreeNodeDataSchema: z.ZodObject<{
|
|
|
31
47
|
}, z.core.$strip>;
|
|
32
48
|
}, z.core.$strip>;
|
|
33
49
|
export declare const coverageTreeNodeSchema: z.ZodType<CoverageTreeNode>;
|
|
50
|
+
/**
|
|
51
|
+
* Type Definition: `CoverageTreeNode`
|
|
52
|
+
*
|
|
53
|
+
* This type is derived from a Zod schema and represents
|
|
54
|
+
* the validated structure of `CoverageTreeNode` used within the application.
|
|
55
|
+
*
|
|
56
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#coveragetreenode}
|
|
57
|
+
*/
|
|
34
58
|
export type CoverageTreeNode = z.infer<typeof coverageTreeNodeDataSchema> & {
|
|
35
59
|
children?: CoverageTreeNode[];
|
|
36
60
|
};
|
|
@@ -39,12 +63,28 @@ export declare const basicTreeSchema: z.ZodObject<{
|
|
|
39
63
|
type: z.ZodOptional<z.ZodLiteral<"basic">>;
|
|
40
64
|
root: z.ZodType<BasicTreeNode, unknown, z.core.$ZodTypeInternals<BasicTreeNode, unknown>>;
|
|
41
65
|
}, z.core.$strip>;
|
|
66
|
+
/**
|
|
67
|
+
* Type Definition: `BasicTree`
|
|
68
|
+
*
|
|
69
|
+
* This type is derived from a Zod schema and represents
|
|
70
|
+
* the validated structure of `BasicTree` used within the application.
|
|
71
|
+
*
|
|
72
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#basictree}
|
|
73
|
+
*/
|
|
42
74
|
export type BasicTree = z.infer<typeof basicTreeSchema>;
|
|
43
75
|
export declare const coverageTreeSchema: z.ZodObject<{
|
|
44
76
|
title: z.ZodOptional<z.ZodString>;
|
|
45
77
|
type: z.ZodLiteral<"coverage">;
|
|
46
78
|
root: z.ZodType<CoverageTreeNode, unknown, z.core.$ZodTypeInternals<CoverageTreeNode, unknown>>;
|
|
47
79
|
}, z.core.$strip>;
|
|
80
|
+
/**
|
|
81
|
+
* Type Definition: `CoverageTree`
|
|
82
|
+
*
|
|
83
|
+
* This type is derived from a Zod schema and represents
|
|
84
|
+
* the validated structure of `CoverageTree` used within the application.
|
|
85
|
+
*
|
|
86
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#coveragetree}
|
|
87
|
+
*/
|
|
48
88
|
export type CoverageTree = z.infer<typeof coverageTreeSchema>;
|
|
49
89
|
export declare const treeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
50
90
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -55,5 +95,13 @@ export declare const treeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
55
95
|
type: z.ZodLiteral<"coverage">;
|
|
56
96
|
root: z.ZodType<CoverageTreeNode, unknown, z.core.$ZodTypeInternals<CoverageTreeNode, unknown>>;
|
|
57
97
|
}, z.core.$strip>]>;
|
|
98
|
+
/**
|
|
99
|
+
* Type Definition: `Tree`
|
|
100
|
+
*
|
|
101
|
+
* This type is derived from a Zod schema and represents
|
|
102
|
+
* the validated structure of `Tree` used within the application.
|
|
103
|
+
*
|
|
104
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tree}
|
|
105
|
+
*/
|
|
58
106
|
export type Tree = z.infer<typeof treeSchema>;
|
|
59
107
|
export {};
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const uploadConfigSchema: z.ZodObject<{
|
|
3
|
-
server: z.
|
|
3
|
+
server: z.ZodURL;
|
|
4
4
|
apiKey: z.ZodString;
|
|
5
5
|
organization: z.ZodString;
|
|
6
6
|
project: z.ZodString;
|
|
7
7
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
+
/**
|
|
10
|
+
* Type Definition: `UploadConfig`
|
|
11
|
+
*
|
|
12
|
+
* This type is derived from a Zod schema and represents
|
|
13
|
+
* the validated structure of `UploadConfig` used within the application.
|
|
14
|
+
*
|
|
15
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#uploadconfig}
|
|
16
|
+
*/
|
|
9
17
|
export type UploadConfig = z.infer<typeof uploadConfigSchema>;
|