UNPKG

@tmlmobilidade/types

Version:
95 lines (94 loc) 4.01 kB
import { z } from 'zod'; export declare const AnnotationSchema: 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>; } & { agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; dates: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>, "many">>; description: z.ZodOptional<z.ZodString>; is_locked: z.ZodDefault<z.ZodBoolean>; 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; agency_ids: string[]; dates: import("@tmlmobilidade/go-types-shared").OperationalDate[]; updated_by?: string | undefined; description?: string | undefined; }, { _id: string; created_at: number; updated_at: number; title: string; created_by?: string | null | undefined; is_locked?: boolean | undefined; updated_by?: string | undefined; description?: string | undefined; agency_ids?: string[] | undefined; dates?: string[] | undefined; }>; export declare const CreateAnnotationSchema: 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>>; updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; updated_by: z.ZodOptional<z.ZodString>; } & { agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; dates: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>, "many">>; description: z.ZodOptional<z.ZodString>; is_locked: z.ZodDefault<z.ZodBoolean>; title: z.ZodString; }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, { created_by: string | null; is_locked: boolean; title: string; agency_ids: string[]; dates: import("@tmlmobilidade/go-types-shared").OperationalDate[]; updated_by?: string | undefined; description?: string | undefined; }, { title: string; created_by?: string | null | undefined; is_locked?: boolean | undefined; updated_by?: string | undefined; description?: string | undefined; agency_ids?: string[] | undefined; dates?: string[] | undefined; }>; export declare const UpdateAnnotationSchema: z.ZodObject<{ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>; description: z.ZodOptional<z.ZodOptional<z.ZodString>>; title: z.ZodOptional<z.ZodString>; agency_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>; dates: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>, "many">>>; }, "strip", z.ZodTypeAny, { is_locked?: boolean | undefined; updated_by?: string | undefined; description?: string | undefined; title?: string | undefined; agency_ids?: string[] | undefined; dates?: import("@tmlmobilidade/go-types-shared").OperationalDate[] | undefined; }, { is_locked?: boolean | undefined; updated_by?: string | undefined; description?: string | undefined; title?: string | undefined; agency_ids?: string[] | undefined; dates?: string[] | undefined; }>; export type Annotation = z.infer<typeof AnnotationSchema>; export type CreateAnnotationDto = z.infer<typeof CreateAnnotationSchema>; export type UpdateAnnotationDto = z.infer<typeof UpdateAnnotationSchema>;