chopme-frontend-common 1.0.55 → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ export declare const createMenuSchema: (roundToNearestFCFA?: number) => z.ZodObj
|
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
category: z.ZodString;
|
|
5
5
|
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
price: z.
|
|
6
|
+
price: z.ZodNumber;
|
|
7
7
|
available: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type CreateMenuDto = z.infer<ReturnType<typeof createMenuSchema>>;
|
|
@@ -6,7 +6,7 @@ const createMenuSchema = (roundToNearestFCFA = 5) => zod_1.z.object({
|
|
|
6
6
|
name: zod_1.z.string().min(1, "Menu name is required"),
|
|
7
7
|
category: zod_1.z.string().min(1, "Category is required"),
|
|
8
8
|
description: zod_1.z.string().optional(),
|
|
9
|
-
price: zod_1.z
|
|
9
|
+
price: zod_1.z
|
|
10
10
|
.number({ message: "Price must be a number" })
|
|
11
11
|
.min(0, "Price must be at least 0")
|
|
12
12
|
.refine((val) => val % roundToNearestFCFA === 0, {
|