@scoreboardmax/api-types 1.0.34-next.27 → 1.0.34-next.29
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 +141 -2
- package/dist/index.mjs +14 -0
- package/dist/internal.cjs +16 -1
- package/dist/internal.d.ts +141 -2
- 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,21 @@ 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
|
+
}
|
|
334
358
|
/**
|
|
335
359
|
* Baseball game settings model
|
|
336
360
|
*/
|
|
@@ -346,6 +370,33 @@ export interface BaseballSettings extends ScoreboardSettingsBase {
|
|
|
346
370
|
enableClockAutomations: boolean;
|
|
347
371
|
innings: number;
|
|
348
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* Baseball insight team statistics response
|
|
375
|
+
*/
|
|
376
|
+
export interface BaseballInsightTeam {
|
|
377
|
+
name: string;
|
|
378
|
+
abbreviation: string;
|
|
379
|
+
color: string;
|
|
380
|
+
logoUrl: string | null;
|
|
381
|
+
runs: number;
|
|
382
|
+
pitchCount: number;
|
|
383
|
+
balls: number;
|
|
384
|
+
strikes: number;
|
|
385
|
+
isHomeTeam: boolean;
|
|
386
|
+
reference: string;
|
|
387
|
+
largestLeadAmount: number | null;
|
|
388
|
+
largestLeadInning: number | null;
|
|
389
|
+
batter: BaseballBatterSummary | null;
|
|
390
|
+
pitcher: BaseballPitcherSummary | null;
|
|
391
|
+
inningSummaries: BaseballInningSummary[];
|
|
392
|
+
batterSummaries: BaseballBatterSummary[];
|
|
393
|
+
pitcherSummaries: BaseballPitcherSummary[];
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Baseball insight team statistics response
|
|
397
|
+
*/
|
|
398
|
+
export interface BaseballInsightTeamResponse extends BaseballInsightTeam {
|
|
399
|
+
}
|
|
349
400
|
/**
|
|
350
401
|
* Baseball settings request
|
|
351
402
|
*/
|
|
@@ -364,12 +415,16 @@ export interface BaseballScoreboardTeamRequest extends ScoreboardTeamBaseRequest
|
|
|
364
415
|
inningRuns: number[];
|
|
365
416
|
hits: number;
|
|
366
417
|
errors: number;
|
|
418
|
+
pitchCount?: number;
|
|
419
|
+
balls?: number;
|
|
420
|
+
strikes?: number;
|
|
367
421
|
pitcher: PlayerSummaryRequest | null;
|
|
368
422
|
pitcherStats: PitcherStatsRequest[];
|
|
369
423
|
batter: PlayerSummaryRequest | null;
|
|
370
424
|
battingRecord: BattingRecordRequest[];
|
|
371
425
|
battingList: PlayerSummaryRequest[];
|
|
372
426
|
isHomeTeam: boolean;
|
|
427
|
+
initialBattingListSize?: number;
|
|
373
428
|
}
|
|
374
429
|
/**
|
|
375
430
|
* Baseball team response
|
|
@@ -379,12 +434,16 @@ export interface BaseballScoreboardTeamResponse extends ScoreboardTeamBaseRespon
|
|
|
379
434
|
inningRuns: number[];
|
|
380
435
|
hits: number;
|
|
381
436
|
errors: number;
|
|
437
|
+
pitchCount?: number;
|
|
438
|
+
balls?: number;
|
|
439
|
+
strikes?: number;
|
|
382
440
|
pitcher: PlayerSummaryResponse | null;
|
|
383
441
|
pitcherStats: PitcherStatsResponse[];
|
|
384
442
|
batter: PlayerSummaryResponse | null;
|
|
385
443
|
battingRecord: BattingRecordResponse[];
|
|
386
444
|
battingList: PlayerSummaryResponse[];
|
|
387
445
|
isHomeTeam: boolean;
|
|
446
|
+
initialBattingListSize?: number;
|
|
388
447
|
}
|
|
389
448
|
/**
|
|
390
449
|
* Basketball game data request
|
|
@@ -630,7 +689,7 @@ export declare enum BasketballTimeoutAllocation {
|
|
|
630
689
|
*/
|
|
631
690
|
export interface BattingRecord {
|
|
632
691
|
playerReference: string;
|
|
633
|
-
|
|
692
|
+
plateAppearances: PlateAppearance[];
|
|
634
693
|
}
|
|
635
694
|
/**
|
|
636
695
|
* Batting record request
|
|
@@ -981,7 +1040,7 @@ export interface InsightResponse {
|
|
|
981
1040
|
dateGameStart: string;
|
|
982
1041
|
dateGameEnd?: string;
|
|
983
1042
|
qualityScore: number;
|
|
984
|
-
data: BasketballInsightResponse;
|
|
1043
|
+
data: BasketballInsightResponse | BaseballInsightResponse;
|
|
985
1044
|
talkingPoints: TalkingPointsResponse[];
|
|
986
1045
|
}
|
|
987
1046
|
/**
|
|
@@ -1244,6 +1303,73 @@ export interface UserListResponse {
|
|
|
1244
1303
|
pageNext: string | null;
|
|
1245
1304
|
data: UserResponse[];
|
|
1246
1305
|
}
|
|
1306
|
+
/**
|
|
1307
|
+
* Per-inning summary statistics
|
|
1308
|
+
*/
|
|
1309
|
+
export interface BaseballInningSummary {
|
|
1310
|
+
inning: number;
|
|
1311
|
+
isBattingComplete: boolean;
|
|
1312
|
+
isPitchingComplete: boolean;
|
|
1313
|
+
runs: number;
|
|
1314
|
+
hits: number;
|
|
1315
|
+
errors: number;
|
|
1316
|
+
cumulativeRuns: number;
|
|
1317
|
+
pitchCount: number;
|
|
1318
|
+
strikeoutsAt: number[];
|
|
1319
|
+
walksAt: number[];
|
|
1320
|
+
runsAt: number[];
|
|
1321
|
+
hitsAt: number[];
|
|
1322
|
+
outsAt: number[];
|
|
1323
|
+
pitcherChangedAt: number[];
|
|
1324
|
+
runnerOnFirst: boolean;
|
|
1325
|
+
runnerOnSecond: boolean;
|
|
1326
|
+
runnerOnThird: boolean;
|
|
1327
|
+
plateAppearances: BaseballPlateAppearance[];
|
|
1328
|
+
pitchPerformanceScore: number[];
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Per-pitcher game stats for the pitching overview visualization
|
|
1332
|
+
*/
|
|
1333
|
+
export interface BaseballPitcherSummary {
|
|
1334
|
+
playerReference: string;
|
|
1335
|
+
playerName: string;
|
|
1336
|
+
playerNumber: string | null;
|
|
1337
|
+
pitchCount: number;
|
|
1338
|
+
strikeouts: number;
|
|
1339
|
+
walks: number;
|
|
1340
|
+
balls: number;
|
|
1341
|
+
strikes: number;
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* Per-plate-appearance record within an inning
|
|
1345
|
+
*/
|
|
1346
|
+
export interface BaseballPlateAppearance {
|
|
1347
|
+
/** Global sequence number for this PA (1..N) */
|
|
1348
|
+
seq: number;
|
|
1349
|
+
/** Batter identity */
|
|
1350
|
+
playerReference: string;
|
|
1351
|
+
playerName: string;
|
|
1352
|
+
playerNumber: string | null;
|
|
1353
|
+
/** Outcome of this plate appearance */
|
|
1354
|
+
result: PlateAppearanceResult;
|
|
1355
|
+
/** Number of pitches thrown during this PA */
|
|
1356
|
+
pitchCount: number;
|
|
1357
|
+
/** Whether this PA ended in a strikeout */
|
|
1358
|
+
isStrikeout: boolean;
|
|
1359
|
+
/** Number of balls thrown during this PA */
|
|
1360
|
+
balls: number;
|
|
1361
|
+
/** Number of strikes thrown during this PA */
|
|
1362
|
+
strikes: number;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Per-player batting summary for the batting matrix visualization
|
|
1366
|
+
*/
|
|
1367
|
+
export interface BaseballBatterSummary {
|
|
1368
|
+
playerReference: string;
|
|
1369
|
+
playerName: string;
|
|
1370
|
+
playerNumber: string | null;
|
|
1371
|
+
plateAppearances: PlateAppearance[];
|
|
1372
|
+
}
|
|
1247
1373
|
/**
|
|
1248
1374
|
* Permission URI-to-actions mapping
|
|
1249
1375
|
*/
|
|
@@ -1269,6 +1395,19 @@ export interface PitcherStatsRequest extends PitcherStats {
|
|
|
1269
1395
|
*/
|
|
1270
1396
|
export interface PitcherStatsResponse extends PitcherStats {
|
|
1271
1397
|
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Plate appearance result type
|
|
1400
|
+
*/
|
|
1401
|
+
export declare enum PlateAppearanceResult {
|
|
1402
|
+
Hit = "hit",
|
|
1403
|
+
Out = "out",
|
|
1404
|
+
NoAb = "noAb",
|
|
1405
|
+
Walk = "walk",
|
|
1406
|
+
HitByPitch = "hitByPitch",
|
|
1407
|
+
Sacrifice = "sacrifice",
|
|
1408
|
+
Error = "error",
|
|
1409
|
+
FieldersChoice = "fieldersChoice"
|
|
1410
|
+
}
|
|
1272
1411
|
/**
|
|
1273
1412
|
* Player creation/update request
|
|
1274
1413
|
*/
|
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,21 @@ 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
|
+
}
|
|
357
381
|
/**
|
|
358
382
|
* Baseball game settings model
|
|
359
383
|
*/
|
|
@@ -369,6 +393,33 @@ export interface BaseballSettings extends ScoreboardSettingsBase {
|
|
|
369
393
|
enableClockAutomations: boolean;
|
|
370
394
|
innings: number;
|
|
371
395
|
}
|
|
396
|
+
/**
|
|
397
|
+
* Baseball insight team statistics response
|
|
398
|
+
*/
|
|
399
|
+
export interface BaseballInsightTeam {
|
|
400
|
+
name: string;
|
|
401
|
+
abbreviation: string;
|
|
402
|
+
color: string;
|
|
403
|
+
logoUrl: string | null;
|
|
404
|
+
runs: number;
|
|
405
|
+
pitchCount: number;
|
|
406
|
+
balls: number;
|
|
407
|
+
strikes: number;
|
|
408
|
+
isHomeTeam: boolean;
|
|
409
|
+
reference: string;
|
|
410
|
+
largestLeadAmount: number | null;
|
|
411
|
+
largestLeadInning: number | null;
|
|
412
|
+
batter: BaseballBatterSummary | null;
|
|
413
|
+
pitcher: BaseballPitcherSummary | null;
|
|
414
|
+
inningSummaries: BaseballInningSummary[];
|
|
415
|
+
batterSummaries: BaseballBatterSummary[];
|
|
416
|
+
pitcherSummaries: BaseballPitcherSummary[];
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Baseball insight team statistics response
|
|
420
|
+
*/
|
|
421
|
+
export interface BaseballInsightTeamResponse extends BaseballInsightTeam {
|
|
422
|
+
}
|
|
372
423
|
/**
|
|
373
424
|
* Baseball settings request
|
|
374
425
|
*/
|
|
@@ -387,12 +438,16 @@ export interface BaseballScoreboardTeamRequest extends ScoreboardTeamBaseRequest
|
|
|
387
438
|
inningRuns: number[];
|
|
388
439
|
hits: number;
|
|
389
440
|
errors: number;
|
|
441
|
+
pitchCount?: number;
|
|
442
|
+
balls?: number;
|
|
443
|
+
strikes?: number;
|
|
390
444
|
pitcher: PlayerSummaryRequest | null;
|
|
391
445
|
pitcherStats: PitcherStatsRequest[];
|
|
392
446
|
batter: PlayerSummaryRequest | null;
|
|
393
447
|
battingRecord: BattingRecordRequest[];
|
|
394
448
|
battingList: PlayerSummaryRequest[];
|
|
395
449
|
isHomeTeam: boolean;
|
|
450
|
+
initialBattingListSize?: number;
|
|
396
451
|
}
|
|
397
452
|
/**
|
|
398
453
|
* Baseball team response
|
|
@@ -402,12 +457,16 @@ export interface BaseballScoreboardTeamResponse extends ScoreboardTeamBaseRespon
|
|
|
402
457
|
inningRuns: number[];
|
|
403
458
|
hits: number;
|
|
404
459
|
errors: number;
|
|
460
|
+
pitchCount?: number;
|
|
461
|
+
balls?: number;
|
|
462
|
+
strikes?: number;
|
|
405
463
|
pitcher: PlayerSummaryResponse | null;
|
|
406
464
|
pitcherStats: PitcherStatsResponse[];
|
|
407
465
|
batter: PlayerSummaryResponse | null;
|
|
408
466
|
battingRecord: BattingRecordResponse[];
|
|
409
467
|
battingList: PlayerSummaryResponse[];
|
|
410
468
|
isHomeTeam: boolean;
|
|
469
|
+
initialBattingListSize?: number;
|
|
411
470
|
}
|
|
412
471
|
/**
|
|
413
472
|
* Basketball game data request
|
|
@@ -653,7 +712,7 @@ export declare enum BasketballTimeoutAllocation {
|
|
|
653
712
|
*/
|
|
654
713
|
export interface BattingRecord {
|
|
655
714
|
playerReference: string;
|
|
656
|
-
|
|
715
|
+
plateAppearances: PlateAppearance[];
|
|
657
716
|
}
|
|
658
717
|
/**
|
|
659
718
|
* Batting record request
|
|
@@ -1004,7 +1063,7 @@ export interface InsightResponse {
|
|
|
1004
1063
|
dateGameStart: string;
|
|
1005
1064
|
dateGameEnd?: string;
|
|
1006
1065
|
qualityScore: number;
|
|
1007
|
-
data: BasketballInsightResponse;
|
|
1066
|
+
data: BasketballInsightResponse | BaseballInsightResponse;
|
|
1008
1067
|
talkingPoints: TalkingPointsResponse[];
|
|
1009
1068
|
}
|
|
1010
1069
|
/**
|
|
@@ -1267,6 +1326,73 @@ export interface UserListResponse {
|
|
|
1267
1326
|
pageNext: string | null;
|
|
1268
1327
|
data: UserResponse[];
|
|
1269
1328
|
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Per-inning summary statistics
|
|
1331
|
+
*/
|
|
1332
|
+
export interface BaseballInningSummary {
|
|
1333
|
+
inning: number;
|
|
1334
|
+
isBattingComplete: boolean;
|
|
1335
|
+
isPitchingComplete: boolean;
|
|
1336
|
+
runs: number;
|
|
1337
|
+
hits: number;
|
|
1338
|
+
errors: number;
|
|
1339
|
+
cumulativeRuns: number;
|
|
1340
|
+
pitchCount: number;
|
|
1341
|
+
strikeoutsAt: number[];
|
|
1342
|
+
walksAt: number[];
|
|
1343
|
+
runsAt: number[];
|
|
1344
|
+
hitsAt: number[];
|
|
1345
|
+
outsAt: number[];
|
|
1346
|
+
pitcherChangedAt: number[];
|
|
1347
|
+
runnerOnFirst: boolean;
|
|
1348
|
+
runnerOnSecond: boolean;
|
|
1349
|
+
runnerOnThird: boolean;
|
|
1350
|
+
plateAppearances: BaseballPlateAppearance[];
|
|
1351
|
+
pitchPerformanceScore: number[];
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Per-pitcher game stats for the pitching overview visualization
|
|
1355
|
+
*/
|
|
1356
|
+
export interface BaseballPitcherSummary {
|
|
1357
|
+
playerReference: string;
|
|
1358
|
+
playerName: string;
|
|
1359
|
+
playerNumber: string | null;
|
|
1360
|
+
pitchCount: number;
|
|
1361
|
+
strikeouts: number;
|
|
1362
|
+
walks: number;
|
|
1363
|
+
balls: number;
|
|
1364
|
+
strikes: number;
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Per-plate-appearance record within an inning
|
|
1368
|
+
*/
|
|
1369
|
+
export interface BaseballPlateAppearance {
|
|
1370
|
+
/** Global sequence number for this PA (1..N) */
|
|
1371
|
+
seq: number;
|
|
1372
|
+
/** Batter identity */
|
|
1373
|
+
playerReference: string;
|
|
1374
|
+
playerName: string;
|
|
1375
|
+
playerNumber: string | null;
|
|
1376
|
+
/** Outcome of this plate appearance */
|
|
1377
|
+
result: PlateAppearanceResult;
|
|
1378
|
+
/** Number of pitches thrown during this PA */
|
|
1379
|
+
pitchCount: number;
|
|
1380
|
+
/** Whether this PA ended in a strikeout */
|
|
1381
|
+
isStrikeout: boolean;
|
|
1382
|
+
/** Number of balls thrown during this PA */
|
|
1383
|
+
balls: number;
|
|
1384
|
+
/** Number of strikes thrown during this PA */
|
|
1385
|
+
strikes: number;
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* Per-player batting summary for the batting matrix visualization
|
|
1389
|
+
*/
|
|
1390
|
+
export interface BaseballBatterSummary {
|
|
1391
|
+
playerReference: string;
|
|
1392
|
+
playerName: string;
|
|
1393
|
+
playerNumber: string | null;
|
|
1394
|
+
plateAppearances: PlateAppearance[];
|
|
1395
|
+
}
|
|
1270
1396
|
/**
|
|
1271
1397
|
* Permission URI-to-actions mapping
|
|
1272
1398
|
*/
|
|
@@ -1292,6 +1418,19 @@ export interface PitcherStatsRequest extends PitcherStats {
|
|
|
1292
1418
|
*/
|
|
1293
1419
|
export interface PitcherStatsResponse extends PitcherStats {
|
|
1294
1420
|
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Plate appearance result type
|
|
1423
|
+
*/
|
|
1424
|
+
export declare enum PlateAppearanceResult {
|
|
1425
|
+
Hit = "hit",
|
|
1426
|
+
Out = "out",
|
|
1427
|
+
NoAb = "noAb",
|
|
1428
|
+
Walk = "walk",
|
|
1429
|
+
HitByPitch = "hitByPitch",
|
|
1430
|
+
Sacrifice = "sacrifice",
|
|
1431
|
+
Error = "error",
|
|
1432
|
+
FieldersChoice = "fieldersChoice"
|
|
1433
|
+
}
|
|
1295
1434
|
/**
|
|
1296
1435
|
* Player creation/update request
|
|
1297
1436
|
*/
|
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
|
*/
|