@scoreboardmax/api-types 1.0.34-next.26 → 1.0.34-next.28
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 -4
- package/dist/index.mjs +14 -0
- package/dist/internal.cjs +16 -1
- package/dist/internal.d.ts +141 -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,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,6 +415,9 @@ 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;
|
|
@@ -379,6 +433,9 @@ export interface BaseballScoreboardTeamResponse extends ScoreboardTeamBaseRespon
|
|
|
379
433
|
inningRuns: number[];
|
|
380
434
|
hits: number;
|
|
381
435
|
errors: number;
|
|
436
|
+
pitchCount?: number;
|
|
437
|
+
balls?: number;
|
|
438
|
+
strikes?: number;
|
|
382
439
|
pitcher: PlayerSummaryResponse | null;
|
|
383
440
|
pitcherStats: PitcherStatsResponse[];
|
|
384
441
|
batter: PlayerSummaryResponse | null;
|
|
@@ -629,8 +686,8 @@ export declare enum BasketballTimeoutAllocation {
|
|
|
629
686
|
* Batting record
|
|
630
687
|
*/
|
|
631
688
|
export interface BattingRecord {
|
|
632
|
-
|
|
633
|
-
|
|
689
|
+
playerReference: string;
|
|
690
|
+
plateAppearances: PlateAppearance[];
|
|
634
691
|
}
|
|
635
692
|
/**
|
|
636
693
|
* Batting record request
|
|
@@ -981,7 +1038,7 @@ export interface InsightResponse {
|
|
|
981
1038
|
dateGameStart: string;
|
|
982
1039
|
dateGameEnd?: string;
|
|
983
1040
|
qualityScore: number;
|
|
984
|
-
data: BasketballInsightResponse;
|
|
1041
|
+
data: BasketballInsightResponse | BaseballInsightResponse;
|
|
985
1042
|
talkingPoints: TalkingPointsResponse[];
|
|
986
1043
|
}
|
|
987
1044
|
/**
|
|
@@ -1244,6 +1301,73 @@ export interface UserListResponse {
|
|
|
1244
1301
|
pageNext: string | null;
|
|
1245
1302
|
data: UserResponse[];
|
|
1246
1303
|
}
|
|
1304
|
+
/**
|
|
1305
|
+
* Per-inning summary statistics
|
|
1306
|
+
*/
|
|
1307
|
+
export interface BaseballInningSummary {
|
|
1308
|
+
inning: number;
|
|
1309
|
+
isBattingComplete: boolean;
|
|
1310
|
+
isPitchingComplete: boolean;
|
|
1311
|
+
runs: number;
|
|
1312
|
+
hits: number;
|
|
1313
|
+
errors: number;
|
|
1314
|
+
cumulativeRuns: number;
|
|
1315
|
+
pitchCount: number;
|
|
1316
|
+
strikeoutsAt: number[];
|
|
1317
|
+
walksAt: number[];
|
|
1318
|
+
runsAt: number[];
|
|
1319
|
+
hitsAt: number[];
|
|
1320
|
+
outsAt: number[];
|
|
1321
|
+
pitcherChangedAt: number[];
|
|
1322
|
+
runnerOnFirst: boolean;
|
|
1323
|
+
runnerOnSecond: boolean;
|
|
1324
|
+
runnerOnThird: boolean;
|
|
1325
|
+
plateAppearances: BaseballPlateAppearance[];
|
|
1326
|
+
pitchPerformanceScore: number[];
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* Per-pitcher game stats for the pitching overview visualization
|
|
1330
|
+
*/
|
|
1331
|
+
export interface BaseballPitcherSummary {
|
|
1332
|
+
playerReference: string;
|
|
1333
|
+
playerName: string;
|
|
1334
|
+
playerNumber: string | null;
|
|
1335
|
+
pitchCount: number;
|
|
1336
|
+
strikeouts: number;
|
|
1337
|
+
walks: number;
|
|
1338
|
+
balls: number;
|
|
1339
|
+
strikes: number;
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Per-plate-appearance record within an inning
|
|
1343
|
+
*/
|
|
1344
|
+
export interface BaseballPlateAppearance {
|
|
1345
|
+
/** Global sequence number for this PA (1..N) */
|
|
1346
|
+
seq: number;
|
|
1347
|
+
/** Batter identity */
|
|
1348
|
+
playerReference: string;
|
|
1349
|
+
playerName: string;
|
|
1350
|
+
playerNumber: string | null;
|
|
1351
|
+
/** Outcome of this plate appearance */
|
|
1352
|
+
result: PlateAppearanceResult;
|
|
1353
|
+
/** Number of pitches thrown during this PA */
|
|
1354
|
+
pitchCount: number;
|
|
1355
|
+
/** Whether this PA ended in a strikeout */
|
|
1356
|
+
isStrikeout: boolean;
|
|
1357
|
+
/** Number of balls thrown during this PA */
|
|
1358
|
+
balls: number;
|
|
1359
|
+
/** Number of strikes thrown during this PA */
|
|
1360
|
+
strikes: number;
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Per-player batting summary for the batting matrix visualization
|
|
1364
|
+
*/
|
|
1365
|
+
export interface BaseballBatterSummary {
|
|
1366
|
+
playerReference: string;
|
|
1367
|
+
playerName: string;
|
|
1368
|
+
playerNumber: string | null;
|
|
1369
|
+
plateAppearances: PlateAppearance[];
|
|
1370
|
+
}
|
|
1247
1371
|
/**
|
|
1248
1372
|
* Permission URI-to-actions mapping
|
|
1249
1373
|
*/
|
|
@@ -1254,7 +1378,7 @@ export type PermissionItem = {
|
|
|
1254
1378
|
* Pitcher stats
|
|
1255
1379
|
*/
|
|
1256
1380
|
export interface PitcherStats {
|
|
1257
|
-
|
|
1381
|
+
playerReference: string;
|
|
1258
1382
|
pitchCount?: number;
|
|
1259
1383
|
strikeouts?: number;
|
|
1260
1384
|
walks?: number;
|
|
@@ -1269,6 +1393,19 @@ export interface PitcherStatsRequest extends PitcherStats {
|
|
|
1269
1393
|
*/
|
|
1270
1394
|
export interface PitcherStatsResponse extends PitcherStats {
|
|
1271
1395
|
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Plate appearance result type
|
|
1398
|
+
*/
|
|
1399
|
+
export declare enum PlateAppearanceResult {
|
|
1400
|
+
Hit = "hit",
|
|
1401
|
+
Out = "out",
|
|
1402
|
+
NoAb = "noAb",
|
|
1403
|
+
Walk = "walk",
|
|
1404
|
+
HitByPitch = "hitByPitch",
|
|
1405
|
+
Sacrifice = "sacrifice",
|
|
1406
|
+
Error = "error",
|
|
1407
|
+
FieldersChoice = "fieldersChoice"
|
|
1408
|
+
}
|
|
1272
1409
|
/**
|
|
1273
1410
|
* Player creation/update request
|
|
1274
1411
|
*/
|
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,6 +438,9 @@ 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;
|
|
@@ -402,6 +456,9 @@ export interface BaseballScoreboardTeamResponse extends ScoreboardTeamBaseRespon
|
|
|
402
456
|
inningRuns: number[];
|
|
403
457
|
hits: number;
|
|
404
458
|
errors: number;
|
|
459
|
+
pitchCount?: number;
|
|
460
|
+
balls?: number;
|
|
461
|
+
strikes?: number;
|
|
405
462
|
pitcher: PlayerSummaryResponse | null;
|
|
406
463
|
pitcherStats: PitcherStatsResponse[];
|
|
407
464
|
batter: PlayerSummaryResponse | null;
|
|
@@ -652,8 +709,8 @@ export declare enum BasketballTimeoutAllocation {
|
|
|
652
709
|
* Batting record
|
|
653
710
|
*/
|
|
654
711
|
export interface BattingRecord {
|
|
655
|
-
|
|
656
|
-
|
|
712
|
+
playerReference: string;
|
|
713
|
+
plateAppearances: PlateAppearance[];
|
|
657
714
|
}
|
|
658
715
|
/**
|
|
659
716
|
* Batting record request
|
|
@@ -1004,7 +1061,7 @@ export interface InsightResponse {
|
|
|
1004
1061
|
dateGameStart: string;
|
|
1005
1062
|
dateGameEnd?: string;
|
|
1006
1063
|
qualityScore: number;
|
|
1007
|
-
data: BasketballInsightResponse;
|
|
1064
|
+
data: BasketballInsightResponse | BaseballInsightResponse;
|
|
1008
1065
|
talkingPoints: TalkingPointsResponse[];
|
|
1009
1066
|
}
|
|
1010
1067
|
/**
|
|
@@ -1267,6 +1324,73 @@ export interface UserListResponse {
|
|
|
1267
1324
|
pageNext: string | null;
|
|
1268
1325
|
data: UserResponse[];
|
|
1269
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Per-inning summary statistics
|
|
1329
|
+
*/
|
|
1330
|
+
export interface BaseballInningSummary {
|
|
1331
|
+
inning: number;
|
|
1332
|
+
isBattingComplete: boolean;
|
|
1333
|
+
isPitchingComplete: boolean;
|
|
1334
|
+
runs: number;
|
|
1335
|
+
hits: number;
|
|
1336
|
+
errors: number;
|
|
1337
|
+
cumulativeRuns: number;
|
|
1338
|
+
pitchCount: number;
|
|
1339
|
+
strikeoutsAt: number[];
|
|
1340
|
+
walksAt: number[];
|
|
1341
|
+
runsAt: number[];
|
|
1342
|
+
hitsAt: number[];
|
|
1343
|
+
outsAt: number[];
|
|
1344
|
+
pitcherChangedAt: number[];
|
|
1345
|
+
runnerOnFirst: boolean;
|
|
1346
|
+
runnerOnSecond: boolean;
|
|
1347
|
+
runnerOnThird: boolean;
|
|
1348
|
+
plateAppearances: BaseballPlateAppearance[];
|
|
1349
|
+
pitchPerformanceScore: number[];
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Per-pitcher game stats for the pitching overview visualization
|
|
1353
|
+
*/
|
|
1354
|
+
export interface BaseballPitcherSummary {
|
|
1355
|
+
playerReference: string;
|
|
1356
|
+
playerName: string;
|
|
1357
|
+
playerNumber: string | null;
|
|
1358
|
+
pitchCount: number;
|
|
1359
|
+
strikeouts: number;
|
|
1360
|
+
walks: number;
|
|
1361
|
+
balls: number;
|
|
1362
|
+
strikes: number;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Per-plate-appearance record within an inning
|
|
1366
|
+
*/
|
|
1367
|
+
export interface BaseballPlateAppearance {
|
|
1368
|
+
/** Global sequence number for this PA (1..N) */
|
|
1369
|
+
seq: number;
|
|
1370
|
+
/** Batter identity */
|
|
1371
|
+
playerReference: string;
|
|
1372
|
+
playerName: string;
|
|
1373
|
+
playerNumber: string | null;
|
|
1374
|
+
/** Outcome of this plate appearance */
|
|
1375
|
+
result: PlateAppearanceResult;
|
|
1376
|
+
/** Number of pitches thrown during this PA */
|
|
1377
|
+
pitchCount: number;
|
|
1378
|
+
/** Whether this PA ended in a strikeout */
|
|
1379
|
+
isStrikeout: boolean;
|
|
1380
|
+
/** Number of balls thrown during this PA */
|
|
1381
|
+
balls: number;
|
|
1382
|
+
/** Number of strikes thrown during this PA */
|
|
1383
|
+
strikes: number;
|
|
1384
|
+
}
|
|
1385
|
+
/**
|
|
1386
|
+
* Per-player batting summary for the batting matrix visualization
|
|
1387
|
+
*/
|
|
1388
|
+
export interface BaseballBatterSummary {
|
|
1389
|
+
playerReference: string;
|
|
1390
|
+
playerName: string;
|
|
1391
|
+
playerNumber: string | null;
|
|
1392
|
+
plateAppearances: PlateAppearance[];
|
|
1393
|
+
}
|
|
1270
1394
|
/**
|
|
1271
1395
|
* Permission URI-to-actions mapping
|
|
1272
1396
|
*/
|
|
@@ -1277,7 +1401,7 @@ export type PermissionItem = {
|
|
|
1277
1401
|
* Pitcher stats
|
|
1278
1402
|
*/
|
|
1279
1403
|
export interface PitcherStats {
|
|
1280
|
-
|
|
1404
|
+
playerReference: string;
|
|
1281
1405
|
pitchCount?: number;
|
|
1282
1406
|
strikeouts?: number;
|
|
1283
1407
|
walks?: number;
|
|
@@ -1292,6 +1416,19 @@ export interface PitcherStatsRequest extends PitcherStats {
|
|
|
1292
1416
|
*/
|
|
1293
1417
|
export interface PitcherStatsResponse extends PitcherStats {
|
|
1294
1418
|
}
|
|
1419
|
+
/**
|
|
1420
|
+
* Plate appearance result type
|
|
1421
|
+
*/
|
|
1422
|
+
export declare enum PlateAppearanceResult {
|
|
1423
|
+
Hit = "hit",
|
|
1424
|
+
Out = "out",
|
|
1425
|
+
NoAb = "noAb",
|
|
1426
|
+
Walk = "walk",
|
|
1427
|
+
HitByPitch = "hitByPitch",
|
|
1428
|
+
Sacrifice = "sacrifice",
|
|
1429
|
+
Error = "error",
|
|
1430
|
+
FieldersChoice = "fieldersChoice"
|
|
1431
|
+
}
|
|
1295
1432
|
/**
|
|
1296
1433
|
* Player creation/update request
|
|
1297
1434
|
*/
|
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
|
*/
|