@bp1222/stats-api 0.2.5 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index.mjs → index.cjs} +957 -11
- package/dist/{index.d.mts → index.d.cts} +246 -5
- package/dist/index.d.ts +246 -5
- package/dist/index.js +699 -203
- package/package.json +2 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
5
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
9
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -17,6 +20,19 @@ var __spreadValues = (a, b) => {
|
|
|
17
20
|
return a;
|
|
18
21
|
};
|
|
19
22
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __export = (target, all) => {
|
|
24
|
+
for (var name in all)
|
|
25
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
26
|
+
};
|
|
27
|
+
var __copyProps = (to, from, except, desc) => {
|
|
28
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
29
|
+
for (let key of __getOwnPropNames(from))
|
|
30
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
31
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
32
|
+
}
|
|
33
|
+
return to;
|
|
34
|
+
};
|
|
35
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
36
|
var __async = (__this, __arguments, generator) => {
|
|
21
37
|
return new Promise((resolve, reject) => {
|
|
22
38
|
var fulfilled = (value) => {
|
|
@@ -38,6 +54,247 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
54
|
});
|
|
39
55
|
};
|
|
40
56
|
|
|
57
|
+
// src/index.ts
|
|
58
|
+
var index_exports = {};
|
|
59
|
+
__export(index_exports, {
|
|
60
|
+
BASE_PATH: () => BASE_PATH,
|
|
61
|
+
BaseAPI: () => BaseAPI,
|
|
62
|
+
BattingStatsFromJSON: () => BattingStatsFromJSON,
|
|
63
|
+
BattingStatsFromJSONTyped: () => BattingStatsFromJSONTyped,
|
|
64
|
+
BattingStatsToJSON: () => BattingStatsToJSON,
|
|
65
|
+
BattingStatsToJSONTyped: () => BattingStatsToJSONTyped,
|
|
66
|
+
BlobApiResponse: () => BlobApiResponse,
|
|
67
|
+
BoxscoreFromJSON: () => BoxscoreFromJSON,
|
|
68
|
+
BoxscoreFromJSONTyped: () => BoxscoreFromJSONTyped,
|
|
69
|
+
BoxscoreTeamFromJSON: () => BoxscoreTeamFromJSON,
|
|
70
|
+
BoxscoreTeamFromJSONTyped: () => BoxscoreTeamFromJSONTyped,
|
|
71
|
+
BoxscoreTeamToJSON: () => BoxscoreTeamToJSON,
|
|
72
|
+
BoxscoreTeamToJSONTyped: () => BoxscoreTeamToJSONTyped,
|
|
73
|
+
BoxscoreTeamsFromJSON: () => BoxscoreTeamsFromJSON,
|
|
74
|
+
BoxscoreTeamsFromJSONTyped: () => BoxscoreTeamsFromJSONTyped,
|
|
75
|
+
BoxscoreTeamsToJSON: () => BoxscoreTeamsToJSON,
|
|
76
|
+
BoxscoreTeamsToJSONTyped: () => BoxscoreTeamsToJSONTyped,
|
|
77
|
+
BoxscoreToJSON: () => BoxscoreToJSON,
|
|
78
|
+
BoxscoreToJSONTyped: () => BoxscoreToJSONTyped,
|
|
79
|
+
COLLECTION_FORMATS: () => COLLECTION_FORMATS,
|
|
80
|
+
Configuration: () => Configuration,
|
|
81
|
+
DefaultConfig: () => DefaultConfig,
|
|
82
|
+
DivisionFromJSON: () => DivisionFromJSON,
|
|
83
|
+
DivisionFromJSONTyped: () => DivisionFromJSONTyped,
|
|
84
|
+
DivisionStandingsFromJSON: () => DivisionStandingsFromJSON,
|
|
85
|
+
DivisionStandingsFromJSONTyped: () => DivisionStandingsFromJSONTyped,
|
|
86
|
+
DivisionStandingsListFromJSON: () => DivisionStandingsListFromJSON,
|
|
87
|
+
DivisionStandingsListFromJSONTyped: () => DivisionStandingsListFromJSONTyped,
|
|
88
|
+
DivisionStandingsListToJSON: () => DivisionStandingsListToJSON,
|
|
89
|
+
DivisionStandingsListToJSONTyped: () => DivisionStandingsListToJSONTyped,
|
|
90
|
+
DivisionStandingsToJSON: () => DivisionStandingsToJSON,
|
|
91
|
+
DivisionStandingsToJSONTyped: () => DivisionStandingsToJSONTyped,
|
|
92
|
+
DivisionToJSON: () => DivisionToJSON,
|
|
93
|
+
DivisionToJSONTyped: () => DivisionToJSONTyped,
|
|
94
|
+
FetchError: () => FetchError,
|
|
95
|
+
FieldingStatsFromJSON: () => FieldingStatsFromJSON,
|
|
96
|
+
FieldingStatsFromJSONTyped: () => FieldingStatsFromJSONTyped,
|
|
97
|
+
FieldingStatsToJSON: () => FieldingStatsToJSON,
|
|
98
|
+
FieldingStatsToJSONTyped: () => FieldingStatsToJSONTyped,
|
|
99
|
+
GameFromJSON: () => GameFromJSON,
|
|
100
|
+
GameFromJSONTyped: () => GameFromJSONTyped,
|
|
101
|
+
GameOfficialFromJSON: () => GameOfficialFromJSON,
|
|
102
|
+
GameOfficialFromJSONTyped: () => GameOfficialFromJSONTyped,
|
|
103
|
+
GameOfficialToJSON: () => GameOfficialToJSON,
|
|
104
|
+
GameOfficialToJSONTyped: () => GameOfficialToJSONTyped,
|
|
105
|
+
GameStatusCode: () => GameStatusCode,
|
|
106
|
+
GameStatusCodeFromJSON: () => GameStatusCodeFromJSON,
|
|
107
|
+
GameStatusCodeFromJSONTyped: () => GameStatusCodeFromJSONTyped,
|
|
108
|
+
GameStatusCodeToJSON: () => GameStatusCodeToJSON,
|
|
109
|
+
GameStatusCodeToJSONTyped: () => GameStatusCodeToJSONTyped,
|
|
110
|
+
GameStatusFromJSON: () => GameStatusFromJSON,
|
|
111
|
+
GameStatusFromJSONTyped: () => GameStatusFromJSONTyped,
|
|
112
|
+
GameStatusToJSON: () => GameStatusToJSON,
|
|
113
|
+
GameStatusToJSONTyped: () => GameStatusToJSONTyped,
|
|
114
|
+
GameTeamFromJSON: () => GameTeamFromJSON,
|
|
115
|
+
GameTeamFromJSONTyped: () => GameTeamFromJSONTyped,
|
|
116
|
+
GameTeamToJSON: () => GameTeamToJSON,
|
|
117
|
+
GameTeamToJSONTyped: () => GameTeamToJSONTyped,
|
|
118
|
+
GameTeamsFromJSON: () => GameTeamsFromJSON,
|
|
119
|
+
GameTeamsFromJSONTyped: () => GameTeamsFromJSONTyped,
|
|
120
|
+
GameTeamsToJSON: () => GameTeamsToJSON,
|
|
121
|
+
GameTeamsToJSONTyped: () => GameTeamsToJSONTyped,
|
|
122
|
+
GameToJSON: () => GameToJSON,
|
|
123
|
+
GameToJSONTyped: () => GameToJSONTyped,
|
|
124
|
+
GameType: () => GameType,
|
|
125
|
+
GameTypeFromJSON: () => GameTypeFromJSON,
|
|
126
|
+
GameTypeFromJSONTyped: () => GameTypeFromJSONTyped,
|
|
127
|
+
GameTypeToJSON: () => GameTypeToJSON,
|
|
128
|
+
GameTypeToJSONTyped: () => GameTypeToJSONTyped,
|
|
129
|
+
InningFromJSON: () => InningFromJSON,
|
|
130
|
+
InningFromJSONTyped: () => InningFromJSONTyped,
|
|
131
|
+
InningToJSON: () => InningToJSON,
|
|
132
|
+
InningToJSONTyped: () => InningToJSONTyped,
|
|
133
|
+
JSONApiResponse: () => JSONApiResponse,
|
|
134
|
+
LeagueDatesFromJSON: () => LeagueDatesFromJSON,
|
|
135
|
+
LeagueDatesFromJSONTyped: () => LeagueDatesFromJSONTyped,
|
|
136
|
+
LeagueDatesToJSON: () => LeagueDatesToJSON,
|
|
137
|
+
LeagueDatesToJSONTyped: () => LeagueDatesToJSONTyped,
|
|
138
|
+
LeagueFromJSON: () => LeagueFromJSON,
|
|
139
|
+
LeagueFromJSONTyped: () => LeagueFromJSONTyped,
|
|
140
|
+
LeagueRecordFromJSON: () => LeagueRecordFromJSON,
|
|
141
|
+
LeagueRecordFromJSONTyped: () => LeagueRecordFromJSONTyped,
|
|
142
|
+
LeagueRecordToJSON: () => LeagueRecordToJSON,
|
|
143
|
+
LeagueRecordToJSONTyped: () => LeagueRecordToJSONTyped,
|
|
144
|
+
LeagueToJSON: () => LeagueToJSON,
|
|
145
|
+
LeagueToJSONTyped: () => LeagueToJSONTyped,
|
|
146
|
+
LinescoreFromJSON: () => LinescoreFromJSON,
|
|
147
|
+
LinescoreFromJSONTyped: () => LinescoreFromJSONTyped,
|
|
148
|
+
LinescoreTeamFromJSON: () => LinescoreTeamFromJSON,
|
|
149
|
+
LinescoreTeamFromJSONTyped: () => LinescoreTeamFromJSONTyped,
|
|
150
|
+
LinescoreTeamToJSON: () => LinescoreTeamToJSON,
|
|
151
|
+
LinescoreTeamToJSONTyped: () => LinescoreTeamToJSONTyped,
|
|
152
|
+
LinescoreTeamsFromJSON: () => LinescoreTeamsFromJSON,
|
|
153
|
+
LinescoreTeamsFromJSONTyped: () => LinescoreTeamsFromJSONTyped,
|
|
154
|
+
LinescoreTeamsToJSON: () => LinescoreTeamsToJSON,
|
|
155
|
+
LinescoreTeamsToJSONTyped: () => LinescoreTeamsToJSONTyped,
|
|
156
|
+
LinescoreToJSON: () => LinescoreToJSON,
|
|
157
|
+
LinescoreToJSONTyped: () => LinescoreToJSONTyped,
|
|
158
|
+
MlbApi: () => MlbApi,
|
|
159
|
+
OfficialFromJSON: () => OfficialFromJSON,
|
|
160
|
+
OfficialFromJSONTyped: () => OfficialFromJSONTyped,
|
|
161
|
+
OfficialToJSON: () => OfficialToJSON,
|
|
162
|
+
OfficialToJSONTyped: () => OfficialToJSONTyped,
|
|
163
|
+
PitchingStatsFromJSON: () => PitchingStatsFromJSON,
|
|
164
|
+
PitchingStatsFromJSONTyped: () => PitchingStatsFromJSONTyped,
|
|
165
|
+
PitchingStatsToJSON: () => PitchingStatsToJSON,
|
|
166
|
+
PitchingStatsToJSONTyped: () => PitchingStatsToJSONTyped,
|
|
167
|
+
PlayerFromJSON: () => PlayerFromJSON,
|
|
168
|
+
PlayerFromJSONTyped: () => PlayerFromJSONTyped,
|
|
169
|
+
PlayerGameStatusFromJSON: () => PlayerGameStatusFromJSON,
|
|
170
|
+
PlayerGameStatusFromJSONTyped: () => PlayerGameStatusFromJSONTyped,
|
|
171
|
+
PlayerGameStatusToJSON: () => PlayerGameStatusToJSON,
|
|
172
|
+
PlayerGameStatusToJSONTyped: () => PlayerGameStatusToJSONTyped,
|
|
173
|
+
PlayerPersonFromJSON: () => PlayerPersonFromJSON,
|
|
174
|
+
PlayerPersonFromJSONTyped: () => PlayerPersonFromJSONTyped,
|
|
175
|
+
PlayerPersonToJSON: () => PlayerPersonToJSON,
|
|
176
|
+
PlayerPersonToJSONTyped: () => PlayerPersonToJSONTyped,
|
|
177
|
+
PlayerPositionFromJSON: () => PlayerPositionFromJSON,
|
|
178
|
+
PlayerPositionFromJSONTyped: () => PlayerPositionFromJSONTyped,
|
|
179
|
+
PlayerPositionToJSON: () => PlayerPositionToJSON,
|
|
180
|
+
PlayerPositionToJSONTyped: () => PlayerPositionToJSONTyped,
|
|
181
|
+
PlayerSeasonStatsFromJSON: () => PlayerSeasonStatsFromJSON,
|
|
182
|
+
PlayerSeasonStatsFromJSONTyped: () => PlayerSeasonStatsFromJSONTyped,
|
|
183
|
+
PlayerSeasonStatsToJSON: () => PlayerSeasonStatsToJSON,
|
|
184
|
+
PlayerSeasonStatsToJSONTyped: () => PlayerSeasonStatsToJSONTyped,
|
|
185
|
+
PlayerStatsFromJSON: () => PlayerStatsFromJSON,
|
|
186
|
+
PlayerStatsFromJSONTyped: () => PlayerStatsFromJSONTyped,
|
|
187
|
+
PlayerStatsToJSON: () => PlayerStatsToJSON,
|
|
188
|
+
PlayerStatsToJSONTyped: () => PlayerStatsToJSONTyped,
|
|
189
|
+
PlayerStatusFromJSON: () => PlayerStatusFromJSON,
|
|
190
|
+
PlayerStatusFromJSONTyped: () => PlayerStatusFromJSONTyped,
|
|
191
|
+
PlayerStatusToJSON: () => PlayerStatusToJSON,
|
|
192
|
+
PlayerStatusToJSONTyped: () => PlayerStatusToJSONTyped,
|
|
193
|
+
PlayerToJSON: () => PlayerToJSON,
|
|
194
|
+
PlayerToJSONTyped: () => PlayerToJSONTyped,
|
|
195
|
+
PositionFromJSON: () => PositionFromJSON,
|
|
196
|
+
PositionFromJSONTyped: () => PositionFromJSONTyped,
|
|
197
|
+
PositionToJSON: () => PositionToJSON,
|
|
198
|
+
PositionToJSONTyped: () => PositionToJSONTyped,
|
|
199
|
+
RecordFromJSON: () => RecordFromJSON,
|
|
200
|
+
RecordFromJSONTyped: () => RecordFromJSONTyped,
|
|
201
|
+
RecordToJSON: () => RecordToJSON,
|
|
202
|
+
RecordToJSONTyped: () => RecordToJSONTyped,
|
|
203
|
+
RequiredError: () => RequiredError,
|
|
204
|
+
ResponseError: () => ResponseError,
|
|
205
|
+
ScheduleDayFromJSON: () => ScheduleDayFromJSON,
|
|
206
|
+
ScheduleDayFromJSONTyped: () => ScheduleDayFromJSONTyped,
|
|
207
|
+
ScheduleDayToJSON: () => ScheduleDayToJSON,
|
|
208
|
+
ScheduleDayToJSONTyped: () => ScheduleDayToJSONTyped,
|
|
209
|
+
ScheduleFromJSON: () => ScheduleFromJSON,
|
|
210
|
+
ScheduleFromJSONTyped: () => ScheduleFromJSONTyped,
|
|
211
|
+
ScheduleToJSON: () => ScheduleToJSON,
|
|
212
|
+
ScheduleToJSONTyped: () => ScheduleToJSONTyped,
|
|
213
|
+
SeasonFromJSON: () => SeasonFromJSON,
|
|
214
|
+
SeasonFromJSONTyped: () => SeasonFromJSONTyped,
|
|
215
|
+
SeasonToJSON: () => SeasonToJSON,
|
|
216
|
+
SeasonToJSONTyped: () => SeasonToJSONTyped,
|
|
217
|
+
SeasonsFromJSON: () => SeasonsFromJSON,
|
|
218
|
+
SeasonsFromJSONTyped: () => SeasonsFromJSONTyped,
|
|
219
|
+
SeasonsToJSON: () => SeasonsToJSON,
|
|
220
|
+
SeasonsToJSONTyped: () => SeasonsToJSONTyped,
|
|
221
|
+
SportFromJSON: () => SportFromJSON,
|
|
222
|
+
SportFromJSONTyped: () => SportFromJSONTyped,
|
|
223
|
+
SportToJSON: () => SportToJSON,
|
|
224
|
+
SportToJSONTyped: () => SportToJSONTyped,
|
|
225
|
+
StreakFromJSON: () => StreakFromJSON,
|
|
226
|
+
StreakFromJSONTyped: () => StreakFromJSONTyped,
|
|
227
|
+
StreakStreakTypeEnum: () => StreakStreakTypeEnum,
|
|
228
|
+
StreakToJSON: () => StreakToJSON,
|
|
229
|
+
StreakToJSONTyped: () => StreakToJSONTyped,
|
|
230
|
+
TeamFromJSON: () => TeamFromJSON,
|
|
231
|
+
TeamFromJSONTyped: () => TeamFromJSONTyped2,
|
|
232
|
+
TeamStatsFromJSON: () => TeamStatsFromJSON,
|
|
233
|
+
TeamStatsFromJSONTyped: () => TeamStatsFromJSONTyped,
|
|
234
|
+
TeamStatsToJSON: () => TeamStatsToJSON,
|
|
235
|
+
TeamStatsToJSONTyped: () => TeamStatsToJSONTyped,
|
|
236
|
+
TeamToJSON: () => TeamToJSON,
|
|
237
|
+
TeamToJSONTyped: () => TeamToJSONTyped2,
|
|
238
|
+
TeamsFromJSON: () => TeamsFromJSON,
|
|
239
|
+
TeamsFromJSONTyped: () => TeamsFromJSONTyped,
|
|
240
|
+
TeamsToJSON: () => TeamsToJSON,
|
|
241
|
+
TeamsToJSONTyped: () => TeamsToJSONTyped,
|
|
242
|
+
TextApiResponse: () => TextApiResponse,
|
|
243
|
+
VenueFromJSON: () => VenueFromJSON,
|
|
244
|
+
VenueFromJSONTyped: () => VenueFromJSONTyped,
|
|
245
|
+
VenueToJSON: () => VenueToJSON,
|
|
246
|
+
VenueToJSONTyped: () => VenueToJSONTyped,
|
|
247
|
+
VoidApiResponse: () => VoidApiResponse,
|
|
248
|
+
canConsumeForm: () => canConsumeForm,
|
|
249
|
+
exists: () => exists,
|
|
250
|
+
instanceOfBattingStats: () => instanceOfBattingStats,
|
|
251
|
+
instanceOfBoxscore: () => instanceOfBoxscore,
|
|
252
|
+
instanceOfBoxscoreTeam: () => instanceOfBoxscoreTeam,
|
|
253
|
+
instanceOfBoxscoreTeams: () => instanceOfBoxscoreTeams,
|
|
254
|
+
instanceOfDivision: () => instanceOfDivision,
|
|
255
|
+
instanceOfDivisionStandings: () => instanceOfDivisionStandings,
|
|
256
|
+
instanceOfDivisionStandingsList: () => instanceOfDivisionStandingsList,
|
|
257
|
+
instanceOfFieldingStats: () => instanceOfFieldingStats,
|
|
258
|
+
instanceOfGame: () => instanceOfGame,
|
|
259
|
+
instanceOfGameOfficial: () => instanceOfGameOfficial,
|
|
260
|
+
instanceOfGameStatus: () => instanceOfGameStatus,
|
|
261
|
+
instanceOfGameStatusCode: () => instanceOfGameStatusCode,
|
|
262
|
+
instanceOfGameTeam: () => instanceOfGameTeam,
|
|
263
|
+
instanceOfGameTeams: () => instanceOfGameTeams,
|
|
264
|
+
instanceOfGameType: () => instanceOfGameType,
|
|
265
|
+
instanceOfInning: () => instanceOfInning,
|
|
266
|
+
instanceOfLeague: () => instanceOfLeague,
|
|
267
|
+
instanceOfLeagueDates: () => instanceOfLeagueDates,
|
|
268
|
+
instanceOfLeagueRecord: () => instanceOfLeagueRecord,
|
|
269
|
+
instanceOfLinescore: () => instanceOfLinescore,
|
|
270
|
+
instanceOfLinescoreTeam: () => instanceOfLinescoreTeam,
|
|
271
|
+
instanceOfLinescoreTeams: () => instanceOfLinescoreTeams,
|
|
272
|
+
instanceOfOfficial: () => instanceOfOfficial,
|
|
273
|
+
instanceOfPitchingStats: () => instanceOfPitchingStats,
|
|
274
|
+
instanceOfPlayer: () => instanceOfPlayer,
|
|
275
|
+
instanceOfPlayerGameStatus: () => instanceOfPlayerGameStatus,
|
|
276
|
+
instanceOfPlayerPerson: () => instanceOfPlayerPerson,
|
|
277
|
+
instanceOfPlayerPosition: () => instanceOfPlayerPosition,
|
|
278
|
+
instanceOfPlayerSeasonStats: () => instanceOfPlayerSeasonStats,
|
|
279
|
+
instanceOfPlayerStats: () => instanceOfPlayerStats,
|
|
280
|
+
instanceOfPlayerStatus: () => instanceOfPlayerStatus,
|
|
281
|
+
instanceOfPosition: () => instanceOfPosition,
|
|
282
|
+
instanceOfRecord: () => instanceOfRecord,
|
|
283
|
+
instanceOfSchedule: () => instanceOfSchedule,
|
|
284
|
+
instanceOfScheduleDay: () => instanceOfScheduleDay,
|
|
285
|
+
instanceOfSeason: () => instanceOfSeason,
|
|
286
|
+
instanceOfSeasons: () => instanceOfSeasons,
|
|
287
|
+
instanceOfSport: () => instanceOfSport,
|
|
288
|
+
instanceOfStreak: () => instanceOfStreak,
|
|
289
|
+
instanceOfTeam: () => instanceOfTeam,
|
|
290
|
+
instanceOfTeamStats: () => instanceOfTeamStats,
|
|
291
|
+
instanceOfTeams: () => instanceOfTeams,
|
|
292
|
+
instanceOfVenue: () => instanceOfVenue,
|
|
293
|
+
mapValues: () => mapValues,
|
|
294
|
+
querystring: () => querystring
|
|
295
|
+
});
|
|
296
|
+
module.exports = __toCommonJS(index_exports);
|
|
297
|
+
|
|
41
298
|
// src/runtime.ts
|
|
42
299
|
var BASE_PATH = "https://statsapi.mlb.com/api".replace(/\/+$/, "");
|
|
43
300
|
var Configuration = class {
|
|
@@ -279,6 +536,10 @@ function querystringSingleKey(key, value, keyPrefix = "") {
|
|
|
279
536
|
}
|
|
280
537
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
281
538
|
}
|
|
539
|
+
function exists(json, key) {
|
|
540
|
+
const value = json[key];
|
|
541
|
+
return value !== null && value !== void 0;
|
|
542
|
+
}
|
|
282
543
|
function mapValues(data, fn) {
|
|
283
544
|
return Object.keys(data).reduce(
|
|
284
545
|
(acc, key) => __spreadProps(__spreadValues({}, acc), { [key]: fn(data[key]) }),
|
|
@@ -335,6 +596,97 @@ var TextApiResponse = class {
|
|
|
335
596
|
}
|
|
336
597
|
};
|
|
337
598
|
|
|
599
|
+
// src/models/BattingStats.ts
|
|
600
|
+
function instanceOfBattingStats(value) {
|
|
601
|
+
return true;
|
|
602
|
+
}
|
|
603
|
+
function BattingStatsFromJSON(json) {
|
|
604
|
+
return BattingStatsFromJSONTyped(json, false);
|
|
605
|
+
}
|
|
606
|
+
function BattingStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
607
|
+
if (json == null) {
|
|
608
|
+
return json;
|
|
609
|
+
}
|
|
610
|
+
return {
|
|
611
|
+
"flyOuts": json["flyOuts"] == null ? void 0 : json["flyOuts"],
|
|
612
|
+
"groundOuts": json["groundOuts"] == null ? void 0 : json["groundOuts"],
|
|
613
|
+
"airOuts": json["airOuts"] == null ? void 0 : json["airOuts"],
|
|
614
|
+
"runs": json["runs"] == null ? void 0 : json["runs"],
|
|
615
|
+
"doubles": json["doubles"] == null ? void 0 : json["doubles"],
|
|
616
|
+
"triples": json["triples"] == null ? void 0 : json["triples"],
|
|
617
|
+
"homeRuns": json["homeRuns"] == null ? void 0 : json["homeRuns"],
|
|
618
|
+
"strikeOuts": json["strikeOuts"] == null ? void 0 : json["strikeOuts"],
|
|
619
|
+
"baseOnBalls": json["baseOnBalls"] == null ? void 0 : json["baseOnBalls"],
|
|
620
|
+
"intentionalWalks": json["intentionalWalks"] == null ? void 0 : json["intentionalWalks"],
|
|
621
|
+
"hits": json["hits"] == null ? void 0 : json["hits"],
|
|
622
|
+
"hitByPitch": json["hitByPitch"] == null ? void 0 : json["hitByPitch"],
|
|
623
|
+
"avg": json["avg"] == null ? void 0 : json["avg"],
|
|
624
|
+
"atBats": json["atBats"] == null ? void 0 : json["atBats"],
|
|
625
|
+
"obp": json["obp"] == null ? void 0 : json["obp"],
|
|
626
|
+
"slg": json["slg"] == null ? void 0 : json["slg"],
|
|
627
|
+
"ops": json["ops"] == null ? void 0 : json["ops"],
|
|
628
|
+
"caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
|
|
629
|
+
"stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
|
|
630
|
+
"stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
|
|
631
|
+
"groundIntoDoublePlay": json["groundIntoDoublePlay"] == null ? void 0 : json["groundIntoDoublePlay"],
|
|
632
|
+
"groundIntoTriplePlay": json["groundIntoTriplePlay"] == null ? void 0 : json["groundIntoTriplePlay"],
|
|
633
|
+
"plateAppearances": json["plateAppearances"] == null ? void 0 : json["plateAppearances"],
|
|
634
|
+
"totalBases": json["totalBases"] == null ? void 0 : json["totalBases"],
|
|
635
|
+
"rbi": json["rbi"] == null ? void 0 : json["rbi"],
|
|
636
|
+
"leftOnBase": json["leftOnBase"] == null ? void 0 : json["leftOnBase"],
|
|
637
|
+
"sacBunts": json["sacBunts"] == null ? void 0 : json["sacBunts"],
|
|
638
|
+
"sacFlies": json["sacFlies"] == null ? void 0 : json["sacFlies"],
|
|
639
|
+
"catchersInterference": json["catchersInterference"] == null ? void 0 : json["catchersInterference"],
|
|
640
|
+
"pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"],
|
|
641
|
+
"atBatsPerHomeRun": json["atBatsPerHomeRun"] == null ? void 0 : json["atBatsPerHomeRun"],
|
|
642
|
+
"popOuts": json["popOuts"] == null ? void 0 : json["popOuts"],
|
|
643
|
+
"lineOuts": json["lineOuts"] == null ? void 0 : json["lineOuts"]
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
function BattingStatsToJSON(json) {
|
|
647
|
+
return BattingStatsToJSONTyped(json, false);
|
|
648
|
+
}
|
|
649
|
+
function BattingStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
650
|
+
if (value == null) {
|
|
651
|
+
return value;
|
|
652
|
+
}
|
|
653
|
+
return {
|
|
654
|
+
"flyOuts": value["flyOuts"],
|
|
655
|
+
"groundOuts": value["groundOuts"],
|
|
656
|
+
"airOuts": value["airOuts"],
|
|
657
|
+
"runs": value["runs"],
|
|
658
|
+
"doubles": value["doubles"],
|
|
659
|
+
"triples": value["triples"],
|
|
660
|
+
"homeRuns": value["homeRuns"],
|
|
661
|
+
"strikeOuts": value["strikeOuts"],
|
|
662
|
+
"baseOnBalls": value["baseOnBalls"],
|
|
663
|
+
"intentionalWalks": value["intentionalWalks"],
|
|
664
|
+
"hits": value["hits"],
|
|
665
|
+
"hitByPitch": value["hitByPitch"],
|
|
666
|
+
"avg": value["avg"],
|
|
667
|
+
"atBats": value["atBats"],
|
|
668
|
+
"obp": value["obp"],
|
|
669
|
+
"slg": value["slg"],
|
|
670
|
+
"ops": value["ops"],
|
|
671
|
+
"caughtStealing": value["caughtStealing"],
|
|
672
|
+
"stolenBases": value["stolenBases"],
|
|
673
|
+
"stolenBasePercentage": value["stolenBasePercentage"],
|
|
674
|
+
"groundIntoDoublePlay": value["groundIntoDoublePlay"],
|
|
675
|
+
"groundIntoTriplePlay": value["groundIntoTriplePlay"],
|
|
676
|
+
"plateAppearances": value["plateAppearances"],
|
|
677
|
+
"totalBases": value["totalBases"],
|
|
678
|
+
"rbi": value["rbi"],
|
|
679
|
+
"leftOnBase": value["leftOnBase"],
|
|
680
|
+
"sacBunts": value["sacBunts"],
|
|
681
|
+
"sacFlies": value["sacFlies"],
|
|
682
|
+
"catchersInterference": value["catchersInterference"],
|
|
683
|
+
"pickoffs": value["pickoffs"],
|
|
684
|
+
"atBatsPerHomeRun": value["atBatsPerHomeRun"],
|
|
685
|
+
"popOuts": value["popOuts"],
|
|
686
|
+
"lineOuts": value["lineOuts"]
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
|
|
338
690
|
// src/models/Official.ts
|
|
339
691
|
function instanceOfOfficial(value) {
|
|
340
692
|
return true;
|
|
@@ -395,6 +747,458 @@ function GameOfficialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
395
747
|
};
|
|
396
748
|
}
|
|
397
749
|
|
|
750
|
+
// src/models/FieldingStats.ts
|
|
751
|
+
function instanceOfFieldingStats(value) {
|
|
752
|
+
return true;
|
|
753
|
+
}
|
|
754
|
+
function FieldingStatsFromJSON(json) {
|
|
755
|
+
return FieldingStatsFromJSONTyped(json, false);
|
|
756
|
+
}
|
|
757
|
+
function FieldingStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
758
|
+
if (json == null) {
|
|
759
|
+
return json;
|
|
760
|
+
}
|
|
761
|
+
return {
|
|
762
|
+
"caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
|
|
763
|
+
"stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
|
|
764
|
+
"stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
|
|
765
|
+
"assists": json["assists"] == null ? void 0 : json["assists"],
|
|
766
|
+
"putOuts": json["putOuts"] == null ? void 0 : json["putOuts"],
|
|
767
|
+
"errors": json["errors"] == null ? void 0 : json["errors"],
|
|
768
|
+
"chances": json["chances"] == null ? void 0 : json["chances"],
|
|
769
|
+
"passedBall": json["passedBall"] == null ? void 0 : json["passedBall"],
|
|
770
|
+
"pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"]
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
function FieldingStatsToJSON(json) {
|
|
774
|
+
return FieldingStatsToJSONTyped(json, false);
|
|
775
|
+
}
|
|
776
|
+
function FieldingStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
777
|
+
if (value == null) {
|
|
778
|
+
return value;
|
|
779
|
+
}
|
|
780
|
+
return {
|
|
781
|
+
"caughtStealing": value["caughtStealing"],
|
|
782
|
+
"stolenBases": value["stolenBases"],
|
|
783
|
+
"stolenBasePercentage": value["stolenBasePercentage"],
|
|
784
|
+
"assists": value["assists"],
|
|
785
|
+
"putOuts": value["putOuts"],
|
|
786
|
+
"errors": value["errors"],
|
|
787
|
+
"chances": value["chances"],
|
|
788
|
+
"passedBall": value["passedBall"],
|
|
789
|
+
"pickoffs": value["pickoffs"]
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
// src/models/PitchingStats.ts
|
|
794
|
+
function instanceOfPitchingStats(value) {
|
|
795
|
+
return true;
|
|
796
|
+
}
|
|
797
|
+
function PitchingStatsFromJSON(json) {
|
|
798
|
+
return PitchingStatsFromJSONTyped(json, false);
|
|
799
|
+
}
|
|
800
|
+
function PitchingStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
801
|
+
if (json == null) {
|
|
802
|
+
return json;
|
|
803
|
+
}
|
|
804
|
+
return {
|
|
805
|
+
"flyOuts": json["flyOuts"] == null ? void 0 : json["flyOuts"],
|
|
806
|
+
"groundOuts": json["groundOuts"] == null ? void 0 : json["groundOuts"],
|
|
807
|
+
"airOuts": json["airOuts"] == null ? void 0 : json["airOuts"],
|
|
808
|
+
"runs": json["runs"] == null ? void 0 : json["runs"],
|
|
809
|
+
"doubles": json["doubles"] == null ? void 0 : json["doubles"],
|
|
810
|
+
"triples": json["triples"] == null ? void 0 : json["triples"],
|
|
811
|
+
"homeRuns": json["homeRuns"] == null ? void 0 : json["homeRuns"],
|
|
812
|
+
"strikeOuts": json["strikeOuts"] == null ? void 0 : json["strikeOuts"],
|
|
813
|
+
"baseOnBalls": json["baseOnBalls"] == null ? void 0 : json["baseOnBalls"],
|
|
814
|
+
"intentionalWalks": json["intentionalWalks"] == null ? void 0 : json["intentionalWalks"],
|
|
815
|
+
"hits": json["hits"] == null ? void 0 : json["hits"],
|
|
816
|
+
"hitByPitch": json["hitByPitch"] == null ? void 0 : json["hitByPitch"],
|
|
817
|
+
"atBats": json["atBats"] == null ? void 0 : json["atBats"],
|
|
818
|
+
"obp": json["obp"] == null ? void 0 : json["obp"],
|
|
819
|
+
"caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
|
|
820
|
+
"stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
|
|
821
|
+
"stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
|
|
822
|
+
"numberOfPitches": json["numberOfPitches"] == null ? void 0 : json["numberOfPitches"],
|
|
823
|
+
"era": json["era"] == null ? void 0 : json["era"],
|
|
824
|
+
"inningsPitched": json["inningsPitched"] == null ? void 0 : json["inningsPitched"],
|
|
825
|
+
"saveOpportunities": json["saveOpportunities"] == null ? void 0 : json["saveOpportunities"],
|
|
826
|
+
"earnedRuns": json["earnedRuns"] == null ? void 0 : json["earnedRuns"],
|
|
827
|
+
"whip": json["whip"] == null ? void 0 : json["whip"],
|
|
828
|
+
"battersFaced": json["battersFaced"] == null ? void 0 : json["battersFaced"],
|
|
829
|
+
"outs": json["outs"] == null ? void 0 : json["outs"],
|
|
830
|
+
"completeGames": json["completeGames"] == null ? void 0 : json["completeGames"],
|
|
831
|
+
"shutouts": json["shutouts"] == null ? void 0 : json["shutouts"],
|
|
832
|
+
"pitchesThrown": json["pitchesThrown"] == null ? void 0 : json["pitchesThrown"],
|
|
833
|
+
"balls": json["balls"] == null ? void 0 : json["balls"],
|
|
834
|
+
"strikes": json["strikes"] == null ? void 0 : json["strikes"],
|
|
835
|
+
"strikePercentage": json["strikePercentage"] == null ? void 0 : json["strikePercentage"],
|
|
836
|
+
"hitBatsmen": json["hitBatsmen"] == null ? void 0 : json["hitBatsmen"],
|
|
837
|
+
"balks": json["balks"] == null ? void 0 : json["balks"],
|
|
838
|
+
"wildPitches": json["wildPitches"] == null ? void 0 : json["wildPitches"],
|
|
839
|
+
"pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"],
|
|
840
|
+
"groundOutsToAirouts": json["groundOutsToAirouts"] == null ? void 0 : json["groundOutsToAirouts"],
|
|
841
|
+
"rbi": json["rbi"] == null ? void 0 : json["rbi"],
|
|
842
|
+
"pitchesPerInning": json["pitchesPerInning"] == null ? void 0 : json["pitchesPerInning"],
|
|
843
|
+
"runsScoredPer9": json["runsScoredPer9"] == null ? void 0 : json["runsScoredPer9"],
|
|
844
|
+
"homeRunsPer9": json["homeRunsPer9"] == null ? void 0 : json["homeRunsPer9"],
|
|
845
|
+
"inheritedRunners": json["inheritedRunners"] == null ? void 0 : json["inheritedRunners"],
|
|
846
|
+
"inheritedRunnersScored": json["inheritedRunnersScored"] == null ? void 0 : json["inheritedRunnersScored"],
|
|
847
|
+
"catchersInterference": json["catchersInterference"] == null ? void 0 : json["catchersInterference"],
|
|
848
|
+
"sacBunts": json["sacBunts"] == null ? void 0 : json["sacBunts"],
|
|
849
|
+
"sacFlies": json["sacFlies"] == null ? void 0 : json["sacFlies"],
|
|
850
|
+
"passedBall": json["passedBall"] == null ? void 0 : json["passedBall"],
|
|
851
|
+
"popOuts": json["popOuts"] == null ? void 0 : json["popOuts"],
|
|
852
|
+
"lineOuts": json["lineOuts"] == null ? void 0 : json["lineOuts"]
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
function PitchingStatsToJSON(json) {
|
|
856
|
+
return PitchingStatsToJSONTyped(json, false);
|
|
857
|
+
}
|
|
858
|
+
function PitchingStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
859
|
+
if (value == null) {
|
|
860
|
+
return value;
|
|
861
|
+
}
|
|
862
|
+
return {
|
|
863
|
+
"flyOuts": value["flyOuts"],
|
|
864
|
+
"groundOuts": value["groundOuts"],
|
|
865
|
+
"airOuts": value["airOuts"],
|
|
866
|
+
"runs": value["runs"],
|
|
867
|
+
"doubles": value["doubles"],
|
|
868
|
+
"triples": value["triples"],
|
|
869
|
+
"homeRuns": value["homeRuns"],
|
|
870
|
+
"strikeOuts": value["strikeOuts"],
|
|
871
|
+
"baseOnBalls": value["baseOnBalls"],
|
|
872
|
+
"intentionalWalks": value["intentionalWalks"],
|
|
873
|
+
"hits": value["hits"],
|
|
874
|
+
"hitByPitch": value["hitByPitch"],
|
|
875
|
+
"atBats": value["atBats"],
|
|
876
|
+
"obp": value["obp"],
|
|
877
|
+
"caughtStealing": value["caughtStealing"],
|
|
878
|
+
"stolenBases": value["stolenBases"],
|
|
879
|
+
"stolenBasePercentage": value["stolenBasePercentage"],
|
|
880
|
+
"numberOfPitches": value["numberOfPitches"],
|
|
881
|
+
"era": value["era"],
|
|
882
|
+
"inningsPitched": value["inningsPitched"],
|
|
883
|
+
"saveOpportunities": value["saveOpportunities"],
|
|
884
|
+
"earnedRuns": value["earnedRuns"],
|
|
885
|
+
"whip": value["whip"],
|
|
886
|
+
"battersFaced": value["battersFaced"],
|
|
887
|
+
"outs": value["outs"],
|
|
888
|
+
"completeGames": value["completeGames"],
|
|
889
|
+
"shutouts": value["shutouts"],
|
|
890
|
+
"pitchesThrown": value["pitchesThrown"],
|
|
891
|
+
"balls": value["balls"],
|
|
892
|
+
"strikes": value["strikes"],
|
|
893
|
+
"strikePercentage": value["strikePercentage"],
|
|
894
|
+
"hitBatsmen": value["hitBatsmen"],
|
|
895
|
+
"balks": value["balks"],
|
|
896
|
+
"wildPitches": value["wildPitches"],
|
|
897
|
+
"pickoffs": value["pickoffs"],
|
|
898
|
+
"groundOutsToAirouts": value["groundOutsToAirouts"],
|
|
899
|
+
"rbi": value["rbi"],
|
|
900
|
+
"pitchesPerInning": value["pitchesPerInning"],
|
|
901
|
+
"runsScoredPer9": value["runsScoredPer9"],
|
|
902
|
+
"homeRunsPer9": value["homeRunsPer9"],
|
|
903
|
+
"inheritedRunners": value["inheritedRunners"],
|
|
904
|
+
"inheritedRunnersScored": value["inheritedRunnersScored"],
|
|
905
|
+
"catchersInterference": value["catchersInterference"],
|
|
906
|
+
"sacBunts": value["sacBunts"],
|
|
907
|
+
"sacFlies": value["sacFlies"],
|
|
908
|
+
"passedBall": value["passedBall"],
|
|
909
|
+
"popOuts": value["popOuts"],
|
|
910
|
+
"lineOuts": value["lineOuts"]
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
// src/models/PlayerSeasonStats.ts
|
|
915
|
+
function instanceOfPlayerSeasonStats(value) {
|
|
916
|
+
if (!("batting" in value) || value["batting"] === void 0) return false;
|
|
917
|
+
if (!("pitching" in value) || value["pitching"] === void 0) return false;
|
|
918
|
+
if (!("fielding" in value) || value["fielding"] === void 0) return false;
|
|
919
|
+
return true;
|
|
920
|
+
}
|
|
921
|
+
function PlayerSeasonStatsFromJSON(json) {
|
|
922
|
+
return PlayerSeasonStatsFromJSONTyped(json, false);
|
|
923
|
+
}
|
|
924
|
+
function PlayerSeasonStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
925
|
+
if (json == null) {
|
|
926
|
+
return json;
|
|
927
|
+
}
|
|
928
|
+
return {
|
|
929
|
+
"batting": BattingStatsFromJSON(json["batting"]),
|
|
930
|
+
"pitching": PitchingStatsFromJSON(json["pitching"]),
|
|
931
|
+
"fielding": FieldingStatsFromJSON(json["fielding"])
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
function PlayerSeasonStatsToJSON(json) {
|
|
935
|
+
return PlayerSeasonStatsToJSONTyped(json, false);
|
|
936
|
+
}
|
|
937
|
+
function PlayerSeasonStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
938
|
+
if (value == null) {
|
|
939
|
+
return value;
|
|
940
|
+
}
|
|
941
|
+
return {
|
|
942
|
+
"batting": BattingStatsToJSON(value["batting"]),
|
|
943
|
+
"pitching": PitchingStatsToJSON(value["pitching"]),
|
|
944
|
+
"fielding": FieldingStatsToJSON(value["fielding"])
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
// src/models/PlayerGameStatus.ts
|
|
949
|
+
function instanceOfPlayerGameStatus(value) {
|
|
950
|
+
return true;
|
|
951
|
+
}
|
|
952
|
+
function PlayerGameStatusFromJSON(json) {
|
|
953
|
+
return PlayerGameStatusFromJSONTyped(json, false);
|
|
954
|
+
}
|
|
955
|
+
function PlayerGameStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
956
|
+
if (json == null) {
|
|
957
|
+
return json;
|
|
958
|
+
}
|
|
959
|
+
return {
|
|
960
|
+
"isCurrentBatter": json["isCurrentBatter"] == null ? void 0 : json["isCurrentBatter"],
|
|
961
|
+
"isCurrentPitcher": json["isCurrentPitcher"] == null ? void 0 : json["isCurrentPitcher"],
|
|
962
|
+
"isOnBench": json["isOnBench"] == null ? void 0 : json["isOnBench"],
|
|
963
|
+
"isSubstitute": json["isSubstitute"] == null ? void 0 : json["isSubstitute"]
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
function PlayerGameStatusToJSON(json) {
|
|
967
|
+
return PlayerGameStatusToJSONTyped(json, false);
|
|
968
|
+
}
|
|
969
|
+
function PlayerGameStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
970
|
+
if (value == null) {
|
|
971
|
+
return value;
|
|
972
|
+
}
|
|
973
|
+
return {
|
|
974
|
+
"isCurrentBatter": value["isCurrentBatter"],
|
|
975
|
+
"isCurrentPitcher": value["isCurrentPitcher"],
|
|
976
|
+
"isOnBench": value["isOnBench"],
|
|
977
|
+
"isSubstitute": value["isSubstitute"]
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
// src/models/Position.ts
|
|
982
|
+
function instanceOfPosition(value) {
|
|
983
|
+
return true;
|
|
984
|
+
}
|
|
985
|
+
function PositionFromJSON(json) {
|
|
986
|
+
return PositionFromJSONTyped(json, false);
|
|
987
|
+
}
|
|
988
|
+
function PositionFromJSONTyped(json, ignoreDiscriminator) {
|
|
989
|
+
if (json == null) {
|
|
990
|
+
return json;
|
|
991
|
+
}
|
|
992
|
+
return {
|
|
993
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
994
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
995
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
996
|
+
"abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"]
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
function PositionToJSON(json) {
|
|
1000
|
+
return PositionToJSONTyped(json, false);
|
|
1001
|
+
}
|
|
1002
|
+
function PositionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1003
|
+
if (value == null) {
|
|
1004
|
+
return value;
|
|
1005
|
+
}
|
|
1006
|
+
return {
|
|
1007
|
+
"code": value["code"],
|
|
1008
|
+
"name": value["name"],
|
|
1009
|
+
"type": value["type"],
|
|
1010
|
+
"abbreviation": value["abbreviation"]
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
// src/models/PlayerPerson.ts
|
|
1015
|
+
function instanceOfPlayerPerson(value) {
|
|
1016
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
1017
|
+
if (!("fullName" in value) || value["fullName"] === void 0) return false;
|
|
1018
|
+
if (!("link" in value) || value["link"] === void 0) return false;
|
|
1019
|
+
if (!("boxscoreName" in value) || value["boxscoreName"] === void 0) return false;
|
|
1020
|
+
return true;
|
|
1021
|
+
}
|
|
1022
|
+
function PlayerPersonFromJSON(json) {
|
|
1023
|
+
return PlayerPersonFromJSONTyped(json, false);
|
|
1024
|
+
}
|
|
1025
|
+
function PlayerPersonFromJSONTyped(json, ignoreDiscriminator) {
|
|
1026
|
+
if (json == null) {
|
|
1027
|
+
return json;
|
|
1028
|
+
}
|
|
1029
|
+
return {
|
|
1030
|
+
"id": json["id"],
|
|
1031
|
+
"fullName": json["fullName"],
|
|
1032
|
+
"link": json["link"],
|
|
1033
|
+
"boxscoreName": json["boxscoreName"]
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
function PlayerPersonToJSON(json) {
|
|
1037
|
+
return PlayerPersonToJSONTyped(json, false);
|
|
1038
|
+
}
|
|
1039
|
+
function PlayerPersonToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1040
|
+
if (value == null) {
|
|
1041
|
+
return value;
|
|
1042
|
+
}
|
|
1043
|
+
return {
|
|
1044
|
+
"id": value["id"],
|
|
1045
|
+
"fullName": value["fullName"],
|
|
1046
|
+
"link": value["link"],
|
|
1047
|
+
"boxscoreName": value["boxscoreName"]
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
// src/models/PlayerPosition.ts
|
|
1052
|
+
function instanceOfPlayerPosition(value) {
|
|
1053
|
+
return true;
|
|
1054
|
+
}
|
|
1055
|
+
function PlayerPositionFromJSON(json) {
|
|
1056
|
+
return PlayerPositionFromJSONTyped(json, false);
|
|
1057
|
+
}
|
|
1058
|
+
function PlayerPositionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1059
|
+
if (json == null) {
|
|
1060
|
+
return json;
|
|
1061
|
+
}
|
|
1062
|
+
return {
|
|
1063
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
1064
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
1065
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
1066
|
+
"abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"]
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
function PlayerPositionToJSON(json) {
|
|
1070
|
+
return PlayerPositionToJSONTyped(json, false);
|
|
1071
|
+
}
|
|
1072
|
+
function PlayerPositionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1073
|
+
if (value == null) {
|
|
1074
|
+
return value;
|
|
1075
|
+
}
|
|
1076
|
+
return {
|
|
1077
|
+
"code": value["code"],
|
|
1078
|
+
"name": value["name"],
|
|
1079
|
+
"type": value["type"],
|
|
1080
|
+
"abbreviation": value["abbreviation"]
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
// src/models/PlayerStatus.ts
|
|
1085
|
+
function instanceOfPlayerStatus(value) {
|
|
1086
|
+
return true;
|
|
1087
|
+
}
|
|
1088
|
+
function PlayerStatusFromJSON(json) {
|
|
1089
|
+
return PlayerStatusFromJSONTyped(json, false);
|
|
1090
|
+
}
|
|
1091
|
+
function PlayerStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
1092
|
+
if (json == null) {
|
|
1093
|
+
return json;
|
|
1094
|
+
}
|
|
1095
|
+
return {
|
|
1096
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
1097
|
+
"description": json["description"] == null ? void 0 : json["description"]
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
function PlayerStatusToJSON(json) {
|
|
1101
|
+
return PlayerStatusToJSONTyped(json, false);
|
|
1102
|
+
}
|
|
1103
|
+
function PlayerStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1104
|
+
if (value == null) {
|
|
1105
|
+
return value;
|
|
1106
|
+
}
|
|
1107
|
+
return {
|
|
1108
|
+
"code": value["code"],
|
|
1109
|
+
"description": value["description"]
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
// src/models/PlayerStats.ts
|
|
1114
|
+
function instanceOfPlayerStats(value) {
|
|
1115
|
+
if (!("batting" in value) || value["batting"] === void 0) return false;
|
|
1116
|
+
if (!("pitching" in value) || value["pitching"] === void 0) return false;
|
|
1117
|
+
if (!("fielding" in value) || value["fielding"] === void 0) return false;
|
|
1118
|
+
return true;
|
|
1119
|
+
}
|
|
1120
|
+
function PlayerStatsFromJSON(json) {
|
|
1121
|
+
return PlayerStatsFromJSONTyped(json, false);
|
|
1122
|
+
}
|
|
1123
|
+
function PlayerStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1124
|
+
if (json == null) {
|
|
1125
|
+
return json;
|
|
1126
|
+
}
|
|
1127
|
+
return {
|
|
1128
|
+
"batting": BattingStatsFromJSON(json["batting"]),
|
|
1129
|
+
"pitching": PitchingStatsFromJSON(json["pitching"]),
|
|
1130
|
+
"fielding": FieldingStatsFromJSON(json["fielding"])
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
function PlayerStatsToJSON(json) {
|
|
1134
|
+
return PlayerStatsToJSONTyped(json, false);
|
|
1135
|
+
}
|
|
1136
|
+
function PlayerStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1137
|
+
if (value == null) {
|
|
1138
|
+
return value;
|
|
1139
|
+
}
|
|
1140
|
+
return {
|
|
1141
|
+
"batting": BattingStatsToJSON(value["batting"]),
|
|
1142
|
+
"pitching": PitchingStatsToJSON(value["pitching"]),
|
|
1143
|
+
"fielding": FieldingStatsToJSON(value["fielding"])
|
|
1144
|
+
};
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
// src/models/Player.ts
|
|
1148
|
+
function instanceOfPlayer(value) {
|
|
1149
|
+
if (!("person" in value) || value["person"] === void 0) return false;
|
|
1150
|
+
if (!("position" in value) || value["position"] === void 0) return false;
|
|
1151
|
+
if (!("stats" in value) || value["stats"] === void 0) return false;
|
|
1152
|
+
if (!("seasonStats" in value) || value["seasonStats"] === void 0) return false;
|
|
1153
|
+
return true;
|
|
1154
|
+
}
|
|
1155
|
+
function PlayerFromJSON(json) {
|
|
1156
|
+
return PlayerFromJSONTyped(json, false);
|
|
1157
|
+
}
|
|
1158
|
+
function PlayerFromJSONTyped(json, ignoreDiscriminator) {
|
|
1159
|
+
if (json == null) {
|
|
1160
|
+
return json;
|
|
1161
|
+
}
|
|
1162
|
+
return {
|
|
1163
|
+
"person": PlayerPersonFromJSON(json["person"]),
|
|
1164
|
+
"jerseyNumber": json["jerseyNumber"] == null ? void 0 : json["jerseyNumber"],
|
|
1165
|
+
"position": PlayerPositionFromJSON(json["position"]),
|
|
1166
|
+
"status": json["status"] == null ? void 0 : PlayerStatusFromJSON(json["status"]),
|
|
1167
|
+
"parentTeamId": json["parentTeamId"] == null ? void 0 : json["parentTeamId"],
|
|
1168
|
+
"battingOrder": json["battingOrder"] == null ? void 0 : json["battingOrder"],
|
|
1169
|
+
"stats": PlayerStatsFromJSON(json["stats"]),
|
|
1170
|
+
"seasonStats": PlayerSeasonStatsFromJSON(json["seasonStats"]),
|
|
1171
|
+
"gameStatus": json["gameStatus"] == null ? void 0 : PlayerGameStatusFromJSON(json["gameStatus"]),
|
|
1172
|
+
"allPositions": json["allPositions"] == null ? void 0 : json["allPositions"].map(PositionFromJSON),
|
|
1173
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
1174
|
+
"gameScore": json["gameScore"] == null ? void 0 : json["gameScore"],
|
|
1175
|
+
"hittingGameScore": json["hittingGameScore"] == null ? void 0 : json["hittingGameScore"]
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
function PlayerToJSON(json) {
|
|
1179
|
+
return PlayerToJSONTyped(json, false);
|
|
1180
|
+
}
|
|
1181
|
+
function PlayerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1182
|
+
if (value == null) {
|
|
1183
|
+
return value;
|
|
1184
|
+
}
|
|
1185
|
+
return {
|
|
1186
|
+
"person": PlayerPersonToJSON(value["person"]),
|
|
1187
|
+
"jerseyNumber": value["jerseyNumber"],
|
|
1188
|
+
"position": PlayerPositionToJSON(value["position"]),
|
|
1189
|
+
"status": PlayerStatusToJSON(value["status"]),
|
|
1190
|
+
"parentTeamId": value["parentTeamId"],
|
|
1191
|
+
"battingOrder": value["battingOrder"],
|
|
1192
|
+
"stats": PlayerStatsToJSON(value["stats"]),
|
|
1193
|
+
"seasonStats": PlayerSeasonStatsToJSON(value["seasonStats"]),
|
|
1194
|
+
"gameStatus": PlayerGameStatusToJSON(value["gameStatus"]),
|
|
1195
|
+
"allPositions": value["allPositions"] == null ? void 0 : value["allPositions"].map(PositionToJSON),
|
|
1196
|
+
"type": value["type"],
|
|
1197
|
+
"gameScore": value["gameScore"],
|
|
1198
|
+
"hittingGameScore": value["hittingGameScore"]
|
|
1199
|
+
};
|
|
1200
|
+
}
|
|
1201
|
+
|
|
398
1202
|
// src/models/LeagueDates.ts
|
|
399
1203
|
function instanceOfLeagueDates(value) {
|
|
400
1204
|
return true;
|
|
@@ -864,8 +1668,78 @@ function TeamToJSONTyped2(value, ignoreDiscriminator = false) {
|
|
|
864
1668
|
};
|
|
865
1669
|
}
|
|
866
1670
|
|
|
1671
|
+
// src/models/TeamStats.ts
|
|
1672
|
+
function instanceOfTeamStats(value) {
|
|
1673
|
+
if (!("batting" in value) || value["batting"] === void 0) return false;
|
|
1674
|
+
if (!("pitching" in value) || value["pitching"] === void 0) return false;
|
|
1675
|
+
if (!("fielding" in value) || value["fielding"] === void 0) return false;
|
|
1676
|
+
return true;
|
|
1677
|
+
}
|
|
1678
|
+
function TeamStatsFromJSON(json) {
|
|
1679
|
+
return TeamStatsFromJSONTyped(json, false);
|
|
1680
|
+
}
|
|
1681
|
+
function TeamStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1682
|
+
if (json == null) {
|
|
1683
|
+
return json;
|
|
1684
|
+
}
|
|
1685
|
+
return {
|
|
1686
|
+
"batting": BattingStatsFromJSON(json["batting"]),
|
|
1687
|
+
"pitching": PitchingStatsFromJSON(json["pitching"]),
|
|
1688
|
+
"fielding": FieldingStatsFromJSON(json["fielding"])
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
function TeamStatsToJSON(json) {
|
|
1692
|
+
return TeamStatsToJSONTyped(json, false);
|
|
1693
|
+
}
|
|
1694
|
+
function TeamStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1695
|
+
if (value == null) {
|
|
1696
|
+
return value;
|
|
1697
|
+
}
|
|
1698
|
+
return {
|
|
1699
|
+
"batting": BattingStatsToJSON(value["batting"]),
|
|
1700
|
+
"pitching": PitchingStatsToJSON(value["pitching"]),
|
|
1701
|
+
"fielding": FieldingStatsToJSON(value["fielding"])
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
// src/models/BoxscoreTeam.ts
|
|
1706
|
+
function instanceOfBoxscoreTeam(value) {
|
|
1707
|
+
if (!("team" in value) || value["team"] === void 0) return false;
|
|
1708
|
+
if (!("teamStats" in value) || value["teamStats"] === void 0) return false;
|
|
1709
|
+
if (!("players" in value) || value["players"] === void 0) return false;
|
|
1710
|
+
return true;
|
|
1711
|
+
}
|
|
1712
|
+
function BoxscoreTeamFromJSON(json) {
|
|
1713
|
+
return BoxscoreTeamFromJSONTyped(json, false);
|
|
1714
|
+
}
|
|
1715
|
+
function BoxscoreTeamFromJSONTyped(json, ignoreDiscriminator) {
|
|
1716
|
+
if (json == null) {
|
|
1717
|
+
return json;
|
|
1718
|
+
}
|
|
1719
|
+
return {
|
|
1720
|
+
"team": TeamFromJSON(json["team"]),
|
|
1721
|
+
"teamStats": TeamStatsFromJSON(json["teamStats"]),
|
|
1722
|
+
"players": mapValues(json["players"], PlayerFromJSON)
|
|
1723
|
+
};
|
|
1724
|
+
}
|
|
1725
|
+
function BoxscoreTeamToJSON(json) {
|
|
1726
|
+
return BoxscoreTeamToJSONTyped(json, false);
|
|
1727
|
+
}
|
|
1728
|
+
function BoxscoreTeamToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1729
|
+
if (value == null) {
|
|
1730
|
+
return value;
|
|
1731
|
+
}
|
|
1732
|
+
return {
|
|
1733
|
+
"team": TeamToJSON(value["team"]),
|
|
1734
|
+
"teamStats": TeamStatsToJSON(value["teamStats"]),
|
|
1735
|
+
"players": mapValues(value["players"], PlayerToJSON)
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
|
|
867
1739
|
// src/models/BoxscoreTeams.ts
|
|
868
1740
|
function instanceOfBoxscoreTeams(value) {
|
|
1741
|
+
if (!("away" in value) || value["away"] === void 0) return false;
|
|
1742
|
+
if (!("home" in value) || value["home"] === void 0) return false;
|
|
869
1743
|
return true;
|
|
870
1744
|
}
|
|
871
1745
|
function BoxscoreTeamsFromJSON(json) {
|
|
@@ -876,8 +1750,8 @@ function BoxscoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
876
1750
|
return json;
|
|
877
1751
|
}
|
|
878
1752
|
return {
|
|
879
|
-
"away":
|
|
880
|
-
"home":
|
|
1753
|
+
"away": BoxscoreTeamFromJSON(json["away"]),
|
|
1754
|
+
"home": BoxscoreTeamFromJSON(json["home"])
|
|
881
1755
|
};
|
|
882
1756
|
}
|
|
883
1757
|
function BoxscoreTeamsToJSON(json) {
|
|
@@ -888,13 +1762,15 @@ function BoxscoreTeamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
888
1762
|
return value;
|
|
889
1763
|
}
|
|
890
1764
|
return {
|
|
891
|
-
"away":
|
|
892
|
-
"home":
|
|
1765
|
+
"away": BoxscoreTeamToJSON(value["away"]),
|
|
1766
|
+
"home": BoxscoreTeamToJSON(value["home"])
|
|
893
1767
|
};
|
|
894
1768
|
}
|
|
895
1769
|
|
|
896
1770
|
// src/models/Boxscore.ts
|
|
897
1771
|
function instanceOfBoxscore(value) {
|
|
1772
|
+
if (!("teams" in value) || value["teams"] === void 0) return false;
|
|
1773
|
+
if (!("officials" in value) || value["officials"] === void 0) return false;
|
|
898
1774
|
return true;
|
|
899
1775
|
}
|
|
900
1776
|
function BoxscoreFromJSON(json) {
|
|
@@ -905,8 +1781,8 @@ function BoxscoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
905
1781
|
return json;
|
|
906
1782
|
}
|
|
907
1783
|
return {
|
|
908
|
-
"teams":
|
|
909
|
-
"officials": json["officials"]
|
|
1784
|
+
"teams": BoxscoreTeamsFromJSON(json["teams"]),
|
|
1785
|
+
"officials": json["officials"].map(GameOfficialFromJSON)
|
|
910
1786
|
};
|
|
911
1787
|
}
|
|
912
1788
|
function BoxscoreToJSON(json) {
|
|
@@ -918,7 +1794,7 @@ function BoxscoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
918
1794
|
}
|
|
919
1795
|
return {
|
|
920
1796
|
"teams": BoxscoreTeamsToJSON(value["teams"]),
|
|
921
|
-
"officials": value["officials"]
|
|
1797
|
+
"officials": value["officials"].map(GameOfficialToJSON)
|
|
922
1798
|
};
|
|
923
1799
|
}
|
|
924
1800
|
|
|
@@ -1758,6 +2634,9 @@ var MlbApi = class extends BaseAPI {
|
|
|
1758
2634
|
if (requestParameters["hydrate"] != null) {
|
|
1759
2635
|
queryParameters["hydrate"] = requestParameters["hydrate"];
|
|
1760
2636
|
}
|
|
2637
|
+
if (requestParameters["leagueIds"] != null) {
|
|
2638
|
+
queryParameters["leagueIds"] = requestParameters["leagueIds"];
|
|
2639
|
+
}
|
|
1761
2640
|
const headerParameters = {};
|
|
1762
2641
|
const response = yield this.request({
|
|
1763
2642
|
path: `/v1/schedule`,
|
|
@@ -1926,12 +2805,21 @@ var MlbApi = class extends BaseAPI {
|
|
|
1926
2805
|
});
|
|
1927
2806
|
}
|
|
1928
2807
|
};
|
|
1929
|
-
export
|
|
2808
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2809
|
+
0 && (module.exports = {
|
|
1930
2810
|
BASE_PATH,
|
|
1931
2811
|
BaseAPI,
|
|
2812
|
+
BattingStatsFromJSON,
|
|
2813
|
+
BattingStatsFromJSONTyped,
|
|
2814
|
+
BattingStatsToJSON,
|
|
2815
|
+
BattingStatsToJSONTyped,
|
|
1932
2816
|
BlobApiResponse,
|
|
1933
2817
|
BoxscoreFromJSON,
|
|
1934
2818
|
BoxscoreFromJSONTyped,
|
|
2819
|
+
BoxscoreTeamFromJSON,
|
|
2820
|
+
BoxscoreTeamFromJSONTyped,
|
|
2821
|
+
BoxscoreTeamToJSON,
|
|
2822
|
+
BoxscoreTeamToJSONTyped,
|
|
1935
2823
|
BoxscoreTeamsFromJSON,
|
|
1936
2824
|
BoxscoreTeamsFromJSONTyped,
|
|
1937
2825
|
BoxscoreTeamsToJSON,
|
|
@@ -1954,6 +2842,10 @@ export {
|
|
|
1954
2842
|
DivisionToJSON,
|
|
1955
2843
|
DivisionToJSONTyped,
|
|
1956
2844
|
FetchError,
|
|
2845
|
+
FieldingStatsFromJSON,
|
|
2846
|
+
FieldingStatsFromJSONTyped,
|
|
2847
|
+
FieldingStatsToJSON,
|
|
2848
|
+
FieldingStatsToJSONTyped,
|
|
1957
2849
|
GameFromJSON,
|
|
1958
2850
|
GameFromJSONTyped,
|
|
1959
2851
|
GameOfficialFromJSON,
|
|
@@ -2018,6 +2910,42 @@ export {
|
|
|
2018
2910
|
OfficialFromJSONTyped,
|
|
2019
2911
|
OfficialToJSON,
|
|
2020
2912
|
OfficialToJSONTyped,
|
|
2913
|
+
PitchingStatsFromJSON,
|
|
2914
|
+
PitchingStatsFromJSONTyped,
|
|
2915
|
+
PitchingStatsToJSON,
|
|
2916
|
+
PitchingStatsToJSONTyped,
|
|
2917
|
+
PlayerFromJSON,
|
|
2918
|
+
PlayerFromJSONTyped,
|
|
2919
|
+
PlayerGameStatusFromJSON,
|
|
2920
|
+
PlayerGameStatusFromJSONTyped,
|
|
2921
|
+
PlayerGameStatusToJSON,
|
|
2922
|
+
PlayerGameStatusToJSONTyped,
|
|
2923
|
+
PlayerPersonFromJSON,
|
|
2924
|
+
PlayerPersonFromJSONTyped,
|
|
2925
|
+
PlayerPersonToJSON,
|
|
2926
|
+
PlayerPersonToJSONTyped,
|
|
2927
|
+
PlayerPositionFromJSON,
|
|
2928
|
+
PlayerPositionFromJSONTyped,
|
|
2929
|
+
PlayerPositionToJSON,
|
|
2930
|
+
PlayerPositionToJSONTyped,
|
|
2931
|
+
PlayerSeasonStatsFromJSON,
|
|
2932
|
+
PlayerSeasonStatsFromJSONTyped,
|
|
2933
|
+
PlayerSeasonStatsToJSON,
|
|
2934
|
+
PlayerSeasonStatsToJSONTyped,
|
|
2935
|
+
PlayerStatsFromJSON,
|
|
2936
|
+
PlayerStatsFromJSONTyped,
|
|
2937
|
+
PlayerStatsToJSON,
|
|
2938
|
+
PlayerStatsToJSONTyped,
|
|
2939
|
+
PlayerStatusFromJSON,
|
|
2940
|
+
PlayerStatusFromJSONTyped,
|
|
2941
|
+
PlayerStatusToJSON,
|
|
2942
|
+
PlayerStatusToJSONTyped,
|
|
2943
|
+
PlayerToJSON,
|
|
2944
|
+
PlayerToJSONTyped,
|
|
2945
|
+
PositionFromJSON,
|
|
2946
|
+
PositionFromJSONTyped,
|
|
2947
|
+
PositionToJSON,
|
|
2948
|
+
PositionToJSONTyped,
|
|
2021
2949
|
RecordFromJSON,
|
|
2022
2950
|
RecordFromJSONTyped,
|
|
2023
2951
|
RecordToJSON,
|
|
@@ -2050,9 +2978,13 @@ export {
|
|
|
2050
2978
|
StreakToJSON,
|
|
2051
2979
|
StreakToJSONTyped,
|
|
2052
2980
|
TeamFromJSON,
|
|
2053
|
-
|
|
2981
|
+
TeamFromJSONTyped,
|
|
2982
|
+
TeamStatsFromJSON,
|
|
2983
|
+
TeamStatsFromJSONTyped,
|
|
2984
|
+
TeamStatsToJSON,
|
|
2985
|
+
TeamStatsToJSONTyped,
|
|
2054
2986
|
TeamToJSON,
|
|
2055
|
-
|
|
2987
|
+
TeamToJSONTyped,
|
|
2056
2988
|
TeamsFromJSON,
|
|
2057
2989
|
TeamsFromJSONTyped,
|
|
2058
2990
|
TeamsToJSON,
|
|
@@ -2064,11 +2996,15 @@ export {
|
|
|
2064
2996
|
VenueToJSONTyped,
|
|
2065
2997
|
VoidApiResponse,
|
|
2066
2998
|
canConsumeForm,
|
|
2999
|
+
exists,
|
|
3000
|
+
instanceOfBattingStats,
|
|
2067
3001
|
instanceOfBoxscore,
|
|
3002
|
+
instanceOfBoxscoreTeam,
|
|
2068
3003
|
instanceOfBoxscoreTeams,
|
|
2069
3004
|
instanceOfDivision,
|
|
2070
3005
|
instanceOfDivisionStandings,
|
|
2071
3006
|
instanceOfDivisionStandingsList,
|
|
3007
|
+
instanceOfFieldingStats,
|
|
2072
3008
|
instanceOfGame,
|
|
2073
3009
|
instanceOfGameOfficial,
|
|
2074
3010
|
instanceOfGameStatus,
|
|
@@ -2084,6 +3020,15 @@ export {
|
|
|
2084
3020
|
instanceOfLinescoreTeam,
|
|
2085
3021
|
instanceOfLinescoreTeams,
|
|
2086
3022
|
instanceOfOfficial,
|
|
3023
|
+
instanceOfPitchingStats,
|
|
3024
|
+
instanceOfPlayer,
|
|
3025
|
+
instanceOfPlayerGameStatus,
|
|
3026
|
+
instanceOfPlayerPerson,
|
|
3027
|
+
instanceOfPlayerPosition,
|
|
3028
|
+
instanceOfPlayerSeasonStats,
|
|
3029
|
+
instanceOfPlayerStats,
|
|
3030
|
+
instanceOfPlayerStatus,
|
|
3031
|
+
instanceOfPosition,
|
|
2087
3032
|
instanceOfRecord,
|
|
2088
3033
|
instanceOfSchedule,
|
|
2089
3034
|
instanceOfScheduleDay,
|
|
@@ -2092,8 +3037,9 @@ export {
|
|
|
2092
3037
|
instanceOfSport,
|
|
2093
3038
|
instanceOfStreak,
|
|
2094
3039
|
instanceOfTeam,
|
|
3040
|
+
instanceOfTeamStats,
|
|
2095
3041
|
instanceOfTeams,
|
|
2096
3042
|
instanceOfVenue,
|
|
2097
3043
|
mapValues,
|
|
2098
3044
|
querystring
|
|
2099
|
-
};
|
|
3045
|
+
});
|