Stage M1
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user