function getGroupRemainingByGroupId
getGroupRemainingByGroupId(
groupIds: number[],
date?: string | null
): Promise<RemainingMap>

Per-group remaining capacity. Groups with max_attendees <= 0 (no cap) are omitted from the map. With date = null, daily-event attendees count cumulatively — correct for booking-time enforcement after upstream date validation, misleading for display.

Parameters

groupIds: number[]
optional
date: string | null = null

Return Type

Promise<RemainingMap>

Usage

import { getGroupRemainingByGroupId } from "doc.ts";