Foodtruck Order — TypeScript Reference - v0.1.0
    Preparing search index...
    • Deliver one ready order, which also removes it from the active kitchen queue.

      The server commits the state change and its history fact and deletes nothing, so the order itself stays durable. What the caller observes is queue membership: because a delivered order is no longer active, the authoritative way to confirm the hand-off is to re-read the queue rather than to trust this response.

      A 409 CONFLICT means the order was no longer ready to hand over — another screen delivered it first, or the order is already gone from the queue. It is reported as a rejected promise in the same way as the earlier advances, and there is deliberately no reverse operation to call afterwards.

      Parameters

      • orderId: string

      Returns Promise<OrderStatusTransition>