@bp1222/stats-api 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -454,27 +454,37 @@ declare function GameFromJSON(json: any): Game;
454
454
  declare function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game;
455
455
  declare function GameToJSON(value?: Game | null): any;
456
456
 
457
- interface InningTeam {
457
+ interface LinescoreTeam {
458
+ runs?: number;
458
459
  hits?: number;
459
460
  errors?: number;
460
461
  leftOnBase?: number;
461
462
  }
462
- declare function instanceOfInningTeam(value: object): value is InningTeam;
463
- declare function InningTeamFromJSON(json: any): InningTeam;
464
- declare function InningTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): InningTeam;
465
- declare function InningTeamToJSON(value?: InningTeam | null): any;
463
+ declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
464
+ declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
465
+ declare function LinescoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeam;
466
+ declare function LinescoreTeamToJSON(value?: LinescoreTeam | null): any;
466
467
 
467
468
  interface Inning {
468
469
  num?: number;
469
470
  ordinalNum?: string;
470
- home?: InningTeam;
471
- away?: InningTeam;
471
+ home?: LinescoreTeam;
472
+ away?: LinescoreTeam;
472
473
  }
473
474
  declare function instanceOfInning(value: object): value is Inning;
474
475
  declare function InningFromJSON(json: any): Inning;
475
476
  declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inning;
476
477
  declare function InningToJSON(value?: Inning | null): any;
477
478
 
479
+ interface LinescoreTeams {
480
+ away?: LinescoreTeam;
481
+ home?: LinescoreTeam;
482
+ }
483
+ declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
484
+ declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
485
+ declare function LinescoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeams;
486
+ declare function LinescoreTeamsToJSON(value?: LinescoreTeams | null): any;
487
+
478
488
  interface Linescore {
479
489
  currentInning?: number;
480
490
  currentInningOrdinal?: string;
@@ -483,6 +493,7 @@ interface Linescore {
483
493
  isTopInning?: boolean;
484
494
  scheduledInnings?: number;
485
495
  innings?: Array<Inning>;
496
+ teams?: LinescoreTeams;
486
497
  balls?: number;
487
498
  strikes?: number;
488
499
  outs?: number;
@@ -607,4 +618,4 @@ declare class MlbApi extends BaseAPI {
607
618
  getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
608
619
  }
609
620
 
610
- export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsToJSON, DivisionToJSON, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type Game, GameFromJSON, GameFromJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameToJSON, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, type GetAllSeasonsRequest, 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, type InningTeam, InningTeamFromJSON, InningTeamFromJSONTyped, InningTeamToJSON, InningToJSON, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueToJSON, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, LinescoreToJSON, type Middleware, MlbApi, type ModelPropertyNaming, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamRecord, TeamRecordFromJSON, TeamRecordFromJSONTyped, TeamRecordToJSON, TeamToJSON, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VoidApiResponse, canConsumeForm, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfGame, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfInningTeam, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLinescore, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamRecord, instanceOfTeams, instanceOfVenue, mapValues, querystring };
621
+ export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsToJSON, DivisionToJSON, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type Game, GameFromJSON, GameFromJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameToJSON, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, type GetAllSeasonsRequest, 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, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueToJSON, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, type LinescoreTeam, LinescoreTeamFromJSON, LinescoreTeamFromJSONTyped, LinescoreTeamToJSON, type LinescoreTeams, LinescoreTeamsFromJSON, LinescoreTeamsFromJSONTyped, LinescoreTeamsToJSON, LinescoreToJSON, type Middleware, MlbApi, type ModelPropertyNaming, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamRecord, TeamRecordFromJSON, TeamRecordFromJSONTyped, TeamRecordToJSON, TeamToJSON, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VoidApiResponse, canConsumeForm, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfGame, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamRecord, instanceOfTeams, instanceOfVenue, mapValues, querystring };
package/dist/index.d.ts CHANGED
@@ -454,27 +454,37 @@ declare function GameFromJSON(json: any): Game;
454
454
  declare function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game;
455
455
  declare function GameToJSON(value?: Game | null): any;
456
456
 
457
- interface InningTeam {
457
+ interface LinescoreTeam {
458
+ runs?: number;
458
459
  hits?: number;
459
460
  errors?: number;
460
461
  leftOnBase?: number;
461
462
  }
462
- declare function instanceOfInningTeam(value: object): value is InningTeam;
463
- declare function InningTeamFromJSON(json: any): InningTeam;
464
- declare function InningTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): InningTeam;
465
- declare function InningTeamToJSON(value?: InningTeam | null): any;
463
+ declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
464
+ declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
465
+ declare function LinescoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeam;
466
+ declare function LinescoreTeamToJSON(value?: LinescoreTeam | null): any;
466
467
 
467
468
  interface Inning {
468
469
  num?: number;
469
470
  ordinalNum?: string;
470
- home?: InningTeam;
471
- away?: InningTeam;
471
+ home?: LinescoreTeam;
472
+ away?: LinescoreTeam;
472
473
  }
473
474
  declare function instanceOfInning(value: object): value is Inning;
474
475
  declare function InningFromJSON(json: any): Inning;
475
476
  declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inning;
476
477
  declare function InningToJSON(value?: Inning | null): any;
477
478
 
479
+ interface LinescoreTeams {
480
+ away?: LinescoreTeam;
481
+ home?: LinescoreTeam;
482
+ }
483
+ declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
484
+ declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
485
+ declare function LinescoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeams;
486
+ declare function LinescoreTeamsToJSON(value?: LinescoreTeams | null): any;
487
+
478
488
  interface Linescore {
479
489
  currentInning?: number;
480
490
  currentInningOrdinal?: string;
@@ -483,6 +493,7 @@ interface Linescore {
483
493
  isTopInning?: boolean;
484
494
  scheduledInnings?: number;
485
495
  innings?: Array<Inning>;
496
+ teams?: LinescoreTeams;
486
497
  balls?: number;
487
498
  strikes?: number;
488
499
  outs?: number;
@@ -607,4 +618,4 @@ declare class MlbApi extends BaseAPI {
607
618
  getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
608
619
  }
609
620
 
610
- export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsToJSON, DivisionToJSON, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type Game, GameFromJSON, GameFromJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameToJSON, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, type GetAllSeasonsRequest, 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, type InningTeam, InningTeamFromJSON, InningTeamFromJSONTyped, InningTeamToJSON, InningToJSON, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueToJSON, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, LinescoreToJSON, type Middleware, MlbApi, type ModelPropertyNaming, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamRecord, TeamRecordFromJSON, TeamRecordFromJSONTyped, TeamRecordToJSON, TeamToJSON, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VoidApiResponse, canConsumeForm, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfGame, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfInningTeam, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLinescore, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamRecord, instanceOfTeams, instanceOfVenue, mapValues, querystring };
621
+ export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsToJSON, DivisionToJSON, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type Game, GameFromJSON, GameFromJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameToJSON, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, type GetAllSeasonsRequest, 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, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueToJSON, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, type LinescoreTeam, LinescoreTeamFromJSON, LinescoreTeamFromJSONTyped, LinescoreTeamToJSON, type LinescoreTeams, LinescoreTeamsFromJSON, LinescoreTeamsFromJSONTyped, LinescoreTeamsToJSON, LinescoreToJSON, type Middleware, MlbApi, type ModelPropertyNaming, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamRecord, TeamRecordFromJSON, TeamRecordFromJSONTyped, TeamRecordToJSON, TeamToJSON, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VoidApiResponse, canConsumeForm, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfGame, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamRecord, instanceOfTeams, instanceOfVenue, mapValues, querystring };
package/dist/index.js CHANGED
@@ -95,9 +95,6 @@ __export(src_exports, {
95
95
  GameTypeToJSON: () => GameTypeToJSON,
96
96
  InningFromJSON: () => InningFromJSON,
97
97
  InningFromJSONTyped: () => InningFromJSONTyped,
98
- InningTeamFromJSON: () => InningTeamFromJSON,
99
- InningTeamFromJSONTyped: () => InningTeamFromJSONTyped,
100
- InningTeamToJSON: () => InningTeamToJSON,
101
98
  InningToJSON: () => InningToJSON,
102
99
  JSONApiResponse: () => JSONApiResponse,
103
100
  LeagueDatesFromJSON: () => LeagueDatesFromJSON,
@@ -111,6 +108,12 @@ __export(src_exports, {
111
108
  LeagueToJSON: () => LeagueToJSON,
112
109
  LinescoreFromJSON: () => LinescoreFromJSON,
113
110
  LinescoreFromJSONTyped: () => LinescoreFromJSONTyped,
111
+ LinescoreTeamFromJSON: () => LinescoreTeamFromJSON,
112
+ LinescoreTeamFromJSONTyped: () => LinescoreTeamFromJSONTyped,
113
+ LinescoreTeamToJSON: () => LinescoreTeamToJSON,
114
+ LinescoreTeamsFromJSON: () => LinescoreTeamsFromJSON,
115
+ LinescoreTeamsFromJSONTyped: () => LinescoreTeamsFromJSONTyped,
116
+ LinescoreTeamsToJSON: () => LinescoreTeamsToJSON,
114
117
  LinescoreToJSON: () => LinescoreToJSON,
115
118
  MlbApi: () => MlbApi,
116
119
  RequiredError: () => RequiredError,
@@ -159,11 +162,12 @@ __export(src_exports, {
159
162
  instanceOfGameTeams: () => instanceOfGameTeams,
160
163
  instanceOfGameType: () => instanceOfGameType,
161
164
  instanceOfInning: () => instanceOfInning,
162
- instanceOfInningTeam: () => instanceOfInningTeam,
163
165
  instanceOfLeague: () => instanceOfLeague,
164
166
  instanceOfLeagueDates: () => instanceOfLeagueDates,
165
167
  instanceOfLeagueRecord: () => instanceOfLeagueRecord,
166
168
  instanceOfLinescore: () => instanceOfLinescore,
169
+ instanceOfLinescoreTeam: () => instanceOfLinescoreTeam,
170
+ instanceOfLinescoreTeams: () => instanceOfLinescoreTeams,
167
171
  instanceOfSchedule: () => instanceOfSchedule,
168
172
  instanceOfScheduleDay: () => instanceOfScheduleDay,
169
173
  instanceOfSeason: () => instanceOfSeason,
@@ -1235,28 +1239,30 @@ function GameToJSON(value) {
1235
1239
  };
1236
1240
  }
1237
1241
 
1238
- // src/models/InningTeam.ts
1239
- function instanceOfInningTeam(value) {
1242
+ // src/models/LinescoreTeam.ts
1243
+ function instanceOfLinescoreTeam(value) {
1240
1244
  return true;
1241
1245
  }
1242
- function InningTeamFromJSON(json) {
1243
- return InningTeamFromJSONTyped(json, false);
1246
+ function LinescoreTeamFromJSON(json) {
1247
+ return LinescoreTeamFromJSONTyped(json, false);
1244
1248
  }
1245
- function InningTeamFromJSONTyped(json, ignoreDiscriminator) {
1249
+ function LinescoreTeamFromJSONTyped(json, ignoreDiscriminator) {
1246
1250
  if (json == null) {
1247
1251
  return json;
1248
1252
  }
1249
1253
  return {
1254
+ "runs": json["runs"] == null ? void 0 : json["runs"],
1250
1255
  "hits": json["hits"] == null ? void 0 : json["hits"],
1251
1256
  "errors": json["errors"] == null ? void 0 : json["errors"],
1252
1257
  "leftOnBase": json["leftOnBase"] == null ? void 0 : json["leftOnBase"]
1253
1258
  };
1254
1259
  }
1255
- function InningTeamToJSON(value) {
1260
+ function LinescoreTeamToJSON(value) {
1256
1261
  if (value == null) {
1257
1262
  return value;
1258
1263
  }
1259
1264
  return {
1265
+ "runs": value["runs"],
1260
1266
  "hits": value["hits"],
1261
1267
  "errors": value["errors"],
1262
1268
  "leftOnBase": value["leftOnBase"]
@@ -1277,8 +1283,8 @@ function InningFromJSONTyped(json, ignoreDiscriminator) {
1277
1283
  return {
1278
1284
  "num": json["num"] == null ? void 0 : json["num"],
1279
1285
  "ordinalNum": json["ordinalNum"] == null ? void 0 : json["ordinalNum"],
1280
- "home": json["home"] == null ? void 0 : InningTeamFromJSON(json["home"]),
1281
- "away": json["away"] == null ? void 0 : InningTeamFromJSON(json["away"])
1286
+ "home": json["home"] == null ? void 0 : LinescoreTeamFromJSON(json["home"]),
1287
+ "away": json["away"] == null ? void 0 : LinescoreTeamFromJSON(json["away"])
1282
1288
  };
1283
1289
  }
1284
1290
  function InningToJSON(value) {
@@ -1288,8 +1294,34 @@ function InningToJSON(value) {
1288
1294
  return {
1289
1295
  "num": value["num"],
1290
1296
  "ordinalNum": value["ordinalNum"],
1291
- "home": InningTeamToJSON(value["home"]),
1292
- "away": InningTeamToJSON(value["away"])
1297
+ "home": LinescoreTeamToJSON(value["home"]),
1298
+ "away": LinescoreTeamToJSON(value["away"])
1299
+ };
1300
+ }
1301
+
1302
+ // src/models/LinescoreTeams.ts
1303
+ function instanceOfLinescoreTeams(value) {
1304
+ return true;
1305
+ }
1306
+ function LinescoreTeamsFromJSON(json) {
1307
+ return LinescoreTeamsFromJSONTyped(json, false);
1308
+ }
1309
+ function LinescoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
1310
+ if (json == null) {
1311
+ return json;
1312
+ }
1313
+ return {
1314
+ "away": json["away"] == null ? void 0 : LinescoreTeamFromJSON(json["away"]),
1315
+ "home": json["home"] == null ? void 0 : LinescoreTeamFromJSON(json["home"])
1316
+ };
1317
+ }
1318
+ function LinescoreTeamsToJSON(value) {
1319
+ if (value == null) {
1320
+ return value;
1321
+ }
1322
+ return {
1323
+ "away": LinescoreTeamToJSON(value["away"]),
1324
+ "home": LinescoreTeamToJSON(value["home"])
1293
1325
  };
1294
1326
  }
1295
1327
 
@@ -1312,6 +1344,7 @@ function LinescoreFromJSONTyped(json, ignoreDiscriminator) {
1312
1344
  "isTopInning": json["isTopInning"] == null ? void 0 : json["isTopInning"],
1313
1345
  "scheduledInnings": json["scheduledInnings"] == null ? void 0 : json["scheduledInnings"],
1314
1346
  "innings": json["innings"] == null ? void 0 : json["innings"].map(InningFromJSON),
1347
+ "teams": json["teams"] == null ? void 0 : LinescoreTeamsFromJSON(json["teams"]),
1315
1348
  "balls": json["balls"] == null ? void 0 : json["balls"],
1316
1349
  "strikes": json["strikes"] == null ? void 0 : json["strikes"],
1317
1350
  "outs": json["outs"] == null ? void 0 : json["outs"]
@@ -1329,6 +1362,7 @@ function LinescoreToJSON(value) {
1329
1362
  "isTopInning": value["isTopInning"],
1330
1363
  "scheduledInnings": value["scheduledInnings"],
1331
1364
  "innings": value["innings"] == null ? void 0 : value["innings"].map(InningToJSON),
1365
+ "teams": LinescoreTeamsToJSON(value["teams"]),
1332
1366
  "balls": value["balls"],
1333
1367
  "strikes": value["strikes"],
1334
1368
  "outs": value["outs"]
@@ -1837,9 +1871,6 @@ var MlbApi = class extends BaseAPI {
1837
1871
  GameTypeToJSON,
1838
1872
  InningFromJSON,
1839
1873
  InningFromJSONTyped,
1840
- InningTeamFromJSON,
1841
- InningTeamFromJSONTyped,
1842
- InningTeamToJSON,
1843
1874
  InningToJSON,
1844
1875
  JSONApiResponse,
1845
1876
  LeagueDatesFromJSON,
@@ -1853,6 +1884,12 @@ var MlbApi = class extends BaseAPI {
1853
1884
  LeagueToJSON,
1854
1885
  LinescoreFromJSON,
1855
1886
  LinescoreFromJSONTyped,
1887
+ LinescoreTeamFromJSON,
1888
+ LinescoreTeamFromJSONTyped,
1889
+ LinescoreTeamToJSON,
1890
+ LinescoreTeamsFromJSON,
1891
+ LinescoreTeamsFromJSONTyped,
1892
+ LinescoreTeamsToJSON,
1856
1893
  LinescoreToJSON,
1857
1894
  MlbApi,
1858
1895
  RequiredError,
@@ -1901,11 +1938,12 @@ var MlbApi = class extends BaseAPI {
1901
1938
  instanceOfGameTeams,
1902
1939
  instanceOfGameType,
1903
1940
  instanceOfInning,
1904
- instanceOfInningTeam,
1905
1941
  instanceOfLeague,
1906
1942
  instanceOfLeagueDates,
1907
1943
  instanceOfLeagueRecord,
1908
1944
  instanceOfLinescore,
1945
+ instanceOfLinescoreTeam,
1946
+ instanceOfLinescoreTeams,
1909
1947
  instanceOfSchedule,
1910
1948
  instanceOfScheduleDay,
1911
1949
  instanceOfSeason,
package/dist/index.mjs CHANGED
@@ -1094,28 +1094,30 @@ function GameToJSON(value) {
1094
1094
  };
1095
1095
  }
1096
1096
 
1097
- // src/models/InningTeam.ts
1098
- function instanceOfInningTeam(value) {
1097
+ // src/models/LinescoreTeam.ts
1098
+ function instanceOfLinescoreTeam(value) {
1099
1099
  return true;
1100
1100
  }
1101
- function InningTeamFromJSON(json) {
1102
- return InningTeamFromJSONTyped(json, false);
1101
+ function LinescoreTeamFromJSON(json) {
1102
+ return LinescoreTeamFromJSONTyped(json, false);
1103
1103
  }
1104
- function InningTeamFromJSONTyped(json, ignoreDiscriminator) {
1104
+ function LinescoreTeamFromJSONTyped(json, ignoreDiscriminator) {
1105
1105
  if (json == null) {
1106
1106
  return json;
1107
1107
  }
1108
1108
  return {
1109
+ "runs": json["runs"] == null ? void 0 : json["runs"],
1109
1110
  "hits": json["hits"] == null ? void 0 : json["hits"],
1110
1111
  "errors": json["errors"] == null ? void 0 : json["errors"],
1111
1112
  "leftOnBase": json["leftOnBase"] == null ? void 0 : json["leftOnBase"]
1112
1113
  };
1113
1114
  }
1114
- function InningTeamToJSON(value) {
1115
+ function LinescoreTeamToJSON(value) {
1115
1116
  if (value == null) {
1116
1117
  return value;
1117
1118
  }
1118
1119
  return {
1120
+ "runs": value["runs"],
1119
1121
  "hits": value["hits"],
1120
1122
  "errors": value["errors"],
1121
1123
  "leftOnBase": value["leftOnBase"]
@@ -1136,8 +1138,8 @@ function InningFromJSONTyped(json, ignoreDiscriminator) {
1136
1138
  return {
1137
1139
  "num": json["num"] == null ? void 0 : json["num"],
1138
1140
  "ordinalNum": json["ordinalNum"] == null ? void 0 : json["ordinalNum"],
1139
- "home": json["home"] == null ? void 0 : InningTeamFromJSON(json["home"]),
1140
- "away": json["away"] == null ? void 0 : InningTeamFromJSON(json["away"])
1141
+ "home": json["home"] == null ? void 0 : LinescoreTeamFromJSON(json["home"]),
1142
+ "away": json["away"] == null ? void 0 : LinescoreTeamFromJSON(json["away"])
1141
1143
  };
1142
1144
  }
1143
1145
  function InningToJSON(value) {
@@ -1147,8 +1149,34 @@ function InningToJSON(value) {
1147
1149
  return {
1148
1150
  "num": value["num"],
1149
1151
  "ordinalNum": value["ordinalNum"],
1150
- "home": InningTeamToJSON(value["home"]),
1151
- "away": InningTeamToJSON(value["away"])
1152
+ "home": LinescoreTeamToJSON(value["home"]),
1153
+ "away": LinescoreTeamToJSON(value["away"])
1154
+ };
1155
+ }
1156
+
1157
+ // src/models/LinescoreTeams.ts
1158
+ function instanceOfLinescoreTeams(value) {
1159
+ return true;
1160
+ }
1161
+ function LinescoreTeamsFromJSON(json) {
1162
+ return LinescoreTeamsFromJSONTyped(json, false);
1163
+ }
1164
+ function LinescoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
1165
+ if (json == null) {
1166
+ return json;
1167
+ }
1168
+ return {
1169
+ "away": json["away"] == null ? void 0 : LinescoreTeamFromJSON(json["away"]),
1170
+ "home": json["home"] == null ? void 0 : LinescoreTeamFromJSON(json["home"])
1171
+ };
1172
+ }
1173
+ function LinescoreTeamsToJSON(value) {
1174
+ if (value == null) {
1175
+ return value;
1176
+ }
1177
+ return {
1178
+ "away": LinescoreTeamToJSON(value["away"]),
1179
+ "home": LinescoreTeamToJSON(value["home"])
1152
1180
  };
1153
1181
  }
1154
1182
 
@@ -1171,6 +1199,7 @@ function LinescoreFromJSONTyped(json, ignoreDiscriminator) {
1171
1199
  "isTopInning": json["isTopInning"] == null ? void 0 : json["isTopInning"],
1172
1200
  "scheduledInnings": json["scheduledInnings"] == null ? void 0 : json["scheduledInnings"],
1173
1201
  "innings": json["innings"] == null ? void 0 : json["innings"].map(InningFromJSON),
1202
+ "teams": json["teams"] == null ? void 0 : LinescoreTeamsFromJSON(json["teams"]),
1174
1203
  "balls": json["balls"] == null ? void 0 : json["balls"],
1175
1204
  "strikes": json["strikes"] == null ? void 0 : json["strikes"],
1176
1205
  "outs": json["outs"] == null ? void 0 : json["outs"]
@@ -1188,6 +1217,7 @@ function LinescoreToJSON(value) {
1188
1217
  "isTopInning": value["isTopInning"],
1189
1218
  "scheduledInnings": value["scheduledInnings"],
1190
1219
  "innings": value["innings"] == null ? void 0 : value["innings"].map(InningToJSON),
1220
+ "teams": LinescoreTeamsToJSON(value["teams"]),
1191
1221
  "balls": value["balls"],
1192
1222
  "strikes": value["strikes"],
1193
1223
  "outs": value["outs"]
@@ -1695,9 +1725,6 @@ export {
1695
1725
  GameTypeToJSON,
1696
1726
  InningFromJSON,
1697
1727
  InningFromJSONTyped,
1698
- InningTeamFromJSON,
1699
- InningTeamFromJSONTyped,
1700
- InningTeamToJSON,
1701
1728
  InningToJSON,
1702
1729
  JSONApiResponse,
1703
1730
  LeagueDatesFromJSON,
@@ -1711,6 +1738,12 @@ export {
1711
1738
  LeagueToJSON,
1712
1739
  LinescoreFromJSON,
1713
1740
  LinescoreFromJSONTyped,
1741
+ LinescoreTeamFromJSON,
1742
+ LinescoreTeamFromJSONTyped,
1743
+ LinescoreTeamToJSON,
1744
+ LinescoreTeamsFromJSON,
1745
+ LinescoreTeamsFromJSONTyped,
1746
+ LinescoreTeamsToJSON,
1714
1747
  LinescoreToJSON,
1715
1748
  MlbApi,
1716
1749
  RequiredError,
@@ -1759,11 +1792,12 @@ export {
1759
1792
  instanceOfGameTeams,
1760
1793
  instanceOfGameType,
1761
1794
  instanceOfInning,
1762
- instanceOfInningTeam,
1763
1795
  instanceOfLeague,
1764
1796
  instanceOfLeagueDates,
1765
1797
  instanceOfLeagueRecord,
1766
1798
  instanceOfLinescore,
1799
+ instanceOfLinescoreTeam,
1800
+ instanceOfLinescoreTeams,
1767
1801
  instanceOfSchedule,
1768
1802
  instanceOfScheduleDay,
1769
1803
  instanceOfSeason,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bp1222/stats-api",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",