nhle-api 0.5.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.
package/lib/index.d.ts ADDED
@@ -0,0 +1,1623 @@
1
+ import * as arktype_internal_variants_number_ts from 'arktype/internal/variants/number.ts';
2
+ import * as arktype_internal_variants_string_ts from 'arktype/internal/variants/string.ts';
3
+ import * as arktype_internal_variants_object_ts from 'arktype/internal/variants/object.ts';
4
+ import * as arktype from 'arktype';
5
+ import * as arktype_internal_attributes_ts from 'arktype/internal/attributes.ts';
6
+
7
+ /**
8
+ * Error handling module for NHL Sports Data API wrapper
9
+ * Provides structured error classification and logging for API interactions
10
+ */
11
+ declare const ErrorCategory: {
12
+ /** Network-level errors (connection refused, timeout, etc.) */
13
+ readonly NETWORK: "NETWORK";
14
+ /** HTTP 4xx client errors (invalid params, not found, etc.) */
15
+ readonly CLIENT: "CLIENT";
16
+ /** HTTP 5xx server errors */
17
+ readonly SERVER: "SERVER";
18
+ /** Rate limiting (HTTP 429) */
19
+ readonly RATE_LIMIT: "RATE_LIMIT";
20
+ /** Valid HTTP response but with error payload */
21
+ readonly API_ERROR: "API_ERROR";
22
+ /** Response parsing/validation failures */
23
+ readonly PARSE: "PARSE";
24
+ /** Invalid user input or configuration */
25
+ readonly VALIDATION: "VALIDATION";
26
+ };
27
+ type ErrorCategory = (typeof ErrorCategory)[keyof typeof ErrorCategory];
28
+ interface ErrorContext {
29
+ /** HTTP status code if applicable */
30
+ statusCode?: number;
31
+ /** Original error object */
32
+ cause?: unknown;
33
+ /** Request URL or endpoint */
34
+ endpoint?: string;
35
+ /** Request method */
36
+ method?: string;
37
+ /** Request parameters */
38
+ params?: Record<string, unknown>;
39
+ /** Response body if available */
40
+ responseBody?: unknown;
41
+ /** Timestamp of error */
42
+ timestamp?: Date;
43
+ /** Additional metadata */
44
+ metadata?: Record<string, unknown>;
45
+ }
46
+ /**
47
+ * Base error class for all NHL API errors
48
+ */
49
+ declare class NHLError extends Error {
50
+ readonly category: ErrorCategory;
51
+ readonly context: ErrorContext;
52
+ constructor(message: string, category: ErrorCategory, context?: ErrorContext);
53
+ /**
54
+ * Serialize error to JSON
55
+ */
56
+ toJSON(): {
57
+ stack?: string;
58
+ name: string;
59
+ message: string;
60
+ category: ErrorCategory;
61
+ context: ErrorContext;
62
+ };
63
+ }
64
+
65
+ /**
66
+ * NHL API Client Type Definitions
67
+ */
68
+
69
+ type APIResponse<T> = {
70
+ status: 'success';
71
+ data: T;
72
+ } | {
73
+ status: 'error';
74
+ error: NHLError;
75
+ };
76
+
77
+ /** Categories for save location top-10 list */
78
+ declare const SaveLocationCategoryEnum: {
79
+ /** Save Percentage */
80
+ readonly 'SV%': "save-pctg";
81
+ /** Saves */
82
+ readonly SV: "saves";
83
+ /** Shots Against */
84
+ readonly SA: "shots-against";
85
+ /** Goals Against */
86
+ readonly GA: "goals-against";
87
+ };
88
+ /** Sort options for shot location top-10 list */
89
+ declare const ShotLocationSortEnum: {
90
+ /** All shot locations */
91
+ readonly ALL: "all";
92
+ /** High-danger (i.e. close-range) shot locations */
93
+ readonly HIGH: "high";
94
+ /** Mid-range shot locations */
95
+ readonly MID: "mid";
96
+ /** Long-range shot locations */
97
+ readonly LONG: "long";
98
+ };
99
+ /** Alias for ShotLocationSortEnum */
100
+ declare const SaveLocationSortEnum: {
101
+ /** All shot locations */
102
+ readonly ALL: "all";
103
+ /** High-danger (i.e. close-range) shot locations */
104
+ readonly HIGH: "high";
105
+ /** Mid-range shot locations */
106
+ readonly MID: "mid";
107
+ /** Long-range shot locations */
108
+ readonly LONG: "long";
109
+ };
110
+ /** Sort options for 5v5 save percentage top-10 list */
111
+ declare const SavePercentage5v5SortEnum: {
112
+ /**5v5 Save %: The percentage of shots a goalie stops at even strength (5-on-5). */
113
+ readonly '5v5-SV%': "save-pctg";
114
+ /**5v5 Save % in Close Situations: A “close situation” is the time during which a game is tied in the first or second period, or within one goal in the third period. This stats helps how goalies perform in high-pressure situations.*/
115
+ readonly '5v5-SV%-Close': "save-pctg-close";
116
+ /**5v5 Shots Against: The total number of shots a goalie faces at even strength (5-on-5).*/
117
+ readonly '5v5-SA': "shots";
118
+ /**5v5 Shots Against per 60 Minutes: The total number of shots a goalie faces at even strength (5-on-5) normalized to a 60-minute game. */
119
+ readonly '5v5-SA/60': "shots-per-60";
120
+ };
121
+ /** Sort options for save percentage top-10 list */
122
+ declare const SavePercentageSortEnum: {
123
+ /** Starts above .900 */
124
+ readonly GAMES: "games";
125
+ /** Percentage of starts above .900 */
126
+ readonly PCTG: "pctg";
127
+ };
128
+ /** Filter options for player positions */
129
+ declare const PositionFilterEnum: {
130
+ /** Center */
131
+ readonly ALL: "all";
132
+ /** Left Wing */
133
+ readonly FWD: "forwards";
134
+ /** Right Wing */
135
+ readonly DEF: "defense";
136
+ };
137
+ /** Categories for skater strength */
138
+ declare const SkatersStrengthEnum: {
139
+ /** All strengths */
140
+ readonly ALL: "all";
141
+ /** Even strength */
142
+ readonly ES: "es";
143
+ /** Power play */
144
+ readonly PP: "pp";
145
+ /** Short-handed */
146
+ readonly PK: "pk";
147
+ };
148
+ /** Sorting options for shot speed top-10 list */
149
+ declare const ShotSpeedSortEnum: {
150
+ /** Hardest shot recorded by player */
151
+ readonly MAX: "max";
152
+ /** Shots over 100 mph */
153
+ readonly 'OVER-100': "over-100";
154
+ /** Shots between 90 and 99 mph */
155
+ readonly '90-99': "90-99";
156
+ /** Shots between 80 and 89 mph */
157
+ readonly '80-89': "80-89";
158
+ /** Shots between 70 and 79 mph */
159
+ readonly '70-79': "70-79";
160
+ };
161
+ /** Sorting options for skating speed top-10 list */
162
+ declare const SkatingSpeedSortEnum: {
163
+ /** Fastest skating speed recorded by player */
164
+ readonly TOP: "max";
165
+ /** Speed bursts recorded over 22 mph */
166
+ readonly 'OVER-22': "over-22";
167
+ /** Speed bursts recorded between 20 and 22 mph */
168
+ readonly '20-22': "20-22";
169
+ /** Speed bursts recorded between 18 and 20 mph */
170
+ readonly '18-20': "18-20";
171
+ };
172
+ /** Sorting options for skating distance top-10 list */
173
+ declare const SkatingDistanceSortEnum: {
174
+ /** Total distance skated */
175
+ TOTAL: string;
176
+ /** Average distance skated per 60 minutes */
177
+ 'PER-60': string;
178
+ /** Maximum distance skated in a single period */
179
+ 'MAX-PERIOD': string;
180
+ /** Maximum distance skated in a single game */
181
+ 'MAX-GAME': string;
182
+ };
183
+ /** Categories for shot location top-10 list */
184
+ declare const ShotLocationCategoryEnum: {
185
+ /** Total shots on goal */
186
+ readonly SOG: "sog";
187
+ /** Total goals */
188
+ readonly G: "goals";
189
+ /** Shooting percentage */
190
+ readonly 'SH%': "shooting-pctg";
191
+ };
192
+ /** Sorting options for zone time top-10 lists. */
193
+ declare const ZoneTimeSortEnum: {
194
+ /** Percentage of time spent in the offensive zone */
195
+ readonly OZ: "offensive";
196
+ /** Percentage of time spent in the defensive zone */
197
+ readonly DZ: "defensive";
198
+ /** Percentage of time spent in the neutral zone */
199
+ readonly NZ: "neutral";
200
+ };
201
+
202
+ declare const Year$1: arktype.BaseType<number | ((In: string) => arktype_internal_attributes_ts.To<number>), {}>;
203
+ declare const Season$1: arktype_internal_variants_object_ts.ObjectType<(In: string | number) => arktype.Out<string>, {}>;
204
+ declare const TeamAbbrev$1: arktype_internal_variants_string_ts.StringType<"ANA" | "BOS" | "BUF" | "CGY" | "CAR" | "CHI" | "COL" | "CBJ" | "DAL" | "DET" | "EDM" | "FLA" | "LAK" | "MIN" | "MTL" | "NJD" | "NSH" | "NYI" | "NYR" | "OTT" | "PHI" | "PIT" | "SJS" | "SEA" | "STL" | "TBL" | "TOR" | "UTA" | "VAN" | "VGK" | "WPG" | "WSH" | "AFM" | "ARI" | "ATL" | "BRK" | "CGS" | "CLE" | "CLR" | "DCG" | "DFL" | "HAM" | "HFD" | "KCS" | "MMR" | "MNS" | "MWN" | "NYA" | "OAK" | "PHX" | "PIR" | "QBD" | "QUA" | "QUE" | "SEN" | "SLE" | "TAN" | "TSP" | "WIN", {}>;
205
+ declare const TeamId$1: arktype_internal_variants_number_ts.NumberType<1 | 10 | 2 | 3 | 4 | 24 | 6 | 7 | 20 | 12 | 16 | 21 | 29 | 25 | 17 | 22 | 13 | 26 | 30 | 8 | 18 | 9 | 5 | 28 | 55 | 19 | 14 | 59 | 23 | 54 | 52 | 15, {}>;
206
+ declare const GameType$1: arktype.BaseType<1 | "1" | "2" | "3" | "4" | 2 | 3 | 4 | 19 | ((In: "REG" | "PRE" | "POST" | "ASG" | "INTL") => arktype.Out<1 | 2 | 3 | 4 | 19>) | "19", {}>;
207
+ declare const GameNumber$1: arktype_internal_variants_object_ts.ObjectType<(In: string | number) => arktype.Out<string>, {}>;
208
+ declare const DraftRound$1: arktype_internal_variants_object_ts.ObjectType<(In: string | number) => arktype.Out<string>, {}>;
209
+ declare const EventId$1: arktype.BaseType<number | ((In: string) => arktype_internal_attributes_ts.To<number>), {}>;
210
+ declare const NHLDate$1: arktype_internal_variants_object_ts.ObjectType<(In: string | Date) => arktype.Out<string>, {}>;
211
+ declare const NHLMonth$1: arktype_internal_variants_object_ts.ObjectType<(In: string | Date) => arktype.Out<string>, {}>;
212
+ declare const GameId$1: arktype.BaseType<number | ((In: string) => arktype_internal_attributes_ts.To<number>), {}>;
213
+ declare const SeriesLetter$1: arktype_internal_variants_string_ts.StringType<"A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O", {}>;
214
+ declare const GameState$3: arktype_internal_variants_string_ts.StringType<"FUT" | "LIV" | "FIN", {}>;
215
+ declare const CountryCode$3: arktype_internal_variants_object_ts.ObjectType<(In: string) => arktype.Out<string>, {}>;
216
+ declare const PlayerId$1: arktype_internal_variants_object_ts.ObjectType<(In: string | number) => arktype.Out<string>, {}>;
217
+
218
+ /**
219
+ * Type definitions for common parameters
220
+ */
221
+ /**
222
+ * Represents a valid NHL year (e.g., 2023, 2024, ...)
223
+ */
224
+ type Year = typeof Year$1.inferIn;
225
+ /**
226
+ * Represents an NHL season in the format YYYYYYYY (e.g., 20232024)
227
+ */
228
+ type Season = typeof Season$1.inferIn;
229
+ /**
230
+ * Represents a valid NHL game type (e.g. REG, PRE, POST)
231
+ */
232
+ type GameType = typeof GameType$1.inferIn;
233
+ /**
234
+ * Represents an NHL game ID with regex /\d{10}/
235
+ * Breakdown of the ID: (YYYYTTNNNN)
236
+ * - First 4 digits: Year of the game (YYYY)
237
+ * - Next 2 digits: Game type (TT)(01 for preseason, 02 for regular
238
+ * season, 03 for playoffs)
239
+ * - Next 4 digits: Game number of the season (NNNN)
240
+ */
241
+ type GameId = typeof GameId$1.inferIn;
242
+ /**
243
+ * Represents a valid NHL team abbreviation (e.g., NYR, MTL, ...)
244
+ */
245
+ type TeamAbbrev = typeof TeamAbbrev$1.inferIn;
246
+ /**
247
+ * Represents a valid NHL team ID
248
+ */
249
+ type TeamId = typeof TeamId$1.inferIn;
250
+ /**
251
+ * Represents a valid NHL game number
252
+ */
253
+ type GameNumber = typeof GameNumber$1.inferIn;
254
+ /**
255
+ * Represents a valid NHL game state
256
+ */
257
+ type GameState$2 = typeof GameState$3.inferIn;
258
+ /**
259
+ * Represents a valid draft round (1-7)
260
+ */
261
+ type DraftRound = typeof DraftRound$1.inferIn;
262
+ /**
263
+ * Represents a valid NHL event ID
264
+ */
265
+ type EventId = typeof EventId$1.inferIn;
266
+ /**
267
+ * Represents a valid NHL date in the format YYYY-MM-DD
268
+ */
269
+ type NHLDate = typeof NHLDate$1.inferIn;
270
+ /**
271
+ * Represents a valid NHL month in the format YYYY-MM
272
+ */
273
+ type NHLMonth = typeof NHLMonth$1.inferIn;
274
+ /**
275
+ * Represents a valid NHL series letter (A-O)
276
+ */
277
+ type SeriesLetter = typeof SeriesLetter$1.inferIn;
278
+ /**
279
+ * Represents the playoff rounds in an NHL season (1-4)
280
+ */
281
+ type PlayoffRound = 1 | 2 | 3 | 4;
282
+ /**
283
+ * Represents a valid country code (e.g., CAN, USA, SWE, ...)
284
+ */
285
+ type CountryCode$2 = typeof CountryCode$3.inferIn;
286
+ /**
287
+ * Represents a valid NHL player ID
288
+ */
289
+ type PlayerId = typeof PlayerId$1.inferIn;
290
+ /**
291
+ * Type definitions for enums from constants.ts
292
+ */
293
+ /** Categories for shot location top-10 list */
294
+ type ShotLocationCategory = keyof typeof ShotLocationCategoryEnum;
295
+ /** Sort options for shot location top-10 list */
296
+ type ShotLocationSort = keyof typeof ShotLocationSortEnum;
297
+ /** Sort options for 5v5 save percentage top-10 list */
298
+ type SavePercentage5v5Sort = keyof typeof SavePercentage5v5SortEnum;
299
+ /** Sort options for save percentage top-10 list */
300
+ type SavePercentageSort = keyof typeof SavePercentageSortEnum;
301
+ /** Categories for save location top-10 list */
302
+ type SaveLocationCategory = keyof typeof SaveLocationCategoryEnum;
303
+ /** Sort options for save location top-10 list */
304
+ type SaveLocationSort = keyof typeof SaveLocationSortEnum;
305
+ /** Positions filter for player stats */
306
+ type PositionFilter = keyof typeof PositionFilterEnum;
307
+ /** Strength situation for skater stats */
308
+ type SkatersStrength = keyof typeof SkatersStrengthEnum;
309
+ /** Sort options for shot speed top-10 list */
310
+ type ShotSpeedSort = keyof typeof ShotSpeedSortEnum;
311
+ /** Sort options for skating speed top-10 list */
312
+ type SkatingSpeedSort = keyof typeof SkatingSpeedSortEnum;
313
+ /** Sort options for skating distance top-10 list */
314
+ type SkatingDistanceSort = keyof typeof SkatingDistanceSortEnum;
315
+ /** Sort options for zone time top-10 lists. */
316
+ type ZoneTimeSort = keyof typeof ZoneTimeSortEnum;
317
+
318
+ /**
319
+ * Common types used in Gamecenter API responses
320
+ */
321
+ /** GameState - The current state of the game. */
322
+ type GameState$1 = 'OFF' | 'FUT' | 'LIVE' | 'PRE' | 'CRIT' | 'FINAL';
323
+ /** Market - The market for this broadcast. (H = Home, A = Away, N = National) */
324
+ type Market = 'H' | 'A' | 'N';
325
+ /** CountryCode - The country code for this broadcast. (CA = Canada, US = United States) */
326
+ type CountryCode$1 = 'CA' | 'US' | string;
327
+ /** CountryTLA - The three-letter country code. */
328
+ type CountryTLA = 'CAN' | 'FIN' | 'USA' | 'LAT' | 'CZE' | 'SWE' | 'CHE' | 'GER' | 'RUS' | 'AUT' | 'GBR' | 'NOR' | 'DEU' | 'SVK' | 'LVA' | 'BLR' | 'KAZ' | 'DNK' | 'ITA' | 'SUI' | 'FRA' | string;
329
+ /**
330
+ * PositionCode - The position code for a player. (D = Defenseman, C = Center, R[W] = Right Wing, L[W] = Left Wing, G = Goalie)
331
+ * Note: The NHL data likes to switch between including and excluding the [W] for wing positions
332
+ */
333
+ type PositionCode = 'D' | 'C' | 'L' | 'LW' | 'R' | 'RW' | 'G';
334
+ /** ShootsCatches - Player's shooting/catching handedness. (L = Left, R = Right) */
335
+ type ShootsCatches = 'L' | 'R';
336
+ /** Default - An object containing a default string value. */
337
+ interface Default {
338
+ default: string;
339
+ }
340
+ /** DefaultWithTranslations - An object containing a default string value as well as any alternative spellings for other languages. */
341
+ interface DefaultWithTranslations extends Default {
342
+ /** French */
343
+ fr?: string;
344
+ /** Czech */
345
+ cs?: string;
346
+ /** Finnish */
347
+ fi?: string;
348
+ /** Slovak */
349
+ sk?: string;
350
+ /** Swedish */
351
+ sv?: string;
352
+ /** German */
353
+ de?: string;
354
+ /** Spanish */
355
+ es?: string;
356
+ [key: string]: string | undefined;
357
+ }
358
+
359
+ interface DraftPicks {
360
+ broadcastStartTimeUTC: string;
361
+ draftYear: number;
362
+ draftYears: number[];
363
+ selectableRounds: number[];
364
+ state: 'over' | string;
365
+ picks: Pick$1[];
366
+ }
367
+ interface Pick$1 {
368
+ round: number;
369
+ pickInRound: number;
370
+ overallPick: number;
371
+ teamId: number;
372
+ teamAbbrev: TeamAbbrev;
373
+ teamName: TeamName$1;
374
+ teamCommonName: TeamName$1;
375
+ teamPlaceNameWithPreposition: TeamName$1;
376
+ displayAbbrev: DisplayAbbrev;
377
+ teamLogoLight: string;
378
+ teamLogoDark: string;
379
+ teamPickHistory: string;
380
+ firstName: DisplayAbbrev;
381
+ lastName: DisplayAbbrev;
382
+ positionCode: PositionCode;
383
+ countryCode: CountryCode;
384
+ height: number;
385
+ weight: number;
386
+ amateurLeague: AmateurLeague$1;
387
+ amateurClubName: string;
388
+ }
389
+ type AmateurLeague$1 = 'OHL' | 'SWEDEN-2' | 'QMJHL' | 'H-EAST' | 'WHL' | 'RUSSIA-JR.' | 'BIG10' | 'USHL' | 'HIGH-MN' | 'NCHC' | 'SWEDEN-JR.' | 'NTDP - USHL' | 'SWEDEN' | 'CZECHIA' | 'FINLAND-JR.' | 'HIGH-ON' | 'CZECHIA-JR.' | 'GERMANY' | 'CCHL' | 'SWE-JR. U18' | 'SWISS-JR.' | 'FINLAND' | 'RUSSIA' | 'BCHL' | 'HIGH-RI' | 'SWISS' | 'HIGH-MA' | string;
390
+ type CountryCode = 'CAN' | 'SWE' | 'USA' | 'CZE' | 'RUS' | 'FIN' | 'CHN' | 'AUS' | 'SVN' | 'SVK' | 'BLR' | 'DEU' | 'ITA' | 'CHE' | 'NOR' | 'DNK' | 'HRV' | string;
391
+ type DisplayAbbrev = Default;
392
+ type TeamName$1 = DefaultWithTranslations;
393
+
394
+ interface DraftRankings {
395
+ draftYear: number;
396
+ categoryId: number;
397
+ categoryKey: Key;
398
+ draftYears: number[];
399
+ categories: Category[];
400
+ rankings: Ranking[];
401
+ }
402
+ interface Category {
403
+ id: number;
404
+ name: Name$1;
405
+ consumerKey: Key;
406
+ }
407
+ type Key = 'north-american-skater' | 'international-skater' | 'north-american-goalie' | 'international-goalie';
408
+ type Name$1 = 'North American Skater' | 'International Skater' | 'North American Goalie' | 'International Goalie';
409
+ interface Ranking {
410
+ lastName: string;
411
+ firstName: string;
412
+ positionCode: PositionCode;
413
+ shootsCatches: ShootsCatches;
414
+ heightInInches: number;
415
+ weightInPounds: number;
416
+ lastAmateurClub?: string;
417
+ lastAmateurLeague?: AmateurLeague;
418
+ birthDate: Date;
419
+ birthCity: string;
420
+ birthCountry: BirthCountry;
421
+ midtermRank?: number;
422
+ finalRank?: number;
423
+ birthStateProvince?: string;
424
+ }
425
+ type BirthCountry = 'RUS' | 'CHE' | 'SWE' | 'FIN' | 'CZE' | 'BLR' | 'CAN' | 'SVK' | 'USA' | 'LVA' | 'SVN' | 'AUS' | 'ITA' | 'DNK' | 'NOR' | 'AUT' | 'NLD' | 'DEU' | 'ESP' | 'BEL' | 'POL' | 'CHN' | 'HRV' | 'GBR' | 'KAZ';
426
+ type AmateurLeague = 'RUSSIA-JR.' | 'SWISS-JR.' | 'SWEDEN-JR.' | 'FINLAND' | 'WHL' | 'SWEDEN-2' | 'FINLAND-JR.' | 'QMJHL' | 'USHL' | 'OHL' | 'H-EAST' | 'CCHL' | 'BCHL' | 'NAHL' | 'CZECHIA' | 'SWEDEN' | 'CZECHIA-JR.' | 'CZECHIA-2' | 'RUSSIA' | 'SWISS' | 'SLOVAKIA' | 'SWISS-2' | 'GERMANY' | 'FRANCE' | 'SLOVAKIA-JR.' | 'BIG10' | 'NCHC' | 'HIGH-MN' | 'NTDP - USHL' | 'HIGH-ON' | 'ECAC' | 'HIGH-RI' | 'HIGH-MA' | 'CCHA' | 'RUSSIA-2';
427
+
428
+ interface DraftTracker {
429
+ currentDraftDate: Date;
430
+ broadcastStartTimeUTC: Date;
431
+ tvBroadcasts: TvBroadcast$2[];
432
+ logoUrl: string;
433
+ logoFrUrl: string;
434
+ uiAccentColor: HexColorCode;
435
+ round: number;
436
+ state: 'over' | string;
437
+ picks: Pick[];
438
+ }
439
+ interface Pick {
440
+ pickInRound: number;
441
+ overallPick: number;
442
+ teamId: number;
443
+ teamAbbrev: TeamAbbrev;
444
+ teamFullName: TeamName;
445
+ teamCommonName: TeamName;
446
+ teamPlaceNameWithPreposition: TeamName;
447
+ teamLogoLight: string;
448
+ teamLogoDark: string;
449
+ state: 'confirmed' | string;
450
+ lastName: Name;
451
+ firstName: Name;
452
+ positionCode: PositionCode;
453
+ }
454
+ type Name = DefaultWithTranslations;
455
+ type TeamName = DefaultWithTranslations;
456
+ type HexColorCode = `#${string}`;
457
+ interface TvBroadcast$2 {
458
+ id: number;
459
+ market: Market;
460
+ countryCode: CountryCode$1;
461
+ network: string;
462
+ sequenceNumber: number;
463
+ }
464
+
465
+ interface NetworkTVSchedule {
466
+ date: string;
467
+ startDate: string;
468
+ endDate: string;
469
+ broadcasts: Broadcast[];
470
+ }
471
+ interface Broadcast {
472
+ startTime: string;
473
+ endTime: string;
474
+ durationSeconds: number;
475
+ title: string;
476
+ description: string;
477
+ houseNumber: string;
478
+ broadcastType: 'HD' | string;
479
+ broadcastStatus: 'LIVE' | '' | string;
480
+ broadcastImageUrl: string;
481
+ }
482
+
483
+ interface WhereToWatch {
484
+ id: string;
485
+ active: boolean;
486
+ countryCode: string;
487
+ countryName: string;
488
+ streamingName?: StreamingName;
489
+ streamingSiteUrl?: string;
490
+ streamingLogoUrl?: string;
491
+ primaryBroadcastName?: string;
492
+ primaryBroadcastSiteUrl?: string;
493
+ primaryBroadcastLogoUrl?: string;
494
+ secondaryBroadcastName?: string;
495
+ secondaryBroadcastSiteUrl?: string;
496
+ secondaryBroadcastLogoUrl?: string;
497
+ }
498
+ type StreamingName = 'NHL Live' | 'NHL.TV INTL' | 'ESPN+' | 'ESPN Play' | 'Disney Plus' | 'Disney+' | 'Viaplay' | 'TV24' | 'TV3' | string;
499
+
500
+ interface GamecenterBoxscore {
501
+ id: number;
502
+ season: number;
503
+ gameType: number;
504
+ limitedScoring: boolean;
505
+ gameDate: Date;
506
+ venue: Default;
507
+ venueLocation: Default;
508
+ startTimeUTC: Date;
509
+ easternUTCOffset: string;
510
+ venueUTCOffset: string;
511
+ tvBroadcasts: TvBroadcast$1[];
512
+ gameState: GameState$1;
513
+ gameScheduleState: 'OK' | string;
514
+ periodDescriptor?: PeriodDescriptor$1;
515
+ regPeriods: number;
516
+ awayTeam: Team$1;
517
+ homeTeam: Team$1;
518
+ clock: Clock;
519
+ playerByGameStats?: PlayerByGameStats;
520
+ summary?: Summary;
521
+ gameOutcome?: GameOutcome$1;
522
+ situation?: Situation;
523
+ }
524
+ interface Team$1 {
525
+ id: number;
526
+ commonName: Default;
527
+ abbrev: string;
528
+ score?: number;
529
+ sog?: number;
530
+ logo: string;
531
+ darkLogo: string;
532
+ placeName: Default;
533
+ placeNameWithPreposition: DefaultWithTranslations;
534
+ radioLink?: string;
535
+ }
536
+ interface Clock {
537
+ timeRemaining: string;
538
+ secondsRemaining: number;
539
+ running: boolean;
540
+ inIntermission: boolean;
541
+ }
542
+ interface GameOutcome$1 {
543
+ lastPeriodType: string;
544
+ }
545
+ interface PeriodDescriptor$1 {
546
+ number: number;
547
+ periodType: string;
548
+ maxRegulationPeriods: number;
549
+ }
550
+ interface PlayerByGameStats {
551
+ awayTeam: PlayerByGameStatsTeam;
552
+ homeTeam: PlayerByGameStatsTeam;
553
+ }
554
+ type Position = 'C' | 'R' | 'L' | 'D';
555
+ interface PlayerByGameStatsTeam {
556
+ forwards: Forward$1[];
557
+ defense: Defense[];
558
+ goalies: Goalie$1[];
559
+ }
560
+ interface Skater {
561
+ playerId: number;
562
+ sweaterNumber: number;
563
+ name: DefaultWithTranslations;
564
+ position: Exclude<Position, 'G'>;
565
+ goals: number;
566
+ assists: number;
567
+ points: number;
568
+ plusMinus: number;
569
+ pim: number;
570
+ hits: number;
571
+ powerPlayGoals: number;
572
+ sog: number;
573
+ faceoffWinningPctg: number;
574
+ toi: string;
575
+ blockedShots: number;
576
+ shifts: number;
577
+ giveaways: number;
578
+ takeaways: number;
579
+ }
580
+ interface Forward$1 extends Skater {
581
+ position: Exclude<Position, 'D' | 'G'>;
582
+ }
583
+ interface Defense extends Skater {
584
+ position: 'D';
585
+ }
586
+ interface Goalie$1 {
587
+ playerId: number;
588
+ sweaterNumber: number;
589
+ name: DefaultWithTranslations;
590
+ position: 'G';
591
+ evenStrengthShotsAgainst: string;
592
+ powerPlayShotsAgainst: string;
593
+ shorthandedShotsAgainst: string;
594
+ saveShotsAgainst: string;
595
+ savePctg?: number;
596
+ evenStrengthGoalsAgainst: number;
597
+ powerPlayGoalsAgainst: number;
598
+ shorthandedGoalsAgainst: number;
599
+ pim?: number;
600
+ goalsAgainst: number;
601
+ toi: string;
602
+ starter?: boolean;
603
+ decision?: string;
604
+ shotsAgainst: number;
605
+ saves: number;
606
+ }
607
+ interface Situation {
608
+ homeTeam: SituationDetails;
609
+ awayTeam: SituationDetails;
610
+ situationCode: string;
611
+ timeRemaining: string;
612
+ secondsRemaining: number;
613
+ }
614
+ interface SituationDetails {
615
+ abbrev: string;
616
+ situationDescriptions: string[];
617
+ strength: number;
618
+ }
619
+ type Summary = Record<string, unknown>;
620
+ interface TvBroadcast$1 {
621
+ id: number;
622
+ market: Market;
623
+ countryCode: CountryCode$1;
624
+ network: string;
625
+ sequenceNumber: number;
626
+ }
627
+
628
+ interface NHLStandings {
629
+ wildCardIndicator: boolean;
630
+ standings: TeamStanding[];
631
+ standingsDateTimeUtc?: string;
632
+ }
633
+ interface TeamStanding {
634
+ conferenceAbbrev?: ConferenceAbbrev;
635
+ conferenceHomeSequence: number;
636
+ conferenceL10Sequence: number;
637
+ conferenceName?: ConferenceName;
638
+ conferenceRoadSequence: number;
639
+ conferenceSequence: number;
640
+ date: string;
641
+ divisionAbbrev?: DivisionAbbrev;
642
+ divisionHomeSequence: number;
643
+ divisionL10Sequence: number;
644
+ divisionName?: DivisionName;
645
+ divisionRoadSequence: number;
646
+ divisionSequence: number;
647
+ gameTypeId: number;
648
+ gamesPlayed: number;
649
+ goalDifferential: number;
650
+ goalDifferentialPctg: number;
651
+ goalAgainst: number;
652
+ goalFor: number;
653
+ goalsForPctg: number;
654
+ homeGamesPlayed: number;
655
+ homeGoalDifferential: number;
656
+ homeGoalsAgainst: number;
657
+ homeGoalsFor: number;
658
+ homeLosses: number;
659
+ homeOtLosses: number;
660
+ homePoints: number;
661
+ homeRegulationPlusOtWins: number;
662
+ homeRegulationWins: number;
663
+ homeTies: number;
664
+ homeWins: number;
665
+ l10GamesPlayed: number;
666
+ l10GoalDifferential: number;
667
+ l10GoalsAgainst: number;
668
+ l10GoalsFor: number;
669
+ l10Losses: number;
670
+ l10OtLosses: number;
671
+ l10Points: number;
672
+ l10RegulationPlusOtWins: number;
673
+ l10RegulationWins: number;
674
+ l10Ties: number;
675
+ l10Wins: number;
676
+ leagueHomeSequence: number;
677
+ leagueL10Sequence: number;
678
+ leagueRoadSequence: number;
679
+ leagueSequence: number;
680
+ losses: number;
681
+ otLosses: number;
682
+ placeName: DefaultWithTranslations;
683
+ pointPctg: number;
684
+ points: number;
685
+ regulationPlusOtWinPctg: number;
686
+ regulationPlusOtWins: number;
687
+ regulationWinPctg: number;
688
+ regulationWins: number;
689
+ roadGamesPlayed: number;
690
+ roadGoalDifferential: number;
691
+ roadGoalsAgainst: number;
692
+ roadGoalsFor: number;
693
+ roadLosses: number;
694
+ roadOtLosses: number;
695
+ roadPoints: number;
696
+ roadRegulationPlusOtWins: number;
697
+ roadRegulationWins: number;
698
+ roadTies: number;
699
+ roadWins: number;
700
+ seasonId: number;
701
+ shootoutLosses: number;
702
+ shootoutWins: number;
703
+ streakCode: StreakCode;
704
+ streakCount: number;
705
+ teamName: DefaultWithTranslations;
706
+ teamCommonName: DefaultWithTranslations;
707
+ teamAbbrev: Default;
708
+ teamLogo: string;
709
+ ties: number;
710
+ waiversSequence: number;
711
+ wildcardSequence: number;
712
+ winPctg: number;
713
+ wins: number;
714
+ clinchIndicator?: ClinchIndicator;
715
+ }
716
+ type ClinchIndicator = 'y' | 'x' | 'z' | 'p';
717
+ type ConferenceAbbrev = 'E' | 'W' | 'XVW' | 'XVE' | '';
718
+ type ConferenceName = 'Eastern' | 'Western' | 'Prince of Wales' | 'Clarence Campbell';
719
+ type DivisionAbbrev = 'A' | 'C' | 'P' | 'M' | 'E' | 'W' | 'CEN' | 'ATL' | 'NE' | 'PAC' | 'NW' | 'SE' | 'ADM' | 'SMY' | 'PTK' | 'NRS' | 'EST' | 'WST' | 'NTH' | 'CDN' | 'AMR';
720
+ type DivisionName = 'Atlantic' | 'Central' | 'Pacific' | 'Metropolitan' | 'East' | 'West' | 'Northeast' | 'Northwest' | 'Southeast' | 'Adams' | 'Smythe' | 'Patrick' | 'Norris' | 'Discover Central' | 'MassMutual East' | 'Honda West' | 'Scotia North' | 'Canadian' | 'American';
721
+ type StreakCode = 'W' | 'L' | 'OT' | 'T';
722
+
723
+ interface NHLStandingsSeason {
724
+ currentDate: string;
725
+ seasons: SeasonDetails[];
726
+ }
727
+ interface SeasonDetails {
728
+ id: number;
729
+ conferencesInUse: boolean;
730
+ divisionsInUse: boolean;
731
+ pointForOTlossInUse: boolean;
732
+ regulationWinsInUse: boolean;
733
+ /** Regulation and overtime wins in use for standings tie breaks */
734
+ rowInUse: boolean;
735
+ /** ISO 8601 date string */
736
+ standingsEnd: string;
737
+ /** ISO 8601 date string */
738
+ standingsStart: string;
739
+ tiesInUse: boolean;
740
+ wildcardInUse: boolean;
741
+ }
742
+
743
+ interface TeamProspects {
744
+ forwards: Forward[];
745
+ defensemen: Defenseman[];
746
+ goalies: Goalie[];
747
+ }
748
+ interface PlayerBase {
749
+ id: number;
750
+ headshot: string;
751
+ firstName: DefaultWithTranslations;
752
+ lastName: DefaultWithTranslations;
753
+ sweaterNumber?: number;
754
+ shootsCatches: ShootsCatches;
755
+ heightInInches: number;
756
+ weightInPounds: number;
757
+ heightInCentimeters: number;
758
+ weightInKilograms: number;
759
+ birthDate: string;
760
+ birthCity?: DefaultWithTranslations;
761
+ birthCountry: CountryTLA;
762
+ birthStateProvince?: DefaultWithTranslations;
763
+ }
764
+ interface Defenseman extends PlayerBase {
765
+ positionCode: 'D';
766
+ }
767
+ interface Forward extends PlayerBase {
768
+ positionCode: Exclude<PositionCode, 'D' | 'G'>;
769
+ }
770
+ interface Goalie extends PlayerBase {
771
+ positionCode: 'G';
772
+ }
773
+
774
+ interface TeamScheduleSeason {
775
+ previousSeason?: number;
776
+ currentSeason?: number;
777
+ clubTimezone: string;
778
+ clubUTCOffset: string;
779
+ games: Game[];
780
+ }
781
+ interface Game {
782
+ id: number;
783
+ season: number;
784
+ gameType: number;
785
+ gameDate: string;
786
+ venue: DefaultWithTranslations;
787
+ neutralSite: boolean;
788
+ startTimeUTC: string;
789
+ easternUTCOffset: string;
790
+ venueUTCOffset: string;
791
+ venueTimezone: string;
792
+ gameState: GameState;
793
+ gameScheduleState: GameScheduleState;
794
+ tvBroadcasts: TvBroadcast[];
795
+ awayTeam: Team;
796
+ homeTeam: Team;
797
+ periodDescriptor: PeriodDescriptor;
798
+ gameOutcome?: GameOutcome;
799
+ winningGoalie?: WinningGoal;
800
+ winningGoalScorer?: WinningGoal;
801
+ threeMinRecap?: string;
802
+ threeMinRecapFr?: string;
803
+ condensedGame?: string;
804
+ condensedGameFr?: string;
805
+ gameCenterLink?: string;
806
+ ticketsLink?: string;
807
+ ticketsLinkFr?: string;
808
+ specialEvent?: SpecialEvent;
809
+ }
810
+ interface Team {
811
+ id: number;
812
+ commonName: DefaultWithTranslations;
813
+ placeName: DefaultWithTranslations;
814
+ placeNameWithPreposition: DefaultWithTranslations;
815
+ abbrev: Abbrev;
816
+ logo: string;
817
+ darkLogo: string;
818
+ awaySplitSquad?: boolean;
819
+ score?: number;
820
+ airlineLink?: string;
821
+ airlineDesc?: string;
822
+ hotelLink?: string;
823
+ hotelDesc?: string;
824
+ radioLink?: string;
825
+ promoLink?: string;
826
+ promoDesc?: string;
827
+ homeSplitSquad?: boolean;
828
+ }
829
+ type Abbrev = 'ANA' | 'BOS' | 'BUF' | 'CAR' | 'CBJ' | 'CGY' | 'CHI' | 'COL' | 'DAL' | 'DET' | 'EDM' | 'FLA' | 'LAK' | 'MIN' | 'MTL' | 'NJD' | 'NSH' | 'NYI' | 'NYR' | 'OTT' | 'PHI' | 'PIT' | 'SEA' | 'SJS' | 'STL' | 'TBL' | 'TOR' | 'UTA' | 'VAN' | 'VGK' | 'WPG' | 'WSH';
830
+ interface GameOutcome {
831
+ lastPeriodType: PeriodType;
832
+ }
833
+ type PeriodType = 'REG' | 'OT' | 'SO';
834
+ type GameScheduleState = 'OK' | 'TBD';
835
+ type GameState = 'FINAL' | 'OFF' | 'FUT' | 'LIVE';
836
+ interface PeriodDescriptor {
837
+ periodType: PeriodType;
838
+ maxRegulationPeriods: number;
839
+ }
840
+ interface SpecialEvent {
841
+ parentId: number;
842
+ name: DefaultWithTranslations;
843
+ }
844
+ interface TvBroadcast {
845
+ id: number;
846
+ market: Market;
847
+ countryCode: CountryCode$1;
848
+ network: string;
849
+ sequenceNumber: number;
850
+ }
851
+ interface WinningGoal {
852
+ playerId: number;
853
+ firstInitial: Default;
854
+ lastName: DefaultWithTranslations;
855
+ }
856
+
857
+ type GamecenterPlayByPlay = Record<string, unknown>;
858
+ type GamecenterReports = Record<string, unknown>;
859
+ type GamecenterLanding = Record<string, unknown>;
860
+
861
+ type WSCGameStory = Record<string, unknown>;
862
+ type WSCPlayByPlay = Record<string, unknown>;
863
+ type PPTReplayGoal = Record<string, unknown>;
864
+ type PPTReplayEvent = Record<string, unknown>;
865
+ type LeagueSchedule = Record<string, unknown>;
866
+ type ScheduleCalendar = Record<string, unknown>;
867
+ type PlayoffBracket = Record<string, unknown>;
868
+ type PlayoffSeries = Record<string, unknown>;
869
+ type PlayoffSeriesSchedule = Record<string, unknown>;
870
+ type NHLSeasons = Record<string, unknown>;
871
+ type PlayoffSeriesMeta = Record<string, unknown>;
872
+ type GameMeta = Record<string, unknown>;
873
+ type PostalCodeInfo = Record<string, unknown>;
874
+ type LocationInfo = Record<string, unknown>;
875
+ type PartnerGameInfo = Record<string, unknown>;
876
+
877
+ type TeamRoster = Record<string, unknown>;
878
+ type TeamRosterSeasons = Record<string, unknown>;
879
+
880
+ type TeamScheduleMonth = Record<string, unknown>;
881
+
882
+ type TeamScheduleWeek = Record<string, unknown>;
883
+ type TeamStats = Record<string, unknown>;
884
+ type TeamStatsSeason = Record<string, unknown>;
885
+ type PlayerLanding = Record<string, unknown>;
886
+ type PlayerGameLog = Record<string, unknown>;
887
+ type PlayerSpotlight = Record<string, unknown>;
888
+ type PlayerSearchResult = Record<string, unknown>;
889
+ type SkaterStatsLeaders = Record<string, unknown>;
890
+ type GoalieStatsLeaders = Record<string, unknown>;
891
+ type NHLScore = Record<string, unknown>;
892
+ type NHLScoreboard = Record<string, unknown>;
893
+
894
+ /**
895
+ * Draft-related API endpoints
896
+ */
897
+
898
+ /**
899
+ * Get draft picks for a specific year and round
900
+ * @param year - The draft year
901
+ * @param round - The draft round
902
+ * @returns Promise resolving to draft picks for the specified year and round
903
+ */
904
+ declare const picks: (year?: Year, round?: DraftRound) => Promise<APIResponse<DraftPicks>>;
905
+ /**
906
+ * Get current draft tracker information
907
+ * @returns Promise resolving to current draft tracker data
908
+ */
909
+ declare const tracker: () => Promise<APIResponse<DraftTracker>>;
910
+ /**
911
+ * Access draft rankings related endpoints
912
+ */
913
+ declare const rankings: (year?: Year) => {
914
+ skatersNA: () => Promise<APIResponse<DraftRankings>>;
915
+ skatersIntl: () => Promise<APIResponse<DraftRankings>>;
916
+ goaliesNA: () => Promise<APIResponse<DraftRankings>>;
917
+ goaliesIntl: () => Promise<APIResponse<DraftRankings>>;
918
+ all: () => Promise<APIResponse<DraftRankings>[]>;
919
+ };
920
+
921
+ declare const draft_picks: typeof picks;
922
+ declare const draft_rankings: typeof rankings;
923
+ declare const draft_tracker: typeof tracker;
924
+ declare namespace draft {
925
+ export { draft_picks as picks, draft_rankings as rankings, draft_tracker as tracker };
926
+ }
927
+
928
+ /**
929
+ * Get play-by-play data for a specific game
930
+ * @param gameId - The unique identifier for the game
931
+ * @returns Promise resolving to play-by-play data
932
+ */
933
+ declare const playByPlay: (gameId: string | number) => Promise<APIResponse<GamecenterPlayByPlay>>;
934
+ /**
935
+ * Get reports data for a specific game
936
+ * @param gameId - The unique identifier for the game
937
+ * @returns Promise resolving to reports data
938
+ * @note The official endpoint name is 'right-rail', as it is used
939
+ * to populate the right rail UI component of the NHL website. The
940
+ * function has been renamed to 'reports' for clarity.
941
+ */
942
+ declare const reports: (gameId: string | number) => Promise<APIResponse<GamecenterReports>>;
943
+ /**
944
+ * Get landing page data for a specific game
945
+ * @param gameId - The unique identifier for the game
946
+ * @returns Promise resolving to landing page data
947
+ */
948
+ declare const landing$1: (gameId: string | number) => Promise<APIResponse<GamecenterLanding>>;
949
+ /**
950
+ * Get boxscore data for a specific game
951
+ * @param gameId - The unique identifier for the game
952
+ * @returns Promise resolving to boxscore data
953
+ */
954
+ declare const boxscore: (gameId: string | number) => Promise<APIResponse<GamecenterBoxscore>>;
955
+ declare const wsc: {
956
+ /**
957
+ * Get game story data for a specific game
958
+ * @param gameId - The unique identifier for the game
959
+ * @returns Promise resolving to game story data
960
+ */
961
+ gameStory: (gameId: number | string) => Promise<APIResponse<WSCGameStory>>;
962
+ /**
963
+ * Get play-by-play data for a specific game
964
+ * @param gameId - The unique identifier for the game
965
+ * @returns Promise resolving to play-by-play data
966
+ */
967
+ playByPlay: (gameId: number | string) => Promise<APIResponse<WSCPlayByPlay>>;
968
+ };
969
+ /**
970
+ * Access PPT replay related endpoints
971
+ */
972
+ declare const pptReplay: {
973
+ /**
974
+ * Get goal replay data for a specific game and event
975
+ * @param gameId - The unique identifier for the game
976
+ * @param eventId - The unique identifier for the event
977
+ * @returns Promise resolving to goal replay data
978
+ */
979
+ goal: (gameId: number | string, eventId: number | string) => Promise<APIResponse<PPTReplayGoal>>;
980
+ /**
981
+ * Get event replay data for a specific date
982
+ * @param date - Date to get event replay data for (Date object or ISO date string)
983
+ * @returns Promise resolving to event replay data
984
+ */
985
+ event: (date: Date | string) => Promise<APIResponse<PPTReplayEvent>>;
986
+ };
987
+ /**
988
+ * Access schedule related endpoints
989
+ */
990
+ declare const schedule$1: (date?: Date | string) => Promise<APIResponse<LeagueSchedule>>;
991
+ /**
992
+ * Access schedule calendar related endpoints
993
+ */
994
+ declare const scheduleCalendar: (date?: Date | string) => Promise<APIResponse<ScheduleCalendar>>;
995
+ /**
996
+ * Access playoff bracket related endpoints
997
+ */
998
+ declare const playoffBracket: (year?: string) => Promise<APIResponse<PlayoffBracket>>;
999
+ /**
1000
+ * Access playoff series related endpoints
1001
+ */
1002
+ declare const playoffSeries: (season?: string) => Promise<APIResponse<PlayoffSeries>>;
1003
+ /**
1004
+ * Access playoff series schedule related endpoints
1005
+ */
1006
+ declare const playoffSeriesSchedule: (seriesLetter: string, season?: string) => Promise<APIResponse<PlayoffSeriesSchedule>>;
1007
+ /**
1008
+ * Access where-to-watch related endpoints
1009
+ */
1010
+ declare const whereToWatch: () => Promise<APIResponse<WhereToWatch>>;
1011
+ /**
1012
+ * Access network related endpoints
1013
+ */
1014
+ /**
1015
+ * Get TV schedule data for a specific date
1016
+ * @param date - Date to get TV schedule data for (optional)
1017
+ * @returns Promise resolving to TV schedule data
1018
+ */
1019
+ declare const networkTVSchedule: (date?: Date | string) => Promise<APIResponse<NetworkTVSchedule>>;
1020
+
1021
+ declare const game_boxscore: typeof boxscore;
1022
+ declare const game_networkTVSchedule: typeof networkTVSchedule;
1023
+ declare const game_playByPlay: typeof playByPlay;
1024
+ declare const game_playoffBracket: typeof playoffBracket;
1025
+ declare const game_playoffSeries: typeof playoffSeries;
1026
+ declare const game_playoffSeriesSchedule: typeof playoffSeriesSchedule;
1027
+ declare const game_pptReplay: typeof pptReplay;
1028
+ declare const game_reports: typeof reports;
1029
+ declare const game_scheduleCalendar: typeof scheduleCalendar;
1030
+ declare const game_whereToWatch: typeof whereToWatch;
1031
+ declare const game_wsc: typeof wsc;
1032
+ declare namespace game {
1033
+ export { game_boxscore as boxscore, landing$1 as landing, game_networkTVSchedule as networkTVSchedule, game_playByPlay as playByPlay, game_playoffBracket as playoffBracket, game_playoffSeries as playoffSeries, game_playoffSeriesSchedule as playoffSeriesSchedule, game_pptReplay as pptReplay, game_reports as reports, schedule$1 as schedule, game_scheduleCalendar as scheduleCalendar, game_whereToWatch as whereToWatch, game_wsc as wsc };
1034
+ }
1035
+
1036
+ /**
1037
+ * @module api/misc
1038
+ * @description Miscellaneous NHL API endpoints for meta information, location data, and other utility functions
1039
+ */
1040
+
1041
+ declare const seasons: () => Promise<APIResponse<NHLSeasons>>;
1042
+ declare const meta: {
1043
+ /**
1044
+ * Get meta information for a playoff series
1045
+ *
1046
+ * @param year - The year in YYYY format
1047
+ * @param seriesLetter - Single letter identifier for the playoff series
1048
+ * @returns Promise resolving to playoff series meta information
1049
+ */
1050
+ playoffSeries: (seriesLetter: string, year?: number | string) => Promise<APIResponse<PlayoffSeriesMeta>>;
1051
+ /**
1052
+ * Get meta information for a specific game
1053
+ *
1054
+ * @param gameId - The unique game identifier
1055
+ * @returns Promise resolving to game meta information
1056
+ */
1057
+ game: (gameId: string | number) => Promise<APIResponse<GameMeta>>;
1058
+ };
1059
+ /**
1060
+ * Lookup information based on postal code
1061
+ *
1062
+ * @param postalCode - The postal/zip code to lookup
1063
+ * @returns Promise resolving to postal code information
1064
+ */
1065
+ declare const postalLookup: (postalCode: string) => Promise<APIResponse<PostalCodeInfo>>;
1066
+ /**
1067
+ * Get location information
1068
+ *
1069
+ * @returns Promise resolving to the location determined by the API
1070
+ * (assumed to be based on the user's IP address)
1071
+ */
1072
+ declare const location: () => Promise<APIResponse<LocationInfo>>;
1073
+ /**
1074
+ * Get partner game information for a specific country
1075
+ *
1076
+ * @param countryCode - The two-letter country code (e.g. 'ca', 'se', 'cz', etc.)
1077
+ * @returns Promise resolving to partner game information
1078
+ */
1079
+ declare const partnerGame: (countryCode: string) => Promise<APIResponse<PartnerGameInfo>>;
1080
+
1081
+ declare const misc_location: typeof location;
1082
+ declare const misc_meta: typeof meta;
1083
+ declare const misc_partnerGame: typeof partnerGame;
1084
+ declare const misc_postalLookup: typeof postalLookup;
1085
+ declare const misc_seasons: typeof seasons;
1086
+ declare namespace misc {
1087
+ export { misc_location as location, misc_meta as meta, misc_partnerGame as partnerGame, misc_postalLookup as postalLookup, misc_seasons as seasons };
1088
+ }
1089
+
1090
+ /**
1091
+ *
1092
+ */
1093
+
1094
+ /**
1095
+ * Get player landing information
1096
+ * @param playerId - The unique player identifier
1097
+ * @returns Promise resolving to player landing information
1098
+ */
1099
+ declare const landing: (playerId: number | string) => Promise<APIResponse<PlayerLanding>>;
1100
+ declare const gameLog: (playerId: number | string, season?: number | string, gameType?: number | string) => Promise<APIResponse<PlayerGameLog>>;
1101
+ declare const spotlight: () => Promise<APIResponse<PlayerSpotlight>>;
1102
+ declare const search: (query: string) => Promise<APIResponse<PlayerSearchResult>>;
1103
+ /**
1104
+ * Access stats leaders related endpoints
1105
+ */
1106
+ declare const statsLeaders: {
1107
+ /**
1108
+ * Get skater stats leaders
1109
+ * @param season - The season identifier (optional)
1110
+ * @param gameType - The game type identifier (optional)
1111
+ * @returns Promise resolving to skater stats leaders
1112
+ */
1113
+ skaters: (season?: number | string, gameType?: number | string) => Promise<APIResponse<SkaterStatsLeaders>>;
1114
+ /**
1115
+ * Get goalie stats leaders
1116
+ * @param season - The season identifier (optional)
1117
+ * @param gameType - The game type identifier (optional)
1118
+ * @returns Promise resolving to goalie stats leaders
1119
+ */
1120
+ goalies: (season?: number | string, gameType?: number | string) => Promise<APIResponse<GoalieStatsLeaders>>;
1121
+ };
1122
+
1123
+ declare const player_gameLog: typeof gameLog;
1124
+ declare const player_landing: typeof landing;
1125
+ declare const player_search: typeof search;
1126
+ declare const player_spotlight: typeof spotlight;
1127
+ declare const player_statsLeaders: typeof statsLeaders;
1128
+ declare namespace player {
1129
+ export { player_gameLog as gameLog, player_landing as landing, player_search as search, player_spotlight as spotlight, player_statsLeaders as statsLeaders };
1130
+ }
1131
+
1132
+ /**
1133
+ * Access score related endpoints
1134
+ */
1135
+ /**
1136
+ * Get scores for a specific date
1137
+ * @param date - Date to get scores for (Date object or ISO date string)
1138
+ * @returns Promise resolving to scores for the specified date
1139
+ */
1140
+ declare const score: (date?: Date | string) => Promise<APIResponse<NHLScore>>;
1141
+ /**
1142
+ * Access scoreboard related endpoints
1143
+ */
1144
+ declare const scoreboard: {
1145
+ (): Promise<APIResponse<NHLScoreboard>>;
1146
+ team(team: TeamAbbrev): Promise<APIResponse<NHLScoreboard>>;
1147
+ date(date: Date | string): Promise<APIResponse<NHLScoreboard>>;
1148
+ };
1149
+
1150
+ /**
1151
+ * Access roster seasons related endpoints
1152
+ */
1153
+ declare const rosterSeasons: (team: string) => Promise<APIResponse<TeamRosterSeasons>>;
1154
+ /**
1155
+ * Access roster related endpoints
1156
+ */
1157
+ declare const roster: (team: string, season?: string | number) => Promise<APIResponse<TeamRoster>>;
1158
+ /**
1159
+ * Access prospects related endpoints
1160
+ */
1161
+ declare const prospects: (team: string) => Promise<APIResponse<TeamProspects>>;
1162
+ /**
1163
+ * Access club stats related endpoints
1164
+ */
1165
+ declare const clubStats: (team: string, season?: string | number, gameType?: string | number) => Promise<APIResponse<TeamStats>>;
1166
+ /**
1167
+ * Access club stats season related endpoints
1168
+ */
1169
+ declare const clubStatsSeason: (team: string) => Promise<APIResponse<TeamStatsSeason>>;
1170
+ /**
1171
+ * Access standings related endpoints
1172
+ */
1173
+ declare const standings: (date?: Date | string) => Promise<APIResponse<NHLStandings>>;
1174
+ /**
1175
+ * Access standings season related endpoints
1176
+ */
1177
+ declare const standingsSeason: () => Promise<APIResponse<NHLStandingsSeason>>;
1178
+ declare const schedule: {
1179
+ /** Returns the full season schedule for the provided team and season
1180
+ * @param team - The team abbreviation for the desired team
1181
+ * @param season - The specific season (e.g. 20222023); if not provided, defaults to the current season.
1182
+ * @returns A promise that resolves to the full season schedule for the specified team and season
1183
+ * @example
1184
+ * ```ts
1185
+ * // Get the full season schedule for the Boston Bruins for the 2022-2023 season
1186
+ * schedule.season('BOS', 20222023).then((data) => {
1187
+ * console.log(data);
1188
+ * });
1189
+ * ```
1190
+ */
1191
+ season: (team: string, season?: number) => Promise<APIResponse<TeamScheduleSeason>>;
1192
+ /**
1193
+ * Get the team schedule for any seven-day period
1194
+ * @param team - The team abbreviation
1195
+ * @param date - The date indicating the start of the seven-day period.
1196
+ * If not provided, defaults to the current date. format: 'YYYY-MM'
1197
+ * @returns A promise that resolves to the club schedule for the specified week
1198
+ *
1199
+ * @example
1200
+ * ```ts
1201
+ * import { schedule } from 'nhle-api';
1202
+ *
1203
+ * // Get the schedule for the Chicago Blackhawks for the week of November 4, 2023
1204
+ * // This returns the schedule from November 4 to November 10, 2023
1205
+ * schedule.week('CHI', '2023-11-04').then((data) => {
1206
+ * console.log(data);
1207
+ * });
1208
+ * ```
1209
+ */
1210
+ week: (team: string, date?: Date | string) => Promise<APIResponse<TeamScheduleWeek>>;
1211
+ /**
1212
+ * Get the team schedule for any month
1213
+ * @param team - The team abbreviation
1214
+ * @param date - The date indicating the month to get the schedule for.
1215
+ * If not provided, defaults to the current month. format: 'YYYY-MM'
1216
+ * @returns A promise that resolves to the club schedule for the specified month
1217
+ *
1218
+ * @example
1219
+ * ```ts
1220
+ * import { schedule } from 'nhle-api';
1221
+ *
1222
+ * // Get the schedule for the Toronto Maple Leafs for November 2023
1223
+ * schedule.month('TOR', '2023-11').then((data) => {
1224
+ * console.log(data);
1225
+ * });
1226
+ * ```
1227
+ */
1228
+ month: (team: string, date?: NHLMonth) => Promise<APIResponse<TeamScheduleMonth>>;
1229
+ };
1230
+
1231
+ declare const team_clubStats: typeof clubStats;
1232
+ declare const team_clubStatsSeason: typeof clubStatsSeason;
1233
+ declare const team_prospects: typeof prospects;
1234
+ declare const team_roster: typeof roster;
1235
+ declare const team_rosterSeasons: typeof rosterSeasons;
1236
+ declare const team_schedule: typeof schedule;
1237
+ declare const team_standings: typeof standings;
1238
+ declare const team_standingsSeason: typeof standingsSeason;
1239
+ declare namespace team {
1240
+ export { team_clubStats as clubStats, team_clubStatsSeason as clubStatsSeason, team_prospects as prospects, team_roster as roster, team_rosterSeasons as rosterSeasons, team_schedule as schedule, team_standings as standings, team_standingsSeason as standingsSeason };
1241
+ }
1242
+
1243
+ /**
1244
+ * NHL API Endpoints
1245
+ * This file re-exports all the API endpoint functions
1246
+ */
1247
+
1248
+ declare const index_draft: typeof draft;
1249
+ declare const index_game: typeof game;
1250
+ declare const index_misc: typeof misc;
1251
+ declare const index_player: typeof player;
1252
+ declare const index_score: typeof score;
1253
+ declare const index_scoreboard: typeof scoreboard;
1254
+ declare const index_team: typeof team;
1255
+ declare namespace index {
1256
+ export { index_draft as draft, index_game as game, index_misc as misc, index_player as player, index_score as score, index_scoreboard as scoreboard, index_team as team };
1257
+ }
1258
+
1259
+ /**
1260
+ * All valid NHL team abbreviations and their corresponding team IDs.
1261
+ */
1262
+ declare const TeamsEnum: {
1263
+ /** Anaheim Ducks */
1264
+ readonly ANA: 24;
1265
+ /** Boston Bruins */
1266
+ readonly BOS: 6;
1267
+ /** Buffalo Sabres */
1268
+ readonly BUF: 7;
1269
+ /** Calgary Flames */
1270
+ readonly CGY: 20;
1271
+ /** Carolina Hurricanes */
1272
+ readonly CAR: 12;
1273
+ /** Chicago Blackhawks */
1274
+ readonly CHI: 16;
1275
+ /** Colorado Avalanche */
1276
+ readonly COL: 21;
1277
+ /** Columbus Blue Jackets */
1278
+ readonly CBJ: 29;
1279
+ /** Dallas Stars */
1280
+ readonly DAL: 25;
1281
+ /** Detroit Red Wings */
1282
+ readonly DET: 17;
1283
+ /** Edmonton Oilers */
1284
+ readonly EDM: 22;
1285
+ /** Florida Panthers */
1286
+ readonly FLA: 13;
1287
+ /** Los Angeles Kings */
1288
+ readonly LAK: 26;
1289
+ /** Minnesota Wild*/
1290
+ readonly MIN: 30;
1291
+ /** Montreal Canadiens */
1292
+ readonly MTL: 8;
1293
+ /** New Jersey Devils */
1294
+ readonly NJD: 1;
1295
+ /** Nashville Predators */
1296
+ readonly NSH: 18;
1297
+ /** New York Islanders */
1298
+ readonly NYI: 2;
1299
+ /** New York Rangers */
1300
+ readonly NYR: 3;
1301
+ /** Ottawa Senators */
1302
+ readonly OTT: 9;
1303
+ /** Philadelphia Flyers */
1304
+ readonly PHI: 4;
1305
+ /** Pittsburgh Penguins */
1306
+ readonly PIT: 5;
1307
+ /** San Jose Sharks */
1308
+ readonly SJS: 28;
1309
+ /** Seattle Kraken */
1310
+ readonly SEA: 55;
1311
+ /** St. Louis Blues */
1312
+ readonly STL: 19;
1313
+ /** Tampa Bay Lightning */
1314
+ readonly TBL: 14;
1315
+ /** Toronto Maple Leafs */
1316
+ readonly TOR: 10;
1317
+ /** Utah Hockey Club */
1318
+ readonly UTA: 59;
1319
+ /** Vancouver Canucks */
1320
+ readonly VAN: 23;
1321
+ /** Vegas Golden Knights */
1322
+ readonly VGK: 54;
1323
+ /** Winnipeg Jets */
1324
+ readonly WPG: 52;
1325
+ /** Washington Capitals */
1326
+ readonly WSH: 15;
1327
+ };
1328
+ declare const TeamsReverseEnum: Record<(typeof TeamsEnum)[keyof typeof TeamsEnum], keyof typeof TeamsEnum>;
1329
+ /**
1330
+ * All inactive NHL teams and their corresponding team IDs.
1331
+ */
1332
+ declare const InactiveTeamsEnum: {
1333
+ /** Atlanta Flames (not active) */
1334
+ readonly AFM: 47;
1335
+ /** Arizona Coyotes (not active) */
1336
+ readonly ARI: 53;
1337
+ /** Atlanta Thrashers (not active) */
1338
+ readonly ATL: 11;
1339
+ /** Brooklyn Americans - (not active) */
1340
+ readonly BRK: 51;
1341
+ /** California Golden Seals (aka Bay Area Seals) - (not active) */
1342
+ readonly CGS: 56;
1343
+ /** Cleveland Barons - (not active) */
1344
+ readonly CLE: 49;
1345
+ /** Colorado Rockies - (not active) */
1346
+ readonly CLR: 35;
1347
+ /** Detroit Cougars - (not active) */
1348
+ readonly DCG: 40;
1349
+ /** Detroit Falcons - (not active) */
1350
+ readonly DFL: 50;
1351
+ /** Hamilton Tigers - (not active) */
1352
+ readonly HAM: 37;
1353
+ /** Hartford Whalers - (not active) */
1354
+ readonly HFD: 34;
1355
+ /** Kansas City Scouts - (not active) */
1356
+ readonly KCS: 48;
1357
+ /** Montreal Maroons - (not active) */
1358
+ readonly MMR: 43;
1359
+ /** Minnesota North Stars - (not active) */
1360
+ readonly MNS: 31;
1361
+ /** Montreal Wanderers - (not active) */
1362
+ readonly MWN: 41;
1363
+ /** New York Americans - (not active) */
1364
+ readonly NYA: 44;
1365
+ /** California Seals (aka Oakland Seals) - (not active) */
1366
+ readonly OAK: 46;
1367
+ /** Phoenix Coyotes - (not active) */
1368
+ readonly PHX: 27;
1369
+ /** Pittsburgh Pirates - (not active) */
1370
+ readonly PIR: 38;
1371
+ /** Quebec Bulldogs - (not active) */
1372
+ readonly QBD: 42;
1373
+ /** Philadelphia Quakers - (not active) */
1374
+ readonly QUA: 39;
1375
+ /** Quebec Nordiques - (not active) */
1376
+ readonly QUE: 32;
1377
+ /** Ottawa Senators (original franchise) - (not active) */
1378
+ readonly SEN: 36;
1379
+ /** St. Louis Eagles - (not active) */
1380
+ readonly SLE: 45;
1381
+ /** Toronto Hockey Club (aka Toronto Arenas) - (not active) */
1382
+ readonly TAN: 57;
1383
+ /** Toronto St. Patricks - (not active) */
1384
+ readonly TSP: 58;
1385
+ /** Winnipeg Jets (original franchise) - (not active) */
1386
+ readonly WIN: 33;
1387
+ };
1388
+ declare const InactiveTeamsReverseEnum: Record<(typeof InactiveTeamsEnum)[keyof typeof InactiveTeamsEnum], keyof typeof InactiveTeamsEnum>;
1389
+ /**
1390
+ * All valid NHL seasons in yyyyYYYY format.
1391
+ */
1392
+ declare const SeasonsArray: readonly [19171918, 19181919, 19191920, 19201921, 19211922, 19221923, 19231924, 19241925, 19251926, 19261927, 19271928, 19281929, 19291930, 19301931, 19311932, 19321933, 19331934, 19341935, 19351936, 19361937, 19371938, 19381939, 19391940, 19401941, 19411942, 19421943, 19431944, 19441945, 19451946, 19461947, 19471948, 19481949, 19491950, 19501951, 19511952, 19521953, 19531954, 19541955, 19551956, 19561957, 19571958, 19581959, 19591960, 19601961, 19611962, 19621963, 19631964, 19641965, 19651966, 19661967, 19671968, 19681969, 19691970, 19701971, 19711972, 19721973, 19731974, 19741975, 19751976, 19761977, 19771978, 19781979, 19791980, 19801981, 19811982, 19821983, 19831984, 19841985, 19851986, 19861987, 19871988, 19881989, 19891990, 19901991, 19911992, 19921993, 19931994, 19941995, 19951996, 19961997, 19971998, 19981999, 19992000, 20002001, 20012002, 20022003, 20032004, 20052006, 20062007, 20072008, 20082009, 20092010, 20102011, 20112012, 20122013, 20132014, 20142015, 20152016, 20162017, 20172018, 20182019, 20192020, 20202021, 20212022, 20222023, 20232024, 20242025, 20252026];
1393
+ /**
1394
+ * All valid NHL playoff series letters.
1395
+ */
1396
+ declare const SeriesLetterEnum: {
1397
+ /** Atlantic Division Round 1: D1 vs WC# */
1398
+ readonly A: "A";
1399
+ /** Atlantic Division Round 1: D2 vs D3 */
1400
+ readonly B: "B";
1401
+ /** Metropolitan Division Round 1: D1 vs WC# */
1402
+ readonly C: "C";
1403
+ /** Metropolitan Division Round 1: D2 vs D3 */
1404
+ readonly D: "D";
1405
+ /** Central Division Round 1: D1 vs WC# */
1406
+ readonly E: "E";
1407
+ /** Central Division Round 1: D2 vs D3 */
1408
+ readonly F: "F";
1409
+ /** Pacific Division Round 1: D1 vs WC# */
1410
+ readonly G: "G";
1411
+ /** Pacific Division Round 1: D2 vs D3 */
1412
+ readonly H: "H";
1413
+ /** Atlantic Division Round 2: Aw vs Bw */
1414
+ readonly I: "I";
1415
+ /** Metropolitan Division Round 2: Cw vs Dw */
1416
+ readonly J: "J";
1417
+ /** Central Division Round 2: Ew vs Fw */
1418
+ readonly K: "K";
1419
+ /** Pacific Division Round 2: Gw vs Hw */
1420
+ readonly L: "L";
1421
+ /** Eastern Conference Finals */
1422
+ readonly M: "M";
1423
+ /** Western Conference Finals*/
1424
+ readonly N: "N";
1425
+ /** Stanley Cup Finals */
1426
+ readonly O: "O";
1427
+ };
1428
+ /**
1429
+ * All valid NHL playoff series letters grouped by round.
1430
+ */
1431
+ declare const SeriesLetterByRound: {
1432
+ R1: string[];
1433
+ R2: string[];
1434
+ CF: string[];
1435
+ SCF: string[];
1436
+ };
1437
+ /**
1438
+ * All valid NHL playoff series letters mapped to human-readable names.
1439
+ */
1440
+ declare const PlayoffSeriesEnum: {
1441
+ Atlantic_R1_D1_vs_WC: string;
1442
+ Atlantic_R1_D2_vs_D3: string;
1443
+ Metropolitan_R1_D1_vs_WC: string;
1444
+ Metropolitan_R1_D2_vs_D3: string;
1445
+ Central_R1_D1_vs_WC: string;
1446
+ Central_R1_D2_vs_D3: string;
1447
+ Pacific_R1_D1_vs_WC: string;
1448
+ Pacific_R1_D2_vs_D3: string;
1449
+ Atlantic_R2_Aw_vs_Bw: string;
1450
+ Metropolitan_R2_Cw_vs_Dw: string;
1451
+ Central_R2_Ew_vs_Fw: string;
1452
+ Pacific_R2_Gw_vs_Hw: string;
1453
+ Eastern_Conference_Finals: string;
1454
+ Western_Conference_Finals: string;
1455
+ Stanley_Cup_Finals: string;
1456
+ };
1457
+ /**
1458
+ * All valid NHL game states.
1459
+ */
1460
+ declare const GameStateEnum: {
1461
+ /** Future */
1462
+ readonly FUT: "FUT";
1463
+ /** Live */
1464
+ readonly LIV: "LIV";
1465
+ /** Finished */
1466
+ readonly FIN: "FIN";
1467
+ };
1468
+ /**
1469
+ * All valid NHL period types.
1470
+ */
1471
+ declare const PeriodTypeEnum: {
1472
+ /** Regulation */
1473
+ readonly REG: "REG";
1474
+ /** Overtime */
1475
+ readonly OT: "OT";
1476
+ /** Shootout */
1477
+ readonly SO: "SO";
1478
+ };
1479
+ /**
1480
+ * All valid NHL game types.
1481
+ */
1482
+ declare const GameTypeEnum: {
1483
+ /** Pre-season */
1484
+ readonly PRE: 1;
1485
+ /** Regular season */
1486
+ readonly REG: 2;
1487
+ /** Post-season (aka playoffs) */
1488
+ readonly POST: 3;
1489
+ /** All-Star Game (unconfirmed) */
1490
+ readonly ASG: 4;
1491
+ /** International (unconfirmed) */
1492
+ readonly INTL: 19;
1493
+ };
1494
+ /** */
1495
+ declare const SEASON_RANGE: {
1496
+ START: number;
1497
+ END: number;
1498
+ };
1499
+ /** */
1500
+ declare const START_SEASON: number;
1501
+ /** */
1502
+ declare const END_SEASON: number;
1503
+ /** */
1504
+ declare const YEAR_RANGE: {
1505
+ START: number;
1506
+ END: number;
1507
+ };
1508
+ /** */
1509
+ declare const START_YEAR: number;
1510
+ /** */
1511
+ declare const END_YEAR: number;
1512
+ /** */
1513
+ declare const CURRENT: {
1514
+ SEASON: number;
1515
+ YEAR: number;
1516
+ };
1517
+ /** */
1518
+ declare const PLAYER_ID_RANGE: {
1519
+ readonly MIN: 8444000;
1520
+ readonly MAX: 8489999;
1521
+ };
1522
+ /** */
1523
+ declare const TEAM_ID_RANGE: {
1524
+ readonly MIN: 1;
1525
+ readonly MAX: 59;
1526
+ };
1527
+
1528
+ declare const nhl_CURRENT: typeof CURRENT;
1529
+ declare const nhl_END_SEASON: typeof END_SEASON;
1530
+ declare const nhl_END_YEAR: typeof END_YEAR;
1531
+ declare const nhl_GameStateEnum: typeof GameStateEnum;
1532
+ declare const nhl_GameTypeEnum: typeof GameTypeEnum;
1533
+ declare const nhl_InactiveTeamsEnum: typeof InactiveTeamsEnum;
1534
+ declare const nhl_InactiveTeamsReverseEnum: typeof InactiveTeamsReverseEnum;
1535
+ declare const nhl_PLAYER_ID_RANGE: typeof PLAYER_ID_RANGE;
1536
+ declare const nhl_PeriodTypeEnum: typeof PeriodTypeEnum;
1537
+ declare const nhl_PlayoffSeriesEnum: typeof PlayoffSeriesEnum;
1538
+ declare const nhl_SEASON_RANGE: typeof SEASON_RANGE;
1539
+ declare const nhl_START_SEASON: typeof START_SEASON;
1540
+ declare const nhl_START_YEAR: typeof START_YEAR;
1541
+ declare const nhl_SeasonsArray: typeof SeasonsArray;
1542
+ declare const nhl_SeriesLetterByRound: typeof SeriesLetterByRound;
1543
+ declare const nhl_SeriesLetterEnum: typeof SeriesLetterEnum;
1544
+ declare const nhl_TEAM_ID_RANGE: typeof TEAM_ID_RANGE;
1545
+ declare const nhl_TeamsEnum: typeof TeamsEnum;
1546
+ declare const nhl_TeamsReverseEnum: typeof TeamsReverseEnum;
1547
+ declare const nhl_YEAR_RANGE: typeof YEAR_RANGE;
1548
+ declare namespace nhl {
1549
+ export { nhl_CURRENT as CURRENT, nhl_END_SEASON as END_SEASON, nhl_END_YEAR as END_YEAR, nhl_GameStateEnum as GameStateEnum, nhl_GameTypeEnum as GameTypeEnum, nhl_InactiveTeamsEnum as InactiveTeamsEnum, nhl_InactiveTeamsReverseEnum as InactiveTeamsReverseEnum, nhl_PLAYER_ID_RANGE as PLAYER_ID_RANGE, nhl_PeriodTypeEnum as PeriodTypeEnum, nhl_PlayoffSeriesEnum as PlayoffSeriesEnum, nhl_SEASON_RANGE as SEASON_RANGE, nhl_START_SEASON as START_SEASON, nhl_START_YEAR as START_YEAR, nhl_SeasonsArray as SeasonsArray, nhl_SeriesLetterByRound as SeriesLetterByRound, nhl_SeriesLetterEnum as SeriesLetterEnum, nhl_TEAM_ID_RANGE as TEAM_ID_RANGE, nhl_TeamsEnum as TeamsEnum, nhl_TeamsReverseEnum as TeamsReverseEnum, nhl_YEAR_RANGE as YEAR_RANGE };
1550
+ }
1551
+
1552
+ declare const EDGE: {
1553
+ SaveLocationCategoryEnum: {
1554
+ readonly 'SV%': "save-pctg";
1555
+ readonly SV: "saves";
1556
+ readonly SA: "shots-against";
1557
+ readonly GA: "goals-against";
1558
+ };
1559
+ ShotLocationSortEnum: {
1560
+ readonly ALL: "all";
1561
+ readonly HIGH: "high";
1562
+ readonly MID: "mid";
1563
+ readonly LONG: "long";
1564
+ };
1565
+ SaveLocationSortEnum: {
1566
+ readonly ALL: "all";
1567
+ readonly HIGH: "high";
1568
+ readonly MID: "mid";
1569
+ readonly LONG: "long";
1570
+ };
1571
+ SavePercentage5v5SortEnum: {
1572
+ readonly '5v5-SV%': "save-pctg";
1573
+ readonly '5v5-SV%-Close': "save-pctg-close";
1574
+ readonly '5v5-SA': "shots";
1575
+ readonly '5v5-SA/60': "shots-per-60";
1576
+ };
1577
+ SavePercentageSortEnum: {
1578
+ readonly GAMES: "games";
1579
+ readonly PCTG: "pctg";
1580
+ };
1581
+ PositionFilterEnum: {
1582
+ readonly ALL: "all";
1583
+ readonly FWD: "forwards";
1584
+ readonly DEF: "defense";
1585
+ };
1586
+ SkatersStrengthEnum: {
1587
+ readonly ALL: "all";
1588
+ readonly ES: "es";
1589
+ readonly PP: "pp";
1590
+ readonly PK: "pk";
1591
+ };
1592
+ ShotSpeedSortEnum: {
1593
+ readonly MAX: "max";
1594
+ readonly 'OVER-100': "over-100";
1595
+ readonly '90-99': "90-99";
1596
+ readonly '80-89': "80-89";
1597
+ readonly '70-79': "70-79";
1598
+ };
1599
+ SkatingSpeedSortEnum: {
1600
+ readonly TOP: "max";
1601
+ readonly 'OVER-22': "over-22";
1602
+ readonly '20-22': "20-22";
1603
+ readonly '18-20': "18-20";
1604
+ };
1605
+ SkatingDistanceSortEnum: {
1606
+ TOTAL: string;
1607
+ 'PER-60': string;
1608
+ 'MAX-PERIOD': string;
1609
+ 'MAX-GAME': string;
1610
+ };
1611
+ ShotLocationCategoryEnum: {
1612
+ readonly SOG: "sog";
1613
+ readonly G: "goals";
1614
+ readonly 'SH%': "shooting-pctg";
1615
+ };
1616
+ ZoneTimeSortEnum: {
1617
+ readonly OZ: "offensive";
1618
+ readonly DZ: "defensive";
1619
+ readonly NZ: "neutral";
1620
+ };
1621
+ };
1622
+
1623
+ export { type AmateurLeague, type BirthCountry, type Broadcast, type Category, type CountryCode$2 as CountryCode, type DraftPicks, type DraftRankings, type DraftRound, type DraftTracker, EDGE, type EventId, type GameId, type GameMeta, type GameNumber, type GameState$2 as GameState, type GameType, type GamecenterBoxscore, type GamecenterLanding, type GamecenterPlayByPlay, type GamecenterReports, type GoalieStatsLeaders, type Key, type LeagueSchedule, type LocationInfo, nhl as NHL, type NHLDate, type NHLMonth, type NHLScore, type NHLScoreboard, type NHLSeasons, type NHLStandings, type NHLStandingsSeason, type Name$1 as Name, type NetworkTVSchedule, type PPTReplayEvent, type PPTReplayGoal, type PartnerGameInfo, type PlayerGameLog, type PlayerId, type PlayerLanding, type PlayerSearchResult, type PlayerSpotlight, type PlayoffBracket, type PlayoffRound, type PlayoffSeries, type PlayoffSeriesMeta, type PlayoffSeriesSchedule, type PositionFilter, type PostalCodeInfo, type Ranking, type SaveLocationCategory, type SaveLocationSort, type SavePercentage5v5Sort, type SavePercentageSort, type ScheduleCalendar, type Season, type SeasonDetails, type SeriesLetter, type ShotLocationCategory, type ShotLocationSort, type ShotSpeedSort, type SkaterStatsLeaders, type SkatersStrength, type SkatingDistanceSort, type SkatingSpeedSort, type StreamingName, type TeamAbbrev, type TeamId, type TeamProspects, type TeamRoster, type TeamRosterSeasons, type TeamScheduleMonth, type TeamScheduleSeason, type TeamScheduleWeek, type TeamStats, type TeamStatsSeason, type WSCGameStory, type WSCPlayByPlay, type WhereToWatch, type Year, type ZoneTimeSort, index as gc };