import { z } from 'zod'; import { PromocodeSchema } from '../../models'; export namespace CreatePromocodeCommand { export const RequestSchema = PromocodeSchema.omit({ uuid: true, createdAt: true, updatedAt: true, }).extend({ code: z.string().optional(), }); export type Request = z.infer; export const ResponseSchema = z.object({ data: PromocodeSchema, }); export type Response = z.infer; }