UNPKG

@tmlmobilidade/types

Version:
122 lines (121 loc) 4.19 kB
import { z } from 'zod'; export declare const FileSchema: z.ZodObject<{ _id: z.ZodString; created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>; updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>; } & { created_by: z.ZodString; description: z.ZodOptional<z.ZodNullable<z.ZodString>>; metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>; name: z.ZodString; resource_id: z.ZodString; scope: z.ZodString; size: z.ZodNumber; type: z.ZodString; updated_by: z.ZodString; url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { _id: string; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string; updated_at: number & { __brand: "UnixTimestamp"; }; updated_by: string; type: string; name: string; resource_id: string; scope: string; size: number; description?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; url?: string | null | undefined; }, { _id: string; created_at: number; created_by: string; updated_at: number; updated_by: string; type: string; name: string; resource_id: string; scope: string; size: number; description?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; url?: string | null | undefined; }>; export declare const CreateFileSchema: z.ZodObject<Omit<{ _id: z.ZodString; created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>; updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>; } & { created_by: z.ZodString; description: z.ZodOptional<z.ZodNullable<z.ZodString>>; metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>; name: z.ZodString; resource_id: z.ZodString; scope: z.ZodString; size: z.ZodNumber; type: z.ZodString; updated_by: z.ZodString; url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, { created_by: string; updated_by: string; type: string; name: string; resource_id: string; scope: string; size: number; description?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; url?: string | null | undefined; }, { created_by: string; updated_by: string; type: string; name: string; resource_id: string; scope: string; size: number; description?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; url?: string | null | undefined; }>; export declare const UpdateFileSchema: z.ZodObject<{ updated_by: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>; metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>; resource_id: z.ZodOptional<z.ZodString>; scope: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>; }, "strip", z.ZodTypeAny, { updated_by?: string | undefined; type?: string | undefined; name?: string | undefined; description?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; resource_id?: string | undefined; scope?: string | undefined; size?: number | undefined; url?: string | null | undefined; }, { updated_by?: string | undefined; type?: string | undefined; name?: string | undefined; description?: string | null | undefined; metadata?: Record<string, unknown> | null | undefined; resource_id?: string | undefined; scope?: string | undefined; size?: number | undefined; url?: string | null | undefined; }>; export type File = z.infer<typeof FileSchema>; export type CreateFileDto = z.infer<typeof CreateFileSchema>; export type UpdateFileDto = z.infer<typeof UpdateFileSchema>;