feat(tip): support dynamic gift products
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const GiftCategorySchema = z
|
||||
.object({
|
||||
category: z.string().min(1),
|
||||
name: z.string(),
|
||||
productCount: z.number().int().nonnegative(),
|
||||
imageUrl: z.string().nullable(),
|
||||
})
|
||||
.readonly();
|
||||
|
||||
export type GiftCategoryInput = z.input<typeof GiftCategorySchema>;
|
||||
export type GiftCategoryData = z.output<typeof GiftCategorySchema>;
|
||||
export type GiftCategory = GiftCategoryData;
|
||||
Reference in New Issue
Block a user