Overview
TheOrderStatus type represents all possible states an order can be in throughout its lifecycle in the Kitchen Display System. This is a union type that ensures type safety when working with order statuses.
Type Definition
Status Values
Initial status when an order is first received by the system. The order has been placed but not yet acknowledged by kitchen staff.
The order has been acknowledged and accepted by kitchen staff. Ready to begin preparation.
The order is currently being prepared in the kitchen. Active cooking/assembly is in progress.
The order has been completed and is ready for pickup or delivery. Waiting for customer or driver.
The order has been picked up by the customer or delivery driver. In transit to final destination.
The order has been successfully delivered to the customer. Final state for successful orders.
The order has been cancelled. Final state for cancelled orders. Can occur at any point before pickup.
Constants
ALL_ORDER_STATUSES
An array containing all valid order status values. Useful for validation, iteration, and generating UI elements.Usage Examples
Status Flow
For information about valid transitions between statuses, see the Order Transitions documentation.
- RECEIVED - Order arrives in the system
- CONFIRMED - Kitchen acknowledges the order
- PREPARING - Kitchen begins preparation
- READY - Order is completed
- PICKED_UP - Order is collected
- DELIVERED - Order reaches customer