@code-pushup/models
Advanced tools
Comparing version 0.45.1 to 0.46.0
{ | ||
"name": "@code-pushup/models", | ||
"version": "0.45.1", | ||
"version": "0.46.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -45,3 +45,3 @@ import { z } from 'zod'; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -58,3 +58,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -70,7 +70,8 @@ file: string; | ||
}>, "many">>; | ||
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ | ||
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ | ||
title: z.ZodOptional<z.ZodString>; | ||
}, { | ||
columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>; | ||
rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
rows: (string | number)[][]; | ||
@@ -83,4 +84,5 @@ title?: string | undefined; | ||
columns?: ("left" | "center" | "right")[] | undefined; | ||
}>, z.ZodObject<{ | ||
}>, z.ZodObject<z.objectUtil.extendShape<{ | ||
title: z.ZodOptional<z.ZodString>; | ||
}, { | ||
columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{ | ||
@@ -100,3 +102,3 @@ key: z.ZodString; | ||
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
rows: Record<string, string | number>[]; | ||
@@ -121,3 +123,3 @@ title?: string | undefined; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -149,3 +151,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -222,3 +224,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -235,3 +237,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -247,7 +249,8 @@ file: string; | ||
}>, "many">>; | ||
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ | ||
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ | ||
title: z.ZodOptional<z.ZodString>; | ||
}, { | ||
columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>; | ||
rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
rows: (string | number)[][]; | ||
@@ -260,4 +263,5 @@ title?: string | undefined; | ||
columns?: ("left" | "center" | "right")[] | undefined; | ||
}>, z.ZodObject<{ | ||
}>, z.ZodObject<z.objectUtil.extendShape<{ | ||
title: z.ZodOptional<z.ZodString>; | ||
}, { | ||
columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{ | ||
@@ -277,3 +281,3 @@ key: z.ZodString; | ||
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
rows: Record<string, string | number>[]; | ||
@@ -298,3 +302,3 @@ title?: string | undefined; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -326,3 +330,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -360,3 +364,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -394,3 +398,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -468,3 +472,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -481,3 +485,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -493,7 +497,8 @@ file: string; | ||
}>, "many">>; | ||
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ | ||
table: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ | ||
title: z.ZodOptional<z.ZodString>; | ||
}, { | ||
columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>; | ||
rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
rows: (string | number)[][]; | ||
@@ -506,4 +511,5 @@ title?: string | undefined; | ||
columns?: ("left" | "center" | "right")[] | undefined; | ||
}>, z.ZodObject<{ | ||
}>, z.ZodObject<z.objectUtil.extendShape<{ | ||
title: z.ZodOptional<z.ZodString>; | ||
}, { | ||
columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{ | ||
@@ -523,3 +529,3 @@ key: z.ZodString; | ||
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
rows: Record<string, string | number>[]; | ||
@@ -544,3 +550,3 @@ title?: string | undefined; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -572,3 +578,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -606,3 +612,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -640,3 +646,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -674,3 +680,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -708,3 +714,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -711,0 +717,0 @@ file: string; |
import { z } from 'zod'; | ||
export declare const auditSchema: z.ZodObject<{ | ||
export declare const auditSchema: z.ZodObject<z.objectUtil.extendShape<{ | ||
slug: z.ZodString; | ||
}, { | ||
title: z.ZodString; | ||
description: z.ZodOptional<z.ZodString>; | ||
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
slug: string; | ||
@@ -19,8 +20,9 @@ title: string; | ||
export type Audit = z.infer<typeof auditSchema>; | ||
export declare const pluginAuditsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{ | ||
export declare const pluginAuditsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{ | ||
slug: z.ZodString; | ||
}, { | ||
title: z.ZodString; | ||
description: z.ZodOptional<z.ZodString>; | ||
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
slug: string; | ||
@@ -27,0 +29,0 @@ title: string; |
import { z } from 'zod'; | ||
export declare const categoryRefSchema: z.ZodObject<{ | ||
export declare const categoryRefSchema: z.ZodObject<z.objectUtil.extendShape<{ | ||
slug: z.ZodString; | ||
weight: z.ZodNumber; | ||
}, { | ||
type: z.ZodEnum<["audit", "group"]>; | ||
plugin: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
slug: string; | ||
@@ -19,11 +20,11 @@ weight: number; | ||
export type CategoryRef = z.infer<typeof categoryRefSchema>; | ||
export declare const categoryConfigSchema: z.ZodObject<{ | ||
description: z.ZodOptional<z.ZodString>; | ||
export declare const categoryConfigSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{ | ||
slug: z.ZodString; | ||
refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{ | ||
refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{ | ||
slug: z.ZodString; | ||
weight: z.ZodNumber; | ||
}, { | ||
type: z.ZodEnum<["audit", "group"]>; | ||
plugin: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
slug: string; | ||
@@ -59,6 +60,9 @@ weight: number; | ||
}[]>; | ||
}, { | ||
title: z.ZodString; | ||
description: z.ZodOptional<z.ZodString>; | ||
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>; | ||
}>, { | ||
isBinary: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
slug: string; | ||
@@ -90,11 +94,11 @@ refs: { | ||
export declare function duplicateRefsInCategoryMetricsErrorMsg(metrics: CategoryRef[]): string; | ||
export declare const categoriesSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{ | ||
description: z.ZodOptional<z.ZodString>; | ||
export declare const categoriesSchema: z.ZodEffects<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{ | ||
slug: z.ZodString; | ||
refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{ | ||
refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{ | ||
slug: z.ZodString; | ||
weight: z.ZodNumber; | ||
}, { | ||
type: z.ZodEnum<["audit", "group"]>; | ||
plugin: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
slug: string; | ||
@@ -130,6 +134,9 @@ weight: number; | ||
}[]>; | ||
}, { | ||
title: z.ZodString; | ||
description: z.ZodOptional<z.ZodString>; | ||
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>; | ||
}>, { | ||
isBinary: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
slug: string; | ||
@@ -136,0 +143,0 @@ refs: { |
@@ -27,3 +27,3 @@ import { z } from 'zod'; | ||
export type GroupMeta = z.infer<typeof groupMetaSchema>; | ||
export declare const groupSchema: z.ZodObject<{ | ||
export declare const groupSchema: z.ZodObject<z.objectUtil.extendShape<{ | ||
slug: z.ZodString; | ||
@@ -52,6 +52,7 @@ refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{ | ||
}[]>; | ||
}, { | ||
title: z.ZodString; | ||
description: z.ZodOptional<z.ZodString>; | ||
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
slug: string; | ||
@@ -76,3 +77,3 @@ refs: { | ||
export type Group = z.infer<typeof groupSchema>; | ||
export declare const groupsSchema: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodObject<{ | ||
export declare const groupsSchema: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{ | ||
slug: z.ZodString; | ||
@@ -101,6 +102,7 @@ refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{ | ||
}[]>; | ||
}, { | ||
title: z.ZodString; | ||
description: z.ZodOptional<z.ZodString>; | ||
docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
slug: string; | ||
@@ -107,0 +109,0 @@ refs: { |
@@ -70,6 +70,6 @@ import { ZodObject, ZodOptional, ZodString, z } from 'zod'; | ||
version: TRequired extends true ? ZodString : ZodOptional<ZodString>; | ||
}>, (undefined extends (TRequired extends true ? ZodString : ZodOptional<ZodString>)["_output"] ? never : "packageName") | (undefined extends (TRequired extends true ? ZodString : ZodOptional<ZodString>)["_output"] ? never : "version")> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{ | ||
}>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{ | ||
packageName: TRequired extends true ? ZodString : ZodOptional<ZodString>; | ||
version: TRequired extends true ? ZodString : ZodOptional<ZodString>; | ||
}>, (undefined extends (TRequired extends true ? ZodString : ZodOptional<ZodString>)["_output"] ? never : "packageName") | (undefined extends (TRequired extends true ? ZodString : ZodOptional<ZodString>)["_output"] ? never : "version")>[k]; } : never, z.baseObjectInputType<{ | ||
}>, any>[k]; } : never, z.baseObjectInputType<{ | ||
packageName: TRequired extends true ? ZodString : ZodOptional<ZodString>; | ||
@@ -76,0 +76,0 @@ version: TRequired extends true ? ZodString : ZodOptional<ZodString>; |
@@ -44,3 +44,3 @@ import { z } from 'zod'; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -57,3 +57,3 @@ file: string; | ||
message: string; | ||
severity: "error" | "info" | "warning"; | ||
severity: "info" | "warning" | "error"; | ||
source?: { | ||
@@ -60,0 +60,0 @@ file: string; |
@@ -24,7 +24,8 @@ import { z } from 'zod'; | ||
export type TableRowPrimitive = z.infer<typeof tableRowPrimitiveSchema>; | ||
export declare const tableSchema: (description?: string) => z.ZodUnion<[z.ZodObject<{ | ||
export declare const tableSchema: (description?: string) => z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ | ||
title: z.ZodOptional<z.ZodString>; | ||
}, { | ||
columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>; | ||
rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
rows: (string | number)[][]; | ||
@@ -37,4 +38,5 @@ title?: string | undefined; | ||
columns?: ("left" | "center" | "right")[] | undefined; | ||
}>, z.ZodObject<{ | ||
}>, z.ZodObject<z.objectUtil.extendShape<{ | ||
title: z.ZodOptional<z.ZodString>; | ||
}, { | ||
columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{ | ||
@@ -54,3 +56,3 @@ key: z.ZodString; | ||
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
}>, "strip", z.ZodTypeAny, { | ||
rows: Record<string, string | number>[]; | ||
@@ -57,0 +59,0 @@ title?: string | undefined; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2076977
24231