feat: manufacturers route — list, get, create

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-18 16:16:27 +02:00
parent 8c1b19f07d
commit ec27df1d0f
3 changed files with 52 additions and 0 deletions

View File

@@ -146,6 +146,18 @@ export const bulkUpsertGlobalItemsSchema = z.object({
items: z.array(upsertGlobalItemSchema).min(1).max(100),
});
export const createManufacturerSchema = z.object({
name: z.string().min(1).max(200),
slug: z
.string()
.min(1)
.max(100)
.regex(/^[a-z0-9-]+$/, "Slug must be lowercase alphanumeric with hyphens"),
website: z.string().url(),
tier: z.number().int().min(1).max(3).optional(),
country: z.string().length(2).optional(),
});
// Profile schemas
export const updateProfileSchema = z.object({
displayName: z.string().max(100).optional(),