Foodtruck Order — TypeScript Reference - v0.1.0
    Preparing search index...

    One order still active in the kitchen queue.

    queueNumber is an optional display string that is never identity: it may be duplicated across orders and is null when the order has none. Clients must omit such a number rather than render a placeholder for it.

    interface ActiveOrder {
        createdAt: string;
        id: string;
        items: readonly ActiveOrderItem[];
        note: string | null;
        queueNumber: string | null;
        refund: RefundActionState;
        status: "Queued" | "Preparing" | "Ready";
    }
    Index
    createdAt: string

    Queue-entry time, and the authoritative oldest-first ordering key.

    id: string

    Server-generated immutable order identity.

    items: readonly ActiveOrderItem[]

    Immutable item snapshots as finalization captured them.

    note: string | null

    Optional order-level note, or null when the order has none.

    queueNumber: string | null

    Optional queue display string, or null when the order has none.

    Safe refund availability and the latest operation summary shown in the detail menu.

    status: "Queued" | "Preparing" | "Ready"

    Current fulfillment state.

    Preparing and Ready are still active queue members, so advancing an order does not remove it from the queue, change its position, or change the active count. A delivered order is no longer active at all and is therefore never returned here — it left the queue by reaching Delivered, not by being deleted.