nhle-api 0.5.1 → 0.5.3
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/CHANGELOG.md +59 -9
- package/lib/index.cjs +461 -487
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +2483 -514
- package/lib/index.d.ts +2483 -514
- package/lib/index.js +461 -487
- package/lib/index.js.map +1 -1
- package/package.json +6 -7
package/lib/index.d.ts
CHANGED
|
@@ -200,24 +200,22 @@ declare const ZoneTimeSortEnum: {
|
|
|
200
200
|
};
|
|
201
201
|
|
|
202
202
|
declare const Year$1: arktype.BaseType<number | ((In: string) => arktype_internal_attributes_ts.To<number>), {}>;
|
|
203
|
+
declare const NHLMonth$1: arktype_internal_variants_object_ts.ObjectType<(In: string | Date) => arktype.Out<string>, {}>;
|
|
204
|
+
declare const NHLDate$1: arktype_internal_variants_object_ts.ObjectType<(In: string | Date) => arktype.Out<string>, {}>;
|
|
203
205
|
declare const Season$1: arktype_internal_variants_object_ts.ObjectType<(In: string | number) => arktype.Out<string>, {}>;
|
|
204
206
|
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 |
|
|
207
|
+
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 | 47 | 53 | 11 | 51 | 56 | 49 | 35 | 40 | 50 | 37 | 34 | 48 | 43 | 31 | 41 | 44 | 46 | 27 | 38 | 42 | 39 | 32 | 36 | 45 | 57 | 58 | 33, {}>;
|
|
208
|
+
declare const GameType$1: arktype.BaseType<1 | 2 | 3 | 4 | 19 | ((In: "REG" | "PRE" | "POST" | "ASG" | "INTL") => arktype.Out<1 | 2 | 3 | 4 | 19>), {}>;
|
|
207
209
|
declare const GameNumber$1: arktype_internal_variants_object_ts.ObjectType<(In: string | number) => arktype.Out<string>, {}>;
|
|
208
210
|
declare const DraftRound$1: arktype_internal_variants_object_ts.ObjectType<(In: string | number) => arktype.Out<string>, {}>;
|
|
209
211
|
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
212
|
declare const GameId$1: arktype.BaseType<number | ((In: string) => arktype_internal_attributes_ts.To<number>), {}>;
|
|
213
|
-
declare const SeriesLetter$
|
|
214
|
-
declare const GameState$
|
|
215
|
-
declare const CountryCode$
|
|
213
|
+
declare const SeriesLetter$2: 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$2: arktype_internal_variants_string_ts.StringType<"FUT" | "LIV" | "FIN", {}>;
|
|
215
|
+
declare const CountryCode$2: arktype_internal_variants_object_ts.ObjectType<(In: string) => arktype.Out<string>, {}>;
|
|
216
|
+
declare const PostalCode$1: arktype_internal_variants_string_ts.StringType<string, {}>;
|
|
216
217
|
declare const PlayerId$1: arktype_internal_variants_object_ts.ObjectType<(In: string | number) => arktype.Out<string>, {}>;
|
|
217
218
|
|
|
218
|
-
/**
|
|
219
|
-
* Type definitions for common parameters
|
|
220
|
-
*/
|
|
221
219
|
/**
|
|
222
220
|
* Represents a valid NHL year (e.g., 2023, 2024, ...)
|
|
223
221
|
*/
|
|
@@ -242,11 +240,11 @@ type GameId = typeof GameId$1.inferIn;
|
|
|
242
240
|
/**
|
|
243
241
|
* Represents a valid NHL team abbreviation (e.g., NYR, MTL, ...)
|
|
244
242
|
*/
|
|
245
|
-
type TeamAbbrev = typeof TeamAbbrev$1.inferIn;
|
|
243
|
+
type TeamAbbrev = typeof TeamAbbrev$1.inferIn | (string & {});
|
|
246
244
|
/**
|
|
247
245
|
* Represents a valid NHL team ID
|
|
248
246
|
*/
|
|
249
|
-
type TeamId = typeof TeamId$1.inferIn;
|
|
247
|
+
type TeamId = typeof TeamId$1.inferIn | (number & {});
|
|
250
248
|
/**
|
|
251
249
|
* Represents a valid NHL game number
|
|
252
250
|
*/
|
|
@@ -254,7 +252,7 @@ type GameNumber = typeof GameNumber$1.inferIn;
|
|
|
254
252
|
/**
|
|
255
253
|
* Represents a valid NHL game state
|
|
256
254
|
*/
|
|
257
|
-
type GameState$
|
|
255
|
+
type GameState$1 = typeof GameState$2.inferIn;
|
|
258
256
|
/**
|
|
259
257
|
* Represents a valid draft round (1-7)
|
|
260
258
|
*/
|
|
@@ -274,7 +272,7 @@ type NHLMonth = typeof NHLMonth$1.inferIn;
|
|
|
274
272
|
/**
|
|
275
273
|
* Represents a valid NHL series letter (A-O)
|
|
276
274
|
*/
|
|
277
|
-
type SeriesLetter = typeof SeriesLetter$
|
|
275
|
+
type SeriesLetter$1 = typeof SeriesLetter$2.inferIn;
|
|
278
276
|
/**
|
|
279
277
|
* Represents the playoff rounds in an NHL season (1-4)
|
|
280
278
|
*/
|
|
@@ -282,7 +280,11 @@ type PlayoffRound = 1 | 2 | 3 | 4;
|
|
|
282
280
|
/**
|
|
283
281
|
* Represents a valid country code (e.g., CAN, USA, SWE, ...)
|
|
284
282
|
*/
|
|
285
|
-
type CountryCode$
|
|
283
|
+
type CountryCode$1 = typeof CountryCode$2.inferIn;
|
|
284
|
+
/**
|
|
285
|
+
* Represents a valid country code (e.g., CAN, USA, SWE, ...)
|
|
286
|
+
*/
|
|
287
|
+
type PostalCode = typeof PostalCode$1.inferIn;
|
|
286
288
|
/**
|
|
287
289
|
* Represents a valid NHL player ID
|
|
288
290
|
*/
|
|
@@ -318,50 +320,189 @@ type ZoneTimeSort = keyof typeof ZoneTimeSortEnum;
|
|
|
318
320
|
/**
|
|
319
321
|
* Common types used in Gamecenter API responses
|
|
320
322
|
*/
|
|
321
|
-
/**
|
|
322
|
-
type GameState
|
|
323
|
-
/**
|
|
324
|
-
type
|
|
325
|
-
/**
|
|
326
|
-
type
|
|
327
|
-
/**
|
|
328
|
-
type
|
|
329
|
-
/**
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
323
|
+
/** The current state of the game. */
|
|
324
|
+
type GameState = 'OFF' | 'FUT' | 'LIVE' | 'PRE' | 'CRIT' | 'FINAL';
|
|
325
|
+
/** The current state of the game. */
|
|
326
|
+
type GameScheduleState = 'OK' | 'TBD' | 'CNCL' | (string & {});
|
|
327
|
+
/** The type of period in the game. */
|
|
328
|
+
type PeriodType = 'REG' | 'OT' | 'SO';
|
|
329
|
+
/** Abbreviated day of the week. (MON = Monday, TUE = Tuesday ...) */
|
|
330
|
+
type DayAbbrev = 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
|
|
331
|
+
/** The type of penalty. (MIN = Minor, BEN = Bench, MAJ = Major ...) */
|
|
332
|
+
type PenaltyTypeCode = 'MIN' | 'BEN' | 'MAJ' | (string & {});
|
|
333
|
+
/** The market for this broadcast. (H = Home, A = Away, N = National, S = Satellite Radio) */
|
|
334
|
+
type Market = 'H' | 'A' | 'N' | 'S';
|
|
335
|
+
/** The country code for this broadcast. (CA = Canada, US = United States) */
|
|
336
|
+
type CountryCode = 'CA' | 'US';
|
|
337
|
+
/** The position code for a player. (C = Center, L[W] = Left Wing, R[W] = Right Wing, D = Defenseman, G = Goalie) */
|
|
338
|
+
type PositionCode = 'C' | 'LW' | 'L' | 'RW' | 'R' | 'D' | 'G';
|
|
339
|
+
/** Player's shooting/catching handedness. (L = Left, R = Right) */
|
|
335
340
|
type ShootsCatches = 'L' | 'R';
|
|
336
|
-
|
|
337
|
-
|
|
341
|
+
type HexColorCode = `#${string}`;
|
|
342
|
+
type UTCOffset = `+${number}:${number}` | `-${number}:${number}`;
|
|
343
|
+
type GoalModifier = 'none' | 'empty-net' | 'awarded-empty-net';
|
|
344
|
+
type DefendingSide = 'left' | 'right';
|
|
345
|
+
type Strength = 'ev' | 'pp' | 'sh';
|
|
346
|
+
type ZoneCode = 'N' | 'D' | 'O';
|
|
347
|
+
type ShotType = 'backhand' | 'bat' | 'between-legs' | 'deflected' | 'poke' | 'slap' | 'snap' | 'tip-in' | 'wrap-around' | 'wrist' | (string & {});
|
|
348
|
+
type PenaltyDescKey = 'tripping' | 'hooking' | 'interference' | 'high-sticking' | 'roughing' | 'unsportsmanlike-conduct' | 'slashing' | 'delaying-game-puck-over-glass' | 'holding' | 'holding-the-stick' | 'too-many-men-on-the-ice' | 'fighting' | 'minor' | 'cross-checking' | (string & {});
|
|
349
|
+
type Reason = 'blocked' | 'failed-bank-attempt' | 'wide-right' | 'goalie-stopped-after-sog' | 'offside' | 'teammate-blocked' | 'icing' | 'puck-in-netting' | 'wide-left' | 'high-and-wide-left' | 'puck-frozen' | 'above-crossbar' | 'tv-timeout' | 'hand-pass' | 'skater-puck-frozen' | 'high-stick' | 'high-and-wide-right' | 'hit-crossbar' | 'puck-in-benches' | 'hit-right-post' | 'short' | 'referee-or-linesman' | 'puck-in-crowd' | 'hit-left-post' | 'player-equipment' | 'net-dislodged-defensive-skater' | 'home-timeout' | 'chlg-hm-goal-interference' | 'video-review' | 'chlg-league-missed-stoppage' | 'visitor-timeout' | 'official-injury' | (string & {});
|
|
350
|
+
type EventTypeDescKey = 'period-start' | 'faceoff' | 'blocked-shot' | 'goal' | 'hit' | 'giveaway' | 'missed-shot' | 'shot-on-goal' | 'stoppage' | 'takeaway' | 'penalty' | 'period-end' | 'delayed-penalty' | 'game-end' | (string & {});
|
|
351
|
+
/** An object containing a default string an optional localized strings. */
|
|
352
|
+
interface LocalizedText {
|
|
353
|
+
/** Default */
|
|
338
354
|
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
355
|
/** French */
|
|
343
356
|
fr?: string;
|
|
344
357
|
/** Czech */
|
|
345
358
|
cs?: string;
|
|
359
|
+
/** German */
|
|
360
|
+
de?: string;
|
|
361
|
+
/** Spanish */
|
|
362
|
+
es?: string;
|
|
346
363
|
/** Finnish */
|
|
347
364
|
fi?: string;
|
|
348
365
|
/** Slovak */
|
|
349
366
|
sk?: string;
|
|
350
367
|
/** Swedish */
|
|
351
368
|
sv?: string;
|
|
352
|
-
/** German */
|
|
353
|
-
de?: string;
|
|
354
|
-
/** Spanish */
|
|
355
|
-
es?: string;
|
|
356
|
-
[key: string]: string | undefined;
|
|
357
369
|
}
|
|
370
|
+
interface TvBroadcast {
|
|
371
|
+
id: number;
|
|
372
|
+
market: Market;
|
|
373
|
+
countryCode: CountryCode;
|
|
374
|
+
network: string;
|
|
375
|
+
sequenceNumber: number;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
interface GamecenterBoxscore {
|
|
379
|
+
id: number;
|
|
380
|
+
season: number;
|
|
381
|
+
gameType: number;
|
|
382
|
+
limitedScoring: boolean;
|
|
383
|
+
gameDate: string;
|
|
384
|
+
venue: LocalizedText;
|
|
385
|
+
venueLocation: LocalizedText;
|
|
386
|
+
startTimeUTC: string;
|
|
387
|
+
easternUTCOffset: UTCOffset;
|
|
388
|
+
venueUTCOffset: UTCOffset;
|
|
389
|
+
tvBroadcasts: TvBroadcast[];
|
|
390
|
+
gameState: GameState;
|
|
391
|
+
gameScheduleState: GameScheduleState;
|
|
392
|
+
periodDescriptor?: PeriodDescriptor$9;
|
|
393
|
+
regPeriods: number;
|
|
394
|
+
awayTeam: Team$a;
|
|
395
|
+
homeTeam: Team$a;
|
|
396
|
+
clock: Clock$4;
|
|
397
|
+
playerByGameStats?: PlayerByGameStats;
|
|
398
|
+
summary?: Summary$3;
|
|
399
|
+
gameOutcome?: GameOutcome$5;
|
|
400
|
+
situation?: Situation$2;
|
|
401
|
+
}
|
|
402
|
+
interface Team$a {
|
|
403
|
+
id: number;
|
|
404
|
+
commonName: LocalizedText;
|
|
405
|
+
abbrev: TeamAbbrev;
|
|
406
|
+
score?: number;
|
|
407
|
+
sog?: number;
|
|
408
|
+
logo: string;
|
|
409
|
+
darkLogo: string;
|
|
410
|
+
placeName: LocalizedText;
|
|
411
|
+
placeNameWithPreposition: LocalizedText;
|
|
412
|
+
radioLink?: string;
|
|
413
|
+
}
|
|
414
|
+
interface Clock$4 {
|
|
415
|
+
timeRemaining: string;
|
|
416
|
+
secondsRemaining: number;
|
|
417
|
+
running: boolean;
|
|
418
|
+
inIntermission: boolean;
|
|
419
|
+
}
|
|
420
|
+
interface GameOutcome$5 {
|
|
421
|
+
lastPeriodType: string;
|
|
422
|
+
otPeriods?: number;
|
|
423
|
+
}
|
|
424
|
+
interface PeriodDescriptor$9 {
|
|
425
|
+
number: number;
|
|
426
|
+
periodType: string;
|
|
427
|
+
maxRegulationPeriods: number;
|
|
428
|
+
}
|
|
429
|
+
interface PlayerByGameStats {
|
|
430
|
+
awayTeam: PlayerByGameStatsTeam;
|
|
431
|
+
homeTeam: PlayerByGameStatsTeam;
|
|
432
|
+
}
|
|
433
|
+
interface PlayerByGameStatsTeam {
|
|
434
|
+
forwards: Forward$2[];
|
|
435
|
+
defense: Defense[];
|
|
436
|
+
goalies: Goalie$4[];
|
|
437
|
+
}
|
|
438
|
+
interface BasePlayer {
|
|
439
|
+
playerId: number;
|
|
440
|
+
sweaterNumber: number;
|
|
441
|
+
name: LocalizedText;
|
|
442
|
+
position: PositionCode;
|
|
443
|
+
}
|
|
444
|
+
interface Skater$2 extends BasePlayer {
|
|
445
|
+
position: Exclude<PositionCode, 'G'>;
|
|
446
|
+
goals: number;
|
|
447
|
+
assists: number;
|
|
448
|
+
points: number;
|
|
449
|
+
plusMinus: number;
|
|
450
|
+
pim: number;
|
|
451
|
+
hits: number;
|
|
452
|
+
powerPlayGoals: number;
|
|
453
|
+
sog: number;
|
|
454
|
+
faceoffWinningPctg: number;
|
|
455
|
+
toi: string;
|
|
456
|
+
blockedShots: number;
|
|
457
|
+
shifts: number;
|
|
458
|
+
giveaways: number;
|
|
459
|
+
takeaways: number;
|
|
460
|
+
}
|
|
461
|
+
interface Forward$2 extends Skater$2 {
|
|
462
|
+
position: Exclude<PositionCode, 'D' | 'G'>;
|
|
463
|
+
}
|
|
464
|
+
interface Defense extends Skater$2 {
|
|
465
|
+
position: 'D';
|
|
466
|
+
}
|
|
467
|
+
interface Goalie$4 extends BasePlayer {
|
|
468
|
+
position: 'G';
|
|
469
|
+
evenStrengthShotsAgainst: string;
|
|
470
|
+
powerPlayShotsAgainst: string;
|
|
471
|
+
shorthandedShotsAgainst: string;
|
|
472
|
+
saveShotsAgainst: string;
|
|
473
|
+
savePctg?: number;
|
|
474
|
+
evenStrengthGoalsAgainst: number;
|
|
475
|
+
powerPlayGoalsAgainst: number;
|
|
476
|
+
shorthandedGoalsAgainst: number;
|
|
477
|
+
pim?: number;
|
|
478
|
+
goalsAgainst: number;
|
|
479
|
+
toi: string;
|
|
480
|
+
starter?: boolean;
|
|
481
|
+
decision?: Decision$1;
|
|
482
|
+
shotsAgainst: number;
|
|
483
|
+
saves: number;
|
|
484
|
+
}
|
|
485
|
+
type Decision$1 = 'W' | 'L' | 'O';
|
|
486
|
+
interface Situation$2 {
|
|
487
|
+
homeTeam: SituationDetails;
|
|
488
|
+
awayTeam: SituationDetails;
|
|
489
|
+
situationCode: string;
|
|
490
|
+
timeRemaining: string;
|
|
491
|
+
secondsRemaining: number;
|
|
492
|
+
}
|
|
493
|
+
interface SituationDetails {
|
|
494
|
+
abbrev: string;
|
|
495
|
+
situationDescriptions?: string[];
|
|
496
|
+
strength: number;
|
|
497
|
+
}
|
|
498
|
+
type Summary$3 = Record<string, unknown>;
|
|
358
499
|
|
|
359
500
|
interface DraftPicks {
|
|
360
501
|
broadcastStartTimeUTC: string;
|
|
361
502
|
draftYear: number;
|
|
362
503
|
draftYears: number[];
|
|
363
504
|
selectableRounds: number[];
|
|
364
|
-
state:
|
|
505
|
+
state: string;
|
|
365
506
|
picks: Pick$1[];
|
|
366
507
|
}
|
|
367
508
|
interface Pick$1 {
|
|
@@ -370,42 +511,38 @@ interface Pick$1 {
|
|
|
370
511
|
overallPick: number;
|
|
371
512
|
teamId: number;
|
|
372
513
|
teamAbbrev: TeamAbbrev;
|
|
373
|
-
teamName:
|
|
374
|
-
teamCommonName:
|
|
375
|
-
teamPlaceNameWithPreposition:
|
|
376
|
-
displayAbbrev:
|
|
514
|
+
teamName: LocalizedText;
|
|
515
|
+
teamCommonName: LocalizedText;
|
|
516
|
+
teamPlaceNameWithPreposition: LocalizedText;
|
|
517
|
+
displayAbbrev: LocalizedText;
|
|
377
518
|
teamLogoLight: string;
|
|
378
519
|
teamLogoDark: string;
|
|
379
520
|
teamPickHistory: string;
|
|
380
|
-
firstName:
|
|
381
|
-
lastName:
|
|
521
|
+
firstName: LocalizedText;
|
|
522
|
+
lastName: LocalizedText;
|
|
382
523
|
positionCode: PositionCode;
|
|
383
|
-
countryCode:
|
|
524
|
+
countryCode: string;
|
|
384
525
|
height: number;
|
|
385
526
|
weight: number;
|
|
386
|
-
amateurLeague:
|
|
527
|
+
amateurLeague: string;
|
|
387
528
|
amateurClubName: string;
|
|
388
529
|
}
|
|
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
530
|
|
|
394
531
|
interface DraftRankings {
|
|
395
532
|
draftYear: number;
|
|
396
533
|
categoryId: number;
|
|
397
534
|
categoryKey: Key;
|
|
398
535
|
draftYears: number[];
|
|
399
|
-
categories: Category[];
|
|
536
|
+
categories: Category$3[];
|
|
400
537
|
rankings: Ranking[];
|
|
401
538
|
}
|
|
402
|
-
interface Category {
|
|
539
|
+
interface Category$3 {
|
|
403
540
|
id: number;
|
|
404
|
-
name: Name
|
|
541
|
+
name: Name;
|
|
405
542
|
consumerKey: Key;
|
|
406
543
|
}
|
|
407
544
|
type Key = 'north-american-skater' | 'international-skater' | 'north-american-goalie' | 'international-goalie';
|
|
408
|
-
type Name
|
|
545
|
+
type Name = 'North American Skater' | 'International Skater' | 'North American Goalie' | 'International Goalie';
|
|
409
546
|
interface Ranking {
|
|
410
547
|
lastName: string;
|
|
411
548
|
firstName: string;
|
|
@@ -414,26 +551,24 @@ interface Ranking {
|
|
|
414
551
|
heightInInches: number;
|
|
415
552
|
weightInPounds: number;
|
|
416
553
|
lastAmateurClub?: string;
|
|
417
|
-
lastAmateurLeague?:
|
|
554
|
+
lastAmateurLeague?: string;
|
|
418
555
|
birthDate: Date;
|
|
419
556
|
birthCity: string;
|
|
420
|
-
birthCountry:
|
|
557
|
+
birthCountry: string;
|
|
421
558
|
midtermRank?: number;
|
|
422
559
|
finalRank?: number;
|
|
423
560
|
birthStateProvince?: string;
|
|
424
561
|
}
|
|
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
562
|
|
|
428
563
|
interface DraftTracker {
|
|
429
564
|
currentDraftDate: Date;
|
|
430
565
|
broadcastStartTimeUTC: Date;
|
|
431
|
-
tvBroadcasts: TvBroadcast
|
|
566
|
+
tvBroadcasts: TvBroadcast[];
|
|
432
567
|
logoUrl: string;
|
|
433
568
|
logoFrUrl: string;
|
|
434
569
|
uiAccentColor: HexColorCode;
|
|
435
570
|
round: number;
|
|
436
|
-
state:
|
|
571
|
+
state: string;
|
|
437
572
|
picks: Pick[];
|
|
438
573
|
}
|
|
439
574
|
interface Pick {
|
|
@@ -441,188 +576,1423 @@ interface Pick {
|
|
|
441
576
|
overallPick: number;
|
|
442
577
|
teamId: number;
|
|
443
578
|
teamAbbrev: TeamAbbrev;
|
|
444
|
-
teamFullName:
|
|
445
|
-
teamCommonName:
|
|
446
|
-
teamPlaceNameWithPreposition:
|
|
579
|
+
teamFullName: LocalizedText;
|
|
580
|
+
teamCommonName: LocalizedText;
|
|
581
|
+
teamPlaceNameWithPreposition: LocalizedText;
|
|
447
582
|
teamLogoLight: string;
|
|
448
583
|
teamLogoDark: string;
|
|
449
|
-
state:
|
|
450
|
-
lastName:
|
|
451
|
-
firstName:
|
|
584
|
+
state: string;
|
|
585
|
+
lastName: LocalizedText;
|
|
586
|
+
firstName: LocalizedText;
|
|
452
587
|
positionCode: PositionCode;
|
|
453
588
|
}
|
|
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
589
|
|
|
500
|
-
interface
|
|
590
|
+
interface GamecenterLanding {
|
|
501
591
|
id: number;
|
|
502
592
|
season: number;
|
|
503
593
|
gameType: number;
|
|
504
594
|
limitedScoring: boolean;
|
|
505
|
-
gameDate:
|
|
506
|
-
venue:
|
|
507
|
-
venueLocation:
|
|
508
|
-
startTimeUTC:
|
|
509
|
-
easternUTCOffset:
|
|
510
|
-
venueUTCOffset:
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
595
|
+
gameDate: string;
|
|
596
|
+
venue: LocalizedText;
|
|
597
|
+
venueLocation: LocalizedText;
|
|
598
|
+
startTimeUTC: string;
|
|
599
|
+
easternUTCOffset: UTCOffset;
|
|
600
|
+
venueUTCOffset: UTCOffset;
|
|
601
|
+
venueTimezone: string;
|
|
602
|
+
periodDescriptor?: PeriodDescriptor$8;
|
|
603
|
+
tvBroadcasts: TvBroadcast[];
|
|
604
|
+
gameState: GameState;
|
|
605
|
+
gameScheduleState: GameScheduleState;
|
|
606
|
+
awayTeam: LandingTeam;
|
|
607
|
+
homeTeam: LandingTeam;
|
|
608
|
+
shootoutInUse: boolean;
|
|
609
|
+
maxPeriods: number;
|
|
515
610
|
regPeriods: number;
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
611
|
+
otInUse: boolean;
|
|
612
|
+
tiesInUse: boolean;
|
|
613
|
+
summary?: Summary$2;
|
|
614
|
+
clock?: Clock$3;
|
|
615
|
+
ticketsLink?: string;
|
|
616
|
+
ticketsLinkFr?: string;
|
|
617
|
+
matchup?: Matchup;
|
|
618
|
+
situation?: Situation$1;
|
|
523
619
|
}
|
|
524
|
-
interface
|
|
620
|
+
interface LandingTeam {
|
|
525
621
|
id: number;
|
|
526
|
-
commonName:
|
|
527
|
-
abbrev:
|
|
622
|
+
commonName: LocalizedText;
|
|
623
|
+
abbrev: TeamAbbrev;
|
|
624
|
+
placeName: LocalizedText;
|
|
625
|
+
placeNameWithPreposition: LocalizedText;
|
|
528
626
|
score?: number;
|
|
529
627
|
sog?: number;
|
|
530
628
|
logo: string;
|
|
531
629
|
darkLogo: string;
|
|
532
|
-
|
|
533
|
-
placeNameWithPreposition: DefaultWithTranslations;
|
|
630
|
+
record?: string;
|
|
534
631
|
radioLink?: string;
|
|
535
632
|
}
|
|
536
|
-
interface Clock {
|
|
633
|
+
interface Clock$3 {
|
|
537
634
|
timeRemaining: string;
|
|
538
635
|
secondsRemaining: number;
|
|
539
636
|
running: boolean;
|
|
540
637
|
inIntermission: boolean;
|
|
541
638
|
}
|
|
542
|
-
interface
|
|
543
|
-
|
|
639
|
+
interface Matchup {
|
|
640
|
+
season: number;
|
|
641
|
+
gameType: number;
|
|
642
|
+
skaterComparison: SkaterComparison;
|
|
643
|
+
goalieComparison: GoalieComparison$1;
|
|
644
|
+
skaterSeasonStats: SkaterSeasonStats;
|
|
645
|
+
goalieSeasonStats: GoalieSeasonStats;
|
|
544
646
|
}
|
|
545
|
-
interface
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
647
|
+
interface GoalieComparison$1 {
|
|
648
|
+
contextLabel: string;
|
|
649
|
+
contextSeason: number;
|
|
650
|
+
homeTeam: ComparisonTeamDetails;
|
|
651
|
+
awayTeam: ComparisonTeamDetails;
|
|
549
652
|
}
|
|
550
|
-
interface
|
|
551
|
-
|
|
552
|
-
|
|
653
|
+
interface ComparisonTeamDetails {
|
|
654
|
+
teamTotals: TeamTotals;
|
|
655
|
+
leaders: TeamLeader$1[];
|
|
553
656
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
657
|
+
interface TeamLeader$1 {
|
|
658
|
+
playerId: number;
|
|
659
|
+
name: LocalizedText;
|
|
660
|
+
firstName: LocalizedText;
|
|
661
|
+
lastName: LocalizedText;
|
|
662
|
+
sweaterNumber: number;
|
|
663
|
+
headshot: string;
|
|
664
|
+
positionCode: PositionCode;
|
|
665
|
+
gamesPlayed: number;
|
|
666
|
+
seasonPoints: number;
|
|
667
|
+
record: string;
|
|
668
|
+
gaa: number;
|
|
669
|
+
savePctg: number;
|
|
670
|
+
shutouts: number;
|
|
559
671
|
}
|
|
560
|
-
interface
|
|
672
|
+
interface TeamTotals {
|
|
673
|
+
record: string;
|
|
674
|
+
gaa: number;
|
|
675
|
+
savePctg: number;
|
|
676
|
+
shutouts: number;
|
|
677
|
+
gamesPlayed: number;
|
|
678
|
+
}
|
|
679
|
+
interface GoalieSeasonStats {
|
|
680
|
+
contextLabel: string;
|
|
681
|
+
contextSeason: number;
|
|
682
|
+
goalies: GoalieSeasonStatsGoalie[];
|
|
683
|
+
}
|
|
684
|
+
interface GoalieSeasonStatsGoalie {
|
|
561
685
|
playerId: number;
|
|
686
|
+
teamId: number;
|
|
562
687
|
sweaterNumber: number;
|
|
563
|
-
name:
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
688
|
+
name: LocalizedText;
|
|
689
|
+
gamesPlayed: number;
|
|
690
|
+
wins: number;
|
|
691
|
+
losses: number;
|
|
692
|
+
otLosses: number;
|
|
693
|
+
shotsAgainst: number;
|
|
694
|
+
goalsAgainst: number;
|
|
695
|
+
goalsAgainstAvg: number;
|
|
696
|
+
savePctg: number;
|
|
697
|
+
shutouts: number;
|
|
698
|
+
saves: number;
|
|
574
699
|
toi: string;
|
|
575
|
-
blockedShots: number;
|
|
576
|
-
shifts: number;
|
|
577
|
-
giveaways: number;
|
|
578
|
-
takeaways: number;
|
|
579
700
|
}
|
|
580
|
-
interface
|
|
581
|
-
|
|
701
|
+
interface SkaterComparison {
|
|
702
|
+
contextLabel: string;
|
|
703
|
+
contextSeason: number;
|
|
704
|
+
leaders: SkaterComparisonLeader[];
|
|
582
705
|
}
|
|
583
|
-
interface
|
|
584
|
-
|
|
706
|
+
interface SkaterComparisonLeader {
|
|
707
|
+
category: Category$2;
|
|
708
|
+
awayLeader: Leader$1;
|
|
709
|
+
homeLeader: Leader$1;
|
|
585
710
|
}
|
|
586
|
-
interface
|
|
711
|
+
interface Leader$1 {
|
|
587
712
|
playerId: number;
|
|
713
|
+
name: LocalizedText;
|
|
714
|
+
firstName: LocalizedText;
|
|
715
|
+
lastName: LocalizedText;
|
|
588
716
|
sweaterNumber: number;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
717
|
+
positionCode: PositionCode;
|
|
718
|
+
headshot: string;
|
|
719
|
+
value: number;
|
|
720
|
+
}
|
|
721
|
+
type Category$2 = 'points' | 'goals' | 'assists';
|
|
722
|
+
interface SkaterSeasonStats {
|
|
723
|
+
contextLabel: string;
|
|
724
|
+
contextSeason: number;
|
|
725
|
+
skaters: Skater$1[];
|
|
726
|
+
}
|
|
727
|
+
interface Skater$1 {
|
|
728
|
+
playerId: number;
|
|
729
|
+
teamId: number;
|
|
730
|
+
sweaterNumber: number;
|
|
731
|
+
name: LocalizedText;
|
|
732
|
+
position: Exclude<PositionCode, 'G'>;
|
|
733
|
+
gamesPlayed?: number;
|
|
734
|
+
goals?: number;
|
|
735
|
+
assists?: number;
|
|
736
|
+
points?: number;
|
|
737
|
+
plusMinus?: number;
|
|
599
738
|
pim?: number;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
739
|
+
avgPoints?: number;
|
|
740
|
+
avgTimeOnIce?: string;
|
|
741
|
+
gameWinningGoals?: number;
|
|
742
|
+
shots?: number;
|
|
743
|
+
shootingPctg?: number;
|
|
744
|
+
faceoffWinningPctg?: number;
|
|
745
|
+
powerPlayGoals?: number;
|
|
746
|
+
blockedShots?: number;
|
|
747
|
+
hits?: number;
|
|
606
748
|
}
|
|
607
|
-
interface
|
|
608
|
-
|
|
609
|
-
|
|
749
|
+
interface PeriodDescriptor$8 {
|
|
750
|
+
number: number;
|
|
751
|
+
periodType: PeriodType;
|
|
752
|
+
maxRegulationPeriods: number;
|
|
753
|
+
}
|
|
754
|
+
interface Situation$1 {
|
|
755
|
+
homeTeam: SituationTeam;
|
|
756
|
+
awayTeam: SituationTeam;
|
|
610
757
|
situationCode: string;
|
|
611
758
|
timeRemaining: string;
|
|
612
759
|
secondsRemaining: number;
|
|
613
760
|
}
|
|
614
|
-
interface
|
|
761
|
+
interface SituationTeam {
|
|
615
762
|
abbrev: string;
|
|
616
|
-
situationDescriptions
|
|
763
|
+
situationDescriptions?: string[];
|
|
617
764
|
strength: number;
|
|
618
765
|
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
766
|
+
interface Summary$2 {
|
|
767
|
+
scoring: Scoring$1[];
|
|
768
|
+
shootout: unknown[];
|
|
769
|
+
threeStars: ThreeStar$1[];
|
|
770
|
+
penalties: SummaryPenalty[];
|
|
771
|
+
iceSurface?: IceSurface$1;
|
|
772
|
+
}
|
|
773
|
+
interface IceSurface$1 {
|
|
774
|
+
awayTeam: IceSurfaceTeam;
|
|
775
|
+
homeTeam: IceSurfaceTeam;
|
|
776
|
+
}
|
|
777
|
+
interface IceSurfaceTeam {
|
|
778
|
+
forwards: IceSurfaceForward[];
|
|
779
|
+
defensemen: IceSurfaceDefense[];
|
|
780
|
+
goalies: IceSurfaceGoalie[];
|
|
781
|
+
penaltyBox: IceSurfacePlayer[];
|
|
782
|
+
}
|
|
783
|
+
interface IceSurfacePlayer {
|
|
784
|
+
playerId: number;
|
|
785
|
+
name: LocalizedText;
|
|
786
|
+
sweaterNumber: number;
|
|
787
|
+
positionCode: PositionCode;
|
|
788
|
+
headshot: string;
|
|
789
|
+
totalSOI?: number;
|
|
790
|
+
secondsRemaining?: number;
|
|
791
|
+
}
|
|
792
|
+
interface IceSurfaceForward extends IceSurfacePlayer {
|
|
793
|
+
positionCode: Exclude<PositionCode, 'D'>;
|
|
794
|
+
}
|
|
795
|
+
interface IceSurfaceDefense extends IceSurfacePlayer {
|
|
796
|
+
positionCode: 'D';
|
|
797
|
+
}
|
|
798
|
+
interface IceSurfaceGoalie extends IceSurfacePlayer {
|
|
799
|
+
positionCode: 'G';
|
|
800
|
+
}
|
|
801
|
+
interface SummaryPenalty {
|
|
802
|
+
periodDescriptor: PeriodDescriptor$8;
|
|
803
|
+
penalties: Penalty[];
|
|
804
|
+
}
|
|
805
|
+
interface Penalty {
|
|
806
|
+
timeInPeriod: string;
|
|
807
|
+
type: PenaltyTypeCode;
|
|
808
|
+
duration: number;
|
|
809
|
+
committedByPlayer: PenaltyPlayer;
|
|
810
|
+
teamAbbrev: LocalizedText;
|
|
811
|
+
drawnBy?: PenaltyPlayer;
|
|
812
|
+
descKey: string;
|
|
813
|
+
}
|
|
814
|
+
interface PenaltyPlayer {
|
|
815
|
+
firstName: LocalizedText;
|
|
816
|
+
lastName: LocalizedText;
|
|
817
|
+
sweaterNumber: number;
|
|
818
|
+
}
|
|
819
|
+
interface Scoring$1 {
|
|
820
|
+
periodDescriptor: PeriodDescriptor$8;
|
|
821
|
+
goals: Goal$2[];
|
|
822
|
+
}
|
|
823
|
+
interface Goal$2 {
|
|
824
|
+
situationCode: string;
|
|
825
|
+
eventId: number;
|
|
826
|
+
strength: Strength;
|
|
827
|
+
playerId: number;
|
|
828
|
+
firstName: LocalizedText;
|
|
829
|
+
lastName: LocalizedText;
|
|
830
|
+
name: LocalizedText;
|
|
831
|
+
teamAbbrev: LocalizedText;
|
|
832
|
+
headshot: string;
|
|
833
|
+
highlightClipSharingUrl?: string;
|
|
834
|
+
highlightClipSharingUrlFr?: string;
|
|
835
|
+
highlightClip?: number;
|
|
836
|
+
highlightClipFr?: number;
|
|
837
|
+
discreteClip?: number;
|
|
838
|
+
discreteClipFr: number;
|
|
839
|
+
goalsToDate: number;
|
|
840
|
+
awayScore: number;
|
|
841
|
+
homeScore: number;
|
|
842
|
+
leadingTeamAbbrev?: LocalizedText;
|
|
843
|
+
timeInPeriod: string;
|
|
844
|
+
shotType: ShotType;
|
|
845
|
+
goalModifier: GoalModifier;
|
|
846
|
+
assists: AssistedBy[];
|
|
847
|
+
pptReplayUrl: string;
|
|
848
|
+
homeTeamDefendingSide: DefendingSide;
|
|
849
|
+
isHome: boolean;
|
|
850
|
+
}
|
|
851
|
+
interface AssistedBy {
|
|
852
|
+
playerId: number;
|
|
853
|
+
firstName: LocalizedText;
|
|
854
|
+
lastName: LocalizedText;
|
|
855
|
+
name: LocalizedText;
|
|
856
|
+
assistsToDate: number;
|
|
857
|
+
sweaterNumber: number;
|
|
858
|
+
}
|
|
859
|
+
interface ThreeStar$1 {
|
|
860
|
+
star: 1 | 2 | 3;
|
|
861
|
+
playerId: number;
|
|
862
|
+
teamAbbrev: TeamAbbrev;
|
|
863
|
+
headshot: string;
|
|
864
|
+
name: LocalizedText;
|
|
865
|
+
sweaterNo: number;
|
|
866
|
+
position: PositionCode;
|
|
867
|
+
goals?: number;
|
|
868
|
+
assists?: number;
|
|
869
|
+
points?: number;
|
|
870
|
+
goalsAgainstAverage?: number;
|
|
871
|
+
savePctg?: number;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
type NHLSeasons = Array<Season>;
|
|
875
|
+
interface PlayoffSeriesMeta {
|
|
876
|
+
seriesTitle: string;
|
|
877
|
+
teams: Teams;
|
|
878
|
+
}
|
|
879
|
+
interface Teams {
|
|
880
|
+
topSeed: Seed$1;
|
|
881
|
+
bottomSeed: Seed$1;
|
|
882
|
+
}
|
|
883
|
+
interface Seed$1 {
|
|
884
|
+
name: LocalizedText;
|
|
885
|
+
commonName: LocalizedText;
|
|
886
|
+
tricode: string;
|
|
887
|
+
teamSlug: string;
|
|
888
|
+
}
|
|
889
|
+
interface GameMeta {
|
|
890
|
+
teams: Team$9[];
|
|
891
|
+
seasonStates: SeasonStates;
|
|
892
|
+
gameState: string;
|
|
893
|
+
}
|
|
894
|
+
interface SeasonStates {
|
|
895
|
+
date: string;
|
|
896
|
+
gameType: number;
|
|
897
|
+
season: number;
|
|
898
|
+
}
|
|
899
|
+
interface Team$9 {
|
|
900
|
+
name: LocalizedText;
|
|
901
|
+
tricode: string;
|
|
902
|
+
teamId: number;
|
|
903
|
+
teamSlug: string;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
interface NetworkTVSchedule {
|
|
907
|
+
date: string;
|
|
908
|
+
startDate: string;
|
|
909
|
+
endDate: string;
|
|
910
|
+
broadcasts: Broadcast[];
|
|
911
|
+
}
|
|
912
|
+
interface Broadcast {
|
|
913
|
+
startTime: string;
|
|
914
|
+
endTime: string;
|
|
915
|
+
durationSeconds: number;
|
|
916
|
+
title: string;
|
|
917
|
+
description: string;
|
|
918
|
+
houseNumber: string;
|
|
919
|
+
broadcastType: 'HD' | (string & {});
|
|
920
|
+
broadcastStatus: 'LIVE' | '' | (string & {});
|
|
921
|
+
broadcastImageUrl: string;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
interface PartnerGameInfo {
|
|
925
|
+
currentOddsDate: string;
|
|
926
|
+
lastUpdatedUTC: string;
|
|
927
|
+
bettingPartner?: BettingPartner;
|
|
928
|
+
games: Game$5[];
|
|
929
|
+
}
|
|
930
|
+
interface BettingPartner {
|
|
931
|
+
partnerId: number;
|
|
932
|
+
country: string;
|
|
933
|
+
name: string;
|
|
934
|
+
imageUrl: string;
|
|
935
|
+
siteUrl: string;
|
|
936
|
+
bgColor: string;
|
|
937
|
+
textColor: string;
|
|
938
|
+
accentColor: string;
|
|
939
|
+
}
|
|
940
|
+
interface Game$5 {
|
|
941
|
+
gameId: number;
|
|
942
|
+
gameType: number;
|
|
943
|
+
startTimeUTC: string;
|
|
944
|
+
homeTeam: Team$8;
|
|
945
|
+
awayTeam: Team$8;
|
|
946
|
+
}
|
|
947
|
+
interface Team$8 {
|
|
948
|
+
id: number;
|
|
949
|
+
name: LocalizedText;
|
|
950
|
+
abbrev: string;
|
|
951
|
+
logo: string;
|
|
952
|
+
odds: Odd$2[];
|
|
953
|
+
}
|
|
954
|
+
interface Odd$2 {
|
|
955
|
+
description: Description;
|
|
956
|
+
value: number;
|
|
957
|
+
qualifier: string;
|
|
958
|
+
}
|
|
959
|
+
type Description = 'MONEY_LINE_2_WAY' | 'OVER_UNDER' | 'PUCK_LINE' | 'MONEY_LINE_3_WAY';
|
|
960
|
+
|
|
961
|
+
interface GamecenterPlayByPlay {
|
|
962
|
+
id: number;
|
|
963
|
+
season: number;
|
|
964
|
+
gameType: number;
|
|
965
|
+
limitedScoring: boolean;
|
|
966
|
+
gameDate: string;
|
|
967
|
+
venue: LocalizedText;
|
|
968
|
+
venueLocation: LocalizedText;
|
|
969
|
+
startTimeUTC: string;
|
|
970
|
+
easternUTCOffset: UTCOffset;
|
|
971
|
+
venueUTCOffset: UTCOffset;
|
|
972
|
+
tvBroadcasts: TvBroadcast[];
|
|
973
|
+
gameState: GameState;
|
|
974
|
+
gameScheduleState: GameScheduleState;
|
|
975
|
+
periodDescriptor?: PeriodDescriptor$7;
|
|
976
|
+
awayTeam: Team$7;
|
|
977
|
+
homeTeam: Team$7;
|
|
978
|
+
shootoutInUse: boolean;
|
|
979
|
+
otInUse: boolean;
|
|
980
|
+
clock: Clock$2;
|
|
981
|
+
displayPeriod: number;
|
|
982
|
+
maxPeriods: number;
|
|
983
|
+
gameOutcome?: GameOutcome$4;
|
|
984
|
+
plays: Event[];
|
|
985
|
+
rosterSpots: RosterSpot[];
|
|
986
|
+
regPeriods: number;
|
|
987
|
+
summary?: Summary$1;
|
|
988
|
+
situation?: Situation;
|
|
989
|
+
}
|
|
990
|
+
interface Clock$2 {
|
|
991
|
+
timeRemaining: string;
|
|
992
|
+
secondsRemaining: number;
|
|
993
|
+
running: boolean;
|
|
994
|
+
inIntermission: boolean;
|
|
995
|
+
}
|
|
996
|
+
interface GameOutcome$4 {
|
|
997
|
+
lastPeriodType: PeriodType;
|
|
998
|
+
otPeriods?: number;
|
|
999
|
+
}
|
|
1000
|
+
interface PeriodDescriptor$7 {
|
|
1001
|
+
number: number;
|
|
1002
|
+
periodType: PeriodType;
|
|
1003
|
+
maxRegulationPeriods: number;
|
|
1004
|
+
}
|
|
1005
|
+
interface Event {
|
|
1006
|
+
eventId: number;
|
|
1007
|
+
periodDescriptor: PeriodDescriptor$7;
|
|
1008
|
+
timeInPeriod: string;
|
|
1009
|
+
timeRemaining: string;
|
|
1010
|
+
situationCode: string;
|
|
1011
|
+
homeTeamDefendingSide: DefendingSide;
|
|
1012
|
+
typeCode: number;
|
|
1013
|
+
typeDescKey: EventTypeDescKey;
|
|
1014
|
+
sortOrder: number;
|
|
1015
|
+
details?: Details;
|
|
1016
|
+
pptReplayUrl?: string;
|
|
1017
|
+
}
|
|
1018
|
+
interface Details {
|
|
1019
|
+
eventOwnerTeamId?: number;
|
|
1020
|
+
losingPlayerId?: number;
|
|
1021
|
+
winningPlayerId?: number;
|
|
1022
|
+
xCoord?: number;
|
|
1023
|
+
yCoord?: number;
|
|
1024
|
+
zoneCode?: ZoneCode;
|
|
1025
|
+
blockingPlayerId?: number;
|
|
1026
|
+
shootingPlayerId?: number;
|
|
1027
|
+
reason?: Reason;
|
|
1028
|
+
shotType?: ShotType;
|
|
1029
|
+
scoringPlayerId?: number;
|
|
1030
|
+
scoringPlayerTotal?: number;
|
|
1031
|
+
assist1PlayerId?: number;
|
|
1032
|
+
assist1PlayerTotal?: number;
|
|
1033
|
+
assist2PlayerId?: number;
|
|
1034
|
+
assist2PlayerTotal?: number;
|
|
1035
|
+
goalieInNetId?: number;
|
|
1036
|
+
awayScore?: number;
|
|
1037
|
+
homeScore?: number;
|
|
1038
|
+
highlightClipSharingUrl?: string;
|
|
1039
|
+
highlightClipSharingUrlFr?: string;
|
|
1040
|
+
highlightClip?: number;
|
|
1041
|
+
highlightClipFr?: number;
|
|
1042
|
+
discreteClip?: number;
|
|
1043
|
+
discreteClipFr?: number;
|
|
1044
|
+
hittingPlayerId?: number;
|
|
1045
|
+
hitteePlayerId?: number;
|
|
1046
|
+
playerId?: number;
|
|
1047
|
+
awaySOG?: number;
|
|
1048
|
+
homeSOG?: number;
|
|
1049
|
+
secondaryReason?: Reason;
|
|
1050
|
+
typeCode?: PenaltyTypeCode;
|
|
1051
|
+
descKey?: PenaltyDescKey;
|
|
1052
|
+
duration?: number;
|
|
1053
|
+
committedByPlayerId?: number;
|
|
1054
|
+
drawnByPlayerId?: number;
|
|
1055
|
+
servedByPlayerId?: number;
|
|
1056
|
+
}
|
|
1057
|
+
interface RosterSpot {
|
|
1058
|
+
teamId: number;
|
|
1059
|
+
playerId: number;
|
|
1060
|
+
firstName: LocalizedText;
|
|
1061
|
+
lastName: LocalizedText;
|
|
1062
|
+
sweaterNumber: number;
|
|
1063
|
+
positionCode: Position;
|
|
1064
|
+
headshot: string;
|
|
1065
|
+
}
|
|
1066
|
+
interface Situation {
|
|
1067
|
+
homeTeam: Team$7;
|
|
1068
|
+
awayTeam: Team$7;
|
|
1069
|
+
situationCode: string;
|
|
1070
|
+
timeRemaining: string;
|
|
1071
|
+
secondsRemaining: number;
|
|
1072
|
+
}
|
|
1073
|
+
interface Team$7 {
|
|
1074
|
+
id: number;
|
|
1075
|
+
commonName: LocalizedText;
|
|
1076
|
+
abbrev: TeamAbbrev;
|
|
1077
|
+
score: number;
|
|
1078
|
+
sog?: number;
|
|
1079
|
+
logo: string;
|
|
1080
|
+
darkLogo: string;
|
|
1081
|
+
placeName: LocalizedText;
|
|
1082
|
+
placeNameWithPreposition: LocalizedText;
|
|
1083
|
+
radioLink?: string;
|
|
1084
|
+
}
|
|
1085
|
+
interface Team$7 {
|
|
1086
|
+
abbrev: TeamAbbrev;
|
|
1087
|
+
strength: number;
|
|
1088
|
+
situationDescriptions?: string[];
|
|
1089
|
+
}
|
|
1090
|
+
interface Summary$1 {
|
|
1091
|
+
iceSurface?: IceSurface;
|
|
1092
|
+
}
|
|
1093
|
+
interface IceSurface {
|
|
1094
|
+
awayTeam: IceSurfaceAwayTeam;
|
|
1095
|
+
homeTeam: IceSurfaceHomeTeam;
|
|
1096
|
+
}
|
|
1097
|
+
interface IceSurfaceAwayTeam {
|
|
1098
|
+
forwards: GoalieElement[];
|
|
1099
|
+
defensemen: PenaltyBoxElement[];
|
|
1100
|
+
goalies: GoalieElement[];
|
|
1101
|
+
penaltyBox: PenaltyBoxElement[];
|
|
1102
|
+
}
|
|
1103
|
+
interface PenaltyBoxElement {
|
|
1104
|
+
playerId: number;
|
|
1105
|
+
name: LocalizedText;
|
|
1106
|
+
sweaterNumber: number;
|
|
1107
|
+
positionCode: Position;
|
|
1108
|
+
headshot: string;
|
|
1109
|
+
totalSOI?: number;
|
|
1110
|
+
secondsRemaining?: number;
|
|
1111
|
+
}
|
|
1112
|
+
interface GoalieElement {
|
|
1113
|
+
playerId: number;
|
|
1114
|
+
name: LocalizedText;
|
|
1115
|
+
sweaterNumber: number;
|
|
1116
|
+
positionCode: Position;
|
|
1117
|
+
headshot: string;
|
|
1118
|
+
totalSOI?: number;
|
|
1119
|
+
}
|
|
1120
|
+
interface IceSurfaceHomeTeam {
|
|
1121
|
+
forwards: PurpleForward[];
|
|
1122
|
+
defensemen: PurpleDefenseman[];
|
|
1123
|
+
goalies: GoalieElement[];
|
|
1124
|
+
penaltyBox: PenaltyBoxElement[];
|
|
1125
|
+
}
|
|
1126
|
+
interface PurpleDefenseman {
|
|
1127
|
+
playerId: number;
|
|
1128
|
+
name: LocalizedText;
|
|
1129
|
+
sweaterNumber: number;
|
|
1130
|
+
positionCode: ZoneCode;
|
|
1131
|
+
headshot: string;
|
|
1132
|
+
totalSOI?: number;
|
|
1133
|
+
}
|
|
1134
|
+
interface PurpleForward {
|
|
1135
|
+
playerId: number;
|
|
1136
|
+
name: LocalizedText;
|
|
1137
|
+
sweaterNumber: number;
|
|
1138
|
+
positionCode: Position;
|
|
1139
|
+
headshot: string;
|
|
1140
|
+
totalSOI?: number;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
interface PlayerSpotlight {
|
|
1144
|
+
playerId: number;
|
|
1145
|
+
name: LocalizedText;
|
|
1146
|
+
playerSlug: string;
|
|
1147
|
+
position: Position;
|
|
1148
|
+
sweaterNumber: number;
|
|
1149
|
+
teamId: number;
|
|
1150
|
+
headshot: string;
|
|
1151
|
+
teamTriCode: TeamAbbrev;
|
|
1152
|
+
teamLogo: string;
|
|
1153
|
+
sortId: number;
|
|
1154
|
+
}
|
|
1155
|
+
interface PlayerLanding {
|
|
1156
|
+
playerId: number;
|
|
1157
|
+
isActive: boolean;
|
|
1158
|
+
firstName: LocalizedText;
|
|
1159
|
+
lastName: LocalizedText;
|
|
1160
|
+
badges: Badge[];
|
|
1161
|
+
sweaterNumber: number;
|
|
1162
|
+
position: Position;
|
|
1163
|
+
headshot: string;
|
|
1164
|
+
heroImage: string;
|
|
1165
|
+
heightInInches: number;
|
|
1166
|
+
heightInCentimeters: number;
|
|
1167
|
+
weightInPounds: number;
|
|
1168
|
+
weightInKilograms: number;
|
|
1169
|
+
birthDate: string;
|
|
1170
|
+
birthCity: LocalizedText;
|
|
1171
|
+
birthStateProvince?: LocalizedText;
|
|
1172
|
+
birthCountry: string;
|
|
1173
|
+
shootsCatches: Position;
|
|
1174
|
+
draftDetails?: DraftDetails;
|
|
1175
|
+
playerSlug: string;
|
|
1176
|
+
inTop100AllTime: number;
|
|
1177
|
+
inHHOF: number;
|
|
1178
|
+
featuredStats: FeaturedStats;
|
|
1179
|
+
careerTotals: CareerTotals;
|
|
1180
|
+
shopLink: '#TODO';
|
|
1181
|
+
twitterLink: '#TODO';
|
|
1182
|
+
watchLink: '#TODO';
|
|
1183
|
+
last5Games: Last5Game[];
|
|
1184
|
+
seasonTotals: SeasonTotal[];
|
|
1185
|
+
awards?: Award[];
|
|
1186
|
+
currentTeamId?: number;
|
|
1187
|
+
currentTeamAbbrev?: string;
|
|
1188
|
+
fullTeamName?: LocalizedText;
|
|
1189
|
+
teamCommonName?: LocalizedText;
|
|
1190
|
+
teamPlaceNameWithPreposition?: LocalizedText;
|
|
1191
|
+
teamLogo?: string;
|
|
1192
|
+
currentTeamRoster?: CurrentTeamRoster[];
|
|
1193
|
+
}
|
|
1194
|
+
interface Award {
|
|
1195
|
+
trophy: LocalizedText;
|
|
1196
|
+
seasons: {
|
|
1197
|
+
[key: string]: number;
|
|
1198
|
+
}[];
|
|
1199
|
+
}
|
|
1200
|
+
interface Badge {
|
|
1201
|
+
logoUrl: LocalizedText;
|
|
1202
|
+
title: LocalizedText;
|
|
1203
|
+
}
|
|
1204
|
+
interface CareerTotals {
|
|
1205
|
+
regularSeason: CareerStats;
|
|
1206
|
+
playoffs: CareerStats;
|
|
1207
|
+
}
|
|
1208
|
+
interface CareerStats {
|
|
1209
|
+
assists?: number;
|
|
1210
|
+
gamesPlayed: number;
|
|
1211
|
+
gamesStarted?: number;
|
|
1212
|
+
goals?: number;
|
|
1213
|
+
goalsAgainst?: number;
|
|
1214
|
+
goalsAgainstAvg?: number;
|
|
1215
|
+
losses?: number;
|
|
1216
|
+
pim?: number;
|
|
1217
|
+
savePctg?: number;
|
|
1218
|
+
shotsAgainst?: number;
|
|
1219
|
+
shutouts?: number;
|
|
1220
|
+
timeOnIce?: string;
|
|
1221
|
+
wins?: number;
|
|
1222
|
+
gameWinningGoals?: number;
|
|
1223
|
+
otGoals?: number;
|
|
1224
|
+
points?: number;
|
|
1225
|
+
powerPlayGoals?: number;
|
|
1226
|
+
powerPlayPoints?: number;
|
|
1227
|
+
shorthandedGoals?: number;
|
|
1228
|
+
shorthandedPoints?: number;
|
|
1229
|
+
plusMinus?: number;
|
|
1230
|
+
shootingPctg?: number;
|
|
1231
|
+
shots?: number;
|
|
1232
|
+
ties?: number;
|
|
1233
|
+
otLosses?: number;
|
|
1234
|
+
}
|
|
1235
|
+
interface CurrentTeamRoster {
|
|
1236
|
+
playerId: number;
|
|
1237
|
+
lastName: LocalizedText;
|
|
1238
|
+
firstName: LocalizedText;
|
|
1239
|
+
playerSlug: string;
|
|
1240
|
+
}
|
|
1241
|
+
interface DraftDetails {
|
|
1242
|
+
year: number;
|
|
1243
|
+
teamAbbrev: string;
|
|
1244
|
+
round: number;
|
|
1245
|
+
pickInRound: number;
|
|
1246
|
+
overallPick: number;
|
|
1247
|
+
}
|
|
1248
|
+
interface FeaturedStats {
|
|
1249
|
+
season: number;
|
|
1250
|
+
regularSeason: FeaturedStatsType;
|
|
1251
|
+
playoffs?: FeaturedStatsType;
|
|
1252
|
+
}
|
|
1253
|
+
interface FeaturedStatsType {
|
|
1254
|
+
subSeason: CareerStats;
|
|
1255
|
+
career: CareerStats;
|
|
1256
|
+
}
|
|
1257
|
+
interface Last5Game {
|
|
1258
|
+
decision?: Decision;
|
|
1259
|
+
gameDate: string;
|
|
1260
|
+
gameId: number;
|
|
1261
|
+
gameTypeId: number;
|
|
1262
|
+
gamesStarted?: number;
|
|
1263
|
+
goalsAgainst?: number;
|
|
1264
|
+
homeRoadFlag: HomeRoadFlag;
|
|
1265
|
+
opponentAbbrev: string;
|
|
1266
|
+
penaltyMins?: number;
|
|
1267
|
+
savePctg?: number;
|
|
1268
|
+
shotsAgainst?: number;
|
|
1269
|
+
teamAbbrev: string;
|
|
1270
|
+
toi?: string;
|
|
1271
|
+
assists?: number;
|
|
1272
|
+
goals?: number;
|
|
1273
|
+
pim?: number;
|
|
1274
|
+
plusMinus?: number;
|
|
1275
|
+
points?: number;
|
|
1276
|
+
powerPlayGoals?: number;
|
|
1277
|
+
shorthandedGoals?: number;
|
|
1278
|
+
shots?: number;
|
|
1279
|
+
shifts?: number;
|
|
1280
|
+
}
|
|
1281
|
+
type Decision = 'L' | 'W' | 'T' | 'O';
|
|
1282
|
+
type HomeRoadFlag = 'R' | 'H';
|
|
1283
|
+
interface SeasonTotal {
|
|
1284
|
+
gameTypeId: number;
|
|
1285
|
+
gamesPlayed?: number;
|
|
1286
|
+
goalsAgainst?: number;
|
|
1287
|
+
goalsAgainstAvg?: number;
|
|
1288
|
+
leagueAbbrev: string;
|
|
1289
|
+
season: number;
|
|
1290
|
+
sequence: number;
|
|
1291
|
+
shutouts?: number;
|
|
1292
|
+
teamName: LocalizedText;
|
|
1293
|
+
timeOnIce?: string;
|
|
1294
|
+
losses?: number;
|
|
1295
|
+
ties?: number;
|
|
1296
|
+
wins?: number;
|
|
1297
|
+
teamCommonName?: LocalizedText;
|
|
1298
|
+
teamPlaceNameWithPreposition?: LocalizedText;
|
|
1299
|
+
assists?: number;
|
|
1300
|
+
gamesStarted?: number;
|
|
1301
|
+
goals?: number;
|
|
1302
|
+
pim?: number;
|
|
1303
|
+
savePctg?: number;
|
|
1304
|
+
shotsAgainst?: number;
|
|
1305
|
+
otLosses?: number;
|
|
1306
|
+
points?: number;
|
|
1307
|
+
gameWinningGoals?: number;
|
|
1308
|
+
otGoals?: number;
|
|
1309
|
+
powerPlayGoals?: number;
|
|
1310
|
+
powerPlayPoints?: number;
|
|
1311
|
+
shorthandedGoals?: number;
|
|
1312
|
+
shorthandedPoints?: number;
|
|
1313
|
+
plusMinus?: number;
|
|
1314
|
+
shootingPctg?: number;
|
|
1315
|
+
shots?: number;
|
|
1316
|
+
avgToi?: string;
|
|
1317
|
+
faceoffWinningPctg?: number;
|
|
1318
|
+
}
|
|
1319
|
+
interface PlayerGameLog {
|
|
1320
|
+
seasonId: number;
|
|
1321
|
+
gameTypeId: number;
|
|
1322
|
+
playerStatsSeasons: PlayerStatsSeason[];
|
|
1323
|
+
gameLog?: GameLog[];
|
|
1324
|
+
}
|
|
1325
|
+
interface GameLog {
|
|
1326
|
+
gameId: number;
|
|
1327
|
+
teamAbbrev: TeamAbbrev;
|
|
1328
|
+
homeRoadFlag: HomeRoadFlag;
|
|
1329
|
+
gameDate: string;
|
|
1330
|
+
goals: number;
|
|
1331
|
+
assists: number;
|
|
1332
|
+
commonName: LocalizedText;
|
|
1333
|
+
opponentCommonName: LocalizedText;
|
|
1334
|
+
gamesStarted: number;
|
|
1335
|
+
decision: Decision;
|
|
1336
|
+
shotsAgainst: number;
|
|
1337
|
+
goalsAgainst: number;
|
|
1338
|
+
savePctg: number;
|
|
1339
|
+
shutouts: number;
|
|
1340
|
+
opponentAbbrev: string;
|
|
1341
|
+
pim: number;
|
|
1342
|
+
toi: string;
|
|
1343
|
+
}
|
|
1344
|
+
interface PlayerStatsSeason {
|
|
1345
|
+
season: number;
|
|
1346
|
+
gameTypes: (2 | 3)[];
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
interface SkaterStatsLeaders {
|
|
1350
|
+
goalsSh: SkaterLeader[];
|
|
1351
|
+
plusMinus: SkaterLeader[];
|
|
1352
|
+
assists: SkaterLeader[];
|
|
1353
|
+
goalsPp: SkaterLeader[];
|
|
1354
|
+
faceoffLeaders: SkaterLeader[];
|
|
1355
|
+
penaltyMins: SkaterLeader[];
|
|
1356
|
+
goals: SkaterLeader[];
|
|
1357
|
+
points: SkaterLeader[];
|
|
1358
|
+
toi: SkaterLeader[];
|
|
1359
|
+
}
|
|
1360
|
+
interface SkaterLeader {
|
|
1361
|
+
id: number;
|
|
1362
|
+
firstName: LocalizedText;
|
|
1363
|
+
lastName: LocalizedText;
|
|
1364
|
+
sweaterNumber: number;
|
|
1365
|
+
headshot: string;
|
|
1366
|
+
teamAbbrev: TeamAbbrev;
|
|
1367
|
+
teamName: LocalizedText;
|
|
1368
|
+
teamLogo: string;
|
|
1369
|
+
position: PositionCode;
|
|
1370
|
+
value: number;
|
|
1371
|
+
}
|
|
1372
|
+
interface GoalieStatsLeaders {
|
|
1373
|
+
wins: GoalieLeader[];
|
|
1374
|
+
shutouts: GoalieLeader[];
|
|
1375
|
+
savePctg: GoalieLeader[];
|
|
1376
|
+
goalsAgainstAverage: GoalieLeader[];
|
|
1377
|
+
}
|
|
1378
|
+
interface GoalieLeader {
|
|
1379
|
+
id: number;
|
|
1380
|
+
firstName: LocalizedText;
|
|
1381
|
+
lastName: LocalizedText;
|
|
1382
|
+
sweaterNumber: number;
|
|
1383
|
+
headshot: string;
|
|
1384
|
+
teamAbbrev: TeamAbbrev;
|
|
1385
|
+
teamName: LocalizedText;
|
|
1386
|
+
teamLogo: string;
|
|
1387
|
+
position: 'G';
|
|
1388
|
+
value: number;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
interface PlayoffSeries {
|
|
1392
|
+
seasonId: number;
|
|
1393
|
+
currentRound: number;
|
|
1394
|
+
rounds: Round[];
|
|
1395
|
+
}
|
|
1396
|
+
interface Round {
|
|
1397
|
+
roundNumber: number;
|
|
1398
|
+
roundLabel: Label;
|
|
1399
|
+
roundAbbrev: RoundAbbrev;
|
|
1400
|
+
series: Series[];
|
|
1401
|
+
}
|
|
1402
|
+
type RoundAbbrev = 'NHLF' | 'SCF' | 'SCSF' | 'NHLSF' | 'QF' | 'SF' | 'PRLM' | 'DSF' | 'DF' | 'CF' | 'CQF' | 'CSF' | 'F' | 'R1' | 'R2' | 'SCQ';
|
|
1403
|
+
type Label = 'nhl-final' | 'stanley-cup-final' | 'stanley-cup-semifinal' | 'nhl-semifinal' | 'quarterfinals' | 'semifinals' | 'preliminary-round' | 'division-semifinals' | 'division-finals' | 'conference-finals' | 'conference-quarterfinals' | 'conference-semifinals' | 'semifinal' | 'final' | '1st-round' | '2nd-round' | 'stanley-cup-qualifiers' | 'stanley-cup-semifinals' | 'quarterfinal';
|
|
1404
|
+
interface Series {
|
|
1405
|
+
seriesLetter: SeriesLetter;
|
|
1406
|
+
roundNumber: number;
|
|
1407
|
+
seriesLabel: Label;
|
|
1408
|
+
seriesLink: string;
|
|
1409
|
+
bottomSeed: Seed;
|
|
1410
|
+
topSeed: Seed;
|
|
1411
|
+
neededToWin: number;
|
|
1412
|
+
winningTeamId?: number;
|
|
1413
|
+
losingTeamId?: number;
|
|
1414
|
+
}
|
|
1415
|
+
interface Seed {
|
|
1416
|
+
id: number;
|
|
1417
|
+
abbrev: string;
|
|
1418
|
+
wins: number;
|
|
1419
|
+
logo?: string;
|
|
1420
|
+
darkLogo?: string;
|
|
1421
|
+
}
|
|
1422
|
+
type SeriesLetter = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
|
|
1423
|
+
interface PlayoffBracket {
|
|
1424
|
+
bracketLogo: string;
|
|
1425
|
+
bracketLogoFr: string;
|
|
1426
|
+
series: BracketSeries[];
|
|
1427
|
+
}
|
|
1428
|
+
interface BracketSeries {
|
|
1429
|
+
seriesUrl: string;
|
|
1430
|
+
seriesTitle: SeriesTitle;
|
|
1431
|
+
seriesAbbrev: SeriesAbbrev;
|
|
1432
|
+
seriesLetter: SeriesLetter;
|
|
1433
|
+
playoffRound: number;
|
|
1434
|
+
topSeedRank: number;
|
|
1435
|
+
topSeedRankAbbrev: SeedRankAbbrev;
|
|
1436
|
+
topSeedWins: number;
|
|
1437
|
+
bottomSeedRank: number;
|
|
1438
|
+
bottomSeedRankAbbrev: SeedRankAbbrev;
|
|
1439
|
+
bottomSeedWins: number;
|
|
1440
|
+
winningTeamId: number;
|
|
1441
|
+
losingTeamId: number;
|
|
1442
|
+
topSeedTeam: SeedTeam;
|
|
1443
|
+
bottomSeedTeam: SeedTeam;
|
|
1444
|
+
seriesLogo?: string;
|
|
1445
|
+
seriesLogoFr?: string;
|
|
1446
|
+
conferenceAbbrev?: ConferenceAbbrev$1;
|
|
1447
|
+
conferenceName?: ConferenceName$1;
|
|
1448
|
+
}
|
|
1449
|
+
interface SeedTeam {
|
|
1450
|
+
id: number;
|
|
1451
|
+
abbrev: TeamAbbrev;
|
|
1452
|
+
name: LocalizedText;
|
|
1453
|
+
commonName: LocalizedText;
|
|
1454
|
+
placeNameWithPreposition: LocalizedText;
|
|
1455
|
+
logo: string;
|
|
1456
|
+
darkLogo: string;
|
|
1457
|
+
}
|
|
1458
|
+
type ConferenceAbbrev$1 = 'E' | 'W';
|
|
1459
|
+
type ConferenceName$1 = 'Western' | 'Eastern';
|
|
1460
|
+
type SeriesAbbrev = 'NHLF' | 'SCF' | 'SCSF' | 'NHLSF' | 'QF' | 'SF' | 'PRLM' | 'DSF' | 'DF' | 'CF' | 'WCF' | 'ECF' | 'CQF' | 'CSF' | 'R1' | 'R2' | 'SCQ';
|
|
1461
|
+
type SeriesTitle = 'NHL Final' | 'Stanley Cup Final' | 'Stanley Cup Semifinal' | 'NHL Semifinal' | 'Quarterfinals' | 'Semifinals' | 'Preliminary Round' | 'Division Semifinals' | 'Division Finals' | 'Conference Finals' | 'Western Conference Finals' | 'Eastern Conference Finals' | 'Conference Quarterfinals' | 'Conference Semifinals' | '1st Round' | '2nd Round' | 'Stanley Cup Qualifiers' | 'Stanley Cup Semifinals';
|
|
1462
|
+
type SeedRankAbbrev = 'C1' | 'C2' | 'C3' | 'C4' | 'C5' | 'C6' | 'C7' | 'C8' | 'C9' | 'C10' | 'C11' | 'C12' | 'D1' | 'D2' | 'D3' | 'D4' | 'L1' | 'L2' | 'L3' | 'L4' | 'L5' | 'L6' | 'L7' | 'L8' | 'L9' | 'L10' | 'L11' | 'L12' | 'L13' | 'L14' | 'L15' | 'L16' | 'WC1' | 'WC2' | 'PCHA1' | 'WCHL1';
|
|
1463
|
+
interface PlayoffSeriesSchedule {
|
|
1464
|
+
round: number;
|
|
1465
|
+
roundAbbrev: string;
|
|
1466
|
+
roundLabel: string;
|
|
1467
|
+
seriesLetter: string;
|
|
1468
|
+
seriesLogo: string;
|
|
1469
|
+
seriesLogoFr: string;
|
|
1470
|
+
neededToWin: number;
|
|
1471
|
+
length: number;
|
|
1472
|
+
bottomSeedTeam: ScheduleSeedTeam;
|
|
1473
|
+
topSeedTeam: ScheduleSeedTeam;
|
|
1474
|
+
games: Game$4[];
|
|
1475
|
+
fullCoverageUrl: FullCoverageURL;
|
|
1476
|
+
}
|
|
1477
|
+
interface ScheduleSeedTeam {
|
|
1478
|
+
id: number;
|
|
1479
|
+
/** Note: this is incorrectly named in the API, should be `commonName` */
|
|
1480
|
+
name: LocalizedText;
|
|
1481
|
+
abbrev: TeamAbbrev;
|
|
1482
|
+
placeName: LocalizedText;
|
|
1483
|
+
placeNameWithPreposition: LocalizedText;
|
|
1484
|
+
conference: Conference;
|
|
1485
|
+
record: string;
|
|
1486
|
+
seriesWins: number;
|
|
1487
|
+
divisionAbbrev: string;
|
|
1488
|
+
seed: number;
|
|
1489
|
+
logo: string;
|
|
1490
|
+
darkLogo: string;
|
|
1491
|
+
}
|
|
1492
|
+
interface Conference {
|
|
1493
|
+
name: string;
|
|
1494
|
+
abbrev: string;
|
|
1495
|
+
}
|
|
1496
|
+
type FullCoverageURL = Omit<LocalizedText, 'default'> & {
|
|
1497
|
+
en: LocalizedText['default'];
|
|
1498
|
+
};
|
|
1499
|
+
interface Game$4 {
|
|
1500
|
+
id: number;
|
|
1501
|
+
season: number;
|
|
1502
|
+
gameType: number;
|
|
1503
|
+
gameNumber: number;
|
|
1504
|
+
ifNecessary: boolean;
|
|
1505
|
+
venue: LocalizedText;
|
|
1506
|
+
neutralSite: boolean;
|
|
1507
|
+
startTimeUTC: string;
|
|
1508
|
+
easternUTCOffset: string;
|
|
1509
|
+
venueUTCOffset: string;
|
|
1510
|
+
venueTimezone: string;
|
|
1511
|
+
gameState: string;
|
|
1512
|
+
gameScheduleState: string;
|
|
1513
|
+
tvBroadcasts: TvBroadcast[];
|
|
1514
|
+
awayTeam: Team$6;
|
|
1515
|
+
homeTeam: Team$6;
|
|
1516
|
+
gameCenterLink: string;
|
|
1517
|
+
periodDescriptor: PeriodDescriptor$6;
|
|
1518
|
+
seriesStatus: SeriesStatus$1;
|
|
1519
|
+
gameOutcome: GameOutcome$3;
|
|
1520
|
+
}
|
|
1521
|
+
interface Team$6 {
|
|
1522
|
+
id: number;
|
|
1523
|
+
commonName: LocalizedText;
|
|
1524
|
+
placeName: LocalizedText;
|
|
1525
|
+
placeNameWithPreposition: LocalizedText;
|
|
1526
|
+
abbrev: TeamAbbrev;
|
|
1527
|
+
score: number;
|
|
1528
|
+
}
|
|
1529
|
+
interface GameOutcome$3 {
|
|
1530
|
+
lastPeriodType: string;
|
|
1531
|
+
}
|
|
1532
|
+
interface PeriodDescriptor$6 {
|
|
1533
|
+
number: number;
|
|
1534
|
+
periodType: string;
|
|
1535
|
+
maxRegulationPeriods: number;
|
|
1536
|
+
}
|
|
1537
|
+
interface SeriesStatus$1 {
|
|
1538
|
+
topSeedWins: number;
|
|
1539
|
+
bottomSeedWins: number;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
type PostalCodeInfo = Array<{
|
|
1543
|
+
stateProvince: string;
|
|
1544
|
+
networkType?: string;
|
|
1545
|
+
county?: string;
|
|
1546
|
+
teamName: LocalizedText;
|
|
1547
|
+
postalCode: string;
|
|
1548
|
+
country: string;
|
|
1549
|
+
city: string;
|
|
1550
|
+
}>;
|
|
1551
|
+
interface LocationInfo {
|
|
1552
|
+
country: string;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
interface PPTReplayGoal extends BasePPTReplay {
|
|
1556
|
+
goal: Goal$1;
|
|
1557
|
+
}
|
|
1558
|
+
interface PPTReplayEvent extends BasePPTReplay {
|
|
1559
|
+
}
|
|
1560
|
+
interface BasePPTReplay {
|
|
1561
|
+
id: number;
|
|
1562
|
+
gameDate: string;
|
|
1563
|
+
awayTeam: Team$5;
|
|
1564
|
+
homeTeam: Team$5;
|
|
1565
|
+
gameState: GameState;
|
|
1566
|
+
gameType: number;
|
|
1567
|
+
}
|
|
1568
|
+
interface Team$5 {
|
|
1569
|
+
id: number;
|
|
1570
|
+
name: LocalizedText;
|
|
1571
|
+
abbrev: string;
|
|
1572
|
+
placeName: LocalizedText;
|
|
1573
|
+
placeNameWithPreposition: LocalizedText;
|
|
1574
|
+
logo: string;
|
|
1575
|
+
darkLogo: string;
|
|
1576
|
+
}
|
|
1577
|
+
interface Goal$1 {
|
|
1578
|
+
periodDescriptor: PeriodDescriptor$5;
|
|
1579
|
+
situationCode: string;
|
|
1580
|
+
strength: Strength;
|
|
1581
|
+
playerId: number;
|
|
1582
|
+
firstName: LocalizedText;
|
|
1583
|
+
lastName: LocalizedText;
|
|
1584
|
+
name: LocalizedText;
|
|
1585
|
+
teamAbbrev: LocalizedText;
|
|
1586
|
+
headshot: string;
|
|
1587
|
+
logoUrl: string;
|
|
1588
|
+
goalsToDate: number;
|
|
1589
|
+
sweaterNumber: number;
|
|
1590
|
+
awayScore: number;
|
|
1591
|
+
homeScore: number;
|
|
1592
|
+
leadingTeamAbbrev?: LocalizedText;
|
|
1593
|
+
timeInPeriod: string;
|
|
1594
|
+
shotType: string;
|
|
1595
|
+
goalModifier: GoalModifier;
|
|
1596
|
+
assists: Player$1[];
|
|
1597
|
+
pptReplayUrl: string;
|
|
1598
|
+
homeTeamDefendingSide: DefendingSide;
|
|
1599
|
+
isHome: boolean;
|
|
1600
|
+
eventId: number;
|
|
1601
|
+
highlightClip?: number;
|
|
1602
|
+
highlightClipFr?: number;
|
|
1603
|
+
highlightClipSharingUrl?: string;
|
|
1604
|
+
highlightClipSharingUrlFr?: string;
|
|
1605
|
+
}
|
|
1606
|
+
interface Player$1 {
|
|
1607
|
+
playerId: number;
|
|
1608
|
+
firstName: LocalizedText;
|
|
1609
|
+
lastName: LocalizedText;
|
|
1610
|
+
name: LocalizedText;
|
|
1611
|
+
assistsToDate: number;
|
|
1612
|
+
sweaterNumber: number;
|
|
1613
|
+
}
|
|
1614
|
+
interface PeriodDescriptor$5 {
|
|
1615
|
+
number: number;
|
|
1616
|
+
periodType: PeriodType;
|
|
1617
|
+
maxRegulationPeriods: number;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
interface GamecenterReports {
|
|
1621
|
+
seasonSeries: SeasonSeriesGame[];
|
|
1622
|
+
seasonSeriesWins: {
|
|
1623
|
+
awayTeamWins: number;
|
|
1624
|
+
homeTeamWins: number;
|
|
1625
|
+
};
|
|
1626
|
+
gameInfo: GameInfo;
|
|
1627
|
+
teamSeasonStats?: TeamSeasonStats$1;
|
|
1628
|
+
last10Record?: Last10Record;
|
|
1629
|
+
gameVideo?: GameVideo;
|
|
1630
|
+
linescore?: Linescore;
|
|
1631
|
+
shotsByPeriod?: ByPeriod[];
|
|
1632
|
+
teamGameStats?: TeamGameStat$1[];
|
|
1633
|
+
gameReports?: GameReports;
|
|
1634
|
+
}
|
|
1635
|
+
interface GameInfo {
|
|
1636
|
+
referees: LocalizedText[];
|
|
1637
|
+
linesmen: LocalizedText[];
|
|
1638
|
+
awayTeam: TeamInfo;
|
|
1639
|
+
homeTeam: TeamInfo;
|
|
1640
|
+
}
|
|
1641
|
+
interface TeamInfo {
|
|
1642
|
+
headCoach: LocalizedText;
|
|
1643
|
+
scratches: ScratchedPlayer[];
|
|
1644
|
+
}
|
|
1645
|
+
interface ScratchedPlayer {
|
|
1646
|
+
id: number;
|
|
1647
|
+
firstName: LocalizedText;
|
|
1648
|
+
lastName: LocalizedText;
|
|
1649
|
+
}
|
|
1650
|
+
interface GameReports {
|
|
1651
|
+
gameSummary: string;
|
|
1652
|
+
eventSummary: string;
|
|
1653
|
+
playByPlay: string;
|
|
1654
|
+
faceoffSummary: string;
|
|
1655
|
+
faceoffComparison: string;
|
|
1656
|
+
rosters: string;
|
|
1657
|
+
shotSummary: string;
|
|
1658
|
+
shiftChart?: string;
|
|
1659
|
+
toiAway: string;
|
|
1660
|
+
toiHome: string;
|
|
1661
|
+
shootoutSummary?: string;
|
|
1662
|
+
}
|
|
1663
|
+
interface GameVideo {
|
|
1664
|
+
threeMinRecap: number;
|
|
1665
|
+
threeMinRecapFr: number;
|
|
1666
|
+
condensedGame: number;
|
|
1667
|
+
condensedGameFr: number;
|
|
1668
|
+
}
|
|
1669
|
+
interface Last10Record {
|
|
1670
|
+
contextLabel: 'last_10_games';
|
|
1671
|
+
contextSeason: number;
|
|
1672
|
+
awayTeam: Last10RecordAwayTeam;
|
|
1673
|
+
homeTeam: Last10RecordAwayTeam;
|
|
1674
|
+
}
|
|
1675
|
+
interface Last10RecordAwayTeam {
|
|
1676
|
+
record: string;
|
|
1677
|
+
streakType: StreakType;
|
|
1678
|
+
streak: number;
|
|
1679
|
+
pastGameResults: PastGameResult[];
|
|
1680
|
+
}
|
|
1681
|
+
interface PastGameResult {
|
|
1682
|
+
opponentAbbrev: string;
|
|
1683
|
+
gameResult: GameResult;
|
|
1684
|
+
}
|
|
1685
|
+
type GameResult = 'L' | 'OTW' | 'W' | 'OTL' | 'SOL' | 'SOW';
|
|
1686
|
+
type StreakType = 'L' | 'O' | 'W';
|
|
1687
|
+
interface Linescore {
|
|
1688
|
+
byPeriod: ByPeriod[];
|
|
1689
|
+
totals: Totals;
|
|
1690
|
+
shootout?: Shootout$1;
|
|
1691
|
+
}
|
|
1692
|
+
interface ByPeriod {
|
|
1693
|
+
periodDescriptor: PeriodDescriptor$4;
|
|
1694
|
+
away: number;
|
|
1695
|
+
home: number;
|
|
1696
|
+
}
|
|
1697
|
+
interface PeriodDescriptor$4 {
|
|
1698
|
+
number: number;
|
|
1699
|
+
periodType: PeriodType;
|
|
1700
|
+
maxRegulationPeriods: number;
|
|
1701
|
+
}
|
|
1702
|
+
interface Shootout$1 {
|
|
1703
|
+
awayDecidingGoal: number;
|
|
1704
|
+
awayConversions: number;
|
|
1705
|
+
awayAttempts: number;
|
|
1706
|
+
homeDecidingGoal: number;
|
|
1707
|
+
homeConversions: number;
|
|
1708
|
+
homeAttempts: number;
|
|
1709
|
+
}
|
|
1710
|
+
interface Totals {
|
|
1711
|
+
away: number;
|
|
1712
|
+
home: number;
|
|
1713
|
+
}
|
|
1714
|
+
interface SeasonSeriesGame {
|
|
1715
|
+
id: number;
|
|
1716
|
+
season: number;
|
|
1717
|
+
gameType: number;
|
|
1718
|
+
gameDate: string;
|
|
1719
|
+
startTimeUTC: string;
|
|
1720
|
+
easternUTCOffset: UTCOffset;
|
|
1721
|
+
venueUTCOffset: UTCOffset;
|
|
1722
|
+
gameState: GameState;
|
|
1723
|
+
gameScheduleState: GameScheduleState;
|
|
1724
|
+
awayTeam: TeamDetail;
|
|
1725
|
+
homeTeam: TeamDetail;
|
|
1726
|
+
periodDescriptor?: PeriodDescriptor$4;
|
|
1727
|
+
gameCenterLink: string;
|
|
1728
|
+
gameOutcome: GameOutcome$2;
|
|
1729
|
+
clock?: Clock$1;
|
|
1730
|
+
}
|
|
1731
|
+
interface TeamDetail {
|
|
1732
|
+
id: number;
|
|
1733
|
+
abbrev: string;
|
|
1734
|
+
logo: string;
|
|
1735
|
+
score?: number;
|
|
1736
|
+
}
|
|
1737
|
+
interface Clock$1 {
|
|
1738
|
+
timeRemaining: string;
|
|
1739
|
+
secondsRemaining: number;
|
|
1740
|
+
running: boolean;
|
|
1741
|
+
inIntermission: boolean;
|
|
1742
|
+
}
|
|
1743
|
+
interface GameOutcome$2 {
|
|
1744
|
+
lastPeriodType: PeriodType;
|
|
1745
|
+
otPeriods?: number;
|
|
1746
|
+
}
|
|
1747
|
+
interface TeamGameStat$1 {
|
|
1748
|
+
category: Category$1;
|
|
1749
|
+
awayValue: number | string;
|
|
1750
|
+
homeValue: number | string;
|
|
1751
|
+
}
|
|
1752
|
+
type Category$1 = 'sog' | 'faceoffWinningPctg' | 'faceoffWins' | 'powerPlay' | 'powerPlayPctg' | 'pim' | 'hits' | 'blockedShots' | 'giveaways' | 'takeaways';
|
|
1753
|
+
interface TeamSeasonStats$1 {
|
|
1754
|
+
contextLabel: 'regular_season';
|
|
1755
|
+
contextSeason: number;
|
|
1756
|
+
awayTeam: TeamSeasonStatsDetail$1;
|
|
1757
|
+
homeTeam: TeamSeasonStatsDetail$1;
|
|
1758
|
+
}
|
|
1759
|
+
interface TeamSeasonStatsDetail$1 {
|
|
1760
|
+
ppPctg: number;
|
|
1761
|
+
pkPctg: number;
|
|
1762
|
+
faceoffWinningPctg: number;
|
|
1763
|
+
goalsForPerGamePlayed: number;
|
|
1764
|
+
goalsAgainstPerGamePlayed: number;
|
|
1765
|
+
ppPctgRank: number;
|
|
1766
|
+
pkPctgRank: number;
|
|
1767
|
+
faceoffWinningPctgRank: number;
|
|
1768
|
+
goalsForPerGamePlayedRank: number;
|
|
1769
|
+
goalsAgainstPerGamePlayedRank: number;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
interface LeagueSchedule {
|
|
1773
|
+
nextStartDate: string;
|
|
1774
|
+
previousStartDate: string;
|
|
1775
|
+
gameWeek: GameWeek$1[];
|
|
1776
|
+
oddsPartners: OddsPartner$1[];
|
|
1777
|
+
preSeasonStartDate: string;
|
|
1778
|
+
regularSeasonStartDate: string;
|
|
1779
|
+
regularSeasonEndDate: string;
|
|
1780
|
+
playoffEndDate: string;
|
|
1781
|
+
numberOfGames: number;
|
|
1782
|
+
}
|
|
1783
|
+
interface GameWeek$1 {
|
|
1784
|
+
date: string;
|
|
1785
|
+
dayAbbrev: DayAbbrev;
|
|
1786
|
+
numberOfGames: number;
|
|
1787
|
+
datePromo: unknown[];
|
|
1788
|
+
games: Game$3[];
|
|
1789
|
+
}
|
|
1790
|
+
interface Game$3 {
|
|
1791
|
+
id: number;
|
|
1792
|
+
season: number;
|
|
1793
|
+
gameType: number;
|
|
1794
|
+
venue: LocalizedText;
|
|
1795
|
+
neutralSite: boolean;
|
|
1796
|
+
startTimeUTC: string;
|
|
1797
|
+
easternUTCOffset: UTCOffset;
|
|
1798
|
+
venueUTCOffset: UTCOffset;
|
|
1799
|
+
venueTimezone: string;
|
|
1800
|
+
gameState: GameState;
|
|
1801
|
+
gameScheduleState: GameScheduleState;
|
|
1802
|
+
tvBroadcasts: TvBroadcast[];
|
|
1803
|
+
awayTeam: Team$4;
|
|
1804
|
+
homeTeam: Team$4;
|
|
1805
|
+
periodDescriptor: PeriodDescriptor$3;
|
|
1806
|
+
ticketsLink?: string;
|
|
1807
|
+
ticketsLinkFr?: string;
|
|
1808
|
+
gameCenterLink: string;
|
|
1809
|
+
gameOutcome?: GameOutcome$1;
|
|
1810
|
+
winningGoalie?: WinningGoalie;
|
|
1811
|
+
winningGoalScorer?: WinningGoalScorer;
|
|
1812
|
+
threeMinRecap?: string;
|
|
1813
|
+
threeMinRecapFr?: string;
|
|
1814
|
+
condensedGame?: string;
|
|
1815
|
+
condensedGameFr?: string;
|
|
1816
|
+
}
|
|
1817
|
+
interface Team$4 {
|
|
1818
|
+
id: number;
|
|
1819
|
+
commonName: LocalizedText;
|
|
1820
|
+
placeName: LocalizedText;
|
|
1821
|
+
placeNameWithPreposition: LocalizedText;
|
|
1822
|
+
abbrev: TeamAbbrev;
|
|
1823
|
+
logo: string;
|
|
1824
|
+
darkLogo: string;
|
|
1825
|
+
awaySplitSquad: boolean;
|
|
1826
|
+
radioLink?: string;
|
|
1827
|
+
odds?: Odd$1[];
|
|
1828
|
+
score?: number;
|
|
1829
|
+
}
|
|
1830
|
+
interface Odd$1 {
|
|
1831
|
+
providerId: number;
|
|
1832
|
+
value: string;
|
|
1833
|
+
}
|
|
1834
|
+
interface GameOutcome$1 {
|
|
1835
|
+
lastPeriodType: PeriodType;
|
|
1836
|
+
}
|
|
1837
|
+
interface PeriodDescriptor$3 {
|
|
1838
|
+
number: number;
|
|
1839
|
+
periodType: PeriodType;
|
|
1840
|
+
maxRegulationPeriods: number;
|
|
1841
|
+
}
|
|
1842
|
+
interface WinningGoalScorer {
|
|
1843
|
+
playerId: number;
|
|
1844
|
+
firstInitial: LocalizedText;
|
|
1845
|
+
lastName: LocalizedText;
|
|
1846
|
+
}
|
|
1847
|
+
interface WinningGoalie {
|
|
1848
|
+
playerId: number;
|
|
1849
|
+
firstInitial: LocalizedText;
|
|
1850
|
+
lastName: LocalizedText;
|
|
1851
|
+
}
|
|
1852
|
+
interface OddsPartner$1 {
|
|
1853
|
+
partnerId: number;
|
|
1854
|
+
country: string;
|
|
1855
|
+
name: string;
|
|
1856
|
+
imageUrl: string;
|
|
1857
|
+
siteUrl: string;
|
|
1858
|
+
bgColor: HexColorCode;
|
|
1859
|
+
textColor: HexColorCode;
|
|
1860
|
+
accentColor: HexColorCode;
|
|
1861
|
+
}
|
|
1862
|
+
interface ScheduleCalendar {
|
|
1863
|
+
endDate: string;
|
|
1864
|
+
nextStartDate: string;
|
|
1865
|
+
previousStartDate: string;
|
|
1866
|
+
startDate: string;
|
|
1867
|
+
teams: CalendarTeam[];
|
|
1868
|
+
}
|
|
1869
|
+
interface CalendarTeam {
|
|
1870
|
+
id: number;
|
|
1871
|
+
seasonId: number;
|
|
1872
|
+
commonName: LocalizedText;
|
|
1873
|
+
abbrev: string;
|
|
1874
|
+
name: LocalizedText;
|
|
1875
|
+
placeNameWithPreposition: LocalizedText;
|
|
1876
|
+
placeName: LocalizedText;
|
|
1877
|
+
logo: string;
|
|
1878
|
+
darkLogo: string;
|
|
1879
|
+
french: boolean;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
interface Score {
|
|
1883
|
+
prevDate: string;
|
|
1884
|
+
currentDate: string;
|
|
1885
|
+
nextDate: string;
|
|
1886
|
+
gameWeek: GameWeek[];
|
|
1887
|
+
oddsPartners: OddsPartner[];
|
|
1888
|
+
games: Game$2[];
|
|
1889
|
+
}
|
|
1890
|
+
interface GameWeek {
|
|
1891
|
+
date: string;
|
|
1892
|
+
dayAbbrev: string;
|
|
1893
|
+
numberOfGames: number;
|
|
1894
|
+
}
|
|
1895
|
+
interface Game$2 {
|
|
1896
|
+
id: number;
|
|
1897
|
+
season: number;
|
|
1898
|
+
gameType: number;
|
|
1899
|
+
gameDate: string;
|
|
1900
|
+
venue: LocalizedText;
|
|
1901
|
+
startTimeUTC: string;
|
|
1902
|
+
easternUTCOffset: UTCOffset;
|
|
1903
|
+
venueUTCOffset: UTCOffset;
|
|
1904
|
+
tvBroadcasts: TvBroadcast[];
|
|
1905
|
+
gameState: GameState;
|
|
1906
|
+
gameScheduleState: GameScheduleState;
|
|
1907
|
+
awayTeam: Team$3;
|
|
1908
|
+
homeTeam: Team$3;
|
|
1909
|
+
gameCenterLink: string;
|
|
1910
|
+
neutralSite: boolean;
|
|
1911
|
+
venueTimezone: string;
|
|
1912
|
+
ticketsLink: string;
|
|
1913
|
+
ticketsLinkFr: string;
|
|
1914
|
+
teamLeaders: TeamLeader[];
|
|
1915
|
+
}
|
|
1916
|
+
interface Team$3 {
|
|
1917
|
+
id: number;
|
|
1918
|
+
name: LocalizedText;
|
|
1919
|
+
abbrev: TeamAbbrev;
|
|
1920
|
+
record: string;
|
|
1921
|
+
logo: string;
|
|
1922
|
+
odds: Odd[];
|
|
1923
|
+
}
|
|
1924
|
+
interface Odd {
|
|
1925
|
+
providerId: number;
|
|
1926
|
+
value: string;
|
|
1927
|
+
}
|
|
1928
|
+
interface TeamLeader {
|
|
1929
|
+
id: number;
|
|
1930
|
+
firstName: LocalizedText;
|
|
1931
|
+
lastName: LocalizedText;
|
|
1932
|
+
headshot: string;
|
|
1933
|
+
teamAbbrev: TeamAbbrev;
|
|
1934
|
+
sweaterNumber: number;
|
|
1935
|
+
position: PositionCode;
|
|
1936
|
+
category: LeaderCategory;
|
|
1937
|
+
value: number;
|
|
1938
|
+
}
|
|
1939
|
+
type LeaderCategory = 'goals' | 'assists' | 'wins';
|
|
1940
|
+
interface OddsPartner {
|
|
1941
|
+
partnerId: number;
|
|
1942
|
+
country: string;
|
|
1943
|
+
name: string;
|
|
1944
|
+
imageUrl: string;
|
|
1945
|
+
siteUrl: string;
|
|
1946
|
+
bgColor: HexColorCode;
|
|
1947
|
+
textColor: HexColorCode;
|
|
1948
|
+
accentColor: HexColorCode;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
interface Scoreboard {
|
|
1952
|
+
focusedDate: string;
|
|
1953
|
+
focusedDateCount: number;
|
|
1954
|
+
gamesByDate: GamesByDate[];
|
|
1955
|
+
}
|
|
1956
|
+
interface GamesByDate {
|
|
1957
|
+
date: string;
|
|
1958
|
+
games: Game$1[];
|
|
1959
|
+
}
|
|
1960
|
+
interface Game$1 {
|
|
1961
|
+
id: number;
|
|
1962
|
+
season: number;
|
|
1963
|
+
gameType: number;
|
|
1964
|
+
gameDate: string;
|
|
1965
|
+
gameCenterLink: string;
|
|
1966
|
+
venue: LocalizedText;
|
|
1967
|
+
startTimeUTC: string;
|
|
1968
|
+
easternUTCOffset: UTCOffset;
|
|
1969
|
+
venueUTCOffset: UTCOffset;
|
|
1970
|
+
tvBroadcasts: TvBroadcast[];
|
|
1971
|
+
gameState: GameState;
|
|
1972
|
+
gameScheduleState: GameScheduleState;
|
|
1973
|
+
awayTeam: Team$2;
|
|
1974
|
+
homeTeam: Team$2;
|
|
1975
|
+
ticketsLink: string;
|
|
1976
|
+
ticketsLinkFr: string;
|
|
1977
|
+
period?: number;
|
|
1978
|
+
periodDescriptor?: PeriodDescriptor$2;
|
|
1979
|
+
threeMinRecap?: string;
|
|
1980
|
+
threeMinRecapFr?: string;
|
|
1981
|
+
}
|
|
1982
|
+
interface Team$2 {
|
|
1983
|
+
id: number;
|
|
1984
|
+
name: LocalizedText;
|
|
1985
|
+
commonName: LocalizedText;
|
|
1986
|
+
placeNameWithPreposition: LocalizedText;
|
|
1987
|
+
abbrev: TeamAbbrev;
|
|
1988
|
+
score?: number;
|
|
1989
|
+
logo: string;
|
|
1990
|
+
record?: string;
|
|
1991
|
+
}
|
|
1992
|
+
interface PeriodDescriptor$2 {
|
|
1993
|
+
number: number;
|
|
1994
|
+
periodType: PeriodType;
|
|
1995
|
+
maxRegulationPeriods: number;
|
|
626
1996
|
}
|
|
627
1997
|
|
|
628
1998
|
interface NHLStandings {
|
|
@@ -679,7 +2049,7 @@ interface TeamStanding {
|
|
|
679
2049
|
leagueSequence: number;
|
|
680
2050
|
losses: number;
|
|
681
2051
|
otLosses: number;
|
|
682
|
-
placeName:
|
|
2052
|
+
placeName: LocalizedText;
|
|
683
2053
|
pointPctg: number;
|
|
684
2054
|
points: number;
|
|
685
2055
|
regulationPlusOtWinPctg: number;
|
|
@@ -702,9 +2072,9 @@ interface TeamStanding {
|
|
|
702
2072
|
shootoutWins: number;
|
|
703
2073
|
streakCode: StreakCode;
|
|
704
2074
|
streakCount: number;
|
|
705
|
-
teamName:
|
|
706
|
-
teamCommonName:
|
|
707
|
-
teamAbbrev:
|
|
2075
|
+
teamName: LocalizedText;
|
|
2076
|
+
teamCommonName: LocalizedText;
|
|
2077
|
+
teamAbbrev: LocalizedText;
|
|
708
2078
|
teamLogo: string;
|
|
709
2079
|
ties: number;
|
|
710
2080
|
waiversSequence: number;
|
|
@@ -719,7 +2089,6 @@ type ConferenceName = 'Eastern' | 'Western' | 'Prince of Wales' | 'Clarence Camp
|
|
|
719
2089
|
type DivisionAbbrev = 'A' | 'C' | 'P' | 'M' | 'E' | 'W' | 'CEN' | 'ATL' | 'NE' | 'PAC' | 'NW' | 'SE' | 'ADM' | 'SMY' | 'PTK' | 'NRS' | 'EST' | 'WST' | 'NTH' | 'CDN' | 'AMR';
|
|
720
2090
|
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
2091
|
type StreakCode = 'W' | 'L' | 'OT' | 'T';
|
|
722
|
-
|
|
723
2092
|
interface NHLStandingsSeason {
|
|
724
2093
|
currentDate: string;
|
|
725
2094
|
seasons: SeasonDetails[];
|
|
@@ -741,15 +2110,15 @@ interface SeasonDetails {
|
|
|
741
2110
|
}
|
|
742
2111
|
|
|
743
2112
|
interface TeamProspects {
|
|
744
|
-
forwards: Forward[];
|
|
745
|
-
defensemen: Defenseman[];
|
|
746
|
-
goalies: Goalie[];
|
|
2113
|
+
forwards: Forward$1[];
|
|
2114
|
+
defensemen: Defenseman$1[];
|
|
2115
|
+
goalies: Goalie$3[];
|
|
747
2116
|
}
|
|
748
|
-
interface
|
|
2117
|
+
interface BaseProspect {
|
|
749
2118
|
id: number;
|
|
750
2119
|
headshot: string;
|
|
751
|
-
firstName:
|
|
752
|
-
lastName:
|
|
2120
|
+
firstName: LocalizedText;
|
|
2121
|
+
lastName: LocalizedText;
|
|
753
2122
|
sweaterNumber?: number;
|
|
754
2123
|
shootsCatches: ShootsCatches;
|
|
755
2124
|
heightInInches: number;
|
|
@@ -757,17 +2126,50 @@ interface PlayerBase {
|
|
|
757
2126
|
heightInCentimeters: number;
|
|
758
2127
|
weightInKilograms: number;
|
|
759
2128
|
birthDate: string;
|
|
760
|
-
birthCity?:
|
|
761
|
-
birthCountry:
|
|
762
|
-
birthStateProvince?:
|
|
2129
|
+
birthCity?: LocalizedText;
|
|
2130
|
+
birthCountry: string;
|
|
2131
|
+
birthStateProvince?: LocalizedText;
|
|
763
2132
|
}
|
|
764
|
-
interface Defenseman extends
|
|
2133
|
+
interface Defenseman$1 extends BaseProspect {
|
|
765
2134
|
positionCode: 'D';
|
|
766
2135
|
}
|
|
767
|
-
interface Forward extends
|
|
2136
|
+
interface Forward$1 extends BaseProspect {
|
|
2137
|
+
positionCode: Exclude<PositionCode, 'D' | 'G'>;
|
|
2138
|
+
}
|
|
2139
|
+
interface Goalie$3 extends BaseProspect {
|
|
2140
|
+
positionCode: 'G';
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
type TeamRosterSeasons = Array<Season>;
|
|
2144
|
+
interface TeamRoster {
|
|
2145
|
+
forwards: Forward[];
|
|
2146
|
+
defensemen: Defenseman[];
|
|
2147
|
+
goalies: Goalie$2[];
|
|
2148
|
+
}
|
|
2149
|
+
interface Player {
|
|
2150
|
+
id: number;
|
|
2151
|
+
headshot: string;
|
|
2152
|
+
firstName: LocalizedText;
|
|
2153
|
+
lastName: LocalizedText;
|
|
2154
|
+
sweaterNumber?: number;
|
|
2155
|
+
positionCode: PositionCode;
|
|
2156
|
+
shootsCatches?: ShootsCatches;
|
|
2157
|
+
heightInInches?: number;
|
|
2158
|
+
weightInPounds?: number;
|
|
2159
|
+
heightInCentimeters?: number;
|
|
2160
|
+
weightInKilograms?: number;
|
|
2161
|
+
birthDate: string;
|
|
2162
|
+
birthCity?: LocalizedText;
|
|
2163
|
+
birthCountry: string;
|
|
2164
|
+
birthStateProvince?: LocalizedText;
|
|
2165
|
+
}
|
|
2166
|
+
interface Forward extends Player {
|
|
768
2167
|
positionCode: Exclude<PositionCode, 'D' | 'G'>;
|
|
769
2168
|
}
|
|
770
|
-
interface
|
|
2169
|
+
interface Defenseman extends Player {
|
|
2170
|
+
positionCode: 'D';
|
|
2171
|
+
}
|
|
2172
|
+
interface Goalie$2 extends Player {
|
|
771
2173
|
positionCode: 'G';
|
|
772
2174
|
}
|
|
773
2175
|
|
|
@@ -778,12 +2180,29 @@ interface TeamScheduleSeason {
|
|
|
778
2180
|
clubUTCOffset: string;
|
|
779
2181
|
games: Game[];
|
|
780
2182
|
}
|
|
2183
|
+
interface TeamScheduleMonth {
|
|
2184
|
+
currentMonth: string;
|
|
2185
|
+
nextMonth?: string;
|
|
2186
|
+
calendarUrl?: string;
|
|
2187
|
+
clubTimezone: string;
|
|
2188
|
+
clubUTCOffset: string;
|
|
2189
|
+
games: Game[];
|
|
2190
|
+
previousMonth?: string;
|
|
2191
|
+
}
|
|
2192
|
+
interface TeamScheduleWeek {
|
|
2193
|
+
nextStartDate?: string;
|
|
2194
|
+
calendarUrl?: string;
|
|
2195
|
+
clubTimezone: string;
|
|
2196
|
+
clubUTCOffset: string;
|
|
2197
|
+
games: Game[];
|
|
2198
|
+
previousStartDate?: string;
|
|
2199
|
+
}
|
|
781
2200
|
interface Game {
|
|
782
2201
|
id: number;
|
|
783
2202
|
season: number;
|
|
784
2203
|
gameType: number;
|
|
785
2204
|
gameDate: string;
|
|
786
|
-
venue:
|
|
2205
|
+
venue: LocalizedText;
|
|
787
2206
|
neutralSite: boolean;
|
|
788
2207
|
startTimeUTC: string;
|
|
789
2208
|
easternUTCOffset: string;
|
|
@@ -792,130 +2211,437 @@ interface Game {
|
|
|
792
2211
|
gameState: GameState;
|
|
793
2212
|
gameScheduleState: GameScheduleState;
|
|
794
2213
|
tvBroadcasts: TvBroadcast[];
|
|
795
|
-
awayTeam: Team;
|
|
796
|
-
homeTeam: Team;
|
|
797
|
-
periodDescriptor: PeriodDescriptor;
|
|
2214
|
+
awayTeam: Team$1;
|
|
2215
|
+
homeTeam: Team$1;
|
|
2216
|
+
periodDescriptor: PeriodDescriptor$1;
|
|
798
2217
|
gameOutcome?: GameOutcome;
|
|
799
2218
|
winningGoalie?: WinningGoal;
|
|
2219
|
+
gameCenterLink?: string;
|
|
2220
|
+
seriesStatus?: SeriesStatus;
|
|
2221
|
+
seriesUrl?: string;
|
|
800
2222
|
winningGoalScorer?: WinningGoal;
|
|
2223
|
+
specialEvent?: SpecialEvent;
|
|
801
2224
|
threeMinRecap?: string;
|
|
802
|
-
threeMinRecapFr?: string;
|
|
803
2225
|
condensedGame?: string;
|
|
2226
|
+
threeMinRecapFr?: string;
|
|
804
2227
|
condensedGameFr?: string;
|
|
805
|
-
gameCenterLink?: string;
|
|
806
2228
|
ticketsLink?: string;
|
|
807
2229
|
ticketsLinkFr?: string;
|
|
808
|
-
|
|
2230
|
+
alternateBroadcasts?: AlternateBroadcast[];
|
|
809
2231
|
}
|
|
810
|
-
interface Team {
|
|
2232
|
+
interface Team$1 {
|
|
811
2233
|
id: number;
|
|
812
|
-
commonName:
|
|
813
|
-
placeName:
|
|
814
|
-
placeNameWithPreposition:
|
|
815
|
-
abbrev:
|
|
816
|
-
logo
|
|
817
|
-
darkLogo
|
|
2234
|
+
commonName: LocalizedText;
|
|
2235
|
+
placeName: LocalizedText;
|
|
2236
|
+
placeNameWithPreposition: LocalizedText;
|
|
2237
|
+
abbrev: TeamAbbrev;
|
|
2238
|
+
logo?: string;
|
|
2239
|
+
darkLogo?: string;
|
|
2240
|
+
homeSplitSquad?: boolean;
|
|
818
2241
|
awaySplitSquad?: boolean;
|
|
819
2242
|
score?: number;
|
|
2243
|
+
radioLink?: string;
|
|
820
2244
|
airlineLink?: string;
|
|
821
2245
|
airlineDesc?: string;
|
|
822
2246
|
hotelLink?: string;
|
|
823
2247
|
hotelDesc?: string;
|
|
824
|
-
radioLink?: string;
|
|
825
2248
|
promoLink?: string;
|
|
826
2249
|
promoDesc?: string;
|
|
827
|
-
homeSplitSquad?: boolean;
|
|
828
2250
|
}
|
|
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
2251
|
interface GameOutcome {
|
|
831
2252
|
lastPeriodType: PeriodType;
|
|
832
2253
|
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
type GameState = 'FINAL' | 'OFF' | 'FUT' | 'LIVE';
|
|
836
|
-
interface PeriodDescriptor {
|
|
2254
|
+
interface PeriodDescriptor$1 {
|
|
2255
|
+
number?: number;
|
|
837
2256
|
periodType: PeriodType;
|
|
838
2257
|
maxRegulationPeriods: number;
|
|
2258
|
+
otPeriods?: number;
|
|
839
2259
|
}
|
|
840
2260
|
interface SpecialEvent {
|
|
841
2261
|
parentId: number;
|
|
842
|
-
name:
|
|
2262
|
+
name: LocalizedText;
|
|
2263
|
+
lightLogoUrl?: LocalizedText;
|
|
843
2264
|
}
|
|
844
|
-
interface
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
2265
|
+
interface SeriesStatus {
|
|
2266
|
+
round: number;
|
|
2267
|
+
seriesAbbrev: string;
|
|
2268
|
+
seriesTitle: string;
|
|
2269
|
+
seriesLetter: SeriesLetter$1;
|
|
2270
|
+
neededToWin: number;
|
|
2271
|
+
topSeedWins: number;
|
|
2272
|
+
bottomSeedWins: number;
|
|
2273
|
+
gameNumberOfSeries: number;
|
|
850
2274
|
}
|
|
851
2275
|
interface WinningGoal {
|
|
852
2276
|
playerId: number;
|
|
853
|
-
firstInitial:
|
|
854
|
-
lastName:
|
|
2277
|
+
firstInitial: LocalizedText;
|
|
2278
|
+
lastName: LocalizedText;
|
|
2279
|
+
}
|
|
2280
|
+
interface AlternateBroadcast {
|
|
2281
|
+
country: CountryCode;
|
|
2282
|
+
descriptions: LocalizedText[];
|
|
855
2283
|
}
|
|
856
2284
|
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
2285
|
+
interface TeamStats {
|
|
2286
|
+
season: string;
|
|
2287
|
+
gameType: number;
|
|
2288
|
+
skaters: Skater[];
|
|
2289
|
+
goalies: Goalie$1[];
|
|
2290
|
+
}
|
|
2291
|
+
interface Goalie$1 {
|
|
2292
|
+
playerId: number;
|
|
2293
|
+
headshot: string;
|
|
2294
|
+
firstName: LocalizedText;
|
|
2295
|
+
lastName: LocalizedText;
|
|
2296
|
+
gamesPlayed: number;
|
|
2297
|
+
gamesStarted: number;
|
|
2298
|
+
wins: number;
|
|
2299
|
+
losses: number;
|
|
2300
|
+
overtimeLosses: number;
|
|
2301
|
+
goalsAgainstAverage: number;
|
|
2302
|
+
savePercentage: number;
|
|
2303
|
+
shotsAgainst: number;
|
|
2304
|
+
saves: number;
|
|
2305
|
+
goalsAgainst: number;
|
|
2306
|
+
shutouts: number;
|
|
2307
|
+
goals: number;
|
|
2308
|
+
assists: number;
|
|
2309
|
+
points: number;
|
|
2310
|
+
penaltyMinutes: number;
|
|
2311
|
+
timeOnIce: number;
|
|
2312
|
+
}
|
|
2313
|
+
interface Skater {
|
|
2314
|
+
playerId: number;
|
|
2315
|
+
headshot: string;
|
|
2316
|
+
firstName: LocalizedText;
|
|
2317
|
+
lastName: LocalizedText;
|
|
2318
|
+
positionCode: PositionCode;
|
|
2319
|
+
gamesPlayed: number;
|
|
2320
|
+
goals: number;
|
|
2321
|
+
assists: number;
|
|
2322
|
+
points: number;
|
|
2323
|
+
plusMinus: number;
|
|
2324
|
+
penaltyMinutes: number;
|
|
2325
|
+
powerPlayGoals: number;
|
|
2326
|
+
shorthandedGoals: number;
|
|
2327
|
+
gameWinningGoals: number;
|
|
2328
|
+
overtimeGoals: number;
|
|
2329
|
+
shots: number;
|
|
2330
|
+
shootingPctg: number;
|
|
2331
|
+
avgTimeOnIcePerGame: number;
|
|
2332
|
+
avgShiftsPerGame: number;
|
|
2333
|
+
faceoffWinPctg: number;
|
|
2334
|
+
}
|
|
2335
|
+
interface TeamStatsSeason {
|
|
2336
|
+
season: number;
|
|
2337
|
+
gameTypes: (2 | 3)[];
|
|
2338
|
+
}
|
|
876
2339
|
|
|
877
|
-
|
|
878
|
-
|
|
2340
|
+
interface WhereToWatch {
|
|
2341
|
+
id: string;
|
|
2342
|
+
active: boolean;
|
|
2343
|
+
countryCode: string;
|
|
2344
|
+
countryName: string;
|
|
2345
|
+
streamingName?: string;
|
|
2346
|
+
streamingSiteUrl?: string;
|
|
2347
|
+
streamingLogoUrl?: string;
|
|
2348
|
+
primaryBroadcastName?: string;
|
|
2349
|
+
primaryBroadcastSiteUrl?: string;
|
|
2350
|
+
primaryBroadcastLogoUrl?: string;
|
|
2351
|
+
secondaryBroadcastName?: string;
|
|
2352
|
+
secondaryBroadcastSiteUrl?: string;
|
|
2353
|
+
secondaryBroadcastLogoUrl?: string;
|
|
2354
|
+
}
|
|
879
2355
|
|
|
880
|
-
type
|
|
2356
|
+
type Category = 'points' | 'goals' | 'assists' | 'plusMinus';
|
|
2357
|
+
interface WSCGameStory {
|
|
2358
|
+
id: number;
|
|
2359
|
+
season: number;
|
|
2360
|
+
gameType: number;
|
|
2361
|
+
limitedScoring: boolean;
|
|
2362
|
+
gameDate: string;
|
|
2363
|
+
venue: LocalizedText;
|
|
2364
|
+
venueLocation: LocalizedText;
|
|
2365
|
+
startTimeUTC: string;
|
|
2366
|
+
easternUTCOffset: UTCOffset;
|
|
2367
|
+
venueUTCOffset: UTCOffset;
|
|
2368
|
+
venueTimezone: string;
|
|
2369
|
+
tvBroadcasts: TvBroadcast[];
|
|
2370
|
+
gameState: GameState;
|
|
2371
|
+
gameScheduleState: 'OK';
|
|
2372
|
+
awayTeam: Team;
|
|
2373
|
+
homeTeam: Team;
|
|
2374
|
+
shootoutInUse: boolean;
|
|
2375
|
+
maxPeriods: number;
|
|
2376
|
+
regPeriods: number;
|
|
2377
|
+
otInUse: boolean;
|
|
2378
|
+
tiesInUse: boolean;
|
|
2379
|
+
preGameMatchup?: PreGameMatchup;
|
|
2380
|
+
summary?: Summary;
|
|
2381
|
+
periodDescriptor?: PeriodDescriptor;
|
|
2382
|
+
clock?: Clock;
|
|
2383
|
+
}
|
|
2384
|
+
interface Team {
|
|
2385
|
+
id: number;
|
|
2386
|
+
name: LocalizedText;
|
|
2387
|
+
abbrev: string;
|
|
2388
|
+
placeName: LocalizedText;
|
|
2389
|
+
logo: string;
|
|
2390
|
+
record?: string;
|
|
2391
|
+
score?: number;
|
|
2392
|
+
sog?: number;
|
|
2393
|
+
radioLink?: string;
|
|
2394
|
+
}
|
|
2395
|
+
interface Clock {
|
|
2396
|
+
timeRemaining: string;
|
|
2397
|
+
secondsRemaining: number;
|
|
2398
|
+
running: boolean;
|
|
2399
|
+
inIntermission: boolean;
|
|
2400
|
+
}
|
|
2401
|
+
interface PeriodDescriptor {
|
|
2402
|
+
number: number;
|
|
2403
|
+
periodType: PeriodType;
|
|
2404
|
+
maxRegulationPeriods: number;
|
|
2405
|
+
}
|
|
2406
|
+
interface PreGameMatchup {
|
|
2407
|
+
skatingLeaders: SkatingLeaders;
|
|
2408
|
+
goalieComparison: GoalieComparison;
|
|
2409
|
+
teamSeasonStats: TeamSeasonStats;
|
|
2410
|
+
}
|
|
2411
|
+
interface GoalieComparison {
|
|
2412
|
+
season: number;
|
|
2413
|
+
gameTypes: number[];
|
|
2414
|
+
awayTeam: Goalie[];
|
|
2415
|
+
homeTeam: Goalie[];
|
|
2416
|
+
}
|
|
2417
|
+
interface Goalie {
|
|
2418
|
+
playerId: number;
|
|
2419
|
+
name: LocalizedText;
|
|
2420
|
+
firstName: LocalizedText;
|
|
2421
|
+
lastName: LocalizedText;
|
|
2422
|
+
sweaterNumber: number;
|
|
2423
|
+
headshot: string;
|
|
2424
|
+
positionCode: PositionCode;
|
|
2425
|
+
gamesPlayed?: number;
|
|
2426
|
+
seasonPoints?: number;
|
|
2427
|
+
record?: string;
|
|
2428
|
+
gaa?: number;
|
|
2429
|
+
savePctg?: number;
|
|
2430
|
+
shutouts?: number;
|
|
2431
|
+
}
|
|
2432
|
+
interface SkatingLeaders {
|
|
2433
|
+
season: number;
|
|
2434
|
+
gameTypes: number[];
|
|
2435
|
+
gameLimit: number;
|
|
2436
|
+
leaders: Leader[];
|
|
2437
|
+
}
|
|
2438
|
+
interface Leader {
|
|
2439
|
+
category: Category;
|
|
2440
|
+
awayLeader: LeaderDetail;
|
|
2441
|
+
homeLeader: LeaderDetail;
|
|
2442
|
+
}
|
|
2443
|
+
interface LeaderDetail {
|
|
2444
|
+
playerId: number;
|
|
2445
|
+
name: LocalizedText;
|
|
2446
|
+
firstName: LocalizedText;
|
|
2447
|
+
lastName: LocalizedText;
|
|
2448
|
+
sweaterNumber: number;
|
|
2449
|
+
positionCode: PositionCode;
|
|
2450
|
+
headshot: string;
|
|
2451
|
+
value: number;
|
|
2452
|
+
}
|
|
2453
|
+
interface TeamSeasonStats {
|
|
2454
|
+
awayTeam: TeamSeasonStatsDetail;
|
|
2455
|
+
homeTeam: TeamSeasonStatsDetail;
|
|
2456
|
+
}
|
|
2457
|
+
interface TeamSeasonStatsDetail {
|
|
2458
|
+
ppPctg: number;
|
|
2459
|
+
pkPctg: number;
|
|
2460
|
+
faceoffWinningPctg: number;
|
|
2461
|
+
goalsForPerGamePlayed: number;
|
|
2462
|
+
goalsAgainstPerGamePlayed: number;
|
|
2463
|
+
ppPctgRank: number;
|
|
2464
|
+
pkPctgRank: number;
|
|
2465
|
+
faceoffWinningPctgRank: number;
|
|
2466
|
+
goalsForPerGamePlayedRank: number;
|
|
2467
|
+
goalsAgainstPerGamePlayedRank: number;
|
|
2468
|
+
}
|
|
2469
|
+
interface Summary {
|
|
2470
|
+
scoring: Scoring[];
|
|
2471
|
+
shootout: Shootout[];
|
|
2472
|
+
threeStars: ThreeStar[];
|
|
2473
|
+
teamGameStats: TeamGameStat[];
|
|
2474
|
+
}
|
|
2475
|
+
interface Scoring {
|
|
2476
|
+
periodDescriptor: PeriodDescriptor;
|
|
2477
|
+
goals: Goal[];
|
|
2478
|
+
}
|
|
2479
|
+
interface Goal {
|
|
2480
|
+
situationCode: string;
|
|
2481
|
+
eventId: number;
|
|
2482
|
+
strength: Strength;
|
|
2483
|
+
playerId: number;
|
|
2484
|
+
firstName: LocalizedText;
|
|
2485
|
+
lastName: LocalizedText;
|
|
2486
|
+
name: LocalizedText;
|
|
2487
|
+
teamAbbrev: LocalizedText;
|
|
2488
|
+
headshot: string;
|
|
2489
|
+
highlightClipSharingUrl?: string;
|
|
2490
|
+
highlightClip?: number;
|
|
2491
|
+
discreteClip?: number;
|
|
2492
|
+
goalsToDate: number;
|
|
2493
|
+
awayScore: number;
|
|
2494
|
+
homeScore: number;
|
|
2495
|
+
leadingTeamAbbrev?: LocalizedText;
|
|
2496
|
+
timeInPeriod: string;
|
|
2497
|
+
shotType: ShotType;
|
|
2498
|
+
goalModifier: GoalModifier;
|
|
2499
|
+
assists: Assist[];
|
|
2500
|
+
homeTeamDefendingSide: DefendingSide;
|
|
2501
|
+
isHome: boolean;
|
|
2502
|
+
highlightClipSharingUrlFr?: string;
|
|
2503
|
+
highlightClipFr?: number;
|
|
2504
|
+
discreteClipFr?: number;
|
|
2505
|
+
}
|
|
2506
|
+
interface Assist {
|
|
2507
|
+
playerId: number;
|
|
2508
|
+
firstName: LocalizedText;
|
|
2509
|
+
lastName: LocalizedText;
|
|
2510
|
+
name: LocalizedText;
|
|
2511
|
+
assistsToDate: number;
|
|
2512
|
+
sweaterNumber: number;
|
|
2513
|
+
}
|
|
2514
|
+
interface Shootout {
|
|
2515
|
+
sequence: number;
|
|
2516
|
+
playerId: number;
|
|
2517
|
+
teamAbbrev: LocalizedText;
|
|
2518
|
+
firstName: LocalizedText;
|
|
2519
|
+
lastName: LocalizedText;
|
|
2520
|
+
shotType: ShotType;
|
|
2521
|
+
result: 'save' | 'goal';
|
|
2522
|
+
headshot: string;
|
|
2523
|
+
gameWinner: boolean;
|
|
2524
|
+
discreteClip?: number;
|
|
2525
|
+
discreteClipFr?: number;
|
|
2526
|
+
}
|
|
2527
|
+
interface TeamGameStat {
|
|
2528
|
+
category: string;
|
|
2529
|
+
awayValue: number | string;
|
|
2530
|
+
homeValue: number | string;
|
|
2531
|
+
}
|
|
2532
|
+
interface ThreeStar {
|
|
2533
|
+
star: number;
|
|
2534
|
+
playerId: number;
|
|
2535
|
+
teamAbbrev: string;
|
|
2536
|
+
headshot: string;
|
|
2537
|
+
name: string;
|
|
2538
|
+
sweaterNo: number;
|
|
2539
|
+
position: PositionCode;
|
|
2540
|
+
goals?: number;
|
|
2541
|
+
assists?: number;
|
|
2542
|
+
points?: number;
|
|
2543
|
+
goalsAgainstAverage?: number;
|
|
2544
|
+
savePctg?: number;
|
|
2545
|
+
}
|
|
2546
|
+
type WSCPlayByPlay = Array<WSCPlayByPlayEvent>;
|
|
2547
|
+
interface WSCPlayByPlayEvent {
|
|
2548
|
+
id: number;
|
|
2549
|
+
eventId: number;
|
|
2550
|
+
period: number;
|
|
2551
|
+
timeInPeriod: string;
|
|
2552
|
+
secondsRemaining: number;
|
|
2553
|
+
situationCode: string;
|
|
2554
|
+
typeCode: number;
|
|
2555
|
+
typeDescKey: EventTypeDescKey;
|
|
2556
|
+
homeTeamDefendingSide: DefendingSide;
|
|
2557
|
+
sortOrder: number;
|
|
2558
|
+
utc: string;
|
|
2559
|
+
eventOwnerTeamId?: number;
|
|
2560
|
+
losingPlayerId?: number;
|
|
2561
|
+
winningPlayerId?: number;
|
|
2562
|
+
xCoord?: number;
|
|
2563
|
+
yCoord?: number;
|
|
2564
|
+
zoneCode?: ZoneCode;
|
|
2565
|
+
playerId?: number;
|
|
2566
|
+
reason?: Reason;
|
|
2567
|
+
shotType?: ShotType;
|
|
2568
|
+
shootingPlayerId?: number;
|
|
2569
|
+
goalieInNetId?: number;
|
|
2570
|
+
blockingPlayerId?: number;
|
|
2571
|
+
awaySOG?: number;
|
|
2572
|
+
homeSOG?: number;
|
|
2573
|
+
hittingPlayerId?: number;
|
|
2574
|
+
hitteePlayerId?: number;
|
|
2575
|
+
penaltyTypeCode?: PenaltyTypeCode;
|
|
2576
|
+
descKey?: string;
|
|
2577
|
+
duration?: number;
|
|
2578
|
+
committedByPlayerId?: number;
|
|
2579
|
+
drawnByPlayerId?: number;
|
|
2580
|
+
goalModifier?: GoalModifier;
|
|
2581
|
+
strength?: Strength;
|
|
2582
|
+
scoringPlayerId?: number;
|
|
2583
|
+
assist1PlayerId?: number;
|
|
2584
|
+
awayScore?: number;
|
|
2585
|
+
homeScore?: number;
|
|
2586
|
+
strengthCode?: number;
|
|
2587
|
+
goalCode?: number;
|
|
2588
|
+
scoringPlayerTotal?: number;
|
|
2589
|
+
assist1PlayerTotal?: number;
|
|
2590
|
+
assist2PlayerId?: number;
|
|
2591
|
+
assist2PlayerTotal?: number;
|
|
2592
|
+
servedByPlayerId?: number;
|
|
2593
|
+
}
|
|
881
2594
|
|
|
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
2595
|
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
2596
|
|
|
894
2597
|
/**
|
|
895
|
-
*
|
|
2598
|
+
* @module api/gamecenter/draft
|
|
2599
|
+
* @description Draft-related API endpoints for accessing NHL draft picks, rankings, and tracker information
|
|
896
2600
|
*/
|
|
897
2601
|
|
|
898
2602
|
/**
|
|
899
|
-
* Get draft picks for a specific year and round
|
|
900
|
-
* @param year - The draft year
|
|
901
|
-
* @param round - The draft round
|
|
2603
|
+
* Get draft picks for a specific year and round, or all picks for a year
|
|
2604
|
+
* @param year - The draft year (defaults to current year if not provided)
|
|
2605
|
+
* @param round - The draft round (1-7). If omitted, returns the first round picks for the year
|
|
902
2606
|
* @returns Promise resolving to draft picks for the specified year and round
|
|
2607
|
+
* @example
|
|
2608
|
+
* ```ts
|
|
2609
|
+
* // Get all draft picks for 2023
|
|
2610
|
+
* picks(2023).then((data) => console.log(data));
|
|
2611
|
+
*
|
|
2612
|
+
* // Get first round picks for 2023
|
|
2613
|
+
* picks(2023, 1).then((data) => console.log(data));
|
|
2614
|
+
* ```
|
|
2615
|
+
*/
|
|
2616
|
+
declare function picks(year?: Year, round?: DraftRound): Promise<APIResponse<DraftPicks>>;
|
|
2617
|
+
/**
|
|
2618
|
+
* Get current draft tracker information for live draft coverage
|
|
2619
|
+
* @returns Promise resolving to current draft tracker data, including live pick information
|
|
2620
|
+
* @example
|
|
2621
|
+
* ```ts
|
|
2622
|
+
* tracker().then((data) => console.log(data));
|
|
2623
|
+
* ```
|
|
2624
|
+
*/
|
|
2625
|
+
declare function tracker(): Promise<APIResponse<DraftTracker>>;
|
|
2626
|
+
/**
|
|
2627
|
+
* Access draft rankings by category (skaters/goalies, NA/International)
|
|
2628
|
+
* @param year - The draft year (defaults to current year if not provided)
|
|
2629
|
+
* @returns Object with methods to get rankings by category
|
|
2630
|
+
* @example
|
|
2631
|
+
* ```ts
|
|
2632
|
+
* // Get North American skater rankings for 2024
|
|
2633
|
+
* rankings(2024).skatersNA().then((data) => console.log(data));
|
|
2634
|
+
*
|
|
2635
|
+
* // Get all rankings for 2024
|
|
2636
|
+
* rankings(2024).all().then((allRankings) => console.log(allRankings));
|
|
2637
|
+
* ```
|
|
903
2638
|
*/
|
|
904
|
-
declare
|
|
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) => {
|
|
2639
|
+
declare function rankings(year?: Year): {
|
|
914
2640
|
skatersNA: () => Promise<APIResponse<DraftRankings>>;
|
|
915
2641
|
skatersIntl: () => Promise<APIResponse<DraftRankings>>;
|
|
916
2642
|
goaliesNA: () => Promise<APIResponse<DraftRankings>>;
|
|
917
2643
|
goaliesIntl: () => Promise<APIResponse<DraftRankings>>;
|
|
918
|
-
all: () => Promise<APIResponse<DraftRankings
|
|
2644
|
+
all: () => Promise<APIResponse<DraftRankings[]>>;
|
|
919
2645
|
};
|
|
920
2646
|
|
|
921
2647
|
declare const draft_picks: typeof picks;
|
|
@@ -927,96 +2653,197 @@ declare namespace draft {
|
|
|
927
2653
|
|
|
928
2654
|
/**
|
|
929
2655
|
* 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
|
|
2656
|
+
* @param gameId - The unique identifier for the game (10-digit format)
|
|
2657
|
+
* @returns Promise resolving to play-by-play data including all game events
|
|
2658
|
+
* @example
|
|
2659
|
+
* ```ts
|
|
2660
|
+
* playByPlay(2023020001).then((data) => console.log(data));
|
|
2661
|
+
* ```
|
|
932
2662
|
*/
|
|
933
|
-
declare
|
|
2663
|
+
declare function playByPlay(gameId: GameId): Promise<APIResponse<GamecenterPlayByPlay>>;
|
|
934
2664
|
/**
|
|
935
|
-
* Get
|
|
936
|
-
*
|
|
937
|
-
*
|
|
2665
|
+
* Get comprehensive game data including stats, reports, and game information
|
|
2666
|
+
*
|
|
2667
|
+
* Includes:
|
|
2668
|
+
* - **Season Series**: Head-to-head games between the two teams
|
|
2669
|
+
* - **Game Info**: Officials (referees, linesmen), coaches, scratches
|
|
2670
|
+
* - **Game Video**: Recap and condensed game video IDs
|
|
2671
|
+
* - **Line Score**: Period-by-period scoring
|
|
2672
|
+
* - **Shots by Period**: Shot totals for each period
|
|
2673
|
+
* - **Team Game Stats**: SOG, faceoffs, power play, PIM, hits, blocks, giveaways, takeaways
|
|
2674
|
+
* - **Game Reports**: Links to official NHL reports:
|
|
2675
|
+
* - Game Summary
|
|
2676
|
+
* - Event Summary
|
|
2677
|
+
* - Play-by-Play
|
|
2678
|
+
* - Faceoff Summary & Comparison
|
|
2679
|
+
* - Rosters
|
|
2680
|
+
* - Shot Summary
|
|
2681
|
+
* - Shift Chart
|
|
2682
|
+
* - Time on Ice (both teams)
|
|
2683
|
+
*
|
|
2684
|
+
* @param gameId - The unique identifier for the game (10-digit format)
|
|
2685
|
+
* @returns Promise resolving to comprehensive game data with stats, reports, and metadata
|
|
938
2686
|
* @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
|
|
2687
|
+
* to populate the right rail UI component of the NHL Gamecenter website. The
|
|
940
2688
|
* function has been renamed to 'reports' for clarity.
|
|
2689
|
+
* @example
|
|
2690
|
+
* ```ts
|
|
2691
|
+
* reports(2023020001).then((data) => console.log(data));
|
|
2692
|
+
* ```
|
|
941
2693
|
*/
|
|
942
|
-
declare
|
|
2694
|
+
declare function reports(gameId: GameId): Promise<APIResponse<GamecenterReports>>;
|
|
943
2695
|
/**
|
|
944
2696
|
* 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
|
|
2697
|
+
* @param gameId - The unique identifier for the game (10-digit format)
|
|
2698
|
+
* @returns Promise resolving to landing page data with game summary and key information
|
|
2699
|
+
* @example
|
|
2700
|
+
* ```ts
|
|
2701
|
+
* landing(2023020001).then((data) => console.log(data));
|
|
2702
|
+
* ```
|
|
947
2703
|
*/
|
|
948
|
-
declare
|
|
2704
|
+
declare function landing$1(gameId: GameId): Promise<APIResponse<GamecenterLanding>>;
|
|
949
2705
|
/**
|
|
950
2706
|
* Get boxscore data for a specific game
|
|
951
|
-
* @param gameId - The unique identifier for the game
|
|
952
|
-
* @returns Promise resolving to boxscore data
|
|
2707
|
+
* @param gameId - The unique identifier for the game (10-digit format)
|
|
2708
|
+
* @returns Promise resolving to boxscore data with player stats and game summary
|
|
2709
|
+
* @example
|
|
2710
|
+
* ```ts
|
|
2711
|
+
* boxscore(2023020001).then((data) => console.log(data));
|
|
2712
|
+
* ```
|
|
953
2713
|
*/
|
|
954
|
-
declare
|
|
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
|
-
};
|
|
2714
|
+
declare function boxscore(gameId: GameId): Promise<APIResponse<GamecenterBoxscore>>;
|
|
969
2715
|
/**
|
|
970
|
-
* Access
|
|
2716
|
+
* Access WSC Sports related game content endpoints
|
|
2717
|
+
* @description Alternative data source for game information
|
|
971
2718
|
*/
|
|
972
|
-
declare const
|
|
973
|
-
|
|
974
|
-
|
|
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>>;
|
|
2719
|
+
declare const wsc: {
|
|
2720
|
+
gameStory: typeof wscGameStory;
|
|
2721
|
+
playByPlay: typeof wscPlayByPlay;
|
|
986
2722
|
};
|
|
987
2723
|
/**
|
|
988
|
-
*
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
*
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
/**
|
|
996
|
-
* Access playoff bracket related endpoints
|
|
997
|
-
*/
|
|
998
|
-
declare const playoffBracket: (year?: string) => Promise<APIResponse<PlayoffBracket>>;
|
|
999
|
-
/**
|
|
1000
|
-
* Access playoff series related endpoints
|
|
2724
|
+
* Get game story data for a specific game
|
|
2725
|
+
* @param gameId - The unique identifier for the game (10-digit format)
|
|
2726
|
+
* @returns Promise resolving to game story data with narrative content
|
|
2727
|
+
* @example
|
|
2728
|
+
* ```ts
|
|
2729
|
+
* wsc.gameStory(2023020001).then((data) => console.log(data));
|
|
2730
|
+
* ```
|
|
1001
2731
|
*/
|
|
1002
|
-
declare
|
|
2732
|
+
declare function wscGameStory(gameId: GameId): Promise<APIResponse<WSCGameStory>>;
|
|
1003
2733
|
/**
|
|
1004
|
-
*
|
|
2734
|
+
* Get WSC play-by-play data for a specific game
|
|
2735
|
+
* @param gameId - The unique identifier for the game (10-digit format)
|
|
2736
|
+
* @returns Promise resolving to play-by-play data from WSC source
|
|
2737
|
+
* @example
|
|
2738
|
+
* ```ts
|
|
2739
|
+
* wsc.playByPlay(2023020001).then((data) => console.log(data));
|
|
2740
|
+
* ```
|
|
1005
2741
|
*/
|
|
1006
|
-
declare
|
|
2742
|
+
declare function wscPlayByPlay(gameId: GameId): Promise<APIResponse<WSCPlayByPlay>>;
|
|
1007
2743
|
/**
|
|
1008
|
-
* Access
|
|
1009
|
-
|
|
1010
|
-
declare const whereToWatch: () => Promise<APIResponse<WhereToWatch>>;
|
|
1011
|
-
/**
|
|
1012
|
-
* Access network related endpoints
|
|
2744
|
+
* Access PPT (Player and Puck Tracking) visualization data endpoints
|
|
2745
|
+
* @description Endpoints for accessing player and puck tracking data used for replay visualizations
|
|
1013
2746
|
*/
|
|
2747
|
+
declare const pptReplay: {
|
|
2748
|
+
goal: typeof pptReplayGoal;
|
|
2749
|
+
event: typeof pptReplayEvent;
|
|
2750
|
+
};
|
|
1014
2751
|
/**
|
|
1015
|
-
* Get
|
|
1016
|
-
* @param
|
|
1017
|
-
* @
|
|
1018
|
-
|
|
1019
|
-
|
|
2752
|
+
* Get player and puck tracking visualization data for a specific goal event
|
|
2753
|
+
* @param gameId - The unique identifier for the game (10-digit format)
|
|
2754
|
+
* @param eventId - The unique identifier for the goal event
|
|
2755
|
+
* @returns Promise resolving to tracking data used for goal replay visualization
|
|
2756
|
+
* @example
|
|
2757
|
+
* ```ts
|
|
2758
|
+
* pptReplay.goal(2023020001, 42).then((data) => console.log(data));
|
|
2759
|
+
* ```
|
|
2760
|
+
*/
|
|
2761
|
+
declare function pptReplayGoal(gameId: GameId, eventId: number | string): Promise<APIResponse<PPTReplayGoal>>;
|
|
2762
|
+
/**
|
|
2763
|
+
* Get player and puck tracking visualization data for a specific event
|
|
2764
|
+
* @param gameId - The unique identifier for the game (10-digit format)
|
|
2765
|
+
* @param eventId - The unique identifier for the event
|
|
2766
|
+
* @returns Promise resolving to tracking data used for event replay visualization
|
|
2767
|
+
* @example
|
|
2768
|
+
* ```ts
|
|
2769
|
+
* pptReplay.event(2023020001, 42).then((data) => console.log(data));
|
|
2770
|
+
* ```
|
|
2771
|
+
*/
|
|
2772
|
+
declare function pptReplayEvent(gameId: GameId, eventId: number | string): Promise<APIResponse<PPTReplayEvent>>;
|
|
2773
|
+
/**
|
|
2774
|
+
* Get the league schedule for a specific date
|
|
2775
|
+
* @param date - Date to get schedule for (Date object or ISO date string 'YYYY-MM-DD'). Defaults to current date
|
|
2776
|
+
* @returns Promise resolving to league-wide schedule data for the specified date
|
|
2777
|
+
* @example
|
|
2778
|
+
* ```ts
|
|
2779
|
+
* // Get today's schedule
|
|
2780
|
+
* schedule().then((data) => console.log(data));
|
|
2781
|
+
*
|
|
2782
|
+
* // Get schedule for a specific date
|
|
2783
|
+
* schedule('2023-11-15').then((data) => console.log(data));
|
|
2784
|
+
* ```
|
|
2785
|
+
*/
|
|
2786
|
+
declare function schedule$1(date?: Date | string): Promise<APIResponse<LeagueSchedule>>;
|
|
2787
|
+
/**
|
|
2788
|
+
* Get schedule calendar data for a specific date
|
|
2789
|
+
* @param date - Date to get calendar data for (Date object or ISO date string 'YYYY-MM-DD'). Defaults to current date
|
|
2790
|
+
* @returns Promise resolving to schedule calendar data showing game availability
|
|
2791
|
+
* @example
|
|
2792
|
+
* ```ts
|
|
2793
|
+
* scheduleCalendar('2023-11-15').then((data) => console.log(data));
|
|
2794
|
+
* ```
|
|
2795
|
+
*/
|
|
2796
|
+
declare function scheduleCalendar(date?: Date | string): Promise<APIResponse<ScheduleCalendar>>;
|
|
2797
|
+
/**
|
|
2798
|
+
* Get playoff bracket data for a specific year
|
|
2799
|
+
* @param year - The playoff year (YYYY format). Defaults to current year
|
|
2800
|
+
* @returns Promise resolving to playoff bracket structure with all series
|
|
2801
|
+
* @example
|
|
2802
|
+
* ```ts
|
|
2803
|
+
* playoffBracket(2023).then((data) => console.log(data));
|
|
2804
|
+
* ```
|
|
2805
|
+
*/
|
|
2806
|
+
declare function playoffBracket(year?: Year): Promise<APIResponse<PlayoffBracket>>;
|
|
2807
|
+
/**
|
|
2808
|
+
* Get playoff series information for a season
|
|
2809
|
+
* @param season - The season identifier (8-digit format: YYYYYYYY, e.g., 20232024). Defaults to current season
|
|
2810
|
+
* @returns Promise resolving to all playoff series data for the season
|
|
2811
|
+
* @example
|
|
2812
|
+
* ```ts
|
|
2813
|
+
* playoffSeries(20232024).then((data) => console.log(data));
|
|
2814
|
+
* ```
|
|
2815
|
+
*/
|
|
2816
|
+
declare function playoffSeries(season?: Season): Promise<APIResponse<PlayoffSeries>>;
|
|
2817
|
+
/**
|
|
2818
|
+
* Get schedule for a specific playoff series
|
|
2819
|
+
* @param seriesLetter - Single letter identifier for the playoff series (A-O)
|
|
2820
|
+
* @param season - The season identifier (8-digit format: YYYYYYYY). Defaults to current season
|
|
2821
|
+
* @returns Promise resolving to schedule for the specified playoff series
|
|
2822
|
+
* @example
|
|
2823
|
+
* ```ts
|
|
2824
|
+
* playoffSeriesSchedule('A', 20232024).then((data) => console.log(data));
|
|
2825
|
+
* ```
|
|
2826
|
+
*/
|
|
2827
|
+
declare function playoffSeriesSchedule(seriesLetter: SeriesLetter$1, season?: Season): Promise<APIResponse<PlayoffSeriesSchedule>>;
|
|
2828
|
+
/**
|
|
2829
|
+
* Get information about where games are available to watch
|
|
2830
|
+
* @returns Promise resolving to streaming and broadcast availability information
|
|
2831
|
+
* @example
|
|
2832
|
+
* ```ts
|
|
2833
|
+
* whereToWatch().then((data) => console.log(data));
|
|
2834
|
+
* ```
|
|
2835
|
+
*/
|
|
2836
|
+
declare function whereToWatch(): Promise<APIResponse<WhereToWatch>>;
|
|
2837
|
+
/**
|
|
2838
|
+
* Get TV network schedule for a specific date
|
|
2839
|
+
* @param date - Date to get TV schedule for (Date object or ISO date string 'YYYY-MM-DD'). Defaults to current date
|
|
2840
|
+
* @returns Promise resolving to TV schedule data with network broadcast information
|
|
2841
|
+
* @example
|
|
2842
|
+
* ```ts
|
|
2843
|
+
* networkTVSchedule('2023-11-15').then((data) => console.log(data));
|
|
2844
|
+
* ```
|
|
2845
|
+
*/
|
|
2846
|
+
declare function networkTVSchedule(date?: Date | string): Promise<APIResponse<NetworkTVSchedule>>;
|
|
1020
2847
|
|
|
1021
2848
|
declare const game_boxscore: typeof boxscore;
|
|
1022
2849
|
declare const game_networkTVSchedule: typeof networkTVSchedule;
|
|
@@ -1034,49 +2861,84 @@ declare namespace game {
|
|
|
1034
2861
|
}
|
|
1035
2862
|
|
|
1036
2863
|
/**
|
|
1037
|
-
* @module api/misc
|
|
1038
|
-
* @description Miscellaneous NHL API endpoints for meta information, location data, and
|
|
2864
|
+
* @module api/gamecenter/misc
|
|
2865
|
+
* @description Miscellaneous NHL API endpoints for meta information, location data, and utility functions
|
|
1039
2866
|
*/
|
|
1040
2867
|
|
|
1041
|
-
|
|
2868
|
+
/**
|
|
2869
|
+
* Get list of all valid NHL seasons
|
|
2870
|
+
* @returns Promise resolving to array of all NHL seasons
|
|
2871
|
+
* @example
|
|
2872
|
+
* ```ts
|
|
2873
|
+
* seasons().then((data) => console.log(data));
|
|
2874
|
+
* ```
|
|
2875
|
+
*/
|
|
2876
|
+
declare function seasons(): Promise<APIResponse<NHLSeasons>>;
|
|
2877
|
+
/**
|
|
2878
|
+
* Access meta information endpoints
|
|
2879
|
+
* @description Get metadata about playoff series and games
|
|
2880
|
+
*/
|
|
1042
2881
|
declare const meta: {
|
|
1043
|
-
|
|
1044
|
-
|
|
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>>;
|
|
2882
|
+
game: typeof metaGame;
|
|
2883
|
+
playoffSeries: typeof metaPlayoffSeries;
|
|
1058
2884
|
};
|
|
1059
2885
|
/**
|
|
1060
|
-
*
|
|
2886
|
+
* Get meta information for a specific game
|
|
2887
|
+
*
|
|
2888
|
+
* @param gameId - The unique game identifier (10-digit format)
|
|
2889
|
+
* @returns Promise resolving to game meta information
|
|
2890
|
+
* @example
|
|
2891
|
+
* ```ts
|
|
2892
|
+
* meta.game(2023020001).then((data) => console.log(data));
|
|
2893
|
+
* ```
|
|
2894
|
+
*/
|
|
2895
|
+
declare function metaGame(gameId: GameId): Promise<APIResponse<GameMeta>>;
|
|
2896
|
+
/**
|
|
2897
|
+
* Get meta information for a playoff series
|
|
2898
|
+
*
|
|
2899
|
+
* @param seriesLetter - Single letter identifier for the playoff series (A-O)
|
|
2900
|
+
* @param year - The year in YYYY format. Defaults to current year
|
|
2901
|
+
* @returns Promise resolving to playoff series meta information
|
|
2902
|
+
* @example
|
|
2903
|
+
* ```ts
|
|
2904
|
+
* meta.playoffSeries('A', 2023).then((data) => console.log(data));
|
|
2905
|
+
* ```
|
|
2906
|
+
*/
|
|
2907
|
+
declare function metaPlayoffSeries(seriesLetter: SeriesLetter$1, year?: Year): Promise<APIResponse<PlayoffSeriesMeta>>;
|
|
2908
|
+
/**
|
|
2909
|
+
* Lookup information based on postal/zip code
|
|
1061
2910
|
*
|
|
1062
|
-
* @param postalCode - The postal/zip code to lookup
|
|
1063
|
-
* @returns Promise resolving to
|
|
2911
|
+
* @param postalCode - The postal/zip code to lookup (US or Canadian format)
|
|
2912
|
+
* @returns Promise resolving to location information including lat/long coordinates
|
|
2913
|
+
* @example
|
|
2914
|
+
* ```ts
|
|
2915
|
+
* postalLookup('10001').then((data) => console.log(data)); // US zip
|
|
2916
|
+
* postalLookup('M5H 2N2').then((data) => console.log(data)); // Canadian postal
|
|
2917
|
+
* ```
|
|
1064
2918
|
*/
|
|
1065
|
-
declare
|
|
2919
|
+
declare function postalLookup(postalCode: PostalCode): Promise<APIResponse<PostalCodeInfo>>;
|
|
1066
2920
|
/**
|
|
1067
|
-
* Get location information
|
|
2921
|
+
* Get location information based on IP address
|
|
1068
2922
|
*
|
|
1069
2923
|
* @returns Promise resolving to the location determined by the API
|
|
1070
|
-
* (
|
|
2924
|
+
* (based on the user's IP address)
|
|
2925
|
+
* @example
|
|
2926
|
+
* ```ts
|
|
2927
|
+
* location().then((data) => console.log(data));
|
|
2928
|
+
* ```
|
|
1071
2929
|
*/
|
|
1072
|
-
declare
|
|
2930
|
+
declare function location(): Promise<APIResponse<LocationInfo>>;
|
|
1073
2931
|
/**
|
|
1074
2932
|
* Get partner game information for a specific country
|
|
1075
2933
|
*
|
|
1076
|
-
* @param countryCode - The
|
|
1077
|
-
* @returns Promise resolving to partner game information
|
|
1078
|
-
|
|
1079
|
-
|
|
2934
|
+
* @param countryCode - The three-letter country code (e.g., 'USA', 'CAN', 'SWE')
|
|
2935
|
+
* @returns Promise resolving to partner game information for the country
|
|
2936
|
+
* @example
|
|
2937
|
+
* ```ts
|
|
2938
|
+
* partnerGame('USA').then((data) => console.log(data));
|
|
2939
|
+
* ```
|
|
2940
|
+
*/
|
|
2941
|
+
declare function partnerGame(countryCode: CountryCode$1): Promise<APIResponse<PartnerGameInfo>>;
|
|
1080
2942
|
|
|
1081
2943
|
declare const misc_location: typeof location;
|
|
1082
2944
|
declare const misc_meta: typeof meta;
|
|
@@ -1088,37 +2950,81 @@ declare namespace misc {
|
|
|
1088
2950
|
}
|
|
1089
2951
|
|
|
1090
2952
|
/**
|
|
1091
|
-
*
|
|
2953
|
+
* @module api/gamecenter/player
|
|
2954
|
+
* @description Player-related API endpoints for player information, stats, game logs, and search
|
|
1092
2955
|
*/
|
|
1093
2956
|
|
|
1094
2957
|
/**
|
|
1095
|
-
* Get player landing information
|
|
1096
|
-
* @param playerId - The unique player identifier
|
|
1097
|
-
* @returns Promise resolving to player landing information
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
2958
|
+
* Get player landing page information
|
|
2959
|
+
* @param playerId - The unique player identifier (NHL player ID number)
|
|
2960
|
+
* @returns Promise resolving to player landing information with career stats and bio
|
|
2961
|
+
* @example
|
|
2962
|
+
* ```ts
|
|
2963
|
+
* landing(8478402).then((data) => console.log(data)); // Connor McDavid
|
|
2964
|
+
* ```
|
|
2965
|
+
*/
|
|
2966
|
+
declare function landing(playerId: number | string): Promise<APIResponse<PlayerLanding>>;
|
|
2967
|
+
/**
|
|
2968
|
+
* Get player game log for a specific season
|
|
2969
|
+
* @param playerId - The unique player identifier (NHL player ID number)
|
|
2970
|
+
* @param season - The season identifier (8-digit format: YYYYYYYY). Defaults to current season
|
|
2971
|
+
* @param gameType - The game type (2 = regular season, 3 = playoffs). Defaults to regular season
|
|
2972
|
+
* @returns Promise resolving to player game-by-game statistics
|
|
2973
|
+
* @example
|
|
2974
|
+
* ```ts
|
|
2975
|
+
* gameLog(8478402, 20232024, 2).then((data) => console.log(data));
|
|
2976
|
+
* ```
|
|
2977
|
+
*/
|
|
2978
|
+
declare function gameLog(playerId: number | string, season?: Season, gameType?: GameType): Promise<APIResponse<PlayerGameLog>>;
|
|
2979
|
+
/**
|
|
2980
|
+
* Get player spotlight featuring highlighted players
|
|
2981
|
+
* @returns Promise resolving to featured/spotlight players
|
|
2982
|
+
* @example
|
|
2983
|
+
* ```ts
|
|
2984
|
+
* spotlight().then((data) => console.log(data));
|
|
2985
|
+
* ```
|
|
2986
|
+
*/
|
|
2987
|
+
declare function spotlight(): Promise<APIResponse<PlayerSpotlight[]>>;
|
|
2988
|
+
/**
|
|
2989
|
+
* Search for players by name
|
|
2990
|
+
* @param query - The search query string (player name)
|
|
2991
|
+
* @returns Promise resolving to player search results
|
|
2992
|
+
* @example
|
|
2993
|
+
* ```ts
|
|
2994
|
+
* search('McDavid').then((data) => console.log(data));
|
|
2995
|
+
* ```
|
|
2996
|
+
*/
|
|
2997
|
+
declare function search(query: string): Promise<APIResponse<PlayerSearchResult>>;
|
|
2998
|
+
/**
|
|
2999
|
+
* Access stats leaders endpoints for skaters and goalies
|
|
3000
|
+
* @description Get statistical leaders across various categories
|
|
1105
3001
|
*/
|
|
1106
3002
|
declare const statsLeaders: {
|
|
1107
|
-
|
|
1108
|
-
|
|
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>>;
|
|
3003
|
+
skaters: typeof statsLeadersSkaters;
|
|
3004
|
+
goalies: typeof statsLeadersGoalies;
|
|
1121
3005
|
};
|
|
3006
|
+
/**
|
|
3007
|
+
* Get skater stats leaders
|
|
3008
|
+
* @param season - The season identifier (8-digit format: YYYYYYYY). Defaults to current season
|
|
3009
|
+
* @param gameType - The game type (2 = regular season, 3 = playoffs). Defaults to regular season
|
|
3010
|
+
* @returns Promise resolving to skater statistical leaders
|
|
3011
|
+
* @example
|
|
3012
|
+
* ```ts
|
|
3013
|
+
* statsLeaders.skaters(20232024, 2).then((data) => console.log(data));
|
|
3014
|
+
* ```
|
|
3015
|
+
*/
|
|
3016
|
+
declare function statsLeadersSkaters(season?: Season, gameType?: GameType): Promise<APIResponse<SkaterStatsLeaders>>;
|
|
3017
|
+
/**
|
|
3018
|
+
* Get goalie stats leaders
|
|
3019
|
+
* @param season - The season identifier (8-digit format: YYYYYYYY). Defaults to current season
|
|
3020
|
+
* @param gameType - The game type (2 = regular season, 3 = playoffs). Defaults to regular season
|
|
3021
|
+
* @returns Promise resolving to goalie statistical leaders
|
|
3022
|
+
* @example
|
|
3023
|
+
* ```ts
|
|
3024
|
+
* statsLeaders.goalies(20232024, 2).then((data) => console.log(data));
|
|
3025
|
+
* ```
|
|
3026
|
+
*/
|
|
3027
|
+
declare function statsLeadersGoalies(season?: Season, gameType?: GameType): Promise<APIResponse<GoalieStatsLeaders>>;
|
|
1122
3028
|
|
|
1123
3029
|
declare const player_gameLog: typeof gameLog;
|
|
1124
3030
|
declare const player_landing: typeof landing;
|
|
@@ -1129,120 +3035,183 @@ declare namespace player {
|
|
|
1129
3035
|
export { player_gameLog as gameLog, player_landing as landing, player_search as search, player_spotlight as spotlight, player_statsLeaders as statsLeaders };
|
|
1130
3036
|
}
|
|
1131
3037
|
|
|
1132
|
-
/**
|
|
1133
|
-
* Access score related endpoints
|
|
1134
|
-
*/
|
|
1135
3038
|
/**
|
|
1136
3039
|
* 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
|
-
|
|
1141
|
-
|
|
1142
|
-
*
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
3040
|
+
* @param date - Date to get scores for (Date object or ISO date string 'YYYY-MM-DD'). Defaults to current date
|
|
3041
|
+
* @returns Promise resolving to all game scores for the specified date
|
|
3042
|
+
* @example
|
|
3043
|
+
* ```ts
|
|
3044
|
+
* // Get today's scores
|
|
3045
|
+
* score().then((data) => console.log(data));
|
|
3046
|
+
*
|
|
3047
|
+
* // Get scores for a specific date
|
|
3048
|
+
* score('2023-11-15').then((data) => console.log(data));
|
|
3049
|
+
* ```
|
|
3050
|
+
*/
|
|
3051
|
+
declare function score(date?: Date | string): Promise<APIResponse<Score>>;
|
|
3052
|
+
/**
|
|
3053
|
+
* Get current scoreboard information
|
|
3054
|
+
* @returns Promise resolving to current scoreboard with live and recent game data
|
|
3055
|
+
* @example
|
|
3056
|
+
* ```ts
|
|
3057
|
+
* scoreboard().then((data) => console.log(data));
|
|
3058
|
+
* ```
|
|
3059
|
+
*/
|
|
3060
|
+
declare function scoreboard(): Promise<APIResponse<Scoreboard>>;
|
|
3061
|
+
declare namespace scoreboard {
|
|
3062
|
+
var team: (team: TeamAbbrev) => Promise<APIResponse<Scoreboard>>;
|
|
3063
|
+
var date: (date: Date | string) => Promise<APIResponse<Scoreboard>>;
|
|
3064
|
+
}
|
|
1149
3065
|
|
|
1150
3066
|
/**
|
|
1151
|
-
*
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
*
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
*
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
*
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
*
|
|
3067
|
+
* Get available roster seasons for a team
|
|
3068
|
+
* @param team - The team abbreviation (e.g., 'TOR', 'MTL', 'NYR')
|
|
3069
|
+
* @returns Promise resolving to list of seasons with roster data available
|
|
3070
|
+
* @example
|
|
3071
|
+
* ```ts
|
|
3072
|
+
* rosterSeasons('TOR').then((data) => console.log(data));
|
|
3073
|
+
* ```
|
|
3074
|
+
*/
|
|
3075
|
+
declare function rosterSeasons(team: TeamAbbrev): Promise<APIResponse<TeamRosterSeasons>>;
|
|
3076
|
+
/**
|
|
3077
|
+
* Get team roster for a specific season
|
|
3078
|
+
* @param team - The team abbreviation (e.g., 'TOR', 'MTL', 'NYR')
|
|
3079
|
+
* @param season - The season identifier (8-digit format: YYYYYYYY). Defaults to current season
|
|
3080
|
+
* @returns Promise resolving to team roster with player information
|
|
3081
|
+
* @example
|
|
3082
|
+
* ```ts
|
|
3083
|
+
* roster('TOR', 20232024).then((data) => console.log(data));
|
|
3084
|
+
* ```
|
|
3085
|
+
*/
|
|
3086
|
+
declare function roster(team: string, season?: string | number): Promise<APIResponse<TeamRoster>>;
|
|
3087
|
+
/**
|
|
3088
|
+
* Get team prospects information
|
|
3089
|
+
* @param team - The team abbreviation (e.g., 'TOR', 'MTL', 'NYR')
|
|
3090
|
+
* @returns Promise resolving to team prospects and draft picks
|
|
3091
|
+
* @example
|
|
3092
|
+
* ```ts
|
|
3093
|
+
* prospects('TOR').then((data) => console.log(data));
|
|
3094
|
+
* ```
|
|
3095
|
+
*/
|
|
3096
|
+
declare function prospects(team: TeamAbbrev): Promise<APIResponse<TeamProspects>>;
|
|
3097
|
+
/**
|
|
3098
|
+
* Get team statistics for a specific season
|
|
3099
|
+
* @param team - The team abbreviation (e.g., 'TOR', 'MTL', 'NYR')
|
|
3100
|
+
* @param season - The season identifier (8-digit format: YYYYYYYY). Defaults to current season
|
|
3101
|
+
* @param gameType - The game type ('REG' or 2, 'POST' or 3, etc.). Defaults to regular season
|
|
3102
|
+
* @returns Promise resolving to team statistics
|
|
3103
|
+
* @example
|
|
3104
|
+
* ```ts
|
|
3105
|
+
* stats('TOR', 20232024, 'REG').then((data) => console.log(data));
|
|
3106
|
+
* ```
|
|
3107
|
+
*/
|
|
3108
|
+
declare function stats(team: TeamAbbrev, season?: Season, gameType?: GameType): Promise<APIResponse<TeamStats>>;
|
|
3109
|
+
/**
|
|
3110
|
+
* Get valid season and game type options for a team's statistics
|
|
3111
|
+
* @param team - The team abbreviation (e.g., 'TOR', 'MTL', 'NYR')
|
|
3112
|
+
* @returns Promise resolving to available season and game type combinations for the team.
|
|
3113
|
+
* Only includes seasons and game types where the team actually played (e.g., excludes playoff game types
|
|
3114
|
+
* for seasons where the team didn't make the playoffs)
|
|
3115
|
+
* @example
|
|
3116
|
+
* ```ts
|
|
3117
|
+
* statsSeason('TOR').then((data) => console.log(data));
|
|
3118
|
+
* ```
|
|
3119
|
+
*/
|
|
3120
|
+
declare function statsSeason(team: TeamAbbrev): Promise<APIResponse<TeamStatsSeason>>;
|
|
3121
|
+
/**
|
|
3122
|
+
* Get league standings for a specific date
|
|
3123
|
+
* @param date - Date to get standings for (Date object or ISO date string 'YYYY-MM-DD'). Defaults to current date
|
|
3124
|
+
* @returns Promise resolving to league standings
|
|
3125
|
+
* @example
|
|
3126
|
+
* ```ts
|
|
3127
|
+
* standings('2023-11-15').then((data) => console.log(data));
|
|
3128
|
+
* ```
|
|
3129
|
+
*/
|
|
3130
|
+
declare function standings(date?: Date | string): Promise<APIResponse<NHLStandings>>;
|
|
3131
|
+
/**
|
|
3132
|
+
* Get current season standings information
|
|
3133
|
+
* @returns Promise resolving to current season standings with detailed team records
|
|
3134
|
+
* @example
|
|
3135
|
+
* ```ts
|
|
3136
|
+
* standingsSeason().then((data) => console.log(data));
|
|
3137
|
+
* ```
|
|
3138
|
+
*/
|
|
3139
|
+
declare function standingsSeason(): Promise<APIResponse<NHLStandingsSeason>>;
|
|
3140
|
+
/**
|
|
3141
|
+
* Get the team schedule for any seven-day period
|
|
3142
|
+
* @param team - The team abbreviation (e.g., 'TOR', 'MTL', 'NYR')
|
|
3143
|
+
* @param date - The date indicating the start of the seven-day period (Date object or ISO date string 'YYYY-MM-DD').
|
|
3144
|
+
* Defaults to current date
|
|
3145
|
+
* @returns A promise that resolves to the club schedule for the specified week
|
|
3146
|
+
*
|
|
3147
|
+
* @example
|
|
3148
|
+
* ```ts
|
|
3149
|
+
* // Get the schedule for the Chicago Blackhawks for the week of November 4, 2023
|
|
3150
|
+
* // This returns the schedule from November 4 to November 10, 2023
|
|
3151
|
+
* gc.team.schedule.week('CHI', '2023-11-04').then((data) => {
|
|
3152
|
+
* console.log(data);
|
|
3153
|
+
* });
|
|
3154
|
+
* ```
|
|
3155
|
+
*/
|
|
3156
|
+
declare function scheduleWeek(team: TeamAbbrev, date?: Date | string): Promise<APIResponse<TeamScheduleWeek>>;
|
|
3157
|
+
declare function scheduleWeek(team: string, date?: Date | string): Promise<APIResponse<TeamScheduleWeek>>;
|
|
3158
|
+
/**
|
|
3159
|
+
* Get the team schedule for any month
|
|
3160
|
+
* @param team - The team abbreviation (e.g., 'TOR', 'MTL', 'NYR')
|
|
3161
|
+
* @param date - The date indicating the month to get the schedule for (ISO date string 'YYYY-MM').
|
|
3162
|
+
* Defaults to current month
|
|
3163
|
+
* @returns A promise that resolves to the club schedule for the specified month
|
|
3164
|
+
*
|
|
3165
|
+
* @example
|
|
3166
|
+
* ```ts
|
|
3167
|
+
* // Get the schedule for the Toronto Maple Leafs for November 2023
|
|
3168
|
+
* gc.team.schedule.month('TOR', '2023-11').then((data) => {
|
|
3169
|
+
* console.log(data);
|
|
3170
|
+
* });
|
|
3171
|
+
* ```
|
|
3172
|
+
*/
|
|
3173
|
+
declare function scheduleMonth(team: TeamAbbrev, date?: Date | string): Promise<APIResponse<TeamScheduleMonth>>;
|
|
3174
|
+
declare function scheduleMonth(team: string, date?: Date | string): Promise<APIResponse<TeamScheduleMonth>>;
|
|
3175
|
+
/**
|
|
3176
|
+
* Returns the full season schedule for the provided team and season
|
|
3177
|
+
* @param team - The team abbreviation for the desired team (e.g., 'TOR', 'MTL', 'NYR')
|
|
3178
|
+
* @param season - The specific season (8-digit format: YYYYYYYY, e.g., 20232024). Defaults to current season
|
|
3179
|
+
* @returns A promise that resolves to the full season schedule for the specified team and season
|
|
3180
|
+
* @example
|
|
3181
|
+
* ```ts
|
|
3182
|
+
* // Get the full season schedule for the Boston Bruins for the 2022-2023 season
|
|
3183
|
+
* gc.team.schedule.season('BOS', 20222023).then((data) => {
|
|
3184
|
+
* console.log(data);
|
|
3185
|
+
* });
|
|
3186
|
+
* ```
|
|
3187
|
+
*/
|
|
3188
|
+
declare function scheduleSeason(team: TeamAbbrev, season?: Season): Promise<APIResponse<TeamScheduleSeason>>;
|
|
3189
|
+
declare function scheduleSeason(team: string, season?: Season): Promise<APIResponse<TeamScheduleSeason>>;
|
|
3190
|
+
/**
|
|
3191
|
+
* Access team schedule endpoints for different time periods
|
|
3192
|
+
* @description Get team schedules by season, week, or month
|
|
1176
3193
|
*/
|
|
1177
|
-
declare const standingsSeason: () => Promise<APIResponse<NHLStandingsSeason>>;
|
|
1178
3194
|
declare const schedule: {
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
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>>;
|
|
3195
|
+
season: typeof scheduleSeason;
|
|
3196
|
+
week: typeof scheduleWeek;
|
|
3197
|
+
month: typeof scheduleMonth;
|
|
1229
3198
|
};
|
|
1230
3199
|
|
|
1231
|
-
declare const team_clubStats: typeof clubStats;
|
|
1232
|
-
declare const team_clubStatsSeason: typeof clubStatsSeason;
|
|
1233
3200
|
declare const team_prospects: typeof prospects;
|
|
1234
3201
|
declare const team_roster: typeof roster;
|
|
1235
3202
|
declare const team_rosterSeasons: typeof rosterSeasons;
|
|
1236
3203
|
declare const team_schedule: typeof schedule;
|
|
1237
3204
|
declare const team_standings: typeof standings;
|
|
1238
3205
|
declare const team_standingsSeason: typeof standingsSeason;
|
|
3206
|
+
declare const team_stats: typeof stats;
|
|
3207
|
+
declare const team_statsSeason: typeof statsSeason;
|
|
1239
3208
|
declare namespace team {
|
|
1240
|
-
export {
|
|
3209
|
+
export { team_prospects as prospects, team_roster as roster, team_rosterSeasons as rosterSeasons, team_schedule as schedule, team_standings as standings, team_standingsSeason as standingsSeason, team_stats as stats, team_statsSeason as statsSeason };
|
|
1241
3210
|
}
|
|
1242
3211
|
|
|
1243
3212
|
/**
|
|
1244
|
-
*
|
|
1245
|
-
*
|
|
3213
|
+
* Game Center API exports
|
|
3214
|
+
* NHL Game Center API endpoints for accessing game, player, team, draft, and miscellaneous information
|
|
1246
3215
|
*/
|
|
1247
3216
|
|
|
1248
3217
|
declare const index_draft: typeof draft;
|
|
@@ -1620,4 +3589,4 @@ declare const EDGE: {
|
|
|
1620
3589
|
};
|
|
1621
3590
|
};
|
|
1622
3591
|
|
|
1623
|
-
export { type
|
|
3592
|
+
export { type CountryCode$1 as CountryCode, type DraftPicks, type DraftRankings, type DraftRound, type DraftTracker, EDGE, type EventId, type GameId, type GameMeta, type GameNumber, type GameState$1 as GameState, type GameType, type GamecenterBoxscore, type GamecenterLanding, type GamecenterPlayByPlay, type GamecenterReports, type GoalieStatsLeaders, type LeagueSchedule, type LocationInfo, nhl as NHL, type NHLDate, type NHLMonth, type NHLSeasons, type NHLStandings, type NHLStandingsSeason, 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 PostalCode, type PostalCodeInfo, type SaveLocationCategory, type SaveLocationSort, type SavePercentage5v5Sort, type SavePercentageSort, type ScheduleCalendar, type Score, type Scoreboard, type Season, type SeriesLetter$1 as SeriesLetter, type ShotLocationCategory, type ShotLocationSort, type ShotSpeedSort, type SkaterStatsLeaders, type SkatersStrength, type SkatingDistanceSort, type SkatingSpeedSort, 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 WSCPlayByPlayEvent, type WhereToWatch, type Year, type ZoneTimeSort, index as gc };
|