UNPKG

@tmlmobilidade/types

Version:
76 lines (75 loc) 2.94 kB
import { z } from 'zod'; export declare const VerificationTokenSchema: 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>>; 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>; }, "is_locked"> & { expires_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; token: z.ZodString; user_id: z.ZodString; }, "strip", z.ZodTypeAny, { _id: string; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; expires_at: number & { __brand: "UnixTimestamp"; }; token: string; user_id: string; updated_by?: string | undefined; }, { _id: string; created_at: number; updated_at: number; expires_at: number; token: string; user_id: string; created_by?: string | null | undefined; updated_by?: string | undefined; }>; export declare const CreateVerificationTokenSchema: z.ZodObject<Omit<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>>; 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>; }, "is_locked"> & { expires_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; token: z.ZodString; user_id: z.ZodString; }, "_id" | "created_at" | "created_by" | "updated_at" | "updated_by">, "strip", z.ZodTypeAny, { expires_at: number & { __brand: "UnixTimestamp"; }; token: string; user_id: string; }, { expires_at: number; token: string; user_id: string; }>; export declare const UpdateVerificationTokenSchema: z.ZodObject<{ expires_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>; token: z.ZodOptional<z.ZodString>; user_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { expires_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined; token?: string | undefined; user_id?: string | undefined; }, { expires_at?: number | undefined; token?: string | undefined; user_id?: string | undefined; }>; export type VerificationToken = z.infer<typeof VerificationTokenSchema>; export type CreateVerificationTokenDto = z.infer<typeof CreateVerificationTokenSchema>; export type UpdateVerificationTokenDto = z.infer<typeof UpdateVerificationTokenSchema>;