@tmlmobilidade/types
Version:
57 lines (56 loc) • 1.75 kB
TypeScript
import { z } from 'zod';
export declare const HashedLineSchema: z.ZodObject<Omit<{
_id: z.ZodString;
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
is_locked: z.ZodDefault<z.ZodBoolean>;
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
}, "created_by" | "is_locked" | "updated_by"> & {
agency_id: z.ZodString;
line_id: z.ZodNumber;
line_long_name: z.ZodString;
line_short_name: z.ZodString;
pattern_id: z.ZodString;
route_color: z.ZodString;
route_id: z.ZodString;
route_long_name: z.ZodString;
route_short_name: z.ZodString;
route_text_color: z.ZodString;
trip_headsign: z.ZodString;
}, "strip", z.ZodTypeAny, {
_id: string;
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
agency_id: string;
line_id: number;
route_id: string;
pattern_id: string;
route_color: string;
route_long_name: string;
route_short_name: string;
route_text_color: string;
trip_headsign: string;
line_long_name: string;
line_short_name: string;
}, {
_id: string;
created_at: number;
updated_at: number;
agency_id: string;
line_id: number;
route_id: string;
pattern_id: string;
route_color: string;
route_long_name: string;
route_short_name: string;
route_text_color: string;
trip_headsign: string;
line_long_name: string;
line_short_name: string;
}>;
export type HashedLine = z.infer<typeof HashedLineSchema>;