import { z } from "zod";

export const schema = z.object({
    _id: z.string(),
    uuid: z.string(),
    expiryStarts: z.string(),
    expiryEnds: z.string(),
    isConfirmed: z.boolean(),
    deleted: z.boolean(),
    active: z.boolean(),
    isNotificationSend: z.boolean(),
    isEmailSend: z.boolean(),
    expiresAt: z.string(),
    tag: z.string(),
    email: z.string(),
    phone: z.string().optional(),
    collectionTokens: z.object({
        defaultSelection: z.string().nullable().optional(), selectedBuildIDS: z.array(z.string()).optional(), selectedCompanyIDS: z.array(z.string()).optional()
    }).nullable().optional(),
    createdAt: z.string(),
    updatedAt: z.string(),
});

export type schemaType = z.infer<typeof schema>;
