Function: buildHockeytechAnalytics()
buildHockeytechAnalytics(
league):Record<string, (gameId) =>Promise<Row[]>>
Defined in: src/analytics/hockeytech_family.ts:222
The four per-league callables py's build_family(league) mints, keyed <lg>_game_shifts etc.
Parameters
league
string
A slug present in HOCKEYTECH_LEAGUES.
Returns
Record<string, (gameId) => Promise<Row[]>>
An object with <league>_game_shifts (hockeytechShiftStints),
<league>_pbp (hockeytechEnrichedPbp), <league>_player_toi
(hockeytechPlayerToi) and <league>_game_corsi (hockeytechGameCorsi),
each taking only a gameId.
Throws
Error when league is not a key of HOCKEYTECH_LEAGUES.
Example
import { buildHockeytechAnalytics } from "sportsdataverse/dist/analytics/hockeytech_family.js";
const ohl = buildHockeytechAnalytics("ohl");
const pbp = await ohl.ohl_pbp(27225);
Remarks
Snake_case names only; allHockeytechAnalytics adds the camelCase aliases.