@vindentech/api-client 0.3.0-next.62 → 0.3.0-next.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5359,6 +5359,8 @@ export interface ProductDto {
5359
5359
  status: string;
5360
5360
  /** In-storage unit count — a projection of the product's live IN_STORAGE pods (SUM of their quantity), recomputed alongside status. Never client-set; frozen alongside status once it leaves CREATED/HOME/IN_STORAGE. */
5361
5361
  quantity: number;
5362
+ /** In-storage units NOT already committed to an open delivery — `quantity` minus what live order lines on live, non-terminal DELIVERY orders still expect to take out (requested minus already picked, so a part-picked order is not counted twice). This, not `quantity`, is the ceiling a booking UI should clamp a delivery selection to. Never negative. Placement enforces the same number under a lock and answers 409 `product_quantity_unavailable` when a cart exceeds it, so treat that refusal — not this value — as authoritative: the value read here can be stale by the time the order is placed, and for a caller who cannot see every committing order (warehouse staff, typically) it reads high. An org user's own My-Storage read is exact. Unaffected by MOVE and PICKUP orders, which neither reserve stock nor are refused for lack of it. */
5363
+ availableQuantity: number;
5362
5364
  /** @nullable */
5363
5365
  categoryId: number | null;
5364
5366
  /** @nullable */