@scoreboardmax/api-types 1.0.53 → 1.0.55
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/dist/index.cjs +15 -1
- package/dist/index.d.ts +148 -4
- package/dist/index.mjs +14 -0
- package/dist/internal.cjs +16 -1
- package/dist/internal.d.ts +148 -4
- package/dist/internal.mjs +14 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ErrorCode = exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.MetaMessageType = exports.WebsocketMessageType = exports.VolleyballSet = exports.isWrestlingData = exports.isVolleyballData = exports.isSoccerData = exports.isFootballData = exports.isBasketballData = exports.isBaseballData = exports.BaseballInningSegment = exports.TemplateUseCase = exports.ScoreboardType = exports.SoccerGamePeriods = exports.SoccerPeriod = exports.SoccerPenaltyCardType = exports.ScoreboardCode = exports.OAuthProvider = exports.OAuthAction = exports.MagicLinkType = exports.FootballPeriod = exports.TalkingPointFocus = exports.FileType = exports.ContentType = exports.ExtraTimeLabel = exports.EventAction = exports.AppEntitlementRequirement = exports.TalkingPointEnergy = exports.DownAndDistanceDisplay = exports.DisplayConnectionStatus = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballGamePeriods = exports.BasketballPeriod = exports.PlanId = exports.AuthType = exports.AppType = exports.AppEntitlementType = exports.AppEntitlementGrantedBy = exports.ApiResource = exports.ApiAction = void 0;
|
|
10
|
+
exports.ErrorCode = exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.MetaMessageType = exports.WebsocketMessageType = exports.VolleyballSet = exports.isWrestlingData = exports.isVolleyballData = exports.isSoccerData = exports.isFootballData = exports.isBasketballData = exports.isBaseballData = exports.BaseballInningSegment = exports.TemplateUseCase = exports.ScoreboardType = exports.SoccerGamePeriods = exports.SoccerPeriod = exports.SoccerPenaltyCardType = exports.ScoreboardCode = exports.PlateAppearanceResult = exports.OAuthProvider = exports.OAuthAction = exports.MagicLinkType = exports.FootballPeriod = exports.TalkingPointFocus = exports.FileType = exports.ContentType = exports.ExtraTimeLabel = exports.EventAction = exports.AppEntitlementRequirement = exports.TalkingPointEnergy = exports.DownAndDistanceDisplay = exports.DisplayConnectionStatus = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballGamePeriods = exports.BasketballPeriod = exports.PlanId = exports.AuthType = exports.AppType = exports.AppEntitlementType = exports.AppEntitlementGrantedBy = exports.ApiResource = exports.ApiAction = void 0;
|
|
11
11
|
/**
|
|
12
12
|
* API action identifiers
|
|
13
13
|
*/
|
|
@@ -277,6 +277,20 @@ var OAuthProvider;
|
|
|
277
277
|
(function (OAuthProvider) {
|
|
278
278
|
OAuthProvider["Google"] = "google";
|
|
279
279
|
})(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
|
|
280
|
+
/**
|
|
281
|
+
* Plate appearance result type
|
|
282
|
+
*/
|
|
283
|
+
var PlateAppearanceResult;
|
|
284
|
+
(function (PlateAppearanceResult) {
|
|
285
|
+
PlateAppearanceResult["Hit"] = "hit";
|
|
286
|
+
PlateAppearanceResult["Out"] = "out";
|
|
287
|
+
PlateAppearanceResult["NoAb"] = "noAb";
|
|
288
|
+
PlateAppearanceResult["Walk"] = "walk";
|
|
289
|
+
PlateAppearanceResult["HitByPitch"] = "hitByPitch";
|
|
290
|
+
PlateAppearanceResult["Sacrifice"] = "sacrifice";
|
|
291
|
+
PlateAppearanceResult["Error"] = "error";
|
|
292
|
+
PlateAppearanceResult["FieldersChoice"] = "fieldersChoice";
|
|
293
|
+
})(PlateAppearanceResult || (exports.PlateAppearanceResult = PlateAppearanceResult = {}));
|
|
280
294
|
/**
|
|
281
295
|
* Short codes for sport types
|
|
282
296
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,15 @@
|
|
|
5
5
|
* These types are automatically generated from the ScoreboardMax API source code.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* A single plate appearance with its result and optional count data.
|
|
10
|
+
* When the client records a result, it includes the ball/strike count at that moment.
|
|
11
|
+
*/
|
|
12
|
+
export interface PlateAppearance {
|
|
13
|
+
result: PlateAppearanceResult;
|
|
14
|
+
balls?: number;
|
|
15
|
+
strikes?: number;
|
|
16
|
+
}
|
|
8
17
|
/**
|
|
9
18
|
* Account creation/update request
|
|
10
19
|
*/
|
|
@@ -331,6 +340,22 @@ export interface BaseballDataResponse {
|
|
|
331
340
|
team2: BaseballScoreboardTeamResponse;
|
|
332
341
|
settings: BaseballSettingsResponse;
|
|
333
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* Baseball game insight analytics response
|
|
345
|
+
*/
|
|
346
|
+
export interface BaseballInsightResponse {
|
|
347
|
+
team1: BaseballInsightTeamResponse;
|
|
348
|
+
team2: BaseballInsightTeamResponse;
|
|
349
|
+
inning: number;
|
|
350
|
+
inningSegment: BaseballInningSegment;
|
|
351
|
+
balls: number | null;
|
|
352
|
+
strikes: number | null;
|
|
353
|
+
outs: number | null;
|
|
354
|
+
final: boolean;
|
|
355
|
+
leadChanges: number;
|
|
356
|
+
ties: number;
|
|
357
|
+
innings: number;
|
|
358
|
+
}
|
|
334
359
|
/**
|
|
335
360
|
* Baseball game settings model
|
|
336
361
|
*/
|
|
@@ -346,6 +371,34 @@ export interface BaseballSettings extends ScoreboardSettingsBase {
|
|
|
346
371
|
enableClockAutomations: boolean;
|
|
347
372
|
innings: number;
|
|
348
373
|
}
|
|
374
|
+
/**
|
|
375
|
+
* Baseball insight team statistics response
|
|
376
|
+
*/
|
|
377
|
+
export interface BaseballInsightTeam {
|
|
378
|
+
name: string;
|
|
379
|
+
abbreviation: string;
|
|
380
|
+
color: string;
|
|
381
|
+
logoUrl: string | null;
|
|
382
|
+
runs: number;
|
|
383
|
+
pitchCount: number;
|
|
384
|
+
balls: number;
|
|
385
|
+
strikes: number;
|
|
386
|
+
isHomeTeam: boolean;
|
|
387
|
+
reference: string;
|
|
388
|
+
largestLeadAmount: number | null;
|
|
389
|
+
largestLeadInning: number | null;
|
|
390
|
+
batter: BaseballBatterSummary | null;
|
|
391
|
+
onDeck: BaseballBatterSummary | null;
|
|
392
|
+
pitcher: BaseballPitcherSummary | null;
|
|
393
|
+
inningSummaries: BaseballInningSummary[];
|
|
394
|
+
batterSummaries: BaseballBatterSummary[];
|
|
395
|
+
pitcherSummaries: BaseballPitcherSummary[];
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Baseball insight team statistics response
|
|
399
|
+
*/
|
|
400
|
+
export interface BaseballInsightTeamResponse extends BaseballInsightTeam {
|
|
401
|
+
}
|
|
349
402
|
/**
|
|
350
403
|
* Baseball settings request
|
|
351
404
|
*/
|
|
@@ -364,12 +417,16 @@ export interface BaseballScoreboardTeamRequest extends ScoreboardTeamBaseRequest
|
|
|
364
417
|
inningRuns: number[];
|
|
365
418
|
hits: number;
|
|
366
419
|
errors: number;
|
|
420
|
+
pitchCount?: number;
|
|
421
|
+
balls?: number;
|
|
422
|
+
strikes?: number;
|
|
367
423
|
pitcher: PlayerSummaryRequest | null;
|
|
368
424
|
pitcherStats: PitcherStatsRequest[];
|
|
369
425
|
batter: PlayerSummaryRequest | null;
|
|
370
426
|
battingRecord: BattingRecordRequest[];
|
|
371
427
|
battingList: PlayerSummaryRequest[];
|
|
372
428
|
isHomeTeam: boolean;
|
|
429
|
+
initialBattingListSize?: number;
|
|
373
430
|
}
|
|
374
431
|
/**
|
|
375
432
|
* Baseball team response
|
|
@@ -379,12 +436,16 @@ export interface BaseballScoreboardTeamResponse extends ScoreboardTeamBaseRespon
|
|
|
379
436
|
inningRuns: number[];
|
|
380
437
|
hits: number;
|
|
381
438
|
errors: number;
|
|
439
|
+
pitchCount?: number;
|
|
440
|
+
balls?: number;
|
|
441
|
+
strikes?: number;
|
|
382
442
|
pitcher: PlayerSummaryResponse | null;
|
|
383
443
|
pitcherStats: PitcherStatsResponse[];
|
|
384
444
|
batter: PlayerSummaryResponse | null;
|
|
385
445
|
battingRecord: BattingRecordResponse[];
|
|
386
446
|
battingList: PlayerSummaryResponse[];
|
|
387
447
|
isHomeTeam: boolean;
|
|
448
|
+
initialBattingListSize?: number;
|
|
388
449
|
}
|
|
389
450
|
/**
|
|
390
451
|
* Basketball game data request
|
|
@@ -629,8 +690,8 @@ export declare enum BasketballTimeoutAllocation {
|
|
|
629
690
|
* Batting record
|
|
630
691
|
*/
|
|
631
692
|
export interface BattingRecord {
|
|
632
|
-
|
|
633
|
-
|
|
693
|
+
playerReference: string;
|
|
694
|
+
plateAppearances: PlateAppearance[];
|
|
634
695
|
}
|
|
635
696
|
/**
|
|
636
697
|
* Batting record request
|
|
@@ -981,7 +1042,7 @@ export interface InsightResponse {
|
|
|
981
1042
|
dateGameStart: string;
|
|
982
1043
|
dateGameEnd?: string;
|
|
983
1044
|
qualityScore: number;
|
|
984
|
-
data: BasketballInsightResponse;
|
|
1045
|
+
data: BasketballInsightResponse | BaseballInsightResponse;
|
|
985
1046
|
talkingPoints: TalkingPointsResponse[];
|
|
986
1047
|
}
|
|
987
1048
|
/**
|
|
@@ -1244,6 +1305,76 @@ export interface UserListResponse {
|
|
|
1244
1305
|
pageNext: string | null;
|
|
1245
1306
|
data: UserResponse[];
|
|
1246
1307
|
}
|
|
1308
|
+
/**
|
|
1309
|
+
* Per-inning summary statistics
|
|
1310
|
+
*/
|
|
1311
|
+
export interface BaseballInningSummary {
|
|
1312
|
+
inning: number;
|
|
1313
|
+
isBattingComplete: boolean;
|
|
1314
|
+
isPitchingComplete: boolean;
|
|
1315
|
+
runs: number;
|
|
1316
|
+
hits: number;
|
|
1317
|
+
errors: number;
|
|
1318
|
+
cumulativeRuns: number;
|
|
1319
|
+
pitchCount: number;
|
|
1320
|
+
strikeoutsAt: number[];
|
|
1321
|
+
walksAt: number[];
|
|
1322
|
+
runsAt: number[];
|
|
1323
|
+
hitsAt: number[];
|
|
1324
|
+
outsAt: number[];
|
|
1325
|
+
pitcherChangedAt: number[];
|
|
1326
|
+
runnerOnFirst: boolean;
|
|
1327
|
+
runnerOnSecond: boolean;
|
|
1328
|
+
runnerOnThird: boolean;
|
|
1329
|
+
plateAppearances: BaseballPlateAppearance[];
|
|
1330
|
+
pitchPerformanceScore: number[];
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Per-pitcher game stats for the pitching overview visualization
|
|
1334
|
+
*/
|
|
1335
|
+
export interface BaseballPitcherSummary {
|
|
1336
|
+
playerReference: string;
|
|
1337
|
+
playerName: string;
|
|
1338
|
+
playerNumber: string | null;
|
|
1339
|
+
pitchCount: number;
|
|
1340
|
+
strikeouts: number;
|
|
1341
|
+
walks: number;
|
|
1342
|
+
balls: number;
|
|
1343
|
+
strikes: number;
|
|
1344
|
+
hits: number;
|
|
1345
|
+
/** Average pitches per completed plate appearance (null if no completed PAs) */
|
|
1346
|
+
pitchesPerPlateAppearance: number | null;
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Per-plate-appearance record within an inning
|
|
1350
|
+
*/
|
|
1351
|
+
export interface BaseballPlateAppearance {
|
|
1352
|
+
/** Global sequence number for this PA (1..N) */
|
|
1353
|
+
seq: number;
|
|
1354
|
+
/** Batter identity */
|
|
1355
|
+
playerReference: string;
|
|
1356
|
+
playerName: string;
|
|
1357
|
+
playerNumber: string | null;
|
|
1358
|
+
/** Outcome of this plate appearance */
|
|
1359
|
+
result: PlateAppearanceResult;
|
|
1360
|
+
/** Number of pitches thrown during this PA */
|
|
1361
|
+
pitchCount: number;
|
|
1362
|
+
/** Whether this PA ended in a strikeout */
|
|
1363
|
+
isStrikeout: boolean;
|
|
1364
|
+
/** Number of balls thrown during this PA */
|
|
1365
|
+
balls: number;
|
|
1366
|
+
/** Number of strikes thrown during this PA */
|
|
1367
|
+
strikes: number;
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Per-player batting summary for the batting matrix visualization
|
|
1371
|
+
*/
|
|
1372
|
+
export interface BaseballBatterSummary {
|
|
1373
|
+
playerReference: string;
|
|
1374
|
+
playerName: string;
|
|
1375
|
+
playerNumber: string | null;
|
|
1376
|
+
plateAppearances: PlateAppearance[];
|
|
1377
|
+
}
|
|
1247
1378
|
/**
|
|
1248
1379
|
* Permission URI-to-actions mapping
|
|
1249
1380
|
*/
|
|
@@ -1254,7 +1385,7 @@ export type PermissionItem = {
|
|
|
1254
1385
|
* Pitcher stats
|
|
1255
1386
|
*/
|
|
1256
1387
|
export interface PitcherStats {
|
|
1257
|
-
|
|
1388
|
+
playerReference: string;
|
|
1258
1389
|
pitchCount?: number;
|
|
1259
1390
|
strikeouts?: number;
|
|
1260
1391
|
walks?: number;
|
|
@@ -1269,6 +1400,19 @@ export interface PitcherStatsRequest extends PitcherStats {
|
|
|
1269
1400
|
*/
|
|
1270
1401
|
export interface PitcherStatsResponse extends PitcherStats {
|
|
1271
1402
|
}
|
|
1403
|
+
/**
|
|
1404
|
+
* Plate appearance result type
|
|
1405
|
+
*/
|
|
1406
|
+
export declare enum PlateAppearanceResult {
|
|
1407
|
+
Hit = "hit",
|
|
1408
|
+
Out = "out",
|
|
1409
|
+
NoAb = "noAb",
|
|
1410
|
+
Walk = "walk",
|
|
1411
|
+
HitByPitch = "hitByPitch",
|
|
1412
|
+
Sacrifice = "sacrifice",
|
|
1413
|
+
Error = "error",
|
|
1414
|
+
FieldersChoice = "fieldersChoice"
|
|
1415
|
+
}
|
|
1272
1416
|
/**
|
|
1273
1417
|
* Player creation/update request
|
|
1274
1418
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -274,6 +274,20 @@ export var OAuthProvider;
|
|
|
274
274
|
(function (OAuthProvider) {
|
|
275
275
|
OAuthProvider["Google"] = "google";
|
|
276
276
|
})(OAuthProvider || (OAuthProvider = {}));
|
|
277
|
+
/**
|
|
278
|
+
* Plate appearance result type
|
|
279
|
+
*/
|
|
280
|
+
export var PlateAppearanceResult;
|
|
281
|
+
(function (PlateAppearanceResult) {
|
|
282
|
+
PlateAppearanceResult["Hit"] = "hit";
|
|
283
|
+
PlateAppearanceResult["Out"] = "out";
|
|
284
|
+
PlateAppearanceResult["NoAb"] = "noAb";
|
|
285
|
+
PlateAppearanceResult["Walk"] = "walk";
|
|
286
|
+
PlateAppearanceResult["HitByPitch"] = "hitByPitch";
|
|
287
|
+
PlateAppearanceResult["Sacrifice"] = "sacrifice";
|
|
288
|
+
PlateAppearanceResult["Error"] = "error";
|
|
289
|
+
PlateAppearanceResult["FieldersChoice"] = "fieldersChoice";
|
|
290
|
+
})(PlateAppearanceResult || (PlateAppearanceResult = {}));
|
|
277
291
|
/**
|
|
278
292
|
* Short codes for sport types
|
|
279
293
|
*/
|
package/dist/internal.cjs
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.MetaMessageType = exports.WebsocketMessageType = exports.VolleyballSet = exports.isWrestlingData = exports.isVolleyballData = exports.isSoccerData = exports.isFootballData = exports.isBasketballData = exports.isBaseballData = exports.isUserResponseAdmin = exports.isUserListResponseAdmin = exports.isAuthResponseAdmin = exports.isAccountResponseAdmin = exports.BaseballInningSegment = exports.TemplateUseCase = exports.ScoreboardType = exports.SoccerGamePeriods = exports.SoccerPeriod = exports.SoccerPenaltyCardType = exports.ScoreboardCode = exports.PlateAppearanceResult = exports.OAuthProvider = exports.OAuthAction = exports.MagicLinkType = exports.FootballPeriod = exports.TalkingPointFocus = exports.FileType = exports.ContentType = exports.ExtraTimeLabel = exports.EventAction = exports.AppEntitlementRequirement = exports.TalkingPointEnergy = exports.DownAndDistanceDisplay = exports.DisplayConnectionStatus = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballGamePeriods = exports.BasketballPeriod = exports.PlanId = exports.AuthType = exports.AppType = exports.AppEntitlementType = exports.AppEntitlementGrantedBy = exports.ApiResource = exports.ApiAction = void 0;
|
|
14
|
+
exports.ErrorCode = void 0;
|
|
14
15
|
/**
|
|
15
16
|
* API action identifiers
|
|
16
17
|
*/
|
|
@@ -280,6 +281,20 @@ var OAuthProvider;
|
|
|
280
281
|
(function (OAuthProvider) {
|
|
281
282
|
OAuthProvider["Google"] = "google";
|
|
282
283
|
})(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
|
|
284
|
+
/**
|
|
285
|
+
* Plate appearance result type
|
|
286
|
+
*/
|
|
287
|
+
var PlateAppearanceResult;
|
|
288
|
+
(function (PlateAppearanceResult) {
|
|
289
|
+
PlateAppearanceResult["Hit"] = "hit";
|
|
290
|
+
PlateAppearanceResult["Out"] = "out";
|
|
291
|
+
PlateAppearanceResult["NoAb"] = "noAb";
|
|
292
|
+
PlateAppearanceResult["Walk"] = "walk";
|
|
293
|
+
PlateAppearanceResult["HitByPitch"] = "hitByPitch";
|
|
294
|
+
PlateAppearanceResult["Sacrifice"] = "sacrifice";
|
|
295
|
+
PlateAppearanceResult["Error"] = "error";
|
|
296
|
+
PlateAppearanceResult["FieldersChoice"] = "fieldersChoice";
|
|
297
|
+
})(PlateAppearanceResult || (exports.PlateAppearanceResult = PlateAppearanceResult = {}));
|
|
283
298
|
/**
|
|
284
299
|
* Short codes for sport types
|
|
285
300
|
*/
|
package/dist/internal.d.ts
CHANGED
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
* these interfaces will not be returned by the API to non-admin users.
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
+
/**
|
|
12
|
+
* A single plate appearance with its result and optional count data.
|
|
13
|
+
* When the client records a result, it includes the ball/strike count at that moment.
|
|
14
|
+
*/
|
|
15
|
+
export interface PlateAppearance {
|
|
16
|
+
result: PlateAppearanceResult;
|
|
17
|
+
balls?: number;
|
|
18
|
+
strikes?: number;
|
|
19
|
+
}
|
|
11
20
|
/**
|
|
12
21
|
* Account creation/update request
|
|
13
22
|
*/
|
|
@@ -354,6 +363,22 @@ export interface BaseballDataResponse {
|
|
|
354
363
|
team2: BaseballScoreboardTeamResponse;
|
|
355
364
|
settings: BaseballSettingsResponse;
|
|
356
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Baseball game insight analytics response
|
|
368
|
+
*/
|
|
369
|
+
export interface BaseballInsightResponse {
|
|
370
|
+
team1: BaseballInsightTeamResponse;
|
|
371
|
+
team2: BaseballInsightTeamResponse;
|
|
372
|
+
inning: number;
|
|
373
|
+
inningSegment: BaseballInningSegment;
|
|
374
|
+
balls: number | null;
|
|
375
|
+
strikes: number | null;
|
|
376
|
+
outs: number | null;
|
|
377
|
+
final: boolean;
|
|
378
|
+
leadChanges: number;
|
|
379
|
+
ties: number;
|
|
380
|
+
innings: number;
|
|
381
|
+
}
|
|
357
382
|
/**
|
|
358
383
|
* Baseball game settings model
|
|
359
384
|
*/
|
|
@@ -369,6 +394,34 @@ export interface BaseballSettings extends ScoreboardSettingsBase {
|
|
|
369
394
|
enableClockAutomations: boolean;
|
|
370
395
|
innings: number;
|
|
371
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* Baseball insight team statistics response
|
|
399
|
+
*/
|
|
400
|
+
export interface BaseballInsightTeam {
|
|
401
|
+
name: string;
|
|
402
|
+
abbreviation: string;
|
|
403
|
+
color: string;
|
|
404
|
+
logoUrl: string | null;
|
|
405
|
+
runs: number;
|
|
406
|
+
pitchCount: number;
|
|
407
|
+
balls: number;
|
|
408
|
+
strikes: number;
|
|
409
|
+
isHomeTeam: boolean;
|
|
410
|
+
reference: string;
|
|
411
|
+
largestLeadAmount: number | null;
|
|
412
|
+
largestLeadInning: number | null;
|
|
413
|
+
batter: BaseballBatterSummary | null;
|
|
414
|
+
onDeck: BaseballBatterSummary | null;
|
|
415
|
+
pitcher: BaseballPitcherSummary | null;
|
|
416
|
+
inningSummaries: BaseballInningSummary[];
|
|
417
|
+
batterSummaries: BaseballBatterSummary[];
|
|
418
|
+
pitcherSummaries: BaseballPitcherSummary[];
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Baseball insight team statistics response
|
|
422
|
+
*/
|
|
423
|
+
export interface BaseballInsightTeamResponse extends BaseballInsightTeam {
|
|
424
|
+
}
|
|
372
425
|
/**
|
|
373
426
|
* Baseball settings request
|
|
374
427
|
*/
|
|
@@ -387,12 +440,16 @@ export interface BaseballScoreboardTeamRequest extends ScoreboardTeamBaseRequest
|
|
|
387
440
|
inningRuns: number[];
|
|
388
441
|
hits: number;
|
|
389
442
|
errors: number;
|
|
443
|
+
pitchCount?: number;
|
|
444
|
+
balls?: number;
|
|
445
|
+
strikes?: number;
|
|
390
446
|
pitcher: PlayerSummaryRequest | null;
|
|
391
447
|
pitcherStats: PitcherStatsRequest[];
|
|
392
448
|
batter: PlayerSummaryRequest | null;
|
|
393
449
|
battingRecord: BattingRecordRequest[];
|
|
394
450
|
battingList: PlayerSummaryRequest[];
|
|
395
451
|
isHomeTeam: boolean;
|
|
452
|
+
initialBattingListSize?: number;
|
|
396
453
|
}
|
|
397
454
|
/**
|
|
398
455
|
* Baseball team response
|
|
@@ -402,12 +459,16 @@ export interface BaseballScoreboardTeamResponse extends ScoreboardTeamBaseRespon
|
|
|
402
459
|
inningRuns: number[];
|
|
403
460
|
hits: number;
|
|
404
461
|
errors: number;
|
|
462
|
+
pitchCount?: number;
|
|
463
|
+
balls?: number;
|
|
464
|
+
strikes?: number;
|
|
405
465
|
pitcher: PlayerSummaryResponse | null;
|
|
406
466
|
pitcherStats: PitcherStatsResponse[];
|
|
407
467
|
batter: PlayerSummaryResponse | null;
|
|
408
468
|
battingRecord: BattingRecordResponse[];
|
|
409
469
|
battingList: PlayerSummaryResponse[];
|
|
410
470
|
isHomeTeam: boolean;
|
|
471
|
+
initialBattingListSize?: number;
|
|
411
472
|
}
|
|
412
473
|
/**
|
|
413
474
|
* Basketball game data request
|
|
@@ -652,8 +713,8 @@ export declare enum BasketballTimeoutAllocation {
|
|
|
652
713
|
* Batting record
|
|
653
714
|
*/
|
|
654
715
|
export interface BattingRecord {
|
|
655
|
-
|
|
656
|
-
|
|
716
|
+
playerReference: string;
|
|
717
|
+
plateAppearances: PlateAppearance[];
|
|
657
718
|
}
|
|
658
719
|
/**
|
|
659
720
|
* Batting record request
|
|
@@ -1004,7 +1065,7 @@ export interface InsightResponse {
|
|
|
1004
1065
|
dateGameStart: string;
|
|
1005
1066
|
dateGameEnd?: string;
|
|
1006
1067
|
qualityScore: number;
|
|
1007
|
-
data: BasketballInsightResponse;
|
|
1068
|
+
data: BasketballInsightResponse | BaseballInsightResponse;
|
|
1008
1069
|
talkingPoints: TalkingPointsResponse[];
|
|
1009
1070
|
}
|
|
1010
1071
|
/**
|
|
@@ -1267,6 +1328,76 @@ export interface UserListResponse {
|
|
|
1267
1328
|
pageNext: string | null;
|
|
1268
1329
|
data: UserResponse[];
|
|
1269
1330
|
}
|
|
1331
|
+
/**
|
|
1332
|
+
* Per-inning summary statistics
|
|
1333
|
+
*/
|
|
1334
|
+
export interface BaseballInningSummary {
|
|
1335
|
+
inning: number;
|
|
1336
|
+
isBattingComplete: boolean;
|
|
1337
|
+
isPitchingComplete: boolean;
|
|
1338
|
+
runs: number;
|
|
1339
|
+
hits: number;
|
|
1340
|
+
errors: number;
|
|
1341
|
+
cumulativeRuns: number;
|
|
1342
|
+
pitchCount: number;
|
|
1343
|
+
strikeoutsAt: number[];
|
|
1344
|
+
walksAt: number[];
|
|
1345
|
+
runsAt: number[];
|
|
1346
|
+
hitsAt: number[];
|
|
1347
|
+
outsAt: number[];
|
|
1348
|
+
pitcherChangedAt: number[];
|
|
1349
|
+
runnerOnFirst: boolean;
|
|
1350
|
+
runnerOnSecond: boolean;
|
|
1351
|
+
runnerOnThird: boolean;
|
|
1352
|
+
plateAppearances: BaseballPlateAppearance[];
|
|
1353
|
+
pitchPerformanceScore: number[];
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* Per-pitcher game stats for the pitching overview visualization
|
|
1357
|
+
*/
|
|
1358
|
+
export interface BaseballPitcherSummary {
|
|
1359
|
+
playerReference: string;
|
|
1360
|
+
playerName: string;
|
|
1361
|
+
playerNumber: string | null;
|
|
1362
|
+
pitchCount: number;
|
|
1363
|
+
strikeouts: number;
|
|
1364
|
+
walks: number;
|
|
1365
|
+
balls: number;
|
|
1366
|
+
strikes: number;
|
|
1367
|
+
hits: number;
|
|
1368
|
+
/** Average pitches per completed plate appearance (null if no completed PAs) */
|
|
1369
|
+
pitchesPerPlateAppearance: number | null;
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Per-plate-appearance record within an inning
|
|
1373
|
+
*/
|
|
1374
|
+
export interface BaseballPlateAppearance {
|
|
1375
|
+
/** Global sequence number for this PA (1..N) */
|
|
1376
|
+
seq: number;
|
|
1377
|
+
/** Batter identity */
|
|
1378
|
+
playerReference: string;
|
|
1379
|
+
playerName: string;
|
|
1380
|
+
playerNumber: string | null;
|
|
1381
|
+
/** Outcome of this plate appearance */
|
|
1382
|
+
result: PlateAppearanceResult;
|
|
1383
|
+
/** Number of pitches thrown during this PA */
|
|
1384
|
+
pitchCount: number;
|
|
1385
|
+
/** Whether this PA ended in a strikeout */
|
|
1386
|
+
isStrikeout: boolean;
|
|
1387
|
+
/** Number of balls thrown during this PA */
|
|
1388
|
+
balls: number;
|
|
1389
|
+
/** Number of strikes thrown during this PA */
|
|
1390
|
+
strikes: number;
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Per-player batting summary for the batting matrix visualization
|
|
1394
|
+
*/
|
|
1395
|
+
export interface BaseballBatterSummary {
|
|
1396
|
+
playerReference: string;
|
|
1397
|
+
playerName: string;
|
|
1398
|
+
playerNumber: string | null;
|
|
1399
|
+
plateAppearances: PlateAppearance[];
|
|
1400
|
+
}
|
|
1270
1401
|
/**
|
|
1271
1402
|
* Permission URI-to-actions mapping
|
|
1272
1403
|
*/
|
|
@@ -1277,7 +1408,7 @@ export type PermissionItem = {
|
|
|
1277
1408
|
* Pitcher stats
|
|
1278
1409
|
*/
|
|
1279
1410
|
export interface PitcherStats {
|
|
1280
|
-
|
|
1411
|
+
playerReference: string;
|
|
1281
1412
|
pitchCount?: number;
|
|
1282
1413
|
strikeouts?: number;
|
|
1283
1414
|
walks?: number;
|
|
@@ -1292,6 +1423,19 @@ export interface PitcherStatsRequest extends PitcherStats {
|
|
|
1292
1423
|
*/
|
|
1293
1424
|
export interface PitcherStatsResponse extends PitcherStats {
|
|
1294
1425
|
}
|
|
1426
|
+
/**
|
|
1427
|
+
* Plate appearance result type
|
|
1428
|
+
*/
|
|
1429
|
+
export declare enum PlateAppearanceResult {
|
|
1430
|
+
Hit = "hit",
|
|
1431
|
+
Out = "out",
|
|
1432
|
+
NoAb = "noAb",
|
|
1433
|
+
Walk = "walk",
|
|
1434
|
+
HitByPitch = "hitByPitch",
|
|
1435
|
+
Sacrifice = "sacrifice",
|
|
1436
|
+
Error = "error",
|
|
1437
|
+
FieldersChoice = "fieldersChoice"
|
|
1438
|
+
}
|
|
1295
1439
|
/**
|
|
1296
1440
|
* Player creation/update request
|
|
1297
1441
|
*/
|
package/dist/internal.mjs
CHANGED
|
@@ -277,6 +277,20 @@ export var OAuthProvider;
|
|
|
277
277
|
(function (OAuthProvider) {
|
|
278
278
|
OAuthProvider["Google"] = "google";
|
|
279
279
|
})(OAuthProvider || (OAuthProvider = {}));
|
|
280
|
+
/**
|
|
281
|
+
* Plate appearance result type
|
|
282
|
+
*/
|
|
283
|
+
export var PlateAppearanceResult;
|
|
284
|
+
(function (PlateAppearanceResult) {
|
|
285
|
+
PlateAppearanceResult["Hit"] = "hit";
|
|
286
|
+
PlateAppearanceResult["Out"] = "out";
|
|
287
|
+
PlateAppearanceResult["NoAb"] = "noAb";
|
|
288
|
+
PlateAppearanceResult["Walk"] = "walk";
|
|
289
|
+
PlateAppearanceResult["HitByPitch"] = "hitByPitch";
|
|
290
|
+
PlateAppearanceResult["Sacrifice"] = "sacrifice";
|
|
291
|
+
PlateAppearanceResult["Error"] = "error";
|
|
292
|
+
PlateAppearanceResult["FieldersChoice"] = "fieldersChoice";
|
|
293
|
+
})(PlateAppearanceResult || (PlateAppearanceResult = {}));
|
|
280
294
|
/**
|
|
281
295
|
* Short codes for sport types
|
|
282
296
|
*/
|