This commit is contained in:
Nông Đức Huy
2026-08-13 23:20:22 +07:00
parent 3e5d38ec18
commit 3d6b0e0d4e
145 changed files with 7817 additions and 801 deletions
+10
View File
@@ -1,8 +1,18 @@
import { z } from 'zod';
import { LOCALES } from '@sport/types';
import { slugSchema } from './common';
import { cursorPageQuerySchema } from './pagination';
/**
* Every catalog read takes a locale. It is a query parameter rather than only
* an `Accept-Language` header so that a URL is fully self-describing — the same
* link always returns the same language, and CDN cache keys stay correct
* without a `Vary` header that fragments the cache unpredictably.
*/
export const localeSchema = z.enum(LOCALES);
export const genderTargetSchema = z.enum(['MEN', 'WOMEN', 'KIDS', 'UNISEX']);
export const sportTypeSchema = z.enum([