@bp1222/stats-api 0.0.7 → 0.0.8

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.
Files changed (68) hide show
  1. package/dist/index.d.mts +4 -1574
  2. package/dist/index.d.ts +4 -1574
  3. package/dist/index.js +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/package.json +5 -4
  6. package/.github/workflows/publish.yaml +0 -24
  7. package/Makefile +0 -27
  8. package/openapitools.json +0 -17
  9. package/spec/components/parameters/parameters.yaml +0 -21
  10. package/spec/components/parameters/query/date.yaml +0 -5
  11. package/spec/components/parameters/query/endDate.yaml +0 -5
  12. package/spec/components/parameters/query/fields.yaml +0 -10
  13. package/spec/components/parameters/query/hydrate.yaml +0 -5
  14. package/spec/components/parameters/query/leagueId.yaml +0 -5
  15. package/spec/components/parameters/query/leagueIds.yaml +0 -7
  16. package/spec/components/parameters/query/season.yaml +0 -5
  17. package/spec/components/parameters/query/sportId.yaml +0 -6
  18. package/spec/components/parameters/query/startDate.yaml +0 -5
  19. package/spec/components/parameters/query/teamId.yaml +0 -5
  20. package/spec/components/schemas/division.yaml +0 -32
  21. package/spec/components/schemas/game.yaml +0 -153
  22. package/spec/components/schemas/gameTeam.yaml +0 -22
  23. package/spec/components/schemas/league.yaml +0 -62
  24. package/spec/components/schemas/leagueRecord.yaml +0 -15
  25. package/spec/components/schemas/record.yaml +0 -95
  26. package/spec/components/schemas/schedule.yaml +0 -41
  27. package/spec/components/schemas/schemas.yaml +0 -24
  28. package/spec/components/schemas/season.yaml +0 -53
  29. package/spec/components/schemas/sport.yaml +0 -21
  30. package/spec/components/schemas/standings.yaml +0 -24
  31. package/spec/components/schemas/team.yaml +0 -50
  32. package/spec/components/schemas/venue.yaml +0 -18
  33. package/spec/openapi.yaml +0 -32
  34. package/spec/paths/allSeasons.yaml +0 -23
  35. package/spec/paths/schedule.yaml +0 -20
  36. package/spec/paths/season.yaml +0 -18
  37. package/spec/paths/standings.yaml +0 -27
  38. package/spec/paths/teams.yaml +0 -33
  39. package/src/.openapi-generator/FILES +0 -25
  40. package/src/.openapi-generator/VERSION +0 -1
  41. package/src/.openapi-generator-ignore +0 -23
  42. package/src/apis/MlbApi.ts +0 -427
  43. package/src/apis/index.ts +0 -3
  44. package/src/index.ts +0 -5
  45. package/src/models/MLBDivision.ts +0 -164
  46. package/src/models/MLBGame.ts +0 -371
  47. package/src/models/MLBGameStatus.ts +0 -122
  48. package/src/models/MLBGameTeam.ts +0 -117
  49. package/src/models/MLBGameTeams.ts +0 -77
  50. package/src/models/MLBLeague.ts +0 -190
  51. package/src/models/MLBLeagueDates.ts +0 -132
  52. package/src/models/MLBLeagueRecord.ts +0 -87
  53. package/src/models/MLBRecord.ts +0 -337
  54. package/src/models/MLBSchedule.ts +0 -105
  55. package/src/models/MLBScheduleDay.ts +0 -108
  56. package/src/models/MLBScheduleDays.ts +0 -108
  57. package/src/models/MLBSeason.ts +0 -226
  58. package/src/models/MLBSeasons.ts +0 -67
  59. package/src/models/MLBSport.ts +0 -110
  60. package/src/models/MLBStandings.ts +0 -130
  61. package/src/models/MLBStandingsList.ts +0 -67
  62. package/src/models/MLBStreak.ts +0 -74
  63. package/src/models/MLBTeam.ts +0 -248
  64. package/src/models/MLBTeams.ts +0 -67
  65. package/src/models/MLBVenue.ts +0 -95
  66. package/src/models/index.ts +0 -22
  67. package/src/runtime.ts +0 -426
  68. package/tsconfig.json +0 -108
package/dist/index.d.mts CHANGED
@@ -1,14 +1,3 @@
1
- /**
2
- * MLB StatAPI
3
- * An spec API to consume the MLB Stat API
4
- *
5
- * The version of the OpenAPI document: 0.0.1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
1
  declare const BASE_PATH: string;
13
2
  interface ConfigurationParameters {
14
3
  basePath?: string;
@@ -38,9 +27,6 @@ declare class Configuration {
38
27
  get credentials(): RequestCredentials | undefined;
39
28
  }
40
29
  declare const DefaultConfig: Configuration;
41
- /**
42
- * This is the base class for all generated API classes.
43
- */
44
30
  declare class BaseAPI {
45
31
  protected configuration: Configuration;
46
32
  private static readonly jsonRegex;
@@ -49,24 +35,10 @@ declare class BaseAPI {
49
35
  withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
50
36
  withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
51
37
  withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
52
- /**
53
- * Check if the given MIME is a JSON MIME.
54
- * JSON MIME examples:
55
- * application/json
56
- * application/json; charset=UTF8
57
- * APPLICATION/JSON
58
- * application/vnd.company+json
59
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
60
- * @return True if the given MIME is JSON, false otherwise.
61
- */
62
38
  protected isJsonMime(mime: string | null | undefined): boolean;
63
39
  protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
64
40
  private createFetchParams;
65
41
  private fetchApi;
66
- /**
67
- * Create a shallow clone of `this` by constructing a new instance
68
- * and then shallow cloning data members.
69
- */
70
42
  private clone;
71
43
  }
72
44
  declare class ResponseError extends Error {
@@ -180,506 +152,99 @@ declare class TextApiResponse {
180
152
  value(): Promise<string>;
181
153
  }
182
154
 
183
- /**
184
- * MLB StatAPI
185
- * An spec API to consume the MLB Stat API
186
- *
187
- * The version of the OpenAPI document: 0.0.1
188
- *
189
- *
190
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
191
- * https://openapi-generator.tech
192
- * Do not edit the class manually.
193
- */
194
- /**
195
- *
196
- * @export
197
- * @interface MLBLeagueDates
198
- */
199
155
  interface MLBLeagueDates {
200
- /**
201
- *
202
- * @type {string}
203
- * @memberof MLBLeagueDates
204
- */
205
156
  seasonId?: string;
206
- /**
207
- *
208
- * @type {string}
209
- * @memberof MLBLeagueDates
210
- */
211
157
  preSeasonStartDate?: string;
212
- /**
213
- *
214
- * @type {string}
215
- * @memberof MLBLeagueDates
216
- */
217
158
  preSeasonEndDate?: string;
218
- /**
219
- *
220
- * @type {string}
221
- * @memberof MLBLeagueDates
222
- */
223
159
  seasonStartDate?: string;
224
- /**
225
- *
226
- * @type {string}
227
- * @memberof MLBLeagueDates
228
- */
229
160
  springStartDate?: string;
230
- /**
231
- *
232
- * @type {string}
233
- * @memberof MLBLeagueDates
234
- */
235
161
  springEndDate?: string;
236
- /**
237
- *
238
- * @type {string}
239
- * @memberof MLBLeagueDates
240
- */
241
162
  offseasonStartDate?: string;
242
- /**
243
- *
244
- * @type {string}
245
- * @memberof MLBLeagueDates
246
- */
247
163
  offseasonEndDate?: string;
248
- /**
249
- *
250
- * @type {string}
251
- * @memberof MLBLeagueDates
252
- */
253
164
  seasonLevelGamedayType?: string;
254
- /**
255
- *
256
- * @type {string}
257
- * @memberof MLBLeagueDates
258
- */
259
165
  gameLevelGamedayType?: string;
260
166
  }
261
- /**
262
- * Check if a given object implements the MLBLeagueDates interface.
263
- */
264
167
  declare function instanceOfMLBLeagueDates(value: object): value is MLBLeagueDates;
265
168
  declare function MLBLeagueDatesFromJSON(json: any): MLBLeagueDates;
266
169
  declare function MLBLeagueDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBLeagueDates;
267
170
  declare function MLBLeagueDatesToJSON(value?: MLBLeagueDates | null): any;
268
171
 
269
- /**
270
- * MLB StatAPI
271
- * An spec API to consume the MLB Stat API
272
- *
273
- * The version of the OpenAPI document: 0.0.1
274
- *
275
- *
276
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
277
- * https://openapi-generator.tech
278
- * Do not edit the class manually.
279
- */
280
-
281
- /**
282
- * League
283
- *
284
- * @export
285
- * @interface MLBLeague
286
- */
287
172
  interface MLBLeague {
288
- /**
289
- *
290
- * @type {number}
291
- * @memberof MLBLeague
292
- */
293
173
  id: number;
294
- /**
295
- *
296
- * @type {string}
297
- * @memberof MLBLeague
298
- */
299
174
  name: string;
300
- /**
301
- *
302
- * @type {string}
303
- * @memberof MLBLeague
304
- */
305
175
  link?: string;
306
- /**
307
- *
308
- * @type {string}
309
- * @memberof MLBLeague
310
- */
311
176
  abbreviation?: string;
312
- /**
313
- *
314
- * @type {string}
315
- * @memberof MLBLeague
316
- */
317
177
  nameShort?: string;
318
- /**
319
- *
320
- * @type {string}
321
- * @memberof MLBLeague
322
- */
323
178
  seasonState?: string;
324
- /**
325
- *
326
- * @type {boolean}
327
- * @memberof MLBLeague
328
- */
329
179
  hasWildCard?: boolean;
330
- /**
331
- *
332
- * @type {boolean}
333
- * @memberof MLBLeague
334
- */
335
180
  hasSplitSeason?: boolean;
336
- /**
337
- *
338
- * @type {boolean}
339
- * @memberof MLBLeague
340
- */
341
181
  hasPlayoffPoints?: boolean;
342
- /**
343
- *
344
- * @type {MLBLeagueDates}
345
- * @memberof MLBLeague
346
- */
347
182
  seasonDateInfo?: MLBLeagueDates;
348
- /**
349
- *
350
- * @type {string}
351
- * @memberof MLBLeague
352
- */
353
183
  season?: string;
354
- /**
355
- *
356
- * @type {string}
357
- * @memberof MLBLeague
358
- */
359
184
  orgCode?: string;
360
- /**
361
- *
362
- * @type {boolean}
363
- * @memberof MLBLeague
364
- */
365
185
  conferencesInUse?: boolean;
366
- /**
367
- *
368
- * @type {boolean}
369
- * @memberof MLBLeague
370
- */
371
186
  divisionsInUse?: boolean;
372
- /**
373
- *
374
- * @type {number}
375
- * @memberof MLBLeague
376
- */
377
187
  sortOrder?: number;
378
- /**
379
- *
380
- * @type {boolean}
381
- * @memberof MLBLeague
382
- */
383
188
  active?: boolean;
384
189
  }
385
- /**
386
- * Check if a given object implements the MLBLeague interface.
387
- */
388
190
  declare function instanceOfMLBLeague(value: object): value is MLBLeague;
389
191
  declare function MLBLeagueFromJSON(json: any): MLBLeague;
390
192
  declare function MLBLeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBLeague;
391
193
  declare function MLBLeagueToJSON(value?: MLBLeague | null): any;
392
194
 
393
- /**
394
- * MLB StatAPI
395
- * An spec API to consume the MLB Stat API
396
- *
397
- * The version of the OpenAPI document: 0.0.1
398
- *
399
- *
400
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
401
- * https://openapi-generator.tech
402
- * Do not edit the class manually.
403
- */
404
- /**
405
- * Sport
406
- *
407
- * @export
408
- * @interface MLBSport
409
- */
410
195
  interface MLBSport {
411
- /**
412
- *
413
- * @type {number}
414
- * @memberof MLBSport
415
- */
416
196
  id: number;
417
- /**
418
- *
419
- * @type {string}
420
- * @memberof MLBSport
421
- */
422
197
  code?: string;
423
- /**
424
- *
425
- * @type {string}
426
- * @memberof MLBSport
427
- */
428
198
  link?: string;
429
- /**
430
- *
431
- * @type {string}
432
- * @memberof MLBSport
433
- */
434
199
  name?: string;
435
- /**
436
- *
437
- * @type {string}
438
- * @memberof MLBSport
439
- */
440
200
  abbreviation?: string;
441
- /**
442
- *
443
- * @type {number}
444
- * @memberof MLBSport
445
- */
446
201
  sortOrder?: number;
447
- /**
448
- *
449
- * @type {boolean}
450
- * @memberof MLBSport
451
- */
452
202
  activeStatus?: boolean;
453
203
  }
454
- /**
455
- * Check if a given object implements the MLBSport interface.
456
- */
457
204
  declare function instanceOfMLBSport(value: object): value is MLBSport;
458
205
  declare function MLBSportFromJSON(json: any): MLBSport;
459
206
  declare function MLBSportFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBSport;
460
207
  declare function MLBSportToJSON(value?: MLBSport | null): any;
461
208
 
462
- /**
463
- * MLB StatAPI
464
- * An spec API to consume the MLB Stat API
465
- *
466
- * The version of the OpenAPI document: 0.0.1
467
- *
468
- *
469
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
470
- * https://openapi-generator.tech
471
- * Do not edit the class manually.
472
- */
473
-
474
- /**
475
- * Division
476
- *
477
- * @export
478
- * @interface MLBDivision
479
- */
480
209
  interface MLBDivision {
481
- /**
482
- *
483
- * @type {number}
484
- * @memberof MLBDivision
485
- */
486
210
  id: number;
487
- /**
488
- *
489
- * @type {string}
490
- * @memberof MLBDivision
491
- */
492
211
  name: string;
493
- /**
494
- *
495
- * @type {string}
496
- * @memberof MLBDivision
497
- */
498
212
  season?: string;
499
- /**
500
- *
501
- * @type {string}
502
- * @memberof MLBDivision
503
- */
504
213
  nameShort?: string;
505
- /**
506
- *
507
- * @type {string}
508
- * @memberof MLBDivision
509
- */
510
214
  link?: string;
511
- /**
512
- *
513
- * @type {string}
514
- * @memberof MLBDivision
515
- */
516
215
  abbreviation?: string;
517
- /**
518
- *
519
- * @type {MLBLeague}
520
- * @memberof MLBDivision
521
- */
522
216
  league?: MLBLeague;
523
- /**
524
- *
525
- * @type {MLBSport}
526
- * @memberof MLBDivision
527
- */
528
217
  sport?: MLBSport;
529
- /**
530
- *
531
- * @type {boolean}
532
- * @memberof MLBDivision
533
- */
534
218
  hasWildcard?: boolean;
535
- /**
536
- *
537
- * @type {number}
538
- * @memberof MLBDivision
539
- */
540
219
  sortOrder?: number;
541
- /**
542
- *
543
- * @type {number}
544
- * @memberof MLBDivision
545
- */
546
220
  numPlayoffTeams?: number;
547
- /**
548
- *
549
- * @type {boolean}
550
- * @memberof MLBDivision
551
- */
552
221
  active?: boolean;
553
222
  }
554
- /**
555
- * Check if a given object implements the MLBDivision interface.
556
- */
557
223
  declare function instanceOfMLBDivision(value: object): value is MLBDivision;
558
224
  declare function MLBDivisionFromJSON(json: any): MLBDivision;
559
225
  declare function MLBDivisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBDivision;
560
226
  declare function MLBDivisionToJSON(value?: MLBDivision | null): any;
561
227
 
562
- /**
563
- * MLB StatAPI
564
- * An spec API to consume the MLB Stat API
565
- *
566
- * The version of the OpenAPI document: 0.0.1
567
- *
568
- *
569
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
570
- * https://openapi-generator.tech
571
- * Do not edit the class manually.
572
- */
573
- /**
574
- * Venue
575
- *
576
- * @export
577
- * @interface MLBVenue
578
- */
579
228
  interface MLBVenue {
580
- /**
581
- *
582
- * @type {number}
583
- * @memberof MLBVenue
584
- */
585
229
  id: number;
586
- /**
587
- *
588
- * @type {string}
589
- * @memberof MLBVenue
590
- */
591
230
  name: string;
592
- /**
593
- *
594
- * @type {string}
595
- * @memberof MLBVenue
596
- */
597
231
  link?: string;
598
- /**
599
- *
600
- * @type {boolean}
601
- * @memberof MLBVenue
602
- */
603
232
  active?: boolean;
604
- /**
605
- *
606
- * @type {string}
607
- * @memberof MLBVenue
608
- */
609
233
  season?: string;
610
234
  }
611
- /**
612
- * Check if a given object implements the MLBVenue interface.
613
- */
614
235
  declare function instanceOfMLBVenue(value: object): value is MLBVenue;
615
236
  declare function MLBVenueFromJSON(json: any): MLBVenue;
616
237
  declare function MLBVenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBVenue;
617
238
  declare function MLBVenueToJSON(value?: MLBVenue | null): any;
618
239
 
619
- /**
620
- * MLB StatAPI
621
- * An spec API to consume the MLB Stat API
622
- *
623
- * The version of the OpenAPI document: 0.0.1
624
- *
625
- *
626
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
627
- * https://openapi-generator.tech
628
- * Do not edit the class manually.
629
- */
630
- /**
631
- *
632
- * @export
633
- * @interface MLBGameStatus
634
- */
635
240
  interface MLBGameStatus {
636
- /**
637
- *
638
- * @type {string}
639
- * @memberof MLBGameStatus
640
- */
641
241
  abstractGameState?: string;
642
- /**
643
- * Coded Game State
644
- * * `F` - Final
645
- * * `D` - Delayed/Postponed
646
- * * `S` - Scheduled
647
- * * `I` - In Progress
648
- * * `P` - Pregame
649
- * * `O` - Game Over
650
- *
651
- * @type {string}
652
- * @memberof MLBGameStatus
653
- */
654
242
  codedGameState?: MLBGameStatusCodedGameStateEnum;
655
- /**
656
- *
657
- * @type {string}
658
- * @memberof MLBGameStatus
659
- */
660
243
  detailedState?: string;
661
- /**
662
- *
663
- * @type {string}
664
- * @memberof MLBGameStatus
665
- */
666
244
  statusCode?: string;
667
- /**
668
- *
669
- * @type {boolean}
670
- * @memberof MLBGameStatus
671
- */
672
245
  startTimeTBD?: boolean;
673
- /**
674
- *
675
- * @type {string}
676
- * @memberof MLBGameStatus
677
- */
678
246
  abstractGameCode?: string;
679
247
  }
680
- /**
681
- * @export
682
- */
683
248
  declare const MLBGameStatusCodedGameStateEnum: {
684
249
  readonly Final: "F";
685
250
  readonly Postponed: "D";
@@ -689,550 +254,107 @@ declare const MLBGameStatusCodedGameStateEnum: {
689
254
  readonly GameOver: "O";
690
255
  };
691
256
  type MLBGameStatusCodedGameStateEnum = typeof MLBGameStatusCodedGameStateEnum[keyof typeof MLBGameStatusCodedGameStateEnum];
692
- /**
693
- * Check if a given object implements the MLBGameStatus interface.
694
- */
695
257
  declare function instanceOfMLBGameStatus(value: object): value is MLBGameStatus;
696
258
  declare function MLBGameStatusFromJSON(json: any): MLBGameStatus;
697
259
  declare function MLBGameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBGameStatus;
698
260
  declare function MLBGameStatusToJSON(value?: MLBGameStatus | null): any;
699
261
 
700
- /**
701
- * MLB StatAPI
702
- * An spec API to consume the MLB Stat API
703
- *
704
- * The version of the OpenAPI document: 0.0.1
705
- *
706
- *
707
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
708
- * https://openapi-generator.tech
709
- * Do not edit the class manually.
710
- */
711
-
712
- /**
713
- * Team
714
- *
715
- * @export
716
- * @interface MLBTeam
717
- */
718
262
  interface MLBTeam {
719
- /**
720
- *
721
- * @type {number}
722
- * @memberof MLBTeam
723
- */
724
263
  id: number;
725
- /**
726
- *
727
- * @type {string}
728
- * @memberof MLBTeam
729
- */
730
264
  name: string;
731
- /**
732
- *
733
- * @type {string}
734
- * @memberof MLBTeam
735
- */
736
265
  link?: string;
737
- /**
738
- *
739
- * @type {string}
740
- * @memberof MLBTeam
741
- */
742
266
  allStarStatus?: string;
743
- /**
744
- *
745
- * @type {number}
746
- * @memberof MLBTeam
747
- */
748
267
  season?: number;
749
- /**
750
- *
751
- * @type {MLBVenue}
752
- * @memberof MLBTeam
753
- */
754
268
  venue?: MLBVenue;
755
- /**
756
- *
757
- * @type {MLBVenue}
758
- * @memberof MLBTeam
759
- */
760
269
  springVenue?: MLBVenue;
761
- /**
762
- *
763
- * @type {string}
764
- * @memberof MLBTeam
765
- */
766
270
  teamCode?: string;
767
- /**
768
- *
769
- * @type {string}
770
- * @memberof MLBTeam
771
- */
772
271
  fileCode?: string;
773
- /**
774
- *
775
- * @type {string}
776
- * @memberof MLBTeam
777
- */
778
272
  abbreviation?: string;
779
- /**
780
- *
781
- * @type {string}
782
- * @memberof MLBTeam
783
- */
784
273
  teamName?: string;
785
- /**
786
- *
787
- * @type {string}
788
- * @memberof MLBTeam
789
- */
790
274
  locationName?: string;
791
- /**
792
- *
793
- * @type {string}
794
- * @memberof MLBTeam
795
- */
796
275
  firstYearOfPlay?: string;
797
- /**
798
- *
799
- * @type {MLBLeague}
800
- * @memberof MLBTeam
801
- */
802
276
  league?: MLBLeague;
803
- /**
804
- *
805
- * @type {MLBLeague}
806
- * @memberof MLBTeam
807
- */
808
277
  springLeague?: MLBLeague;
809
- /**
810
- *
811
- * @type {MLBDivision}
812
- * @memberof MLBTeam
813
- */
814
278
  division?: MLBDivision;
815
- /**
816
- *
817
- * @type {MLBSport}
818
- * @memberof MLBTeam
819
- */
820
279
  sport?: MLBSport;
821
- /**
822
- *
823
- * @type {string}
824
- * @memberof MLBTeam
825
- */
826
280
  shortName?: string;
827
- /**
828
- *
829
- * @type {string}
830
- * @memberof MLBTeam
831
- */
832
281
  franchiseName?: string;
833
- /**
834
- *
835
- * @type {string}
836
- * @memberof MLBTeam
837
- */
838
282
  clubName?: string;
839
- /**
840
- *
841
- * @type {boolean}
842
- * @memberof MLBTeam
843
- */
844
283
  active?: boolean;
845
284
  }
846
- /**
847
- * Check if a given object implements the MLBTeam interface.
848
- */
849
285
  declare function instanceOfMLBTeam(value: object): value is MLBTeam;
850
286
  declare function MLBTeamFromJSON(json: any): MLBTeam;
851
287
  declare function MLBTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBTeam;
852
288
  declare function MLBTeamToJSON(value?: MLBTeam | null): any;
853
289
 
854
- /**
855
- * MLB StatAPI
856
- * An spec API to consume the MLB Stat API
857
- *
858
- * The version of the OpenAPI document: 0.0.1
859
- *
860
- *
861
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
862
- * https://openapi-generator.tech
863
- * Do not edit the class manually.
864
- */
865
- /**
866
- *
867
- * @export
868
- * @interface MLBLeagueRecord
869
- */
870
290
  interface MLBLeagueRecord {
871
- /**
872
- *
873
- * @type {number}
874
- * @memberof MLBLeagueRecord
875
- */
876
291
  wins: number;
877
- /**
878
- *
879
- * @type {number}
880
- * @memberof MLBLeagueRecord
881
- */
882
292
  losses: number;
883
- /**
884
- *
885
- * @type {number}
886
- * @memberof MLBLeagueRecord
887
- */
888
293
  ties?: number;
889
- /**
890
- *
891
- * @type {string}
892
- * @memberof MLBLeagueRecord
893
- */
894
294
  pct: string;
895
295
  }
896
- /**
897
- * Check if a given object implements the MLBLeagueRecord interface.
898
- */
899
296
  declare function instanceOfMLBLeagueRecord(value: object): value is MLBLeagueRecord;
900
297
  declare function MLBLeagueRecordFromJSON(json: any): MLBLeagueRecord;
901
298
  declare function MLBLeagueRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBLeagueRecord;
902
299
  declare function MLBLeagueRecordToJSON(value?: MLBLeagueRecord | null): any;
903
300
 
904
- /**
905
- * MLB StatAPI
906
- * An spec API to consume the MLB Stat API
907
- *
908
- * The version of the OpenAPI document: 0.0.1
909
- *
910
- *
911
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
912
- * https://openapi-generator.tech
913
- * Do not edit the class manually.
914
- */
915
-
916
- /**
917
- * Game Team
918
- *
919
- * @export
920
- * @interface MLBGameTeam
921
- */
922
301
  interface MLBGameTeam {
923
- /**
924
- *
925
- * @type {MLBLeagueRecord}
926
- * @memberof MLBGameTeam
927
- */
928
302
  leagueRecord?: MLBLeagueRecord;
929
- /**
930
- *
931
- * @type {number}
932
- * @memberof MLBGameTeam
933
- */
934
303
  score: number;
935
- /**
936
- *
937
- * @type {MLBTeam}
938
- * @memberof MLBGameTeam
939
- */
940
304
  team: MLBTeam;
941
- /**
942
- *
943
- * @type {boolean}
944
- * @memberof MLBGameTeam
945
- */
946
305
  isWinner: boolean;
947
- /**
948
- *
949
- * @type {boolean}
950
- * @memberof MLBGameTeam
951
- */
952
306
  splitSquad?: boolean;
953
- /**
954
- *
955
- * @type {number}
956
- * @memberof MLBGameTeam
957
- */
958
307
  seriesNumber?: number;
959
308
  }
960
- /**
961
- * Check if a given object implements the MLBGameTeam interface.
962
- */
963
309
  declare function instanceOfMLBGameTeam(value: object): value is MLBGameTeam;
964
310
  declare function MLBGameTeamFromJSON(json: any): MLBGameTeam;
965
311
  declare function MLBGameTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBGameTeam;
966
312
  declare function MLBGameTeamToJSON(value?: MLBGameTeam | null): any;
967
313
 
968
- /**
969
- * MLB StatAPI
970
- * An spec API to consume the MLB Stat API
971
- *
972
- * The version of the OpenAPI document: 0.0.1
973
- *
974
- *
975
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
976
- * https://openapi-generator.tech
977
- * Do not edit the class manually.
978
- */
979
-
980
- /**
981
- *
982
- * @export
983
- * @interface MLBGameTeams
984
- */
985
314
  interface MLBGameTeams {
986
- /**
987
- *
988
- * @type {MLBGameTeam}
989
- * @memberof MLBGameTeams
990
- */
991
315
  away: MLBGameTeam;
992
- /**
993
- *
994
- * @type {MLBGameTeam}
995
- * @memberof MLBGameTeams
996
- */
997
316
  home: MLBGameTeam;
998
317
  }
999
- /**
1000
- * Check if a given object implements the MLBGameTeams interface.
1001
- */
1002
318
  declare function instanceOfMLBGameTeams(value: object): value is MLBGameTeams;
1003
319
  declare function MLBGameTeamsFromJSON(json: any): MLBGameTeams;
1004
320
  declare function MLBGameTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBGameTeams;
1005
321
  declare function MLBGameTeamsToJSON(value?: MLBGameTeams | null): any;
1006
322
 
1007
- /**
1008
- * MLB StatAPI
1009
- * An spec API to consume the MLB Stat API
1010
- *
1011
- * The version of the OpenAPI document: 0.0.1
1012
- *
1013
- *
1014
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1015
- * https://openapi-generator.tech
1016
- * Do not edit the class manually.
1017
- */
1018
-
1019
- /**
1020
- * Game Thing
1021
- *
1022
- * @export
1023
- * @interface MLBGame
1024
- */
1025
323
  interface MLBGame {
1026
- /**
1027
- *
1028
- * @type {number}
1029
- * @memberof MLBGame
1030
- */
1031
324
  gamePk: number;
1032
- /**
1033
- *
1034
- * @type {string}
1035
- * @memberof MLBGame
1036
- */
1037
325
  gameGuid: string;
1038
- /**
1039
- *
1040
- * @type {string}
1041
- * @memberof MLBGame
1042
- */
1043
326
  link?: string;
1044
- /**
1045
- * Game Type:
1046
- * * `E` - Exhibition
1047
- * * `S` - Spring Training
1048
- * * `R` - Regular Season
1049
- * * `F` - Wild Card Series
1050
- * * `D` - Division Series
1051
- * * `L` - League Championship Series
1052
- * * `W` - World Series
1053
- *
1054
- * @type {string}
1055
- * @memberof MLBGame
1056
- */
1057
327
  gameType: MLBGameGameTypeEnum;
1058
- /**
1059
- *
1060
- * @type {number}
1061
- * @memberof MLBGame
1062
- */
1063
328
  season: number;
1064
- /**
1065
- *
1066
- * @type {string}
1067
- * @memberof MLBGame
1068
- */
1069
329
  gameDate: string;
1070
- /**
1071
- *
1072
- * @type {string}
1073
- * @memberof MLBGame
1074
- */
1075
330
  officialDate: string;
1076
- /**
1077
- *
1078
- * @type {number}
1079
- * @memberof MLBGame
1080
- */
1081
331
  rescheduledTo?: number;
1082
- /**
1083
- *
1084
- * @type {string}
1085
- * @memberof MLBGame
1086
- */
1087
332
  rescheduledToDate?: string;
1088
- /**
1089
- *
1090
- * @type {number}
1091
- * @memberof MLBGame
1092
- */
1093
333
  rescheduledFrom?: number;
1094
- /**
1095
- *
1096
- * @type {string}
1097
- * @memberof MLBGame
1098
- */
1099
334
  rescheduledFromDate?: string;
1100
- /**
1101
- *
1102
- * @type {MLBGameStatus}
1103
- * @memberof MLBGame
1104
- */
1105
335
  status: MLBGameStatus;
1106
- /**
1107
- *
1108
- * @type {MLBGameTeams}
1109
- * @memberof MLBGame
1110
- */
1111
336
  teams: MLBGameTeams;
1112
- /**
1113
- *
1114
- * @type {MLBVenue}
1115
- * @memberof MLBGame
1116
- */
1117
337
  venue?: MLBVenue;
1118
- /**
1119
- *
1120
- * @type {boolean}
1121
- * @memberof MLBGame
1122
- */
1123
338
  isTie?: boolean;
1124
- /**
1125
- *
1126
- * @type {number}
1127
- * @memberof MLBGame
1128
- */
1129
339
  gameNumber: number;
1130
- /**
1131
- *
1132
- * @type {boolean}
1133
- * @memberof MLBGame
1134
- */
1135
340
  publicFacing?: boolean;
1136
- /**
1137
- *
1138
- * @type {string}
1139
- * @memberof MLBGame
1140
- */
1141
341
  doubleHeader?: string;
1142
- /**
1143
- *
1144
- * @type {string}
1145
- * @memberof MLBGame
1146
- */
1147
342
  gamedayType?: string;
1148
- /**
1149
- *
1150
- * @type {string}
1151
- * @memberof MLBGame
1152
- */
1153
343
  tiebreaker?: string;
1154
- /**
1155
- *
1156
- * @type {string}
1157
- * @memberof MLBGame
1158
- */
1159
344
  calendarEventID?: string;
1160
- /**
1161
- *
1162
- * @type {string}
1163
- * @memberof MLBGame
1164
- */
1165
345
  seasonDisplay?: string;
1166
- /**
1167
- *
1168
- * @type {string}
1169
- * @memberof MLBGame
1170
- */
1171
346
  dayNight?: string;
1172
- /**
1173
- *
1174
- * @type {string}
1175
- * @memberof MLBGame
1176
- */
1177
347
  description?: string;
1178
- /**
1179
- *
1180
- * @type {number}
1181
- * @memberof MLBGame
1182
- */
1183
348
  scheduledInnings?: number;
1184
- /**
1185
- *
1186
- * @type {boolean}
1187
- * @memberof MLBGame
1188
- */
1189
349
  reverseHomeAwayStatus?: boolean;
1190
- /**
1191
- *
1192
- * @type {number}
1193
- * @memberof MLBGame
1194
- */
1195
350
  inningBreakLength?: number;
1196
- /**
1197
- *
1198
- * @type {number}
1199
- * @memberof MLBGame
1200
- */
1201
351
  gamesInSeries: number;
1202
- /**
1203
- *
1204
- * @type {number}
1205
- * @memberof MLBGame
1206
- */
1207
352
  seriesGameNumber: number;
1208
- /**
1209
- *
1210
- * @type {string}
1211
- * @memberof MLBGame
1212
- */
1213
353
  seriesDescription?: string;
1214
- /**
1215
- *
1216
- * @type {string}
1217
- * @memberof MLBGame
1218
- */
1219
354
  recordSource?: string;
1220
- /**
1221
- *
1222
- * @type {string}
1223
- * @memberof MLBGame
1224
- */
1225
355
  ifNecessary?: string;
1226
- /**
1227
- *
1228
- * @type {string}
1229
- * @memberof MLBGame
1230
- */
1231
356
  ifNecessaryDescription?: string;
1232
357
  }
1233
- /**
1234
- * @export
1235
- */
1236
358
  declare const MLBGameGameTypeEnum: {
1237
359
  readonly Exhibition: "E";
1238
360
  readonly SpringTraining: "S";
@@ -1243,726 +365,153 @@ declare const MLBGameGameTypeEnum: {
1243
365
  readonly WorldSeries: "W";
1244
366
  };
1245
367
  type MLBGameGameTypeEnum = typeof MLBGameGameTypeEnum[keyof typeof MLBGameGameTypeEnum];
1246
- /**
1247
- * Check if a given object implements the MLBGame interface.
1248
- */
1249
368
  declare function instanceOfMLBGame(value: object): value is MLBGame;
1250
369
  declare function MLBGameFromJSON(json: any): MLBGame;
1251
370
  declare function MLBGameFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBGame;
1252
371
  declare function MLBGameToJSON(value?: MLBGame | null): any;
1253
372
 
1254
- /**
1255
- * MLB StatAPI
1256
- * An spec API to consume the MLB Stat API
1257
- *
1258
- * The version of the OpenAPI document: 0.0.1
1259
- *
1260
- *
1261
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1262
- * https://openapi-generator.tech
1263
- * Do not edit the class manually.
1264
- */
1265
- /**
1266
- *
1267
- * @export
1268
- * @interface MLBStreak
1269
- */
1270
373
  interface MLBStreak {
1271
- /**
1272
- * Streak Type:
1273
- * * Losing Streak
1274
- * * Winning Streak
1275
- *
1276
- * @type {string}
1277
- * @memberof MLBStreak
1278
- */
1279
374
  streakType?: MLBStreakStreakTypeEnum;
1280
375
  }
1281
- /**
1282
- * @export
1283
- */
1284
376
  declare const MLBStreakStreakTypeEnum: {
1285
377
  readonly Losing: "losses";
1286
378
  readonly Winning: "wins";
1287
379
  };
1288
380
  type MLBStreakStreakTypeEnum = typeof MLBStreakStreakTypeEnum[keyof typeof MLBStreakStreakTypeEnum];
1289
- /**
1290
- * Check if a given object implements the MLBStreak interface.
1291
- */
1292
381
  declare function instanceOfMLBStreak(value: object): value is MLBStreak;
1293
382
  declare function MLBStreakFromJSON(json: any): MLBStreak;
1294
383
  declare function MLBStreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBStreak;
1295
384
  declare function MLBStreakToJSON(value?: MLBStreak | null): any;
1296
385
 
1297
- /**
1298
- * MLB StatAPI
1299
- * An spec API to consume the MLB Stat API
1300
- *
1301
- * The version of the OpenAPI document: 0.0.1
1302
- *
1303
- *
1304
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1305
- * https://openapi-generator.tech
1306
- * Do not edit the class manually.
1307
- */
1308
-
1309
- /**
1310
- * Record
1311
- *
1312
- * @export
1313
- * @interface MLBRecord
1314
- */
1315
386
  interface MLBRecord {
1316
- /**
1317
- *
1318
- * @type {MLBTeam}
1319
- * @memberof MLBRecord
1320
- */
1321
387
  team: MLBTeam;
1322
- /**
1323
- *
1324
- * @type {string}
1325
- * @memberof MLBRecord
1326
- */
1327
388
  season: string;
1328
- /**
1329
- *
1330
- * @type {MLBStreak}
1331
- * @memberof MLBRecord
1332
- */
1333
389
  streak: MLBStreak;
1334
- /**
1335
- *
1336
- * @type {string}
1337
- * @memberof MLBRecord
1338
- */
1339
390
  divisionRank: string;
1340
- /**
1341
- *
1342
- * @type {string}
1343
- * @memberof MLBRecord
1344
- */
1345
391
  leagueRank: string;
1346
- /**
1347
- *
1348
- * @type {string}
1349
- * @memberof MLBRecord
1350
- */
1351
392
  sportRank?: string;
1352
- /**
1353
- *
1354
- * @type {number}
1355
- * @memberof MLBRecord
1356
- */
1357
393
  gamesPlayed?: number;
1358
- /**
1359
- *
1360
- * @type {string}
1361
- * @memberof MLBRecord
1362
- */
1363
394
  gamesBack: string;
1364
- /**
1365
- *
1366
- * @type {string}
1367
- * @memberof MLBRecord
1368
- */
1369
395
  wildCardGamesBack?: string;
1370
- /**
1371
- *
1372
- * @type {string}
1373
- * @memberof MLBRecord
1374
- */
1375
396
  leagueGamesBack?: string;
1376
- /**
1377
- *
1378
- * @type {string}
1379
- * @memberof MLBRecord
1380
- */
1381
397
  sportGamesBack?: string;
1382
- /**
1383
- *
1384
- * @type {string}
1385
- * @memberof MLBRecord
1386
- */
1387
398
  divisionGamesBack?: string;
1388
- /**
1389
- *
1390
- * @type {string}
1391
- * @memberof MLBRecord
1392
- */
1393
399
  conferenceGamesBack?: string;
1394
- /**
1395
- *
1396
- * @type {MLBLeagueRecord}
1397
- * @memberof MLBRecord
1398
- */
1399
400
  leagueRecord: MLBLeagueRecord;
1400
- /**
1401
- *
1402
- * @type {string}
1403
- * @memberof MLBRecord
1404
- */
1405
401
  lastUpdated?: string;
1406
- /**
1407
- *
1408
- * @type {number}
1409
- * @memberof MLBRecord
1410
- */
1411
402
  runsAllowed?: number;
1412
- /**
1413
- *
1414
- * @type {number}
1415
- * @memberof MLBRecord
1416
- */
1417
403
  runsScored?: number;
1418
- /**
1419
- *
1420
- * @type {boolean}
1421
- * @memberof MLBRecord
1422
- */
1423
404
  divisionChamp?: boolean;
1424
- /**
1425
- *
1426
- * @type {boolean}
1427
- * @memberof MLBRecord
1428
- */
1429
405
  divisionLeader?: boolean;
1430
- /**
1431
- *
1432
- * @type {boolean}
1433
- * @memberof MLBRecord
1434
- */
1435
406
  hasWildcard?: boolean;
1436
- /**
1437
- *
1438
- * @type {boolean}
1439
- * @memberof MLBRecord
1440
- */
1441
407
  clinched?: boolean;
1442
- /**
1443
- *
1444
- * @type {string}
1445
- * @memberof MLBRecord
1446
- */
1447
408
  eliminationNumber?: string;
1448
- /**
1449
- *
1450
- * @type {string}
1451
- * @memberof MLBRecord
1452
- */
1453
409
  eliminationNumberSport?: string;
1454
- /**
1455
- *
1456
- * @type {string}
1457
- * @memberof MLBRecord
1458
- */
1459
410
  eliminationNumberLeague?: string;
1460
- /**
1461
- *
1462
- * @type {string}
1463
- * @memberof MLBRecord
1464
- */
1465
411
  eliminationNumberDivision?: string;
1466
- /**
1467
- *
1468
- * @type {string}
1469
- * @memberof MLBRecord
1470
- */
1471
412
  eliminationNumberConference?: string;
1472
- /**
1473
- *
1474
- * @type {string}
1475
- * @memberof MLBRecord
1476
- */
1477
413
  wildCardEliminationNumber?: string;
1478
- /**
1479
- *
1480
- * @type {string}
1481
- * @memberof MLBRecord
1482
- */
1483
414
  magicNumber?: string;
1484
- /**
1485
- *
1486
- * @type {number}
1487
- * @memberof MLBRecord
1488
- */
1489
415
  wins: number;
1490
- /**
1491
- *
1492
- * @type {number}
1493
- * @memberof MLBRecord
1494
- */
1495
416
  losses: number;
1496
- /**
1497
- *
1498
- * @type {number}
1499
- * @memberof MLBRecord
1500
- */
1501
417
  runDifferential?: number;
1502
- /**
1503
- *
1504
- * @type {string}
1505
- * @memberof MLBRecord
1506
- */
1507
418
  winningPercentage?: string;
1508
419
  }
1509
- /**
1510
- * Check if a given object implements the MLBRecord interface.
1511
- */
1512
420
  declare function instanceOfMLBRecord(value: object): value is MLBRecord;
1513
421
  declare function MLBRecordFromJSON(json: any): MLBRecord;
1514
422
  declare function MLBRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBRecord;
1515
423
  declare function MLBRecordToJSON(value?: MLBRecord | null): any;
1516
424
 
1517
- /**
1518
- * MLB StatAPI
1519
- * An spec API to consume the MLB Stat API
1520
- *
1521
- * The version of the OpenAPI document: 0.0.1
1522
- *
1523
- *
1524
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1525
- * https://openapi-generator.tech
1526
- * Do not edit the class manually.
1527
- */
1528
-
1529
- /**
1530
- *
1531
- * @export
1532
- * @interface MLBScheduleDay
1533
- */
1534
425
  interface MLBScheduleDay {
1535
- /**
1536
- *
1537
- * @type {string}
1538
- * @memberof MLBScheduleDay
1539
- */
1540
426
  date?: string;
1541
- /**
1542
- *
1543
- * @type {number}
1544
- * @memberof MLBScheduleDay
1545
- */
1546
427
  totalItems?: number;
1547
- /**
1548
- *
1549
- * @type {number}
1550
- * @memberof MLBScheduleDay
1551
- */
1552
428
  totalEvents?: number;
1553
- /**
1554
- *
1555
- * @type {number}
1556
- * @memberof MLBScheduleDay
1557
- */
1558
429
  totalGames?: number;
1559
- /**
1560
- *
1561
- * @type {number}
1562
- * @memberof MLBScheduleDay
1563
- */
1564
430
  totalGamesInProgress?: number;
1565
- /**
1566
- *
1567
- * @type {Array<MLBGame>}
1568
- * @memberof MLBScheduleDay
1569
- */
1570
431
  games: Array<MLBGame>;
1571
432
  }
1572
- /**
1573
- * Check if a given object implements the MLBScheduleDay interface.
1574
- */
1575
433
  declare function instanceOfMLBScheduleDay(value: object): value is MLBScheduleDay;
1576
434
  declare function MLBScheduleDayFromJSON(json: any): MLBScheduleDay;
1577
435
  declare function MLBScheduleDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBScheduleDay;
1578
436
  declare function MLBScheduleDayToJSON(value?: MLBScheduleDay | null): any;
1579
437
 
1580
- /**
1581
- * MLB StatAPI
1582
- * An spec API to consume the MLB Stat API
1583
- *
1584
- * The version of the OpenAPI document: 0.0.1
1585
- *
1586
- *
1587
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1588
- * https://openapi-generator.tech
1589
- * Do not edit the class manually.
1590
- */
1591
-
1592
- /**
1593
- * Schedule
1594
- *
1595
- * @export
1596
- * @interface MLBSchedule
1597
- */
1598
438
  interface MLBSchedule {
1599
- /**
1600
- *
1601
- * @type {number}
1602
- * @memberof MLBSchedule
1603
- */
1604
439
  totalItems: number;
1605
- /**
1606
- *
1607
- * @type {number}
1608
- * @memberof MLBSchedule
1609
- */
1610
440
  totalEvents: number;
1611
- /**
1612
- *
1613
- * @type {number}
1614
- * @memberof MLBSchedule
1615
- */
1616
441
  totalGames: number;
1617
- /**
1618
- *
1619
- * @type {number}
1620
- * @memberof MLBSchedule
1621
- */
1622
442
  totalGamesInProgress: number;
1623
- /**
1624
- *
1625
- * @type {Array<MLBScheduleDay>}
1626
- * @memberof MLBSchedule
1627
- */
1628
443
  dates: Array<MLBScheduleDay>;
1629
444
  }
1630
- /**
1631
- * Check if a given object implements the MLBSchedule interface.
1632
- */
1633
445
  declare function instanceOfMLBSchedule(value: object): value is MLBSchedule;
1634
446
  declare function MLBScheduleFromJSON(json: any): MLBSchedule;
1635
447
  declare function MLBScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBSchedule;
1636
448
  declare function MLBScheduleToJSON(value?: MLBSchedule | null): any;
1637
449
 
1638
- /**
1639
- * MLB StatAPI
1640
- * An spec API to consume the MLB Stat API
1641
- *
1642
- * The version of the OpenAPI document: 0.0.1
1643
- *
1644
- *
1645
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1646
- * https://openapi-generator.tech
1647
- * Do not edit the class manually.
1648
- */
1649
- /**
1650
- * Season
1651
- *
1652
- * @export
1653
- * @interface MLBSeason
1654
- */
1655
450
  interface MLBSeason {
1656
- /**
1657
- *
1658
- * @type {string}
1659
- * @memberof MLBSeason
1660
- */
1661
451
  seasonId: string;
1662
- /**
1663
- *
1664
- * @type {boolean}
1665
- * @memberof MLBSeason
1666
- */
1667
452
  hasWildcard?: boolean;
1668
- /**
1669
- *
1670
- * @type {string}
1671
- * @memberof MLBSeason
1672
- */
1673
453
  preSeasonStartDate?: string;
1674
- /**
1675
- *
1676
- * @type {string}
1677
- * @memberof MLBSeason
1678
- */
1679
454
  preSeasonEndDate?: string;
1680
- /**
1681
- *
1682
- * @type {string}
1683
- * @memberof MLBSeason
1684
- */
1685
455
  seasonStartDate: string;
1686
- /**
1687
- *
1688
- * @type {string}
1689
- * @memberof MLBSeason
1690
- */
1691
456
  seasonEndDate: string;
1692
- /**
1693
- *
1694
- * @type {string}
1695
- * @memberof MLBSeason
1696
- */
1697
457
  springStartDate?: string;
1698
- /**
1699
- *
1700
- * @type {string}
1701
- * @memberof MLBSeason
1702
- */
1703
458
  springEndDate?: string;
1704
- /**
1705
- *
1706
- * @type {string}
1707
- * @memberof MLBSeason
1708
- */
1709
459
  regularSeasonStartDate: string;
1710
- /**
1711
- *
1712
- * @type {string}
1713
- * @memberof MLBSeason
1714
- */
1715
460
  lastDate1stHalf?: string;
1716
- /**
1717
- *
1718
- * @type {string}
1719
- * @memberof MLBSeason
1720
- */
1721
461
  allStartDate?: string;
1722
- /**
1723
- *
1724
- * @type {string}
1725
- * @memberof MLBSeason
1726
- */
1727
462
  firstDate2ndHalf?: string;
1728
- /**
1729
- *
1730
- * @type {string}
1731
- * @memberof MLBSeason
1732
- */
1733
463
  regularSeasonEndDate: string;
1734
- /**
1735
- *
1736
- * @type {string}
1737
- * @memberof MLBSeason
1738
- */
1739
464
  postSeasonStartDate?: string;
1740
- /**
1741
- *
1742
- * @type {string}
1743
- * @memberof MLBSeason
1744
- */
1745
465
  postSeasonEndDate?: string;
1746
- /**
1747
- *
1748
- * @type {string}
1749
- * @memberof MLBSeason
1750
- */
1751
466
  offSeasonStartDate?: string;
1752
- /**
1753
- *
1754
- * @type {string}
1755
- * @memberof MLBSeason
1756
- */
1757
467
  offSeasonEndDate?: string;
1758
- /**
1759
- *
1760
- * @type {string}
1761
- * @memberof MLBSeason
1762
- */
1763
468
  seasonLevelGamedayType?: string;
1764
- /**
1765
- *
1766
- * @type {string}
1767
- * @memberof MLBSeason
1768
- */
1769
469
  gameLevelGamedayType?: string;
1770
- /**
1771
- *
1772
- * @type {number}
1773
- * @memberof MLBSeason
1774
- */
1775
470
  qualifierPlateAppearances?: number;
1776
- /**
1777
- *
1778
- * @type {number}
1779
- * @memberof MLBSeason
1780
- */
1781
471
  qualifierOutsPitched?: number;
1782
472
  }
1783
- /**
1784
- * Check if a given object implements the MLBSeason interface.
1785
- */
1786
473
  declare function instanceOfMLBSeason(value: object): value is MLBSeason;
1787
474
  declare function MLBSeasonFromJSON(json: any): MLBSeason;
1788
475
  declare function MLBSeasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBSeason;
1789
476
  declare function MLBSeasonToJSON(value?: MLBSeason | null): any;
1790
477
 
1791
- /**
1792
- * MLB StatAPI
1793
- * An spec API to consume the MLB Stat API
1794
- *
1795
- * The version of the OpenAPI document: 0.0.1
1796
- *
1797
- *
1798
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1799
- * https://openapi-generator.tech
1800
- * Do not edit the class manually.
1801
- */
1802
-
1803
- /**
1804
- *
1805
- * @export
1806
- * @interface MLBSeasons
1807
- */
1808
478
  interface MLBSeasons {
1809
- /**
1810
- *
1811
- * @type {Array<MLBSeason>}
1812
- * @memberof MLBSeasons
1813
- */
1814
479
  seasons?: Array<MLBSeason>;
1815
480
  }
1816
- /**
1817
- * Check if a given object implements the MLBSeasons interface.
1818
- */
1819
481
  declare function instanceOfMLBSeasons(value: object): value is MLBSeasons;
1820
482
  declare function MLBSeasonsFromJSON(json: any): MLBSeasons;
1821
483
  declare function MLBSeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBSeasons;
1822
484
  declare function MLBSeasonsToJSON(value?: MLBSeasons | null): any;
1823
485
 
1824
- /**
1825
- * MLB StatAPI
1826
- * An spec API to consume the MLB Stat API
1827
- *
1828
- * The version of the OpenAPI document: 0.0.1
1829
- *
1830
- *
1831
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1832
- * https://openapi-generator.tech
1833
- * Do not edit the class manually.
1834
- */
1835
-
1836
- /**
1837
- * Standings
1838
- *
1839
- * @export
1840
- * @interface MLBStandings
1841
- */
1842
486
  interface MLBStandings {
1843
- /**
1844
- *
1845
- * @type {string}
1846
- * @memberof MLBStandings
1847
- */
1848
487
  standingsType?: string;
1849
- /**
1850
- *
1851
- * @type {MLBLeague}
1852
- * @memberof MLBStandings
1853
- */
1854
488
  league: MLBLeague;
1855
- /**
1856
- *
1857
- * @type {MLBDivision}
1858
- * @memberof MLBStandings
1859
- */
1860
489
  division: MLBDivision;
1861
- /**
1862
- *
1863
- * @type {MLBSport}
1864
- * @memberof MLBStandings
1865
- */
1866
490
  sport: MLBSport;
1867
- /**
1868
- *
1869
- * @type {string}
1870
- * @memberof MLBStandings
1871
- */
1872
491
  lastUpdated?: string;
1873
- /**
1874
- *
1875
- * @type {Array<MLBRecord>}
1876
- * @memberof MLBStandings
1877
- */
1878
492
  teamRecords: Array<MLBRecord>;
1879
493
  }
1880
- /**
1881
- * Check if a given object implements the MLBStandings interface.
1882
- */
1883
494
  declare function instanceOfMLBStandings(value: object): value is MLBStandings;
1884
495
  declare function MLBStandingsFromJSON(json: any): MLBStandings;
1885
496
  declare function MLBStandingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBStandings;
1886
497
  declare function MLBStandingsToJSON(value?: MLBStandings | null): any;
1887
498
 
1888
- /**
1889
- * MLB StatAPI
1890
- * An spec API to consume the MLB Stat API
1891
- *
1892
- * The version of the OpenAPI document: 0.0.1
1893
- *
1894
- *
1895
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1896
- * https://openapi-generator.tech
1897
- * Do not edit the class manually.
1898
- */
1899
-
1900
- /**
1901
- *
1902
- * @export
1903
- * @interface MLBStandingsList
1904
- */
1905
499
  interface MLBStandingsList {
1906
- /**
1907
- *
1908
- * @type {Array<MLBStandings>}
1909
- * @memberof MLBStandingsList
1910
- */
1911
500
  records?: Array<MLBStandings>;
1912
501
  }
1913
- /**
1914
- * Check if a given object implements the MLBStandingsList interface.
1915
- */
1916
502
  declare function instanceOfMLBStandingsList(value: object): value is MLBStandingsList;
1917
503
  declare function MLBStandingsListFromJSON(json: any): MLBStandingsList;
1918
504
  declare function MLBStandingsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBStandingsList;
1919
505
  declare function MLBStandingsListToJSON(value?: MLBStandingsList | null): any;
1920
506
 
1921
- /**
1922
- * MLB StatAPI
1923
- * An spec API to consume the MLB Stat API
1924
- *
1925
- * The version of the OpenAPI document: 0.0.1
1926
- *
1927
- *
1928
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1929
- * https://openapi-generator.tech
1930
- * Do not edit the class manually.
1931
- */
1932
-
1933
- /**
1934
- *
1935
- * @export
1936
- * @interface MLBTeams
1937
- */
1938
507
  interface MLBTeams {
1939
- /**
1940
- *
1941
- * @type {Array<MLBTeam>}
1942
- * @memberof MLBTeams
1943
- */
1944
508
  teams?: Array<MLBTeam>;
1945
509
  }
1946
- /**
1947
- * Check if a given object implements the MLBTeams interface.
1948
- */
1949
510
  declare function instanceOfMLBTeams(value: object): value is MLBTeams;
1950
511
  declare function MLBTeamsFromJSON(json: any): MLBTeams;
1951
512
  declare function MLBTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBTeams;
1952
513
  declare function MLBTeamsToJSON(value?: MLBTeams | null): any;
1953
514
 
1954
- /**
1955
- * MLB StatAPI
1956
- * An spec API to consume the MLB Stat API
1957
- *
1958
- * The version of the OpenAPI document: 0.0.1
1959
- *
1960
- *
1961
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1962
- * https://openapi-generator.tech
1963
- * Do not edit the class manually.
1964
- */
1965
-
1966
515
  interface GetAllSeasonsRequest {
1967
516
  sportId: number;
1968
517
  }
@@ -1988,147 +537,28 @@ interface GetTeamsRequest {
1988
537
  season: string;
1989
538
  leagueIds?: Array<number>;
1990
539
  }
1991
- /**
1992
- * MlbApi - interface
1993
- *
1994
- * @export
1995
- * @interface MlbApiInterface
1996
- */
1997
540
  interface MlbApiInterface {
1998
- /**
1999
- * Returns All Seasons
2000
- * @summary Retrieves All Seasons over time
2001
- * @param {number} sportId
2002
- * @param {*} [options] Override http request option.
2003
- * @throws {RequiredError}
2004
- * @memberof MlbApiInterface
2005
- */
2006
541
  getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBSeasons>>;
2007
- /**
2008
- * Returns All Seasons
2009
- * Retrieves All Seasons over time
2010
- */
2011
542
  getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBSeasons>;
2012
- /**
2013
- * Returns Schedule
2014
- * @summary Retrieves schedule
2015
- * @param {number} sportId
2016
- * @param {number} [teamId]
2017
- * @param {string} [startDate]
2018
- * @param {string} [endDate]
2019
- * @param {*} [options] Override http request option.
2020
- * @throws {RequiredError}
2021
- * @memberof MlbApiInterface
2022
- */
2023
543
  getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBSchedule>>;
2024
- /**
2025
- * Returns Schedule
2026
- * Retrieves schedule
2027
- */
2028
544
  getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBSchedule>;
2029
- /**
2030
- * Returns Season
2031
- * @summary Retrieves season
2032
- * @param {number} sportId
2033
- * @param {string} season
2034
- * @param {*} [options] Override http request option.
2035
- * @throws {RequiredError}
2036
- * @memberof MlbApiInterface
2037
- */
2038
- getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBSeason>>;
2039
- /**
2040
- * Returns Season
2041
- * Retrieves season
2042
- */
2043
- getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBSeason>;
2044
- /**
2045
- * Returns Standing
2046
- * @summary Retrieves Standings
2047
- * @param {number} leagueId
2048
- * @param {string} season
2049
- * @param {string} [date]
2050
- * @param {Array<string>} [fields]
2051
- * @param {string} [hydrate]
2052
- * @param {*} [options] Override http request option.
2053
- * @throws {RequiredError}
2054
- * @memberof MlbApiInterface
2055
- */
545
+ getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBSeasons>>;
546
+ getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBSeasons>;
2056
547
  getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBStandingsList>>;
2057
- /**
2058
- * Returns Standing
2059
- * Retrieves Standings
2060
- */
2061
548
  getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBStandingsList>;
2062
- /**
2063
- * Returns Teams
2064
- * @summary Retrieves Teams
2065
- * @param {number} sportId
2066
- * @param {string} season
2067
- * @param {Array<number>} [leagueIds]
2068
- * @param {*} [options] Override http request option.
2069
- * @throws {RequiredError}
2070
- * @memberof MlbApiInterface
2071
- */
2072
549
  getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBTeams>>;
2073
- /**
2074
- * Returns Teams
2075
- * Retrieves Teams
2076
- */
2077
550
  getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBTeams>;
2078
551
  }
2079
- /**
2080
- *
2081
- */
2082
552
  declare class MlbApi extends BaseAPI implements MlbApiInterface {
2083
- /**
2084
- * Returns All Seasons
2085
- * Retrieves All Seasons over time
2086
- */
2087
553
  getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBSeasons>>;
2088
- /**
2089
- * Returns All Seasons
2090
- * Retrieves All Seasons over time
2091
- */
2092
554
  getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBSeasons>;
2093
- /**
2094
- * Returns Schedule
2095
- * Retrieves schedule
2096
- */
2097
555
  getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBSchedule>>;
2098
- /**
2099
- * Returns Schedule
2100
- * Retrieves schedule
2101
- */
2102
556
  getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBSchedule>;
2103
- /**
2104
- * Returns Season
2105
- * Retrieves season
2106
- */
2107
- getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBSeason>>;
2108
- /**
2109
- * Returns Season
2110
- * Retrieves season
2111
- */
2112
- getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBSeason>;
2113
- /**
2114
- * Returns Standing
2115
- * Retrieves Standings
2116
- */
557
+ getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBSeasons>>;
558
+ getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBSeasons>;
2117
559
  getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBStandingsList>>;
2118
- /**
2119
- * Returns Standing
2120
- * Retrieves Standings
2121
- */
2122
560
  getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBStandingsList>;
2123
- /**
2124
- * Returns Teams
2125
- * Retrieves Teams
2126
- */
2127
561
  getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<MLBTeams>>;
2128
- /**
2129
- * Returns Teams
2130
- * Retrieves Teams
2131
- */
2132
562
  getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<MLBTeams>;
2133
563
  }
2134
564