Function: assertCapacityAvailable()
function assertCapacityAvailable(
repos: BookingRepositories,
members: readonly ClaimIntent[],
opts: CapacityCheckOptions
): Promise<void>;Defined in: server/bookings/capacity.ts:107
Assert every member of the batch can claim its capacity, or throw
GroupClaimFailedError wrapping the per-member errors. MUST run inside
BookingRepositories.transaction(...), in the same transaction as the
status flips it guards (§6.6).
Parameters
| Parameter | Type |
|---|---|
repos | BookingRepositories |
members | readonly ClaimIntent[] |
opts | CapacityCheckOptions |
Returns
Promise<void>