@bp1222/stats-api 0.4.0 → 0.6.0
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.d.ts +3812 -969
- package/dist/index.js +2038 -3007
- package/package.json +20 -10
- package/dist/index.d.mts +0 -969
- package/dist/index.mjs +0 -2970
package/dist/index.d.mts
DELETED
|
@@ -1,969 +0,0 @@
|
|
|
1
|
-
declare const BASE_PATH: string;
|
|
2
|
-
interface ConfigurationParameters {
|
|
3
|
-
basePath?: string;
|
|
4
|
-
fetchApi?: FetchAPI;
|
|
5
|
-
middleware?: Middleware[];
|
|
6
|
-
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
7
|
-
username?: string;
|
|
8
|
-
password?: string;
|
|
9
|
-
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
10
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
11
|
-
headers?: HTTPHeaders;
|
|
12
|
-
credentials?: RequestCredentials;
|
|
13
|
-
}
|
|
14
|
-
declare class Configuration {
|
|
15
|
-
private configuration;
|
|
16
|
-
constructor(configuration?: ConfigurationParameters);
|
|
17
|
-
set config(configuration: Configuration);
|
|
18
|
-
get basePath(): string;
|
|
19
|
-
get fetchApi(): FetchAPI | undefined;
|
|
20
|
-
get middleware(): Middleware[];
|
|
21
|
-
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
22
|
-
get username(): string | undefined;
|
|
23
|
-
get password(): string | undefined;
|
|
24
|
-
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
25
|
-
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
26
|
-
get headers(): HTTPHeaders | undefined;
|
|
27
|
-
get credentials(): RequestCredentials | undefined;
|
|
28
|
-
}
|
|
29
|
-
declare const DefaultConfig: Configuration;
|
|
30
|
-
declare class BaseAPI {
|
|
31
|
-
protected configuration: Configuration;
|
|
32
|
-
private static readonly jsonRegex;
|
|
33
|
-
private middleware;
|
|
34
|
-
constructor(configuration?: Configuration);
|
|
35
|
-
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
36
|
-
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
37
|
-
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
38
|
-
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
39
|
-
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
40
|
-
private createFetchParams;
|
|
41
|
-
private fetchApi;
|
|
42
|
-
private clone;
|
|
43
|
-
}
|
|
44
|
-
declare class ResponseError extends Error {
|
|
45
|
-
response: Response;
|
|
46
|
-
name: "ResponseError";
|
|
47
|
-
constructor(response: Response, msg?: string);
|
|
48
|
-
}
|
|
49
|
-
declare class FetchError extends Error {
|
|
50
|
-
cause: Error;
|
|
51
|
-
name: "FetchError";
|
|
52
|
-
constructor(cause: Error, msg?: string);
|
|
53
|
-
}
|
|
54
|
-
declare class RequiredError extends Error {
|
|
55
|
-
field: string;
|
|
56
|
-
name: "RequiredError";
|
|
57
|
-
constructor(field: string, msg?: string);
|
|
58
|
-
}
|
|
59
|
-
declare const COLLECTION_FORMATS: {
|
|
60
|
-
csv: string;
|
|
61
|
-
ssv: string;
|
|
62
|
-
tsv: string;
|
|
63
|
-
pipes: string;
|
|
64
|
-
};
|
|
65
|
-
type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
66
|
-
type Json = any;
|
|
67
|
-
type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
68
|
-
type HTTPHeaders = {
|
|
69
|
-
[key: string]: string;
|
|
70
|
-
};
|
|
71
|
-
type HTTPQuery = {
|
|
72
|
-
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
73
|
-
};
|
|
74
|
-
type HTTPBody = Json | FormData | URLSearchParams;
|
|
75
|
-
type HTTPRequestInit = {
|
|
76
|
-
headers?: HTTPHeaders;
|
|
77
|
-
method: HTTPMethod;
|
|
78
|
-
credentials?: RequestCredentials;
|
|
79
|
-
body?: HTTPBody;
|
|
80
|
-
};
|
|
81
|
-
type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
82
|
-
type InitOverrideFunction = (requestContext: {
|
|
83
|
-
init: HTTPRequestInit;
|
|
84
|
-
context: RequestOpts;
|
|
85
|
-
}) => Promise<RequestInit>;
|
|
86
|
-
interface FetchParams {
|
|
87
|
-
url: string;
|
|
88
|
-
init: RequestInit;
|
|
89
|
-
}
|
|
90
|
-
interface RequestOpts {
|
|
91
|
-
path: string;
|
|
92
|
-
method: HTTPMethod;
|
|
93
|
-
headers: HTTPHeaders;
|
|
94
|
-
query?: HTTPQuery;
|
|
95
|
-
body?: HTTPBody;
|
|
96
|
-
}
|
|
97
|
-
declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
98
|
-
declare function exists(json: any, key: string): boolean;
|
|
99
|
-
declare function mapValues(data: any, fn: (item: any) => any): {
|
|
100
|
-
[key: string]: any;
|
|
101
|
-
};
|
|
102
|
-
declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
103
|
-
interface Consume {
|
|
104
|
-
contentType: string;
|
|
105
|
-
}
|
|
106
|
-
interface RequestContext {
|
|
107
|
-
fetch: FetchAPI;
|
|
108
|
-
url: string;
|
|
109
|
-
init: RequestInit;
|
|
110
|
-
}
|
|
111
|
-
interface ResponseContext {
|
|
112
|
-
fetch: FetchAPI;
|
|
113
|
-
url: string;
|
|
114
|
-
init: RequestInit;
|
|
115
|
-
response: Response;
|
|
116
|
-
}
|
|
117
|
-
interface ErrorContext {
|
|
118
|
-
fetch: FetchAPI;
|
|
119
|
-
url: string;
|
|
120
|
-
init: RequestInit;
|
|
121
|
-
error: unknown;
|
|
122
|
-
response?: Response;
|
|
123
|
-
}
|
|
124
|
-
interface Middleware {
|
|
125
|
-
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
126
|
-
post?(context: ResponseContext): Promise<Response | void>;
|
|
127
|
-
onError?(context: ErrorContext): Promise<Response | void>;
|
|
128
|
-
}
|
|
129
|
-
interface ApiResponse<T> {
|
|
130
|
-
raw: Response;
|
|
131
|
-
value(): Promise<T>;
|
|
132
|
-
}
|
|
133
|
-
interface ResponseTransformer<T> {
|
|
134
|
-
(json: any): T;
|
|
135
|
-
}
|
|
136
|
-
declare class JSONApiResponse<T> {
|
|
137
|
-
raw: Response;
|
|
138
|
-
private transformer;
|
|
139
|
-
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
140
|
-
value(): Promise<T>;
|
|
141
|
-
}
|
|
142
|
-
declare class VoidApiResponse {
|
|
143
|
-
raw: Response;
|
|
144
|
-
constructor(raw: Response);
|
|
145
|
-
value(): Promise<void>;
|
|
146
|
-
}
|
|
147
|
-
declare class BlobApiResponse {
|
|
148
|
-
raw: Response;
|
|
149
|
-
constructor(raw: Response);
|
|
150
|
-
value(): Promise<Blob>;
|
|
151
|
-
}
|
|
152
|
-
declare class TextApiResponse {
|
|
153
|
-
raw: Response;
|
|
154
|
-
constructor(raw: Response);
|
|
155
|
-
value(): Promise<string>;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface BattingStats {
|
|
159
|
-
flyOuts?: number;
|
|
160
|
-
groundOuts?: number;
|
|
161
|
-
airOuts?: number;
|
|
162
|
-
runs?: number;
|
|
163
|
-
doubles?: number;
|
|
164
|
-
triples?: number;
|
|
165
|
-
homeRuns?: number;
|
|
166
|
-
strikeOuts?: number;
|
|
167
|
-
baseOnBalls?: number;
|
|
168
|
-
intentionalWalks?: number;
|
|
169
|
-
hits?: number;
|
|
170
|
-
hitByPitch?: number;
|
|
171
|
-
avg?: string;
|
|
172
|
-
atBats?: number;
|
|
173
|
-
obp?: string;
|
|
174
|
-
slg?: string;
|
|
175
|
-
ops?: string;
|
|
176
|
-
caughtStealing?: number;
|
|
177
|
-
stolenBases?: number;
|
|
178
|
-
stolenBasePercentage?: string;
|
|
179
|
-
groundIntoDoublePlay?: number;
|
|
180
|
-
groundIntoTriplePlay?: number;
|
|
181
|
-
plateAppearances?: number;
|
|
182
|
-
totalBases?: number;
|
|
183
|
-
rbi?: number;
|
|
184
|
-
leftOnBase?: number;
|
|
185
|
-
sacBunts?: number;
|
|
186
|
-
sacFlies?: number;
|
|
187
|
-
catchersInterference?: number;
|
|
188
|
-
pickoffs?: number;
|
|
189
|
-
atBatsPerHomeRun?: string;
|
|
190
|
-
popOuts?: number;
|
|
191
|
-
lineOuts?: number;
|
|
192
|
-
}
|
|
193
|
-
declare function instanceOfBattingStats(value: object): value is BattingStats;
|
|
194
|
-
declare function BattingStatsFromJSON(json: any): BattingStats;
|
|
195
|
-
declare function BattingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BattingStats;
|
|
196
|
-
declare function BattingStatsToJSON(json: any): BattingStats;
|
|
197
|
-
declare function BattingStatsToJSONTyped(value?: BattingStats | null, ignoreDiscriminator?: boolean): any;
|
|
198
|
-
|
|
199
|
-
interface Official {
|
|
200
|
-
id?: number;
|
|
201
|
-
fullName?: string;
|
|
202
|
-
link?: string;
|
|
203
|
-
}
|
|
204
|
-
declare function instanceOfOfficial(value: object): value is Official;
|
|
205
|
-
declare function OfficialFromJSON(json: any): Official;
|
|
206
|
-
declare function OfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): Official;
|
|
207
|
-
declare function OfficialToJSON(json: any): Official;
|
|
208
|
-
declare function OfficialToJSONTyped(value?: Official | null, ignoreDiscriminator?: boolean): any;
|
|
209
|
-
|
|
210
|
-
interface GameOfficial {
|
|
211
|
-
official?: Official;
|
|
212
|
-
officialType?: string;
|
|
213
|
-
}
|
|
214
|
-
declare function instanceOfGameOfficial(value: object): value is GameOfficial;
|
|
215
|
-
declare function GameOfficialFromJSON(json: any): GameOfficial;
|
|
216
|
-
declare function GameOfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameOfficial;
|
|
217
|
-
declare function GameOfficialToJSON(json: any): GameOfficial;
|
|
218
|
-
declare function GameOfficialToJSONTyped(value?: GameOfficial | null, ignoreDiscriminator?: boolean): any;
|
|
219
|
-
|
|
220
|
-
interface FieldingStats {
|
|
221
|
-
caughtStealing?: number;
|
|
222
|
-
stolenBases?: number;
|
|
223
|
-
stolenBasePercentage?: string;
|
|
224
|
-
assists?: number;
|
|
225
|
-
putOuts?: number;
|
|
226
|
-
errors?: number;
|
|
227
|
-
chances?: number;
|
|
228
|
-
passedBall?: number;
|
|
229
|
-
pickoffs?: number;
|
|
230
|
-
}
|
|
231
|
-
declare function instanceOfFieldingStats(value: object): value is FieldingStats;
|
|
232
|
-
declare function FieldingStatsFromJSON(json: any): FieldingStats;
|
|
233
|
-
declare function FieldingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldingStats;
|
|
234
|
-
declare function FieldingStatsToJSON(json: any): FieldingStats;
|
|
235
|
-
declare function FieldingStatsToJSONTyped(value?: FieldingStats | null, ignoreDiscriminator?: boolean): any;
|
|
236
|
-
|
|
237
|
-
interface PitchingStats {
|
|
238
|
-
flyOuts?: number;
|
|
239
|
-
groundOuts?: number;
|
|
240
|
-
airOuts?: number;
|
|
241
|
-
runs?: number;
|
|
242
|
-
doubles?: number;
|
|
243
|
-
triples?: number;
|
|
244
|
-
homeRuns?: number;
|
|
245
|
-
strikeOuts?: number;
|
|
246
|
-
baseOnBalls?: number;
|
|
247
|
-
intentionalWalks?: number;
|
|
248
|
-
hits?: number;
|
|
249
|
-
hitByPitch?: number;
|
|
250
|
-
atBats?: number;
|
|
251
|
-
obp?: string;
|
|
252
|
-
caughtStealing?: number;
|
|
253
|
-
stolenBases?: number;
|
|
254
|
-
stolenBasePercentage?: string;
|
|
255
|
-
numberOfPitches?: number;
|
|
256
|
-
era?: string;
|
|
257
|
-
inningsPitched?: string;
|
|
258
|
-
saveOpportunities?: number;
|
|
259
|
-
earnedRuns?: number;
|
|
260
|
-
whip?: string;
|
|
261
|
-
battersFaced?: number;
|
|
262
|
-
outs?: number;
|
|
263
|
-
completeGames?: number;
|
|
264
|
-
shutouts?: number;
|
|
265
|
-
pitchesThrown?: number;
|
|
266
|
-
balls?: number;
|
|
267
|
-
strikes?: number;
|
|
268
|
-
strikePercentage?: string;
|
|
269
|
-
hitBatsmen?: number;
|
|
270
|
-
balks?: number;
|
|
271
|
-
wildPitches?: number;
|
|
272
|
-
pickoffs?: number;
|
|
273
|
-
groundOutsToAirouts?: string;
|
|
274
|
-
rbi?: number;
|
|
275
|
-
pitchesPerInning?: string;
|
|
276
|
-
runsScoredPer9?: string;
|
|
277
|
-
homeRunsPer9?: string;
|
|
278
|
-
inheritedRunners?: number;
|
|
279
|
-
inheritedRunnersScored?: number;
|
|
280
|
-
catchersInterference?: number;
|
|
281
|
-
sacBunts?: number;
|
|
282
|
-
sacFlies?: number;
|
|
283
|
-
passedBall?: number;
|
|
284
|
-
popOuts?: number;
|
|
285
|
-
lineOuts?: number;
|
|
286
|
-
}
|
|
287
|
-
declare function instanceOfPitchingStats(value: object): value is PitchingStats;
|
|
288
|
-
declare function PitchingStatsFromJSON(json: any): PitchingStats;
|
|
289
|
-
declare function PitchingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PitchingStats;
|
|
290
|
-
declare function PitchingStatsToJSON(json: any): PitchingStats;
|
|
291
|
-
declare function PitchingStatsToJSONTyped(value?: PitchingStats | null, ignoreDiscriminator?: boolean): any;
|
|
292
|
-
|
|
293
|
-
interface PlayerSeasonStats {
|
|
294
|
-
batting: BattingStats;
|
|
295
|
-
pitching: PitchingStats;
|
|
296
|
-
fielding: FieldingStats;
|
|
297
|
-
}
|
|
298
|
-
declare function instanceOfPlayerSeasonStats(value: object): value is PlayerSeasonStats;
|
|
299
|
-
declare function PlayerSeasonStatsFromJSON(json: any): PlayerSeasonStats;
|
|
300
|
-
declare function PlayerSeasonStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerSeasonStats;
|
|
301
|
-
declare function PlayerSeasonStatsToJSON(json: any): PlayerSeasonStats;
|
|
302
|
-
declare function PlayerSeasonStatsToJSONTyped(value?: PlayerSeasonStats | null, ignoreDiscriminator?: boolean): any;
|
|
303
|
-
|
|
304
|
-
interface PlayerGameStatus {
|
|
305
|
-
isCurrentBatter?: boolean;
|
|
306
|
-
isCurrentPitcher?: boolean;
|
|
307
|
-
isOnBench?: boolean;
|
|
308
|
-
isSubstitute?: boolean;
|
|
309
|
-
}
|
|
310
|
-
declare function instanceOfPlayerGameStatus(value: object): value is PlayerGameStatus;
|
|
311
|
-
declare function PlayerGameStatusFromJSON(json: any): PlayerGameStatus;
|
|
312
|
-
declare function PlayerGameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerGameStatus;
|
|
313
|
-
declare function PlayerGameStatusToJSON(json: any): PlayerGameStatus;
|
|
314
|
-
declare function PlayerGameStatusToJSONTyped(value?: PlayerGameStatus | null, ignoreDiscriminator?: boolean): any;
|
|
315
|
-
|
|
316
|
-
interface Position {
|
|
317
|
-
code?: string;
|
|
318
|
-
name?: string;
|
|
319
|
-
type?: string;
|
|
320
|
-
abbreviation?: string;
|
|
321
|
-
}
|
|
322
|
-
declare function instanceOfPosition(value: object): value is Position;
|
|
323
|
-
declare function PositionFromJSON(json: any): Position;
|
|
324
|
-
declare function PositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Position;
|
|
325
|
-
declare function PositionToJSON(json: any): Position;
|
|
326
|
-
declare function PositionToJSONTyped(value?: Position | null, ignoreDiscriminator?: boolean): any;
|
|
327
|
-
|
|
328
|
-
interface PlayerPerson {
|
|
329
|
-
id: string;
|
|
330
|
-
fullName: string;
|
|
331
|
-
link: string;
|
|
332
|
-
boxscoreName: string;
|
|
333
|
-
}
|
|
334
|
-
declare function instanceOfPlayerPerson(value: object): value is PlayerPerson;
|
|
335
|
-
declare function PlayerPersonFromJSON(json: any): PlayerPerson;
|
|
336
|
-
declare function PlayerPersonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPerson;
|
|
337
|
-
declare function PlayerPersonToJSON(json: any): PlayerPerson;
|
|
338
|
-
declare function PlayerPersonToJSONTyped(value?: PlayerPerson | null, ignoreDiscriminator?: boolean): any;
|
|
339
|
-
|
|
340
|
-
interface PlayerPosition {
|
|
341
|
-
code?: string;
|
|
342
|
-
name?: string;
|
|
343
|
-
type?: string;
|
|
344
|
-
abbreviation?: string;
|
|
345
|
-
}
|
|
346
|
-
declare function instanceOfPlayerPosition(value: object): value is PlayerPosition;
|
|
347
|
-
declare function PlayerPositionFromJSON(json: any): PlayerPosition;
|
|
348
|
-
declare function PlayerPositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPosition;
|
|
349
|
-
declare function PlayerPositionToJSON(json: any): PlayerPosition;
|
|
350
|
-
declare function PlayerPositionToJSONTyped(value?: PlayerPosition | null, ignoreDiscriminator?: boolean): any;
|
|
351
|
-
|
|
352
|
-
interface PlayerStatus {
|
|
353
|
-
code?: string;
|
|
354
|
-
description?: string;
|
|
355
|
-
}
|
|
356
|
-
declare function instanceOfPlayerStatus(value: object): value is PlayerStatus;
|
|
357
|
-
declare function PlayerStatusFromJSON(json: any): PlayerStatus;
|
|
358
|
-
declare function PlayerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStatus;
|
|
359
|
-
declare function PlayerStatusToJSON(json: any): PlayerStatus;
|
|
360
|
-
declare function PlayerStatusToJSONTyped(value?: PlayerStatus | null, ignoreDiscriminator?: boolean): any;
|
|
361
|
-
|
|
362
|
-
interface PlayerStats {
|
|
363
|
-
batting: BattingStats;
|
|
364
|
-
pitching: PitchingStats;
|
|
365
|
-
fielding: FieldingStats;
|
|
366
|
-
}
|
|
367
|
-
declare function instanceOfPlayerStats(value: object): value is PlayerStats;
|
|
368
|
-
declare function PlayerStatsFromJSON(json: any): PlayerStats;
|
|
369
|
-
declare function PlayerStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStats;
|
|
370
|
-
declare function PlayerStatsToJSON(json: any): PlayerStats;
|
|
371
|
-
declare function PlayerStatsToJSONTyped(value?: PlayerStats | null, ignoreDiscriminator?: boolean): any;
|
|
372
|
-
|
|
373
|
-
interface Player {
|
|
374
|
-
person: PlayerPerson;
|
|
375
|
-
jerseyNumber?: string;
|
|
376
|
-
position: PlayerPosition;
|
|
377
|
-
status?: PlayerStatus;
|
|
378
|
-
parentTeamId?: number;
|
|
379
|
-
battingOrder?: number;
|
|
380
|
-
stats: PlayerStats;
|
|
381
|
-
seasonStats: PlayerSeasonStats;
|
|
382
|
-
gameStatus?: PlayerGameStatus;
|
|
383
|
-
allPositions?: Array<Position>;
|
|
384
|
-
type?: string;
|
|
385
|
-
gameScore?: number;
|
|
386
|
-
hittingGameScore?: number;
|
|
387
|
-
}
|
|
388
|
-
declare function instanceOfPlayer(value: object): value is Player;
|
|
389
|
-
declare function PlayerFromJSON(json: any): Player;
|
|
390
|
-
declare function PlayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Player;
|
|
391
|
-
declare function PlayerToJSON(json: any): Player;
|
|
392
|
-
declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscriminator?: boolean): any;
|
|
393
|
-
|
|
394
|
-
interface LeagueDates {
|
|
395
|
-
seasonId?: string;
|
|
396
|
-
preSeasonStartDate?: string;
|
|
397
|
-
preSeasonEndDate?: string;
|
|
398
|
-
seasonStartDate?: string;
|
|
399
|
-
springStartDate?: string;
|
|
400
|
-
springEndDate?: string;
|
|
401
|
-
offseasonStartDate?: string;
|
|
402
|
-
offseasonEndDate?: string;
|
|
403
|
-
seasonLevelGamedayType?: string;
|
|
404
|
-
gameLevelGamedayType?: string;
|
|
405
|
-
}
|
|
406
|
-
declare function instanceOfLeagueDates(value: object): value is LeagueDates;
|
|
407
|
-
declare function LeagueDatesFromJSON(json: any): LeagueDates;
|
|
408
|
-
declare function LeagueDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueDates;
|
|
409
|
-
declare function LeagueDatesToJSON(json: any): LeagueDates;
|
|
410
|
-
declare function LeagueDatesToJSONTyped(value?: LeagueDates | null, ignoreDiscriminator?: boolean): any;
|
|
411
|
-
|
|
412
|
-
interface League {
|
|
413
|
-
id: number;
|
|
414
|
-
name: string;
|
|
415
|
-
link?: string;
|
|
416
|
-
abbreviation?: string;
|
|
417
|
-
nameShort?: string;
|
|
418
|
-
seasonState?: string;
|
|
419
|
-
hasWildCard?: boolean;
|
|
420
|
-
hasSplitSeason?: boolean;
|
|
421
|
-
hasPlayoffPoints?: boolean;
|
|
422
|
-
seasonDateInfo?: LeagueDates;
|
|
423
|
-
season?: string;
|
|
424
|
-
orgCode?: string;
|
|
425
|
-
conferencesInUse?: boolean;
|
|
426
|
-
divisionsInUse?: boolean;
|
|
427
|
-
sortOrder?: number;
|
|
428
|
-
active?: boolean;
|
|
429
|
-
}
|
|
430
|
-
declare function instanceOfLeague(value: object): value is League;
|
|
431
|
-
declare function LeagueFromJSON(json: any): League;
|
|
432
|
-
declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): League;
|
|
433
|
-
declare function LeagueToJSON(json: any): League;
|
|
434
|
-
declare function LeagueToJSONTyped(value?: League | null, ignoreDiscriminator?: boolean): any;
|
|
435
|
-
|
|
436
|
-
interface Sport {
|
|
437
|
-
id: number;
|
|
438
|
-
code?: string;
|
|
439
|
-
link?: string;
|
|
440
|
-
name?: string;
|
|
441
|
-
abbreviation?: string;
|
|
442
|
-
sortOrder?: number;
|
|
443
|
-
activeStatus?: boolean;
|
|
444
|
-
}
|
|
445
|
-
declare function instanceOfSport(value: object): value is Sport;
|
|
446
|
-
declare function SportFromJSON(json: any): Sport;
|
|
447
|
-
declare function SportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sport;
|
|
448
|
-
declare function SportToJSON(json: any): Sport;
|
|
449
|
-
declare function SportToJSONTyped(value?: Sport | null, ignoreDiscriminator?: boolean): any;
|
|
450
|
-
|
|
451
|
-
interface Venue {
|
|
452
|
-
id: number;
|
|
453
|
-
name: string;
|
|
454
|
-
link?: string;
|
|
455
|
-
active?: boolean;
|
|
456
|
-
season?: string;
|
|
457
|
-
}
|
|
458
|
-
declare function instanceOfVenue(value: object): value is Venue;
|
|
459
|
-
declare function VenueFromJSON(json: any): Venue;
|
|
460
|
-
declare function VenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): Venue;
|
|
461
|
-
declare function VenueToJSON(json: any): Venue;
|
|
462
|
-
declare function VenueToJSONTyped(value?: Venue | null, ignoreDiscriminator?: boolean): any;
|
|
463
|
-
|
|
464
|
-
interface Division {
|
|
465
|
-
id: number;
|
|
466
|
-
name: string;
|
|
467
|
-
season?: string;
|
|
468
|
-
nameShort?: string;
|
|
469
|
-
link?: string;
|
|
470
|
-
abbreviation?: string;
|
|
471
|
-
league?: League;
|
|
472
|
-
sport?: Sport;
|
|
473
|
-
hasWildcard?: boolean;
|
|
474
|
-
sortOrder?: number;
|
|
475
|
-
numPlayoffTeams?: number;
|
|
476
|
-
active?: boolean;
|
|
477
|
-
}
|
|
478
|
-
declare function instanceOfDivision(value: object): value is Division;
|
|
479
|
-
declare function DivisionFromJSON(json: any): Division;
|
|
480
|
-
declare function DivisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Division;
|
|
481
|
-
declare function DivisionToJSON(json: any): Division;
|
|
482
|
-
declare function DivisionToJSONTyped(value?: Division | null, ignoreDiscriminator?: boolean): any;
|
|
483
|
-
|
|
484
|
-
interface Streak {
|
|
485
|
-
streakType?: StreakStreakTypeEnum;
|
|
486
|
-
}
|
|
487
|
-
declare enum StreakStreakTypeEnum {
|
|
488
|
-
Losing = "losses",
|
|
489
|
-
Winning = "wins"
|
|
490
|
-
}
|
|
491
|
-
declare function instanceOfStreak(value: object): value is Streak;
|
|
492
|
-
declare function StreakFromJSON(json: any): Streak;
|
|
493
|
-
declare function StreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): Streak;
|
|
494
|
-
declare function StreakToJSON(json: any): Streak;
|
|
495
|
-
declare function StreakToJSONTyped(value?: Streak | null, ignoreDiscriminator?: boolean): any;
|
|
496
|
-
|
|
497
|
-
interface LeagueRecord {
|
|
498
|
-
wins: number;
|
|
499
|
-
losses: number;
|
|
500
|
-
ties?: number;
|
|
501
|
-
pct: string;
|
|
502
|
-
}
|
|
503
|
-
declare function instanceOfLeagueRecord(value: object): value is LeagueRecord;
|
|
504
|
-
declare function LeagueRecordFromJSON(json: any): LeagueRecord;
|
|
505
|
-
declare function LeagueRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueRecord;
|
|
506
|
-
declare function LeagueRecordToJSON(json: any): LeagueRecord;
|
|
507
|
-
declare function LeagueRecordToJSONTyped(value?: LeagueRecord | null, ignoreDiscriminator?: boolean): any;
|
|
508
|
-
|
|
509
|
-
interface Record {
|
|
510
|
-
team: Team;
|
|
511
|
-
season: string;
|
|
512
|
-
streak: Streak;
|
|
513
|
-
divisionRank: string;
|
|
514
|
-
leagueRank: string;
|
|
515
|
-
sportRank?: string;
|
|
516
|
-
gamesPlayed?: number;
|
|
517
|
-
gamesBack: string;
|
|
518
|
-
wildCardGamesBack?: string;
|
|
519
|
-
leagueGamesBack?: string;
|
|
520
|
-
sportGamesBack?: string;
|
|
521
|
-
divisionGamesBack?: string;
|
|
522
|
-
conferenceGamesBack?: string;
|
|
523
|
-
leagueRecord: LeagueRecord;
|
|
524
|
-
lastUpdated?: string;
|
|
525
|
-
runsAllowed?: number;
|
|
526
|
-
runsScored?: number;
|
|
527
|
-
divisionChamp?: boolean;
|
|
528
|
-
divisionLeader?: boolean;
|
|
529
|
-
hasWildcard?: boolean;
|
|
530
|
-
clinched?: boolean;
|
|
531
|
-
eliminationNumber?: string;
|
|
532
|
-
eliminationNumberSport?: string;
|
|
533
|
-
eliminationNumberLeague?: string;
|
|
534
|
-
eliminationNumberDivision?: string;
|
|
535
|
-
eliminationNumberConference?: string;
|
|
536
|
-
wildCardEliminationNumber?: string;
|
|
537
|
-
magicNumber?: string;
|
|
538
|
-
wins: number;
|
|
539
|
-
losses: number;
|
|
540
|
-
runDifferential?: number;
|
|
541
|
-
winningPercentage?: string;
|
|
542
|
-
}
|
|
543
|
-
declare function instanceOfRecord(value: object): value is Record;
|
|
544
|
-
declare function RecordFromJSON(json: any): Record;
|
|
545
|
-
declare function RecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): Record;
|
|
546
|
-
declare function RecordToJSON(json: any): Record;
|
|
547
|
-
declare function RecordToJSONTyped(value?: Record | null, ignoreDiscriminator?: boolean): any;
|
|
548
|
-
|
|
549
|
-
interface Team {
|
|
550
|
-
id: number;
|
|
551
|
-
name: string;
|
|
552
|
-
link?: string;
|
|
553
|
-
allStarStatus?: string;
|
|
554
|
-
season?: number;
|
|
555
|
-
venue?: Venue;
|
|
556
|
-
springVenue?: Venue;
|
|
557
|
-
teamCode?: string;
|
|
558
|
-
fileCode?: string;
|
|
559
|
-
abbreviation?: string;
|
|
560
|
-
teamName?: string;
|
|
561
|
-
locationName?: string;
|
|
562
|
-
firstYearOfPlay?: string;
|
|
563
|
-
league?: League;
|
|
564
|
-
springLeague?: League;
|
|
565
|
-
division?: Division;
|
|
566
|
-
sport?: Sport;
|
|
567
|
-
record?: Record;
|
|
568
|
-
shortName?: string;
|
|
569
|
-
franchiseName?: string;
|
|
570
|
-
clubName?: string;
|
|
571
|
-
active?: boolean;
|
|
572
|
-
}
|
|
573
|
-
declare function instanceOfTeam(value: object): value is Team;
|
|
574
|
-
declare function TeamFromJSON(json: any): Team;
|
|
575
|
-
declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Team;
|
|
576
|
-
declare function TeamToJSON(json: any): Team;
|
|
577
|
-
declare function TeamToJSONTyped(value?: Team | null, ignoreDiscriminator?: boolean): any;
|
|
578
|
-
|
|
579
|
-
interface TeamStats {
|
|
580
|
-
batting: BattingStats;
|
|
581
|
-
pitching: PitchingStats;
|
|
582
|
-
fielding: FieldingStats;
|
|
583
|
-
}
|
|
584
|
-
declare function instanceOfTeamStats(value: object): value is TeamStats;
|
|
585
|
-
declare function TeamStatsFromJSON(json: any): TeamStats;
|
|
586
|
-
declare function TeamStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamStats;
|
|
587
|
-
declare function TeamStatsToJSON(json: any): TeamStats;
|
|
588
|
-
declare function TeamStatsToJSONTyped(value?: TeamStats | null, ignoreDiscriminator?: boolean): any;
|
|
589
|
-
|
|
590
|
-
interface BoxscoreTeam {
|
|
591
|
-
team: Team;
|
|
592
|
-
teamStats: TeamStats;
|
|
593
|
-
players: {
|
|
594
|
-
[key: string]: Player;
|
|
595
|
-
};
|
|
596
|
-
}
|
|
597
|
-
declare function instanceOfBoxscoreTeam(value: object): value is BoxscoreTeam;
|
|
598
|
-
declare function BoxscoreTeamFromJSON(json: any): BoxscoreTeam;
|
|
599
|
-
declare function BoxscoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeam;
|
|
600
|
-
declare function BoxscoreTeamToJSON(json: any): BoxscoreTeam;
|
|
601
|
-
declare function BoxscoreTeamToJSONTyped(value?: BoxscoreTeam | null, ignoreDiscriminator?: boolean): any;
|
|
602
|
-
|
|
603
|
-
interface BoxscoreTeams {
|
|
604
|
-
away: BoxscoreTeam;
|
|
605
|
-
home: BoxscoreTeam;
|
|
606
|
-
}
|
|
607
|
-
declare function instanceOfBoxscoreTeams(value: object): value is BoxscoreTeams;
|
|
608
|
-
declare function BoxscoreTeamsFromJSON(json: any): BoxscoreTeams;
|
|
609
|
-
declare function BoxscoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeams;
|
|
610
|
-
declare function BoxscoreTeamsToJSON(json: any): BoxscoreTeams;
|
|
611
|
-
declare function BoxscoreTeamsToJSONTyped(value?: BoxscoreTeams | null, ignoreDiscriminator?: boolean): any;
|
|
612
|
-
|
|
613
|
-
interface Boxscore {
|
|
614
|
-
teams: BoxscoreTeams;
|
|
615
|
-
officials: Array<GameOfficial>;
|
|
616
|
-
}
|
|
617
|
-
declare function instanceOfBoxscore(value: object): value is Boxscore;
|
|
618
|
-
declare function BoxscoreFromJSON(json: any): Boxscore;
|
|
619
|
-
declare function BoxscoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Boxscore;
|
|
620
|
-
declare function BoxscoreToJSON(json: any): Boxscore;
|
|
621
|
-
declare function BoxscoreToJSONTyped(value?: Boxscore | null, ignoreDiscriminator?: boolean): any;
|
|
622
|
-
|
|
623
|
-
interface DivisionStandings {
|
|
624
|
-
standingsType?: string;
|
|
625
|
-
league: League;
|
|
626
|
-
division: Division;
|
|
627
|
-
sport: Sport;
|
|
628
|
-
lastUpdated?: string;
|
|
629
|
-
teamRecords: Array<Record>;
|
|
630
|
-
}
|
|
631
|
-
declare function instanceOfDivisionStandings(value: object): value is DivisionStandings;
|
|
632
|
-
declare function DivisionStandingsFromJSON(json: any): DivisionStandings;
|
|
633
|
-
declare function DivisionStandingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandings;
|
|
634
|
-
declare function DivisionStandingsToJSON(json: any): DivisionStandings;
|
|
635
|
-
declare function DivisionStandingsToJSONTyped(value?: DivisionStandings | null, ignoreDiscriminator?: boolean): any;
|
|
636
|
-
|
|
637
|
-
interface DivisionStandingsList {
|
|
638
|
-
records: Array<DivisionStandings>;
|
|
639
|
-
}
|
|
640
|
-
declare function instanceOfDivisionStandingsList(value: object): value is DivisionStandingsList;
|
|
641
|
-
declare function DivisionStandingsListFromJSON(json: any): DivisionStandingsList;
|
|
642
|
-
declare function DivisionStandingsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandingsList;
|
|
643
|
-
declare function DivisionStandingsListToJSON(json: any): DivisionStandingsList;
|
|
644
|
-
declare function DivisionStandingsListToJSONTyped(value?: DivisionStandingsList | null, ignoreDiscriminator?: boolean): any;
|
|
645
|
-
|
|
646
|
-
interface Divisions {
|
|
647
|
-
divisions: Array<Division>;
|
|
648
|
-
}
|
|
649
|
-
declare function instanceOfDivisions(value: object): value is Divisions;
|
|
650
|
-
declare function DivisionsFromJSON(json: any): Divisions;
|
|
651
|
-
declare function DivisionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Divisions;
|
|
652
|
-
declare function DivisionsToJSON(json: any): Divisions;
|
|
653
|
-
declare function DivisionsToJSONTyped(value?: Divisions | null, ignoreDiscriminator?: boolean): any;
|
|
654
|
-
|
|
655
|
-
declare enum GameStatusCode {
|
|
656
|
-
Final = "F",
|
|
657
|
-
Postponed = "D",
|
|
658
|
-
Scheduled = "S",
|
|
659
|
-
InProgress = "I",
|
|
660
|
-
Pregame = "P",
|
|
661
|
-
GameOver = "O",
|
|
662
|
-
Canceled = "C"
|
|
663
|
-
}
|
|
664
|
-
declare function instanceOfGameStatusCode(value: any): boolean;
|
|
665
|
-
declare function GameStatusCodeFromJSON(json: any): GameStatusCode;
|
|
666
|
-
declare function GameStatusCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatusCode;
|
|
667
|
-
declare function GameStatusCodeToJSON(value?: GameStatusCode | null): any;
|
|
668
|
-
declare function GameStatusCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameStatusCode;
|
|
669
|
-
|
|
670
|
-
interface GameStatus {
|
|
671
|
-
abstractGameState?: string;
|
|
672
|
-
codedGameState?: GameStatusCode;
|
|
673
|
-
detailedState?: string;
|
|
674
|
-
statusCode?: string;
|
|
675
|
-
startTimeTBD?: boolean;
|
|
676
|
-
abstractGameCode?: string;
|
|
677
|
-
}
|
|
678
|
-
declare function instanceOfGameStatus(value: object): value is GameStatus;
|
|
679
|
-
declare function GameStatusFromJSON(json: any): GameStatus;
|
|
680
|
-
declare function GameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatus;
|
|
681
|
-
declare function GameStatusToJSON(json: any): GameStatus;
|
|
682
|
-
declare function GameStatusToJSONTyped(value?: GameStatus | null, ignoreDiscriminator?: boolean): any;
|
|
683
|
-
|
|
684
|
-
interface GameTeam {
|
|
685
|
-
leagueRecord?: LeagueRecord;
|
|
686
|
-
score: number;
|
|
687
|
-
team: Team;
|
|
688
|
-
isWinner: boolean;
|
|
689
|
-
splitSquad?: boolean;
|
|
690
|
-
seriesNumber?: number;
|
|
691
|
-
}
|
|
692
|
-
declare function instanceOfGameTeam(value: object): value is GameTeam;
|
|
693
|
-
declare function GameTeamFromJSON(json: any): GameTeam;
|
|
694
|
-
declare function GameTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeam;
|
|
695
|
-
declare function GameTeamToJSON(json: any): GameTeam;
|
|
696
|
-
declare function GameTeamToJSONTyped(value?: GameTeam | null, ignoreDiscriminator?: boolean): any;
|
|
697
|
-
|
|
698
|
-
interface GameTeams {
|
|
699
|
-
away: GameTeam;
|
|
700
|
-
home: GameTeam;
|
|
701
|
-
}
|
|
702
|
-
declare function instanceOfGameTeams(value: object): value is GameTeams;
|
|
703
|
-
declare function GameTeamsFromJSON(json: any): GameTeams;
|
|
704
|
-
declare function GameTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeams;
|
|
705
|
-
declare function GameTeamsToJSON(json: any): GameTeams;
|
|
706
|
-
declare function GameTeamsToJSONTyped(value?: GameTeams | null, ignoreDiscriminator?: boolean): any;
|
|
707
|
-
|
|
708
|
-
declare enum GameType {
|
|
709
|
-
Exhibition = "E",
|
|
710
|
-
SpringTraining = "S",
|
|
711
|
-
Regular = "R",
|
|
712
|
-
WildCardSeries = "F",
|
|
713
|
-
DivisionSeries = "D",
|
|
714
|
-
LeagueChampionshipSeries = "L",
|
|
715
|
-
WorldSeries = "W"
|
|
716
|
-
}
|
|
717
|
-
declare function instanceOfGameType(value: any): boolean;
|
|
718
|
-
declare function GameTypeFromJSON(json: any): GameType;
|
|
719
|
-
declare function GameTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameType;
|
|
720
|
-
declare function GameTypeToJSON(value?: GameType | null): any;
|
|
721
|
-
declare function GameTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameType;
|
|
722
|
-
|
|
723
|
-
interface Game {
|
|
724
|
-
gamePk: number;
|
|
725
|
-
gameGuid: string;
|
|
726
|
-
link?: string;
|
|
727
|
-
gameType: GameType;
|
|
728
|
-
season: number;
|
|
729
|
-
gameDate: string;
|
|
730
|
-
officialDate: string;
|
|
731
|
-
rescheduledTo?: number;
|
|
732
|
-
rescheduledToDate?: string;
|
|
733
|
-
rescheduledFrom?: number;
|
|
734
|
-
rescheduledFromDate?: string;
|
|
735
|
-
status: GameStatus;
|
|
736
|
-
teams: GameTeams;
|
|
737
|
-
venue?: Venue;
|
|
738
|
-
isTie?: boolean;
|
|
739
|
-
gameNumber: number;
|
|
740
|
-
publicFacing?: boolean;
|
|
741
|
-
doubleHeader?: string;
|
|
742
|
-
gamedayType?: string;
|
|
743
|
-
tiebreaker?: string;
|
|
744
|
-
calendarEventID?: string;
|
|
745
|
-
seasonDisplay?: string;
|
|
746
|
-
dayNight?: string;
|
|
747
|
-
description?: string;
|
|
748
|
-
scheduledInnings?: number;
|
|
749
|
-
reverseHomeAwayStatus?: boolean;
|
|
750
|
-
inningBreakLength?: number;
|
|
751
|
-
gamesInSeries: number;
|
|
752
|
-
seriesGameNumber: number;
|
|
753
|
-
seriesDescription?: string;
|
|
754
|
-
recordSource?: string;
|
|
755
|
-
ifNecessary?: string;
|
|
756
|
-
ifNecessaryDescription?: string;
|
|
757
|
-
}
|
|
758
|
-
declare function instanceOfGame(value: object): value is Game;
|
|
759
|
-
declare function GameFromJSON(json: any): Game;
|
|
760
|
-
declare function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game;
|
|
761
|
-
declare function GameToJSON(json: any): Game;
|
|
762
|
-
declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator?: boolean): any;
|
|
763
|
-
|
|
764
|
-
interface LinescoreTeam {
|
|
765
|
-
runs: number;
|
|
766
|
-
hits: number;
|
|
767
|
-
errors: number;
|
|
768
|
-
leftOnBase: number;
|
|
769
|
-
}
|
|
770
|
-
declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
|
|
771
|
-
declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
|
|
772
|
-
declare function LinescoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeam;
|
|
773
|
-
declare function LinescoreTeamToJSON(json: any): LinescoreTeam;
|
|
774
|
-
declare function LinescoreTeamToJSONTyped(value?: LinescoreTeam | null, ignoreDiscriminator?: boolean): any;
|
|
775
|
-
|
|
776
|
-
interface Inning {
|
|
777
|
-
num: number;
|
|
778
|
-
ordinalNum: string;
|
|
779
|
-
home: LinescoreTeam;
|
|
780
|
-
away: LinescoreTeam;
|
|
781
|
-
}
|
|
782
|
-
declare function instanceOfInning(value: object): value is Inning;
|
|
783
|
-
declare function InningFromJSON(json: any): Inning;
|
|
784
|
-
declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inning;
|
|
785
|
-
declare function InningToJSON(json: any): Inning;
|
|
786
|
-
declare function InningToJSONTyped(value?: Inning | null, ignoreDiscriminator?: boolean): any;
|
|
787
|
-
|
|
788
|
-
interface Leagues {
|
|
789
|
-
leagues: Array<League>;
|
|
790
|
-
}
|
|
791
|
-
declare function instanceOfLeagues(value: object): value is Leagues;
|
|
792
|
-
declare function LeaguesFromJSON(json: any): Leagues;
|
|
793
|
-
declare function LeaguesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Leagues;
|
|
794
|
-
declare function LeaguesToJSON(json: any): Leagues;
|
|
795
|
-
declare function LeaguesToJSONTyped(value?: Leagues | null, ignoreDiscriminator?: boolean): any;
|
|
796
|
-
|
|
797
|
-
interface LinescoreTeams {
|
|
798
|
-
away: LinescoreTeam;
|
|
799
|
-
home: LinescoreTeam;
|
|
800
|
-
}
|
|
801
|
-
declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
|
|
802
|
-
declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
|
|
803
|
-
declare function LinescoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeams;
|
|
804
|
-
declare function LinescoreTeamsToJSON(json: any): LinescoreTeams;
|
|
805
|
-
declare function LinescoreTeamsToJSONTyped(value?: LinescoreTeams | null, ignoreDiscriminator?: boolean): any;
|
|
806
|
-
|
|
807
|
-
interface Linescore {
|
|
808
|
-
currentInning?: number;
|
|
809
|
-
currentInningOrdinal?: string;
|
|
810
|
-
inningState?: string;
|
|
811
|
-
inningHalf?: string;
|
|
812
|
-
isTopInning?: boolean;
|
|
813
|
-
scheduledInnings?: number;
|
|
814
|
-
innings?: Array<Inning>;
|
|
815
|
-
teams: LinescoreTeams;
|
|
816
|
-
balls: number;
|
|
817
|
-
strikes: number;
|
|
818
|
-
outs: number;
|
|
819
|
-
}
|
|
820
|
-
declare function instanceOfLinescore(value: object): value is Linescore;
|
|
821
|
-
declare function LinescoreFromJSON(json: any): Linescore;
|
|
822
|
-
declare function LinescoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Linescore;
|
|
823
|
-
declare function LinescoreToJSON(json: any): Linescore;
|
|
824
|
-
declare function LinescoreToJSONTyped(value?: Linescore | null, ignoreDiscriminator?: boolean): any;
|
|
825
|
-
|
|
826
|
-
interface ScheduleDay {
|
|
827
|
-
date?: string;
|
|
828
|
-
totalItems?: number;
|
|
829
|
-
totalEvents?: number;
|
|
830
|
-
totalGames?: number;
|
|
831
|
-
totalGamesInProgress?: number;
|
|
832
|
-
games: Array<Game>;
|
|
833
|
-
}
|
|
834
|
-
declare function instanceOfScheduleDay(value: object): value is ScheduleDay;
|
|
835
|
-
declare function ScheduleDayFromJSON(json: any): ScheduleDay;
|
|
836
|
-
declare function ScheduleDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleDay;
|
|
837
|
-
declare function ScheduleDayToJSON(json: any): ScheduleDay;
|
|
838
|
-
declare function ScheduleDayToJSONTyped(value?: ScheduleDay | null, ignoreDiscriminator?: boolean): any;
|
|
839
|
-
|
|
840
|
-
interface Schedule {
|
|
841
|
-
totalItems: number;
|
|
842
|
-
totalEvents: number;
|
|
843
|
-
totalGames: number;
|
|
844
|
-
totalGamesInProgress: number;
|
|
845
|
-
dates: Array<ScheduleDay>;
|
|
846
|
-
}
|
|
847
|
-
declare function instanceOfSchedule(value: object): value is Schedule;
|
|
848
|
-
declare function ScheduleFromJSON(json: any): Schedule;
|
|
849
|
-
declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
|
|
850
|
-
declare function ScheduleToJSON(json: any): Schedule;
|
|
851
|
-
declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscriminator?: boolean): any;
|
|
852
|
-
|
|
853
|
-
interface Season {
|
|
854
|
-
seasonId: string;
|
|
855
|
-
hasWildcard?: boolean;
|
|
856
|
-
preSeasonStartDate?: string;
|
|
857
|
-
preSeasonEndDate?: string;
|
|
858
|
-
seasonStartDate: string;
|
|
859
|
-
seasonEndDate: string;
|
|
860
|
-
springStartDate?: string;
|
|
861
|
-
springEndDate?: string;
|
|
862
|
-
regularSeasonStartDate: string;
|
|
863
|
-
lastDate1stHalf?: string;
|
|
864
|
-
allStartDate?: string;
|
|
865
|
-
firstDate2ndHalf?: string;
|
|
866
|
-
regularSeasonEndDate: string;
|
|
867
|
-
postSeasonStartDate?: string;
|
|
868
|
-
postSeasonEndDate?: string;
|
|
869
|
-
offSeasonStartDate?: string;
|
|
870
|
-
offSeasonEndDate?: string;
|
|
871
|
-
seasonLevelGamedayType?: string;
|
|
872
|
-
gameLevelGamedayType?: string;
|
|
873
|
-
qualifierPlateAppearances?: number;
|
|
874
|
-
qualifierOutsPitched?: number;
|
|
875
|
-
}
|
|
876
|
-
declare function instanceOfSeason(value: object): value is Season;
|
|
877
|
-
declare function SeasonFromJSON(json: any): Season;
|
|
878
|
-
declare function SeasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Season;
|
|
879
|
-
declare function SeasonToJSON(json: any): Season;
|
|
880
|
-
declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscriminator?: boolean): any;
|
|
881
|
-
|
|
882
|
-
interface Seasons {
|
|
883
|
-
seasons: Array<Season>;
|
|
884
|
-
}
|
|
885
|
-
declare function instanceOfSeasons(value: object): value is Seasons;
|
|
886
|
-
declare function SeasonsFromJSON(json: any): Seasons;
|
|
887
|
-
declare function SeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seasons;
|
|
888
|
-
declare function SeasonsToJSON(json: any): Seasons;
|
|
889
|
-
declare function SeasonsToJSONTyped(value?: Seasons | null, ignoreDiscriminator?: boolean): any;
|
|
890
|
-
|
|
891
|
-
interface Teams {
|
|
892
|
-
teams: Array<Team>;
|
|
893
|
-
}
|
|
894
|
-
declare function instanceOfTeams(value: object): value is Teams;
|
|
895
|
-
declare function TeamsFromJSON(json: any): Teams;
|
|
896
|
-
declare function TeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Teams;
|
|
897
|
-
declare function TeamsToJSON(json: any): Teams;
|
|
898
|
-
declare function TeamsToJSONTyped(value?: Teams | null, ignoreDiscriminator?: boolean): any;
|
|
899
|
-
|
|
900
|
-
interface GetAllSeasonsRequest {
|
|
901
|
-
sportId: number;
|
|
902
|
-
}
|
|
903
|
-
interface GetBoxscoreRequest {
|
|
904
|
-
gamePk: number;
|
|
905
|
-
fields?: Array<string>;
|
|
906
|
-
}
|
|
907
|
-
interface GetDivisionsRequest {
|
|
908
|
-
sportId: number;
|
|
909
|
-
season: string;
|
|
910
|
-
}
|
|
911
|
-
interface GetLeaguesRequest {
|
|
912
|
-
sportId: number;
|
|
913
|
-
season: string;
|
|
914
|
-
}
|
|
915
|
-
interface GetLinescoreRequest {
|
|
916
|
-
gamePk: number;
|
|
917
|
-
fields?: Array<string>;
|
|
918
|
-
}
|
|
919
|
-
interface GetScheduleRequest {
|
|
920
|
-
sportId: number;
|
|
921
|
-
gamePk?: number;
|
|
922
|
-
teamId?: number;
|
|
923
|
-
gameTypes?: Array<GameType>;
|
|
924
|
-
startDate?: string;
|
|
925
|
-
endDate?: string;
|
|
926
|
-
fields?: Array<string>;
|
|
927
|
-
hydrate?: string;
|
|
928
|
-
leagueIds?: Array<number>;
|
|
929
|
-
}
|
|
930
|
-
interface GetSeasonRequest {
|
|
931
|
-
sportId: number;
|
|
932
|
-
season: string;
|
|
933
|
-
}
|
|
934
|
-
interface GetStandingsRequest {
|
|
935
|
-
leagueId: number;
|
|
936
|
-
season: string;
|
|
937
|
-
date?: string;
|
|
938
|
-
fields?: Array<string>;
|
|
939
|
-
hydrate?: string;
|
|
940
|
-
}
|
|
941
|
-
interface GetTeamsRequest {
|
|
942
|
-
sportId: number;
|
|
943
|
-
season: string;
|
|
944
|
-
leagueIds?: Array<number>;
|
|
945
|
-
fields?: Array<string>;
|
|
946
|
-
hydrate?: string;
|
|
947
|
-
}
|
|
948
|
-
declare class MlbApi extends BaseAPI {
|
|
949
|
-
getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
|
|
950
|
-
getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
|
|
951
|
-
getBoxscoreRaw(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Boxscore>>;
|
|
952
|
-
getBoxscore(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Boxscore>;
|
|
953
|
-
getDivisionsRaw(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Divisions>>;
|
|
954
|
-
getDivisions(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Divisions>;
|
|
955
|
-
getLeaguesRaw(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Leagues>>;
|
|
956
|
-
getLeagues(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Leagues>;
|
|
957
|
-
getLinescoreRaw(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Linescore>>;
|
|
958
|
-
getLinescore(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Linescore>;
|
|
959
|
-
getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Schedule>>;
|
|
960
|
-
getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Schedule>;
|
|
961
|
-
getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
|
|
962
|
-
getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
|
|
963
|
-
getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<DivisionStandingsList>>;
|
|
964
|
-
getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<DivisionStandingsList>;
|
|
965
|
-
getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Teams>>;
|
|
966
|
-
getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
export { type ApiResponse, BASE_PATH, BaseAPI, type BattingStats, BattingStatsFromJSON, BattingStatsFromJSONTyped, BattingStatsToJSON, BattingStatsToJSONTyped, BlobApiResponse, type Boxscore, BoxscoreFromJSON, BoxscoreFromJSONTyped, type BoxscoreTeam, BoxscoreTeamFromJSON, BoxscoreTeamFromJSONTyped, BoxscoreTeamToJSON, BoxscoreTeamToJSONTyped, type BoxscoreTeams, BoxscoreTeamsFromJSON, BoxscoreTeamsFromJSONTyped, BoxscoreTeamsToJSON, BoxscoreTeamsToJSONTyped, BoxscoreToJSON, BoxscoreToJSONTyped, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsListToJSONTyped, DivisionStandingsToJSON, DivisionStandingsToJSONTyped, DivisionToJSON, DivisionToJSONTyped, type Divisions, DivisionsFromJSON, DivisionsFromJSONTyped, DivisionsToJSON, DivisionsToJSONTyped, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type FieldingStats, FieldingStatsFromJSON, FieldingStatsFromJSONTyped, FieldingStatsToJSON, FieldingStatsToJSONTyped, type Game, GameFromJSON, GameFromJSONTyped, type GameOfficial, GameOfficialFromJSON, GameOfficialFromJSONTyped, GameOfficialToJSON, GameOfficialToJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusCodeToJSONTyped, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, GameStatusToJSONTyped, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, GameTeamToJSONTyped, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameTeamsToJSONTyped, GameToJSON, GameToJSONTyped, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, GameTypeToJSONTyped, type GetAllSeasonsRequest, type GetBoxscoreRequest, type GetDivisionsRequest, type GetLeaguesRequest, type GetLinescoreRequest, type GetScheduleRequest, type GetSeasonRequest, type GetStandingsRequest, type GetTeamsRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type InitOverrideFunction, type Inning, InningFromJSON, InningFromJSONTyped, InningToJSON, InningToJSONTyped, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueDatesToJSONTyped, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueRecordToJSONTyped, LeagueToJSON, LeagueToJSONTyped, type Leagues, LeaguesFromJSON, LeaguesFromJSONTyped, LeaguesToJSON, LeaguesToJSONTyped, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, type LinescoreTeam, LinescoreTeamFromJSON, LinescoreTeamFromJSONTyped, LinescoreTeamToJSON, LinescoreTeamToJSONTyped, type LinescoreTeams, LinescoreTeamsFromJSON, LinescoreTeamsFromJSONTyped, LinescoreTeamsToJSON, LinescoreTeamsToJSONTyped, LinescoreToJSON, LinescoreToJSONTyped, type Middleware, MlbApi, type ModelPropertyNaming, type Official, OfficialFromJSON, OfficialFromJSONTyped, OfficialToJSON, OfficialToJSONTyped, type PitchingStats, PitchingStatsFromJSON, PitchingStatsFromJSONTyped, PitchingStatsToJSON, PitchingStatsToJSONTyped, type Player, PlayerFromJSON, PlayerFromJSONTyped, type PlayerGameStatus, PlayerGameStatusFromJSON, PlayerGameStatusFromJSONTyped, PlayerGameStatusToJSON, PlayerGameStatusToJSONTyped, type PlayerPerson, PlayerPersonFromJSON, PlayerPersonFromJSONTyped, PlayerPersonToJSON, PlayerPersonToJSONTyped, type PlayerPosition, PlayerPositionFromJSON, PlayerPositionFromJSONTyped, PlayerPositionToJSON, PlayerPositionToJSONTyped, type PlayerSeasonStats, PlayerSeasonStatsFromJSON, PlayerSeasonStatsFromJSONTyped, PlayerSeasonStatsToJSON, PlayerSeasonStatsToJSONTyped, type PlayerStats, PlayerStatsFromJSON, PlayerStatsFromJSONTyped, PlayerStatsToJSON, PlayerStatsToJSONTyped, type PlayerStatus, PlayerStatusFromJSON, PlayerStatusFromJSONTyped, PlayerStatusToJSON, PlayerStatusToJSONTyped, PlayerToJSON, PlayerToJSONTyped, type Position, PositionFromJSON, PositionFromJSONTyped, PositionToJSON, PositionToJSONTyped, type Record, RecordFromJSON, RecordFromJSONTyped, RecordToJSON, RecordToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleDayToJSONTyped, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, ScheduleToJSONTyped, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, SeasonToJSONTyped, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, SeasonsToJSONTyped, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, SportToJSONTyped, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, StreakToJSONTyped, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamStats, TeamStatsFromJSON, TeamStatsFromJSONTyped, TeamStatsToJSON, TeamStatsToJSONTyped, TeamToJSON, TeamToJSONTyped, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TeamsToJSONTyped, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VenueToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfBattingStats, instanceOfBoxscore, instanceOfBoxscoreTeam, instanceOfBoxscoreTeams, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfDivisions, instanceOfFieldingStats, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLeagues, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfOfficial, instanceOfPitchingStats, instanceOfPlayer, instanceOfPlayerGameStatus, instanceOfPlayerPerson, instanceOfPlayerPosition, instanceOfPlayerSeasonStats, instanceOfPlayerStats, instanceOfPlayerStatus, instanceOfPosition, instanceOfRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamStats, instanceOfTeams, instanceOfVenue, mapValues, querystring };
|