import { api } from "@/lib/api"; export type CustomerOrderItem = { id: string; nameFa: string; variantLabel: string | null; quantity: number; unitPrice: number; storeId: string; }; export type CustomerOrder = { id: string; status: string; itemCount: number; totalAmount: number; note: string; createdAt: string; items: CustomerOrderItem[]; fulfillments: { id: string; storeId: string; status: string }[]; }; export function fetchMyOrders() { return api("/orders/mine"); } export function fetchMyOrder(id: string) { return api(`/orders/mine/${id}`); }