nhl-api-ts 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -2
- package/dist/api/edge.d.mts +25 -24
- package/dist/api/game-center.d.mts +9 -8
- package/dist/api/helpers.d.mts +4 -3
- package/dist/api/misc.d.mts +6 -6
- package/dist/api/players.d.mts +4 -3
- package/dist/api/query/builder.d.mts +2 -0
- package/dist/api/query/builder.mjs +3 -1
- package/dist/api/query/index.d.mts +2 -2
- package/dist/api/query/index.mjs +1 -1
- package/dist/api/query/sorting/goalie-sorts.d.mts +55 -0
- package/dist/api/query/sorting/goalie-sorts.mjs +43 -48
- package/dist/api/query/sorting/sorting-options.d.mts +125 -0
- package/dist/api/query/sorting/sorting-options.mjs +3 -2
- package/dist/api/schedule.d.mts +12 -11
- package/dist/api/standings.d.mts +4 -3
- package/dist/api/stats.d.mts +19 -14
- package/dist/api/stats.mjs +23 -5
- package/dist/api/teams.d.mts +6 -5
- package/dist/index.d.mts +2 -1
- package/dist/nhl-client.d.mts +13 -9
- package/dist/nhl-client.mjs +1 -1
- package/dist/types/common.d.mts +81 -0
- package/dist/types/common.mjs +2 -0
- package/dist/types/edge.d.mts +1024 -0
- package/dist/types/edge.mjs +1 -0
- package/dist/types/game-center.d.mts +1194 -0
- package/dist/types/game-center.mjs +1 -0
- package/dist/types/helpers.d.mts +17 -0
- package/dist/types/helpers.mjs +1 -0
- package/dist/types/index.d.mts +10 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/misc.d.mts +68 -0
- package/dist/types/misc.mjs +2 -0
- package/dist/types/players.d.mts +42 -0
- package/dist/types/players.mjs +1 -0
- package/dist/types/schedule.d.mts +456 -0
- package/dist/types/schedule.mjs +1 -0
- package/dist/types/standings.d.mts +104 -0
- package/dist/types/standings.mjs +1 -0
- package/dist/types/stats.d.mts +1086 -0
- package/dist/types/stats.mjs +1 -0
- package/dist/types/teams.d.mts +29 -0
- package/dist/types/teams.mjs +1 -0
- package/dist/utils.d.mts +0 -1
- package/package.json +11 -3
- package/dist/api/query/errors.d.mts +0 -3
- package/dist/api/query/errors.mjs +0 -6
- package/dist/api/query/filters/base.d.mts +0 -4
- package/dist/api/query/filters/base.mjs +0 -2
- package/dist/api/query/filters/decision.d.mts +0 -13
- package/dist/api/query/filters/decision.mjs +0 -26
- package/dist/api/query/filters/draft.d.mts +0 -15
- package/dist/api/query/filters/draft.mjs +0 -27
- package/dist/api/query/filters/experience.d.mts +0 -9
- package/dist/api/query/filters/experience.mjs +0 -17
- package/dist/api/query/filters/franchise.d.mts +0 -9
- package/dist/api/query/filters/franchise.mjs +0 -15
- package/dist/api/query/filters/game-type.d.mts +0 -10
- package/dist/api/query/filters/game-type.mjs +0 -16
- package/dist/api/query/filters/goalie-sorts.d.mts +0 -3
- package/dist/api/query/filters/goalie-sorts.mjs +0 -55
- package/dist/api/query/filters/home-road.d.mts +0 -9
- package/dist/api/query/filters/home-road.mjs +0 -16
- package/dist/api/query/filters/index.d.mts +0 -14
- package/dist/api/query/filters/index.mjs +0 -14
- package/dist/api/query/filters/nationality.d.mts +0 -12
- package/dist/api/query/filters/nationality.mjs +0 -19
- package/dist/api/query/filters/opponent.d.mts +0 -10
- package/dist/api/query/filters/opponent.mjs +0 -16
- package/dist/api/query/filters/position.d.mts +0 -16
- package/dist/api/query/filters/position.mjs +0 -28
- package/dist/api/query/filters/season.d.mts +0 -14
- package/dist/api/query/filters/season.mjs +0 -24
- package/dist/api/query/filters/shoot-catch.d.mts +0 -9
- package/dist/api/query/filters/shoot-catch.mjs +0 -16
- package/dist/api/query/filters/status.d.mts +0 -20
- package/dist/api/query/filters/status.mjs +0 -28
- package/dist/logging.d.mts +0 -14
- package/dist/logging.mjs +0 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SkaterSummaryRow } from '#src/types/stats.mjs';
|
|
2
|
+
import type { RosterPlayer } from '#src/types/teams.mjs';
|
|
3
|
+
/**
|
|
4
|
+
* A rostered player as returned by `helpers.allPlayers`: the roster entry with
|
|
5
|
+
* a `team` abbreviation and the localized names flattened to plain strings.
|
|
6
|
+
*/
|
|
7
|
+
export interface AllPlayersEntry extends Omit<RosterPlayer, 'firstName' | 'lastName'> {
|
|
8
|
+
team: string;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A skater summary row from `helpers.allPlayersSummaryStatistics`, merged with
|
|
14
|
+
* the roster fields from `allPlayers` when the skater is on a roster.
|
|
15
|
+
*/
|
|
16
|
+
export interface PlayerSummaryStatistics extends SkaterSummaryRow, Partial<Omit<AllPlayersEntry, keyof SkaterSummaryRow>> {
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type * from '#src/types/common.mjs';
|
|
2
|
+
export type * from '#src/types/edge.mjs';
|
|
3
|
+
export type * from '#src/types/game-center.mjs';
|
|
4
|
+
export type * from '#src/types/helpers.mjs';
|
|
5
|
+
export type * from '#src/types/misc.mjs';
|
|
6
|
+
export type * from '#src/types/players.mjs';
|
|
7
|
+
export type * from '#src/types/schedule.mjs';
|
|
8
|
+
export type * from '#src/types/standings.mjs';
|
|
9
|
+
export type * from '#src/types/stats.mjs';
|
|
10
|
+
export type * from '#src/types/teams.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export interface Country {
|
|
2
|
+
id: string;
|
|
3
|
+
country3Code: string;
|
|
4
|
+
countryCode: string;
|
|
5
|
+
countryName: string;
|
|
6
|
+
hasPlayerStats: number;
|
|
7
|
+
imageUrl: string | null;
|
|
8
|
+
iocCode: string;
|
|
9
|
+
isActive: number;
|
|
10
|
+
nationalityName: string;
|
|
11
|
+
olympicUrl: string | null;
|
|
12
|
+
thumbnailUrl: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface DraftYear {
|
|
15
|
+
id: number;
|
|
16
|
+
draftYear: number;
|
|
17
|
+
rounds: number;
|
|
18
|
+
}
|
|
19
|
+
export interface GlossaryEntry {
|
|
20
|
+
id: number;
|
|
21
|
+
abbreviation: string;
|
|
22
|
+
definition: string;
|
|
23
|
+
firstSeasonForStat: number | null;
|
|
24
|
+
fullName: string;
|
|
25
|
+
languageCode: string;
|
|
26
|
+
lastUpdated: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ReportColumns {
|
|
29
|
+
displayItems: string[];
|
|
30
|
+
resultFilters: string[];
|
|
31
|
+
sortKeys: string[];
|
|
32
|
+
}
|
|
33
|
+
export interface ReportConfig {
|
|
34
|
+
game: ReportColumns;
|
|
35
|
+
season: ReportColumns;
|
|
36
|
+
}
|
|
37
|
+
export interface SeasonRules {
|
|
38
|
+
id: number;
|
|
39
|
+
allStarGameInUse: number;
|
|
40
|
+
conferencesInUse: number;
|
|
41
|
+
divisionsInUse: number;
|
|
42
|
+
endDate: string;
|
|
43
|
+
entryDraftInUse: number;
|
|
44
|
+
formattedSeasonId: string;
|
|
45
|
+
minimumPlayoffMinutesForGoalieStatsLeaders: number;
|
|
46
|
+
minimumRegularGamesForGoalieStatsLeaders: number;
|
|
47
|
+
nhlStanleyCupOwner: number;
|
|
48
|
+
numberOfGames: number;
|
|
49
|
+
olympicsParticipation: number;
|
|
50
|
+
pointForOTLossInUse: number;
|
|
51
|
+
preseasonStartdate: string | null;
|
|
52
|
+
regularSeasonEndDate: string;
|
|
53
|
+
rowInUse: number;
|
|
54
|
+
seasonOrdinal: number;
|
|
55
|
+
startDate: string;
|
|
56
|
+
supplementalDraftInUse: number;
|
|
57
|
+
tiesInUse: number;
|
|
58
|
+
totalPlayoffGames: number;
|
|
59
|
+
totalRegularSeasonGames: number;
|
|
60
|
+
wildcardInUse: number;
|
|
61
|
+
}
|
|
62
|
+
export interface StatsConfig {
|
|
63
|
+
playerReportData: Record<string, ReportConfig>;
|
|
64
|
+
goalieReportData: Record<string, ReportConfig>;
|
|
65
|
+
teamReportData: Record<string, ReportConfig>;
|
|
66
|
+
aggregatedColumns: string[];
|
|
67
|
+
individualColumns: string[];
|
|
68
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { LocalizedString, PositionCode, ShootsCatches } from '#src/types/common.mjs';
|
|
2
|
+
import type { RosterPlayer } from '#src/types/teams.mjs';
|
|
3
|
+
export interface Prospects {
|
|
4
|
+
forwards: ProspectsForward[];
|
|
5
|
+
defensemen: RosterPlayer[];
|
|
6
|
+
goalies: ProspectsGoalie[];
|
|
7
|
+
}
|
|
8
|
+
export interface ProspectsForward {
|
|
9
|
+
id: number;
|
|
10
|
+
headshot: string;
|
|
11
|
+
firstName: LocalizedString;
|
|
12
|
+
lastName: LocalizedString;
|
|
13
|
+
positionCode: PositionCode;
|
|
14
|
+
shootsCatches: ShootsCatches;
|
|
15
|
+
heightInInches: number;
|
|
16
|
+
weightInPounds: number;
|
|
17
|
+
heightInCentimeters: number;
|
|
18
|
+
weightInKilograms: number;
|
|
19
|
+
birthDate: string;
|
|
20
|
+
birthCity: LocalizedString;
|
|
21
|
+
birthCountry: string;
|
|
22
|
+
/** Absent when team=TOR. Low sample count */
|
|
23
|
+
birthStateProvince?: LocalizedString;
|
|
24
|
+
sweaterNumber?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ProspectsGoalie {
|
|
27
|
+
id: number;
|
|
28
|
+
headshot: string;
|
|
29
|
+
firstName: LocalizedString;
|
|
30
|
+
lastName: LocalizedString;
|
|
31
|
+
/** Low sample count */
|
|
32
|
+
sweaterNumber?: number;
|
|
33
|
+
positionCode: PositionCode;
|
|
34
|
+
shootsCatches: ShootsCatches;
|
|
35
|
+
heightInInches: number;
|
|
36
|
+
weightInPounds: number;
|
|
37
|
+
heightInCentimeters: number;
|
|
38
|
+
weightInKilograms: number;
|
|
39
|
+
birthDate: string;
|
|
40
|
+
birthCity: LocalizedString;
|
|
41
|
+
birthCountry: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import type { GameOutcome, GameScheduleState, GameState, GameType, LocalizedString, OddsPartner, PeriodDescriptor, PeriodType, SeriesStatus, TeamLogo, TeamOdd, TvBroadcast } from '#src/types/common.mjs';
|
|
2
|
+
export interface CalendarSchedule {
|
|
3
|
+
endDate: string;
|
|
4
|
+
nextStartDate: string;
|
|
5
|
+
previousStartDate: string;
|
|
6
|
+
startDate: string;
|
|
7
|
+
teams: CalendarScheduleTeam[];
|
|
8
|
+
}
|
|
9
|
+
export interface CalendarScheduleTeam {
|
|
10
|
+
id: number;
|
|
11
|
+
seasonId: number;
|
|
12
|
+
commonName: LocalizedString;
|
|
13
|
+
abbrev: string;
|
|
14
|
+
name: LocalizedString;
|
|
15
|
+
placeNameWithPreposition: LocalizedString;
|
|
16
|
+
placeName: LocalizedString;
|
|
17
|
+
logo: string;
|
|
18
|
+
darkLogo: string;
|
|
19
|
+
french: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ClubScheduleGame {
|
|
22
|
+
id: number;
|
|
23
|
+
season: number;
|
|
24
|
+
gameType: GameType;
|
|
25
|
+
gameDate: string;
|
|
26
|
+
venue: LocalizedString;
|
|
27
|
+
neutralSite: boolean;
|
|
28
|
+
startTimeUTC: string;
|
|
29
|
+
easternUTCOffset: string;
|
|
30
|
+
venueUTCOffset: string;
|
|
31
|
+
venueTimezone: string;
|
|
32
|
+
gameState: GameState;
|
|
33
|
+
gameScheduleState: GameScheduleState;
|
|
34
|
+
tvBroadcasts: TvBroadcast[];
|
|
35
|
+
awayTeam: ClubScheduleGameAwayTeam;
|
|
36
|
+
homeTeam: ScheduleHomeTeam;
|
|
37
|
+
periodDescriptor: PeriodDescriptor;
|
|
38
|
+
/** Absent when team=BUF,week=now; team=TOR,week=now; team=UTA,week=now */
|
|
39
|
+
gameOutcome?: GameOutcome;
|
|
40
|
+
/** Absent when team=BUF,week=now; team=TOR,week=now; team=UTA,week=now */
|
|
41
|
+
winningGoalie?: WinningGoalie;
|
|
42
|
+
/** Absent when team=BUF,week=now; team=TOR,week=now; team=UTA,week=now */
|
|
43
|
+
winningGoalScorer?: WinningGoalie;
|
|
44
|
+
/** Absent when team=BUF,week=now; team=TOR,week=now; team=UTA,week=now */
|
|
45
|
+
threeMinRecap?: string;
|
|
46
|
+
/** Absent when team=BUF,week=now; team=TOR,week=now; team=UTA,week=now */
|
|
47
|
+
condensedGame?: string;
|
|
48
|
+
gameCenterLink: string;
|
|
49
|
+
/** Absent when team=BUF,week=2024-02-10; team=BUF,week=now; team=TOR,week=now; team=UTA,week=now */
|
|
50
|
+
threeMinRecapFr?: string;
|
|
51
|
+
/** Absent when team=TOR,month=now; team=BUF,week=2024-02-10; team=BUF,week=now; team=TOR,week=now; team=UTA,week=now. Low sample count */
|
|
52
|
+
condensedGameFr?: string;
|
|
53
|
+
/** Absent when team=BUF,week=2024-02-10 */
|
|
54
|
+
ticketsLink?: string;
|
|
55
|
+
/** Absent when team=BUF,week=2024-02-10 */
|
|
56
|
+
ticketsLinkFr?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface ClubScheduleGameAwayTeam {
|
|
59
|
+
id: number;
|
|
60
|
+
commonName: LocalizedString;
|
|
61
|
+
placeName: LocalizedString;
|
|
62
|
+
placeNameWithPreposition: LocalizedString;
|
|
63
|
+
abbrev: string;
|
|
64
|
+
logo: string;
|
|
65
|
+
darkLogo: string;
|
|
66
|
+
awaySplitSquad: boolean;
|
|
67
|
+
/** Absent when team=BUF,week=now; team=TOR,week=now; team=UTA,week=now */
|
|
68
|
+
score?: number;
|
|
69
|
+
/** Absent when team=BUF,week=now */
|
|
70
|
+
airlineLink?: string;
|
|
71
|
+
/** Absent when team=BUF,week=now */
|
|
72
|
+
airlineDesc?: string;
|
|
73
|
+
/** Absent when team=BUF,week=now */
|
|
74
|
+
hotelLink?: string;
|
|
75
|
+
/** Absent when team=BUF,week=now */
|
|
76
|
+
hotelDesc?: string;
|
|
77
|
+
/** Absent when team=BUF,week=2024-02-10 */
|
|
78
|
+
radioLink?: string;
|
|
79
|
+
/** Absent when team=BUF,week=2024-02-10; team=BUF,week=now; team=TOR,week=now */
|
|
80
|
+
promoLink?: string;
|
|
81
|
+
/** Absent when team=BUF,week=2024-02-10; team=BUF,week=now; team=TOR,week=now */
|
|
82
|
+
promoDesc?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface ScheduleHomeTeam {
|
|
85
|
+
id: number;
|
|
86
|
+
commonName: LocalizedString;
|
|
87
|
+
placeName: LocalizedString;
|
|
88
|
+
placeNameWithPreposition: LocalizedString;
|
|
89
|
+
abbrev: string;
|
|
90
|
+
logo: string;
|
|
91
|
+
darkLogo: string;
|
|
92
|
+
homeSplitSquad: boolean;
|
|
93
|
+
/** Absent when team=BUF,week=now; team=TOR,week=now; team=UTA,week=now */
|
|
94
|
+
score?: number;
|
|
95
|
+
/** Absent when team=BUF,week=2024-02-10; team=BUF,week=now */
|
|
96
|
+
hotelLink?: string;
|
|
97
|
+
/** Absent when team=BUF,week=2024-02-10; team=BUF,week=now */
|
|
98
|
+
hotelDesc?: string;
|
|
99
|
+
/** Absent when team=BUF,week=2024-02-10; team=BUF,week=now; team=TOR,week=now */
|
|
100
|
+
airlineLink?: string;
|
|
101
|
+
/** Absent when team=BUF,week=2024-02-10; team=BUF,week=now; team=TOR,week=now */
|
|
102
|
+
airlineDesc?: string;
|
|
103
|
+
/** Absent when team=BUF,week=2024-02-10 */
|
|
104
|
+
radioLink?: string;
|
|
105
|
+
/** Absent when team=BUF,week=2024-02-10; team=BUF,week=now; team=TOR,week=now */
|
|
106
|
+
promoLink?: string;
|
|
107
|
+
/** Absent when team=BUF,week=2024-02-10; team=BUF,week=now; team=TOR,week=now */
|
|
108
|
+
promoDesc?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface SpecialEvent {
|
|
111
|
+
parentId: number;
|
|
112
|
+
name: LocalizedString;
|
|
113
|
+
/** Low sample count */
|
|
114
|
+
lightLogoUrl?: LocalizedString;
|
|
115
|
+
}
|
|
116
|
+
export interface GameWeekDay {
|
|
117
|
+
date: string;
|
|
118
|
+
dayAbbrev: string;
|
|
119
|
+
numberOfGames: number;
|
|
120
|
+
datePromo: unknown[];
|
|
121
|
+
games: ScheduleGame[];
|
|
122
|
+
}
|
|
123
|
+
export interface PlayoffBracket {
|
|
124
|
+
bracketLogo: string;
|
|
125
|
+
bracketLogoFr: string;
|
|
126
|
+
series: PlayoffBracketSeries[];
|
|
127
|
+
}
|
|
128
|
+
export interface PlayoffBracketSeries {
|
|
129
|
+
seriesUrl: string;
|
|
130
|
+
seriesTitle: string;
|
|
131
|
+
seriesAbbrev: string;
|
|
132
|
+
seriesLetter: string;
|
|
133
|
+
playoffRound: number;
|
|
134
|
+
topSeedRank: number;
|
|
135
|
+
topSeedRankAbbrev: string;
|
|
136
|
+
topSeedWins: number;
|
|
137
|
+
bottomSeedRank: number;
|
|
138
|
+
bottomSeedRankAbbrev: string;
|
|
139
|
+
bottomSeedWins: number;
|
|
140
|
+
winningTeamId: number;
|
|
141
|
+
losingTeamId: number;
|
|
142
|
+
topSeedTeam: PlayoffBracketTeam;
|
|
143
|
+
bottomSeedTeam: PlayoffBracketTeam;
|
|
144
|
+
conferenceAbbrev?: string;
|
|
145
|
+
conferenceName?: string;
|
|
146
|
+
seriesLogo?: string;
|
|
147
|
+
seriesLogoFr?: string;
|
|
148
|
+
}
|
|
149
|
+
export interface PlayoffBracketTeam {
|
|
150
|
+
id: number;
|
|
151
|
+
abbrev: string;
|
|
152
|
+
name: LocalizedString;
|
|
153
|
+
commonName: LocalizedString;
|
|
154
|
+
placeNameWithPreposition: LocalizedString;
|
|
155
|
+
logo: string;
|
|
156
|
+
darkLogo: string;
|
|
157
|
+
}
|
|
158
|
+
export interface PlayoffCarousel {
|
|
159
|
+
seasonId: number;
|
|
160
|
+
currentRound: number;
|
|
161
|
+
rounds: PlayoffCarouselRound[];
|
|
162
|
+
}
|
|
163
|
+
export interface PlayoffCarouselRound {
|
|
164
|
+
roundNumber: number;
|
|
165
|
+
roundLabel: string;
|
|
166
|
+
roundAbbrev: string;
|
|
167
|
+
series: PlayoffCarouselSeries[];
|
|
168
|
+
}
|
|
169
|
+
export interface PlayoffCarouselSeed {
|
|
170
|
+
id: number;
|
|
171
|
+
abbrev: string;
|
|
172
|
+
wins: number;
|
|
173
|
+
logo: string;
|
|
174
|
+
darkLogo: string;
|
|
175
|
+
}
|
|
176
|
+
export interface PlayoffCarouselSeries {
|
|
177
|
+
seriesLetter: string;
|
|
178
|
+
roundNumber: number;
|
|
179
|
+
seriesLabel: string;
|
|
180
|
+
seriesLink: string;
|
|
181
|
+
bottomSeed: PlayoffCarouselSeed;
|
|
182
|
+
topSeed: PlayoffCarouselSeed;
|
|
183
|
+
neededToWin: number;
|
|
184
|
+
winningTeamId: number;
|
|
185
|
+
losingTeamId: number;
|
|
186
|
+
}
|
|
187
|
+
export interface PlayoffSeriesSchedule {
|
|
188
|
+
round: number;
|
|
189
|
+
roundAbbrev: string;
|
|
190
|
+
roundLabel: string;
|
|
191
|
+
seriesLetter: string;
|
|
192
|
+
seriesLogo: string;
|
|
193
|
+
seriesLogoFr: string;
|
|
194
|
+
neededToWin: number;
|
|
195
|
+
length: number;
|
|
196
|
+
bottomSeedTeam: PlayoffSeriesTeam;
|
|
197
|
+
topSeedTeam: PlayoffSeriesTeam;
|
|
198
|
+
games: PlayoffSeriesScheduleGame[];
|
|
199
|
+
fullCoverageUrl: PlayoffFullCoverageUrls;
|
|
200
|
+
/** Absent when season=20232024,series=o. Low sample count */
|
|
201
|
+
conferenceAbbrev?: string;
|
|
202
|
+
/** Absent when season=20232024,series=o. Low sample count */
|
|
203
|
+
conferenceName?: string;
|
|
204
|
+
}
|
|
205
|
+
export interface PlayoffFullCoverageUrls {
|
|
206
|
+
cs: string;
|
|
207
|
+
de: string;
|
|
208
|
+
sv: string;
|
|
209
|
+
fi: string;
|
|
210
|
+
sk: string;
|
|
211
|
+
en: string;
|
|
212
|
+
fr: string;
|
|
213
|
+
es: string;
|
|
214
|
+
}
|
|
215
|
+
export interface PlayoffSeriesScheduleGame {
|
|
216
|
+
id: number;
|
|
217
|
+
season: number;
|
|
218
|
+
gameType: GameType;
|
|
219
|
+
gameNumber: number;
|
|
220
|
+
ifNecessary: boolean;
|
|
221
|
+
venue: LocalizedString;
|
|
222
|
+
neutralSite: boolean;
|
|
223
|
+
startTimeUTC: string;
|
|
224
|
+
easternUTCOffset: string;
|
|
225
|
+
venueUTCOffset: string;
|
|
226
|
+
venueTimezone: string;
|
|
227
|
+
gameState: GameState;
|
|
228
|
+
gameScheduleState: GameScheduleState;
|
|
229
|
+
tvBroadcasts: PlayoffTvBroadcast[];
|
|
230
|
+
awayTeam: PlayoffSeriesGameTeam;
|
|
231
|
+
homeTeam: PlayoffSeriesGameTeam;
|
|
232
|
+
gameCenterLink: string;
|
|
233
|
+
periodDescriptor: PeriodDescriptor;
|
|
234
|
+
seriesStatus: PlayoffSeriesStatus;
|
|
235
|
+
gameOutcome: GameOutcome;
|
|
236
|
+
}
|
|
237
|
+
export interface PlayoffSeriesGameTeam {
|
|
238
|
+
id: number;
|
|
239
|
+
commonName: LocalizedString;
|
|
240
|
+
placeName: LocalizedString;
|
|
241
|
+
placeNameWithPreposition: LocalizedString;
|
|
242
|
+
abbrev: string;
|
|
243
|
+
score: number;
|
|
244
|
+
}
|
|
245
|
+
export interface PlayoffSeriesStatus {
|
|
246
|
+
topSeedWins: number;
|
|
247
|
+
bottomSeedWins: number;
|
|
248
|
+
}
|
|
249
|
+
export interface PlayoffTvBroadcast {
|
|
250
|
+
id: number;
|
|
251
|
+
market: string;
|
|
252
|
+
countryCode: string;
|
|
253
|
+
network: string;
|
|
254
|
+
sequenceNumber: number;
|
|
255
|
+
languageCode: string;
|
|
256
|
+
logoUrls?: TeamLogo;
|
|
257
|
+
}
|
|
258
|
+
export interface PlayoffSeriesTeam {
|
|
259
|
+
id: number;
|
|
260
|
+
name: LocalizedString;
|
|
261
|
+
abbrev: string;
|
|
262
|
+
placeName: LocalizedString;
|
|
263
|
+
placeNameWithPreposition: LocalizedString;
|
|
264
|
+
conference: PlayoffTeamConference;
|
|
265
|
+
record: string;
|
|
266
|
+
seriesWins: number;
|
|
267
|
+
divisionAbbrev: string;
|
|
268
|
+
seed: number;
|
|
269
|
+
logo: string;
|
|
270
|
+
darkLogo: string;
|
|
271
|
+
}
|
|
272
|
+
export interface PlayoffTeamConference {
|
|
273
|
+
name: string;
|
|
274
|
+
abbrev: string;
|
|
275
|
+
}
|
|
276
|
+
export interface ScheduleGame {
|
|
277
|
+
id: number;
|
|
278
|
+
season: number;
|
|
279
|
+
gameType: GameType;
|
|
280
|
+
venue: LocalizedString;
|
|
281
|
+
neutralSite: boolean;
|
|
282
|
+
startTimeUTC: string;
|
|
283
|
+
easternUTCOffset: string;
|
|
284
|
+
venueUTCOffset: string;
|
|
285
|
+
venueTimezone: string;
|
|
286
|
+
gameState: GameState;
|
|
287
|
+
gameScheduleState: GameScheduleState;
|
|
288
|
+
tvBroadcasts: TvBroadcast[];
|
|
289
|
+
awayTeam: WeeklyScheduleGameAwayTeam;
|
|
290
|
+
homeTeam: WeeklyScheduleGameHomeTeam;
|
|
291
|
+
periodDescriptor: WeeklySchedulePeriodDescriptor;
|
|
292
|
+
/** Absent when date=now */
|
|
293
|
+
gameOutcome?: GameOutcome;
|
|
294
|
+
/** Absent when date=now */
|
|
295
|
+
winningGoalie?: WinningGoalie;
|
|
296
|
+
/** Absent when date=now */
|
|
297
|
+
winningGoalScorer?: WinningGoalie;
|
|
298
|
+
/** Absent when date=now */
|
|
299
|
+
threeMinRecap?: string;
|
|
300
|
+
/** Absent when date=now */
|
|
301
|
+
threeMinRecapFr?: string;
|
|
302
|
+
gameCenterLink: string;
|
|
303
|
+
/** Absent when date=now */
|
|
304
|
+
condensedGame?: string;
|
|
305
|
+
/** Absent when date=now; date=playoff; date=regular. Low sample count */
|
|
306
|
+
specialEvent?: SpecialEvent;
|
|
307
|
+
/** Absent when date=playoff; date=regular. Low sample count */
|
|
308
|
+
ticketsLink?: string;
|
|
309
|
+
/** Absent when date=playoff; date=regular. Low sample count */
|
|
310
|
+
ticketsLinkFr?: string;
|
|
311
|
+
/** Absent when date=regular. Low sample count */
|
|
312
|
+
seriesStatus?: SeriesStatus;
|
|
313
|
+
/** Absent when date=regular. Low sample count */
|
|
314
|
+
seriesUrl?: string;
|
|
315
|
+
}
|
|
316
|
+
export interface TeamSeasonSchedule {
|
|
317
|
+
previousSeason: number;
|
|
318
|
+
currentSeason: number;
|
|
319
|
+
/** Absent when team=BUF,season=now; team=TOR,season=now; team=UTA,season=now */
|
|
320
|
+
nextSeason?: number;
|
|
321
|
+
clubTimezone: string;
|
|
322
|
+
clubUTCOffset: string;
|
|
323
|
+
games: TeamSeasonScheduleGame[];
|
|
324
|
+
}
|
|
325
|
+
export interface TeamSeasonScheduleGame {
|
|
326
|
+
id: number;
|
|
327
|
+
season: number;
|
|
328
|
+
gameType: GameType;
|
|
329
|
+
gameDate: string;
|
|
330
|
+
venue: LocalizedString;
|
|
331
|
+
neutralSite: boolean;
|
|
332
|
+
startTimeUTC: string;
|
|
333
|
+
easternUTCOffset: string;
|
|
334
|
+
venueUTCOffset: string;
|
|
335
|
+
venueTimezone: string;
|
|
336
|
+
gameState: GameState;
|
|
337
|
+
gameScheduleState: GameScheduleState;
|
|
338
|
+
tvBroadcasts: TvBroadcast[];
|
|
339
|
+
awayTeam: TeamSeasonScheduleGameAwayTeam;
|
|
340
|
+
homeTeam: ScheduleHomeTeam;
|
|
341
|
+
periodDescriptor: PeriodDescriptor;
|
|
342
|
+
gameOutcome?: GameOutcome;
|
|
343
|
+
winningGoalie?: WinningGoalie;
|
|
344
|
+
/** Absent when team=BUF,season=19992000 */
|
|
345
|
+
winningGoalScorer?: WinningGoalie;
|
|
346
|
+
/** Absent when team=BUF,season=19992000; team=BUF,season=now; team=TOR,season=now */
|
|
347
|
+
specialEvent?: SpecialEvent;
|
|
348
|
+
gameCenterLink: string;
|
|
349
|
+
/** Absent when team=BUF,season=19992000 */
|
|
350
|
+
threeMinRecap?: string;
|
|
351
|
+
/** Absent when team=BUF,season=19992000 */
|
|
352
|
+
condensedGame?: string;
|
|
353
|
+
/** Absent when team=BUF,season=19992000 */
|
|
354
|
+
threeMinRecapFr?: string;
|
|
355
|
+
/** Absent when team=BUF,season=20232024; team=BUF,season=now; team=SEA,season=20232024; team=TOR,season=now; team=UTA,season=now. Low sample count */
|
|
356
|
+
seriesStatus?: SeasonScheduleSeriesStatus;
|
|
357
|
+
/** Absent when team=BUF,season=20232024; team=BUF,season=now; team=SEA,season=20232024; team=TOR,season=now; team=UTA,season=now. Low sample count */
|
|
358
|
+
seriesUrl?: string;
|
|
359
|
+
/** Absent when team=SEA,season=20232024 */
|
|
360
|
+
condensedGameFr?: string;
|
|
361
|
+
/** Absent when team=SEA,season=20232024 */
|
|
362
|
+
ticketsLink?: string;
|
|
363
|
+
/** Absent when team=SEA,season=20232024 */
|
|
364
|
+
ticketsLinkFr?: string;
|
|
365
|
+
}
|
|
366
|
+
export interface TeamSeasonScheduleGameAwayTeam {
|
|
367
|
+
id: number;
|
|
368
|
+
commonName: LocalizedString;
|
|
369
|
+
placeName: LocalizedString;
|
|
370
|
+
placeNameWithPreposition: LocalizedString;
|
|
371
|
+
abbrev: string;
|
|
372
|
+
logo: string;
|
|
373
|
+
darkLogo: string;
|
|
374
|
+
awaySplitSquad: boolean;
|
|
375
|
+
score?: number;
|
|
376
|
+
/** Absent when team=BUF,season=19992000 */
|
|
377
|
+
hotelLink?: string;
|
|
378
|
+
/** Absent when team=BUF,season=19992000 */
|
|
379
|
+
hotelDesc?: string;
|
|
380
|
+
/** Absent when team=BUF,season=19992000 */
|
|
381
|
+
airlineLink?: string;
|
|
382
|
+
/** Absent when team=BUF,season=19992000 */
|
|
383
|
+
airlineDesc?: string;
|
|
384
|
+
/** Absent when team=SEA,season=20232024 */
|
|
385
|
+
radioLink?: string;
|
|
386
|
+
/** Absent when team=SEA,season=20232024 */
|
|
387
|
+
promoLink?: string;
|
|
388
|
+
/** Absent when team=SEA,season=20232024 */
|
|
389
|
+
promoDesc?: string;
|
|
390
|
+
}
|
|
391
|
+
export interface SeasonScheduleSeriesStatus {
|
|
392
|
+
round: number;
|
|
393
|
+
seriesAbbrev: string;
|
|
394
|
+
seriesTitle: string;
|
|
395
|
+
seriesLetter: string;
|
|
396
|
+
neededToWin: number;
|
|
397
|
+
topSeedWins: number;
|
|
398
|
+
bottomSeedWins: number;
|
|
399
|
+
gameNumberOfSeries: number;
|
|
400
|
+
}
|
|
401
|
+
export interface WeeklySchedule {
|
|
402
|
+
nextStartDate: string;
|
|
403
|
+
previousStartDate: string;
|
|
404
|
+
gameWeek: GameWeekDay[];
|
|
405
|
+
preSeasonStartDate: string;
|
|
406
|
+
regularSeasonStartDate: string;
|
|
407
|
+
regularSeasonEndDate: string;
|
|
408
|
+
playoffEndDate: string;
|
|
409
|
+
numberOfGames: number;
|
|
410
|
+
/** Present only while odds are published. */
|
|
411
|
+
oddsPartners?: OddsPartner[];
|
|
412
|
+
}
|
|
413
|
+
export interface WeeklyScheduleGameAwayTeam {
|
|
414
|
+
id: number;
|
|
415
|
+
commonName: LocalizedString;
|
|
416
|
+
placeName: LocalizedString;
|
|
417
|
+
placeNameWithPreposition: LocalizedString;
|
|
418
|
+
abbrev: string;
|
|
419
|
+
logo: string;
|
|
420
|
+
darkLogo: string;
|
|
421
|
+
awaySplitSquad: boolean;
|
|
422
|
+
/** Absent when date=now */
|
|
423
|
+
score?: number;
|
|
424
|
+
/** Absent when date=playoff; date=regular. Low sample count */
|
|
425
|
+
radioLink?: string;
|
|
426
|
+
/** Present only while odds are published for the game. */
|
|
427
|
+
odds?: TeamOdd[];
|
|
428
|
+
}
|
|
429
|
+
export interface WeeklyScheduleGameHomeTeam {
|
|
430
|
+
id: number;
|
|
431
|
+
commonName: LocalizedString;
|
|
432
|
+
placeName: LocalizedString;
|
|
433
|
+
placeNameWithPreposition: LocalizedString;
|
|
434
|
+
abbrev: string;
|
|
435
|
+
logo: string;
|
|
436
|
+
darkLogo: string;
|
|
437
|
+
homeSplitSquad: boolean;
|
|
438
|
+
/** Absent when date=now */
|
|
439
|
+
score?: number;
|
|
440
|
+
/** Absent when date=playoff; date=regular. Low sample count */
|
|
441
|
+
radioLink?: string;
|
|
442
|
+
/** Present only while odds are published for the game. */
|
|
443
|
+
odds?: TeamOdd[];
|
|
444
|
+
}
|
|
445
|
+
export interface WeeklySchedulePeriodDescriptor {
|
|
446
|
+
number: number;
|
|
447
|
+
periodType: PeriodType;
|
|
448
|
+
maxRegulationPeriods: number;
|
|
449
|
+
/** Absent when date=regular. Low sample count */
|
|
450
|
+
otPeriods?: number;
|
|
451
|
+
}
|
|
452
|
+
export interface WinningGoalie {
|
|
453
|
+
playerId: number;
|
|
454
|
+
firstInitial: LocalizedString;
|
|
455
|
+
lastName: LocalizedString;
|
|
456
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|