metis-desk/modules/assets/src/common/brands.ts

17 lines
551 B
TypeScript
Raw Normal View History

2026-10-07 16:08:48 +00:00
import { z } from "zod/v4";
import { BrandInputSchema } from "../api/domain/brand.aggregate";
export type { BrandInput } from "../api/domain/brand.aggregate";
export { BrandInputSchema };
export const BrandSchema = z.strictObject({
id: z.uuid(),
name: z.string().min(1).max(100),
active: z.boolean(),
builtin: z.boolean(),
});
export const BrandsResponseSchema = z.strictObject({ brands: z.array(BrandSchema) });
export const BrandResponseSchema = z.strictObject({ brand: BrandSchema });
export type BrandDTO = z.infer<typeof BrandSchema>;