Replace entire repo content with correct code from /root/shahikitchen-website/
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
export interface KitchenOrderItem {
|
||||
name: string;
|
||||
qty: number;
|
||||
}
|
||||
|
||||
export type OrderSource = 'table' | 'foodora' | 'uber' | 'wolt' | 'pickup' | 'other';
|
||||
|
||||
export type OrderStatus = 'received' | 'review' | 'preparing' | 'packing' | 'ready';
|
||||
|
||||
export interface KitchenOrder {
|
||||
id: string;
|
||||
source: OrderSource;
|
||||
label: string;
|
||||
customer: string;
|
||||
items: KitchenOrderItem[];
|
||||
status: OrderStatus;
|
||||
receivedAt: Date;
|
||||
etaMinutes: number;
|
||||
}
|
||||
|
||||
export const ORDER_STATUS_PIPELINE: readonly OrderStatus[] = [
|
||||
'received',
|
||||
'review',
|
||||
'preparing',
|
||||
'packing',
|
||||
'ready',
|
||||
] as const;
|
||||
Reference in New Issue
Block a user