2023-06-09 18:21:18 +10:00
|
|
|
import { z } from 'zod';
|
|
|
|
|
|
|
|
|
|
export const ZSignUpMutationSchema = z.object({
|
|
|
|
|
name: z.string().min(1),
|
|
|
|
|
email: z.string().email(),
|
|
|
|
|
password: z.string().min(6),
|
2023-09-01 19:46:44 +10:00
|
|
|
signature: z.string().min(1, { message: 'A signature is required.' }),
|
2023-06-09 18:21:18 +10:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export type TSignUpMutationSchema = z.infer<typeof ZSignUpMutationSchema>;
|
2023-12-01 05:52:16 +05:30
|
|
|
|
|
|
|
|
export const ZVerifyPasswordMutationSchema = ZSignUpMutationSchema.pick({ password: true });
|
2024-01-20 23:30:56 +00:00
|
|
|
|
|
|
|
|
export const ZDeleteAccountMutationSchema = z.object({
|
|
|
|
|
email: z.string().email(),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export type TDeleteAccountMutationSchema = z.infer<typeof ZDeleteAccountMutationSchema>;
|