nhl-api-ts 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/dist/api/edge.d.mts +23 -23
- package/dist/api/edge.mjs +69 -23
- package/dist/api/game-center.d.mts +14 -14
- package/dist/api/game-center.mjs +20 -8
- package/dist/api/helpers.d.mts +6 -6
- package/dist/api/helpers.mjs +6 -6
- package/dist/api/misc.d.mts +5 -5
- package/dist/api/misc.mjs +15 -5
- package/dist/api/players.d.mts +4 -4
- package/dist/api/players.mjs +6 -2
- package/dist/api/schedule.d.mts +18 -18
- package/dist/api/schedule.mjs +26 -14
- package/dist/api/standings.d.mts +3 -3
- package/dist/api/standings.mjs +4 -4
- package/dist/api/stats.d.mts +10 -10
- package/dist/api/stats.mjs +16 -12
- package/dist/api/teams.d.mts +5 -5
- package/dist/api/teams.mjs +10 -6
- package/dist/cli/colors.d.mts +2 -2
- package/dist/cli/colors.mjs +6 -2
- package/dist/cli/commands.mjs +36 -26
- package/dist/cli/run.mjs +7 -5
- package/dist/http-client.mjs +2 -2
- package/dist/nhl-client.d.mts +1 -1
- package/dist/nhl-client.mjs +8 -6
- package/dist/types/common.d.mts +0 -1
- package/dist/types/edge.d.mts +2 -2
- package/dist/types/game-center.d.mts +54 -111
- package/dist/types/players.d.mts +1 -2
- package/dist/types/schedule.d.mts +34 -62
- package/dist/types/standings.d.mts +1 -2
- package/dist/types/stats.d.mts +106 -110
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +3 -1
- package/package.json +7 -28
package/dist/types/stats.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { GameType, LocalizedString, PositionCode, ShootsCatches } from '#src/types/common.mjs';
|
|
2
2
|
export interface AwardSeason {
|
|
3
|
-
/**
|
|
3
|
+
/** Goalies only */
|
|
4
4
|
gaa?: number;
|
|
5
5
|
gameTypeId: GameType;
|
|
6
6
|
gamesPlayed: number;
|
|
7
|
-
/**
|
|
7
|
+
/** Goalies only */
|
|
8
8
|
losses?: number;
|
|
9
|
-
/**
|
|
9
|
+
/** Goalies only */
|
|
10
10
|
otLosses?: number;
|
|
11
|
-
/**
|
|
11
|
+
/** Goalies only */
|
|
12
12
|
savePctg?: number;
|
|
13
13
|
seasonId: number;
|
|
14
|
-
/**
|
|
14
|
+
/** Goalies only */
|
|
15
15
|
wins?: number;
|
|
16
16
|
assists?: number;
|
|
17
17
|
goals?: number;
|
|
@@ -24,27 +24,27 @@ export interface AwardSeason {
|
|
|
24
24
|
export interface CareerTotalsRegularSeason {
|
|
25
25
|
assists: number;
|
|
26
26
|
gamesPlayed: number;
|
|
27
|
-
/**
|
|
27
|
+
/** Goalies only */
|
|
28
28
|
gamesStarted?: number;
|
|
29
29
|
goals: number;
|
|
30
|
-
/**
|
|
30
|
+
/** Goalies only */
|
|
31
31
|
goalsAgainst?: number;
|
|
32
|
-
/**
|
|
32
|
+
/** Goalies only */
|
|
33
33
|
goalsAgainstAvg?: number;
|
|
34
|
-
/**
|
|
34
|
+
/** Goalies only */
|
|
35
35
|
losses?: number;
|
|
36
|
-
/**
|
|
36
|
+
/** Goalies only */
|
|
37
37
|
otLosses?: number;
|
|
38
38
|
pim: number;
|
|
39
|
-
/**
|
|
39
|
+
/** Goalies only */
|
|
40
40
|
savePctg?: number;
|
|
41
|
-
/**
|
|
41
|
+
/** Goalies only */
|
|
42
42
|
shotsAgainst?: number;
|
|
43
|
-
/**
|
|
43
|
+
/** Goalies only */
|
|
44
44
|
shutouts?: number;
|
|
45
|
-
/**
|
|
45
|
+
/** Goalies only */
|
|
46
46
|
timeOnIce?: string;
|
|
47
|
-
/**
|
|
47
|
+
/** Goalies only */
|
|
48
48
|
wins?: number;
|
|
49
49
|
gameWinningGoals?: number;
|
|
50
50
|
otGoals?: number;
|
|
@@ -56,9 +56,7 @@ export interface CareerTotalsRegularSeason {
|
|
|
56
56
|
shorthandedGoals?: number;
|
|
57
57
|
shorthandedPoints?: number;
|
|
58
58
|
shots?: number;
|
|
59
|
-
/** Low sample count */
|
|
60
59
|
avgToi?: string;
|
|
61
|
-
/** Low sample count */
|
|
62
60
|
faceoffWinningPctg?: number;
|
|
63
61
|
}
|
|
64
62
|
export interface ClubStatsSeason {
|
|
@@ -78,17 +76,17 @@ export interface GameLogEntry {
|
|
|
78
76
|
assists: number;
|
|
79
77
|
commonName: LocalizedString;
|
|
80
78
|
opponentCommonName: LocalizedString;
|
|
81
|
-
/**
|
|
79
|
+
/** Goalies only */
|
|
82
80
|
gamesStarted?: number;
|
|
83
|
-
/**
|
|
81
|
+
/** Goalies only */
|
|
84
82
|
decision?: string;
|
|
85
|
-
/**
|
|
83
|
+
/** Goalies only */
|
|
86
84
|
shotsAgainst?: number;
|
|
87
|
-
/**
|
|
85
|
+
/** Goalies only */
|
|
88
86
|
goalsAgainst?: number;
|
|
89
|
-
/**
|
|
87
|
+
/** Goalies only */
|
|
90
88
|
savePctg?: number;
|
|
91
|
-
/**
|
|
89
|
+
/** Goalies only */
|
|
92
90
|
shutouts?: number;
|
|
93
91
|
pim: number;
|
|
94
92
|
toi: string;
|
|
@@ -122,11 +120,11 @@ export interface GoalieAdvancedRow {
|
|
|
122
120
|
regulationLosses: number;
|
|
123
121
|
regulationWins: number;
|
|
124
122
|
savePct: number;
|
|
125
|
-
/** Absent when
|
|
123
|
+
/** Absent when `aggregate: true` */
|
|
126
124
|
seasonId?: number;
|
|
127
125
|
shootsCatches: ShootsCatches;
|
|
128
126
|
shotsAgainstPer60: number;
|
|
129
|
-
/** Absent when
|
|
127
|
+
/** Absent when `aggregate: true` */
|
|
130
128
|
teamAbbrevs?: string;
|
|
131
129
|
timeOnIce: number;
|
|
132
130
|
}
|
|
@@ -135,7 +133,7 @@ export interface GoalieBiosRow {
|
|
|
135
133
|
birthCountryCode: string;
|
|
136
134
|
birthDate: string;
|
|
137
135
|
birthStateProvinceCode: string | null;
|
|
138
|
-
/** Absent when
|
|
136
|
+
/** Absent when `aggregate: true` */
|
|
139
137
|
currentTeamAbbrev?: string | null;
|
|
140
138
|
draftOverall: number | null;
|
|
141
139
|
draftRound: number | null;
|
|
@@ -175,10 +173,10 @@ export interface GoalieDaysRestRow {
|
|
|
175
173
|
savePctDaysRest2: number;
|
|
176
174
|
savePctDaysRest3: number;
|
|
177
175
|
savePctDaysRest4Plus: number;
|
|
178
|
-
/** Absent when
|
|
176
|
+
/** Absent when `aggregate: true` */
|
|
179
177
|
seasonId?: number;
|
|
180
178
|
shootsCatches: ShootsCatches;
|
|
181
|
-
/** Absent when
|
|
179
|
+
/** Absent when `aggregate: true` */
|
|
182
180
|
teamAbbrevs?: string;
|
|
183
181
|
ties: number | null;
|
|
184
182
|
wins: number;
|
|
@@ -195,11 +193,11 @@ export interface GoaliePenaltyShotsRow {
|
|
|
195
193
|
playerId: number;
|
|
196
194
|
savePct: number;
|
|
197
195
|
saves: number;
|
|
198
|
-
/** Absent when
|
|
196
|
+
/** Absent when `aggregate: true` */
|
|
199
197
|
seasonId?: number;
|
|
200
198
|
shootsCatches: ShootsCatches;
|
|
201
199
|
shotsAgainst: number;
|
|
202
|
-
/** Absent when
|
|
200
|
+
/** Absent when `aggregate: true` */
|
|
203
201
|
teamAbbrevs?: string;
|
|
204
202
|
}
|
|
205
203
|
export interface GoalieSavesByStrengthRow {
|
|
@@ -221,7 +219,7 @@ export interface GoalieSavesByStrengthRow {
|
|
|
221
219
|
ppShotsAgainst: number;
|
|
222
220
|
savePct: number;
|
|
223
221
|
saves: number;
|
|
224
|
-
/** Absent when
|
|
222
|
+
/** Absent when `aggregate: true` */
|
|
225
223
|
seasonId?: number;
|
|
226
224
|
shGoalsAgainst: number;
|
|
227
225
|
shSavePct: number;
|
|
@@ -229,7 +227,7 @@ export interface GoalieSavesByStrengthRow {
|
|
|
229
227
|
shShotsAgainst: number;
|
|
230
228
|
shootsCatches: ShootsCatches;
|
|
231
229
|
shotsAgainst: number;
|
|
232
|
-
/** Absent when
|
|
230
|
+
/** Absent when `aggregate: true` */
|
|
233
231
|
teamAbbrevs?: string;
|
|
234
232
|
ties: number | null;
|
|
235
233
|
wins: number;
|
|
@@ -246,7 +244,7 @@ export interface GoalieShootoutRow {
|
|
|
246
244
|
goalieFullName: string;
|
|
247
245
|
lastName: string;
|
|
248
246
|
playerId: number;
|
|
249
|
-
/** Absent when
|
|
247
|
+
/** Absent when `aggregate: true` */
|
|
250
248
|
seasonId?: number;
|
|
251
249
|
shootoutGoalsAgainst: number;
|
|
252
250
|
shootoutLosses: number;
|
|
@@ -255,7 +253,7 @@ export interface GoalieShootoutRow {
|
|
|
255
253
|
shootoutShotsAgainst: number;
|
|
256
254
|
shootoutWins: number;
|
|
257
255
|
shootsCatches: ShootsCatches;
|
|
258
|
-
/** Absent when
|
|
256
|
+
/** Absent when `aggregate: true` */
|
|
259
257
|
teamAbbrevs?: string;
|
|
260
258
|
}
|
|
261
259
|
export interface GoalieStartedVsRelievedRow {
|
|
@@ -284,10 +282,10 @@ export interface GoalieStartedVsRelievedRow {
|
|
|
284
282
|
otLosses: number;
|
|
285
283
|
playerId: number;
|
|
286
284
|
savePct: number;
|
|
287
|
-
/** Absent when
|
|
285
|
+
/** Absent when `aggregate: true` */
|
|
288
286
|
seasonId?: number;
|
|
289
287
|
shootsCatches: ShootsCatches;
|
|
290
|
-
/** Absent when
|
|
288
|
+
/** Absent when `aggregate: true` */
|
|
291
289
|
teamAbbrevs?: string;
|
|
292
290
|
ties: number | null;
|
|
293
291
|
wins: number;
|
|
@@ -308,12 +306,12 @@ export interface GoalieSummaryRow {
|
|
|
308
306
|
points: number;
|
|
309
307
|
savePct: number;
|
|
310
308
|
saves: number;
|
|
311
|
-
/** Absent when
|
|
309
|
+
/** Absent when `aggregate: true` */
|
|
312
310
|
seasonId?: number;
|
|
313
311
|
shootsCatches: ShootsCatches;
|
|
314
312
|
shotsAgainst: number;
|
|
315
313
|
shutouts: number;
|
|
316
|
-
/** Absent when
|
|
314
|
+
/** Absent when `aggregate: true` */
|
|
317
315
|
teamAbbrevs?: string;
|
|
318
316
|
ties: number | null;
|
|
319
317
|
timeOnIce: number;
|
|
@@ -322,20 +320,20 @@ export interface GoalieSummaryRow {
|
|
|
322
320
|
export interface PlayerLanding {
|
|
323
321
|
playerId: number;
|
|
324
322
|
isActive: boolean;
|
|
325
|
-
/** Absent
|
|
323
|
+
/** Absent for inactive players (`isActive: false`) */
|
|
326
324
|
currentTeamId?: number;
|
|
327
|
-
/** Absent
|
|
325
|
+
/** Absent for inactive players (`isActive: false`) */
|
|
328
326
|
currentTeamAbbrev?: string;
|
|
329
|
-
/** Absent
|
|
327
|
+
/** Absent for inactive players (`isActive: false`) */
|
|
330
328
|
fullTeamName?: LocalizedString;
|
|
331
|
-
/** Absent
|
|
329
|
+
/** Absent for inactive players (`isActive: false`) */
|
|
332
330
|
teamCommonName?: LocalizedString;
|
|
333
|
-
/** Absent
|
|
331
|
+
/** Absent for inactive players (`isActive: false`) */
|
|
334
332
|
teamPlaceNameWithPreposition?: LocalizedString;
|
|
335
333
|
firstName: LocalizedString;
|
|
336
334
|
lastName: LocalizedString;
|
|
337
335
|
badges: PlayerLandingBadge[];
|
|
338
|
-
/** Absent
|
|
336
|
+
/** Absent for inactive players (`isActive: false`) */
|
|
339
337
|
teamLogo?: string;
|
|
340
338
|
sweaterNumber: number;
|
|
341
339
|
position: string;
|
|
@@ -347,7 +345,7 @@ export interface PlayerLanding {
|
|
|
347
345
|
weightInKilograms: number;
|
|
348
346
|
birthDate: string;
|
|
349
347
|
birthCity: LocalizedString;
|
|
350
|
-
/**
|
|
348
|
+
/** Only for players born in the USA or Canada */
|
|
351
349
|
birthStateProvince?: LocalizedString;
|
|
352
350
|
birthCountry: string;
|
|
353
351
|
shootsCatches: ShootsCatches;
|
|
@@ -363,7 +361,7 @@ export interface PlayerLanding {
|
|
|
363
361
|
last5Games: PlayerLandingLast5Game[];
|
|
364
362
|
seasonTotals: PlayerLandingSeasonTotal[];
|
|
365
363
|
awards: PlayerLandingAward[];
|
|
366
|
-
/** Absent
|
|
364
|
+
/** Absent for inactive players (`isActive: false`) */
|
|
367
365
|
currentTeamRoster?: PlayerLandingCurrentTeamRoster[];
|
|
368
366
|
}
|
|
369
367
|
export interface PlayerLandingAward {
|
|
@@ -396,22 +394,22 @@ export interface PlayerLandingFeaturedStats {
|
|
|
396
394
|
regularSeason: FeaturedRegularSeason;
|
|
397
395
|
}
|
|
398
396
|
export interface PlayerLandingLast5Game {
|
|
399
|
-
/**
|
|
397
|
+
/** Goalies only */
|
|
400
398
|
decision?: string;
|
|
401
399
|
gameDate: string;
|
|
402
400
|
gameId: number;
|
|
403
401
|
gameTypeId: GameType;
|
|
404
|
-
/**
|
|
402
|
+
/** Goalies only */
|
|
405
403
|
gamesStarted?: number;
|
|
406
|
-
/**
|
|
404
|
+
/** Goalies only */
|
|
407
405
|
goalsAgainst?: number;
|
|
408
406
|
homeRoadFlag: string;
|
|
409
407
|
opponentAbbrev: string;
|
|
410
|
-
/**
|
|
408
|
+
/** Goalies only */
|
|
411
409
|
penaltyMins?: number;
|
|
412
|
-
/**
|
|
410
|
+
/** Goalies only */
|
|
413
411
|
savePctg?: number;
|
|
414
|
-
/**
|
|
412
|
+
/** Goalies only */
|
|
415
413
|
shotsAgainst?: number;
|
|
416
414
|
teamAbbrev: string;
|
|
417
415
|
toi: string;
|
|
@@ -428,32 +426,32 @@ export interface PlayerLandingLast5Game {
|
|
|
428
426
|
export interface PlayerLandingSeasonTotal {
|
|
429
427
|
gameTypeId: GameType;
|
|
430
428
|
gamesPlayed: number;
|
|
431
|
-
/**
|
|
429
|
+
/** Goalies only */
|
|
432
430
|
goalsAgainstAvg?: number;
|
|
433
431
|
leagueAbbrev: string;
|
|
434
|
-
/**
|
|
432
|
+
/** Goalies only */
|
|
435
433
|
savePctg?: number;
|
|
436
434
|
season: number;
|
|
437
435
|
sequence: number;
|
|
438
436
|
teamName: LocalizedString;
|
|
439
|
-
/**
|
|
437
|
+
/** Goalies only */
|
|
440
438
|
goalsAgainst?: number;
|
|
441
|
-
/**
|
|
439
|
+
/** Goalies only */
|
|
442
440
|
losses?: number;
|
|
443
|
-
/**
|
|
441
|
+
/** Goalies only */
|
|
444
442
|
shutouts?: number;
|
|
445
|
-
/**
|
|
443
|
+
/** Goalies only */
|
|
446
444
|
ties?: number;
|
|
447
|
-
/**
|
|
445
|
+
/** Goalies only */
|
|
448
446
|
timeOnIce?: string;
|
|
449
|
-
/**
|
|
447
|
+
/** Goalies only */
|
|
450
448
|
wins?: number;
|
|
451
|
-
/**
|
|
449
|
+
/** Goalies only */
|
|
452
450
|
shotsAgainst?: number;
|
|
453
|
-
/**
|
|
451
|
+
/** Goalies only */
|
|
454
452
|
otLosses?: number;
|
|
455
453
|
assists?: number;
|
|
456
|
-
/**
|
|
454
|
+
/** Goalies only */
|
|
457
455
|
gamesStarted?: number;
|
|
458
456
|
goals?: number;
|
|
459
457
|
teamCommonName?: LocalizedString;
|
|
@@ -474,17 +472,17 @@ export interface PlayerLandingSeasonTotal {
|
|
|
474
472
|
}
|
|
475
473
|
export interface SeasonStatLine {
|
|
476
474
|
gamesPlayed: number;
|
|
477
|
-
/**
|
|
475
|
+
/** Goalies only */
|
|
478
476
|
goalsAgainstAvg?: number;
|
|
479
|
-
/**
|
|
477
|
+
/** Goalies only */
|
|
480
478
|
losses?: number;
|
|
481
|
-
/**
|
|
479
|
+
/** Goalies only */
|
|
482
480
|
otLosses?: number;
|
|
483
|
-
/**
|
|
481
|
+
/** Goalies only */
|
|
484
482
|
savePctg?: number;
|
|
485
|
-
/**
|
|
483
|
+
/** Goalies only */
|
|
486
484
|
shutouts?: number;
|
|
487
|
-
/**
|
|
485
|
+
/** Goalies only */
|
|
488
486
|
wins?: number;
|
|
489
487
|
assists?: number;
|
|
490
488
|
gameWinningGoals?: number;
|
|
@@ -506,9 +504,9 @@ export interface SkaterBiosRow {
|
|
|
506
504
|
birthCountryCode: string;
|
|
507
505
|
birthDate: string;
|
|
508
506
|
birthStateProvinceCode: string | null;
|
|
509
|
-
/** Absent when
|
|
507
|
+
/** Absent when `aggregate: true` */
|
|
510
508
|
currentTeamAbbrev?: string | null;
|
|
511
|
-
/** Absent when
|
|
509
|
+
/** Absent when `aggregate: true` */
|
|
512
510
|
currentTeamName?: string | null;
|
|
513
511
|
draftOverall: number | null;
|
|
514
512
|
draftRound: number | null;
|
|
@@ -543,13 +541,13 @@ export interface SkaterFaceoffPercentagesRow {
|
|
|
543
541
|
positionCode: PositionCode;
|
|
544
542
|
ppFaceoffPct: number;
|
|
545
543
|
ppFaceoffs: number;
|
|
546
|
-
/** Absent when
|
|
544
|
+
/** Absent when `aggregate: true` */
|
|
547
545
|
seasonId?: number;
|
|
548
546
|
shFaceoffPct: number;
|
|
549
547
|
shFaceoffs: number;
|
|
550
548
|
shootsCatches: ShootsCatches;
|
|
551
549
|
skaterFullName: string;
|
|
552
|
-
/** Absent when
|
|
550
|
+
/** Absent when `aggregate: true` */
|
|
553
551
|
teamAbbrevs?: string;
|
|
554
552
|
timeOnIcePerGame: number;
|
|
555
553
|
totalFaceoffs: number;
|
|
@@ -575,13 +573,13 @@ export interface SkaterFaceoffWinsRow {
|
|
|
575
573
|
ppFaceoffs: number;
|
|
576
574
|
ppFaceoffsLost: number;
|
|
577
575
|
ppFaceoffsWon: number;
|
|
578
|
-
/** Absent when
|
|
576
|
+
/** Absent when `aggregate: true` */
|
|
579
577
|
seasonId?: number;
|
|
580
578
|
shFaceoffs: number;
|
|
581
579
|
shFaceoffsLost: number;
|
|
582
580
|
shFaceoffsWon: number;
|
|
583
581
|
skaterFullName: string;
|
|
584
|
-
/** Absent when
|
|
582
|
+
/** Absent when `aggregate: true` */
|
|
585
583
|
teamAbbrevs?: string;
|
|
586
584
|
totalFaceoffLosses: number;
|
|
587
585
|
totalFaceoffWins: number;
|
|
@@ -603,13 +601,13 @@ export interface SkaterGoalsForAgainstRow {
|
|
|
603
601
|
powerPlayGoalFor: number;
|
|
604
602
|
powerPlayGoalsAgainst: number;
|
|
605
603
|
powerPlayTimeOnIcePerGame: number;
|
|
606
|
-
/** Absent when
|
|
604
|
+
/** Absent when `aggregate: true` */
|
|
607
605
|
seasonId?: number;
|
|
608
606
|
shortHandedGoalsAgainst: number;
|
|
609
607
|
shortHandedGoalsFor: number;
|
|
610
608
|
shortHandedTimeOnIcePerGame: number;
|
|
611
609
|
skaterFullName: string;
|
|
612
|
-
/** Absent when
|
|
610
|
+
/** Absent when `aggregate: true` */
|
|
613
611
|
teamAbbrevs?: string;
|
|
614
612
|
}
|
|
615
613
|
export interface SkaterPenaltiesRow {
|
|
@@ -634,10 +632,10 @@ export interface SkaterPenaltiesRow {
|
|
|
634
632
|
playerId: number;
|
|
635
633
|
points: number;
|
|
636
634
|
positionCode: PositionCode;
|
|
637
|
-
/** Absent when
|
|
635
|
+
/** Absent when `aggregate: true` */
|
|
638
636
|
seasonId?: number;
|
|
639
637
|
skaterFullName: string;
|
|
640
|
-
/** Absent when
|
|
638
|
+
/** Absent when `aggregate: true` */
|
|
641
639
|
teamAbbrevs?: string;
|
|
642
640
|
timeOnIcePerGame: number;
|
|
643
641
|
}
|
|
@@ -647,7 +645,7 @@ export interface SkaterPenaltyKillRow {
|
|
|
647
645
|
playerId: number;
|
|
648
646
|
positionCode: PositionCode;
|
|
649
647
|
ppGoalsAgainstPer60: number;
|
|
650
|
-
/** Absent when
|
|
648
|
+
/** Absent when `aggregate: true` */
|
|
651
649
|
seasonId?: number;
|
|
652
650
|
shAssists: number;
|
|
653
651
|
shGoals: number;
|
|
@@ -667,7 +665,7 @@ export interface SkaterPenaltyKillRow {
|
|
|
667
665
|
shTimeOnIcePctPerGame: number;
|
|
668
666
|
shTimeOnIcePerGame: number;
|
|
669
667
|
skaterFullName: string;
|
|
670
|
-
/** Absent when
|
|
668
|
+
/** Absent when `aggregate: true` */
|
|
671
669
|
teamAbbrevs?: string;
|
|
672
670
|
}
|
|
673
671
|
export interface SkaterPenaltyShotsRow {
|
|
@@ -678,11 +676,11 @@ export interface SkaterPenaltyShotsRow {
|
|
|
678
676
|
penaltyShotsGoals: number;
|
|
679
677
|
playerId: number;
|
|
680
678
|
positionCode: PositionCode;
|
|
681
|
-
/** Absent when
|
|
679
|
+
/** Absent when `aggregate: true` */
|
|
682
680
|
seasonId?: number;
|
|
683
681
|
shootsCatches: ShootsCatches;
|
|
684
682
|
skaterFullName: string;
|
|
685
|
-
/** Absent when
|
|
683
|
+
/** Absent when `aggregate: true` */
|
|
686
684
|
teamAbbrevs?: string;
|
|
687
685
|
}
|
|
688
686
|
export interface SkaterPercentagesRow {
|
|
@@ -696,14 +694,14 @@ export interface SkaterPercentagesRow {
|
|
|
696
694
|
satPercentageClose: number;
|
|
697
695
|
satPercentageTied: number | null;
|
|
698
696
|
satRelative: number;
|
|
699
|
-
/** Absent when
|
|
697
|
+
/** Absent when `aggregate: true` */
|
|
700
698
|
seasonId?: number;
|
|
701
699
|
shootingPct5v5: number;
|
|
702
700
|
shootsCatches: ShootsCatches;
|
|
703
701
|
skaterFullName: string;
|
|
704
702
|
skaterSavePct5v5: number | null;
|
|
705
703
|
skaterShootingPlusSavePct5v5: number | null;
|
|
706
|
-
/** Absent when
|
|
704
|
+
/** Absent when `aggregate: true` */
|
|
707
705
|
teamAbbrevs?: string;
|
|
708
706
|
timeOnIcePerGame5v5: number;
|
|
709
707
|
usatPercentage: number;
|
|
@@ -737,10 +735,10 @@ export interface SkaterPowerPlayRow {
|
|
|
737
735
|
ppTimeOnIce: number;
|
|
738
736
|
ppTimeOnIcePctPerGame: number;
|
|
739
737
|
ppTimeOnIcePerGame: number;
|
|
740
|
-
/** Absent when
|
|
738
|
+
/** Absent when `aggregate: true` */
|
|
741
739
|
seasonId?: number;
|
|
742
740
|
skaterFullName: string;
|
|
743
|
-
/** Absent when
|
|
741
|
+
/** Absent when `aggregate: true` */
|
|
744
742
|
teamAbbrevs?: string;
|
|
745
743
|
}
|
|
746
744
|
export interface SkaterPuckPossessionsRow {
|
|
@@ -758,11 +756,11 @@ export interface SkaterPuckPossessionsRow {
|
|
|
758
756
|
playerId: number;
|
|
759
757
|
positionCode: PositionCode;
|
|
760
758
|
satPct: number;
|
|
761
|
-
/** Absent when
|
|
759
|
+
/** Absent when `aggregate: true` */
|
|
762
760
|
seasonId?: number;
|
|
763
761
|
shootsCatches: ShootsCatches;
|
|
764
762
|
skaterFullName: string;
|
|
765
|
-
/** Absent when
|
|
763
|
+
/** Absent when `aggregate: true` */
|
|
766
764
|
teamAbbrevs?: string;
|
|
767
765
|
timeOnIcePerGame5v5: number;
|
|
768
766
|
usatPct: number;
|
|
@@ -790,14 +788,14 @@ export interface SkaterRealtimeRow {
|
|
|
790
788
|
otGoals: number;
|
|
791
789
|
playerId: number;
|
|
792
790
|
positionCode: PositionCode;
|
|
793
|
-
/** Absent when
|
|
791
|
+
/** Absent when `aggregate: true` */
|
|
794
792
|
seasonId?: number;
|
|
795
793
|
shootsCatches: ShootsCatches;
|
|
796
794
|
shotAttemptsBlocked: number;
|
|
797
795
|
skaterFullName: string;
|
|
798
796
|
takeaways: number;
|
|
799
797
|
takeawaysPer60: number;
|
|
800
|
-
/** Absent when
|
|
798
|
+
/** Absent when `aggregate: true` */
|
|
801
799
|
teamAbbrevs?: string;
|
|
802
800
|
timeOnIcePerGame: number;
|
|
803
801
|
totalShotAttempts: number;
|
|
@@ -820,14 +818,14 @@ export interface SkaterScoringPerGameRow {
|
|
|
820
818
|
pointsPerGame: number;
|
|
821
819
|
positionCode: PositionCode;
|
|
822
820
|
primaryAssistsPerGame: number;
|
|
823
|
-
/** Absent when
|
|
821
|
+
/** Absent when `aggregate: true` */
|
|
824
822
|
seasonId?: number;
|
|
825
823
|
secondaryAssistsPerGame: number;
|
|
826
824
|
shootsCatches: ShootsCatches;
|
|
827
825
|
shots: number;
|
|
828
826
|
shotsPerGame: number;
|
|
829
827
|
skaterFullName: string;
|
|
830
|
-
/** Absent when
|
|
828
|
+
/** Absent when `aggregate: true` */
|
|
831
829
|
teamAbbrevs?: string;
|
|
832
830
|
timeOnIce: number;
|
|
833
831
|
timeOnIcePerGame: number;
|
|
@@ -852,13 +850,13 @@ export interface SkaterScoringRatesRow {
|
|
|
852
850
|
primaryAssistsPer605v5: number;
|
|
853
851
|
satPct: number;
|
|
854
852
|
satRelative5v5: number;
|
|
855
|
-
/** Absent when
|
|
853
|
+
/** Absent when `aggregate: true` */
|
|
856
854
|
seasonId?: number;
|
|
857
855
|
secondaryAssists5v5: number;
|
|
858
856
|
secondaryAssistsPer605v5: number;
|
|
859
857
|
shootingPct5v5: number;
|
|
860
858
|
skaterFullName: string;
|
|
861
|
-
/** Absent when
|
|
859
|
+
/** Absent when `aggregate: true` */
|
|
862
860
|
teamAbbrevs?: string;
|
|
863
861
|
timeOnIcePerGame5v5: number;
|
|
864
862
|
}
|
|
@@ -871,7 +869,7 @@ export interface SkaterShootoutRow {
|
|
|
871
869
|
lastName: string;
|
|
872
870
|
playerId: number;
|
|
873
871
|
positionCode: PositionCode;
|
|
874
|
-
/** Absent when
|
|
872
|
+
/** Absent when `aggregate: true` */
|
|
875
873
|
seasonId?: number;
|
|
876
874
|
shootoutGameDecidingGoals: number;
|
|
877
875
|
shootoutGamesPlayed: number;
|
|
@@ -880,7 +878,7 @@ export interface SkaterShootoutRow {
|
|
|
880
878
|
shootoutShots: number;
|
|
881
879
|
shootsCatches: ShootsCatches;
|
|
882
880
|
skaterFullName: string;
|
|
883
|
-
/** Absent when
|
|
881
|
+
/** Absent when `aggregate: true` */
|
|
884
882
|
teamAbbrevs?: string;
|
|
885
883
|
}
|
|
886
884
|
export interface SkaterShotTypeRow {
|
|
@@ -899,7 +897,7 @@ export interface SkaterShotTypeRow {
|
|
|
899
897
|
goalsWrist: number;
|
|
900
898
|
lastName: string;
|
|
901
899
|
playerId: number;
|
|
902
|
-
/** Absent when
|
|
900
|
+
/** Absent when `aggregate: true` */
|
|
903
901
|
seasonId?: number;
|
|
904
902
|
shootingPct: number;
|
|
905
903
|
shootingPctBackhand: number | null;
|
|
@@ -925,7 +923,7 @@ export interface SkaterShotTypeRow {
|
|
|
925
923
|
shotsOnNetWrapAround: number;
|
|
926
924
|
shotsOnNetWrist: number;
|
|
927
925
|
skaterFullName: string;
|
|
928
|
-
/** Absent when
|
|
926
|
+
/** Absent when `aggregate: true` */
|
|
929
927
|
teamAbbrevs?: string;
|
|
930
928
|
}
|
|
931
929
|
export interface SkaterSummaryRow {
|
|
@@ -946,7 +944,7 @@ export interface SkaterSummaryRow {
|
|
|
946
944
|
positionCode: PositionCode;
|
|
947
945
|
ppGoals: number;
|
|
948
946
|
ppPoints: number;
|
|
949
|
-
/** Absent when aggregate
|
|
947
|
+
/** Absent when `aggregate: true` */
|
|
950
948
|
seasonId?: number;
|
|
951
949
|
shGoals: number;
|
|
952
950
|
shPoints: number;
|
|
@@ -954,7 +952,7 @@ export interface SkaterSummaryRow {
|
|
|
954
952
|
shootsCatches: ShootsCatches;
|
|
955
953
|
shots: number;
|
|
956
954
|
skaterFullName: string;
|
|
957
|
-
/** Absent when aggregate
|
|
955
|
+
/** Absent when `aggregate: true` */
|
|
958
956
|
teamAbbrevs?: string;
|
|
959
957
|
timeOnIcePerGame: number;
|
|
960
958
|
}
|
|
@@ -971,11 +969,11 @@ export interface SkaterSummaryShootingRow {
|
|
|
971
969
|
satRelative: number;
|
|
972
970
|
satTied: number;
|
|
973
971
|
satTotal: number;
|
|
974
|
-
/** Absent when
|
|
972
|
+
/** Absent when `aggregate: true` */
|
|
975
973
|
seasonId?: number;
|
|
976
974
|
shootsCatches: ShootsCatches;
|
|
977
975
|
skaterFullName: string;
|
|
978
|
-
/** Absent when
|
|
976
|
+
/** Absent when `aggregate: true` */
|
|
979
977
|
teamAbbrevs?: string;
|
|
980
978
|
timeOnIcePerGame5v5: number;
|
|
981
979
|
usatAgainst: number;
|
|
@@ -998,7 +996,7 @@ export interface SkaterTimeOnIceRow {
|
|
|
998
996
|
positionCode: PositionCode;
|
|
999
997
|
ppTimeOnIce: number;
|
|
1000
998
|
ppTimeOnIcePerGame: number;
|
|
1001
|
-
/** Absent when
|
|
999
|
+
/** Absent when `aggregate: true` */
|
|
1002
1000
|
seasonId?: number;
|
|
1003
1001
|
shTimeOnIce: number;
|
|
1004
1002
|
shTimeOnIcePerGame: number;
|
|
@@ -1006,7 +1004,7 @@ export interface SkaterTimeOnIceRow {
|
|
|
1006
1004
|
shiftsPerGame: number;
|
|
1007
1005
|
shootsCatches: ShootsCatches;
|
|
1008
1006
|
skaterFullName: string;
|
|
1009
|
-
/** Absent when
|
|
1007
|
+
/** Absent when `aggregate: true` */
|
|
1010
1008
|
teamAbbrevs?: string;
|
|
1011
1009
|
timeOnIce: number;
|
|
1012
1010
|
timeOnIcePerGame: number;
|
|
@@ -1028,22 +1026,20 @@ export interface TeamSummaryRow {
|
|
|
1028
1026
|
powerPlayNetPct: number;
|
|
1029
1027
|
powerPlayPct: number;
|
|
1030
1028
|
regulationAndOtWins: number;
|
|
1031
|
-
/** Absent when
|
|
1029
|
+
/** Absent when `aggregate: true` */
|
|
1032
1030
|
seasonId?: number;
|
|
1033
1031
|
shotsAgainstPerGame: number;
|
|
1034
1032
|
shotsForPerGame: number;
|
|
1035
|
-
/** Absent when
|
|
1033
|
+
/** Absent when `aggregate: true` */
|
|
1036
1034
|
teamFullName?: string;
|
|
1037
|
-
/** Absent when
|
|
1035
|
+
/** Absent when `aggregate: true` */
|
|
1038
1036
|
teamId?: number;
|
|
1039
1037
|
teamShutouts: number;
|
|
1040
1038
|
ties: number | null;
|
|
1041
1039
|
wins: number;
|
|
1042
1040
|
winsInRegulation: number;
|
|
1043
1041
|
winsInShootout: number;
|
|
1044
|
-
/** Low sample count */
|
|
1045
1042
|
franchiseId?: number;
|
|
1046
|
-
/** Low sample count */
|
|
1047
1043
|
franchiseName?: string;
|
|
1048
1044
|
}
|
|
1049
1045
|
/**
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Identifiers accepted by the API: player ids, game ids, seasons, etc. */
|
|
2
2
|
export type Id = string | number;
|
|
3
3
|
/** Sleeps for the given number of seconds. */
|
|
4
|
-
export declare
|
|
4
|
+
export declare function sleep(seconds: number): Promise<void>;
|
package/dist/utils.mjs
CHANGED