@code-pushup/models 0.111.1 → 0.113.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 +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 +32 -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 +24 -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
|
@@ -58,6 +58,14 @@ export declare const auditDetailsSchema: z.ZodObject<{
|
|
|
58
58
|
root: z.ZodType<import("./tree.js").CoverageTreeNode, unknown, z.core.$ZodTypeInternals<import("./tree.js").CoverageTreeNode, unknown>>;
|
|
59
59
|
}, z.core.$strip>]>>>;
|
|
60
60
|
}, z.core.$strip>;
|
|
61
|
+
/**
|
|
62
|
+
* Type Definition: `AuditDetails`
|
|
63
|
+
*
|
|
64
|
+
* This type is derived from a Zod schema and represents
|
|
65
|
+
* the validated structure of `AuditDetails` used within the application.
|
|
66
|
+
*
|
|
67
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditdetails}
|
|
68
|
+
*/
|
|
61
69
|
export type AuditDetails = z.infer<typeof auditDetailsSchema>;
|
|
62
70
|
export declare const auditOutputSchema: z.ZodObject<{
|
|
63
71
|
slug: z.ZodString;
|
|
@@ -123,6 +131,14 @@ export declare const auditOutputSchema: z.ZodObject<{
|
|
|
123
131
|
}, z.core.$strip>]>>>;
|
|
124
132
|
}, z.core.$strip>>;
|
|
125
133
|
}, z.core.$strip>;
|
|
134
|
+
/**
|
|
135
|
+
* Type Definition: `AuditOutput`
|
|
136
|
+
*
|
|
137
|
+
* This type is derived from a Zod schema and represents
|
|
138
|
+
* the validated structure of `AuditOutput` used within the application.
|
|
139
|
+
*
|
|
140
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditoutput}
|
|
141
|
+
*/
|
|
126
142
|
export type AuditOutput = z.infer<typeof auditOutputSchema>;
|
|
127
143
|
export declare const auditOutputsSchema: z.ZodArray<z.ZodObject<{
|
|
128
144
|
slug: z.ZodString;
|
|
@@ -188,4 +204,12 @@ export declare const auditOutputsSchema: z.ZodArray<z.ZodObject<{
|
|
|
188
204
|
}, z.core.$strip>]>>>;
|
|
189
205
|
}, z.core.$strip>>;
|
|
190
206
|
}, z.core.$strip>>;
|
|
207
|
+
/**
|
|
208
|
+
* Type Definition: `AuditOutputs`
|
|
209
|
+
*
|
|
210
|
+
* This type is derived from a Zod schema and represents
|
|
211
|
+
* the validated structure of `AuditOutputs` used within the application.
|
|
212
|
+
*
|
|
213
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditoutputs}
|
|
214
|
+
*/
|
|
191
215
|
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.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
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
|
@@ -3583,4 +3583,12 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
3583
3583
|
scoreTarget: z.ZodOptional<z.ZodNumber>;
|
|
3584
3584
|
}, z.core.$strip>>>;
|
|
3585
3585
|
}, z.core.$strip>;
|
|
3586
|
+
/**
|
|
3587
|
+
* Type Definition: `CoreConfig`
|
|
3588
|
+
*
|
|
3589
|
+
* This type is derived from a Zod schema and represents
|
|
3590
|
+
* the validated structure of `CoreConfig` used within the application.
|
|
3591
|
+
*
|
|
3592
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#coreconfig}
|
|
3593
|
+
*/
|
|
3586
3594
|
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.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
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.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
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;
|
|
@@ -26,6 +34,14 @@ export declare const issueSchema: z.ZodObject<{
|
|
|
26
34
|
selector: z.ZodOptional<z.ZodString>;
|
|
27
35
|
}, z.core.$strip>]>>;
|
|
28
36
|
}, z.core.$strip>;
|
|
37
|
+
/**
|
|
38
|
+
* Type Definition: `Issue`
|
|
39
|
+
*
|
|
40
|
+
* This type is derived from a Zod schema and represents
|
|
41
|
+
* the validated structure of `Issue` used within the application.
|
|
42
|
+
*
|
|
43
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#issue}
|
|
44
|
+
*/
|
|
29
45
|
export type Issue = z.infer<typeof issueSchema>;
|
|
30
46
|
export declare const fileIssueSchema: z.ZodObject<{
|
|
31
47
|
message: z.ZodString;
|
|
@@ -44,6 +60,14 @@ export declare const fileIssueSchema: z.ZodObject<{
|
|
|
44
60
|
}, z.core.$strip>>;
|
|
45
61
|
}, z.core.$strip>;
|
|
46
62
|
}, z.core.$strip>;
|
|
63
|
+
/**
|
|
64
|
+
* Type Definition: `FileIssue`
|
|
65
|
+
*
|
|
66
|
+
* This type is derived from a Zod schema and represents
|
|
67
|
+
* the validated structure of `FileIssue` used within the application.
|
|
68
|
+
*
|
|
69
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#fileissue}
|
|
70
|
+
*/
|
|
47
71
|
export type FileIssue = z.infer<typeof fileIssueSchema>;
|
|
48
72
|
export declare const urlIssueSchema: z.ZodObject<{
|
|
49
73
|
message: z.ZodString;
|
|
@@ -58,4 +82,12 @@ export declare const urlIssueSchema: z.ZodObject<{
|
|
|
58
82
|
selector: z.ZodOptional<z.ZodString>;
|
|
59
83
|
}, z.core.$strip>;
|
|
60
84
|
}, z.core.$strip>;
|
|
85
|
+
/**
|
|
86
|
+
* Type Definition: `UrlIssue`
|
|
87
|
+
*
|
|
88
|
+
* This type is derived from a Zod schema and represents
|
|
89
|
+
* the validated structure of `UrlIssue` used within the application.
|
|
90
|
+
*
|
|
91
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#urlissue}
|
|
92
|
+
*/
|
|
61
93
|
export type UrlIssue = z.infer<typeof urlIssueSchema>;
|
|
@@ -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<{
|
|
@@ -2324,8 +2348,24 @@ export declare const pluginConfigSchema: z.ZodObject<{
|
|
|
2324
2348
|
scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
|
|
2325
2349
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2326
2350
|
}, z.core.$strip>;
|
|
2351
|
+
/**
|
|
2352
|
+
* Type Definition: `PluginConfig`
|
|
2353
|
+
*
|
|
2354
|
+
* This type is derived from a Zod schema and represents
|
|
2355
|
+
* the validated structure of `PluginConfig` used within the application.
|
|
2356
|
+
*
|
|
2357
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginconfig}
|
|
2358
|
+
*/
|
|
2327
2359
|
export type PluginConfig = z.infer<typeof pluginConfigSchema>;
|
|
2328
2360
|
export declare const pluginUrlsSchema: z.ZodUnion<readonly [z.ZodURL, z.ZodArray<z.ZodURL>, z.ZodRecord<z.ZodURL, z.ZodNumber>]>;
|
|
2361
|
+
/**
|
|
2362
|
+
* Type Definition: `PluginUrls`
|
|
2363
|
+
*
|
|
2364
|
+
* This type is derived from a Zod schema and represents
|
|
2365
|
+
* the validated structure of `PluginUrls` used within the application.
|
|
2366
|
+
*
|
|
2367
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginurls}
|
|
2368
|
+
*/
|
|
2329
2369
|
export type PluginUrls = z.infer<typeof pluginUrlsSchema>;
|
|
2330
2370
|
export declare function findMissingSlugsInGroupRefs<T extends {
|
|
2331
2371
|
audits: Audit[];
|
package/src/lib/report.d.ts
CHANGED
|
@@ -67,6 +67,14 @@ export declare const auditReportSchema: z.ZodObject<{
|
|
|
67
67
|
}, z.core.$strip>]>>>;
|
|
68
68
|
}, z.core.$strip>>;
|
|
69
69
|
}, z.core.$strip>;
|
|
70
|
+
/**
|
|
71
|
+
* Type Definition: `AuditReport`
|
|
72
|
+
*
|
|
73
|
+
* This type is derived from a Zod schema and represents
|
|
74
|
+
* the validated structure of `AuditReport` used within the application.
|
|
75
|
+
*
|
|
76
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditreport}
|
|
77
|
+
*/
|
|
70
78
|
export type AuditReport = z.infer<typeof auditReportSchema>;
|
|
71
79
|
export declare const pluginReportSchema: z.ZodObject<{
|
|
72
80
|
packageName: z.ZodOptional<z.ZodString>;
|
|
@@ -1018,6 +1026,14 @@ export declare const pluginReportSchema: z.ZodObject<{
|
|
|
1018
1026
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1019
1027
|
}, z.core.$strip>>>;
|
|
1020
1028
|
}, z.core.$strip>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Type Definition: `PluginReport`
|
|
1031
|
+
*
|
|
1032
|
+
* This type is derived from a Zod schema and represents
|
|
1033
|
+
* the validated structure of `PluginReport` used within the application.
|
|
1034
|
+
*
|
|
1035
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginreport}
|
|
1036
|
+
*/
|
|
1021
1037
|
export type PluginReport = z.infer<typeof pluginReportSchema>;
|
|
1022
1038
|
export declare const reportSchema: z.ZodObject<{
|
|
1023
1039
|
packageName: z.ZodString;
|
|
@@ -1999,4 +2015,12 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
1999
2015
|
}, z.core.$strip>>;
|
|
2000
2016
|
label: z.ZodOptional<z.ZodString>;
|
|
2001
2017
|
}, z.core.$strip>;
|
|
2018
|
+
/**
|
|
2019
|
+
* Type Definition: `Report`
|
|
2020
|
+
*
|
|
2021
|
+
* This type is derived from a Zod schema and represents
|
|
2022
|
+
* the validated structure of `Report` used within the application.
|
|
2023
|
+
*
|
|
2024
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#report}
|
|
2025
|
+
*/
|
|
2002
2026
|
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>;
|
|
@@ -126,6 +126,14 @@ export declare const outputTransformSchema: z.ZodPipe<z.ZodCustom<unknown, unkno
|
|
|
126
126
|
}, z.core.$strip>]>>>;
|
|
127
127
|
}, z.core.$strip>>;
|
|
128
128
|
}, z.core.$strip>>>]>>, unknown>>;
|
|
129
|
+
/**
|
|
130
|
+
* Type Definition: `OutputTransform`
|
|
131
|
+
*
|
|
132
|
+
* This type is derived from a Zod schema and represents
|
|
133
|
+
* the validated structure of `OutputTransform` used within the application.
|
|
134
|
+
*
|
|
135
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#outputtransform}
|
|
136
|
+
*/
|
|
129
137
|
export type OutputTransform = z.infer<typeof outputTransformSchema>;
|
|
130
138
|
export declare const runnerArgsSchema: z.ZodObject<{
|
|
131
139
|
persist: z.ZodObject<{
|
|
@@ -138,6 +146,14 @@ export declare const runnerArgsSchema: z.ZodObject<{
|
|
|
138
146
|
skipReports: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
139
147
|
}, z.core.$strip>;
|
|
140
148
|
}, z.core.$strip>;
|
|
149
|
+
/**
|
|
150
|
+
* Type Definition: `RunnerArgs`
|
|
151
|
+
*
|
|
152
|
+
* This type is derived from a Zod schema and represents
|
|
153
|
+
* the validated structure of `RunnerArgs` used within the application.
|
|
154
|
+
*
|
|
155
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerargs}
|
|
156
|
+
*/
|
|
141
157
|
export type RunnerArgs = z.infer<typeof runnerArgsSchema>;
|
|
142
158
|
export declare const runnerConfigSchema: z.ZodObject<{
|
|
143
159
|
command: z.ZodString;
|
|
@@ -272,6 +288,14 @@ export declare const runnerConfigSchema: z.ZodObject<{
|
|
|
272
288
|
}, z.core.$strip>>>]>>, unknown>>>;
|
|
273
289
|
configFile: z.ZodOptional<z.ZodString>;
|
|
274
290
|
}, z.core.$strip>;
|
|
291
|
+
/**
|
|
292
|
+
* Type Definition: `RunnerConfig`
|
|
293
|
+
*
|
|
294
|
+
* This type is derived from a Zod schema and represents
|
|
295
|
+
* the validated structure of `RunnerConfig` used within the application.
|
|
296
|
+
*
|
|
297
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerconfig}
|
|
298
|
+
*/
|
|
275
299
|
export type RunnerConfig = z.infer<typeof runnerConfigSchema>;
|
|
276
300
|
export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodObject<{
|
|
277
301
|
persist: z.ZodObject<{
|
|
@@ -410,9 +434,25 @@ export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknow
|
|
|
410
434
|
}, z.core.$strip>]>>>;
|
|
411
435
|
}, z.core.$strip>>;
|
|
412
436
|
}, z.core.$strip>>>]>>, unknown>>;
|
|
437
|
+
/**
|
|
438
|
+
* Type Definition: `RunnerFunction`
|
|
439
|
+
*
|
|
440
|
+
* This type is derived from a Zod schema and represents
|
|
441
|
+
* the validated structure of `RunnerFunction` used within the application.
|
|
442
|
+
*
|
|
443
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerfunction}
|
|
444
|
+
*/
|
|
413
445
|
export type RunnerFunction = z.infer<typeof runnerFunctionSchema>;
|
|
414
446
|
export declare const runnerFilesPathsSchema: z.ZodObject<{
|
|
415
447
|
runnerConfigPath: z.ZodString;
|
|
416
448
|
runnerOutputPath: z.ZodString;
|
|
417
449
|
}, z.core.$strip>;
|
|
450
|
+
/**
|
|
451
|
+
* Type Definition: `RunnerFilesPaths`
|
|
452
|
+
*
|
|
453
|
+
* This type is derived from a Zod schema and represents
|
|
454
|
+
* the validated structure of `RunnerFilesPaths` used within the application.
|
|
455
|
+
*
|
|
456
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerfilespaths}
|
|
457
|
+
*/
|
|
418
458
|
export type RunnerFilesPaths = z.infer<typeof runnerFilesPathsSchema>;
|
package/src/lib/source.d.ts
CHANGED
|
@@ -8,12 +8,28 @@ 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>;
|
|
12
20
|
export declare const sourceUrlLocationSchema: z.ZodObject<{
|
|
13
21
|
url: z.ZodURL;
|
|
14
22
|
snippet: z.ZodOptional<z.ZodString>;
|
|
15
23
|
selector: z.ZodOptional<z.ZodString>;
|
|
16
24
|
}, z.core.$strip>;
|
|
25
|
+
/**
|
|
26
|
+
* Type Definition: `SourceUrlLocation`
|
|
27
|
+
*
|
|
28
|
+
* This type is derived from a Zod schema and represents
|
|
29
|
+
* the validated structure of `SourceUrlLocation` used within the application.
|
|
30
|
+
*
|
|
31
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#sourceurllocation}
|
|
32
|
+
*/
|
|
17
33
|
export type SourceUrlLocation = z.infer<typeof sourceUrlLocationSchema>;
|
|
18
34
|
export declare const issueSourceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
19
35
|
file: z.ZodString;
|
|
@@ -28,4 +44,12 @@ export declare const issueSourceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
28
44
|
snippet: z.ZodOptional<z.ZodString>;
|
|
29
45
|
selector: z.ZodOptional<z.ZodString>;
|
|
30
46
|
}, z.core.$strip>]>;
|
|
47
|
+
/**
|
|
48
|
+
* Type Definition: `IssueSource`
|
|
49
|
+
*
|
|
50
|
+
* This type is derived from a Zod schema and represents
|
|
51
|
+
* the validated structure of `IssueSource` used within the application.
|
|
52
|
+
*
|
|
53
|
+
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#issuesource}
|
|
54
|
+
*/
|
|
31
55
|
export type IssueSource = z.infer<typeof issueSourceSchema>;
|
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>;
|