@code-pushup/models 0.96.0 → 0.96.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/package.json +1 -1
- package/src/lib/audit-output.d.ts +24 -0
- package/src/lib/audit.d.ts +8 -0
- package/src/lib/cache-config.d.ts +24 -0
- package/src/lib/category-config.d.ts +16 -0
- package/src/lib/commit.d.ts +8 -0
- package/src/lib/configuration.d.ts +8 -0
- package/src/lib/core-config.d.ts +8 -0
- package/src/lib/group.d.ts +24 -0
- package/src/lib/implementation/schemas.d.ts +24 -0
- 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 +40 -0
- package/src/lib/report.d.ts +24 -0
- package/src/lib/reports-diff.d.ts +56 -0
- package/src/lib/runner-config.d.ts +40 -0
- 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 +8 -0
package/package.json
CHANGED
|
@@ -54,6 +54,14 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
54
54
|
root: z.ZodType<import("./tree.js").CoverageTreeNode, unknown, z.core.$ZodTypeInternals<import("./tree.js").CoverageTreeNode, unknown>>;
|
|
55
55
|
}, z.core.$strip>]>>>;
|
|
56
56
|
}, z.core.$strip>;
|
|
57
|
+
/**
|
|
58
|
+
* Type Definition: `AuditDetails`
|
|
59
|
+
*
|
|
60
|
+
* This type is derived from a Zod schema and represents
|
|
61
|
+
* the validated structure of `AuditDetails` used within the application.
|
|
62
|
+
*
|
|
63
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditdetails}
|
|
64
|
+
*/
|
|
57
65
|
export type AuditDetails = z.infer<typeof auditDetailsSchema>;
|
|
58
66
|
export declare const auditOutputSchema: z.ZodObject<{
|
|
59
67
|
slug: z.ZodString;
|
|
@@ -115,6 +123,14 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
115
123
|
}, z.core.$strip>]>>>;
|
|
116
124
|
}, z.core.$strip>>;
|
|
117
125
|
}, z.core.$strip>;
|
|
126
|
+
/**
|
|
127
|
+
* Type Definition: `AuditOutput`
|
|
128
|
+
*
|
|
129
|
+
* This type is derived from a Zod schema and represents
|
|
130
|
+
* the validated structure of `AuditOutput` used within the application.
|
|
131
|
+
*
|
|
132
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditoutput}
|
|
133
|
+
*/
|
|
118
134
|
export type AuditOutput = z.infer<typeof auditOutputSchema>;
|
|
119
135
|
export declare const auditOutputsSchema: z.ZodArray<z.ZodObject<{
|
|
120
136
|
slug: z.ZodString;
|
|
@@ -176,4 +192,12 @@ export declare const auditOutputsSchema: z.ZodArray<z.ZodObject<{
|
|
|
176
192
|
}, z.core.$strip>]>>>;
|
|
177
193
|
}, z.core.$strip>>;
|
|
178
194
|
}, z.core.$strip>>;
|
|
195
|
+
/**
|
|
196
|
+
* Type Definition: `AuditOutputs`
|
|
197
|
+
*
|
|
198
|
+
* This type is derived from a Zod schema and represents
|
|
199
|
+
* the validated structure of `AuditOutputs` used within the application.
|
|
200
|
+
*
|
|
201
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditoutputs}
|
|
202
|
+
*/
|
|
179
203
|
export type AuditOutputs = z.infer<typeof auditOutputsSchema>;
|
package/src/lib/audit.d.ts
CHANGED
|
@@ -6,6 +6,14 @@ export declare const auditSchema: z.ZodObject<{
|
|
|
6
6
|
docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
|
|
7
7
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
+
/**
|
|
10
|
+
* Type Definition: `Audit`
|
|
11
|
+
*
|
|
12
|
+
* This type is derived from a Zod schema and represents
|
|
13
|
+
* the validated structure of `Audit` used within the application.
|
|
14
|
+
*
|
|
15
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#audit}
|
|
16
|
+
*/
|
|
9
17
|
export type Audit = z.infer<typeof auditSchema>;
|
|
10
18
|
export declare const pluginAuditsSchema: z.ZodArray<z.ZodObject<{
|
|
11
19
|
slug: z.ZodString;
|
|
@@ -3,11 +3,35 @@ export declare const cacheConfigObjectSchema: z.ZodObject<{
|
|
|
3
3
|
read: z.ZodDefault<z.ZodBoolean>;
|
|
4
4
|
write: z.ZodDefault<z.ZodBoolean>;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
+
/**
|
|
7
|
+
* Type Definition: `CacheConfigObject`
|
|
8
|
+
*
|
|
9
|
+
* This type is derived from a Zod schema and represents
|
|
10
|
+
* the validated structure of `CacheConfigObject` used within the application.
|
|
11
|
+
*
|
|
12
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#cacheconfigobject}
|
|
13
|
+
*/
|
|
6
14
|
export type CacheConfigObject = z.infer<typeof cacheConfigObjectSchema>;
|
|
7
15
|
export declare const cacheConfigShorthandSchema: z.ZodBoolean;
|
|
16
|
+
/**
|
|
17
|
+
* Type Definition: `CacheConfigShorthand`
|
|
18
|
+
*
|
|
19
|
+
* This type is derived from a Zod schema and represents
|
|
20
|
+
* the validated structure of `CacheConfigShorthand` used within the application.
|
|
21
|
+
*
|
|
22
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#cacheconfigshorthand}
|
|
23
|
+
*/
|
|
8
24
|
export type CacheConfigShorthand = z.infer<typeof cacheConfigShorthandSchema>;
|
|
9
25
|
export declare const cacheConfigSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
10
26
|
read: z.ZodDefault<z.ZodBoolean>;
|
|
11
27
|
write: z.ZodDefault<z.ZodBoolean>;
|
|
12
28
|
}, z.core.$strip>]>>;
|
|
29
|
+
/**
|
|
30
|
+
* Type Definition: `CacheConfig`
|
|
31
|
+
*
|
|
32
|
+
* This type is derived from a Zod schema and represents
|
|
33
|
+
* the validated structure of `CacheConfig` used within the application.
|
|
34
|
+
*
|
|
35
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#cacheconfig}
|
|
36
|
+
*/
|
|
13
37
|
export type CacheConfig = z.infer<typeof cacheConfigSchema>;
|
|
@@ -8,6 +8,14 @@ export declare const categoryRefSchema: z.ZodObject<{
|
|
|
8
8
|
}>;
|
|
9
9
|
plugin: z.ZodString;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
|
+
/**
|
|
12
|
+
* Type Definition: `CategoryRef`
|
|
13
|
+
*
|
|
14
|
+
* This type is derived from a Zod schema and represents
|
|
15
|
+
* the validated structure of `CategoryRef` used within the application.
|
|
16
|
+
*
|
|
17
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#categoryref}
|
|
18
|
+
*/
|
|
11
19
|
export type CategoryRef = z.infer<typeof categoryRefSchema>;
|
|
12
20
|
export declare const categoryConfigSchema: z.ZodObject<{
|
|
13
21
|
slug: z.ZodString;
|
|
@@ -26,6 +34,14 @@ export declare const categoryConfigSchema: z.ZodObject<{
|
|
|
26
34
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
27
35
|
scoreTarget: z.ZodOptional<z.ZodNumber>;
|
|
28
36
|
}, z.core.$strip>;
|
|
37
|
+
/**
|
|
38
|
+
* Type Definition: `CategoryConfig`
|
|
39
|
+
*
|
|
40
|
+
* This type is derived from a Zod schema and represents
|
|
41
|
+
* the validated structure of `CategoryConfig` used within the application.
|
|
42
|
+
*
|
|
43
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#categoryconfig}
|
|
44
|
+
*/
|
|
29
45
|
export type CategoryConfig = z.infer<typeof categoryConfigSchema>;
|
|
30
46
|
export declare const categoriesSchema: z.ZodArray<z.ZodObject<{
|
|
31
47
|
slug: z.ZodString;
|
package/src/lib/commit.d.ts
CHANGED
|
@@ -5,4 +5,12 @@ export declare const commitSchema: z.ZodObject<{
|
|
|
5
5
|
date: z.ZodCoercedDate<unknown>;
|
|
6
6
|
author: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
+
/**
|
|
9
|
+
* Type Definition: `Commit`
|
|
10
|
+
*
|
|
11
|
+
* This type is derived from a Zod schema and represents
|
|
12
|
+
* the validated structure of `Commit` used within the application.
|
|
13
|
+
*
|
|
14
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#commit}
|
|
15
|
+
*/
|
|
8
16
|
export type Commit = z.infer<typeof commitSchema>;
|
|
@@ -13,4 +13,12 @@ export declare const pluginArtifactOptionsSchema: z.ZodObject<{
|
|
|
13
13
|
}, z.core.$strip>]>>;
|
|
14
14
|
artifactsPaths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
|
+
/**
|
|
17
|
+
* Type Definition: `PluginArtifactOptions`
|
|
18
|
+
*
|
|
19
|
+
* This type is derived from a Zod schema and represents
|
|
20
|
+
* the validated structure of `PluginArtifactOptions` used within the application.
|
|
21
|
+
*
|
|
22
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginartifactoptions}
|
|
23
|
+
*/
|
|
16
24
|
export type PluginArtifactOptions = z.infer<typeof pluginArtifactOptionsSchema>;
|
package/src/lib/core-config.d.ts
CHANGED
|
@@ -3535,4 +3535,12 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
3535
3535
|
scoreTarget: z.ZodOptional<z.ZodNumber>;
|
|
3536
3536
|
}, z.core.$strip>>>;
|
|
3537
3537
|
}, z.core.$strip>;
|
|
3538
|
+
/**
|
|
3539
|
+
* Type Definition: `CoreConfig`
|
|
3540
|
+
*
|
|
3541
|
+
* This type is derived from a Zod schema and represents
|
|
3542
|
+
* the validated structure of `CoreConfig` used within the application.
|
|
3543
|
+
*
|
|
3544
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#coreconfig}
|
|
3545
|
+
*/
|
|
3538
3546
|
export type CoreConfig = z.infer<typeof coreConfigSchema>;
|
package/src/lib/group.d.ts
CHANGED
|
@@ -3,6 +3,14 @@ export declare const groupRefSchema: z.ZodObject<{
|
|
|
3
3
|
slug: z.ZodString;
|
|
4
4
|
weight: z.ZodNumber;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
+
/**
|
|
7
|
+
* Type Definition: `GroupRef`
|
|
8
|
+
*
|
|
9
|
+
* This type is derived from a Zod schema and represents
|
|
10
|
+
* the validated structure of `GroupRef` used within the application.
|
|
11
|
+
*
|
|
12
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#groupref}
|
|
13
|
+
*/
|
|
6
14
|
export type GroupRef = z.infer<typeof groupRefSchema>;
|
|
7
15
|
export declare const groupMetaSchema: z.ZodObject<{
|
|
8
16
|
title: z.ZodString;
|
|
@@ -10,6 +18,14 @@ export declare const groupMetaSchema: z.ZodObject<{
|
|
|
10
18
|
docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
|
|
11
19
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
12
20
|
}, z.core.$strip>;
|
|
21
|
+
/**
|
|
22
|
+
* Type Definition: `GroupMeta`
|
|
23
|
+
*
|
|
24
|
+
* This type is derived from a Zod schema and represents
|
|
25
|
+
* the validated structure of `GroupMeta` used within the application.
|
|
26
|
+
*
|
|
27
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#groupmeta}
|
|
28
|
+
*/
|
|
13
29
|
export type GroupMeta = z.infer<typeof groupMetaSchema>;
|
|
14
30
|
export declare const groupSchema: z.ZodObject<{
|
|
15
31
|
slug: z.ZodString;
|
|
@@ -22,6 +38,14 @@ export declare const groupSchema: z.ZodObject<{
|
|
|
22
38
|
docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
|
|
23
39
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
24
40
|
}, z.core.$strip>;
|
|
41
|
+
/**
|
|
42
|
+
* Type Definition: `Group`
|
|
43
|
+
*
|
|
44
|
+
* This type is derived from a Zod schema and represents
|
|
45
|
+
* the validated structure of `Group` used within the application.
|
|
46
|
+
*
|
|
47
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#group}
|
|
48
|
+
*/
|
|
25
49
|
export type Group = z.infer<typeof groupSchema>;
|
|
26
50
|
export declare const groupsSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
51
|
slug: z.ZodString;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type ZodObject, type ZodOptional, type ZodString, z } from 'zod';
|
|
2
2
|
export declare const tableCellValueSchema: z.ZodDefault<z.ZodUnion<readonly [ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
3
|
+
/**
|
|
4
|
+
* Type Definition: `TableCellValue`
|
|
5
|
+
*
|
|
6
|
+
* This type is derived from a Zod schema and represents
|
|
7
|
+
* the validated structure of `TableCellValue` used within the application.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablecellvalue}
|
|
10
|
+
*/
|
|
3
11
|
export type TableCellValue = z.infer<typeof tableCellValueSchema>;
|
|
4
12
|
/**
|
|
5
13
|
* Schema for execution meta date
|
|
@@ -63,6 +71,14 @@ export declare function weightedRefSchema(description: string, slugDescription:
|
|
|
63
71
|
slug: ZodString;
|
|
64
72
|
weight: z.ZodNumber;
|
|
65
73
|
}, z.core.$strip>;
|
|
74
|
+
/**
|
|
75
|
+
* Type Definition: `WeightedRef`
|
|
76
|
+
*
|
|
77
|
+
* This type is derived from a Zod schema and represents
|
|
78
|
+
* the validated structure of `WeightedRef` used within the application.
|
|
79
|
+
*
|
|
80
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#weightedref}
|
|
81
|
+
*/
|
|
66
82
|
export type WeightedRef = z.infer<ReturnType<typeof weightedRefSchema>>;
|
|
67
83
|
export declare function scorableSchema<T extends ReturnType<typeof weightedRefSchema>>(description: string, refSchema: T, duplicateCheckFn: z.core.CheckFn<z.infer<T>[]>): ZodObject<{
|
|
68
84
|
slug: ZodString;
|
|
@@ -928,6 +944,14 @@ export declare const materialIconSchema: z.ZodEnum<{
|
|
|
928
944
|
nodejs_alt: "nodejs_alt";
|
|
929
945
|
silverstripe: "silverstripe";
|
|
930
946
|
}>;
|
|
947
|
+
/**
|
|
948
|
+
* Type Definition: `MaterialIcon`
|
|
949
|
+
*
|
|
950
|
+
* This type is derived from a Zod schema and represents
|
|
951
|
+
* the validated structure of `MaterialIcon` used within the application.
|
|
952
|
+
*
|
|
953
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#materialicon}
|
|
954
|
+
*/
|
|
931
955
|
export type MaterialIcon = z.infer<typeof materialIconSchema>;
|
|
932
956
|
export declare const filePositionSchema: ZodObject<{
|
|
933
957
|
startLine: z.ZodNumber;
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { ZodError, type ZodType, z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Type Definition: `SchemaValidationContext`
|
|
4
|
+
*
|
|
5
|
+
* This type is derived from a Zod schema and represents
|
|
6
|
+
* the validated structure of `SchemaValidationContext` used within the application.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#schemavalidationcontext}
|
|
9
|
+
*/
|
|
2
10
|
type SchemaValidationContext = {
|
|
3
11
|
filePath?: string;
|
|
4
12
|
};
|
|
5
13
|
/**
|
|
6
14
|
* Autocompletes valid Zod Schema input for convience, but will accept any other data as well
|
|
7
15
|
*/
|
|
16
|
+
/**
|
|
17
|
+
* Type Definition: `ZodInputLooseAutocomplete`
|
|
18
|
+
*
|
|
19
|
+
* This type is derived from a Zod schema and represents
|
|
20
|
+
* the validated structure of `ZodInputLooseAutocomplete` used within the application.
|
|
21
|
+
*
|
|
22
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#zodinputlooseautocomplete}
|
|
23
|
+
*/
|
|
8
24
|
type ZodInputLooseAutocomplete<T extends ZodType> = z.input<T> | {} | null | undefined;
|
|
9
25
|
export declare class SchemaValidationError extends Error {
|
|
10
26
|
constructor(error: ZodError, schema: ZodType, { filePath }: SchemaValidationContext);
|
package/src/lib/issue.d.ts
CHANGED
|
@@ -4,6 +4,14 @@ export declare const issueSeveritySchema: z.ZodEnum<{
|
|
|
4
4
|
info: "info";
|
|
5
5
|
warning: "warning";
|
|
6
6
|
}>;
|
|
7
|
+
/**
|
|
8
|
+
* Type Definition: `IssueSeverity`
|
|
9
|
+
*
|
|
10
|
+
* This type is derived from a Zod schema and represents
|
|
11
|
+
* the validated structure of `IssueSeverity` used within the application.
|
|
12
|
+
*
|
|
13
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#issueseverity}
|
|
14
|
+
*/
|
|
7
15
|
export type IssueSeverity = z.infer<typeof issueSeveritySchema>;
|
|
8
16
|
export declare const issueSchema: z.ZodObject<{
|
|
9
17
|
message: z.ZodString;
|
|
@@ -22,4 +30,12 @@ export declare const issueSchema: z.ZodObject<{
|
|
|
22
30
|
}, z.core.$strip>>;
|
|
23
31
|
}, z.core.$strip>>;
|
|
24
32
|
}, z.core.$strip>;
|
|
33
|
+
/**
|
|
34
|
+
* Type Definition: `Issue`
|
|
35
|
+
*
|
|
36
|
+
* This type is derived from a Zod schema and represents
|
|
37
|
+
* the validated structure of `Issue` used within the application.
|
|
38
|
+
*
|
|
39
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#issue}
|
|
40
|
+
*/
|
|
25
41
|
export type Issue = z.infer<typeof issueSchema>;
|
|
@@ -3,6 +3,14 @@ export declare const formatSchema: z.ZodEnum<{
|
|
|
3
3
|
json: "json";
|
|
4
4
|
md: "md";
|
|
5
5
|
}>;
|
|
6
|
+
/**
|
|
7
|
+
* Type Definition: `Format`
|
|
8
|
+
*
|
|
9
|
+
* This type is derived from a Zod schema and represents
|
|
10
|
+
* the validated structure of `Format` used within the application.
|
|
11
|
+
*
|
|
12
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#format}
|
|
13
|
+
*/
|
|
6
14
|
export type Format = z.infer<typeof formatSchema>;
|
|
7
15
|
export declare const persistConfigSchema: z.ZodObject<{
|
|
8
16
|
outputDir: z.ZodOptional<z.ZodString>;
|
|
@@ -13,4 +21,12 @@ export declare const persistConfigSchema: z.ZodObject<{
|
|
|
13
21
|
}>>>;
|
|
14
22
|
skipReports: z.ZodOptional<z.ZodBoolean>;
|
|
15
23
|
}, z.core.$strip>;
|
|
24
|
+
/**
|
|
25
|
+
* Type Definition: `PersistConfig`
|
|
26
|
+
*
|
|
27
|
+
* This type is derived from a Zod schema and represents
|
|
28
|
+
* the validated structure of `PersistConfig` used within the application.
|
|
29
|
+
*
|
|
30
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#persistconfig}
|
|
31
|
+
*/
|
|
16
32
|
export type PersistConfig = z.infer<typeof persistConfigSchema>;
|
|
@@ -2,6 +2,14 @@ import { z } from 'zod';
|
|
|
2
2
|
import { type Audit } from './audit.js';
|
|
3
3
|
import { type Group } from './group.js';
|
|
4
4
|
export declare const pluginContextSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5
|
+
/**
|
|
6
|
+
* Type Definition: `PluginContext`
|
|
7
|
+
*
|
|
8
|
+
* This type is derived from a Zod schema and represents
|
|
9
|
+
* the validated structure of `PluginContext` used within the application.
|
|
10
|
+
*
|
|
11
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#plugincontext}
|
|
12
|
+
*/
|
|
5
13
|
export type PluginContext = z.infer<typeof pluginContextSchema>;
|
|
6
14
|
export declare const pluginMetaSchema: z.ZodObject<{
|
|
7
15
|
packageName: z.ZodOptional<z.ZodString>;
|
|
@@ -872,8 +880,24 @@ export declare const pluginMetaSchema: z.ZodObject<{
|
|
|
872
880
|
silverstripe: "silverstripe";
|
|
873
881
|
}>;
|
|
874
882
|
}, z.core.$strip>;
|
|
883
|
+
/**
|
|
884
|
+
* Type Definition: `PluginMeta`
|
|
885
|
+
*
|
|
886
|
+
* This type is derived from a Zod schema and represents
|
|
887
|
+
* the validated structure of `PluginMeta` used within the application.
|
|
888
|
+
*
|
|
889
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginmeta}
|
|
890
|
+
*/
|
|
875
891
|
export type PluginMeta = z.infer<typeof pluginMetaSchema>;
|
|
876
892
|
export declare const pluginScoreTargetsSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
|
|
893
|
+
/**
|
|
894
|
+
* Type Definition: `PluginScoreTargets`
|
|
895
|
+
*
|
|
896
|
+
* This type is derived from a Zod schema and represents
|
|
897
|
+
* the validated structure of `PluginScoreTargets` used within the application.
|
|
898
|
+
*
|
|
899
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginscoretargets}
|
|
900
|
+
*/
|
|
877
901
|
export type PluginScoreTargets = z.infer<typeof pluginScoreTargetsSchema>;
|
|
878
902
|
export declare const pluginDataSchema: z.ZodObject<{
|
|
879
903
|
runner: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2292,8 +2316,24 @@ export declare const pluginConfigSchema: z.ZodObject<{
|
|
|
2292
2316
|
scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
|
|
2293
2317
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2294
2318
|
}, z.core.$strip>;
|
|
2319
|
+
/**
|
|
2320
|
+
* Type Definition: `PluginConfig`
|
|
2321
|
+
*
|
|
2322
|
+
* This type is derived from a Zod schema and represents
|
|
2323
|
+
* the validated structure of `PluginConfig` used within the application.
|
|
2324
|
+
*
|
|
2325
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginconfig}
|
|
2326
|
+
*/
|
|
2295
2327
|
export type PluginConfig = z.infer<typeof pluginConfigSchema>;
|
|
2296
2328
|
export declare const pluginUrlsSchema: z.ZodUnion<readonly [z.ZodURL, z.ZodArray<z.ZodURL>, z.ZodRecord<z.ZodURL, z.ZodNumber>]>;
|
|
2329
|
+
/**
|
|
2330
|
+
* Type Definition: `PluginUrls`
|
|
2331
|
+
*
|
|
2332
|
+
* This type is derived from a Zod schema and represents
|
|
2333
|
+
* the validated structure of `PluginUrls` used within the application.
|
|
2334
|
+
*
|
|
2335
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginurls}
|
|
2336
|
+
*/
|
|
2297
2337
|
export type PluginUrls = z.infer<typeof pluginUrlsSchema>;
|
|
2298
2338
|
export declare function findMissingSlugsInGroupRefs<T extends {
|
|
2299
2339
|
audits: Audit[];
|
package/src/lib/report.d.ts
CHANGED
|
@@ -63,6 +63,14 @@ export declare const auditReportSchema: z.ZodObject<{
|
|
|
63
63
|
}, z.core.$strip>]>>>;
|
|
64
64
|
}, z.core.$strip>>;
|
|
65
65
|
}, z.core.$strip>;
|
|
66
|
+
/**
|
|
67
|
+
* Type Definition: `AuditReport`
|
|
68
|
+
*
|
|
69
|
+
* This type is derived from a Zod schema and represents
|
|
70
|
+
* the validated structure of `AuditReport` used within the application.
|
|
71
|
+
*
|
|
72
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditreport}
|
|
73
|
+
*/
|
|
66
74
|
export type AuditReport = z.infer<typeof auditReportSchema>;
|
|
67
75
|
export declare const pluginReportSchema: z.ZodObject<{
|
|
68
76
|
packageName: z.ZodOptional<z.ZodString>;
|
|
@@ -1010,6 +1018,14 @@ export declare const pluginReportSchema: z.ZodObject<{
|
|
|
1010
1018
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1011
1019
|
}, z.core.$strip>>>;
|
|
1012
1020
|
}, z.core.$strip>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Type Definition: `PluginReport`
|
|
1023
|
+
*
|
|
1024
|
+
* This type is derived from a Zod schema and represents
|
|
1025
|
+
* the validated structure of `PluginReport` used within the application.
|
|
1026
|
+
*
|
|
1027
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginreport}
|
|
1028
|
+
*/
|
|
1013
1029
|
export type PluginReport = z.infer<typeof pluginReportSchema>;
|
|
1014
1030
|
export declare const reportSchema: z.ZodObject<{
|
|
1015
1031
|
packageName: z.ZodString;
|
|
@@ -1987,4 +2003,12 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
1987
2003
|
}, z.core.$strip>>;
|
|
1988
2004
|
label: z.ZodOptional<z.ZodString>;
|
|
1989
2005
|
}, z.core.$strip>;
|
|
2006
|
+
/**
|
|
2007
|
+
* Type Definition: `Report`
|
|
2008
|
+
*
|
|
2009
|
+
* This type is derived from a Zod schema and represents
|
|
2010
|
+
* the validated structure of `Report` used within the application.
|
|
2011
|
+
*
|
|
2012
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#report}
|
|
2013
|
+
*/
|
|
1990
2014
|
export type Report = z.infer<typeof reportSchema>;
|
|
@@ -78,11 +78,59 @@ export declare const auditResultSchema: z.ZodObject<{
|
|
|
78
78
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
79
79
|
score: z.ZodNumber;
|
|
80
80
|
}, z.core.$strip>;
|
|
81
|
+
/**
|
|
82
|
+
* Type Definition: `CategoryDiff`
|
|
83
|
+
*
|
|
84
|
+
* This type is derived from a Zod schema and represents
|
|
85
|
+
* the validated structure of `CategoryDiff` used within the application.
|
|
86
|
+
*
|
|
87
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#categorydiff}
|
|
88
|
+
*/
|
|
81
89
|
export type CategoryDiff = z.infer<typeof categoryDiffSchema>;
|
|
90
|
+
/**
|
|
91
|
+
* Type Definition: `GroupDiff`
|
|
92
|
+
*
|
|
93
|
+
* This type is derived from a Zod schema and represents
|
|
94
|
+
* the validated structure of `GroupDiff` used within the application.
|
|
95
|
+
*
|
|
96
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#groupdiff}
|
|
97
|
+
*/
|
|
82
98
|
export type GroupDiff = z.infer<typeof groupDiffSchema>;
|
|
99
|
+
/**
|
|
100
|
+
* Type Definition: `AuditDiff`
|
|
101
|
+
*
|
|
102
|
+
* This type is derived from a Zod schema and represents
|
|
103
|
+
* the validated structure of `AuditDiff` used within the application.
|
|
104
|
+
*
|
|
105
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditdiff}
|
|
106
|
+
*/
|
|
83
107
|
export type AuditDiff = z.infer<typeof auditDiffSchema>;
|
|
108
|
+
/**
|
|
109
|
+
* Type Definition: `CategoryResult`
|
|
110
|
+
*
|
|
111
|
+
* This type is derived from a Zod schema and represents
|
|
112
|
+
* the validated structure of `CategoryResult` used within the application.
|
|
113
|
+
*
|
|
114
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#categoryresult}
|
|
115
|
+
*/
|
|
84
116
|
export type CategoryResult = z.infer<typeof categoryResultSchema>;
|
|
117
|
+
/**
|
|
118
|
+
* Type Definition: `GroupResult`
|
|
119
|
+
*
|
|
120
|
+
* This type is derived from a Zod schema and represents
|
|
121
|
+
* the validated structure of `GroupResult` used within the application.
|
|
122
|
+
*
|
|
123
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#groupresult}
|
|
124
|
+
*/
|
|
85
125
|
export type GroupResult = z.infer<typeof groupResultSchema>;
|
|
126
|
+
/**
|
|
127
|
+
* Type Definition: `AuditResult`
|
|
128
|
+
*
|
|
129
|
+
* This type is derived from a Zod schema and represents
|
|
130
|
+
* the validated structure of `AuditResult` used within the application.
|
|
131
|
+
*
|
|
132
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditresult}
|
|
133
|
+
*/
|
|
86
134
|
export type AuditResult = z.infer<typeof auditResultSchema>;
|
|
87
135
|
export declare const reportsDiffSchema: z.ZodObject<{
|
|
88
136
|
commits: z.ZodNullable<z.ZodObject<{
|
|
@@ -251,4 +299,12 @@ export declare const reportsDiffSchema: z.ZodObject<{
|
|
|
251
299
|
date: z.ZodString;
|
|
252
300
|
duration: z.ZodNumber;
|
|
253
301
|
}, z.core.$strip>;
|
|
302
|
+
/**
|
|
303
|
+
* Type Definition: `ReportsDiff`
|
|
304
|
+
*
|
|
305
|
+
* This type is derived from a Zod schema and represents
|
|
306
|
+
* the validated structure of `ReportsDiff` used within the application.
|
|
307
|
+
*
|
|
308
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#reportsdiff}
|
|
309
|
+
*/
|
|
254
310
|
export type ReportsDiff = z.infer<typeof reportsDiffSchema>;
|
|
@@ -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,6 +138,14 @@ 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;
|
|
@@ -256,6 +272,14 @@ 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
284
|
export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodTuple<[z.ZodObject<{
|
|
261
285
|
persist: z.ZodObject<{
|
|
@@ -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 {};
|
|
@@ -6,4 +6,12 @@ export declare const uploadConfigSchema: z.ZodObject<{
|
|
|
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>;
|