@bp1222/stats-api 0.6.0 → 0.7.4
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 +37 -0
- package/dist/index.d.ts +1202 -305
- package/dist/index.js +1549 -1019
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ export declare interface ApiResponse<T> {
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* MLB StatAPI
|
|
8
|
-
*
|
|
8
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
9
9
|
*
|
|
10
|
-
* The version of the OpenAPI document: 0.
|
|
10
|
+
* The version of the OpenAPI document: 0.7.4
|
|
11
11
|
*
|
|
12
12
|
*
|
|
13
13
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -50,9 +50,9 @@ export declare class BaseAPI {
|
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* MLB StatAPI
|
|
53
|
-
*
|
|
53
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
54
54
|
*
|
|
55
|
-
* The version of the OpenAPI document: 0.
|
|
55
|
+
* The version of the OpenAPI document: 0.7.4
|
|
56
56
|
*
|
|
57
57
|
*
|
|
58
58
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -400,6 +400,46 @@ export declare function BoxscoreToJSONTyped(value?: Boxscore | null, ignoreDiscr
|
|
|
400
400
|
|
|
401
401
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
402
402
|
|
|
403
|
+
/**
|
|
404
|
+
* MLB StatAPI
|
|
405
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
406
|
+
*
|
|
407
|
+
* The version of the OpenAPI document: 0.7.4
|
|
408
|
+
*
|
|
409
|
+
*
|
|
410
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
411
|
+
* https://openapi-generator.tech
|
|
412
|
+
* Do not edit the class manually.
|
|
413
|
+
*/
|
|
414
|
+
/**
|
|
415
|
+
* Code and description pair (e.g. batSide, pitchHand).
|
|
416
|
+
*
|
|
417
|
+
* @export
|
|
418
|
+
* @interface CodeDescription
|
|
419
|
+
*/
|
|
420
|
+
export declare interface CodeDescription {
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @type {string}
|
|
424
|
+
* @memberof CodeDescription
|
|
425
|
+
*/
|
|
426
|
+
code?: string;
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
* @type {string}
|
|
430
|
+
* @memberof CodeDescription
|
|
431
|
+
*/
|
|
432
|
+
description?: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export declare function CodeDescriptionFromJSON(json: any): CodeDescription;
|
|
436
|
+
|
|
437
|
+
export declare function CodeDescriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeDescription;
|
|
438
|
+
|
|
439
|
+
export declare function CodeDescriptionToJSON(json: any): CodeDescription;
|
|
440
|
+
|
|
441
|
+
export declare function CodeDescriptionToJSONTyped(value?: CodeDescription | null, ignoreDiscriminator?: boolean): any;
|
|
442
|
+
|
|
403
443
|
export declare const COLLECTION_FORMATS: {
|
|
404
444
|
csv: string;
|
|
405
445
|
ssv: string;
|
|
@@ -440,6 +480,40 @@ export declare interface Consume {
|
|
|
440
480
|
contentType: string;
|
|
441
481
|
}
|
|
442
482
|
|
|
483
|
+
/**
|
|
484
|
+
* MLB StatAPI
|
|
485
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
486
|
+
*
|
|
487
|
+
* The version of the OpenAPI document: 0.7.4
|
|
488
|
+
*
|
|
489
|
+
*
|
|
490
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
491
|
+
* https://openapi-generator.tech
|
|
492
|
+
* Do not edit the class manually.
|
|
493
|
+
*/
|
|
494
|
+
/**
|
|
495
|
+
* Links to game-related content (highlights, editorials, etc.). Present on schedule games.
|
|
496
|
+
*
|
|
497
|
+
* @export
|
|
498
|
+
* @interface Content
|
|
499
|
+
*/
|
|
500
|
+
export declare interface Content {
|
|
501
|
+
/**
|
|
502
|
+
* API path for this game's content
|
|
503
|
+
* @type {string}
|
|
504
|
+
* @memberof Content
|
|
505
|
+
*/
|
|
506
|
+
link?: string;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export declare function ContentFromJSON(json: any): Content;
|
|
510
|
+
|
|
511
|
+
export declare function ContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Content;
|
|
512
|
+
|
|
513
|
+
export declare function ContentToJSON(json: any): Content;
|
|
514
|
+
|
|
515
|
+
export declare function ContentToJSONTyped(value?: Content | null, ignoreDiscriminator?: boolean): any;
|
|
516
|
+
|
|
443
517
|
export declare const DefaultConfig: Configuration;
|
|
444
518
|
|
|
445
519
|
/**
|
|
@@ -584,10 +658,10 @@ export declare interface DivisionStandings {
|
|
|
584
658
|
lastUpdated?: string;
|
|
585
659
|
/**
|
|
586
660
|
*
|
|
587
|
-
* @type {Array<
|
|
661
|
+
* @type {Array<ModelRecord>}
|
|
588
662
|
* @memberof DivisionStandings
|
|
589
663
|
*/
|
|
590
|
-
teamRecords: Array<
|
|
664
|
+
teamRecords: Array<ModelRecord>;
|
|
591
665
|
}
|
|
592
666
|
|
|
593
667
|
export declare function DivisionStandingsFromJSON(json: any): DivisionStandings;
|
|
@@ -653,9 +727,9 @@ export declare interface FetchParams {
|
|
|
653
727
|
|
|
654
728
|
/**
|
|
655
729
|
* MLB StatAPI
|
|
656
|
-
*
|
|
730
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
657
731
|
*
|
|
658
|
-
* The version of the OpenAPI document: 0.
|
|
732
|
+
* The version of the OpenAPI document: 0.7.4
|
|
659
733
|
*
|
|
660
734
|
*
|
|
661
735
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -824,6 +898,12 @@ export declare interface Game {
|
|
|
824
898
|
* @memberof Game
|
|
825
899
|
*/
|
|
826
900
|
venue?: Venue;
|
|
901
|
+
/**
|
|
902
|
+
*
|
|
903
|
+
* @type {Content}
|
|
904
|
+
* @memberof Game
|
|
905
|
+
*/
|
|
906
|
+
content?: Content;
|
|
827
907
|
/**
|
|
828
908
|
*
|
|
829
909
|
* @type {boolean}
|
|
@@ -835,7 +915,7 @@ export declare interface Game {
|
|
|
835
915
|
* @type {number}
|
|
836
916
|
* @memberof Game
|
|
837
917
|
*/
|
|
838
|
-
gameNumber
|
|
918
|
+
gameNumber?: number;
|
|
839
919
|
/**
|
|
840
920
|
*
|
|
841
921
|
* @type {boolean}
|
|
@@ -907,13 +987,13 @@ export declare interface Game {
|
|
|
907
987
|
* @type {number}
|
|
908
988
|
* @memberof Game
|
|
909
989
|
*/
|
|
910
|
-
gamesInSeries
|
|
990
|
+
gamesInSeries?: number;
|
|
911
991
|
/**
|
|
912
992
|
*
|
|
913
993
|
* @type {number}
|
|
914
994
|
* @memberof Game
|
|
915
995
|
*/
|
|
916
|
-
seriesGameNumber
|
|
996
|
+
seriesGameNumber?: number;
|
|
917
997
|
/**
|
|
918
998
|
*
|
|
919
999
|
* @type {string}
|
|
@@ -972,6 +1052,40 @@ export declare function GameOfficialToJSON(json: any): GameOfficial;
|
|
|
972
1052
|
|
|
973
1053
|
export declare function GameOfficialToJSONTyped(value?: GameOfficial | null, ignoreDiscriminator?: boolean): any;
|
|
974
1054
|
|
|
1055
|
+
/**
|
|
1056
|
+
*
|
|
1057
|
+
*/
|
|
1058
|
+
export declare class GamesApi extends runtime.BaseAPI {
|
|
1059
|
+
/**
|
|
1060
|
+
* Creates request options for getBoxscore without sending the request
|
|
1061
|
+
*/
|
|
1062
|
+
getBoxscoreRequestOpts(requestParameters: GetBoxscoreRequest): Promise<runtime.RequestOpts>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Returns Boxscore
|
|
1065
|
+
* Retrieves boxscore
|
|
1066
|
+
*/
|
|
1067
|
+
getBoxscoreRaw(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Boxscore>>;
|
|
1068
|
+
/**
|
|
1069
|
+
* Returns Boxscore
|
|
1070
|
+
* Retrieves boxscore
|
|
1071
|
+
*/
|
|
1072
|
+
getBoxscore(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Boxscore>;
|
|
1073
|
+
/**
|
|
1074
|
+
* Creates request options for getLinescore without sending the request
|
|
1075
|
+
*/
|
|
1076
|
+
getLinescoreRequestOpts(requestParameters: GetLinescoreRequest): Promise<runtime.RequestOpts>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Returns Linescore
|
|
1079
|
+
* Retrieves linescore
|
|
1080
|
+
*/
|
|
1081
|
+
getLinescoreRaw(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Linescore>>;
|
|
1082
|
+
/**
|
|
1083
|
+
* Returns Linescore
|
|
1084
|
+
* Retrieves linescore
|
|
1085
|
+
*/
|
|
1086
|
+
getLinescore(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Linescore>;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
975
1089
|
/**
|
|
976
1090
|
*
|
|
977
1091
|
* @export
|
|
@@ -1018,9 +1132,9 @@ export declare interface GameStatus {
|
|
|
1018
1132
|
|
|
1019
1133
|
/**
|
|
1020
1134
|
* MLB StatAPI
|
|
1021
|
-
*
|
|
1135
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
1022
1136
|
*
|
|
1023
|
-
* The version of the OpenAPI document: 0.
|
|
1137
|
+
* The version of the OpenAPI document: 0.7.4
|
|
1024
1138
|
*
|
|
1025
1139
|
*
|
|
1026
1140
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1153,9 +1267,9 @@ export declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator
|
|
|
1153
1267
|
|
|
1154
1268
|
/**
|
|
1155
1269
|
* MLB StatAPI
|
|
1156
|
-
*
|
|
1270
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
1157
1271
|
*
|
|
1158
|
-
* The version of the OpenAPI document: 0.
|
|
1272
|
+
* The version of the OpenAPI document: 0.7.4
|
|
1159
1273
|
*
|
|
1160
1274
|
*
|
|
1161
1275
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1217,6 +1331,19 @@ export declare interface GetLinescoreRequest {
|
|
|
1217
1331
|
fields?: Array<string>;
|
|
1218
1332
|
}
|
|
1219
1333
|
|
|
1334
|
+
export declare interface GetPersonRequest {
|
|
1335
|
+
personId: number;
|
|
1336
|
+
fields?: Array<string>;
|
|
1337
|
+
hydrate?: string;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
export declare interface GetPersonStatsRequest {
|
|
1341
|
+
personId: number;
|
|
1342
|
+
season: string;
|
|
1343
|
+
stats?: string;
|
|
1344
|
+
group?: string;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1220
1347
|
export declare interface GetScheduleRequest {
|
|
1221
1348
|
sportId: number;
|
|
1222
1349
|
gamePk?: number;
|
|
@@ -1336,6 +1463,16 @@ export declare function instanceOfBoxscoreTeam(value: object): value is Boxscore
|
|
|
1336
1463
|
*/
|
|
1337
1464
|
export declare function instanceOfBoxscoreTeams(value: object): value is BoxscoreTeams;
|
|
1338
1465
|
|
|
1466
|
+
/**
|
|
1467
|
+
* Check if a given object implements the CodeDescription interface.
|
|
1468
|
+
*/
|
|
1469
|
+
export declare function instanceOfCodeDescription(value: object): value is CodeDescription;
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Check if a given object implements the Content interface.
|
|
1473
|
+
*/
|
|
1474
|
+
export declare function instanceOfContent(value: object): value is Content;
|
|
1475
|
+
|
|
1339
1476
|
/**
|
|
1340
1477
|
* Check if a given object implements the Division interface.
|
|
1341
1478
|
*/
|
|
@@ -1430,11 +1567,56 @@ export declare function instanceOfLinescoreTeam(value: object): value is Linesco
|
|
|
1430
1567
|
*/
|
|
1431
1568
|
export declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
|
|
1432
1569
|
|
|
1570
|
+
/**
|
|
1571
|
+
* Check if a given object implements the ModelRecord interface.
|
|
1572
|
+
*/
|
|
1573
|
+
export declare function instanceOfModelRecord(value: object): value is ModelRecord;
|
|
1574
|
+
|
|
1433
1575
|
/**
|
|
1434
1576
|
* Check if a given object implements the Official interface.
|
|
1435
1577
|
*/
|
|
1436
1578
|
export declare function instanceOfOfficial(value: object): value is Official;
|
|
1437
1579
|
|
|
1580
|
+
/**
|
|
1581
|
+
* Check if a given object implements the PeopleResponse interface.
|
|
1582
|
+
*/
|
|
1583
|
+
export declare function instanceOfPeopleResponse(value: object): value is PeopleResponse;
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* Check if a given object implements the Person interface.
|
|
1587
|
+
*/
|
|
1588
|
+
export declare function instanceOfPerson(value: object): value is Person;
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* Check if a given object implements the PersonStatsItem interface.
|
|
1592
|
+
*/
|
|
1593
|
+
export declare function instanceOfPersonStatsItem(value: object): value is PersonStatsItem;
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Check if a given object implements the PersonStatsItemType interface.
|
|
1597
|
+
*/
|
|
1598
|
+
export declare function instanceOfPersonStatsItemType(value: object): value is PersonStatsItemType;
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* Check if a given object implements the PersonStatSplit interface.
|
|
1602
|
+
*/
|
|
1603
|
+
export declare function instanceOfPersonStatSplit(value: object): value is PersonStatSplit;
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* Check if a given object implements the PersonStatSplitGame interface.
|
|
1607
|
+
*/
|
|
1608
|
+
export declare function instanceOfPersonStatSplitGame(value: object): value is PersonStatSplitGame;
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* Check if a given object implements the PersonStatSplitPlayer interface.
|
|
1612
|
+
*/
|
|
1613
|
+
export declare function instanceOfPersonStatSplitPlayer(value: object): value is PersonStatSplitPlayer;
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* Check if a given object implements the PersonStatsResponse interface.
|
|
1617
|
+
*/
|
|
1618
|
+
export declare function instanceOfPersonStatsResponse(value: object): value is PersonStatsResponse;
|
|
1619
|
+
|
|
1438
1620
|
/**
|
|
1439
1621
|
* Check if a given object implements the PitchingStats interface.
|
|
1440
1622
|
*/
|
|
@@ -1480,11 +1662,6 @@ export declare function instanceOfPlayerStatus(value: object): value is PlayerSt
|
|
|
1480
1662
|
*/
|
|
1481
1663
|
export declare function instanceOfPosition(value: object): value is Position;
|
|
1482
1664
|
|
|
1483
|
-
/**
|
|
1484
|
-
* Check if a given object implements the Record interface.
|
|
1485
|
-
*/
|
|
1486
|
-
export declare function instanceOfRecord(value: object): value is Record_2;
|
|
1487
|
-
|
|
1488
1665
|
/**
|
|
1489
1666
|
* Check if a given object implements the Schedule interface.
|
|
1490
1667
|
*/
|
|
@@ -1545,7 +1722,7 @@ export declare class JSONApiResponse<T> {
|
|
|
1545
1722
|
}
|
|
1546
1723
|
|
|
1547
1724
|
/**
|
|
1548
|
-
* League
|
|
1725
|
+
* League. When embedded (e.g. in division), may contain only id and link.
|
|
1549
1726
|
*
|
|
1550
1727
|
* @export
|
|
1551
1728
|
* @interface League
|
|
@@ -1553,16 +1730,16 @@ export declare class JSONApiResponse<T> {
|
|
|
1553
1730
|
export declare interface League {
|
|
1554
1731
|
/**
|
|
1555
1732
|
*
|
|
1556
|
-
* @type {
|
|
1733
|
+
* @type {string}
|
|
1557
1734
|
* @memberof League
|
|
1558
1735
|
*/
|
|
1559
|
-
|
|
1736
|
+
name?: string;
|
|
1560
1737
|
/**
|
|
1561
1738
|
*
|
|
1562
|
-
* @type {
|
|
1739
|
+
* @type {number}
|
|
1563
1740
|
* @memberof League
|
|
1564
1741
|
*/
|
|
1565
|
-
|
|
1742
|
+
id: number;
|
|
1566
1743
|
/**
|
|
1567
1744
|
*
|
|
1568
1745
|
* @type {string}
|
|
@@ -1605,6 +1782,24 @@ export declare interface League {
|
|
|
1605
1782
|
* @memberof League
|
|
1606
1783
|
*/
|
|
1607
1784
|
hasPlayoffPoints?: boolean;
|
|
1785
|
+
/**
|
|
1786
|
+
*
|
|
1787
|
+
* @type {number}
|
|
1788
|
+
* @memberof League
|
|
1789
|
+
*/
|
|
1790
|
+
numGames?: number;
|
|
1791
|
+
/**
|
|
1792
|
+
*
|
|
1793
|
+
* @type {number}
|
|
1794
|
+
* @memberof League
|
|
1795
|
+
*/
|
|
1796
|
+
numTeams?: number;
|
|
1797
|
+
/**
|
|
1798
|
+
*
|
|
1799
|
+
* @type {number}
|
|
1800
|
+
* @memberof League
|
|
1801
|
+
*/
|
|
1802
|
+
numWildcardTeams?: number;
|
|
1608
1803
|
/**
|
|
1609
1804
|
*
|
|
1610
1805
|
* @type {LeagueDates}
|
|
@@ -1651,9 +1846,9 @@ export declare interface League {
|
|
|
1651
1846
|
|
|
1652
1847
|
/**
|
|
1653
1848
|
* MLB StatAPI
|
|
1654
|
-
*
|
|
1849
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
1655
1850
|
*
|
|
1656
|
-
* The version of the OpenAPI document: 0.
|
|
1851
|
+
* The version of the OpenAPI document: 0.7.4
|
|
1657
1852
|
*
|
|
1658
1853
|
*
|
|
1659
1854
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1702,6 +1897,54 @@ export declare interface LeagueDates {
|
|
|
1702
1897
|
* @memberof LeagueDates
|
|
1703
1898
|
*/
|
|
1704
1899
|
springEndDate?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
*
|
|
1902
|
+
* @type {string}
|
|
1903
|
+
* @memberof LeagueDates
|
|
1904
|
+
*/
|
|
1905
|
+
regularSeasonStartDate?: string;
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @type {string}
|
|
1909
|
+
* @memberof LeagueDates
|
|
1910
|
+
*/
|
|
1911
|
+
lastDate1stHalf?: string;
|
|
1912
|
+
/**
|
|
1913
|
+
*
|
|
1914
|
+
* @type {string}
|
|
1915
|
+
* @memberof LeagueDates
|
|
1916
|
+
*/
|
|
1917
|
+
allStarDate?: string;
|
|
1918
|
+
/**
|
|
1919
|
+
*
|
|
1920
|
+
* @type {string}
|
|
1921
|
+
* @memberof LeagueDates
|
|
1922
|
+
*/
|
|
1923
|
+
firstDate2ndHalf?: string;
|
|
1924
|
+
/**
|
|
1925
|
+
*
|
|
1926
|
+
* @type {string}
|
|
1927
|
+
* @memberof LeagueDates
|
|
1928
|
+
*/
|
|
1929
|
+
regularSeasonEndDate?: string;
|
|
1930
|
+
/**
|
|
1931
|
+
*
|
|
1932
|
+
* @type {string}
|
|
1933
|
+
* @memberof LeagueDates
|
|
1934
|
+
*/
|
|
1935
|
+
postSeasonStartDate?: string;
|
|
1936
|
+
/**
|
|
1937
|
+
*
|
|
1938
|
+
* @type {string}
|
|
1939
|
+
* @memberof LeagueDates
|
|
1940
|
+
*/
|
|
1941
|
+
postSeasonEndDate?: string;
|
|
1942
|
+
/**
|
|
1943
|
+
*
|
|
1944
|
+
* @type {string}
|
|
1945
|
+
* @memberof LeagueDates
|
|
1946
|
+
*/
|
|
1947
|
+
seasonEndDate?: string;
|
|
1705
1948
|
/**
|
|
1706
1949
|
*
|
|
1707
1950
|
* @type {string}
|
|
@@ -1713,7 +1956,19 @@ export declare interface LeagueDates {
|
|
|
1713
1956
|
* @type {string}
|
|
1714
1957
|
* @memberof LeagueDates
|
|
1715
1958
|
*/
|
|
1716
|
-
|
|
1959
|
+
offSeasonEndDate?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
*
|
|
1962
|
+
* @type {number}
|
|
1963
|
+
* @memberof LeagueDates
|
|
1964
|
+
*/
|
|
1965
|
+
qualifierPlateAppearances?: number;
|
|
1966
|
+
/**
|
|
1967
|
+
*
|
|
1968
|
+
* @type {number}
|
|
1969
|
+
* @memberof LeagueDates
|
|
1970
|
+
*/
|
|
1971
|
+
qualifierOutsPitched?: number;
|
|
1717
1972
|
/**
|
|
1718
1973
|
*
|
|
1719
1974
|
* @type {string}
|
|
@@ -1742,9 +1997,9 @@ export declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
1742
1997
|
|
|
1743
1998
|
/**
|
|
1744
1999
|
* MLB StatAPI
|
|
1745
|
-
*
|
|
2000
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
1746
2001
|
*
|
|
1747
|
-
* The version of the OpenAPI document: 0.
|
|
2002
|
+
* The version of the OpenAPI document: 0.7.4
|
|
1748
2003
|
*
|
|
1749
2004
|
*
|
|
1750
2005
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1898,9 +2153,9 @@ export declare function LinescoreFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
1898
2153
|
|
|
1899
2154
|
/**
|
|
1900
2155
|
* MLB StatAPI
|
|
1901
|
-
*
|
|
2156
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
1902
2157
|
*
|
|
1903
|
-
* The version of the OpenAPI document: 0.
|
|
2158
|
+
* The version of the OpenAPI document: 0.7.4
|
|
1904
2159
|
*
|
|
1905
2160
|
*
|
|
1906
2161
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1990,109 +2245,808 @@ export declare interface Middleware {
|
|
|
1990
2245
|
onError?(context: ErrorContext): Promise<Response | void>;
|
|
1991
2246
|
}
|
|
1992
2247
|
|
|
2248
|
+
export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
2249
|
+
|
|
1993
2250
|
/**
|
|
2251
|
+
* Record
|
|
1994
2252
|
*
|
|
2253
|
+
* @export
|
|
2254
|
+
* @interface ModelRecord
|
|
1995
2255
|
*/
|
|
1996
|
-
export declare
|
|
2256
|
+
export declare interface ModelRecord {
|
|
1997
2257
|
/**
|
|
1998
|
-
*
|
|
1999
|
-
*
|
|
2258
|
+
*
|
|
2259
|
+
* @type {Team}
|
|
2260
|
+
* @memberof ModelRecord
|
|
2000
2261
|
*/
|
|
2001
|
-
|
|
2262
|
+
team: Team;
|
|
2002
2263
|
/**
|
|
2003
|
-
*
|
|
2004
|
-
*
|
|
2264
|
+
*
|
|
2265
|
+
* @type {string}
|
|
2266
|
+
* @memberof ModelRecord
|
|
2005
2267
|
*/
|
|
2006
|
-
|
|
2268
|
+
season: string;
|
|
2007
2269
|
/**
|
|
2008
|
-
*
|
|
2009
|
-
*
|
|
2270
|
+
*
|
|
2271
|
+
* @type {Streak}
|
|
2272
|
+
* @memberof ModelRecord
|
|
2010
2273
|
*/
|
|
2011
|
-
|
|
2274
|
+
streak: Streak;
|
|
2012
2275
|
/**
|
|
2013
|
-
*
|
|
2014
|
-
*
|
|
2276
|
+
*
|
|
2277
|
+
* @type {string}
|
|
2278
|
+
* @memberof ModelRecord
|
|
2015
2279
|
*/
|
|
2016
|
-
|
|
2280
|
+
divisionRank: string;
|
|
2017
2281
|
/**
|
|
2018
|
-
*
|
|
2019
|
-
*
|
|
2282
|
+
*
|
|
2283
|
+
* @type {string}
|
|
2284
|
+
* @memberof ModelRecord
|
|
2020
2285
|
*/
|
|
2021
|
-
|
|
2286
|
+
leagueRank: string;
|
|
2022
2287
|
/**
|
|
2023
|
-
*
|
|
2024
|
-
*
|
|
2288
|
+
*
|
|
2289
|
+
* @type {string}
|
|
2290
|
+
* @memberof ModelRecord
|
|
2025
2291
|
*/
|
|
2026
|
-
|
|
2292
|
+
sportRank?: string;
|
|
2027
2293
|
/**
|
|
2028
|
-
*
|
|
2029
|
-
*
|
|
2294
|
+
*
|
|
2295
|
+
* @type {number}
|
|
2296
|
+
* @memberof ModelRecord
|
|
2030
2297
|
*/
|
|
2031
|
-
|
|
2298
|
+
gamesPlayed?: number;
|
|
2032
2299
|
/**
|
|
2033
|
-
*
|
|
2034
|
-
*
|
|
2300
|
+
*
|
|
2301
|
+
* @type {string}
|
|
2302
|
+
* @memberof ModelRecord
|
|
2035
2303
|
*/
|
|
2036
|
-
|
|
2304
|
+
gamesBack: string;
|
|
2037
2305
|
/**
|
|
2038
|
-
*
|
|
2039
|
-
*
|
|
2306
|
+
*
|
|
2307
|
+
* @type {string}
|
|
2308
|
+
* @memberof ModelRecord
|
|
2040
2309
|
*/
|
|
2041
|
-
|
|
2310
|
+
wildCardGamesBack?: string;
|
|
2042
2311
|
/**
|
|
2043
|
-
*
|
|
2044
|
-
*
|
|
2312
|
+
*
|
|
2313
|
+
* @type {string}
|
|
2314
|
+
* @memberof ModelRecord
|
|
2045
2315
|
*/
|
|
2046
|
-
|
|
2316
|
+
leagueGamesBack?: string;
|
|
2047
2317
|
/**
|
|
2048
|
-
*
|
|
2049
|
-
*
|
|
2318
|
+
*
|
|
2319
|
+
* @type {string}
|
|
2320
|
+
* @memberof ModelRecord
|
|
2050
2321
|
*/
|
|
2051
|
-
|
|
2322
|
+
sportGamesBack?: string;
|
|
2052
2323
|
/**
|
|
2053
|
-
*
|
|
2054
|
-
*
|
|
2324
|
+
*
|
|
2325
|
+
* @type {string}
|
|
2326
|
+
* @memberof ModelRecord
|
|
2055
2327
|
*/
|
|
2056
|
-
|
|
2328
|
+
divisionGamesBack?: string;
|
|
2057
2329
|
/**
|
|
2058
|
-
*
|
|
2059
|
-
*
|
|
2330
|
+
*
|
|
2331
|
+
* @type {string}
|
|
2332
|
+
* @memberof ModelRecord
|
|
2060
2333
|
*/
|
|
2061
|
-
|
|
2334
|
+
conferenceGamesBack?: string;
|
|
2062
2335
|
/**
|
|
2063
|
-
*
|
|
2064
|
-
*
|
|
2336
|
+
*
|
|
2337
|
+
* @type {LeagueRecord}
|
|
2338
|
+
* @memberof ModelRecord
|
|
2065
2339
|
*/
|
|
2066
|
-
|
|
2340
|
+
leagueRecord: LeagueRecord;
|
|
2067
2341
|
/**
|
|
2068
|
-
*
|
|
2069
|
-
*
|
|
2342
|
+
*
|
|
2343
|
+
* @type {string}
|
|
2344
|
+
* @memberof ModelRecord
|
|
2345
|
+
*/
|
|
2346
|
+
lastUpdated?: string;
|
|
2347
|
+
/**
|
|
2348
|
+
*
|
|
2349
|
+
* @type {number}
|
|
2350
|
+
* @memberof ModelRecord
|
|
2351
|
+
*/
|
|
2352
|
+
runsAllowed?: number;
|
|
2353
|
+
/**
|
|
2354
|
+
*
|
|
2355
|
+
* @type {number}
|
|
2356
|
+
* @memberof ModelRecord
|
|
2357
|
+
*/
|
|
2358
|
+
runsScored?: number;
|
|
2359
|
+
/**
|
|
2360
|
+
*
|
|
2361
|
+
* @type {boolean}
|
|
2362
|
+
* @memberof ModelRecord
|
|
2363
|
+
*/
|
|
2364
|
+
divisionChamp?: boolean;
|
|
2365
|
+
/**
|
|
2366
|
+
*
|
|
2367
|
+
* @type {boolean}
|
|
2368
|
+
* @memberof ModelRecord
|
|
2369
|
+
*/
|
|
2370
|
+
divisionLeader?: boolean;
|
|
2371
|
+
/**
|
|
2372
|
+
*
|
|
2373
|
+
* @type {boolean}
|
|
2374
|
+
* @memberof ModelRecord
|
|
2375
|
+
*/
|
|
2376
|
+
hasWildcard?: boolean;
|
|
2377
|
+
/**
|
|
2378
|
+
*
|
|
2379
|
+
* @type {boolean}
|
|
2380
|
+
* @memberof ModelRecord
|
|
2381
|
+
*/
|
|
2382
|
+
clinched?: boolean;
|
|
2383
|
+
/**
|
|
2384
|
+
*
|
|
2385
|
+
* @type {string}
|
|
2386
|
+
* @memberof ModelRecord
|
|
2387
|
+
*/
|
|
2388
|
+
eliminationNumber?: string;
|
|
2389
|
+
/**
|
|
2390
|
+
*
|
|
2391
|
+
* @type {string}
|
|
2392
|
+
* @memberof ModelRecord
|
|
2393
|
+
*/
|
|
2394
|
+
eliminationNumberSport?: string;
|
|
2395
|
+
/**
|
|
2396
|
+
*
|
|
2397
|
+
* @type {string}
|
|
2398
|
+
* @memberof ModelRecord
|
|
2399
|
+
*/
|
|
2400
|
+
eliminationNumberLeague?: string;
|
|
2401
|
+
/**
|
|
2402
|
+
*
|
|
2403
|
+
* @type {string}
|
|
2404
|
+
* @memberof ModelRecord
|
|
2405
|
+
*/
|
|
2406
|
+
eliminationNumberDivision?: string;
|
|
2407
|
+
/**
|
|
2408
|
+
*
|
|
2409
|
+
* @type {string}
|
|
2410
|
+
* @memberof ModelRecord
|
|
2411
|
+
*/
|
|
2412
|
+
eliminationNumberConference?: string;
|
|
2413
|
+
/**
|
|
2414
|
+
*
|
|
2415
|
+
* @type {string}
|
|
2416
|
+
* @memberof ModelRecord
|
|
2417
|
+
*/
|
|
2418
|
+
wildCardEliminationNumber?: string;
|
|
2419
|
+
/**
|
|
2420
|
+
*
|
|
2421
|
+
* @type {string}
|
|
2422
|
+
* @memberof ModelRecord
|
|
2423
|
+
*/
|
|
2424
|
+
magicNumber?: string;
|
|
2425
|
+
/**
|
|
2426
|
+
*
|
|
2427
|
+
* @type {number}
|
|
2428
|
+
* @memberof ModelRecord
|
|
2429
|
+
*/
|
|
2430
|
+
wins: number;
|
|
2431
|
+
/**
|
|
2432
|
+
*
|
|
2433
|
+
* @type {number}
|
|
2434
|
+
* @memberof ModelRecord
|
|
2435
|
+
*/
|
|
2436
|
+
losses: number;
|
|
2437
|
+
/**
|
|
2438
|
+
*
|
|
2439
|
+
* @type {number}
|
|
2440
|
+
* @memberof ModelRecord
|
|
2441
|
+
*/
|
|
2442
|
+
runDifferential?: number;
|
|
2443
|
+
/**
|
|
2444
|
+
*
|
|
2445
|
+
* @type {string}
|
|
2446
|
+
* @memberof ModelRecord
|
|
2447
|
+
*/
|
|
2448
|
+
winningPercentage?: string;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
export declare function ModelRecordFromJSON(json: any): ModelRecord;
|
|
2452
|
+
|
|
2453
|
+
export declare function ModelRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelRecord;
|
|
2454
|
+
|
|
2455
|
+
export declare function ModelRecordToJSON(json: any): ModelRecord;
|
|
2456
|
+
|
|
2457
|
+
export declare function ModelRecordToJSONTyped(value?: ModelRecord | null, ignoreDiscriminator?: boolean): any;
|
|
2458
|
+
|
|
2459
|
+
/**
|
|
2460
|
+
* MLB StatAPI
|
|
2461
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2462
|
+
*
|
|
2463
|
+
* The version of the OpenAPI document: 0.7.4
|
|
2464
|
+
*
|
|
2465
|
+
*
|
|
2466
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2467
|
+
* https://openapi-generator.tech
|
|
2468
|
+
* Do not edit the class manually.
|
|
2469
|
+
*/
|
|
2470
|
+
/**
|
|
2471
|
+
*
|
|
2472
|
+
* @export
|
|
2473
|
+
* @interface Official
|
|
2474
|
+
*/
|
|
2475
|
+
export declare interface Official {
|
|
2476
|
+
/**
|
|
2477
|
+
*
|
|
2478
|
+
* @type {number}
|
|
2479
|
+
* @memberof Official
|
|
2480
|
+
*/
|
|
2481
|
+
id?: number;
|
|
2482
|
+
/**
|
|
2483
|
+
*
|
|
2484
|
+
* @type {string}
|
|
2485
|
+
* @memberof Official
|
|
2486
|
+
*/
|
|
2487
|
+
fullName?: string;
|
|
2488
|
+
/**
|
|
2489
|
+
*
|
|
2490
|
+
* @type {string}
|
|
2491
|
+
* @memberof Official
|
|
2492
|
+
*/
|
|
2493
|
+
link?: string;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
export declare function OfficialFromJSON(json: any): Official;
|
|
2497
|
+
|
|
2498
|
+
export declare function OfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): Official;
|
|
2499
|
+
|
|
2500
|
+
export declare function OfficialToJSON(json: any): Official;
|
|
2501
|
+
|
|
2502
|
+
export declare function OfficialToJSONTyped(value?: Official | null, ignoreDiscriminator?: boolean): any;
|
|
2503
|
+
|
|
2504
|
+
/**
|
|
2505
|
+
*
|
|
2506
|
+
*/
|
|
2507
|
+
export declare class PeopleApi extends runtime.BaseAPI {
|
|
2508
|
+
/**
|
|
2509
|
+
* Creates request options for getPerson without sending the request
|
|
2510
|
+
*/
|
|
2511
|
+
getPersonRequestOpts(requestParameters: GetPersonRequest): Promise<runtime.RequestOpts>;
|
|
2512
|
+
/**
|
|
2513
|
+
* Returns a single person by ID. Use the hydrate query parameter to expand related resources (e.g. hydrate=currentTeam,team,stats(group=[hitting],type=[yearByYear],...) includes currentTeam, team on stats, and hitting stats by year).
|
|
2514
|
+
* Retrieves a person (player)
|
|
2515
|
+
*/
|
|
2516
|
+
getPersonRaw(requestParameters: GetPersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PeopleResponse>>;
|
|
2517
|
+
/**
|
|
2518
|
+
* Returns a single person by ID. Use the hydrate query parameter to expand related resources (e.g. hydrate=currentTeam,team,stats(group=[hitting],type=[yearByYear],...) includes currentTeam, team on stats, and hitting stats by year).
|
|
2519
|
+
* Retrieves a person (player)
|
|
2520
|
+
*/
|
|
2521
|
+
getPerson(requestParameters: GetPersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PeopleResponse>;
|
|
2522
|
+
/**
|
|
2523
|
+
* Creates request options for getPersonStats without sending the request
|
|
2524
|
+
*/
|
|
2525
|
+
getPersonStatsRequestOpts(requestParameters: GetPersonStatsRequest): Promise<runtime.RequestOpts>;
|
|
2526
|
+
/**
|
|
2527
|
+
* Returns stats for a person (player) by ID. Use query parameters to request stat types (stats=gameLog,statSplits,statsSingleSeason), group (e.g. group=hitting for batting stats, group=pitching for pitching stats), and season (e.g. season=2022). Splits and stat keys vary by group (hitting vs pitching).
|
|
2528
|
+
* Retrieves a person\'s stats
|
|
2529
|
+
*/
|
|
2530
|
+
getPersonStatsRaw(requestParameters: GetPersonStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonStatsResponse>>;
|
|
2531
|
+
/**
|
|
2532
|
+
* Returns stats for a person (player) by ID. Use query parameters to request stat types (stats=gameLog,statSplits,statsSingleSeason), group (e.g. group=hitting for batting stats, group=pitching for pitching stats), and season (e.g. season=2022). Splits and stat keys vary by group (hitting vs pitching).
|
|
2533
|
+
* Retrieves a person\'s stats
|
|
2534
|
+
*/
|
|
2535
|
+
getPersonStats(requestParameters: GetPersonStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonStatsResponse>;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* Response for GET /v1/people/{personId}. Contains a people array (one item when requesting a single person).
|
|
2540
|
+
*
|
|
2541
|
+
* @export
|
|
2542
|
+
* @interface PeopleResponse
|
|
2543
|
+
*/
|
|
2544
|
+
export declare interface PeopleResponse {
|
|
2545
|
+
/**
|
|
2546
|
+
*
|
|
2547
|
+
* @type {Array<Person>}
|
|
2548
|
+
* @memberof PeopleResponse
|
|
2549
|
+
*/
|
|
2550
|
+
people: Array<Person>;
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
export declare function PeopleResponseFromJSON(json: any): PeopleResponse;
|
|
2554
|
+
|
|
2555
|
+
export declare function PeopleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PeopleResponse;
|
|
2556
|
+
|
|
2557
|
+
export declare function PeopleResponseToJSON(json: any): PeopleResponse;
|
|
2558
|
+
|
|
2559
|
+
export declare function PeopleResponseToJSONTyped(value?: PeopleResponse | null, ignoreDiscriminator?: boolean): any;
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* A person (player) from the people API. Use hydrate to expand currentTeam, team, stats, etc.
|
|
2563
|
+
*
|
|
2564
|
+
* @export
|
|
2565
|
+
* @interface Person
|
|
2566
|
+
*/
|
|
2567
|
+
export declare interface Person {
|
|
2568
|
+
/**
|
|
2569
|
+
*
|
|
2570
|
+
* @type {number}
|
|
2571
|
+
* @memberof Person
|
|
2572
|
+
*/
|
|
2573
|
+
id: number;
|
|
2574
|
+
/**
|
|
2575
|
+
*
|
|
2576
|
+
* @type {string}
|
|
2577
|
+
* @memberof Person
|
|
2578
|
+
*/
|
|
2579
|
+
fullName: string;
|
|
2580
|
+
/**
|
|
2581
|
+
*
|
|
2582
|
+
* @type {string}
|
|
2583
|
+
* @memberof Person
|
|
2584
|
+
*/
|
|
2585
|
+
link: string;
|
|
2586
|
+
/**
|
|
2587
|
+
*
|
|
2588
|
+
* @type {string}
|
|
2589
|
+
* @memberof Person
|
|
2590
|
+
*/
|
|
2591
|
+
firstName?: string;
|
|
2592
|
+
/**
|
|
2593
|
+
*
|
|
2594
|
+
* @type {string}
|
|
2595
|
+
* @memberof Person
|
|
2596
|
+
*/
|
|
2597
|
+
lastName?: string;
|
|
2598
|
+
/**
|
|
2599
|
+
*
|
|
2600
|
+
* @type {string}
|
|
2601
|
+
* @memberof Person
|
|
2602
|
+
*/
|
|
2603
|
+
primaryNumber?: string;
|
|
2604
|
+
/**
|
|
2605
|
+
*
|
|
2606
|
+
* @type {string}
|
|
2607
|
+
* @memberof Person
|
|
2608
|
+
*/
|
|
2609
|
+
birthDate?: string;
|
|
2610
|
+
/**
|
|
2611
|
+
*
|
|
2612
|
+
* @type {number}
|
|
2613
|
+
* @memberof Person
|
|
2614
|
+
*/
|
|
2615
|
+
currentAge?: number;
|
|
2616
|
+
/**
|
|
2617
|
+
*
|
|
2618
|
+
* @type {string}
|
|
2619
|
+
* @memberof Person
|
|
2620
|
+
*/
|
|
2621
|
+
birthCity?: string;
|
|
2622
|
+
/**
|
|
2623
|
+
*
|
|
2624
|
+
* @type {string}
|
|
2625
|
+
* @memberof Person
|
|
2626
|
+
*/
|
|
2627
|
+
birthStateProvince?: string;
|
|
2628
|
+
/**
|
|
2629
|
+
*
|
|
2630
|
+
* @type {string}
|
|
2631
|
+
* @memberof Person
|
|
2632
|
+
*/
|
|
2633
|
+
birthCountry?: string;
|
|
2634
|
+
/**
|
|
2635
|
+
*
|
|
2636
|
+
* @type {string}
|
|
2637
|
+
* @memberof Person
|
|
2638
|
+
*/
|
|
2639
|
+
height?: string;
|
|
2640
|
+
/**
|
|
2641
|
+
*
|
|
2642
|
+
* @type {number}
|
|
2643
|
+
* @memberof Person
|
|
2644
|
+
*/
|
|
2645
|
+
weight?: number;
|
|
2646
|
+
/**
|
|
2647
|
+
*
|
|
2648
|
+
* @type {boolean}
|
|
2649
|
+
* @memberof Person
|
|
2650
|
+
*/
|
|
2651
|
+
active?: boolean;
|
|
2652
|
+
/**
|
|
2653
|
+
*
|
|
2654
|
+
* @type {Team}
|
|
2655
|
+
* @memberof Person
|
|
2656
|
+
*/
|
|
2657
|
+
currentTeam?: Team;
|
|
2658
|
+
/**
|
|
2659
|
+
*
|
|
2660
|
+
* @type {Position}
|
|
2661
|
+
* @memberof Person
|
|
2662
|
+
*/
|
|
2663
|
+
primaryPosition?: Position;
|
|
2664
|
+
/**
|
|
2665
|
+
*
|
|
2666
|
+
* @type {string}
|
|
2667
|
+
* @memberof Person
|
|
2668
|
+
*/
|
|
2669
|
+
useName?: string;
|
|
2670
|
+
/**
|
|
2671
|
+
*
|
|
2672
|
+
* @type {string}
|
|
2673
|
+
* @memberof Person
|
|
2674
|
+
*/
|
|
2675
|
+
useLastName?: string;
|
|
2676
|
+
/**
|
|
2677
|
+
*
|
|
2678
|
+
* @type {string}
|
|
2679
|
+
* @memberof Person
|
|
2680
|
+
*/
|
|
2681
|
+
middleName?: string;
|
|
2682
|
+
/**
|
|
2683
|
+
*
|
|
2684
|
+
* @type {string}
|
|
2685
|
+
* @memberof Person
|
|
2686
|
+
*/
|
|
2687
|
+
boxscoreName?: string;
|
|
2688
|
+
/**
|
|
2689
|
+
*
|
|
2690
|
+
* @type {string}
|
|
2691
|
+
* @memberof Person
|
|
2692
|
+
*/
|
|
2693
|
+
gender?: string;
|
|
2694
|
+
/**
|
|
2695
|
+
*
|
|
2696
|
+
* @type {boolean}
|
|
2697
|
+
* @memberof Person
|
|
2698
|
+
*/
|
|
2699
|
+
isPlayer?: boolean;
|
|
2700
|
+
/**
|
|
2701
|
+
*
|
|
2702
|
+
* @type {boolean}
|
|
2703
|
+
* @memberof Person
|
|
2704
|
+
*/
|
|
2705
|
+
isVerified?: boolean;
|
|
2706
|
+
/**
|
|
2707
|
+
*
|
|
2708
|
+
* @type {number}
|
|
2709
|
+
* @memberof Person
|
|
2710
|
+
*/
|
|
2711
|
+
draftYear?: number;
|
|
2712
|
+
/**
|
|
2713
|
+
*
|
|
2714
|
+
* @type {string}
|
|
2715
|
+
* @memberof Person
|
|
2716
|
+
*/
|
|
2717
|
+
pronunciation?: string;
|
|
2718
|
+
/**
|
|
2719
|
+
*
|
|
2720
|
+
* @type {Array<PersonStatsItem>}
|
|
2721
|
+
* @memberof Person
|
|
2722
|
+
*/
|
|
2723
|
+
stats?: Array<PersonStatsItem>;
|
|
2724
|
+
/**
|
|
2725
|
+
*
|
|
2726
|
+
* @type {string}
|
|
2727
|
+
* @memberof Person
|
|
2728
|
+
*/
|
|
2729
|
+
mlbDebutDate?: string;
|
|
2730
|
+
/**
|
|
2731
|
+
*
|
|
2732
|
+
* @type {CodeDescription}
|
|
2733
|
+
* @memberof Person
|
|
2734
|
+
*/
|
|
2735
|
+
batSide?: CodeDescription;
|
|
2736
|
+
/**
|
|
2737
|
+
*
|
|
2738
|
+
* @type {CodeDescription}
|
|
2739
|
+
* @memberof Person
|
|
2740
|
+
*/
|
|
2741
|
+
pitchHand?: CodeDescription;
|
|
2742
|
+
/**
|
|
2743
|
+
*
|
|
2744
|
+
* @type {string}
|
|
2745
|
+
* @memberof Person
|
|
2746
|
+
*/
|
|
2747
|
+
nameFirstLast?: string;
|
|
2748
|
+
/**
|
|
2749
|
+
*
|
|
2750
|
+
* @type {string}
|
|
2751
|
+
* @memberof Person
|
|
2752
|
+
*/
|
|
2753
|
+
nameSlug?: string;
|
|
2754
|
+
/**
|
|
2755
|
+
*
|
|
2756
|
+
* @type {string}
|
|
2757
|
+
* @memberof Person
|
|
2758
|
+
*/
|
|
2759
|
+
firstLastName?: string;
|
|
2760
|
+
/**
|
|
2761
|
+
*
|
|
2762
|
+
* @type {string}
|
|
2763
|
+
* @memberof Person
|
|
2764
|
+
*/
|
|
2765
|
+
lastFirstName?: string;
|
|
2766
|
+
/**
|
|
2767
|
+
*
|
|
2768
|
+
* @type {string}
|
|
2769
|
+
* @memberof Person
|
|
2770
|
+
*/
|
|
2771
|
+
lastInitName?: string;
|
|
2772
|
+
/**
|
|
2773
|
+
*
|
|
2774
|
+
* @type {string}
|
|
2775
|
+
* @memberof Person
|
|
2776
|
+
*/
|
|
2777
|
+
initLastName?: string;
|
|
2778
|
+
/**
|
|
2779
|
+
*
|
|
2780
|
+
* @type {string}
|
|
2781
|
+
* @memberof Person
|
|
2782
|
+
*/
|
|
2783
|
+
fullFMLName?: string;
|
|
2784
|
+
/**
|
|
2785
|
+
*
|
|
2786
|
+
* @type {string}
|
|
2787
|
+
* @memberof Person
|
|
2788
|
+
*/
|
|
2789
|
+
fullLFMName?: string;
|
|
2790
|
+
/**
|
|
2791
|
+
*
|
|
2792
|
+
* @type {number}
|
|
2793
|
+
* @memberof Person
|
|
2794
|
+
*/
|
|
2795
|
+
strikeZoneTop?: number;
|
|
2796
|
+
/**
|
|
2797
|
+
*
|
|
2798
|
+
* @type {number}
|
|
2799
|
+
* @memberof Person
|
|
2800
|
+
*/
|
|
2801
|
+
strikeZoneBottom?: number;
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
export declare function PersonFromJSON(json: any): Person;
|
|
2805
|
+
|
|
2806
|
+
export declare function PersonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Person;
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* One stats block for a person (e.g. yearByYear hitting, careerAdvanced hitting). Contains type, optional group, exemptions, and splits.
|
|
2810
|
+
*
|
|
2811
|
+
* @export
|
|
2812
|
+
* @interface PersonStatsItem
|
|
2813
|
+
*/
|
|
2814
|
+
export declare interface PersonStatsItem {
|
|
2815
|
+
/**
|
|
2816
|
+
*
|
|
2817
|
+
* @type {PersonStatsItemType}
|
|
2818
|
+
* @memberof PersonStatsItem
|
|
2819
|
+
*/
|
|
2820
|
+
type?: PersonStatsItemType;
|
|
2821
|
+
/**
|
|
2822
|
+
*
|
|
2823
|
+
* @type {PersonStatsItemType}
|
|
2824
|
+
* @memberof PersonStatsItem
|
|
2825
|
+
*/
|
|
2826
|
+
group?: PersonStatsItemType;
|
|
2827
|
+
/**
|
|
2828
|
+
*
|
|
2829
|
+
* @type {Array<any>}
|
|
2830
|
+
* @memberof PersonStatsItem
|
|
2831
|
+
*/
|
|
2832
|
+
exemptions?: Array<any>;
|
|
2833
|
+
/**
|
|
2834
|
+
*
|
|
2835
|
+
* @type {Array<PersonStatSplit>}
|
|
2836
|
+
* @memberof PersonStatsItem
|
|
2837
|
+
*/
|
|
2838
|
+
splits?: Array<PersonStatSplit>;
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
export declare function PersonStatsItemFromJSON(json: any): PersonStatsItem;
|
|
2842
|
+
|
|
2843
|
+
export declare function PersonStatsItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonStatsItem;
|
|
2844
|
+
|
|
2845
|
+
export declare function PersonStatsItemToJSON(json: any): PersonStatsItem;
|
|
2846
|
+
|
|
2847
|
+
export declare function PersonStatsItemToJSONTyped(value?: PersonStatsItem | null, ignoreDiscriminator?: boolean): any;
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* MLB StatAPI
|
|
2851
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2852
|
+
*
|
|
2853
|
+
* The version of the OpenAPI document: 0.7.4
|
|
2854
|
+
*
|
|
2855
|
+
*
|
|
2856
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2857
|
+
* https://openapi-generator.tech
|
|
2858
|
+
* Do not edit the class manually.
|
|
2859
|
+
*/
|
|
2860
|
+
/**
|
|
2861
|
+
*
|
|
2862
|
+
* @export
|
|
2863
|
+
* @interface PersonStatsItemType
|
|
2864
|
+
*/
|
|
2865
|
+
export declare interface PersonStatsItemType {
|
|
2866
|
+
/**
|
|
2867
|
+
*
|
|
2868
|
+
* @type {string}
|
|
2869
|
+
* @memberof PersonStatsItemType
|
|
2870
|
+
*/
|
|
2871
|
+
displayName?: string;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
export declare function PersonStatsItemTypeFromJSON(json: any): PersonStatsItemType;
|
|
2875
|
+
|
|
2876
|
+
export declare function PersonStatsItemTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonStatsItemType;
|
|
2877
|
+
|
|
2878
|
+
export declare function PersonStatsItemTypeToJSON(json: any): PersonStatsItemType;
|
|
2879
|
+
|
|
2880
|
+
export declare function PersonStatsItemTypeToJSONTyped(value?: PersonStatsItemType | null, ignoreDiscriminator?: boolean): any;
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* A single split within person stats (e.g. one season's stats, or career, or a placeholder for available splits). Structure varies by stats type; season/stat/team/player/league/sport/gameType/type/group are optional.
|
|
2884
|
+
*
|
|
2885
|
+
* @export
|
|
2886
|
+
* @interface PersonStatSplit
|
|
2887
|
+
*/
|
|
2888
|
+
export declare interface PersonStatSplit {
|
|
2889
|
+
/**
|
|
2890
|
+
*
|
|
2891
|
+
* @type {string}
|
|
2892
|
+
* @memberof PersonStatSplit
|
|
2893
|
+
*/
|
|
2894
|
+
season?: string;
|
|
2895
|
+
/**
|
|
2896
|
+
* Stat keys vary by group/type (e.g. hitting avg, gamesPlayed, plateAppearances).
|
|
2897
|
+
* @type {{ [key: string]: any; }}
|
|
2898
|
+
* @memberof PersonStatSplit
|
|
2899
|
+
*/
|
|
2900
|
+
stat?: {
|
|
2901
|
+
[key: string]: any;
|
|
2902
|
+
};
|
|
2903
|
+
/**
|
|
2904
|
+
*
|
|
2905
|
+
* @type {Team}
|
|
2906
|
+
* @memberof PersonStatSplit
|
|
2907
|
+
*/
|
|
2908
|
+
team?: Team;
|
|
2909
|
+
/**
|
|
2910
|
+
*
|
|
2911
|
+
* @type {PersonStatSplitPlayer}
|
|
2912
|
+
* @memberof PersonStatSplit
|
|
2913
|
+
*/
|
|
2914
|
+
player?: PersonStatSplitPlayer;
|
|
2915
|
+
/**
|
|
2916
|
+
*
|
|
2917
|
+
* @type {League}
|
|
2918
|
+
* @memberof PersonStatSplit
|
|
2919
|
+
*/
|
|
2920
|
+
league?: League;
|
|
2921
|
+
/**
|
|
2922
|
+
*
|
|
2923
|
+
* @type {Sport}
|
|
2924
|
+
* @memberof PersonStatSplit
|
|
2925
|
+
*/
|
|
2926
|
+
sport?: Sport;
|
|
2927
|
+
/**
|
|
2928
|
+
*
|
|
2929
|
+
* @type {string}
|
|
2930
|
+
* @memberof PersonStatSplit
|
|
2931
|
+
*/
|
|
2932
|
+
gameType?: string;
|
|
2933
|
+
/**
|
|
2934
|
+
* e.g. gameLog, statSplits
|
|
2935
|
+
* @type {string}
|
|
2936
|
+
* @memberof PersonStatSplit
|
|
2937
|
+
*/
|
|
2938
|
+
type?: string;
|
|
2939
|
+
/**
|
|
2940
|
+
* e.g. fielding, hitting
|
|
2941
|
+
* @type {string}
|
|
2942
|
+
* @memberof PersonStatSplit
|
|
2943
|
+
*/
|
|
2944
|
+
group?: string;
|
|
2945
|
+
/**
|
|
2946
|
+
* Opponent team (e.g. in gameLog splits)
|
|
2947
|
+
* @type {Team}
|
|
2948
|
+
* @memberof PersonStatSplit
|
|
2949
|
+
*/
|
|
2950
|
+
opponent?: Team;
|
|
2951
|
+
/**
|
|
2952
|
+
* Game date (e.g. in gameLog splits)
|
|
2953
|
+
* @type {string}
|
|
2954
|
+
* @memberof PersonStatSplit
|
|
2955
|
+
*/
|
|
2956
|
+
date?: string;
|
|
2957
|
+
/**
|
|
2958
|
+
*
|
|
2959
|
+
* @type {boolean}
|
|
2960
|
+
* @memberof PersonStatSplit
|
|
2961
|
+
*/
|
|
2962
|
+
isHome?: boolean;
|
|
2963
|
+
/**
|
|
2964
|
+
*
|
|
2965
|
+
* @type {boolean}
|
|
2966
|
+
* @memberof PersonStatSplit
|
|
2967
|
+
*/
|
|
2968
|
+
isWin?: boolean;
|
|
2969
|
+
/**
|
|
2970
|
+
*
|
|
2971
|
+
* @type {Array<Position>}
|
|
2972
|
+
* @memberof PersonStatSplit
|
|
2973
|
+
*/
|
|
2974
|
+
positionsPlayed?: Array<Position>;
|
|
2975
|
+
/**
|
|
2976
|
+
*
|
|
2977
|
+
* @type {PersonStatSplitGame}
|
|
2978
|
+
* @memberof PersonStatSplit
|
|
2979
|
+
*/
|
|
2980
|
+
game?: PersonStatSplitGame;
|
|
2981
|
+
/**
|
|
2982
|
+
*
|
|
2983
|
+
* @type {number}
|
|
2984
|
+
* @memberof PersonStatSplit
|
|
2985
|
+
*/
|
|
2986
|
+
numTeams?: number;
|
|
2987
|
+
/**
|
|
2988
|
+
*
|
|
2989
|
+
* @type {number}
|
|
2990
|
+
* @memberof PersonStatSplit
|
|
2991
|
+
*/
|
|
2992
|
+
numLeagues?: number;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
export declare function PersonStatSplitFromJSON(json: any): PersonStatSplit;
|
|
2996
|
+
|
|
2997
|
+
export declare function PersonStatSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonStatSplit;
|
|
2998
|
+
|
|
2999
|
+
/**
|
|
3000
|
+
* Game summary (e.g. in gameLog splits)
|
|
3001
|
+
* @export
|
|
3002
|
+
* @interface PersonStatSplitGame
|
|
3003
|
+
*/
|
|
3004
|
+
export declare interface PersonStatSplitGame {
|
|
3005
|
+
/**
|
|
3006
|
+
*
|
|
3007
|
+
* @type {number}
|
|
3008
|
+
* @memberof PersonStatSplitGame
|
|
3009
|
+
*/
|
|
3010
|
+
gamePk?: number;
|
|
3011
|
+
/**
|
|
3012
|
+
*
|
|
3013
|
+
* @type {string}
|
|
3014
|
+
* @memberof PersonStatSplitGame
|
|
2070
3015
|
*/
|
|
2071
|
-
|
|
3016
|
+
link?: string;
|
|
2072
3017
|
/**
|
|
2073
|
-
*
|
|
2074
|
-
*
|
|
3018
|
+
*
|
|
3019
|
+
* @type {Content}
|
|
3020
|
+
* @memberof PersonStatSplitGame
|
|
2075
3021
|
*/
|
|
2076
|
-
|
|
3022
|
+
content?: Content;
|
|
2077
3023
|
/**
|
|
2078
|
-
*
|
|
2079
|
-
*
|
|
3024
|
+
*
|
|
3025
|
+
* @type {number}
|
|
3026
|
+
* @memberof PersonStatSplitGame
|
|
2080
3027
|
*/
|
|
2081
|
-
|
|
3028
|
+
gameNumber?: number;
|
|
2082
3029
|
/**
|
|
2083
|
-
*
|
|
2084
|
-
*
|
|
3030
|
+
*
|
|
3031
|
+
* @type {string}
|
|
3032
|
+
* @memberof PersonStatSplitGame
|
|
2085
3033
|
*/
|
|
2086
|
-
|
|
3034
|
+
dayNight?: string;
|
|
2087
3035
|
}
|
|
2088
3036
|
|
|
2089
|
-
export declare
|
|
3037
|
+
export declare function PersonStatSplitGameFromJSON(json: any): PersonStatSplitGame;
|
|
3038
|
+
|
|
3039
|
+
export declare function PersonStatSplitGameFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonStatSplitGame;
|
|
3040
|
+
|
|
3041
|
+
export declare function PersonStatSplitGameToJSON(json: any): PersonStatSplitGame;
|
|
3042
|
+
|
|
3043
|
+
export declare function PersonStatSplitGameToJSONTyped(value?: PersonStatSplitGame | null, ignoreDiscriminator?: boolean): any;
|
|
2090
3044
|
|
|
2091
3045
|
/**
|
|
2092
3046
|
* MLB StatAPI
|
|
2093
|
-
*
|
|
3047
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2094
3048
|
*
|
|
2095
|
-
* The version of the OpenAPI document: 0.
|
|
3049
|
+
* The version of the OpenAPI document: 0.7.4
|
|
2096
3050
|
*
|
|
2097
3051
|
*
|
|
2098
3052
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2102,42 +3056,79 @@ export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCa
|
|
|
2102
3056
|
/**
|
|
2103
3057
|
*
|
|
2104
3058
|
* @export
|
|
2105
|
-
* @interface
|
|
3059
|
+
* @interface PersonStatSplitPlayer
|
|
2106
3060
|
*/
|
|
2107
|
-
export declare interface
|
|
3061
|
+
export declare interface PersonStatSplitPlayer {
|
|
2108
3062
|
/**
|
|
2109
3063
|
*
|
|
2110
3064
|
* @type {number}
|
|
2111
|
-
* @memberof
|
|
3065
|
+
* @memberof PersonStatSplitPlayer
|
|
2112
3066
|
*/
|
|
2113
3067
|
id?: number;
|
|
2114
3068
|
/**
|
|
2115
3069
|
*
|
|
2116
3070
|
* @type {string}
|
|
2117
|
-
* @memberof
|
|
3071
|
+
* @memberof PersonStatSplitPlayer
|
|
2118
3072
|
*/
|
|
2119
3073
|
fullName?: string;
|
|
2120
3074
|
/**
|
|
2121
3075
|
*
|
|
2122
3076
|
* @type {string}
|
|
2123
|
-
* @memberof
|
|
3077
|
+
* @memberof PersonStatSplitPlayer
|
|
2124
3078
|
*/
|
|
2125
3079
|
link?: string;
|
|
2126
3080
|
}
|
|
2127
3081
|
|
|
2128
|
-
export declare function
|
|
3082
|
+
export declare function PersonStatSplitPlayerFromJSON(json: any): PersonStatSplitPlayer;
|
|
2129
3083
|
|
|
2130
|
-
export declare function
|
|
3084
|
+
export declare function PersonStatSplitPlayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonStatSplitPlayer;
|
|
2131
3085
|
|
|
2132
|
-
export declare function
|
|
3086
|
+
export declare function PersonStatSplitPlayerToJSON(json: any): PersonStatSplitPlayer;
|
|
2133
3087
|
|
|
2134
|
-
export declare function
|
|
3088
|
+
export declare function PersonStatSplitPlayerToJSONTyped(value?: PersonStatSplitPlayer | null, ignoreDiscriminator?: boolean): any;
|
|
3089
|
+
|
|
3090
|
+
export declare function PersonStatSplitToJSON(json: any): PersonStatSplit;
|
|
3091
|
+
|
|
3092
|
+
export declare function PersonStatSplitToJSONTyped(value?: PersonStatSplit | null, ignoreDiscriminator?: boolean): any;
|
|
3093
|
+
|
|
3094
|
+
/**
|
|
3095
|
+
* Response for GET /v1/people/{personId}/stats. Contains a stats array (type/group/splits per requested stat type, e.g. gameLog, statsSingleSeason).
|
|
3096
|
+
*
|
|
3097
|
+
* @export
|
|
3098
|
+
* @interface PersonStatsResponse
|
|
3099
|
+
*/
|
|
3100
|
+
export declare interface PersonStatsResponse {
|
|
3101
|
+
/**
|
|
3102
|
+
*
|
|
3103
|
+
* @type {string}
|
|
3104
|
+
* @memberof PersonStatsResponse
|
|
3105
|
+
*/
|
|
3106
|
+
copyright?: string;
|
|
3107
|
+
/**
|
|
3108
|
+
*
|
|
3109
|
+
* @type {Array<PersonStatsItem>}
|
|
3110
|
+
* @memberof PersonStatsResponse
|
|
3111
|
+
*/
|
|
3112
|
+
stats: Array<PersonStatsItem>;
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3115
|
+
export declare function PersonStatsResponseFromJSON(json: any): PersonStatsResponse;
|
|
3116
|
+
|
|
3117
|
+
export declare function PersonStatsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonStatsResponse;
|
|
3118
|
+
|
|
3119
|
+
export declare function PersonStatsResponseToJSON(json: any): PersonStatsResponse;
|
|
3120
|
+
|
|
3121
|
+
export declare function PersonStatsResponseToJSONTyped(value?: PersonStatsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
3122
|
+
|
|
3123
|
+
export declare function PersonToJSON(json: any): Person;
|
|
3124
|
+
|
|
3125
|
+
export declare function PersonToJSONTyped(value?: Person | null, ignoreDiscriminator?: boolean): any;
|
|
2135
3126
|
|
|
2136
3127
|
/**
|
|
2137
3128
|
* MLB StatAPI
|
|
2138
|
-
*
|
|
3129
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2139
3130
|
*
|
|
2140
|
-
* The version of the OpenAPI document: 0.
|
|
3131
|
+
* The version of the OpenAPI document: 0.7.4
|
|
2141
3132
|
*
|
|
2142
3133
|
*
|
|
2143
3134
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2542,9 +3533,9 @@ export declare function PlayerFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
2542
3533
|
|
|
2543
3534
|
/**
|
|
2544
3535
|
* MLB StatAPI
|
|
2545
|
-
*
|
|
3536
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2546
3537
|
*
|
|
2547
|
-
* The version of the OpenAPI document: 0.
|
|
3538
|
+
* The version of the OpenAPI document: 0.7.4
|
|
2548
3539
|
*
|
|
2549
3540
|
*
|
|
2550
3541
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2593,9 +3584,9 @@ export declare function PlayerGameStatusToJSONTyped(value?: PlayerGameStatus | n
|
|
|
2593
3584
|
|
|
2594
3585
|
/**
|
|
2595
3586
|
* MLB StatAPI
|
|
2596
|
-
*
|
|
3587
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2597
3588
|
*
|
|
2598
|
-
* The version of the OpenAPI document: 0.
|
|
3589
|
+
* The version of the OpenAPI document: 0.7.4
|
|
2599
3590
|
*
|
|
2600
3591
|
*
|
|
2601
3592
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2644,9 +3635,9 @@ export declare function PlayerPersonToJSONTyped(value?: PlayerPerson | null, ign
|
|
|
2644
3635
|
|
|
2645
3636
|
/**
|
|
2646
3637
|
* MLB StatAPI
|
|
2647
|
-
*
|
|
3638
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2648
3639
|
*
|
|
2649
|
-
* The version of the OpenAPI document: 0.
|
|
3640
|
+
* The version of the OpenAPI document: 0.7.4
|
|
2650
3641
|
*
|
|
2651
3642
|
*
|
|
2652
3643
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2763,9 +3754,9 @@ export declare function PlayerStatsToJSONTyped(value?: PlayerStats | null, ignor
|
|
|
2763
3754
|
|
|
2764
3755
|
/**
|
|
2765
3756
|
* MLB StatAPI
|
|
2766
|
-
*
|
|
3757
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2767
3758
|
*
|
|
2768
|
-
* The version of the OpenAPI document: 0.
|
|
3759
|
+
* The version of the OpenAPI document: 0.7.4
|
|
2769
3760
|
*
|
|
2770
3761
|
*
|
|
2771
3762
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2806,9 +3797,9 @@ export declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscrimin
|
|
|
2806
3797
|
|
|
2807
3798
|
/**
|
|
2808
3799
|
* MLB StatAPI
|
|
2809
|
-
*
|
|
3800
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2810
3801
|
*
|
|
2811
|
-
* The version of the OpenAPI document: 0.
|
|
3802
|
+
* The version of the OpenAPI document: 0.7.4
|
|
2812
3803
|
*
|
|
2813
3804
|
*
|
|
2814
3805
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2858,214 +3849,80 @@ export declare function PositionToJSONTyped(value?: Position | null, ignoreDiscr
|
|
|
2858
3849
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
2859
3850
|
|
|
2860
3851
|
/**
|
|
2861
|
-
* Record
|
|
2862
3852
|
*
|
|
2863
|
-
* @export
|
|
2864
|
-
* @interface Record
|
|
2865
3853
|
*/
|
|
2866
|
-
declare
|
|
2867
|
-
/**
|
|
2868
|
-
*
|
|
2869
|
-
* @type {Team}
|
|
2870
|
-
* @memberof Record
|
|
2871
|
-
*/
|
|
2872
|
-
team: Team;
|
|
2873
|
-
/**
|
|
2874
|
-
*
|
|
2875
|
-
* @type {string}
|
|
2876
|
-
* @memberof Record
|
|
2877
|
-
*/
|
|
2878
|
-
season: string;
|
|
2879
|
-
/**
|
|
2880
|
-
*
|
|
2881
|
-
* @type {Streak}
|
|
2882
|
-
* @memberof Record
|
|
2883
|
-
*/
|
|
2884
|
-
streak: Streak;
|
|
2885
|
-
/**
|
|
2886
|
-
*
|
|
2887
|
-
* @type {string}
|
|
2888
|
-
* @memberof Record
|
|
2889
|
-
*/
|
|
2890
|
-
divisionRank: string;
|
|
2891
|
-
/**
|
|
2892
|
-
*
|
|
2893
|
-
* @type {string}
|
|
2894
|
-
* @memberof Record
|
|
2895
|
-
*/
|
|
2896
|
-
leagueRank: string;
|
|
2897
|
-
/**
|
|
2898
|
-
*
|
|
2899
|
-
* @type {string}
|
|
2900
|
-
* @memberof Record
|
|
2901
|
-
*/
|
|
2902
|
-
sportRank?: string;
|
|
2903
|
-
/**
|
|
2904
|
-
*
|
|
2905
|
-
* @type {number}
|
|
2906
|
-
* @memberof Record
|
|
2907
|
-
*/
|
|
2908
|
-
gamesPlayed?: number;
|
|
2909
|
-
/**
|
|
2910
|
-
*
|
|
2911
|
-
* @type {string}
|
|
2912
|
-
* @memberof Record
|
|
2913
|
-
*/
|
|
2914
|
-
gamesBack: string;
|
|
2915
|
-
/**
|
|
2916
|
-
*
|
|
2917
|
-
* @type {string}
|
|
2918
|
-
* @memberof Record
|
|
2919
|
-
*/
|
|
2920
|
-
wildCardGamesBack?: string;
|
|
2921
|
-
/**
|
|
2922
|
-
*
|
|
2923
|
-
* @type {string}
|
|
2924
|
-
* @memberof Record
|
|
2925
|
-
*/
|
|
2926
|
-
leagueGamesBack?: string;
|
|
2927
|
-
/**
|
|
2928
|
-
*
|
|
2929
|
-
* @type {string}
|
|
2930
|
-
* @memberof Record
|
|
2931
|
-
*/
|
|
2932
|
-
sportGamesBack?: string;
|
|
2933
|
-
/**
|
|
2934
|
-
*
|
|
2935
|
-
* @type {string}
|
|
2936
|
-
* @memberof Record
|
|
2937
|
-
*/
|
|
2938
|
-
divisionGamesBack?: string;
|
|
2939
|
-
/**
|
|
2940
|
-
*
|
|
2941
|
-
* @type {string}
|
|
2942
|
-
* @memberof Record
|
|
2943
|
-
*/
|
|
2944
|
-
conferenceGamesBack?: string;
|
|
2945
|
-
/**
|
|
2946
|
-
*
|
|
2947
|
-
* @type {LeagueRecord}
|
|
2948
|
-
* @memberof Record
|
|
2949
|
-
*/
|
|
2950
|
-
leagueRecord: LeagueRecord;
|
|
2951
|
-
/**
|
|
2952
|
-
*
|
|
2953
|
-
* @type {string}
|
|
2954
|
-
* @memberof Record
|
|
2955
|
-
*/
|
|
2956
|
-
lastUpdated?: string;
|
|
2957
|
-
/**
|
|
2958
|
-
*
|
|
2959
|
-
* @type {number}
|
|
2960
|
-
* @memberof Record
|
|
2961
|
-
*/
|
|
2962
|
-
runsAllowed?: number;
|
|
2963
|
-
/**
|
|
2964
|
-
*
|
|
2965
|
-
* @type {number}
|
|
2966
|
-
* @memberof Record
|
|
2967
|
-
*/
|
|
2968
|
-
runsScored?: number;
|
|
3854
|
+
export declare class ReferenceApi extends runtime.BaseAPI {
|
|
2969
3855
|
/**
|
|
2970
|
-
*
|
|
2971
|
-
* @type {boolean}
|
|
2972
|
-
* @memberof Record
|
|
3856
|
+
* Creates request options for getAllSeasons without sending the request
|
|
2973
3857
|
*/
|
|
2974
|
-
|
|
3858
|
+
getAllSeasonsRequestOpts(requestParameters: GetAllSeasonsRequest): Promise<runtime.RequestOpts>;
|
|
2975
3859
|
/**
|
|
2976
|
-
*
|
|
2977
|
-
*
|
|
2978
|
-
* @memberof Record
|
|
3860
|
+
* Returns All Seasons
|
|
3861
|
+
* Retrieves All Seasons over time
|
|
2979
3862
|
*/
|
|
2980
|
-
|
|
3863
|
+
getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Seasons>>;
|
|
2981
3864
|
/**
|
|
2982
|
-
*
|
|
2983
|
-
*
|
|
2984
|
-
* @memberof Record
|
|
3865
|
+
* Returns All Seasons
|
|
3866
|
+
* Retrieves All Seasons over time
|
|
2985
3867
|
*/
|
|
2986
|
-
|
|
3868
|
+
getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Seasons>;
|
|
2987
3869
|
/**
|
|
2988
|
-
*
|
|
2989
|
-
* @type {boolean}
|
|
2990
|
-
* @memberof Record
|
|
3870
|
+
* Creates request options for getDivisions without sending the request
|
|
2991
3871
|
*/
|
|
2992
|
-
|
|
3872
|
+
getDivisionsRequestOpts(requestParameters: GetDivisionsRequest): Promise<runtime.RequestOpts>;
|
|
2993
3873
|
/**
|
|
2994
|
-
*
|
|
2995
|
-
*
|
|
2996
|
-
* @memberof Record
|
|
3874
|
+
* Returns Divisions
|
|
3875
|
+
* Retrieves Divisions
|
|
2997
3876
|
*/
|
|
2998
|
-
|
|
3877
|
+
getDivisionsRaw(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Divisions>>;
|
|
2999
3878
|
/**
|
|
3000
|
-
*
|
|
3001
|
-
*
|
|
3002
|
-
* @memberof Record
|
|
3879
|
+
* Returns Divisions
|
|
3880
|
+
* Retrieves Divisions
|
|
3003
3881
|
*/
|
|
3004
|
-
|
|
3882
|
+
getDivisions(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Divisions>;
|
|
3005
3883
|
/**
|
|
3006
|
-
*
|
|
3007
|
-
* @type {string}
|
|
3008
|
-
* @memberof Record
|
|
3884
|
+
* Creates request options for getLeagues without sending the request
|
|
3009
3885
|
*/
|
|
3010
|
-
|
|
3886
|
+
getLeaguesRequestOpts(requestParameters: GetLeaguesRequest): Promise<runtime.RequestOpts>;
|
|
3011
3887
|
/**
|
|
3012
|
-
*
|
|
3013
|
-
*
|
|
3014
|
-
* @memberof Record
|
|
3888
|
+
* Returns Leagues
|
|
3889
|
+
* Retrieves Leagues
|
|
3015
3890
|
*/
|
|
3016
|
-
|
|
3891
|
+
getLeaguesRaw(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Leagues>>;
|
|
3017
3892
|
/**
|
|
3018
|
-
*
|
|
3019
|
-
*
|
|
3020
|
-
* @memberof Record
|
|
3893
|
+
* Returns Leagues
|
|
3894
|
+
* Retrieves Leagues
|
|
3021
3895
|
*/
|
|
3022
|
-
|
|
3896
|
+
getLeagues(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Leagues>;
|
|
3023
3897
|
/**
|
|
3024
|
-
*
|
|
3025
|
-
* @type {string}
|
|
3026
|
-
* @memberof Record
|
|
3898
|
+
* Creates request options for getSeason without sending the request
|
|
3027
3899
|
*/
|
|
3028
|
-
|
|
3900
|
+
getSeasonRequestOpts(requestParameters: GetSeasonRequest): Promise<runtime.RequestOpts>;
|
|
3029
3901
|
/**
|
|
3030
|
-
*
|
|
3031
|
-
*
|
|
3032
|
-
* @memberof Record
|
|
3902
|
+
* Returns Season
|
|
3903
|
+
* Retrieves season
|
|
3033
3904
|
*/
|
|
3034
|
-
|
|
3905
|
+
getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Seasons>>;
|
|
3035
3906
|
/**
|
|
3036
|
-
*
|
|
3037
|
-
*
|
|
3038
|
-
* @memberof Record
|
|
3907
|
+
* Returns Season
|
|
3908
|
+
* Retrieves season
|
|
3039
3909
|
*/
|
|
3040
|
-
|
|
3910
|
+
getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Seasons>;
|
|
3041
3911
|
/**
|
|
3042
|
-
*
|
|
3043
|
-
* @type {number}
|
|
3044
|
-
* @memberof Record
|
|
3912
|
+
* Creates request options for getTeams without sending the request
|
|
3045
3913
|
*/
|
|
3046
|
-
|
|
3914
|
+
getTeamsRequestOpts(requestParameters: GetTeamsRequest): Promise<runtime.RequestOpts>;
|
|
3047
3915
|
/**
|
|
3048
|
-
*
|
|
3049
|
-
*
|
|
3050
|
-
* @memberof Record
|
|
3916
|
+
* Returns teams for the given sport and season. Use the hydrate query parameter to expand related resources (e.g. hydrate=division includes full division, league, and sport objects on each team).
|
|
3917
|
+
* Retrieves Teams
|
|
3051
3918
|
*/
|
|
3052
|
-
|
|
3919
|
+
getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Teams>>;
|
|
3053
3920
|
/**
|
|
3054
|
-
*
|
|
3055
|
-
*
|
|
3056
|
-
* @memberof Record
|
|
3921
|
+
* Returns teams for the given sport and season. Use the hydrate query parameter to expand related resources (e.g. hydrate=division includes full division, league, and sport objects on each team).
|
|
3922
|
+
* Retrieves Teams
|
|
3057
3923
|
*/
|
|
3058
|
-
|
|
3924
|
+
getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Teams>;
|
|
3059
3925
|
}
|
|
3060
|
-
export { Record_2 as Record }
|
|
3061
|
-
|
|
3062
|
-
export declare function RecordFromJSON(json: any): Record_2;
|
|
3063
|
-
|
|
3064
|
-
export declare function RecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): Record_2;
|
|
3065
|
-
|
|
3066
|
-
export declare function RecordToJSON(json: any): Record_2;
|
|
3067
|
-
|
|
3068
|
-
export declare function RecordToJSONTyped(value?: Record_2 | null, ignoreDiscriminator?: boolean): any;
|
|
3069
3926
|
|
|
3070
3927
|
export declare interface RequestContext {
|
|
3071
3928
|
fetch: FetchAPI;
|
|
@@ -3183,6 +4040,26 @@ export declare interface Schedule {
|
|
|
3183
4040
|
dates: Array<ScheduleDay>;
|
|
3184
4041
|
}
|
|
3185
4042
|
|
|
4043
|
+
/**
|
|
4044
|
+
*
|
|
4045
|
+
*/
|
|
4046
|
+
export declare class ScheduleApi extends runtime.BaseAPI {
|
|
4047
|
+
/**
|
|
4048
|
+
* Creates request options for getSchedule without sending the request
|
|
4049
|
+
*/
|
|
4050
|
+
getScheduleRequestOpts(requestParameters: GetScheduleRequest): Promise<runtime.RequestOpts>;
|
|
4051
|
+
/**
|
|
4052
|
+
* Returns Schedule
|
|
4053
|
+
* Retrieves schedule
|
|
4054
|
+
*/
|
|
4055
|
+
getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Schedule>>;
|
|
4056
|
+
/**
|
|
4057
|
+
* Returns Schedule
|
|
4058
|
+
* Retrieves schedule
|
|
4059
|
+
*/
|
|
4060
|
+
getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Schedule>;
|
|
4061
|
+
}
|
|
4062
|
+
|
|
3186
4063
|
/**
|
|
3187
4064
|
*
|
|
3188
4065
|
* @export
|
|
@@ -3194,7 +4071,7 @@ export declare interface ScheduleDay {
|
|
|
3194
4071
|
* @type {string}
|
|
3195
4072
|
* @memberof ScheduleDay
|
|
3196
4073
|
*/
|
|
3197
|
-
date
|
|
4074
|
+
date: string;
|
|
3198
4075
|
/**
|
|
3199
4076
|
*
|
|
3200
4077
|
* @type {number}
|
|
@@ -3245,9 +4122,9 @@ export declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscr
|
|
|
3245
4122
|
|
|
3246
4123
|
/**
|
|
3247
4124
|
* MLB StatAPI
|
|
3248
|
-
*
|
|
4125
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3249
4126
|
*
|
|
3250
|
-
* The version of the OpenAPI document: 0.
|
|
4127
|
+
* The version of the OpenAPI document: 0.7.4
|
|
3251
4128
|
*
|
|
3252
4129
|
*
|
|
3253
4130
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3322,11 +4199,11 @@ export declare interface Season {
|
|
|
3322
4199
|
*/
|
|
3323
4200
|
lastDate1stHalf?: string;
|
|
3324
4201
|
/**
|
|
3325
|
-
*
|
|
4202
|
+
* All-Star Game date
|
|
3326
4203
|
* @type {string}
|
|
3327
4204
|
* @memberof Season
|
|
3328
4205
|
*/
|
|
3329
|
-
|
|
4206
|
+
allStarDate?: string;
|
|
3330
4207
|
/**
|
|
3331
4208
|
*
|
|
3332
4209
|
* @type {string}
|
|
@@ -3352,13 +4229,13 @@ export declare interface Season {
|
|
|
3352
4229
|
*/
|
|
3353
4230
|
postSeasonEndDate?: string;
|
|
3354
4231
|
/**
|
|
3355
|
-
*
|
|
4232
|
+
* Alternative spelling returned by API (offseason, one word, lowercase)
|
|
3356
4233
|
* @type {string}
|
|
3357
4234
|
* @memberof Season
|
|
3358
4235
|
*/
|
|
3359
|
-
|
|
4236
|
+
offseasonStartDate?: string;
|
|
3360
4237
|
/**
|
|
3361
|
-
*
|
|
4238
|
+
* Alternative spelling returned by API (offSeason, one word, camelCase)
|
|
3362
4239
|
* @type {string}
|
|
3363
4240
|
* @memberof Season
|
|
3364
4241
|
*/
|
|
@@ -3421,9 +4298,9 @@ export declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscrimin
|
|
|
3421
4298
|
|
|
3422
4299
|
/**
|
|
3423
4300
|
* MLB StatAPI
|
|
3424
|
-
*
|
|
4301
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3425
4302
|
*
|
|
3426
|
-
* The version of the OpenAPI document: 0.
|
|
4303
|
+
* The version of the OpenAPI document: 0.7.4
|
|
3427
4304
|
*
|
|
3428
4305
|
*
|
|
3429
4306
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3489,11 +4366,31 @@ export declare function SportToJSON(json: any): Sport;
|
|
|
3489
4366
|
|
|
3490
4367
|
export declare function SportToJSONTyped(value?: Sport | null, ignoreDiscriminator?: boolean): any;
|
|
3491
4368
|
|
|
4369
|
+
/**
|
|
4370
|
+
*
|
|
4371
|
+
*/
|
|
4372
|
+
export declare class StandingsApi extends runtime.BaseAPI {
|
|
4373
|
+
/**
|
|
4374
|
+
* Creates request options for getStandings without sending the request
|
|
4375
|
+
*/
|
|
4376
|
+
getStandingsRequestOpts(requestParameters: GetStandingsRequest): Promise<runtime.RequestOpts>;
|
|
4377
|
+
/**
|
|
4378
|
+
* Returns Standing
|
|
4379
|
+
* Retrieves Standings
|
|
4380
|
+
*/
|
|
4381
|
+
getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DivisionStandingsList>>;
|
|
4382
|
+
/**
|
|
4383
|
+
* Returns Standing
|
|
4384
|
+
* Retrieves Standings
|
|
4385
|
+
*/
|
|
4386
|
+
getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DivisionStandingsList>;
|
|
4387
|
+
}
|
|
4388
|
+
|
|
3492
4389
|
/**
|
|
3493
4390
|
* MLB StatAPI
|
|
3494
|
-
*
|
|
4391
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3495
4392
|
*
|
|
3496
|
-
* The version of the OpenAPI document: 0.
|
|
4393
|
+
* The version of the OpenAPI document: 0.7.4
|
|
3497
4394
|
*
|
|
3498
4395
|
*
|
|
3499
4396
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3511,7 +4408,7 @@ export declare interface Streak {
|
|
|
3511
4408
|
* * Losing Streak
|
|
3512
4409
|
* * Winning Streak
|
|
3513
4410
|
*
|
|
3514
|
-
* @type {
|
|
4411
|
+
* @type {StreakStreakTypeEnum}
|
|
3515
4412
|
* @memberof Streak
|
|
3516
4413
|
*/
|
|
3517
4414
|
streakType?: StreakStreakTypeEnum;
|
|
@@ -3645,10 +4542,10 @@ export declare interface Team {
|
|
|
3645
4542
|
sport?: Sport;
|
|
3646
4543
|
/**
|
|
3647
4544
|
*
|
|
3648
|
-
* @type {
|
|
4545
|
+
* @type {ModelRecord}
|
|
3649
4546
|
* @memberof Team
|
|
3650
4547
|
*/
|
|
3651
|
-
record?:
|
|
4548
|
+
record?: ModelRecord;
|
|
3652
4549
|
/**
|
|
3653
4550
|
*
|
|
3654
4551
|
* @type {string}
|
|
@@ -3747,9 +4644,9 @@ export declare class TextApiResponse {
|
|
|
3747
4644
|
|
|
3748
4645
|
/**
|
|
3749
4646
|
* MLB StatAPI
|
|
3750
|
-
*
|
|
4647
|
+
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3751
4648
|
*
|
|
3752
|
-
* The version of the OpenAPI document: 0.
|
|
4649
|
+
* The version of the OpenAPI document: 0.7.4
|
|
3753
4650
|
*
|
|
3754
4651
|
*
|
|
3755
4652
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3757,7 +4654,7 @@ export declare class TextApiResponse {
|
|
|
3757
4654
|
* Do not edit the class manually.
|
|
3758
4655
|
*/
|
|
3759
4656
|
/**
|
|
3760
|
-
* Venue
|
|
4657
|
+
* Venue. When embedded as springVenue, may contain only id and link.
|
|
3761
4658
|
*
|
|
3762
4659
|
* @export
|
|
3763
4660
|
* @interface Venue
|
|
@@ -3774,7 +4671,7 @@ export declare interface Venue {
|
|
|
3774
4671
|
* @type {string}
|
|
3775
4672
|
* @memberof Venue
|
|
3776
4673
|
*/
|
|
3777
|
-
name
|
|
4674
|
+
name?: string;
|
|
3778
4675
|
/**
|
|
3779
4676
|
*
|
|
3780
4677
|
* @type {string}
|