@tmlmobilidade/types
Version:
77 lines (76 loc) • 2.81 kB
TypeScript
import { z } from 'zod';
export declare const ParentStationSchema: 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;
stop_ids: z.ZodArray<z.ZodString, "many">;
title: z.ZodString;
}, "strip", z.ZodTypeAny, {
_id: string;
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
is_locked: boolean;
updated_at: number & {
__brand: "UnixTimestamp";
};
title: string;
stop_ids: string[];
updated_by?: string | undefined;
}, {
_id: string;
created_at: number;
updated_at: number;
title: string;
stop_ids: string[];
created_by?: string | null | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
}>;
export declare const CreateParentStationSchema: 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;
stop_ids: z.ZodArray<z.ZodString, "many">;
title: z.ZodString;
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
created_by: string | null;
is_locked: boolean;
title: string;
stop_ids: string[];
updated_by?: string | undefined;
}, {
title: string;
stop_ids: string[];
created_by?: string | null | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
}>;
export declare const UpdateParentStationSchema: z.ZodObject<{
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
title: z.ZodOptional<z.ZodString>;
stop_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
is_locked?: boolean | undefined;
updated_by?: string | undefined;
title?: string | undefined;
stop_ids?: string[] | undefined;
}, {
is_locked?: boolean | undefined;
updated_by?: string | undefined;
title?: string | undefined;
stop_ids?: string[] | undefined;
}>;
export type ParentStation = z.infer<typeof ParentStationSchema>;
export type CreateParentStationDto = z.infer<typeof CreateParentStationSchema>;
export type UpdateParentStationDto = z.infer<typeof UpdateParentStationSchema>;