feat: add Zod validation schemas for all domain routes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-03-23 08:57:38 +01:00
parent a4303b0188
commit d2b22e9399
32 changed files with 819 additions and 140 deletions

View File

@@ -0,0 +1,11 @@
import { z } from 'zod';
export const UpdateProfileSchema = z.object({
email: z.string().email('Neplatný formát e-mailu').optional(),
first_name: z.string().optional(),
last_name: z.string().optional(),
current_password: z.string().optional(),
new_password: z.string().optional(),
});
export type UpdateProfileInput = z.infer<typeof UpdateProfileSchema>;