/** * NHL-specific types for fantasy hockey * @module */ /** * NHL roster positions */ export type RosterPosition = 'C' | 'LW' | 'RW' | 'D' | 'UTIL' | 'G' | 'BN' | 'IR' | 'IR+'; /** * NHL player positions */ export type PlayerPosition = 'C' | 'LW' | 'RW' | 'C,LW' | 'C,RW' | 'LW,RW' | 'C,LW,RW' | 'D' | 'G'; /** * NHL position type for player/stats categorization * This is used to differentiate between skaters and goalies */ export type PositionType = 'P' | 'G'; /** * NHL player injury status */ export type InjuryStatus = 'IR' | 'IR-LT' | 'IR-NR' | 'DTD' | 'O' | 'SUSP' | 'NA' | ''; /** * NHL skater stat IDs used by Yahoo */ export type SkaterStatId = keyof typeof SkaterStatIdMap; export type SkaterStatName = (typeof SkaterStatIdMap)[keyof typeof SkaterStatIdMap]['name']; export type SkaterStatAbbrev = (typeof SkaterStatIdMap)[keyof typeof SkaterStatIdMap]['abbrev']; export declare const SkaterStatIdMap: { readonly 0: { readonly name: "GamesPlayed"; readonly abbrev: "GP"; }; readonly 1: { readonly name: "Goals"; readonly abbrev: "G"; }; readonly 2: { readonly name: "Assists"; readonly abbrev: "A"; }; readonly 3: { readonly name: "Points"; readonly abbrev: "P"; }; readonly 4: { readonly name: "PlusMinus"; readonly abbrev: "+/-"; }; readonly 5: { readonly name: "PenaltyMinutes"; readonly abbrev: "PIM"; }; readonly 6: { readonly name: "PowerPlayGoals"; readonly abbrev: "PPG"; }; readonly 7: { readonly name: "PowerPlayAssists"; readonly abbrev: "PPA"; }; readonly 8: { readonly name: "PowerPlayPoints"; readonly abbrev: "PPP"; }; readonly 9: { readonly name: "ShorthandedGoals"; readonly abbrev: "SHG"; }; readonly 10: { readonly name: "ShorthandedAssists"; readonly abbrev: "SHA"; }; readonly 11: { readonly name: "ShorthandedPoints"; readonly abbrev: "SHP"; }; readonly 12: { readonly name: "GameWinningGoals"; readonly abbrev: "GWG"; }; readonly 13: { readonly name: "Shots"; readonly abbrev: "SOG"; }; readonly 14: { readonly name: "ShootingPercentage"; readonly abbrev: "SH%"; }; readonly 15: { readonly name: "FaceoffsWon"; readonly abbrev: "FOW"; }; readonly 16: { readonly name: "FaceoffsLost"; readonly abbrev: "FOL"; }; readonly 17: { readonly name: "Hits"; readonly abbrev: "HIT"; }; readonly 18: { readonly name: "Blocks"; readonly abbrev: "BLK"; }; }; export declare const SkaterStatEnum: Record<"A" | "G" | "P" | "GamesPlayed" | "GP" | "Goals" | "Assists" | "Points" | "PlusMinus" | "+/-" | "PenaltyMinutes" | "PIM" | "PowerPlayGoals" | "PPG" | "PowerPlayAssists" | "PPA" | "PowerPlayPoints" | "PPP" | "ShorthandedGoals" | "SHG" | "ShorthandedAssists" | "SHA" | "ShorthandedPoints" | "SHP" | "GameWinningGoals" | "GWG" | "Shots" | "SOG" | "ShootingPercentage" | "SH%" | "FaceoffsWon" | "FOW" | "FaceoffsLost" | "FOL" | "Hits" | "HIT" | "Blocks" | "BLK", number>; /** * NHL goalie stat IDs used by Yahoo */ export type GoalieStatId = keyof typeof GoalieStatIdMap; export type GoalieStatName = (typeof GoalieStatIdMap)[keyof typeof GoalieStatIdMap]['name']; export type GoalieStatAbbrev = (typeof GoalieStatIdMap)[keyof typeof GoalieStatIdMap]['abbrev']; export declare const GoalieStatIdMap: { readonly 0: { readonly name: "GamesPlayed"; readonly abbrev: "GP"; }; readonly 19: { readonly name: "GamesStarted"; readonly abbrev: "GS"; }; readonly 20: { readonly name: "Wins"; readonly abbrev: "W"; }; readonly 21: { readonly name: "Losses"; readonly abbrev: "L"; }; readonly 22: { readonly name: "OvertimeLosses"; readonly abbrev: "OTL"; }; readonly 23: { readonly name: "Shutouts"; readonly abbrev: "SHO"; }; readonly 24: { readonly name: "GoalsAgainst"; readonly abbrev: "GA"; }; readonly 25: { readonly name: "GoalsAgainstAverage"; readonly abbrev: "GAA"; }; readonly 26: { readonly name: "Saves"; readonly abbrev: "SV"; }; readonly 27: { readonly name: "SavePercentage"; readonly abbrev: "SV%"; }; readonly 28: { readonly name: "ShotsAgainst"; readonly abbrev: "SA"; }; }; export declare const GoalieStatEnum: Record<"W" | "GamesPlayed" | "GP" | "GamesStarted" | "GS" | "Wins" | "Losses" | "L" | "OvertimeLosses" | "OTL" | "Shutouts" | "SHO" | "GoalsAgainst" | "GA" | "GoalsAgainstAverage" | "GAA" | "Saves" | "SV" | "SavePercentage" | "SV%" | "ShotsAgainst" | "SA", number>; /** * All NHL stats (union of skater and goalie stats) */ export type NHLStat = SkaterStatName | SkaterStatAbbrev | GoalieStatName | GoalieStatAbbrev; export declare const TeamKeyMappings: { 'nhl.t.19': { teamFullName: string; teamAbbr: string; }; 'nhl.t.17': { teamFullName: string; teamAbbr: string; }; 'nhl.t.8': { teamFullName: string; teamAbbr: string; }; 'nhl.t.23': { teamFullName: string; teamAbbr: string; }; 'nhl.t.16': { teamFullName: string; teamAbbr: string; }; 'nhl.t.30': { teamFullName: string; teamAbbr: string; }; 'nhl.t.18': { teamFullName: string; teamAbbr: string; }; 'nhl.t.7': { teamFullName: string; teamAbbr: string; }; 'nhl.t.28': { teamFullName: string; teamAbbr: string; }; 'nhl.t.2': { teamFullName: string; teamAbbr: string; }; 'nhl.t.14': { teamFullName: string; teamAbbr: string; }; 'nhl.t.12': { teamFullName: string; teamAbbr: string; }; 'nhl.t.4': { teamFullName: string; teamAbbr: string; }; 'nhl.t.13': { teamFullName: string; teamAbbr: string; }; 'nhl.t.5': { teamFullName: string; teamAbbr: string; }; 'nhl.t.20': { teamFullName: string; teamAbbr: string; }; 'nhl.t.60': { teamFullName: string; teamAbbr: string; }; 'nhl.t.21': { teamFullName: string; teamAbbr: string; }; 'nhl.t.3': { teamFullName: string; teamAbbr: string; }; 'nhl.t.29': { teamFullName: string; teamAbbr: string; }; 'nhl.t.26': { teamFullName: string; teamAbbr: string; }; 'nhl.t.27': { teamFullName: string; teamAbbr: string; }; 'nhl.t.58': { teamFullName: string; teamAbbr: string; }; 'nhl.t.22': { teamFullName: string; teamAbbr: string; }; 'nhl.t.59': { teamFullName: string; teamAbbr: string; }; 'nhl.t.9': { teamFullName: string; teamAbbr: string; }; 'nhl.t.11': { teamFullName: string; teamAbbr: string; }; 'nhl.t.15': { teamFullName: string; teamAbbr: string; }; 'nhl.t.25': { teamFullName: string; teamAbbr: string; }; 'nhl.t.10': { teamFullName: string; teamAbbr: string; }; 'nhl.t.6': { teamFullName: string; teamAbbr: string; }; 'nhl.t.1': { teamFullName: string; teamAbbr: string; }; }; export type TeamKey = keyof typeof TeamKeyMappings; //# sourceMappingURL=nhl.d.ts.map