Skip to content

TableError

const TableError: ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{ columnName: ZodString; type: ZodLiteral<"column/missing">; }, $strip>, ZodObject<{ actualColumnType: ZodEnum<{ array: "array"; base64: "base64"; boolean: "boolean"; categorical: "categorical"; date: "date"; date-time: "date-time"; decimal: "decimal"; duration: "duration"; email: "email"; geojson: "geojson"; hex: "hex"; integer: "integer"; list: "list"; number: "number"; object: "object"; string: "string"; time: "time"; topojson: "topojson"; unknown: "unknown"; url: "url"; wkb: "wkb"; wkt: "wkt"; }>; columnName: ZodString; expectedColumnType: ZodEnum<{ array: "array"; base64: "base64"; boolean: "boolean"; categorical: "categorical"; date: "date"; date-time: "date-time"; decimal: "decimal"; duration: "duration"; email: "email"; geojson: "geojson"; hex: "hex"; integer: "integer"; list: "list"; number: "number"; object: "object"; string: "string"; time: "time"; topojson: "topojson"; unknown: "unknown"; url: "url"; wkb: "wkb"; wkt: "wkt"; }>; type: ZodLiteral<"column/type">; }, $strip>], "type">, ZodDiscriminatedUnion<[ZodObject<{ columnNames: ZodArray<ZodString>; rowNumber: ZodNumber; type: ZodLiteral<"row/primaryKey">; }, $strip>, ZodObject<{ columnNames: ZodArray<ZodString>; rowNumber: ZodNumber; type: ZodLiteral<"row/uniqueKey">; }, $strip>], "type">, ZodDiscriminatedUnion<[ZodObject<{ cell: ZodString; columnName: ZodString; columnType: ZodEnum<{ array: "array"; base64: "base64"; boolean: "boolean"; categorical: "categorical"; date: "date"; date-time: "date-time"; decimal: "decimal"; duration: "duration"; email: "email"; geojson: "geojson"; hex: "hex"; integer: "integer"; list: "list"; number: "number"; object: "object"; string: "string"; time: "time"; topojson: "topojson"; unknown: "unknown"; url: "url"; wkb: "wkb"; wkt: "wkt"; }>; rowNumber: ZodNumber; type: ZodLiteral<"cell/type">; }, $strip>, ZodObject<{ cell: ZodString; columnName: ZodString; rowNumber: ZodNumber; type: ZodLiteral<"cell/required">; }, $strip>, ZodObject<{ cell: ZodString; columnName: ZodString; minimum: ZodString; rowNumber: ZodNumber; type: ZodLiteral<"cell/minimum">; }, $strip>], "type">, ZodObject<{ cells: ZodArray<ZodString>; foreignKey: ZodObject<{ columns: ZodArray<ZodString>; reference: ZodObject<{ columns: ZodArray<ZodString>; resource: ZodOptional<ZodString>; }, $strip>; }, $strip>; type: ZodLiteral<"foreignKey">; }, $strip>]>

Defined in: metadata/models/error/table.ts:7