UNPKG

@tmlmobilidade/types

Version:
92 lines (91 loc) 3.51 kB
import { z } from 'zod'; export declare const VehicleExportPropertiesSchema: z.ZodObject<{ properties: z.ZodObject<{ agency_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; search: z.ZodNullable<z.ZodOptional<z.ZodString>>; vehicle_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; }, "strip", z.ZodTypeAny, { agency_ids?: string[] | null | undefined; search?: string | null | undefined; vehicle_ids?: string[] | null | undefined; }, { agency_ids?: string[] | null | undefined; search?: string | null | undefined; vehicle_ids?: string[] | null | undefined; }>; type: z.ZodLiteral<"vehicle">; }, "strip", z.ZodTypeAny, { type: "vehicle"; properties: { agency_ids?: string[] | null | undefined; search?: string | null | undefined; vehicle_ids?: string[] | null | undefined; }; }, { type: "vehicle"; properties: { agency_ids?: string[] | null | undefined; search?: string | null | undefined; vehicle_ids?: string[] | null | undefined; }; }>; export declare const VehicleExportSchema: z.ZodObject<{ _id: z.ZodString; created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>; updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; updated_by: z.ZodOptional<z.ZodString>; file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>; file_name: z.ZodString; processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>; } & { properties: z.ZodObject<{ agency_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; search: z.ZodNullable<z.ZodOptional<z.ZodString>>; vehicle_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; }, "strip", z.ZodTypeAny, { agency_ids?: string[] | null | undefined; search?: string | null | undefined; vehicle_ids?: string[] | null | undefined; }, { agency_ids?: string[] | null | undefined; search?: string | null | undefined; vehicle_ids?: string[] | null | undefined; }>; type: z.ZodLiteral<"vehicle">; }, "strip", z.ZodTypeAny, { _id: string; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; type: "vehicle"; file_name: string; processing_status: "error" | "waiting" | "processing" | "complete" | "skipped"; properties: { agency_ids?: string[] | null | undefined; search?: string | null | undefined; vehicle_ids?: string[] | null | undefined; }; updated_by?: string | undefined; file_id?: string | null | undefined; }, { _id: string; created_at: number; updated_at: number; type: "vehicle"; file_name: string; processing_status: "error" | "waiting" | "processing" | "complete" | "skipped"; properties: { agency_ids?: string[] | null | undefined; search?: string | null | undefined; vehicle_ids?: string[] | null | undefined; }; created_by?: string | null | undefined; updated_by?: string | undefined; file_id?: string | null | undefined; }>; export type VehicleExportProperties = z.infer<typeof VehicleExportPropertiesSchema>;