@tmlmobilidade/types
Version:
95 lines (94 loc) • 3.9 kB
TypeScript
import { z } from 'zod';
export declare const AnnotationSchema: z.ZodObject<{
_id: z.ZodString;
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").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("../_common/operational-date.js").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";
};
is_locked: boolean;
updated_at: number & {
__brand: "UnixTimestamp";
};
title: string;
agency_ids: string[];
dates: import("../_common/operational-date.js").OperationalDate[];
created_by?: string | undefined;
updated_by?: string | undefined;
description?: string | undefined;
}, {
_id: string;
created_at: number;
updated_at: number;
title: string;
created_by?: string | 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("../index.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").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("../_common/operational-date.js").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, {
is_locked: boolean;
title: string;
agency_ids: string[];
dates: import("../_common/operational-date.js").OperationalDate[];
created_by?: string | undefined;
updated_by?: string | undefined;
description?: string | undefined;
}, {
title: string;
created_by?: string | 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("../_common/operational-date.js").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("../_common/operational-date.js").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>;