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

    Interface ActiveOrder

    One active kitchen-queue order together with its item snapshots.

    The kitchen queue reads durable rows rather than recomputing anything: items are the same immutable snapshots finalization wrote, so a later catalog edit or deletion never changes what the operator is asked to cook. queueNumber is an optional, non-unique display string that is never identity and may be absent.

    interface ActiveOrder {
        createdAt: Date;
        id: string;
        items: FinalizedOrderItem[];
        note: string | null;
        queueNumber: string | null;
        refund: RefundActionState;
        status: OrderStatus;
    }
    Index
    createdAt: Date

    Database time the order entered the queue; the authoritative oldest-first ordering key.

    id: string

    Server-generated immutable order identity; never the queue number.

    Immutable item snapshots in a stable order for presentation.

    note: string | null

    Optional order-level kitchen note, or null when none was captured.

    queueNumber: string | null

    Optional operator-facing queue display value, or null when none was captured.

    refund: RefundActionState

    Safe refund availability and the latest operation summary for the detail menu.

    status: OrderStatus

    Current fulfillment state.