nhl-api-ts 0.1.0 → 0.2.1

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.
Files changed (94) hide show
  1. package/README.md +31 -6
  2. package/dist/api/edge.d.mts +25 -24
  3. package/dist/api/edge.mjs +69 -23
  4. package/dist/api/game-center.d.mts +16 -15
  5. package/dist/api/game-center.mjs +20 -8
  6. package/dist/api/helpers.d.mts +8 -7
  7. package/dist/api/helpers.mjs +6 -6
  8. package/dist/api/misc.d.mts +6 -6
  9. package/dist/api/misc.mjs +15 -5
  10. package/dist/api/players.d.mts +6 -5
  11. package/dist/api/players.mjs +6 -2
  12. package/dist/api/query/builder.d.mts +2 -0
  13. package/dist/api/query/builder.mjs +3 -1
  14. package/dist/api/query/index.d.mts +2 -2
  15. package/dist/api/query/index.mjs +1 -1
  16. package/dist/api/query/sorting/goalie-sorts.d.mts +55 -0
  17. package/dist/api/query/sorting/goalie-sorts.mjs +43 -48
  18. package/dist/api/query/sorting/sorting-options.d.mts +125 -0
  19. package/dist/api/query/sorting/sorting-options.mjs +3 -2
  20. package/dist/api/schedule.d.mts +22 -21
  21. package/dist/api/schedule.mjs +26 -14
  22. package/dist/api/standings.d.mts +5 -4
  23. package/dist/api/standings.mjs +4 -4
  24. package/dist/api/stats.d.mts +22 -17
  25. package/dist/api/stats.mjs +38 -16
  26. package/dist/api/teams.d.mts +9 -8
  27. package/dist/api/teams.mjs +10 -6
  28. package/dist/cli/colors.d.mts +2 -2
  29. package/dist/cli/colors.mjs +6 -2
  30. package/dist/cli/commands.mjs +36 -26
  31. package/dist/cli/run.mjs +7 -5
  32. package/dist/http-client.mjs +2 -2
  33. package/dist/index.d.mts +2 -1
  34. package/dist/nhl-client.d.mts +14 -10
  35. package/dist/nhl-client.mjs +9 -7
  36. package/dist/types/common.d.mts +80 -0
  37. package/dist/types/common.mjs +2 -0
  38. package/dist/types/edge.d.mts +1024 -0
  39. package/dist/types/edge.mjs +1 -0
  40. package/dist/types/game-center.d.mts +1137 -0
  41. package/dist/types/game-center.mjs +1 -0
  42. package/dist/types/helpers.d.mts +17 -0
  43. package/dist/types/helpers.mjs +1 -0
  44. package/dist/types/index.d.mts +10 -0
  45. package/dist/types/index.mjs +1 -0
  46. package/dist/types/misc.d.mts +68 -0
  47. package/dist/types/misc.mjs +2 -0
  48. package/dist/types/players.d.mts +41 -0
  49. package/dist/types/players.mjs +1 -0
  50. package/dist/types/schedule.d.mts +428 -0
  51. package/dist/types/schedule.mjs +1 -0
  52. package/dist/types/standings.d.mts +103 -0
  53. package/dist/types/standings.mjs +1 -0
  54. package/dist/types/stats.d.mts +1082 -0
  55. package/dist/types/stats.mjs +1 -0
  56. package/dist/types/teams.d.mts +29 -0
  57. package/dist/types/teams.mjs +1 -0
  58. package/dist/utils.d.mts +1 -2
  59. package/dist/utils.mjs +3 -1
  60. package/package.json +7 -20
  61. package/dist/api/query/errors.d.mts +0 -3
  62. package/dist/api/query/errors.mjs +0 -6
  63. package/dist/api/query/filters/base.d.mts +0 -4
  64. package/dist/api/query/filters/base.mjs +0 -2
  65. package/dist/api/query/filters/decision.d.mts +0 -13
  66. package/dist/api/query/filters/decision.mjs +0 -26
  67. package/dist/api/query/filters/draft.d.mts +0 -15
  68. package/dist/api/query/filters/draft.mjs +0 -27
  69. package/dist/api/query/filters/experience.d.mts +0 -9
  70. package/dist/api/query/filters/experience.mjs +0 -17
  71. package/dist/api/query/filters/franchise.d.mts +0 -9
  72. package/dist/api/query/filters/franchise.mjs +0 -15
  73. package/dist/api/query/filters/game-type.d.mts +0 -10
  74. package/dist/api/query/filters/game-type.mjs +0 -16
  75. package/dist/api/query/filters/goalie-sorts.d.mts +0 -3
  76. package/dist/api/query/filters/goalie-sorts.mjs +0 -55
  77. package/dist/api/query/filters/home-road.d.mts +0 -9
  78. package/dist/api/query/filters/home-road.mjs +0 -16
  79. package/dist/api/query/filters/index.d.mts +0 -14
  80. package/dist/api/query/filters/index.mjs +0 -14
  81. package/dist/api/query/filters/nationality.d.mts +0 -12
  82. package/dist/api/query/filters/nationality.mjs +0 -19
  83. package/dist/api/query/filters/opponent.d.mts +0 -10
  84. package/dist/api/query/filters/opponent.mjs +0 -16
  85. package/dist/api/query/filters/position.d.mts +0 -16
  86. package/dist/api/query/filters/position.mjs +0 -28
  87. package/dist/api/query/filters/season.d.mts +0 -14
  88. package/dist/api/query/filters/season.mjs +0 -24
  89. package/dist/api/query/filters/shoot-catch.d.mts +0 -9
  90. package/dist/api/query/filters/shoot-catch.mjs +0 -16
  91. package/dist/api/query/filters/status.d.mts +0 -20
  92. package/dist/api/query/filters/status.mjs +0 -28
  93. package/dist/logging.d.mts +0 -14
  94. 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,2 @@
1
+ // Response types derived from live NHL API probing. See CONTRIBUTING.md.
2
+ export {};
@@ -0,0 +1,41 @@
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
+ /** Only for players born in the USA or Canada */
23
+ birthStateProvince?: LocalizedString;
24
+ sweaterNumber?: number;
25
+ }
26
+ export interface ProspectsGoalie {
27
+ id: number;
28
+ headshot: string;
29
+ firstName: LocalizedString;
30
+ lastName: LocalizedString;
31
+ sweaterNumber?: number;
32
+ positionCode: PositionCode;
33
+ shootsCatches: ShootsCatches;
34
+ heightInInches: number;
35
+ weightInPounds: number;
36
+ heightInCentimeters: number;
37
+ weightInKilograms: number;
38
+ birthDate: string;
39
+ birthCity: LocalizedString;
40
+ birthCountry: string;
41
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,428 @@
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 before the game is played */
39
+ gameOutcome?: GameOutcome;
40
+ /** Absent before the game is played */
41
+ winningGoalie?: WinningGoalie;
42
+ /** Absent before the game is played */
43
+ winningGoalScorer?: WinningGoalie;
44
+ /** Absent before the game is played */
45
+ threeMinRecap?: string;
46
+ /** Absent before the game is played */
47
+ condensedGame?: string;
48
+ gameCenterLink: string;
49
+ /** Absent before the game is played */
50
+ threeMinRecapFr?: string;
51
+ /** Absent before the game is played */
52
+ condensedGameFr?: string;
53
+ /** Only present before the game starts */
54
+ ticketsLink?: string;
55
+ /** Only present before the game starts */
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 before the game is played */
68
+ score?: number;
69
+ airlineLink?: string;
70
+ airlineDesc?: string;
71
+ hotelLink?: string;
72
+ hotelDesc?: string;
73
+ radioLink?: string;
74
+ promoLink?: string;
75
+ promoDesc?: string;
76
+ }
77
+ export interface ScheduleHomeTeam {
78
+ id: number;
79
+ commonName: LocalizedString;
80
+ placeName: LocalizedString;
81
+ placeNameWithPreposition: LocalizedString;
82
+ abbrev: string;
83
+ logo: string;
84
+ darkLogo: string;
85
+ homeSplitSquad: boolean;
86
+ /** Absent before the game is played */
87
+ score?: number;
88
+ hotelLink?: string;
89
+ hotelDesc?: string;
90
+ airlineLink?: string;
91
+ airlineDesc?: string;
92
+ radioLink?: string;
93
+ promoLink?: string;
94
+ promoDesc?: string;
95
+ }
96
+ export interface SpecialEvent {
97
+ parentId: number;
98
+ name: LocalizedString;
99
+ lightLogoUrl?: LocalizedString;
100
+ }
101
+ export interface GameWeekDay {
102
+ date: string;
103
+ dayAbbrev: string;
104
+ numberOfGames: number;
105
+ datePromo: unknown[];
106
+ games: ScheduleGame[];
107
+ }
108
+ export interface PlayoffBracket {
109
+ bracketLogo: string;
110
+ bracketLogoFr: string;
111
+ series: PlayoffBracketSeries[];
112
+ }
113
+ export interface PlayoffBracketSeries {
114
+ seriesUrl: string;
115
+ seriesTitle: string;
116
+ seriesAbbrev: string;
117
+ seriesLetter: string;
118
+ playoffRound: number;
119
+ topSeedRank: number;
120
+ topSeedRankAbbrev: string;
121
+ topSeedWins: number;
122
+ bottomSeedRank: number;
123
+ bottomSeedRankAbbrev: string;
124
+ bottomSeedWins: number;
125
+ winningTeamId: number;
126
+ losingTeamId: number;
127
+ topSeedTeam: PlayoffBracketTeam;
128
+ bottomSeedTeam: PlayoffBracketTeam;
129
+ conferenceAbbrev?: string;
130
+ conferenceName?: string;
131
+ seriesLogo?: string;
132
+ seriesLogoFr?: string;
133
+ }
134
+ export interface PlayoffBracketTeam {
135
+ id: number;
136
+ abbrev: string;
137
+ name: LocalizedString;
138
+ commonName: LocalizedString;
139
+ placeNameWithPreposition: LocalizedString;
140
+ logo: string;
141
+ darkLogo: string;
142
+ }
143
+ export interface PlayoffCarousel {
144
+ seasonId: number;
145
+ currentRound: number;
146
+ rounds: PlayoffCarouselRound[];
147
+ }
148
+ export interface PlayoffCarouselRound {
149
+ roundNumber: number;
150
+ roundLabel: string;
151
+ roundAbbrev: string;
152
+ series: PlayoffCarouselSeries[];
153
+ }
154
+ export interface PlayoffCarouselSeed {
155
+ id: number;
156
+ abbrev: string;
157
+ wins: number;
158
+ logo: string;
159
+ darkLogo: string;
160
+ }
161
+ export interface PlayoffCarouselSeries {
162
+ seriesLetter: string;
163
+ roundNumber: number;
164
+ seriesLabel: string;
165
+ seriesLink: string;
166
+ bottomSeed: PlayoffCarouselSeed;
167
+ topSeed: PlayoffCarouselSeed;
168
+ neededToWin: number;
169
+ winningTeamId: number;
170
+ losingTeamId: number;
171
+ }
172
+ export interface PlayoffSeriesSchedule {
173
+ round: number;
174
+ roundAbbrev: string;
175
+ roundLabel: string;
176
+ seriesLetter: string;
177
+ seriesLogo: string;
178
+ seriesLogoFr: string;
179
+ neededToWin: number;
180
+ length: number;
181
+ bottomSeedTeam: PlayoffSeriesTeam;
182
+ topSeedTeam: PlayoffSeriesTeam;
183
+ games: PlayoffSeriesScheduleGame[];
184
+ fullCoverageUrl: PlayoffFullCoverageUrls;
185
+ conferenceAbbrev?: string;
186
+ conferenceName?: string;
187
+ }
188
+ export interface PlayoffFullCoverageUrls {
189
+ cs: string;
190
+ de: string;
191
+ sv: string;
192
+ fi: string;
193
+ sk: string;
194
+ en: string;
195
+ fr: string;
196
+ es: string;
197
+ }
198
+ export interface PlayoffSeriesScheduleGame {
199
+ id: number;
200
+ season: number;
201
+ gameType: GameType;
202
+ gameNumber: number;
203
+ ifNecessary: boolean;
204
+ venue: LocalizedString;
205
+ neutralSite: boolean;
206
+ startTimeUTC: string;
207
+ easternUTCOffset: string;
208
+ venueUTCOffset: string;
209
+ venueTimezone: string;
210
+ gameState: GameState;
211
+ gameScheduleState: GameScheduleState;
212
+ tvBroadcasts: PlayoffTvBroadcast[];
213
+ awayTeam: PlayoffSeriesGameTeam;
214
+ homeTeam: PlayoffSeriesGameTeam;
215
+ gameCenterLink: string;
216
+ periodDescriptor: PeriodDescriptor;
217
+ seriesStatus: PlayoffSeriesStatus;
218
+ gameOutcome: GameOutcome;
219
+ }
220
+ export interface PlayoffSeriesGameTeam {
221
+ id: number;
222
+ commonName: LocalizedString;
223
+ placeName: LocalizedString;
224
+ placeNameWithPreposition: LocalizedString;
225
+ abbrev: string;
226
+ score: number;
227
+ }
228
+ export interface PlayoffSeriesStatus {
229
+ topSeedWins: number;
230
+ bottomSeedWins: number;
231
+ }
232
+ export interface PlayoffTvBroadcast {
233
+ id: number;
234
+ market: string;
235
+ countryCode: string;
236
+ network: string;
237
+ sequenceNumber: number;
238
+ languageCode: string;
239
+ logoUrls?: TeamLogo;
240
+ }
241
+ export interface PlayoffSeriesTeam {
242
+ id: number;
243
+ name: LocalizedString;
244
+ abbrev: string;
245
+ placeName: LocalizedString;
246
+ placeNameWithPreposition: LocalizedString;
247
+ conference: PlayoffTeamConference;
248
+ record: string;
249
+ seriesWins: number;
250
+ divisionAbbrev: string;
251
+ seed: number;
252
+ logo: string;
253
+ darkLogo: string;
254
+ }
255
+ export interface PlayoffTeamConference {
256
+ name: string;
257
+ abbrev: string;
258
+ }
259
+ export interface ScheduleGame {
260
+ id: number;
261
+ season: number;
262
+ gameType: GameType;
263
+ venue: LocalizedString;
264
+ neutralSite: boolean;
265
+ startTimeUTC: string;
266
+ easternUTCOffset: string;
267
+ venueUTCOffset: string;
268
+ venueTimezone: string;
269
+ gameState: GameState;
270
+ gameScheduleState: GameScheduleState;
271
+ tvBroadcasts: TvBroadcast[];
272
+ awayTeam: WeeklyScheduleGameAwayTeam;
273
+ homeTeam: WeeklyScheduleGameHomeTeam;
274
+ periodDescriptor: WeeklySchedulePeriodDescriptor;
275
+ /** Absent before the game is played */
276
+ gameOutcome?: GameOutcome;
277
+ /** Absent before the game is played */
278
+ winningGoalie?: WinningGoalie;
279
+ /** Absent before the game is played */
280
+ winningGoalScorer?: WinningGoalie;
281
+ /** Absent before the game is played */
282
+ threeMinRecap?: string;
283
+ /** Absent before the game is played */
284
+ threeMinRecapFr?: string;
285
+ gameCenterLink: string;
286
+ /** Absent before the game is played */
287
+ condensedGame?: string;
288
+ specialEvent?: SpecialEvent;
289
+ /** Only present before the game starts */
290
+ ticketsLink?: string;
291
+ /** Only present before the game starts */
292
+ ticketsLinkFr?: string;
293
+ /** Playoff games only */
294
+ seriesStatus?: SeriesStatus;
295
+ /** Playoff games only */
296
+ seriesUrl?: string;
297
+ }
298
+ export interface TeamSeasonSchedule {
299
+ previousSeason: number;
300
+ currentSeason: number;
301
+ /** Absent for the current season */
302
+ nextSeason?: number;
303
+ clubTimezone: string;
304
+ clubUTCOffset: string;
305
+ games: TeamSeasonScheduleGame[];
306
+ }
307
+ export interface TeamSeasonScheduleGame {
308
+ id: number;
309
+ season: number;
310
+ gameType: GameType;
311
+ gameDate: string;
312
+ venue: LocalizedString;
313
+ neutralSite: boolean;
314
+ startTimeUTC: string;
315
+ easternUTCOffset: string;
316
+ venueUTCOffset: string;
317
+ venueTimezone: string;
318
+ gameState: GameState;
319
+ gameScheduleState: GameScheduleState;
320
+ tvBroadcasts: TvBroadcast[];
321
+ awayTeam: TeamSeasonScheduleGameAwayTeam;
322
+ homeTeam: ScheduleHomeTeam;
323
+ periodDescriptor: PeriodDescriptor;
324
+ gameOutcome?: GameOutcome;
325
+ winningGoalie?: WinningGoalie;
326
+ /** Absent before the game is played and for older seasons (for example, 1999-2000) */
327
+ winningGoalScorer?: WinningGoalie;
328
+ specialEvent?: SpecialEvent;
329
+ gameCenterLink: string;
330
+ /** Absent before the game is played and for older seasons (for example, 1999-2000) */
331
+ threeMinRecap?: string;
332
+ /** Absent before the game is played and for older seasons (for example, 1999-2000) */
333
+ condensedGame?: string;
334
+ /** Absent before the game is played and for older seasons (for example, 1999-2000) */
335
+ threeMinRecapFr?: string;
336
+ /** Playoff games only */
337
+ seriesStatus?: SeasonScheduleSeriesStatus;
338
+ /** Playoff games only */
339
+ seriesUrl?: string;
340
+ condensedGameFr?: string;
341
+ /** Only present before the game starts */
342
+ ticketsLink?: string;
343
+ /** Only present before the game starts */
344
+ ticketsLinkFr?: string;
345
+ }
346
+ export interface TeamSeasonScheduleGameAwayTeam {
347
+ id: number;
348
+ commonName: LocalizedString;
349
+ placeName: LocalizedString;
350
+ placeNameWithPreposition: LocalizedString;
351
+ abbrev: string;
352
+ logo: string;
353
+ darkLogo: string;
354
+ awaySplitSquad: boolean;
355
+ score?: number;
356
+ hotelLink?: string;
357
+ hotelDesc?: string;
358
+ airlineLink?: string;
359
+ airlineDesc?: string;
360
+ radioLink?: string;
361
+ promoLink?: string;
362
+ promoDesc?: string;
363
+ }
364
+ export interface SeasonScheduleSeriesStatus {
365
+ round: number;
366
+ seriesAbbrev: string;
367
+ seriesTitle: string;
368
+ seriesLetter: string;
369
+ neededToWin: number;
370
+ topSeedWins: number;
371
+ bottomSeedWins: number;
372
+ gameNumberOfSeries: number;
373
+ }
374
+ export interface WeeklySchedule {
375
+ nextStartDate: string;
376
+ previousStartDate: string;
377
+ gameWeek: GameWeekDay[];
378
+ preSeasonStartDate: string;
379
+ regularSeasonStartDate: string;
380
+ regularSeasonEndDate: string;
381
+ playoffEndDate: string;
382
+ numberOfGames: number;
383
+ /** Present only while odds are published. */
384
+ oddsPartners?: OddsPartner[];
385
+ }
386
+ export interface WeeklyScheduleGameAwayTeam {
387
+ id: number;
388
+ commonName: LocalizedString;
389
+ placeName: LocalizedString;
390
+ placeNameWithPreposition: LocalizedString;
391
+ abbrev: string;
392
+ logo: string;
393
+ darkLogo: string;
394
+ awaySplitSquad: boolean;
395
+ /** Absent before the game is played */
396
+ score?: number;
397
+ /** Only present before the game starts */
398
+ radioLink?: string;
399
+ /** Present only while odds are published for the game. */
400
+ odds?: TeamOdd[];
401
+ }
402
+ export interface WeeklyScheduleGameHomeTeam {
403
+ id: number;
404
+ commonName: LocalizedString;
405
+ placeName: LocalizedString;
406
+ placeNameWithPreposition: LocalizedString;
407
+ abbrev: string;
408
+ logo: string;
409
+ darkLogo: string;
410
+ homeSplitSquad: boolean;
411
+ /** Absent before the game is played */
412
+ score?: number;
413
+ /** Only present before the game starts */
414
+ radioLink?: string;
415
+ /** Present only while odds are published for the game. */
416
+ odds?: TeamOdd[];
417
+ }
418
+ export interface WeeklySchedulePeriodDescriptor {
419
+ number: number;
420
+ periodType: PeriodType;
421
+ maxRegulationPeriods: number;
422
+ otPeriods?: number;
423
+ }
424
+ export interface WinningGoalie {
425
+ playerId: number;
426
+ firstInitial: LocalizedString;
427
+ lastName: LocalizedString;
428
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,103 @@
1
+ import type { GameType, LocalizedString } from '#src/types/common.mjs';
2
+ export interface LeagueStandings {
3
+ wildCardIndicator: boolean;
4
+ standings: StandingsEntry[];
5
+ /** Only present for the current standings */
6
+ standingsDateTimeUtc?: string;
7
+ }
8
+ export interface StandingsEntry {
9
+ conferenceHomeSequence: number;
10
+ conferenceL10Sequence: number;
11
+ conferenceRoadSequence: number;
12
+ conferenceSequence: number;
13
+ date: string;
14
+ divisionHomeSequence: number;
15
+ divisionL10Sequence: number;
16
+ divisionRoadSequence: number;
17
+ divisionSequence: number;
18
+ gameTypeId: GameType;
19
+ gamesPlayed: number;
20
+ goalDifferential: number;
21
+ goalDifferentialPctg: number;
22
+ goalAgainst: number;
23
+ goalFor: number;
24
+ goalsForPctg: number;
25
+ homeGamesPlayed: number;
26
+ homeGoalDifferential: number;
27
+ homeGoalsAgainst: number;
28
+ homeGoalsFor: number;
29
+ homeLosses: number;
30
+ homeOtLosses: number;
31
+ homePoints: number;
32
+ homeRegulationPlusOtWins: number;
33
+ homeRegulationWins: number;
34
+ homeTies: number;
35
+ homeWins: number;
36
+ l10GamesPlayed: number;
37
+ l10GoalDifferential: number;
38
+ l10GoalsAgainst: number;
39
+ l10GoalsFor: number;
40
+ l10Losses: number;
41
+ l10OtLosses: number;
42
+ l10Points: number;
43
+ l10RegulationPlusOtWins: number;
44
+ l10RegulationWins: number;
45
+ l10Ties: number;
46
+ l10Wins: number;
47
+ leagueHomeSequence: number;
48
+ leagueL10Sequence: number;
49
+ leagueRoadSequence: number;
50
+ leagueSequence: number;
51
+ losses: number;
52
+ otLosses: number;
53
+ placeName: LocalizedString;
54
+ pointPctg: number;
55
+ points: number;
56
+ regulationPlusOtWinPctg: number;
57
+ regulationPlusOtWins: number;
58
+ regulationWinPctg: number;
59
+ regulationWins: number;
60
+ roadGamesPlayed: number;
61
+ roadGoalDifferential: number;
62
+ roadGoalsAgainst: number;
63
+ roadGoalsFor: number;
64
+ roadLosses: number;
65
+ roadOtLosses: number;
66
+ roadPoints: number;
67
+ roadRegulationPlusOtWins: number;
68
+ roadRegulationWins: number;
69
+ roadTies: number;
70
+ roadWins: number;
71
+ seasonId: number;
72
+ shootoutLosses: number;
73
+ shootoutWins: number;
74
+ streakCode: string;
75
+ streakCount: number;
76
+ teamName: LocalizedString;
77
+ teamCommonName: LocalizedString;
78
+ teamAbbrev: LocalizedString;
79
+ teamLogo: string;
80
+ teamLogoDark: string;
81
+ ties: number;
82
+ waiversSequence: number;
83
+ wildcardSequence: number;
84
+ winPctg: number;
85
+ wins: number;
86
+ conferenceAbbrev?: string;
87
+ conferenceName?: string;
88
+ divisionAbbrev?: string;
89
+ divisionName?: string;
90
+ clinchIndicator?: string;
91
+ }
92
+ export interface StandingsSeason {
93
+ id: number;
94
+ conferencesInUse: boolean;
95
+ divisionsInUse: boolean;
96
+ pointForOTlossInUse: boolean;
97
+ regulationWinsInUse: boolean;
98
+ rowInUse: boolean;
99
+ standingsEnd: string;
100
+ standingsStart: string;
101
+ tiesInUse: boolean;
102
+ wildcardInUse: boolean;
103
+ }
@@ -0,0 +1 @@
1
+ export {};