nhle-api 0.5.2 → 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 +17 -1
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1741 -347
- package/lib/index.d.ts +1741 -347
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -210,7 +210,7 @@ declare const GameNumber$1: arktype_internal_variants_object_ts.ObjectType<(In:
|
|
|
210
210
|
declare const DraftRound$1: arktype_internal_variants_object_ts.ObjectType<(In: string | number) => arktype.Out<string>, {}>;
|
|
211
211
|
declare const EventId$1: arktype.BaseType<number | ((In: string) => arktype_internal_attributes_ts.To<number>), {}>;
|
|
212
212
|
declare const GameId$1: arktype.BaseType<number | ((In: string) => arktype_internal_attributes_ts.To<number>), {}>;
|
|
213
|
-
declare const SeriesLetter$
|
|
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
214
|
declare const GameState$2: arktype_internal_variants_string_ts.StringType<"FUT" | "LIV" | "FIN", {}>;
|
|
215
215
|
declare const CountryCode$2: arktype_internal_variants_object_ts.ObjectType<(In: string) => arktype.Out<string>, {}>;
|
|
216
216
|
declare const PostalCode$1: arktype_internal_variants_string_ts.StringType<string, {}>;
|
|
@@ -272,7 +272,7 @@ type NHLMonth = typeof NHLMonth$1.inferIn;
|
|
|
272
272
|
/**
|
|
273
273
|
* Represents a valid NHL series letter (A-O)
|
|
274
274
|
*/
|
|
275
|
-
type SeriesLetter = typeof SeriesLetter$
|
|
275
|
+
type SeriesLetter$1 = typeof SeriesLetter$2.inferIn;
|
|
276
276
|
/**
|
|
277
277
|
* Represents the playoff rounds in an NHL season (1-4)
|
|
278
278
|
*/
|
|
@@ -320,27 +320,38 @@ type ZoneTimeSort = keyof typeof ZoneTimeSortEnum;
|
|
|
320
320
|
/**
|
|
321
321
|
* Common types used in Gamecenter API responses
|
|
322
322
|
*/
|
|
323
|
-
|
|
324
|
-
/** GameState - The current state of the game. */
|
|
323
|
+
/** The current state of the game. */
|
|
325
324
|
type GameState = 'OFF' | 'FUT' | 'LIVE' | 'PRE' | 'CRIT' | 'FINAL';
|
|
326
|
-
/**
|
|
327
|
-
type GameScheduleState =
|
|
328
|
-
/**
|
|
325
|
+
/** The current state of the game. */
|
|
326
|
+
type GameScheduleState = 'OK' | 'TBD' | 'CNCL' | (string & {});
|
|
327
|
+
/** The type of period in the game. */
|
|
329
328
|
type PeriodType = 'REG' | 'OT' | 'SO';
|
|
330
|
-
/**
|
|
331
|
-
type
|
|
332
|
-
/**
|
|
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) */
|
|
333
334
|
type Market = 'H' | 'A' | 'N' | 'S';
|
|
334
|
-
/**
|
|
335
|
+
/** The country code for this broadcast. (CA = Canada, US = United States) */
|
|
335
336
|
type CountryCode = 'CA' | 'US';
|
|
336
|
-
/**
|
|
337
|
-
type PositionCode = 'C' | 'LW' | 'RW' | 'D' | 'G';
|
|
338
|
-
/**
|
|
339
|
-
type Position$1 = 'C' | 'L' | 'R' | 'D' | 'G';
|
|
340
|
-
/** ShootsCatches - Player's shooting/catching handedness. (L = Left, R = Right) */
|
|
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) */
|
|
341
340
|
type ShootsCatches = 'L' | 'R';
|
|
342
|
-
|
|
343
|
-
|
|
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 */
|
|
354
|
+
default: string;
|
|
344
355
|
/** French */
|
|
345
356
|
fr?: string;
|
|
346
357
|
/** Czech */
|
|
@@ -355,12 +366,8 @@ interface Default {
|
|
|
355
366
|
sk?: string;
|
|
356
367
|
/** Swedish */
|
|
357
368
|
sv?: string;
|
|
358
|
-
/** Additional languages */
|
|
359
|
-
[key: string]: string | undefined;
|
|
360
369
|
}
|
|
361
|
-
|
|
362
|
-
type ZoneCode = 'N' | 'D' | 'O';
|
|
363
|
-
interface TvBroadcast$3 {
|
|
370
|
+
interface TvBroadcast {
|
|
364
371
|
id: number;
|
|
365
372
|
market: Market;
|
|
366
373
|
countryCode: CountryCode;
|
|
@@ -368,6 +375,128 @@ interface TvBroadcast$3 {
|
|
|
368
375
|
sequenceNumber: number;
|
|
369
376
|
}
|
|
370
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>;
|
|
499
|
+
|
|
371
500
|
interface DraftPicks {
|
|
372
501
|
broadcastStartTimeUTC: string;
|
|
373
502
|
draftYear: number;
|
|
@@ -382,15 +511,15 @@ interface Pick$1 {
|
|
|
382
511
|
overallPick: number;
|
|
383
512
|
teamId: number;
|
|
384
513
|
teamAbbrev: TeamAbbrev;
|
|
385
|
-
teamName:
|
|
386
|
-
teamCommonName:
|
|
387
|
-
teamPlaceNameWithPreposition:
|
|
388
|
-
displayAbbrev:
|
|
514
|
+
teamName: LocalizedText;
|
|
515
|
+
teamCommonName: LocalizedText;
|
|
516
|
+
teamPlaceNameWithPreposition: LocalizedText;
|
|
517
|
+
displayAbbrev: LocalizedText;
|
|
389
518
|
teamLogoLight: string;
|
|
390
519
|
teamLogoDark: string;
|
|
391
520
|
teamPickHistory: string;
|
|
392
|
-
firstName:
|
|
393
|
-
lastName:
|
|
521
|
+
firstName: LocalizedText;
|
|
522
|
+
lastName: LocalizedText;
|
|
394
523
|
positionCode: PositionCode;
|
|
395
524
|
countryCode: string;
|
|
396
525
|
height: number;
|
|
@@ -404,10 +533,10 @@ interface DraftRankings {
|
|
|
404
533
|
categoryId: number;
|
|
405
534
|
categoryKey: Key;
|
|
406
535
|
draftYears: number[];
|
|
407
|
-
categories: Category[];
|
|
536
|
+
categories: Category$3[];
|
|
408
537
|
rankings: Ranking[];
|
|
409
538
|
}
|
|
410
|
-
interface Category {
|
|
539
|
+
interface Category$3 {
|
|
411
540
|
id: number;
|
|
412
541
|
name: Name;
|
|
413
542
|
consumerKey: Key;
|
|
@@ -434,7 +563,7 @@ interface Ranking {
|
|
|
434
563
|
interface DraftTracker {
|
|
435
564
|
currentDraftDate: Date;
|
|
436
565
|
broadcastStartTimeUTC: Date;
|
|
437
|
-
tvBroadcasts: TvBroadcast
|
|
566
|
+
tvBroadcasts: TvBroadcast[];
|
|
438
567
|
logoUrl: string;
|
|
439
568
|
logoFrUrl: string;
|
|
440
569
|
uiAccentColor: HexColorCode;
|
|
@@ -447,253 +576,441 @@ interface Pick {
|
|
|
447
576
|
overallPick: number;
|
|
448
577
|
teamId: number;
|
|
449
578
|
teamAbbrev: TeamAbbrev;
|
|
450
|
-
teamFullName:
|
|
451
|
-
teamCommonName:
|
|
452
|
-
teamPlaceNameWithPreposition:
|
|
579
|
+
teamFullName: LocalizedText;
|
|
580
|
+
teamCommonName: LocalizedText;
|
|
581
|
+
teamPlaceNameWithPreposition: LocalizedText;
|
|
453
582
|
teamLogoLight: string;
|
|
454
583
|
teamLogoDark: string;
|
|
455
584
|
state: string;
|
|
456
|
-
lastName:
|
|
457
|
-
firstName:
|
|
585
|
+
lastName: LocalizedText;
|
|
586
|
+
firstName: LocalizedText;
|
|
458
587
|
positionCode: PositionCode;
|
|
459
588
|
}
|
|
460
|
-
type HexColorCode = `#${string}`;
|
|
461
|
-
interface TvBroadcast$2 {
|
|
462
|
-
id: number;
|
|
463
|
-
market: Market;
|
|
464
|
-
countryCode: CountryCode;
|
|
465
|
-
network: string;
|
|
466
|
-
sequenceNumber: number;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
interface NetworkTVSchedule {
|
|
470
|
-
date: string;
|
|
471
|
-
startDate: string;
|
|
472
|
-
endDate: string;
|
|
473
|
-
broadcasts: Broadcast[];
|
|
474
|
-
}
|
|
475
|
-
interface Broadcast {
|
|
476
|
-
startTime: string;
|
|
477
|
-
endTime: string;
|
|
478
|
-
durationSeconds: number;
|
|
479
|
-
title: string;
|
|
480
|
-
description: string;
|
|
481
|
-
houseNumber: string;
|
|
482
|
-
broadcastType: 'HD' | string;
|
|
483
|
-
broadcastStatus: 'LIVE' | '' | string;
|
|
484
|
-
broadcastImageUrl: string;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
interface WhereToWatch {
|
|
488
|
-
id: string;
|
|
489
|
-
active: boolean;
|
|
490
|
-
countryCode: string;
|
|
491
|
-
countryName: string;
|
|
492
|
-
streamingName?: string;
|
|
493
|
-
streamingSiteUrl?: string;
|
|
494
|
-
streamingLogoUrl?: string;
|
|
495
|
-
primaryBroadcastName?: string;
|
|
496
|
-
primaryBroadcastSiteUrl?: string;
|
|
497
|
-
primaryBroadcastLogoUrl?: string;
|
|
498
|
-
secondaryBroadcastName?: string;
|
|
499
|
-
secondaryBroadcastSiteUrl?: string;
|
|
500
|
-
secondaryBroadcastLogoUrl?: string;
|
|
501
|
-
}
|
|
502
589
|
|
|
503
|
-
interface
|
|
590
|
+
interface GamecenterLanding {
|
|
504
591
|
id: number;
|
|
505
592
|
season: number;
|
|
506
593
|
gameType: number;
|
|
507
594
|
limitedScoring: boolean;
|
|
508
595
|
gameDate: string;
|
|
509
|
-
venue:
|
|
510
|
-
venueLocation:
|
|
596
|
+
venue: LocalizedText;
|
|
597
|
+
venueLocation: LocalizedText;
|
|
511
598
|
startTimeUTC: string;
|
|
512
599
|
easternUTCOffset: UTCOffset;
|
|
513
600
|
venueUTCOffset: UTCOffset;
|
|
514
|
-
|
|
601
|
+
venueTimezone: string;
|
|
602
|
+
periodDescriptor?: PeriodDescriptor$8;
|
|
603
|
+
tvBroadcasts: TvBroadcast[];
|
|
515
604
|
gameState: GameState;
|
|
516
605
|
gameScheduleState: GameScheduleState;
|
|
517
|
-
|
|
606
|
+
awayTeam: LandingTeam;
|
|
607
|
+
homeTeam: LandingTeam;
|
|
608
|
+
shootoutInUse: boolean;
|
|
609
|
+
maxPeriods: number;
|
|
518
610
|
regPeriods: number;
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
611
|
+
otInUse: boolean;
|
|
612
|
+
tiesInUse: boolean;
|
|
613
|
+
summary?: Summary$2;
|
|
614
|
+
clock?: Clock$3;
|
|
615
|
+
ticketsLink?: string;
|
|
616
|
+
ticketsLinkFr?: string;
|
|
617
|
+
matchup?: Matchup;
|
|
525
618
|
situation?: Situation$1;
|
|
526
619
|
}
|
|
527
|
-
interface
|
|
620
|
+
interface LandingTeam {
|
|
528
621
|
id: number;
|
|
529
|
-
commonName:
|
|
622
|
+
commonName: LocalizedText;
|
|
530
623
|
abbrev: TeamAbbrev;
|
|
624
|
+
placeName: LocalizedText;
|
|
625
|
+
placeNameWithPreposition: LocalizedText;
|
|
531
626
|
score?: number;
|
|
532
627
|
sog?: number;
|
|
533
628
|
logo: string;
|
|
534
629
|
darkLogo: string;
|
|
535
|
-
|
|
536
|
-
placeNameWithPreposition: Default;
|
|
630
|
+
record?: string;
|
|
537
631
|
radioLink?: string;
|
|
538
632
|
}
|
|
539
|
-
interface Clock$
|
|
633
|
+
interface Clock$3 {
|
|
540
634
|
timeRemaining: string;
|
|
541
635
|
secondsRemaining: number;
|
|
542
636
|
running: boolean;
|
|
543
637
|
inIntermission: boolean;
|
|
544
638
|
}
|
|
545
|
-
interface
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
homeTeam:
|
|
639
|
+
interface Matchup {
|
|
640
|
+
season: number;
|
|
641
|
+
gameType: number;
|
|
642
|
+
skaterComparison: SkaterComparison;
|
|
643
|
+
goalieComparison: GoalieComparison$1;
|
|
644
|
+
skaterSeasonStats: SkaterSeasonStats;
|
|
645
|
+
goalieSeasonStats: GoalieSeasonStats;
|
|
646
|
+
}
|
|
647
|
+
interface GoalieComparison$1 {
|
|
648
|
+
contextLabel: string;
|
|
649
|
+
contextSeason: number;
|
|
650
|
+
homeTeam: ComparisonTeamDetails;
|
|
651
|
+
awayTeam: ComparisonTeamDetails;
|
|
652
|
+
}
|
|
653
|
+
interface ComparisonTeamDetails {
|
|
654
|
+
teamTotals: TeamTotals;
|
|
655
|
+
leaders: TeamLeader$1[];
|
|
656
|
+
}
|
|
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;
|
|
671
|
+
}
|
|
672
|
+
interface TeamTotals {
|
|
673
|
+
record: string;
|
|
674
|
+
gaa: number;
|
|
675
|
+
savePctg: number;
|
|
676
|
+
shutouts: number;
|
|
677
|
+
gamesPlayed: number;
|
|
557
678
|
}
|
|
558
|
-
interface
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
goalies:
|
|
679
|
+
interface GoalieSeasonStats {
|
|
680
|
+
contextLabel: string;
|
|
681
|
+
contextSeason: number;
|
|
682
|
+
goalies: GoalieSeasonStatsGoalie[];
|
|
562
683
|
}
|
|
563
|
-
interface
|
|
684
|
+
interface GoalieSeasonStatsGoalie {
|
|
564
685
|
playerId: number;
|
|
686
|
+
teamId: number;
|
|
565
687
|
sweaterNumber: number;
|
|
566
|
-
name:
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
powerPlayGoals: number;
|
|
578
|
-
sog: number;
|
|
579
|
-
faceoffWinningPctg: number;
|
|
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;
|
|
580
699
|
toi: string;
|
|
581
|
-
blockedShots: number;
|
|
582
|
-
shifts: number;
|
|
583
|
-
giveaways: number;
|
|
584
|
-
takeaways: number;
|
|
585
700
|
}
|
|
586
|
-
interface
|
|
587
|
-
|
|
701
|
+
interface SkaterComparison {
|
|
702
|
+
contextLabel: string;
|
|
703
|
+
contextSeason: number;
|
|
704
|
+
leaders: SkaterComparisonLeader[];
|
|
588
705
|
}
|
|
589
|
-
interface
|
|
590
|
-
|
|
706
|
+
interface SkaterComparisonLeader {
|
|
707
|
+
category: Category$2;
|
|
708
|
+
awayLeader: Leader$1;
|
|
709
|
+
homeLeader: Leader$1;
|
|
591
710
|
}
|
|
592
|
-
interface
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
711
|
+
interface Leader$1 {
|
|
712
|
+
playerId: number;
|
|
713
|
+
name: LocalizedText;
|
|
714
|
+
firstName: LocalizedText;
|
|
715
|
+
lastName: LocalizedText;
|
|
716
|
+
sweaterNumber: number;
|
|
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;
|
|
602
738
|
pim?: number;
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
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;
|
|
748
|
+
}
|
|
749
|
+
interface PeriodDescriptor$8 {
|
|
750
|
+
number: number;
|
|
751
|
+
periodType: PeriodType;
|
|
752
|
+
maxRegulationPeriods: number;
|
|
609
753
|
}
|
|
610
|
-
type Decision = 'W' | 'L' | 'O';
|
|
611
754
|
interface Situation$1 {
|
|
612
|
-
homeTeam:
|
|
613
|
-
awayTeam:
|
|
755
|
+
homeTeam: SituationTeam;
|
|
756
|
+
awayTeam: SituationTeam;
|
|
614
757
|
situationCode: string;
|
|
615
758
|
timeRemaining: string;
|
|
616
759
|
secondsRemaining: number;
|
|
617
760
|
}
|
|
618
|
-
interface
|
|
761
|
+
interface SituationTeam {
|
|
619
762
|
abbrev: string;
|
|
620
|
-
situationDescriptions
|
|
763
|
+
situationDescriptions?: string[];
|
|
621
764
|
strength: number;
|
|
622
765
|
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
sequenceNumber: number;
|
|
766
|
+
interface Summary$2 {
|
|
767
|
+
scoring: Scoring$1[];
|
|
768
|
+
shootout: unknown[];
|
|
769
|
+
threeStars: ThreeStar$1[];
|
|
770
|
+
penalties: SummaryPenalty[];
|
|
771
|
+
iceSurface?: IceSurface$1;
|
|
630
772
|
}
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
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;
|
|
653
982
|
maxPeriods: number;
|
|
654
|
-
gameOutcome?: GameOutcome$
|
|
655
|
-
plays:
|
|
983
|
+
gameOutcome?: GameOutcome$4;
|
|
984
|
+
plays: Event[];
|
|
656
985
|
rosterSpots: RosterSpot[];
|
|
657
986
|
regPeriods: number;
|
|
658
|
-
summary?: Summary;
|
|
987
|
+
summary?: Summary$1;
|
|
659
988
|
situation?: Situation;
|
|
660
989
|
}
|
|
661
|
-
interface Clock {
|
|
990
|
+
interface Clock$2 {
|
|
662
991
|
timeRemaining: string;
|
|
663
992
|
secondsRemaining: number;
|
|
664
993
|
running: boolean;
|
|
665
994
|
inIntermission: boolean;
|
|
666
995
|
}
|
|
667
|
-
interface GameOutcome$
|
|
996
|
+
interface GameOutcome$4 {
|
|
668
997
|
lastPeriodType: PeriodType;
|
|
669
998
|
otPeriods?: number;
|
|
670
999
|
}
|
|
671
|
-
interface
|
|
672
|
-
id: number;
|
|
673
|
-
commonName: Default;
|
|
674
|
-
abbrev: TeamAbbrev;
|
|
675
|
-
score: number;
|
|
676
|
-
sog?: number;
|
|
677
|
-
logo: string;
|
|
678
|
-
darkLogo: string;
|
|
679
|
-
placeName: Default;
|
|
680
|
-
placeNameWithPreposition: Default;
|
|
681
|
-
radioLink?: string;
|
|
682
|
-
}
|
|
683
|
-
interface PeriodDescriptor$1 {
|
|
1000
|
+
interface PeriodDescriptor$7 {
|
|
684
1001
|
number: number;
|
|
685
1002
|
periodType: PeriodType;
|
|
686
1003
|
maxRegulationPeriods: number;
|
|
687
1004
|
}
|
|
688
|
-
interface
|
|
1005
|
+
interface Event {
|
|
689
1006
|
eventId: number;
|
|
690
|
-
periodDescriptor: PeriodDescriptor$
|
|
1007
|
+
periodDescriptor: PeriodDescriptor$7;
|
|
691
1008
|
timeInPeriod: string;
|
|
692
1009
|
timeRemaining: string;
|
|
693
1010
|
situationCode: string;
|
|
694
|
-
homeTeamDefendingSide:
|
|
1011
|
+
homeTeamDefendingSide: DefendingSide;
|
|
695
1012
|
typeCode: number;
|
|
696
|
-
typeDescKey:
|
|
1013
|
+
typeDescKey: EventTypeDescKey;
|
|
697
1014
|
sortOrder: number;
|
|
698
1015
|
details?: Details;
|
|
699
1016
|
pptReplayUrl?: string;
|
|
@@ -737,45 +1054,40 @@ interface Details {
|
|
|
737
1054
|
drawnByPlayerId?: number;
|
|
738
1055
|
servedByPlayerId?: number;
|
|
739
1056
|
}
|
|
740
|
-
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';
|
|
741
|
-
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';
|
|
742
|
-
type ShotType = 'wrist' | 'tip-in' | 'slap' | 'snap' | 'deflected' | 'backhand' | 'poke' | 'bat' | 'between-legs' | 'wrap-around';
|
|
743
|
-
type HomeTeamDefendingSide = 'left' | 'right';
|
|
744
|
-
type TypeDescKey = 'period-start' | 'faceoff' | 'blocked-shot' | 'goal' | 'hit' | 'giveaway' | 'missed-shot' | 'shot-on-goal' | 'stoppage' | 'takeaway' | 'penalty' | 'period-end' | 'delayed-penalty' | 'game-end';
|
|
745
1057
|
interface RosterSpot {
|
|
746
1058
|
teamId: number;
|
|
747
1059
|
playerId: number;
|
|
748
|
-
firstName:
|
|
749
|
-
lastName:
|
|
1060
|
+
firstName: LocalizedText;
|
|
1061
|
+
lastName: LocalizedText;
|
|
750
1062
|
sweaterNumber: number;
|
|
751
1063
|
positionCode: Position;
|
|
752
1064
|
headshot: string;
|
|
753
1065
|
}
|
|
754
1066
|
interface Situation {
|
|
755
|
-
homeTeam: Team$
|
|
756
|
-
awayTeam: Team$
|
|
1067
|
+
homeTeam: Team$7;
|
|
1068
|
+
awayTeam: Team$7;
|
|
757
1069
|
situationCode: string;
|
|
758
1070
|
timeRemaining: string;
|
|
759
1071
|
secondsRemaining: number;
|
|
760
1072
|
}
|
|
761
|
-
interface Team$
|
|
1073
|
+
interface Team$7 {
|
|
762
1074
|
id: number;
|
|
763
|
-
commonName:
|
|
1075
|
+
commonName: LocalizedText;
|
|
764
1076
|
abbrev: TeamAbbrev;
|
|
765
1077
|
score: number;
|
|
766
1078
|
sog?: number;
|
|
767
1079
|
logo: string;
|
|
768
1080
|
darkLogo: string;
|
|
769
|
-
placeName:
|
|
770
|
-
placeNameWithPreposition:
|
|
1081
|
+
placeName: LocalizedText;
|
|
1082
|
+
placeNameWithPreposition: LocalizedText;
|
|
771
1083
|
radioLink?: string;
|
|
772
1084
|
}
|
|
773
|
-
interface Team$
|
|
1085
|
+
interface Team$7 {
|
|
774
1086
|
abbrev: TeamAbbrev;
|
|
775
1087
|
strength: number;
|
|
776
1088
|
situationDescriptions?: string[];
|
|
777
1089
|
}
|
|
778
|
-
interface Summary {
|
|
1090
|
+
interface Summary$1 {
|
|
779
1091
|
iceSurface?: IceSurface;
|
|
780
1092
|
}
|
|
781
1093
|
interface IceSurface {
|
|
@@ -790,7 +1102,7 @@ interface IceSurfaceAwayTeam {
|
|
|
790
1102
|
}
|
|
791
1103
|
interface PenaltyBoxElement {
|
|
792
1104
|
playerId: number;
|
|
793
|
-
name:
|
|
1105
|
+
name: LocalizedText;
|
|
794
1106
|
sweaterNumber: number;
|
|
795
1107
|
positionCode: Position;
|
|
796
1108
|
headshot: string;
|
|
@@ -799,7 +1111,7 @@ interface PenaltyBoxElement {
|
|
|
799
1111
|
}
|
|
800
1112
|
interface GoalieElement {
|
|
801
1113
|
playerId: number;
|
|
802
|
-
name:
|
|
1114
|
+
name: LocalizedText;
|
|
803
1115
|
sweaterNumber: number;
|
|
804
1116
|
positionCode: Position;
|
|
805
1117
|
headshot: string;
|
|
@@ -813,7 +1125,7 @@ interface IceSurfaceHomeTeam {
|
|
|
813
1125
|
}
|
|
814
1126
|
interface PurpleDefenseman {
|
|
815
1127
|
playerId: number;
|
|
816
|
-
name:
|
|
1128
|
+
name: LocalizedText;
|
|
817
1129
|
sweaterNumber: number;
|
|
818
1130
|
positionCode: ZoneCode;
|
|
819
1131
|
headshot: string;
|
|
@@ -821,90 +1133,867 @@ interface PurpleDefenseman {
|
|
|
821
1133
|
}
|
|
822
1134
|
interface PurpleForward {
|
|
823
1135
|
playerId: number;
|
|
824
|
-
name:
|
|
1136
|
+
name: LocalizedText;
|
|
825
1137
|
sweaterNumber: number;
|
|
826
1138
|
positionCode: Position;
|
|
827
1139
|
headshot: string;
|
|
828
1140
|
totalSOI?: number;
|
|
829
1141
|
}
|
|
830
1142
|
|
|
831
|
-
interface
|
|
832
|
-
|
|
833
|
-
|
|
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;
|
|
834
1154
|
}
|
|
835
|
-
interface
|
|
836
|
-
|
|
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;
|
|
837
1409
|
bottomSeed: Seed;
|
|
1410
|
+
topSeed: Seed;
|
|
1411
|
+
neededToWin: number;
|
|
1412
|
+
winningTeamId?: number;
|
|
1413
|
+
losingTeamId?: number;
|
|
838
1414
|
}
|
|
839
1415
|
interface Seed {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
1416
|
+
id: number;
|
|
1417
|
+
abbrev: string;
|
|
1418
|
+
wins: number;
|
|
1419
|
+
logo?: string;
|
|
1420
|
+
darkLogo?: string;
|
|
844
1421
|
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
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;
|
|
848
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;
|
|
849
1528
|
}
|
|
850
|
-
interface
|
|
851
|
-
|
|
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;
|
|
852
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;
|
|
853
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;
|
|
854
1736
|
}
|
|
855
|
-
interface
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
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;
|
|
860
1770
|
}
|
|
861
1771
|
|
|
862
|
-
interface
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
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;
|
|
867
1938
|
}
|
|
868
|
-
|
|
1939
|
+
type LeaderCategory = 'goals' | 'assists' | 'wins';
|
|
1940
|
+
interface OddsPartner {
|
|
869
1941
|
partnerId: number;
|
|
870
1942
|
country: string;
|
|
871
1943
|
name: string;
|
|
872
1944
|
imageUrl: string;
|
|
873
1945
|
siteUrl: string;
|
|
874
|
-
bgColor:
|
|
875
|
-
textColor:
|
|
876
|
-
accentColor:
|
|
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[];
|
|
877
1959
|
}
|
|
878
1960
|
interface Game$1 {
|
|
879
|
-
|
|
1961
|
+
id: number;
|
|
1962
|
+
season: number;
|
|
880
1963
|
gameType: number;
|
|
1964
|
+
gameDate: string;
|
|
1965
|
+
gameCenterLink: string;
|
|
1966
|
+
venue: LocalizedText;
|
|
881
1967
|
startTimeUTC: string;
|
|
882
|
-
|
|
883
|
-
|
|
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;
|
|
884
1981
|
}
|
|
885
|
-
interface Team$
|
|
1982
|
+
interface Team$2 {
|
|
886
1983
|
id: number;
|
|
887
|
-
name:
|
|
888
|
-
|
|
1984
|
+
name: LocalizedText;
|
|
1985
|
+
commonName: LocalizedText;
|
|
1986
|
+
placeNameWithPreposition: LocalizedText;
|
|
1987
|
+
abbrev: TeamAbbrev;
|
|
1988
|
+
score?: number;
|
|
889
1989
|
logo: string;
|
|
890
|
-
|
|
1990
|
+
record?: string;
|
|
891
1991
|
}
|
|
892
|
-
interface
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
1992
|
+
interface PeriodDescriptor$2 {
|
|
1993
|
+
number: number;
|
|
1994
|
+
periodType: PeriodType;
|
|
1995
|
+
maxRegulationPeriods: number;
|
|
896
1996
|
}
|
|
897
|
-
type Description = 'MONEY_LINE_2_WAY' | 'OVER_UNDER' | 'PUCK_LINE' | 'MONEY_LINE_3_WAY';
|
|
898
|
-
|
|
899
|
-
type PostalCodeInfo = Array<{
|
|
900
|
-
stateProvince: string;
|
|
901
|
-
networkType?: string;
|
|
902
|
-
county?: string;
|
|
903
|
-
teamName: Default;
|
|
904
|
-
postalCode: string;
|
|
905
|
-
country: string;
|
|
906
|
-
city: string;
|
|
907
|
-
}>;
|
|
908
1997
|
|
|
909
1998
|
interface NHLStandings {
|
|
910
1999
|
wildCardIndicator: boolean;
|
|
@@ -960,7 +2049,7 @@ interface TeamStanding {
|
|
|
960
2049
|
leagueSequence: number;
|
|
961
2050
|
losses: number;
|
|
962
2051
|
otLosses: number;
|
|
963
|
-
placeName:
|
|
2052
|
+
placeName: LocalizedText;
|
|
964
2053
|
pointPctg: number;
|
|
965
2054
|
points: number;
|
|
966
2055
|
regulationPlusOtWinPctg: number;
|
|
@@ -983,9 +2072,9 @@ interface TeamStanding {
|
|
|
983
2072
|
shootoutWins: number;
|
|
984
2073
|
streakCode: StreakCode;
|
|
985
2074
|
streakCount: number;
|
|
986
|
-
teamName:
|
|
987
|
-
teamCommonName:
|
|
988
|
-
teamAbbrev:
|
|
2075
|
+
teamName: LocalizedText;
|
|
2076
|
+
teamCommonName: LocalizedText;
|
|
2077
|
+
teamAbbrev: LocalizedText;
|
|
989
2078
|
teamLogo: string;
|
|
990
2079
|
ties: number;
|
|
991
2080
|
waiversSequence: number;
|
|
@@ -1000,7 +2089,6 @@ type ConferenceName = 'Eastern' | 'Western' | 'Prince of Wales' | 'Clarence Camp
|
|
|
1000
2089
|
type DivisionAbbrev = 'A' | 'C' | 'P' | 'M' | 'E' | 'W' | 'CEN' | 'ATL' | 'NE' | 'PAC' | 'NW' | 'SE' | 'ADM' | 'SMY' | 'PTK' | 'NRS' | 'EST' | 'WST' | 'NTH' | 'CDN' | 'AMR';
|
|
1001
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';
|
|
1002
2091
|
type StreakCode = 'W' | 'L' | 'OT' | 'T';
|
|
1003
|
-
|
|
1004
2092
|
interface NHLStandingsSeason {
|
|
1005
2093
|
currentDate: string;
|
|
1006
2094
|
seasons: SeasonDetails[];
|
|
@@ -1022,15 +2110,15 @@ interface SeasonDetails {
|
|
|
1022
2110
|
}
|
|
1023
2111
|
|
|
1024
2112
|
interface TeamProspects {
|
|
1025
|
-
forwards: Forward[];
|
|
1026
|
-
defensemen: Defenseman[];
|
|
1027
|
-
goalies: Goalie[];
|
|
2113
|
+
forwards: Forward$1[];
|
|
2114
|
+
defensemen: Defenseman$1[];
|
|
2115
|
+
goalies: Goalie$3[];
|
|
1028
2116
|
}
|
|
1029
|
-
interface
|
|
2117
|
+
interface BaseProspect {
|
|
1030
2118
|
id: number;
|
|
1031
2119
|
headshot: string;
|
|
1032
|
-
firstName:
|
|
1033
|
-
lastName:
|
|
2120
|
+
firstName: LocalizedText;
|
|
2121
|
+
lastName: LocalizedText;
|
|
1034
2122
|
sweaterNumber?: number;
|
|
1035
2123
|
shootsCatches: ShootsCatches;
|
|
1036
2124
|
heightInInches: number;
|
|
@@ -1038,17 +2126,50 @@ interface PlayerBase {
|
|
|
1038
2126
|
heightInCentimeters: number;
|
|
1039
2127
|
weightInKilograms: number;
|
|
1040
2128
|
birthDate: string;
|
|
1041
|
-
birthCity?:
|
|
2129
|
+
birthCity?: LocalizedText;
|
|
1042
2130
|
birthCountry: string;
|
|
1043
|
-
birthStateProvince?:
|
|
2131
|
+
birthStateProvince?: LocalizedText;
|
|
1044
2132
|
}
|
|
1045
|
-
interface Defenseman extends
|
|
2133
|
+
interface Defenseman$1 extends BaseProspect {
|
|
1046
2134
|
positionCode: 'D';
|
|
1047
2135
|
}
|
|
1048
|
-
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 {
|
|
1049
2167
|
positionCode: Exclude<PositionCode, 'D' | 'G'>;
|
|
1050
2168
|
}
|
|
1051
|
-
interface
|
|
2169
|
+
interface Defenseman extends Player {
|
|
2170
|
+
positionCode: 'D';
|
|
2171
|
+
}
|
|
2172
|
+
interface Goalie$2 extends Player {
|
|
1052
2173
|
positionCode: 'G';
|
|
1053
2174
|
}
|
|
1054
2175
|
|
|
@@ -1081,7 +2202,7 @@ interface Game {
|
|
|
1081
2202
|
season: number;
|
|
1082
2203
|
gameType: number;
|
|
1083
2204
|
gameDate: string;
|
|
1084
|
-
venue:
|
|
2205
|
+
venue: LocalizedText;
|
|
1085
2206
|
neutralSite: boolean;
|
|
1086
2207
|
startTimeUTC: string;
|
|
1087
2208
|
easternUTCOffset: string;
|
|
@@ -1090,9 +2211,9 @@ interface Game {
|
|
|
1090
2211
|
gameState: GameState;
|
|
1091
2212
|
gameScheduleState: GameScheduleState;
|
|
1092
2213
|
tvBroadcasts: TvBroadcast[];
|
|
1093
|
-
awayTeam: Team;
|
|
1094
|
-
homeTeam: Team;
|
|
1095
|
-
periodDescriptor: PeriodDescriptor;
|
|
2214
|
+
awayTeam: Team$1;
|
|
2215
|
+
homeTeam: Team$1;
|
|
2216
|
+
periodDescriptor: PeriodDescriptor$1;
|
|
1096
2217
|
gameOutcome?: GameOutcome;
|
|
1097
2218
|
winningGoalie?: WinningGoal;
|
|
1098
2219
|
gameCenterLink?: string;
|
|
@@ -1108,11 +2229,11 @@ interface Game {
|
|
|
1108
2229
|
ticketsLinkFr?: string;
|
|
1109
2230
|
alternateBroadcasts?: AlternateBroadcast[];
|
|
1110
2231
|
}
|
|
1111
|
-
interface Team {
|
|
2232
|
+
interface Team$1 {
|
|
1112
2233
|
id: number;
|
|
1113
|
-
commonName:
|
|
1114
|
-
placeName:
|
|
1115
|
-
placeNameWithPreposition:
|
|
2234
|
+
commonName: LocalizedText;
|
|
2235
|
+
placeName: LocalizedText;
|
|
2236
|
+
placeNameWithPreposition: LocalizedText;
|
|
1116
2237
|
abbrev: TeamAbbrev;
|
|
1117
2238
|
logo?: string;
|
|
1118
2239
|
darkLogo?: string;
|
|
@@ -1130,7 +2251,7 @@ interface Team {
|
|
|
1130
2251
|
interface GameOutcome {
|
|
1131
2252
|
lastPeriodType: PeriodType;
|
|
1132
2253
|
}
|
|
1133
|
-
interface PeriodDescriptor {
|
|
2254
|
+
interface PeriodDescriptor$1 {
|
|
1134
2255
|
number?: number;
|
|
1135
2256
|
periodType: PeriodType;
|
|
1136
2257
|
maxRegulationPeriods: number;
|
|
@@ -1138,67 +2259,340 @@ interface PeriodDescriptor {
|
|
|
1138
2259
|
}
|
|
1139
2260
|
interface SpecialEvent {
|
|
1140
2261
|
parentId: number;
|
|
1141
|
-
name:
|
|
1142
|
-
lightLogoUrl?:
|
|
2262
|
+
name: LocalizedText;
|
|
2263
|
+
lightLogoUrl?: LocalizedText;
|
|
1143
2264
|
}
|
|
1144
2265
|
interface SeriesStatus {
|
|
1145
2266
|
round: number;
|
|
1146
2267
|
seriesAbbrev: string;
|
|
1147
2268
|
seriesTitle: string;
|
|
1148
|
-
seriesLetter: SeriesLetter;
|
|
2269
|
+
seriesLetter: SeriesLetter$1;
|
|
1149
2270
|
neededToWin: number;
|
|
1150
2271
|
topSeedWins: number;
|
|
1151
2272
|
bottomSeedWins: number;
|
|
1152
2273
|
gameNumberOfSeries: number;
|
|
1153
2274
|
}
|
|
1154
|
-
interface TvBroadcast {
|
|
1155
|
-
id: number;
|
|
1156
|
-
market: Market;
|
|
1157
|
-
countryCode: CountryCode;
|
|
1158
|
-
network: string;
|
|
1159
|
-
sequenceNumber: number;
|
|
1160
|
-
}
|
|
1161
2275
|
interface WinningGoal {
|
|
1162
2276
|
playerId: number;
|
|
1163
|
-
firstInitial:
|
|
1164
|
-
lastName:
|
|
2277
|
+
firstInitial: LocalizedText;
|
|
2278
|
+
lastName: LocalizedText;
|
|
1165
2279
|
}
|
|
1166
2280
|
interface AlternateBroadcast {
|
|
1167
2281
|
country: CountryCode;
|
|
1168
|
-
descriptions:
|
|
2282
|
+
descriptions: LocalizedText[];
|
|
1169
2283
|
}
|
|
1170
2284
|
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
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
|
+
}
|
|
1184
2339
|
|
|
1185
|
-
interface
|
|
1186
|
-
|
|
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;
|
|
1187
2354
|
}
|
|
1188
2355
|
|
|
1189
|
-
type
|
|
1190
|
-
|
|
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
|
+
}
|
|
1191
2594
|
|
|
1192
|
-
type TeamStats = Record<string, unknown>;
|
|
1193
|
-
type TeamStatsSeason = Record<string, unknown>;
|
|
1194
|
-
type PlayerLanding = Record<string, unknown>;
|
|
1195
|
-
type PlayerGameLog = Record<string, unknown>;
|
|
1196
|
-
type PlayerSpotlight = Record<string, unknown>;
|
|
1197
2595
|
type PlayerSearchResult = Record<string, unknown>;
|
|
1198
|
-
type SkaterStatsLeaders = Record<string, unknown>;
|
|
1199
|
-
type GoalieStatsLeaders = Record<string, unknown>;
|
|
1200
|
-
type NHLScore = Record<string, unknown>;
|
|
1201
|
-
type NHLScoreboard = Record<string, unknown>;
|
|
1202
2596
|
|
|
1203
2597
|
/**
|
|
1204
2598
|
* @module api/gamecenter/draft
|
|
@@ -1430,7 +2824,7 @@ declare function playoffSeries(season?: Season): Promise<APIResponse<PlayoffSeri
|
|
|
1430
2824
|
* playoffSeriesSchedule('A', 20232024).then((data) => console.log(data));
|
|
1431
2825
|
* ```
|
|
1432
2826
|
*/
|
|
1433
|
-
declare function playoffSeriesSchedule(seriesLetter: SeriesLetter, season?: Season): Promise<APIResponse<PlayoffSeriesSchedule>>;
|
|
2827
|
+
declare function playoffSeriesSchedule(seriesLetter: SeriesLetter$1, season?: Season): Promise<APIResponse<PlayoffSeriesSchedule>>;
|
|
1434
2828
|
/**
|
|
1435
2829
|
* Get information about where games are available to watch
|
|
1436
2830
|
* @returns Promise resolving to streaming and broadcast availability information
|
|
@@ -1510,7 +2904,7 @@ declare function metaGame(gameId: GameId): Promise<APIResponse<GameMeta>>;
|
|
|
1510
2904
|
* meta.playoffSeries('A', 2023).then((data) => console.log(data));
|
|
1511
2905
|
* ```
|
|
1512
2906
|
*/
|
|
1513
|
-
declare function metaPlayoffSeries(seriesLetter: SeriesLetter, year?: Year): Promise<APIResponse<PlayoffSeriesMeta>>;
|
|
2907
|
+
declare function metaPlayoffSeries(seriesLetter: SeriesLetter$1, year?: Year): Promise<APIResponse<PlayoffSeriesMeta>>;
|
|
1514
2908
|
/**
|
|
1515
2909
|
* Lookup information based on postal/zip code
|
|
1516
2910
|
*
|
|
@@ -1590,7 +2984,7 @@ declare function gameLog(playerId: number | string, season?: Season, gameType?:
|
|
|
1590
2984
|
* spotlight().then((data) => console.log(data));
|
|
1591
2985
|
* ```
|
|
1592
2986
|
*/
|
|
1593
|
-
declare function spotlight(): Promise<APIResponse<PlayerSpotlight>>;
|
|
2987
|
+
declare function spotlight(): Promise<APIResponse<PlayerSpotlight[]>>;
|
|
1594
2988
|
/**
|
|
1595
2989
|
* Search for players by name
|
|
1596
2990
|
* @param query - The search query string (player name)
|
|
@@ -1654,7 +3048,7 @@ declare namespace player {
|
|
|
1654
3048
|
* score('2023-11-15').then((data) => console.log(data));
|
|
1655
3049
|
* ```
|
|
1656
3050
|
*/
|
|
1657
|
-
declare function score(date?: Date | string): Promise<APIResponse<
|
|
3051
|
+
declare function score(date?: Date | string): Promise<APIResponse<Score>>;
|
|
1658
3052
|
/**
|
|
1659
3053
|
* Get current scoreboard information
|
|
1660
3054
|
* @returns Promise resolving to current scoreboard with live and recent game data
|
|
@@ -1663,10 +3057,10 @@ declare function score(date?: Date | string): Promise<APIResponse<NHLScore>>;
|
|
|
1663
3057
|
* scoreboard().then((data) => console.log(data));
|
|
1664
3058
|
* ```
|
|
1665
3059
|
*/
|
|
1666
|
-
declare function scoreboard(): Promise<APIResponse<
|
|
3060
|
+
declare function scoreboard(): Promise<APIResponse<Scoreboard>>;
|
|
1667
3061
|
declare namespace scoreboard {
|
|
1668
|
-
var team: (team: TeamAbbrev) => Promise<APIResponse<
|
|
1669
|
-
var date: (date: Date | string) => Promise<APIResponse<
|
|
3062
|
+
var team: (team: TeamAbbrev) => Promise<APIResponse<Scoreboard>>;
|
|
3063
|
+
var date: (date: Date | string) => Promise<APIResponse<Scoreboard>>;
|
|
1670
3064
|
}
|
|
1671
3065
|
|
|
1672
3066
|
/**
|
|
@@ -2195,4 +3589,4 @@ declare const EDGE: {
|
|
|
2195
3589
|
};
|
|
2196
3590
|
};
|
|
2197
3591
|
|
|
2198
|
-
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 };
|