UNPKG

company-cafeteria-shared-demo

Version:

Package partagé pour l'écosystème Cafétéria Entreprise

77 lines 2.5 kB
import { z } from 'zod'; export declare const orderItemSchema: z.ZodObject<{ menuItemId: z.ZodString; quantity: z.ZodNumber; price: z.ZodNumber; modifications: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { menuItemId: string; quantity: number; price: number; modifications?: string[] | undefined; }, { menuItemId: string; quantity: number; price: number; modifications?: string[] | undefined; }>; export declare const orderSchema: z.ZodObject<{ id: z.ZodString; userId: z.ZodString; items: z.ZodArray<z.ZodObject<{ menuItemId: z.ZodString; quantity: z.ZodNumber; price: z.ZodNumber; modifications: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { menuItemId: string; quantity: number; price: number; modifications?: string[] | undefined; }, { menuItemId: string; quantity: number; price: number; modifications?: string[] | undefined; }>, "many">; total: z.ZodNumber; status: z.ZodEnum<["pending", "confirmed", "preparing", "ready", "completed", "cancelled"]>; paymentMethod: z.ZodEnum<["card", "mobile", "account", "cash"]>; paymentStatus: z.ZodEnum<["pending", "completed", "failed", "refunded"]>; scheduledFor: z.ZodOptional<z.ZodDate>; createdAt: z.ZodDate; updatedAt: z.ZodDate; }, "strip", z.ZodTypeAny, { id: string; status: "pending" | "confirmed" | "preparing" | "ready" | "completed" | "cancelled"; createdAt: Date; updatedAt: Date; userId: string; items: { menuItemId: string; quantity: number; price: number; modifications?: string[] | undefined; }[]; total: number; paymentMethod: "card" | "mobile" | "account" | "cash"; paymentStatus: "pending" | "completed" | "failed" | "refunded"; scheduledFor?: Date | undefined; }, { id: string; status: "pending" | "confirmed" | "preparing" | "ready" | "completed" | "cancelled"; createdAt: Date; updatedAt: Date; userId: string; items: { menuItemId: string; quantity: number; price: number; modifications?: string[] | undefined; }[]; total: number; paymentMethod: "card" | "mobile" | "account" | "cash"; paymentStatus: "pending" | "completed" | "failed" | "refunded"; scheduledFor?: Date | undefined; }>; //# sourceMappingURL=order.d.ts.map