@tmlmobilidade/types
Version:
68 lines (67 loc) • 2.63 kB
TypeScript
import { z } from 'zod';
export declare const StopAreaSchema: z.ZodObject<{
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>;
} & {
_id: z.ZodString;
parent_station_ids: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
_id: string;
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
is_locked: boolean;
updated_at: number & {
__brand: "UnixTimestamp";
};
parent_station_ids: string[];
updated_by?: string | undefined;
}, {
_id: string;
created_at: number;
updated_at: number;
parent_station_ids: string[];
created_by?: string | null | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
}>;
export declare const CreateStopAreaSchema: z.ZodObject<Omit<{
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>;
} & {
_id: z.ZodString;
parent_station_ids: z.ZodArray<z.ZodString, "many">;
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
created_by: string | null;
is_locked: boolean;
parent_station_ids: string[];
updated_by?: string | undefined;
}, {
parent_station_ids: string[];
created_by?: string | null | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
}>;
export declare const UpdateStopAreaSchema: z.ZodObject<{
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
parent_station_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
is_locked?: boolean | undefined;
updated_by?: string | undefined;
parent_station_ids?: string[] | undefined;
}, {
is_locked?: boolean | undefined;
updated_by?: string | undefined;
parent_station_ids?: string[] | undefined;
}>;
export type StopArea = z.infer<typeof StopAreaSchema>;
export type CreateStopAreaDto = z.infer<typeof CreateStopAreaSchema>;
export type UpdateStopAreaDto = z.infer<typeof UpdateStopAreaSchema>;