feat(shared): zod şemaları, Türkçe arama ve TL/tarih biçimleri

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 01:35:10 +03:00
parent c875847b65
commit 4dbd2eb441
11 changed files with 504 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
import { z } from "zod";
import { tr } from "../../i18n/tr";
/** Giriş formu: kullanıcı adı veya e-posta + şifre. Biçim kontrolü sunucuda yapılır. */
export const loginSchema = z.object({
identifier: z.string().trim().min(1, tr.auth.identifierRequired),
password: z.string().min(1, tr.auth.passwordRequired),
});
export type LoginInput = z.infer<typeof loginSchema>;