function getGroupRemainingByEventId
getGroupRemainingByEventId(
events: EventForGroupLookup[],
date?: string | null
): Promise<RemainingMap>

Per-event view of group remaining capacity. Daily events are dropped when date is null — their cap is per-date, so a cumulative count would misreport spots that other dates still have.

Parameters

events: EventForGroupLookup[]
optional
date: string | null = null

Return Type

Promise<RemainingMap>

Usage

import { getGroupRemainingByEventId } from "doc.ts";