/
opt
/
mawid
/
packages
/
shared
/
src
/
schemas
/
/opt/mawid/packages/shared/src/schemas
mkdir
upload
Name
Size
Mode
Actions
appointment.ts
1064
0644
edit
dl
rm
auth.ts
477
0644
edit
dl
rm
clinic.ts
863
0644
edit
dl
rm
index.ts
184
0644
edit
dl
rm
service.ts
572
0644
edit
dl
rm
staff.ts
550
0644
edit
dl
rm
working-hours.ts
765
0644
edit
dl
rm
Edit:
/opt/mawid/packages/shared/src/schemas/auth.ts
(477B)
import { z } from 'zod'; export const registerSchema = z.object({ clinicName: z.string().min(1).max(120), clinicPhone: z.string().min(5).max(20), name: z.string().min(1).max(120), email: z.string().email(), password: z.string().min(8).max(128), }); export type RegisterInput = z.infer<typeof registerSchema>; export const loginSchema = z.object({ email: z.string().email(), password: z.string().min(1), }); export type LoginInput = z.infer<typeof loginSchema>;
Save
cmd:
run