commit api subpackage

This commit is contained in:
filifa
2025-04-06 00:55:01 -04:00
parent 4bec2914fa
commit 481ae64cc1
1052 changed files with 2890798 additions and 0 deletions

47
api/models/model_about.go Normal file
View File

@@ -0,0 +1,47 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type About struct {
Copyright string `json:"copyright,omitempty"`
AtBatIndex int32 `json:"atBatIndex,omitempty"`
HalfInning string `json:"halfInning,omitempty"`
IsTopInning bool `json:"isTopInning,omitempty"`
Inning int32 `json:"inning,omitempty"`
StartTime time.Time `json:"startTime,omitempty"`
EndTime time.Time `json:"endTime,omitempty"`
IsComplete bool `json:"isComplete,omitempty"`
IsScoringPlay bool `json:"isScoringPlay,omitempty"`
HasReview bool `json:"hasReview,omitempty"`
// Does the play include an out?
HasOut bool `json:"hasOut,omitempty"`
CaptivatingIndex int32 `json:"captivatingIndex,omitempty"`
}

View File

@@ -0,0 +1,32 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AdditionalBio struct {
Id int32 `json:"id,omitempty"`
HomeTown string `json:"homeTown,omitempty"`
}

View File

@@ -0,0 +1,32 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AdditionalBioRestObject struct {
Copyright string `json:"copyright,omitempty"`
HomeTown string `json:"homeTown,omitempty"`
}

View File

@@ -0,0 +1,42 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AggregateSortTypeEnum string
// List of AggregateSortTypeEnum
const (
AVG_AggregateSortTypeEnum AggregateSortTypeEnum = "avg"
MAX_AggregateSortTypeEnum AggregateSortTypeEnum = "max"
MIN_AggregateSortTypeEnum AggregateSortTypeEnum = "min"
NUM_AggregateSortTypeEnum AggregateSortTypeEnum = "num"
P50_AggregateSortTypeEnum AggregateSortTypeEnum = "p50"
P75_AggregateSortTypeEnum AggregateSortTypeEnum = "p75"
P90_AggregateSortTypeEnum AggregateSortTypeEnum = "p90"
COMP_AggregateSortTypeEnum AggregateSortTypeEnum = "comp"
NUM_COMP_AggregateSortTypeEnum AggregateSortTypeEnum = "num_comp"
)

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AggregateSortTypeRestObject struct {
Copyright string `json:"copyright,omitempty"`
Code string `json:"code,omitempty"`
Description string `json:"description,omitempty"`
}

View File

@@ -0,0 +1,39 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AllStarEnum string
// List of AllStarEnum
const (
N_AllStarEnum AllStarEnum = "N"
Y_AllStarEnum AllStarEnum = "Y"
F_AllStarEnum AllStarEnum = "F"
T_AllStarEnum AllStarEnum = "T"
O_AllStarEnum AllStarEnum = "O"
I_AllStarEnum AllStarEnum = "I"
)

View File

@@ -0,0 +1,37 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AnalyticsGameMetadataRestObject struct {
Copyright string `json:"copyright,omitempty"`
GamePk string `json:"gamePk,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
AuditUpdatedAt string `json:"auditUpdatedAt,omitempty"`
MetricsUpdatedAt string `json:"metricsUpdatedAt,omitempty"`
VideoUpdatedAt string `json:"videoUpdatedAt,omitempty"`
Link string `json:"link,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AnalyticsGameMetadataWrapperRestObject struct {
Copyright string `json:"copyright,omitempty"`
TotalItems int64 `json:"totalItems,omitempty"`
Games []AnalyticsGameMetadataRestObject `json:"games,omitempty"`
}

View File

@@ -0,0 +1,72 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AnalyticsPlayMetadataRestObject struct {
Copyright string `json:"copyright,omitempty"`
Hydrations []string `json:"hydrations,omitempty"`
GamePk string `json:"gamePk,omitempty"`
GameDate string `json:"gameDate,omitempty"`
TimeCode string `json:"timeCode,omitempty"`
Guid string `json:"guid,omitempty"`
AtBatNumber int32 `json:"atBatNumber,omitempty"`
PitchNumber int32 `json:"pitchNumber,omitempty"`
PickoffNumber int32 `json:"pickoffNumber,omitempty"`
GameMode *GameModeTo `json:"gameMode,omitempty"`
Inning int32 `json:"inning,omitempty"`
IsTopInning bool `json:"isTopInning,omitempty"`
IsPitch bool `json:"isPitch,omitempty"`
IsPickoff bool `json:"isPickoff,omitempty"`
IsHit bool `json:"isHit,omitempty"`
IsManual bool `json:"isManual,omitempty"`
RawFile string `json:"rawFile,omitempty"`
ParsedFile string `json:"parsedFile,omitempty"`
Time string `json:"time,omitempty"`
StartTime string `json:"startTime,omitempty"`
EndTime string `json:"endTime,omitempty"`
PitchTime string `json:"pitchTime,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
AuditUpdatedAt string `json:"auditUpdatedAt,omitempty"`
MetricsUpdatedAt string `json:"metricsUpdatedAt,omitempty"`
HasUpdates bool `json:"hasUpdates,omitempty"`
NumberOfMetricErrors int32 `json:"numberOfMetricErrors,omitempty"`
TimeCodeOffset string `json:"timeCodeOffset,omitempty"`
IsScrubbed bool `json:"isScrubbed,omitempty"`
VideoUpdatedAt string `json:"videoUpdatedAt,omitempty"`
StrikeZoneInfo *JsonNode `json:"strikeZoneInfo,omitempty"`
PitchSegment *PitchSegmentRestObject `json:"pitchSegment,omitempty"`
HitSegment *HitSegmentRestObject `json:"hitSegment,omitempty"`
ContextMetrics []CalculatedMetricRestObject `json:"contextMetrics,omitempty"`
ContextAverages []CalculatedMetricRestObject `json:"contextAverages,omitempty"`
CalculatedMetrics []CalculatedMetricRestObject `json:"calculatedMetrics,omitempty"`
InvalidTracks []CalculatedMetricRestObject `json:"invalidTracks,omitempty"`
Video *IFeedRestObject `json:"video,omitempty"`
MetaData *StatSplitsRestObject `json:"metaData,omitempty"`
PlayResult *PlayResultRestObject `json:"playResult,omitempty"`
PlayByPlay *BaseballPlayRestObject `json:"playByPlay,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AnalyticsPlayMetadataWrapperRestObject struct {
Copyright string `json:"copyright,omitempty"`
TotalItems int64 `json:"totalItems,omitempty"`
Plays []AnalyticsPlayMetadataRestObject `json:"plays,omitempty"`
}

View File

@@ -0,0 +1,48 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AnalyticsRestObject struct {
Copyright string `json:"copyright,omitempty"`
Hydrations []string `json:"hydrations,omitempty"`
StrikeZoneInfo *JsonNode `json:"strikeZoneInfo,omitempty"`
MetaData *StatSplitsRestObject `json:"metaData,omitempty"`
PlayResult *PlayResultRestObject `json:"playResult,omitempty"`
TargetPositions []PositionalMapRestObject `json:"targetPositions,omitempty"`
BallSegments *BallPositionalDataRestObject `json:"ballSegments,omitempty"`
TrackedEvents []PlayEventRestObject `json:"trackedEvents,omitempty"`
CalculatedMetrics *CalculatedMetricContainerRestObject `json:"calculatedMetrics,omitempty"`
PositionMap map[string]BaseballPersonRestObject `json:"positionMap,omitempty"`
Diagram string `json:"diagram,omitempty"`
ContextMetrics []CalculatedMetricRestObject `json:"contextMetrics,omitempty"`
ContextAverages []CalculatedMetricRestObject `json:"contextAverages,omitempty"`
Video *IFeedRestObject `json:"video,omitempty"`
CalibrationData *CalibrationContainerRestObject `json:"calibrationData,omitempty"`
Bat *BatTrackingRestObject `json:"bat,omitempty"`
Weather *WeatherWrapperRestObject `json:"weather,omitempty"`
SoftwareVersions *JsonNode `json:"softwareVersions,omitempty"`
}

View File

@@ -0,0 +1,39 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type ApplicationRestObject struct {
Copyright string `json:"copyright,omitempty"`
AndroidPackage string `json:"androidPackage,omitempty"`
Icon string `json:"icon,omitempty"`
Intent string `json:"intent,omitempty"`
Name string `json:"name,omitempty"`
AndroidUrl string `json:"androidUrl,omitempty"`
IosUrl string `json:"iosUrl,omitempty"`
IosPackage string `json:"iosPackage,omitempty"`
Primary bool `json:"primary,omitempty"`
}

View File

@@ -0,0 +1,37 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type Article struct {
Article *JsonNode `json:"article,omitempty"`
PlayerId string `json:"playerId,omitempty"`
Date time.Time `json:"date,omitempty"`
}

View File

@@ -0,0 +1,60 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AttendanceRecordRestObject struct {
Copyright string `json:"copyright,omitempty"`
OpeningsTotal7day int32 `json:"openingsTotal7day,omitempty"`
OpeningsTotal int32 `json:"openingsTotal,omitempty"`
OpeningsTotalAway int32 `json:"openingsTotalAway,omitempty"`
OpeningsTotalHome int32 `json:"openingsTotalHome,omitempty"`
OpeningsTotalLost int32 `json:"openingsTotalLost,omitempty"`
OpeningsTotalYtd int32 `json:"openingsTotalYtd,omitempty"`
GamesTotal int32 `json:"gamesTotal,omitempty"`
GamesAwayTotal int32 `json:"gamesAwayTotal,omitempty"`
GamesHomeTotal int32 `json:"gamesHomeTotal,omitempty"`
Year string `json:"year,omitempty"`
AttendanceAverageAway int32 `json:"attendanceAverageAway,omitempty"`
AttendanceAverageHome int32 `json:"attendanceAverageHome,omitempty"`
AttendanceAverageYtd int32 `json:"attendanceAverageYtd,omitempty"`
AttendanceHigh int32 `json:"attendanceHigh,omitempty"`
AttendanceHighDate string `json:"attendanceHighDate,omitempty"`
AttendanceHighGame *BaseballScheduleItemRestObject `json:"attendanceHighGame,omitempty"`
AttendanceLow int32 `json:"attendanceLow,omitempty"`
AttendanceLowDate string `json:"attendanceLowDate,omitempty"`
AttendanceLowGame *BaseballScheduleItemRestObject `json:"attendanceLowGame,omitempty"`
AttendanceOpening7dayAvg int32 `json:"attendanceOpening7dayAvg,omitempty"`
AttendanceOpeningAverage int32 `json:"attendanceOpeningAverage,omitempty"`
AttendanceTotal7day int32 `json:"attendanceTotal7day,omitempty"`
AttendanceTotal int32 `json:"attendanceTotal,omitempty"`
AttendanceTotalAway int32 `json:"attendanceTotalAway,omitempty"`
AttendanceTotalHome int32 `json:"attendanceTotalHome,omitempty"`
AttendanceTotalYesterday int32 `json:"attendanceTotalYesterday,omitempty"`
AttendanceTotalYtd int32 `json:"attendanceTotalYtd,omitempty"`
GameType *GameTypeEnum `json:"gameType,omitempty"`
Team *BaseballTeamRestObject `json:"team,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AttendanceRestObject struct {
Copyright string `json:"copyright,omitempty"`
Records []AttendanceRecordRestObject `json:"records,omitempty"`
AggregateTotals *AttendanceRecordRestObject `json:"aggregateTotals,omitempty"`
}

53
api/models/model_award.go Normal file
View File

@@ -0,0 +1,53 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type Award struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
Results []AwardResult `json:"results,omitempty"`
Winners []AwardWinner `json:"winners,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
ShortName string `json:"shortName,omitempty"`
Description string `json:"description,omitempty"`
RecipientType string `json:"recipientType,omitempty"`
History string `json:"history,omitempty"`
Team *BaseballTeam `json:"team,omitempty"`
ImageUrl string `json:"imageUrl,omitempty"`
HomePageUrl string `json:"homePageUrl,omitempty"`
Date string `json:"date,omitempty"`
Season string `json:"season,omitempty"`
SortOrder int32 `json:"sortOrder,omitempty"`
Player *BaseballPerson `json:"player,omitempty"`
Votes int32 `json:"votes,omitempty"`
VotesAvailable int32 `json:"votesAvailable,omitempty"`
Sport *Sport `json:"sport,omitempty"`
League *League `json:"league,omitempty"`
Notes string `json:"notes,omitempty"`
OrganizationId int32 `json:"organizationId,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,51 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AwardRestObject struct {
Copyright string `json:"copyright,omitempty"`
Hydrations []string `json:"hydrations,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
ShortName string `json:"shortName,omitempty"`
Description string `json:"description,omitempty"`
RecipientType string `json:"recipientType,omitempty"`
History string `json:"history,omitempty"`
ImageUrl string `json:"imageUrl,omitempty"`
HomePageUrl string `json:"homePageUrl,omitempty"`
Date string `json:"date,omitempty"`
Season string `json:"season,omitempty"`
Results []AwardResultRestObject `json:"results,omitempty"`
Team *BaseballTeamRestObject `json:"team,omitempty"`
SortOrder int32 `json:"sortOrder,omitempty"`
Player *BaseballPersonRestObject `json:"player,omitempty"`
Votes int32 `json:"votes,omitempty"`
VotesAvailable int32 `json:"votesAvailable,omitempty"`
Sport *SportRestObject `json:"sport,omitempty"`
League *LeagueRestObject `json:"league,omitempty"`
Notes string `json:"notes,omitempty"`
}

View File

@@ -0,0 +1,34 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AwardResult struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
SeasonId int32 `json:"seasonId,omitempty"`
Winners []AwardWinner `json:"winners,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,34 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AwardResultRestObject struct {
Copyright string `json:"copyright,omitempty"`
Hydrations []string `json:"hydrations,omitempty"`
SeasonId int32 `json:"seasonId,omitempty"`
Winners []AwardWinnerRestObject `json:"winners,omitempty"`
}

View File

@@ -0,0 +1,43 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AwardWinner struct {
AwardId int32 `json:"awardId,omitempty"`
TeamId int32 `json:"teamId,omitempty"`
CoachId int32 `json:"coachId,omitempty"`
PlayerId int32 `json:"playerId,omitempty"`
Rank string `json:"rank,omitempty"`
Person *BaseballPerson `json:"person,omitempty"`
Player *BaseballPerson `json:"player,omitempty"`
Coach *BaseballPerson `json:"coach,omitempty"`
Team *BaseballTeam `json:"team,omitempty"`
AwardDate string `json:"awardDate,omitempty"`
Season string `json:"season,omitempty"`
Empty bool `json:"empty,omitempty"`
NotEmpty bool `json:"notEmpty,omitempty"`
}

View File

@@ -0,0 +1,35 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AwardWinnerRestObject struct {
Rank string `json:"rank,omitempty"`
Team *BaseballTeamRestObject `json:"team,omitempty"`
Player *BaseballPersonRestObject `json:"player,omitempty"`
Coach *BaseballPersonRestObject `json:"coach,omitempty"`
Copyright string `json:"copyright,omitempty"`
}

View File

@@ -0,0 +1,32 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type AwardsRestObject struct {
Copyright string `json:"copyright,omitempty"`
Awards []AwardRestObject `json:"awards,omitempty"`
}

View File

@@ -0,0 +1,38 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BallPositionDataRestObject struct {
Copyright string `json:"copyright,omitempty"`
Velocity *CoordinatesRestObject `json:"velocity,omitempty"`
Position *CoordinatesRestObject `json:"position,omitempty"`
Time float64 `json:"time,omitempty"`
Confidence string `json:"confidence,omitempty"`
TimeCode int64 `json:"timeCode,omitempty"`
TimeCodeOffset float64 `json:"timeCodeOffset,omitempty"`
Type_ string `json:"type,omitempty"`
}

View File

@@ -0,0 +1,35 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BallPositionalDataRestObject struct {
Copyright string `json:"copyright,omitempty"`
GenericSegments []SegmentRestObject `json:"genericSegments,omitempty"`
PitchSegment *PitchSegmentRestObject `json:"pitchSegment,omitempty"`
HitSegment *HitSegmentRestObject `json:"hitSegment,omitempty"`
Positions []BallPositionDataRestObject `json:"positions,omitempty"`
}

View File

@@ -0,0 +1,42 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballAbsChallenge struct {
HasChallenges bool `json:"hasChallenges,omitempty"`
AwayChallengesUsed int32 `json:"awayChallengesUsed,omitempty"`
AwayChallengesRemaining int32 `json:"awayChallengesRemaining,omitempty"`
HomeChallengesUsed int32 `json:"homeChallengesUsed,omitempty"`
HomeChallengesRemaining int32 `json:"homeChallengesRemaining,omitempty"`
ChallengingTeam *BaseballTeam `json:"challengingTeam,omitempty"`
ReviewReason string `json:"reviewReason,omitempty"`
Limit9thInning int32 `json:"limit9thInning,omitempty"`
AwayChallengesUsedOverturned int32 `json:"awayChallengesUsedOverturned,omitempty"`
AwayChallengesUsedStands int32 `json:"awayChallengesUsedStands,omitempty"`
HomeChallengesUsedOverturned int32 `json:"homeChallengesUsedOverturned,omitempty"`
HomeChallengesUsedStands int32 `json:"homeChallengesUsedStands,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballAbsChallengeRestObject struct {
Copyright string `json:"copyright,omitempty"`
HasChallenges bool `json:"hasChallenges,omitempty"`
Reason string `json:"reason,omitempty"`
Away *BaseballTeamReview `json:"away,omitempty"`
Home *BaseballTeamReview `json:"home,omitempty"`
ChallengingTeam *BaseballTeamRestObject `json:"challengingTeam,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballBoxscoreNoteRestObject struct {
Copyright string `json:"copyright,omitempty"`
Label string `json:"label,omitempty"`
Value string `json:"value,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballBoxscoreNoteWrapRestObject struct {
Copyright string `json:"copyright,omitempty"`
Title string `json:"title,omitempty"`
FieldList []BaseballBoxscoreNoteRestObject `json:"fieldList,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballBoxscoreRestObject struct {
Copyright string `json:"copyright,omitempty"`
Teams map[string]BaseballTeamBoxscore `json:"teams,omitempty"`
Officials []OfficialRestObject `json:"officials,omitempty"`
Info []BaseballBoxscoreNoteRestObject `json:"info,omitempty"`
PitchingNotes []string `json:"pitchingNotes,omitempty"`
TopPerformers []BaseballPlayerGameScoreRestObject `json:"topPerformers,omitempty"`
}

View File

@@ -0,0 +1,38 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballChallenge struct {
HasChallenges bool `json:"hasChallenges,omitempty"`
AwayChallengesUsed int32 `json:"awayChallengesUsed,omitempty"`
AwayChallengesRemaining int32 `json:"awayChallengesRemaining,omitempty"`
HomeChallengesUsed int32 `json:"homeChallengesUsed,omitempty"`
HomeChallengesRemaining int32 `json:"homeChallengesRemaining,omitempty"`
ChallengingTeam *BaseballTeam `json:"challengingTeam,omitempty"`
ReviewReason string `json:"reviewReason,omitempty"`
Limit9thInning int32 `json:"limit9thInning,omitempty"`
}

View File

@@ -0,0 +1,38 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballDecision struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
Winner *BaseballPerson `json:"winner,omitempty"`
Loser *BaseballPerson `json:"loser,omitempty"`
Save *BaseballPerson `json:"save,omitempty"`
Empty bool `json:"empty,omitempty"`
NotEmpty bool `json:"notEmpty,omitempty"`
HydratedPeople map[string]interface{} `json:"hydratedPeople,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,35 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballDecisionRestObject struct {
Copyright string `json:"copyright,omitempty"`
Hydrations []string `json:"hydrations,omitempty"`
Winner *BaseballPersonRestObject `json:"winner,omitempty"`
Loser *BaseballPersonRestObject `json:"loser,omitempty"`
Save *BaseballPersonRestObject `json:"save,omitempty"`
}

View File

@@ -0,0 +1,45 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballDefenseRestObject struct {
Copyright string `json:"copyright,omitempty"`
Pitcher *BaseballPersonRestObject `json:"pitcher,omitempty"`
Catcher *BaseballPersonRestObject `json:"catcher,omitempty"`
First *BaseballPersonRestObject `json:"first,omitempty"`
Second *BaseballPersonRestObject `json:"second,omitempty"`
Third *BaseballPersonRestObject `json:"third,omitempty"`
Shortstop *BaseballPersonRestObject `json:"shortstop,omitempty"`
Left *BaseballPersonRestObject `json:"left,omitempty"`
Center *BaseballPersonRestObject `json:"center,omitempty"`
Right *BaseballPersonRestObject `json:"right,omitempty"`
Batter *BaseballPersonRestObject `json:"batter,omitempty"`
OnDeck *BaseballPersonRestObject `json:"onDeck,omitempty"`
InHole *BaseballPersonRestObject `json:"inHole,omitempty"`
BattingOrder int32 `json:"battingOrder,omitempty"`
Team *BaseballTeamRestObject `json:"team,omitempty"`
}

View File

@@ -0,0 +1,34 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballDraftLatestRestObject struct {
Copyright string `json:"copyright,omitempty"`
Pick *BaseballDraftProspectRestObject `json:"pick,omitempty"`
Number int32 `json:"number,omitempty"`
NextUp []BaseballDraftProspectRestObject `json:"nextUp,omitempty"`
}

View File

@@ -0,0 +1,32 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballDraftListRestObject struct {
Copyright string `json:"copyright,omitempty"`
Drafts *BaseballDraftRestObject `json:"drafts,omitempty"`
}

View File

@@ -0,0 +1,60 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballDraftProspect struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
BisPlayerId int32 `json:"bisPlayerId,omitempty"`
BisSchoolId int32 `json:"bisSchoolId,omitempty"`
DraftPlayerId int32 `json:"draftPlayerId,omitempty"`
PickRound string `json:"pickRound,omitempty"`
PickRoundLabel string `json:"pickRoundLabel,omitempty"`
PickNumber int32 `json:"pickNumber,omitempty"`
DisplayPickNumber int32 `json:"displayPickNumber,omitempty"`
RoundPickNumber int32 `json:"roundPickNumber,omitempty"`
EnglishBlurb string `json:"englishBlurb,omitempty"`
SpanishBlurb string `json:"spanishBlurb,omitempty"`
Rank int32 `json:"rank,omitempty"`
PickedTeamCode string `json:"pickedTeamCode,omitempty"`
Home *Location `json:"home,omitempty"`
ScoutingReport string `json:"scoutingReport,omitempty"`
PhotoFlag bool `json:"photoFlag,omitempty"`
School *School `json:"school,omitempty"`
Comments string `json:"comments,omitempty"`
HeadshotLink string `json:"headshotLink,omitempty"`
PickValue string `json:"pickValue,omitempty"`
SigningBonus string `json:"signingBonus,omitempty"`
Person *BaseballPerson `json:"person,omitempty"`
Team *BaseballTeam `json:"team,omitempty"`
DraftType *DraftTypeEnum `json:"draftType,omitempty"`
DraftStatus *DraftStatusEnum `json:"draftStatus,omitempty"`
WasPassed bool `json:"wasPassed,omitempty"`
WasLastPick bool `json:"wasLastPick,omitempty"`
WasSelected bool `json:"wasSelected,omitempty"`
Year string `json:"year,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,51 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballDraftProspectRestObject struct {
Copyright string `json:"copyright,omitempty"`
BisPlayerId int32 `json:"bisPlayerId,omitempty"`
BisSchoolId int32 `json:"bisSchoolId,omitempty"`
PickRound string `json:"pickRound,omitempty"`
PickNumber int32 `json:"pickNumber,omitempty"`
DisplayPickNumber int32 `json:"displayPickNumber,omitempty"`
RoundPickNumber int32 `json:"roundPickNumber,omitempty"`
Rank int32 `json:"rank,omitempty"`
PickValue string `json:"pickValue,omitempty"`
SigningBonus string `json:"signingBonus,omitempty"`
Home *LocationRestObject `json:"home,omitempty"`
ScoutingReport string `json:"scoutingReport,omitempty"`
School *SchoolRestObject `json:"school,omitempty"`
Blurb string `json:"blurb,omitempty"`
HeadshotLink string `json:"headshotLink,omitempty"`
Person *BaseballPersonRestObject `json:"person,omitempty"`
Team *BaseballTeamRestObject `json:"team,omitempty"`
DraftType *DraftTypeEnumRestObject `json:"draftType,omitempty"`
IsDrafted bool `json:"isDrafted,omitempty"`
IsPass bool `json:"isPass,omitempty"`
Year string `json:"year,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballDraftRestObject struct {
Copyright string `json:"copyright,omitempty"`
DraftYear int32 `json:"draftYear,omitempty"`
Rounds []BaseballDraftRoundRestObject `json:"rounds,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballDraftRoundRestObject struct {
Copyright string `json:"copyright,omitempty"`
Round string `json:"round,omitempty"`
Picks []BaseballDraftProspectRestObject `json:"picks,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameAlert struct {
Type_ string `json:"type,omitempty"`
Category string `json:"category,omitempty"`
Description string `json:"description,omitempty"`
ShortDescription string `json:"shortDescription,omitempty"`
Team *BaseballTeam `json:"team,omitempty"`
AlertId string `json:"alertId,omitempty"`
}

View File

@@ -0,0 +1,37 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameAlertRestObject struct {
Copyright string `json:"copyright,omitempty"`
Type_ string `json:"type,omitempty"`
Category string `json:"category,omitempty"`
Description string `json:"description,omitempty"`
ShortDescription string `json:"shortDescription,omitempty"`
Team *BaseballTeamRestObject `json:"team,omitempty"`
AlertId string `json:"alertId,omitempty"`
}

View File

@@ -0,0 +1,39 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameContextRestObject struct {
Copyright string `json:"copyright,omitempty"`
Game *BaseballScheduleItemRestObject `json:"game,omitempty"`
ExpectedStatisticsData *StatDataRestObject `json:"expectedStatisticsData,omitempty"`
RunnerOnThird *BaseballPersonRestObject `json:"runnerOnThird,omitempty"`
LeftFieldSacFlyProbability *SacFlyProbability `json:"leftFieldSacFlyProbability,omitempty"`
CenterFieldSacFlyProbability *SacFlyProbability `json:"centerFieldSacFlyProbability,omitempty"`
RightFieldSacFlyProbability *SacFlyProbability `json:"rightFieldSacFlyProbability,omitempty"`
AwayWinProbability float64 `json:"awayWinProbability,omitempty"`
HomeWinProbability float64 `json:"homeWinProbability,omitempty"`
}

View File

@@ -0,0 +1,41 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameDataGameRestObject struct {
Copyright string `json:"copyright,omitempty"`
Pk int32 `json:"pk,omitempty"`
Type_ string `json:"type,omitempty"`
DoubleHeader string `json:"doubleHeader,omitempty"`
Id string `json:"id,omitempty"`
GamedayType string `json:"gamedayType,omitempty"`
Tiebreaker string `json:"tiebreaker,omitempty"`
GameNumber int32 `json:"gameNumber,omitempty"`
CalendarEventID string `json:"calendarEventID,omitempty"`
Season string `json:"season,omitempty"`
SeasonDisplay string `json:"seasonDisplay,omitempty"`
}

View File

@@ -0,0 +1,50 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameDataRestObject struct {
Copyright string `json:"copyright,omitempty"`
Game *BaseballGameDataGameRestObject `json:"game,omitempty"`
Datetime *BaseballGameDateTimeRestObject `json:"datetime,omitempty"`
Status *GameStatusRestObject `json:"status,omitempty"`
Teams map[string]BaseballTeamRestObject `json:"teams,omitempty"`
Players map[string]BaseballPersonRestObject `json:"players,omitempty"`
Venue *VenueRestObject `json:"venue,omitempty"`
OfficialVenue *VenueRestObject `json:"officialVenue,omitempty"`
Weather *WeatherRestObject `json:"weather,omitempty"`
GameInfo *GameInfoRestObject `json:"gameInfo,omitempty"`
Review *BaseballReviewRestObject `json:"review,omitempty"`
AbsChallenges *BaseballAbsChallengeRestObject `json:"absChallenges,omitempty"`
Flags *BaseballGameFlagRestObject `json:"flags,omitempty"`
Alerts []BaseballGameAlertRestObject `json:"alerts,omitempty"`
ProbablePitchers *BaseballGameProbableRestObject `json:"probablePitchers,omitempty"`
OfficialScorer *BaseballPersonRestObject `json:"officialScorer,omitempty"`
PrimaryDatacaster *BaseballPersonRestObject `json:"primaryDatacaster,omitempty"`
SecondaryDatacaster *BaseballPersonRestObject `json:"secondaryDatacaster,omitempty"`
RuleSettings []RuleSettingsRestObject `json:"ruleSettings,omitempty"`
MoundVisits *MoundVisitsRestObject `json:"moundVisits,omitempty"`
}

View File

@@ -0,0 +1,46 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballGameDateTimeRestObject struct {
Copyright string `json:"copyright,omitempty"`
DateTime time.Time `json:"dateTime,omitempty"`
EndDateTime time.Time `json:"endDateTime,omitempty"`
OriginalDate string `json:"originalDate,omitempty"`
OfficialDate string `json:"officialDate,omitempty"`
ResumeDate string `json:"resumeDate,omitempty"`
ResumeDateTime time.Time `json:"resumeDateTime,omitempty"`
ResumedFromDate string `json:"resumedFromDate,omitempty"`
ResumedFromDateTime time.Time `json:"resumedFromDateTime,omitempty"`
DayNight string `json:"dayNight,omitempty"`
Time string `json:"time,omitempty"`
Ampm string `json:"ampm,omitempty"`
}

View File

@@ -0,0 +1,42 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameFlag struct {
IsNoHitter bool `json:"isNoHitter,omitempty"`
IsPerfectGame bool `json:"isPerfectGame,omitempty"`
IsAwayTeamNoHitter bool `json:"isAwayTeamNoHitter,omitempty"`
IsAwayTeamPerfectGame bool `json:"isAwayTeamPerfectGame,omitempty"`
IsHomeTeamNoHitter bool `json:"isHomeTeamNoHitter,omitempty"`
IsHomeTeamPerfectGame bool `json:"isHomeTeamPerfectGame,omitempty"`
AwayTeamNoHitter bool `json:"awayTeamNoHitter,omitempty"`
HomeTeamNoHitter bool `json:"homeTeamNoHitter,omitempty"`
AwayTeamPerfectGame bool `json:"awayTeamPerfectGame,omitempty"`
HomeTeamPerfectGame bool `json:"homeTeamPerfectGame,omitempty"`
NoHitter bool `json:"noHitter,omitempty"`
PerfectGame bool `json:"perfectGame,omitempty"`
}

View File

@@ -0,0 +1,37 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameFlagRestObject struct {
Copyright string `json:"copyright,omitempty"`
NoHitter bool `json:"noHitter,omitempty"`
PerfectGame bool `json:"perfectGame,omitempty"`
AwayTeamNoHitter bool `json:"awayTeamNoHitter,omitempty"`
AwayTeamPerfectGame bool `json:"awayTeamPerfectGame,omitempty"`
HomeTeamNoHitter bool `json:"homeTeamNoHitter,omitempty"`
HomeTeamPerfectGame bool `json:"homeTeamPerfectGame,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameLeaderRestObject struct {
Copyright string `json:"copyright,omitempty"`
Value float64 `json:"value,omitempty"`
Player *BaseballPersonRestObject `json:"player,omitempty"`
}

View File

@@ -0,0 +1,34 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameLeadersRestObject struct {
Copyright string `json:"copyright,omitempty"`
HitDistance *BaseballGameLeaderRestObject `json:"hitDistance,omitempty"`
HitSpeed *BaseballGameLeaderRestObject `json:"hitSpeed,omitempty"`
PitchSpeed *BaseballGameLeaderRestObject `json:"pitchSpeed,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameLiveDataRestObject struct {
Copyright string `json:"copyright,omitempty"`
Plays *BaseballPlayByPlayRestObject `json:"plays,omitempty"`
Linescore *BaseballLinescoreRestObject `json:"linescore,omitempty"`
Boxscore *BaseballBoxscoreRestObject `json:"boxscore,omitempty"`
Decisions *BaseballDecisionRestObject `json:"decisions,omitempty"`
Leaders *BaseballGameLeadersRestObject `json:"leaders,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameLiveLookinRestObject struct {
Copyright string `json:"copyright,omitempty"`
GamePk int32 `json:"gamePk,omitempty"`
MediaPlaybackId int64 `json:"mediaPlaybackId,omitempty"`
Headline string `json:"headline,omitempty"`
Kicker string `json:"kicker,omitempty"`
Playbacks []LiveLookinPlayback `json:"playbacks,omitempty"`
}

View File

@@ -0,0 +1,35 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameMetaDataRestObject struct {
Copyright string `json:"copyright,omitempty"`
Wait int32 `json:"wait,omitempty"`
TimeStamp string `json:"timeStamp,omitempty"`
GameEvents []string `json:"gameEvents,omitempty"`
LogicalEvents []string `json:"logicalEvents,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameProbableRestObject struct {
Copyright string `json:"copyright,omitempty"`
Away *BaseballPersonRestObject `json:"away,omitempty"`
Home *BaseballPersonRestObject `json:"home,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballGameRestObject struct {
Copyright string `json:"copyright,omitempty"`
GamePk int32 `json:"gamePk,omitempty"`
Link string `json:"link,omitempty"`
MetaData *BaseballGameMetaDataRestObject `json:"metaData,omitempty"`
GameData *BaseballGameDataRestObject `json:"gameData,omitempty"`
LiveData *BaseballGameLiveDataRestObject `json:"liveData,omitempty"`
}

View File

@@ -0,0 +1,56 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballHit struct {
LaunchData *LaunchData `json:"launchData,omitempty"`
TrajectoryData *HitTrajectoryData `json:"trajectoryData,omitempty"`
LandingData *StartEndData `json:"landingData,omitempty"`
LastMeasuredData *StartEndData `json:"lastMeasuredData,omitempty"`
ReducedConfidence []string `json:"reducedConfidence,omitempty"`
Team *BaseballTeam `json:"team,omitempty"`
Inning int32 `json:"inning,omitempty"`
Pitcher *BaseballPerson `json:"pitcher,omitempty"`
Batter *BaseballPerson `json:"batter,omitempty"`
CoordX float64 `json:"coordX,omitempty"`
CoordY float64 `json:"coordY,omitempty"`
LandingPosX float64 `json:"landingPosX,omitempty"`
LandingPosY float64 `json:"landingPosY,omitempty"`
Type_ string `json:"type,omitempty"`
Description string `json:"description,omitempty"`
LaunchSpeed float64 `json:"launchSpeed,omitempty"`
TotalDistance float64 `json:"totalDistance,omitempty"`
LaunchAngle float64 `json:"launchAngle,omitempty"`
Trajectory string `json:"trajectory,omitempty"`
Hardness string `json:"hardness,omitempty"`
Location string `json:"location,omitempty"`
IsBarrel bool `json:"isBarrel,omitempty"`
HitProbability float64 `json:"hitProbability,omitempty"`
BatSpeed float64 `json:"batSpeed,omitempty"`
IsSwordSwing bool `json:"isSwordSwing,omitempty"`
Descriptions map[string]string `json:"descriptions,omitempty"`
}

View File

@@ -0,0 +1,47 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballHitDataRestObject struct {
Copyright string `json:"copyright,omitempty"`
LaunchSpeed float64 `json:"launchSpeed,omitempty"`
LaunchAngle float64 `json:"launchAngle,omitempty"`
TotalDistance float64 `json:"totalDistance,omitempty"`
Trajectory string `json:"trajectory,omitempty"`
Hardness string `json:"hardness,omitempty"`
Location string `json:"location,omitempty"`
Coordinates *Coordinates `json:"coordinates,omitempty"`
IsBarrel bool `json:"isBarrel,omitempty"`
HitProbability float64 `json:"hitProbability,omitempty"`
BatSpeed float64 `json:"batSpeed,omitempty"`
IsSwordSwing bool `json:"isSwordSwing,omitempty"`
LaunchData *LaunchDataRestObject `json:"launchData,omitempty"`
TrajectoryData *HitTrajectoryDataRestObject `json:"trajectoryData,omitempty"`
LandingData *StartEndDataRestObject `json:"landingData,omitempty"`
LastMeasuredData *StartEndDataRestObject `json:"lastMeasuredData,omitempty"`
ReducedConfidence []string `json:"reducedConfidence,omitempty"`
}

View File

@@ -0,0 +1,35 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballHotColdZone struct {
Zone string `json:"zone,omitempty"`
Sweetness string `json:"sweetness,omitempty"`
Temp string `json:"temp,omitempty"`
Color string `json:"color,omitempty"`
Value string `json:"value,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballHotColdZoneRestObject struct {
Copyright string `json:"copyright,omitempty"`
Zone string `json:"zone,omitempty"`
Color string `json:"color,omitempty"`
Sweetness string `json:"sweetness,omitempty"`
Temp string `json:"temp,omitempty"`
Value string `json:"value,omitempty"`
}

View File

@@ -0,0 +1,40 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballInning struct {
RunsAway int32 `json:"runsAway,omitempty"`
RunsHome int32 `json:"runsHome,omitempty"`
HitsAway int32 `json:"hitsAway,omitempty"`
HitsHome int32 `json:"hitsHome,omitempty"`
ErrorsAway int32 `json:"errorsAway,omitempty"`
ErrorsHome int32 `json:"errorsHome,omitempty"`
LeftOnBaseAway int32 `json:"leftOnBaseAway,omitempty"`
LeftOnBaseHome int32 `json:"leftOnBaseHome,omitempty"`
Num int32 `json:"num,omitempty"`
OrdinalNum string `json:"ordinalNum,omitempty"`
}

View File

@@ -0,0 +1,95 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballLinescore struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
AwayScore int32 `json:"awayScore,omitempty"`
HomeScore int32 `json:"homeScore,omitempty"`
GameStatus *IGameStatus `json:"gameStatus,omitempty"`
HomeTeam *BaseballTeam `json:"homeTeam,omitempty"`
AwayTeam *BaseballTeam `json:"awayTeam,omitempty"`
GamePk int32 `json:"gamePk,omitempty"`
Note string `json:"note,omitempty"`
ScheduledInnings int32 `json:"scheduledInnings,omitempty"`
CurrentInning int32 `json:"currentInning,omitempty"`
CurrentInningOrdinal string `json:"currentInningOrdinal,omitempty"`
InningState string `json:"inningState,omitempty"`
InningHalf string `json:"inningHalf,omitempty"`
IsTopInning bool `json:"isTopInning,omitempty"`
Innings []BaseballInning `json:"innings,omitempty"`
RunsAway int32 `json:"runsAway,omitempty"`
RunsHome int32 `json:"runsHome,omitempty"`
AwayHits int32 `json:"awayHits,omitempty"`
HomeHits int32 `json:"homeHits,omitempty"`
AwayErrors int32 `json:"awayErrors,omitempty"`
HomeErrors int32 `json:"homeErrors,omitempty"`
AwayLeftOnBase int32 `json:"awayLeftOnBase,omitempty"`
HomeLeftOnBase int32 `json:"homeLeftOnBase,omitempty"`
AwayIsWinner bool `json:"awayIsWinner,omitempty"`
HomeIsWinner bool `json:"homeIsWinner,omitempty"`
Balls int32 `json:"balls,omitempty"`
Strikes int32 `json:"strikes,omitempty"`
Outs int32 `json:"outs,omitempty"`
BatTeam *BaseballTeam `json:"batTeam,omitempty"`
BatTeamsLastPitcher *BaseballPerson `json:"batTeamsLastPitcher,omitempty"`
BatterPosition *BaseballPosition `json:"batterPosition,omitempty"`
Batter *BaseballPerson `json:"batter,omitempty"`
OnDeck *BaseballPerson `json:"onDeck,omitempty"`
InHole *BaseballPerson `json:"inHole,omitempty"`
BattingOrder int32 `json:"battingOrder,omitempty"`
OnFirst *BaseballPerson `json:"onFirst,omitempty"`
OnSecond *BaseballPerson `json:"onSecond,omitempty"`
OnThird *BaseballPerson `json:"onThird,omitempty"`
PostOnFirst *BaseballPerson `json:"postOnFirst,omitempty"`
PostOnSecond *BaseballPerson `json:"postOnSecond,omitempty"`
PostOnThird *BaseballPerson `json:"postOnThird,omitempty"`
FieldTeam *BaseballTeam `json:"fieldTeam,omitempty"`
Pitcher *BaseballPerson `json:"pitcher,omitempty"`
Catcher *BaseballPerson `json:"catcher,omitempty"`
FirstBase *BaseballPerson `json:"firstBase,omitempty"`
SecondBase *BaseballPerson `json:"secondBase,omitempty"`
ThirdBase *BaseballPerson `json:"thirdBase,omitempty"`
Shortstop *BaseballPerson `json:"shortstop,omitempty"`
LeftField *BaseballPerson `json:"leftField,omitempty"`
CenterField *BaseballPerson `json:"centerField,omitempty"`
RightField *BaseballPerson `json:"rightField,omitempty"`
FieldTeamsDueUpBatter *BaseballPerson `json:"fieldTeamsDueUpBatter,omitempty"`
FieldTeamsDueUpOnDeck *BaseballPerson `json:"fieldTeamsDueUpOnDeck,omitempty"`
FieldTeamsDueUpInHole *BaseballPerson `json:"fieldTeamsDueUpInHole,omitempty"`
FieldTeamsBattingOrder int32 `json:"fieldTeamsBattingOrder,omitempty"`
PlayersNotInField map[string]BaseballPosition `json:"playersNotInField,omitempty"`
Tie bool `json:"tie,omitempty"`
TopInning bool `json:"topInning,omitempty"`
HydratedStats map[string]interface{} `json:"hydratedStats,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,46 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballLinescoreRestObject struct {
Copyright string `json:"copyright,omitempty"`
Note string `json:"note,omitempty"`
CurrentInning int32 `json:"currentInning,omitempty"`
CurrentInningOrdinal string `json:"currentInningOrdinal,omitempty"`
InningState string `json:"inningState,omitempty"`
InningHalf string `json:"inningHalf,omitempty"`
IsTopInning bool `json:"isTopInning,omitempty"`
ScheduledInnings int32 `json:"scheduledInnings,omitempty"`
Innings []InningRestObject `json:"innings,omitempty"`
Teams *BaseballLinescoreTeamInfoRestObject `json:"teams,omitempty"`
Defense *BaseballDefenseRestObject `json:"defense,omitempty"`
Offense *BaseballOffenseRestObject `json:"offense,omitempty"`
Balls int32 `json:"balls,omitempty"`
Strikes int32 `json:"strikes,omitempty"`
Outs int32 `json:"outs,omitempty"`
Tie bool `json:"tie,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballLinescoreTeamInfoRestObject struct {
Copyright string `json:"copyright,omitempty"`
Home *TeamInfo `json:"home,omitempty"`
Away *TeamInfo `json:"away,omitempty"`
}

View File

@@ -0,0 +1,35 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballLineup struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
AwayPlayers []BaseballPerson `json:"awayPlayers,omitempty"`
HomePlayers []BaseballPerson `json:"homePlayers,omitempty"`
HydratedPeople map[string]interface{} `json:"hydratedPeople,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballLineupRestObject struct {
Copyright string `json:"copyright,omitempty"`
HomePlayers []BaseballPersonRestObject `json:"homePlayers,omitempty"`
AwayPlayers []BaseballPersonRestObject `json:"awayPlayers,omitempty"`
}

View File

@@ -0,0 +1,44 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballOffenseRestObject struct {
Copyright string `json:"copyright,omitempty"`
Batter *BaseballPersonRestObject `json:"batter,omitempty"`
OnDeck *BaseballPersonRestObject `json:"onDeck,omitempty"`
InHole *BaseballPersonRestObject `json:"inHole,omitempty"`
First *BaseballPersonRestObject `json:"first,omitempty"`
Second *BaseballPersonRestObject `json:"second,omitempty"`
Third *BaseballPersonRestObject `json:"third,omitempty"`
PostOnFirst *BaseballPersonRestObject `json:"postOnFirst,omitempty"`
PostOnSecond *BaseballPersonRestObject `json:"postOnSecond,omitempty"`
PostOnThird *BaseballPersonRestObject `json:"postOnThird,omitempty"`
Pitcher *BaseballPersonRestObject `json:"pitcher,omitempty"`
BatterPosition *PositionRestObject `json:"batterPosition,omitempty"`
BattingOrder int32 `json:"battingOrder,omitempty"`
Team *BaseballTeamRestObject `json:"team,omitempty"`
}

View File

@@ -0,0 +1,128 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballPerson struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
PrimaryPosition *BaseballPosition `json:"primaryPosition,omitempty"`
Stats *Stats `json:"stats,omitempty"`
OtherNames *OtherNames `json:"otherNames,omitempty"`
Id int32 `json:"id,omitempty"`
FirstName string `json:"firstName,omitempty"`
UseName string `json:"useName,omitempty"`
MiddleName string `json:"middleName,omitempty"`
LastName string `json:"lastName,omitempty"`
UseLastName string `json:"useLastName,omitempty"`
NickName string `json:"nickName,omitempty"`
NickNames []string `json:"nickNames,omitempty"`
BoxscoreName string `json:"boxscoreName,omitempty"`
PrimaryNumber string `json:"primaryNumber,omitempty"`
RosterNumber string `json:"rosterNumber,omitempty"`
DraftYear int32 `json:"draftYear,omitempty"`
Age int32 `json:"age,omitempty"`
BirthCity string `json:"birthCity,omitempty"`
BirthStateProvince string `json:"birthStateProvince,omitempty"`
BirthCountry string `json:"birthCountry,omitempty"`
BirthDate string `json:"birthDate,omitempty"`
DeathCity string `json:"deathCity,omitempty"`
DeathStateProvince string `json:"deathStateProvince,omitempty"`
DeathCountry string `json:"deathCountry,omitempty"`
DeathDate string `json:"deathDate,omitempty"`
LastPlayedDate string `json:"lastPlayedDate,omitempty"`
Pronunciation string `json:"pronunciation,omitempty"`
FullName string `json:"fullName,omitempty"`
Height int32 `json:"height,omitempty"`
HeightFeet int32 `json:"heightFeet,omitempty"`
HeightInches int32 `json:"heightInches,omitempty"`
Weight int32 `json:"weight,omitempty"`
CurrentTeam *BaseballTeam `json:"currentTeam,omitempty"`
IsRookie bool `json:"isRookie,omitempty"`
IsActive bool `json:"isActive,omitempty"`
Gender string `json:"gender,omitempty"`
NameMatrilineal string `json:"nameMatrilineal,omitempty"`
IsPlayer bool `json:"isPlayer,omitempty"`
IsVerified bool `json:"isVerified,omitempty"`
IsAlternateCaptain bool `json:"isAlternateCaptain,omitempty"`
IsCaptain bool `json:"isCaptain,omitempty"`
Twitter string `json:"twitter,omitempty"`
Awards []Award `json:"awards,omitempty"`
SocialMediaInfo *SocialMediaInfo `json:"socialMediaInfo,omitempty"`
EducationInfo *EducationInfo `json:"educationInfo,omitempty"`
Photos []Photo `json:"photos,omitempty"`
Draft []PlayerDraftInfo `json:"draft,omitempty"`
AdditionalBio *AdditionalBio `json:"additionalBio,omitempty"`
PhoneticName string `json:"phoneticName,omitempty"`
Nationality string `json:"nationality,omitempty"`
BatSide *DynamicLookupEnum `json:"batSide,omitempty"`
PitchHand *DynamicLookupEnum `json:"pitchHand,omitempty"`
MlbDebutDate string `json:"mlbDebutDate,omitempty"`
BatterPitcher string `json:"batterPitcher,omitempty"`
Note string `json:"note,omitempty"`
NameSlug string `json:"nameSlug,omitempty"`
NameTitle string `json:"nameTitle,omitempty"`
NamePrefix string `json:"namePrefix,omitempty"`
NameFirstLast string `json:"nameFirstLast,omitempty"`
FirstLastName string `json:"firstLastName,omitempty"`
LastFirstName string `json:"lastFirstName,omitempty"`
LastInitName string `json:"lastInitName,omitempty"`
InitLastName string `json:"initLastName,omitempty"`
FullFMLName string `json:"fullFMLName,omitempty"`
FullLFMName string `json:"fullLFMName,omitempty"`
StrikeZoneTop float64 `json:"strikeZoneTop,omitempty"`
StrikeZoneBottom float64 `json:"strikeZoneBottom,omitempty"`
AlumniLastSeason string `json:"alumniLastSeason,omitempty"`
LanguageId int32 `json:"languageId,omitempty"`
Transactions []Transaction `json:"transactions,omitempty"`
Drafts []BaseballDraftProspect `json:"drafts,omitempty"`
Relatives []Relative `json:"relatives,omitempty"`
Articles []Article `json:"articles,omitempty"`
Videos []Video `json:"videos,omitempty"`
MixedFeed []IFeed `json:"mixedFeed,omitempty"`
XrefIds []XrefId `json:"xrefIds,omitempty"`
DepthCharts []DepthChart `json:"depthCharts,omitempty"`
NextStarts []BaseballScheduleItem `json:"nextStarts,omitempty"`
RookieSeasons []string `json:"rookieSeasons,omitempty"`
Pitcher bool `json:"pitcher,omitempty"`
Fielder bool `json:"fielder,omitempty"`
HydratedSocial map[string]interface{} `json:"hydratedSocial,omitempty"`
HydratedEducation map[string]interface{} `json:"hydratedEducation,omitempty"`
HydratedStats map[string]interface{} `json:"hydratedStats,omitempty"`
HydratedCurrentTeam map[string]interface{} `json:"hydratedCurrentTeam,omitempty"`
HydratedTeam map[string]interface{} `json:"hydratedTeam,omitempty"`
HydratedAwards map[string]interface{} `json:"hydratedAwards,omitempty"`
HydratedPersonRosterEntries map[string]interface{} `json:"hydratedPersonRosterEntries,omitempty"`
HydratedPersonJobsEntries map[string]interface{} `json:"hydratedPersonJobsEntries,omitempty"`
HydratedRelatives map[string]interface{} `json:"hydratedRelatives,omitempty"`
DraftProspects map[string]interface{} `json:"draftProspects,omitempty"`
HydratedDepthCharts map[string]interface{} `json:"hydratedDepthCharts,omitempty"`
HydratedNextStarts map[string]interface{} `json:"hydratedNextStarts,omitempty"`
HydratedPlayerPhotos map[string]interface{} `json:"hydratedPlayerPhotos,omitempty"`
HydratedArticles map[string]interface{} `json:"hydratedArticles,omitempty"`
HydratedVideos map[string]interface{} `json:"hydratedVideos,omitempty"`
HydratedMixedFeed map[string]interface{} `json:"hydratedMixedFeed,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,104 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballPersonRestObject struct {
Id int32 `json:"id,omitempty"`
FullName string `json:"fullName,omitempty"`
Link string `json:"link,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
PrimaryNumber string `json:"primaryNumber,omitempty"`
BirthDate string `json:"birthDate,omitempty"`
CurrentAge int32 `json:"currentAge,omitempty"`
BirthCity string `json:"birthCity,omitempty"`
BirthStateProvince string `json:"birthStateProvince,omitempty"`
BirthCountry string `json:"birthCountry,omitempty"`
Nationality string `json:"nationality,omitempty"`
Height string `json:"height,omitempty"`
Weight int32 `json:"weight,omitempty"`
Active bool `json:"active,omitempty"`
AlternateCaptain bool `json:"alternateCaptain,omitempty"`
Captain bool `json:"captain,omitempty"`
Rookie bool `json:"rookie,omitempty"`
CurrentTeam *BaseballTeamRestObject `json:"currentTeam,omitempty"`
PrimaryPosition *PositionRestObject `json:"primaryPosition,omitempty"`
Social *SocialMediaRestObject `json:"social,omitempty"`
Copyright string `json:"copyright,omitempty"`
Hydrations []string `json:"hydrations,omitempty"`
UseName string `json:"useName,omitempty"`
UseLastName string `json:"useLastName,omitempty"`
MiddleName string `json:"middleName,omitempty"`
BoxscoreName string `json:"boxscoreName,omitempty"`
NickName string `json:"nickName,omitempty"`
Gender string `json:"gender,omitempty"`
NameMatrilineal string `json:"nameMatrilineal,omitempty"`
IsPlayer bool `json:"isPlayer,omitempty"`
IsVerified bool `json:"isVerified,omitempty"`
DraftYear int32 `json:"draftYear,omitempty"`
DeathDate string `json:"deathDate,omitempty"`
DeathCity string `json:"deathCity,omitempty"`
DeathStateProvince string `json:"deathStateProvince,omitempty"`
DeathCountry string `json:"deathCountry,omitempty"`
Pronunciation string `json:"pronunciation,omitempty"`
LastPlayedDate string `json:"lastPlayedDate,omitempty"`
RookieSeasons []string `json:"rookieSeasons,omitempty"`
OtherNames *OtherNamesRestObject `json:"otherNames,omitempty"`
Education *EducationRestObject `json:"education,omitempty"`
Photos []PhotoRestObject `json:"photos,omitempty"`
Stats []StatContainerRestObject `json:"stats,omitempty"`
Awards []AwardRestObject `json:"awards,omitempty"`
Draft []PlayerDraftInfoRestObject `json:"draft,omitempty"`
AdditionalBio *AdditionalBioRestObject `json:"additionalBio,omitempty"`
MlbDebutDate string `json:"mlbDebutDate,omitempty"`
BatSide *DynamicEnumRestObject `json:"batSide,omitempty"`
PitchHand *DynamicEnumRestObject `json:"pitchHand,omitempty"`
Note string `json:"note,omitempty"`
NameFirstLast string `json:"nameFirstLast,omitempty"`
NameTitle string `json:"nameTitle,omitempty"`
NamePrefix string `json:"namePrefix,omitempty"`
NameSuffix string `json:"nameSuffix,omitempty"`
NameSlug string `json:"nameSlug,omitempty"`
FirstLastName string `json:"firstLastName,omitempty"`
LastFirstName string `json:"lastFirstName,omitempty"`
LastInitName string `json:"lastInitName,omitempty"`
InitLastName string `json:"initLastName,omitempty"`
FullFMLName string `json:"fullFMLName,omitempty"`
FullLFMName string `json:"fullLFMName,omitempty"`
StrikeZoneTop float64 `json:"strikeZoneTop,omitempty"`
StrikeZoneBottom float64 `json:"strikeZoneBottom,omitempty"`
AlumniLastSeason string `json:"alumniLastSeason,omitempty"`
Drafts []BaseballDraftProspectRestObject `json:"drafts,omitempty"`
Transactions []TransactionRestObject `json:"transactions,omitempty"`
Articles []IFeedRestObject `json:"articles,omitempty"`
Videos []IFeedRestObject `json:"videos,omitempty"`
MixedFeed []IFeedRestObject `json:"mixedFeed,omitempty"`
Relatives []BaseballPersonRestObject `json:"relatives,omitempty"`
XrefIds []XrefIdRestObject `json:"xrefIds,omitempty"`
Nicknames []string `json:"nicknames,omitempty"`
DepthCharts []DepthChartRestObject `json:"depthCharts,omitempty"`
}

View File

@@ -0,0 +1,68 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballPitch struct {
BallColor string `json:"ballColor,omitempty"`
TrailColor string `json:"trailColor,omitempty"`
StartSpeed float64 `json:"startSpeed,omitempty"`
EndSpeed float64 `json:"endSpeed,omitempty"`
NastyFactor float64 `json:"nastyFactor,omitempty"`
StrikeZoneTop float64 `json:"strikeZoneTop,omitempty"`
StrikeZoneBottom float64 `json:"strikeZoneBottom,omitempty"`
StrikeZoneWidth float64 `json:"strikeZoneWidth,omitempty"`
StrikeZoneDepth float64 `json:"strikeZoneDepth,omitempty"`
GetaX float64 `json:"getaX,omitempty"`
GetaY float64 `json:"getaY,omitempty"`
GetaZ float64 `json:"getaZ,omitempty"`
PfxX float64 `json:"pfxX,omitempty"`
PfxZ float64 `json:"pfxZ,omitempty"`
GetpX float64 `json:"getpX,omitempty"`
GetpZ float64 `json:"getpZ,omitempty"`
GetvX0 float64 `json:"getvX0,omitempty"`
GetvY0 float64 `json:"getvY0,omitempty"`
GetvZ0 float64 `json:"getvZ0,omitempty"`
X float64 `json:"x,omitempty"`
Y float64 `json:"y,omitempty"`
Z0 float64 `json:"z0,omitempty"`
Y0 float64 `json:"y0,omitempty"`
X0 float64 `json:"x0,omitempty"`
BreakHorizontal float64 `json:"breakHorizontal,omitempty"`
BreakVertical float64 `json:"breakVertical,omitempty"`
BreakVerticalInduced float64 `json:"breakVerticalInduced,omitempty"`
BreakAngle float64 `json:"breakAngle,omitempty"`
BreakLength float64 `json:"breakLength,omitempty"`
BreakX float64 `json:"breakX,omitempty"`
BreakY float64 `json:"breakY,omitempty"`
BreakZ float64 `json:"breakZ,omitempty"`
Zone int32 `json:"zone,omitempty"`
SpinRate int32 `json:"spinRate,omitempty"`
SpinDirection int32 `json:"spinDirection,omitempty"`
TypeConfidence float64 `json:"typeConfidence,omitempty"`
PlateTime float64 `json:"plateTime,omitempty"`
Extension float64 `json:"extension,omitempty"`
}

View File

@@ -0,0 +1,44 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballPitchDataRestObject struct {
Copyright string `json:"copyright,omitempty"`
StartSpeed float64 `json:"startSpeed,omitempty"`
EndSpeed float64 `json:"endSpeed,omitempty"`
NastyFactor float64 `json:"nastyFactor,omitempty"`
StrikeZoneTop float64 `json:"strikeZoneTop,omitempty"`
StrikeZoneBottom float64 `json:"strikeZoneBottom,omitempty"`
StrikeZoneWidth float64 `json:"strikeZoneWidth,omitempty"`
StrikeZoneDepth float64 `json:"strikeZoneDepth,omitempty"`
Coordinates *Coordinates `json:"coordinates,omitempty"`
Breaks *Breaks `json:"breaks,omitempty"`
Zone int32 `json:"zone,omitempty"`
TypeConfidence float64 `json:"typeConfidence,omitempty"`
PlateTime float64 `json:"plateTime,omitempty"`
Extension float64 `json:"extension,omitempty"`
}

View File

@@ -0,0 +1,115 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballPlay struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
Balls int32 `json:"balls,omitempty"`
Strikes int32 `json:"strikes,omitempty"`
Outs int32 `json:"outs,omitempty"`
Inning int32 `json:"inning,omitempty"`
AtBatIndex int32 `json:"atBatIndex,omitempty"`
HalfInning string `json:"halfInning,omitempty"`
HasOut bool `json:"hasOut,omitempty"`
Batter *BaseballPerson `json:"batter,omitempty"`
Pitcher *BaseballPerson `json:"pitcher,omitempty"`
StartTime time.Time `json:"startTime,omitempty"`
EndTime time.Time `json:"endTime,omitempty"`
BatterHotColdZoneStats *Stats `json:"batterHotColdZoneStats,omitempty"`
PitcherHotColdZoneStats *Stats `json:"pitcherHotColdZoneStats,omitempty"`
BatterHotColdZones []BaseballHotColdZone `json:"batterHotColdZones,omitempty"`
PitcherHotColdZones []BaseballHotColdZone `json:"pitcherHotColdZones,omitempty"`
SplitsBatter string `json:"splitsBatter,omitempty"`
SplitsPitcher string `json:"splitsPitcher,omitempty"`
SplitsMenOnBase string `json:"splitsMenOnBase,omitempty"`
PitchHand *DynamicLookupEnum `json:"pitchHand,omitempty"`
BatSide *DynamicLookupEnum `json:"batSide,omitempty"`
CaptivatingIndex int32 `json:"captivatingIndex,omitempty"`
HitTrajectory *HitTrajectory `json:"hitTrajectory,omitempty"`
EventType string `json:"eventType,omitempty"`
EventTypeEnum *EventType `json:"eventTypeEnum,omitempty"`
Result string `json:"result,omitempty"`
ResultMap map[string]string `json:"resultMap,omitempty"`
Description string `json:"description,omitempty"`
NumRbi int32 `json:"numRbi,omitempty"`
AwayScore int32 `json:"awayScore,omitempty"`
HomeScore int32 `json:"homeScore,omitempty"`
IsComplete bool `json:"isComplete,omitempty"`
IsScoringPlay bool `json:"isScoringPlay,omitempty"`
HasReview bool `json:"hasReview,omitempty"`
ReviewType string `json:"reviewType,omitempty"`
ReviewOverturned bool `json:"reviewOverturned,omitempty"`
ReviewInProgress bool `json:"reviewInProgress,omitempty"`
ChallengeTeamId int32 `json:"challengeTeamId,omitempty"`
Reviews []BaseballReview `json:"reviews,omitempty"`
RunnerOn1b *BaseballPerson `json:"runnerOn1b,omitempty"`
RunnerOn2b *BaseballPerson `json:"runnerOn2b,omitempty"`
RunnerOn3b *BaseballPerson `json:"runnerOn3b,omitempty"`
PitchIndex []int32 `json:"pitchIndex,omitempty"`
ActionIndex []int32 `json:"actionIndex,omitempty"`
RunnerIndex []interface{} `json:"runnerIndex,omitempty"`
RunnerMovements []BaseballRunnerMovement `json:"runnerMovements,omitempty"`
PlayEvents []BaseballPlayEvent `json:"playEvents,omitempty"`
Credits []PlayCredit `json:"credits,omitempty"`
Flags []PlayCredit `json:"flags,omitempty"`
IsDoublePlay bool `json:"isDoublePlay,omitempty"`
IsGroundIntoDoublePlay bool `json:"isGroundIntoDoublePlay,omitempty"`
IsTriplePlay bool `json:"isTriplePlay,omitempty"`
IsGroundIntoTriplePlay bool `json:"isGroundIntoTriplePlay,omitempty"`
NumLeftOnBase int32 `json:"numLeftOnBase,omitempty"`
NumLeftOnBaseScoring int32 `json:"numLeftOnBaseScoring,omitempty"`
OffensiveAlignmentId string `json:"offensiveAlignmentId,omitempty"`
DefensiveAlignmentId string `json:"defensiveAlignmentId,omitempty"`
Complete bool `json:"complete,omitempty"`
ScoringPlay bool `json:"scoringPlay,omitempty"`
TopInning bool `json:"topInning,omitempty"`
Results map[string]string `json:"results,omitempty"`
Descriptions map[string]string `json:"descriptions,omitempty"`
PlateAppearance bool `json:"plateAppearance,omitempty"`
Summary *BaseballPlay `json:"summary,omitempty"`
BatterResultEvent *EventType `json:"batterResultEvent,omitempty"`
ResponsibleBatter *BaseballPerson `json:"responsibleBatter,omitempty"`
PayoffEvent *BaseballPlayEvent `json:"payoffEvent,omitempty"`
TeamNumLeftOnBase int32 `json:"teamNumLeftOnBase,omitempty"`
NumLeftOnBaseScoringPosition int32 `json:"numLeftOnBaseScoringPosition,omitempty"`
Hit bool `json:"hit,omitempty"`
AtBat bool `json:"atBat,omitempty"`
DoublePlay bool `json:"doublePlay,omitempty"`
TriplePlay bool `json:"triplePlay,omitempty"`
GroundIntoDoublePlay bool `json:"groundIntoDoublePlay,omitempty"`
GroundIntoTriplePlay bool `json:"groundIntoTriplePlay,omitempty"`
GroundOut bool `json:"groundOut,omitempty"`
ResponsiblePitcher *BaseballPerson `json:"responsiblePitcher,omitempty"`
InPlayEvent *BaseballPlayEvent `json:"inPlayEvent,omitempty"`
NumErrors int32 `json:"numErrors,omitempty"`
NumRuns int32 `json:"numRuns,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,35 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballPlayByPlayRestObject struct {
Copyright string `json:"copyright,omitempty"`
AllPlays []BaseballPlayRestObject `json:"allPlays,omitempty"`
CurrentPlay *BaseballPlayRestObject `json:"currentPlay,omitempty"`
ScoringPlays []int32 `json:"scoringPlays,omitempty"`
PlaysByInning []InningPlay `json:"playsByInning,omitempty"`
}

View File

@@ -0,0 +1,118 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballPlayEvent struct {
Balls int32 `json:"balls,omitempty"`
Strikes int32 `json:"strikes,omitempty"`
Outs int32 `json:"outs,omitempty"`
RunnerOn1b bool `json:"runnerOn1b,omitempty"`
RunnerOn2b bool `json:"runnerOn2b,omitempty"`
RunnerOn3b bool `json:"runnerOn3b,omitempty"`
Inning int32 `json:"inning,omitempty"`
IsTopInning bool `json:"isTopInning,omitempty"`
PreBalls int32 `json:"preBalls,omitempty"`
PreStrikes int32 `json:"preStrikes,omitempty"`
PreOuts int32 `json:"preOuts,omitempty"`
PostBalls int32 `json:"postBalls,omitempty"`
PostStrikes int32 `json:"postStrikes,omitempty"`
PostOuts int32 `json:"postOuts,omitempty"`
PostRunnerOn1b bool `json:"postRunnerOn1b,omitempty"`
PostRunnerOn2b bool `json:"postRunnerOn2b,omitempty"`
PostRunnerOn3b bool `json:"postRunnerOn3b,omitempty"`
PitchNumber int32 `json:"pitchNumber,omitempty"`
PickoffNumber int32 `json:"pickoffNumber,omitempty"`
AtBatNumber int32 `json:"atBatNumber,omitempty"`
EventTypeEnum *EventType `json:"eventTypeEnum,omitempty"`
Description string `json:"description,omitempty"`
DescriptionMap map[string]string `json:"descriptionMap,omitempty"`
PitchCall *DynamicLookupEnum `json:"pitchCall,omitempty"`
PitchType *DynamicLookupEnum `json:"pitchType,omitempty"`
Pitch *BaseballPitch `json:"pitch,omitempty"`
Hit *BaseballHit `json:"hit,omitempty"`
Index int32 `json:"index,omitempty"`
PfxId string `json:"pfxId,omitempty"`
PlayId string `json:"playId,omitempty"`
ActionPlayId string `json:"actionPlayId,omitempty"`
IsPitch bool `json:"isPitch,omitempty"`
IsInPlay bool `json:"isInPlay,omitempty"`
IsStrike bool `json:"isStrike,omitempty"`
IsBall bool `json:"isBall,omitempty"`
Event string `json:"event,omitempty"`
EventMap map[string]string `json:"eventMap,omitempty"`
Code string `json:"code,omitempty"`
Type_ string `json:"type,omitempty"`
StartTime time.Time `json:"startTime,omitempty"`
EndTime time.Time `json:"endTime,omitempty"`
Player *BaseballPerson `json:"player,omitempty"`
Umpire *BaseballPerson `json:"umpire,omitempty"`
ReplacedPlayer *BaseballPerson `json:"replacedPlayer,omitempty"`
Position *BaseballPosition `json:"position,omitempty"`
BattingOrder string `json:"battingOrder,omitempty"`
Scored bool `json:"scored,omitempty"`
IsOut bool `json:"isOut,omitempty"`
AwayScore int32 `json:"awayScore,omitempty"`
HomeScore int32 `json:"homeScore,omitempty"`
IsAtBat bool `json:"isAtBat,omitempty"`
IsPlateAppearance bool `json:"isPlateAppearance,omitempty"`
IsBaseHit bool `json:"isBaseHit,omitempty"`
PitchHand *DynamicLookupEnum `json:"pitchHand,omitempty"`
BatSide *DynamicLookupEnum `json:"batSide,omitempty"`
HasReview bool `json:"hasReview,omitempty"`
ReviewType string `json:"reviewType,omitempty"`
ReviewOverturned bool `json:"reviewOverturned,omitempty"`
ReviewInProgress bool `json:"reviewInProgress,omitempty"`
ChallengeTeamId int32 `json:"challengeTeamId,omitempty"`
Reviews []BaseballReview `json:"reviews,omitempty"`
FromCatcher bool `json:"fromCatcher,omitempty"`
InjuryType string `json:"injuryType,omitempty"`
Players *BaseballLinescore `json:"players,omitempty"`
DefensiveAlignmentId string `json:"defensiveAlignmentId,omitempty"`
OffensiveAlignmentId string `json:"offensiveAlignmentId,omitempty"`
OffensiveLineupId string `json:"offensiveLineupId,omitempty"`
DefensiveLineupId string `json:"defensiveLineupId,omitempty"`
Umpires []Official `json:"umpires,omitempty"`
Credits []PlayCredit `json:"credits,omitempty"`
Base int32 `json:"base,omitempty"`
IsDoublePlay bool `json:"isDoublePlay,omitempty"`
NumInheritedRunners int32 `json:"numInheritedRunners,omitempty"`
DisengagementNum int32 `json:"disengagementNum,omitempty"`
Violation *BaseballViolation `json:"violation,omitempty"`
NumberOfPeopleOnBaseScoringPosition int32 `json:"numberOfPeopleOnBaseScoringPosition,omitempty"`
Descriptions map[string]string `json:"descriptions,omitempty"`
Events map[string]string `json:"events,omitempty"`
RunnerGoing bool `json:"runnerGoing,omitempty"`
Summary *BaseballPlayEvent `json:"summary,omitempty"`
NumberOfPeopleOnBase int32 `json:"numberOfPeopleOnBase,omitempty"`
DoublePlay bool `json:"doublePlay,omitempty"`
BaseRunningPlay bool `json:"baseRunningPlay,omitempty"`
Substitution bool `json:"substitution,omitempty"`
}

View File

@@ -0,0 +1,66 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballPlayEventRestObject struct {
Copyright string `json:"copyright,omitempty"`
Details *Details `json:"details,omitempty"`
Count *Count `json:"count,omitempty"`
PostCount *Count `json:"postCount,omitempty"`
PreCount *Count `json:"preCount,omitempty"`
PitchData *BaseballPitchDataRestObject `json:"pitchData,omitempty"`
HitData *BaseballHitDataRestObject `json:"hitData,omitempty"`
Index int32 `json:"index,omitempty"`
PfxId string `json:"pfxId,omitempty"`
PlayId string `json:"playId,omitempty"`
ActionPlayId string `json:"actionPlayId,omitempty"`
PitchNumber int32 `json:"pitchNumber,omitempty"`
PickoffNumber int32 `json:"pickoffNumber,omitempty"`
AtBatNumber int32 `json:"atBatNumber,omitempty"`
StartTime time.Time `json:"startTime,omitempty"`
EndTime time.Time `json:"endTime,omitempty"`
IsPitch bool `json:"isPitch,omitempty"`
IsBaseRunningPlay bool `json:"isBaseRunningPlay,omitempty"`
IsSubstitution bool `json:"isSubstitution,omitempty"`
Type_ string `json:"type,omitempty"`
Player *BaseballPersonRestObject `json:"player,omitempty"`
Umpire *BaseballPersonRestObject `json:"umpire,omitempty"`
Position *PositionRestObject `json:"position,omitempty"`
BattingOrder string `json:"battingOrder,omitempty"`
ReplacedPlayer *BaseballPersonRestObject `json:"replacedPlayer,omitempty"`
Base int32 `json:"base,omitempty"`
InjuryType string `json:"injuryType,omitempty"`
Defense *BaseballDefenseRestObject `json:"defense,omitempty"`
Offense *BaseballOffenseRestObject `json:"offense,omitempty"`
Credits []PlayCreditRestObject `json:"credits,omitempty"`
Officials []OfficialRestObject `json:"officials,omitempty"`
ReviewDetails *ReviewDetails `json:"reviewDetails,omitempty"`
}

View File

@@ -0,0 +1,50 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballPlayRestObject struct {
Copyright string `json:"copyright,omitempty"`
Hydrations []string `json:"hydrations,omitempty"`
Result *Result `json:"result,omitempty"`
About *About `json:"about,omitempty"`
Count *Count `json:"count,omitempty"`
Matchup *Matchup `json:"matchup,omitempty"`
PitchIndex []int32 `json:"pitchIndex,omitempty"`
ActionIndex []int32 `json:"actionIndex,omitempty"`
RunnerIndex []int32 `json:"runnerIndex,omitempty"`
Runners []RunnerMovement `json:"runners,omitempty"`
PlayEvents []BaseballPlayEventRestObject `json:"playEvents,omitempty"`
Credits []PlayCreditRestObject `json:"credits,omitempty"`
Flags []PlayCreditRestObject `json:"flags,omitempty"`
ReviewDetails *ReviewDetails `json:"reviewDetails,omitempty"`
PlayEndTime time.Time `json:"playEndTime,omitempty"`
AtBatIndex int32 `json:"atBatIndex,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballPlayerGameScoreRestObject struct {
Copyright string `json:"copyright,omitempty"`
Player *BaseballRosterEntryRestObject `json:"player,omitempty"`
Type_ string `json:"type,omitempty"`
GameScore int32 `json:"gameScore,omitempty"`
PitchingGameScore int32 `json:"pitchingGameScore,omitempty"`
HittingGameScore int32 `json:"hittingGameScore,omitempty"`
}

View File

@@ -0,0 +1,70 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballPosition string
// List of BaseballPosition
const (
PITCHER_BaseballPosition BaseballPosition = "PITCHER"
CATCHER_BaseballPosition BaseballPosition = "CATCHER"
FIRST_BASE_BaseballPosition BaseballPosition = "FIRST_BASE"
SECOND_BASE_BaseballPosition BaseballPosition = "SECOND_BASE"
THIRD_BASE_BaseballPosition BaseballPosition = "THIRD_BASE"
SHORTSTOP_BaseballPosition BaseballPosition = "SHORTSTOP"
LEFT_FIELD_BaseballPosition BaseballPosition = "LEFT_FIELD"
CENTER_FIELD_BaseballPosition BaseballPosition = "CENTER_FIELD"
RIGHT_FIELD_BaseballPosition BaseballPosition = "RIGHT_FIELD"
DESIGNATED_HITTER_BaseballPosition BaseballPosition = "DESIGNATED_HITTER"
PINCH_HITTER_BaseballPosition BaseballPosition = "PINCH_HITTER"
PINCH_RUNNER_BaseballPosition BaseballPosition = "PINCH_RUNNER"
EXTRA_HITTER_BaseballPosition BaseballPosition = "EXTRA_HITTER"
BASE_RUNNER_BaseballPosition BaseballPosition = "BASE_RUNNER"
OUTFIELD_BaseballPosition BaseballPosition = "OUTFIELD"
INFIELD_BaseballPosition BaseballPosition = "INFIELD"
STARTING_PITCHER_BaseballPosition BaseballPosition = "STARTING_PITCHER"
RELIEF_PITCHER_BaseballPosition BaseballPosition = "RELIEF_PITCHER"
CLOSER_BaseballPosition BaseballPosition = "CLOSER"
UTLITY_BaseballPosition BaseballPosition = "UTLITY"
UTLITY_INFIELDER_BaseballPosition BaseballPosition = "UTLITY_INFIELDER"
UTLITY_OUTFIELDER_BaseballPosition BaseballPosition = "UTLITY_OUTFIELDER"
RIGHT_HANDED_PITCHER_BaseballPosition BaseballPosition = "RIGHT_HANDED_PITCHER"
LEFT_HANDED_PITCHER_BaseballPosition BaseballPosition = "LEFT_HANDED_PITCHER"
RIGHT_HANDED_STARTER_BaseballPosition BaseballPosition = "RIGHT_HANDED_STARTER"
LEFT_HANDED_STARTER_BaseballPosition BaseballPosition = "LEFT_HANDED_STARTER"
LEFT_HANDED_RELIEVER_BaseballPosition BaseballPosition = "LEFT_HANDED_RELIEVER"
RIGHT_HANDED_RELIEVER_BaseballPosition BaseballPosition = "RIGHT_HANDED_RELIEVER"
TWO_WAY_PITCHER_INFIELDER_BaseballPosition BaseballPosition = "TWO_WAY_PITCHER_INFIELDER"
TWO_WAY_PITCHER_OUTFIELDER_BaseballPosition BaseballPosition = "TWO_WAY_PITCHER_OUTFIELDER"
TWO_WAY_PITCHER_UTILITY_BaseballPosition BaseballPosition = "TWO_WAY_PITCHER_UTILITY"
TWO_WAY_PLAYER_BaseballPosition BaseballPosition = "TWO_WAY_PLAYER"
BATTER_BaseballPosition BaseballPosition = "BATTER"
UNKNOWN_BaseballPosition BaseballPosition = "UNKNOWN"
RUNNER_ON_FIRST_BaseballPosition BaseballPosition = "RUNNER_ON_FIRST"
RUNNER_ON_SECOND_BaseballPosition BaseballPosition = "RUNNER_ON_SECOND"
RUNNER_ON_THIRD_BaseballPosition BaseballPosition = "RUNNER_ON_THIRD"
)

View File

@@ -0,0 +1,34 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballReview struct {
ReviewType string `json:"reviewType,omitempty"`
ReviewOverturned bool `json:"reviewOverturned,omitempty"`
ChallengeTeamId int32 `json:"challengeTeamId,omitempty"`
ReviewInProgress bool `json:"reviewInProgress,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballReviewRestObject struct {
Copyright string `json:"copyright,omitempty"`
HasChallenges bool `json:"hasChallenges,omitempty"`
Reason string `json:"reason,omitempty"`
Away *BaseballTeamReview `json:"away,omitempty"`
Home *BaseballTeamReview `json:"home,omitempty"`
ChallengingTeam *BaseballTeamRestObject `json:"challengingTeam,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballRoster struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
RosterType *RosterType `json:"rosterType,omitempty"`
Roster []BaseballRosterEntry `json:"roster,omitempty"`
TeamId int32 `json:"teamId,omitempty"`
HydratedPeople map[string]interface{} `json:"hydratedPeople,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,64 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballRosterEntry struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
Person *BaseballPerson `json:"person,omitempty"`
JerseyNumber string `json:"jerseyNumber,omitempty"`
Position *BaseballPosition `json:"position,omitempty"`
Stats *BaseballStats `json:"stats,omitempty"`
SeasonStats *BaseballStats `json:"seasonStats,omitempty"`
Captain bool `json:"captain,omitempty"`
AlternateCaptain bool `json:"alternateCaptain,omitempty"`
Note string `json:"note,omitempty"`
Status *DynamicLookupEnum `json:"status,omitempty"`
Job string `json:"job,omitempty"`
JobId string `json:"jobId,omitempty"`
Title string `json:"title,omitempty"`
ParentTeamId int32 `json:"parentTeamId,omitempty"`
Team *BaseballTeam `json:"team,omitempty"`
IsActive bool `json:"isActive,omitempty"`
IsActiveFortyMan bool `json:"isActiveFortyMan,omitempty"`
StartDate string `json:"startDate,omitempty"`
EndDate string `json:"endDate,omitempty"`
StatusDate string `json:"statusDate,omitempty"`
AllPositions []BaseballPosition `json:"allPositions,omitempty"`
BattingOrder string `json:"battingOrder,omitempty"`
PitchingOrder int32 `json:"pitchingOrder,omitempty"`
IsCurrentBatter bool `json:"isCurrentBatter,omitempty"`
IsCurrentPitcher bool `json:"isCurrentPitcher,omitempty"`
IsOnBench bool `json:"isOnBench,omitempty"`
IsSubstitute bool `json:"isSubstitute,omitempty"`
ClassId int32 `json:"classId,omitempty"`
SportId int32 `json:"sportId,omitempty"`
Season string `json:"season,omitempty"`
QualifiedForGamePitched bool `json:"qualifiedForGamePitched,omitempty"`
StatContainer []StatContainer `json:"statContainer,omitempty"`
HydratedRosterEntriesTeam map[string]interface{} `json:"hydratedRosterEntriesTeam,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,52 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballRosterEntryRestObject struct {
Person *BaseballPersonRestObject `json:"person,omitempty"`
JerseyNumber string `json:"jerseyNumber,omitempty"`
Position *PositionRestObject `json:"position,omitempty"`
AlternateCaptain bool `json:"alternateCaptain,omitempty"`
Captain bool `json:"captain,omitempty"`
Note string `json:"note,omitempty"`
Status *DynamicEnumRestObject `json:"status,omitempty"`
Job string `json:"job,omitempty"`
JobId string `json:"jobId,omitempty"`
Title string `json:"title,omitempty"`
ParentTeamId int32 `json:"parentTeamId,omitempty"`
Team *BaseballTeamRestObject `json:"team,omitempty"`
IsActive bool `json:"isActive,omitempty"`
StartDate string `json:"startDate,omitempty"`
EndDate string `json:"endDate,omitempty"`
StatusDate string `json:"statusDate,omitempty"`
IsActiveFortyMan bool `json:"isActiveFortyMan,omitempty"`
BattingOrder string `json:"battingOrder,omitempty"`
Stats *StatsRestObject `json:"stats,omitempty"`
SeasonStats *StatsRestObject `json:"seasonStats,omitempty"`
GameStatus *GameStatusRestObject `json:"gameStatus,omitempty"`
AllPositions []PositionRestObject `json:"allPositions,omitempty"`
}

View File

@@ -0,0 +1,55 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballRunnerMovement struct {
StartBase string `json:"startBase,omitempty"`
EndBase string `json:"endBase,omitempty"`
EventType string `json:"eventType,omitempty"`
EventTypeEnum *EventType `json:"eventTypeEnum,omitempty"`
Runner *BaseballPerson `json:"runner,omitempty"`
ResponsiblePitcher *BaseballPerson `json:"responsiblePitcher,omitempty"`
IsScoringEvent bool `json:"isScoringEvent,omitempty"`
IsRbi bool `json:"isRbi,omitempty"`
IsEarned bool `json:"isEarned,omitempty"`
PlayIndex int32 `json:"playIndex,omitempty"`
Sequence int32 `json:"sequence,omitempty"`
OutNumber int32 `json:"outNumber,omitempty"`
OutBase string `json:"outBase,omitempty"`
MovementReason string `json:"movementReason,omitempty"`
MovementReasonEnum *RunnerDetailType `json:"movementReasonEnum,omitempty"`
Credits []PlayCredit `json:"credits,omitempty"`
OriginBase int32 `json:"originBase,omitempty"`
StartBaseInt int32 `json:"startBaseInt,omitempty"`
EndBaseInt int32 `json:"endBaseInt,omitempty"`
Out bool `json:"out,omitempty"`
ScoringEvent bool `json:"scoringEvent,omitempty"`
TeamUnearned bool `json:"teamUnearned,omitempty"`
Events map[string]string `json:"events,omitempty"`
Rbi bool `json:"rbi,omitempty"`
Earned bool `json:"earned,omitempty"`
}

View File

@@ -0,0 +1,63 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballSchedule struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
Games []BaseballScheduleItem `json:"games,omitempty"`
RefreshInterval int32 `json:"refreshInterval,omitempty"`
IncludeSiteBroadcasts bool `json:"includeSiteBroadcasts,omitempty"`
IncludeEventTickets bool `json:"includeEventTickets,omitempty"`
GameTypes []GameTypeEnum `json:"gameTypes,omitempty"`
ScheduleEvents []ScheduleEvent `json:"scheduleEvents,omitempty"`
Abschallenges map[string]interface{} `json:"abschallenges,omitempty"`
Challenges map[string]interface{} `json:"challenges,omitempty"`
Flags map[string]interface{} `json:"flags,omitempty"`
TeamsWithGames []int32 `json:"teamsWithGames,omitempty"`
ScheduleItems []BaseballScheduleItem `json:"scheduleItems,omitempty"`
HomeRuns map[string]interface{} `json:"homeRuns,omitempty"`
Alerts map[string]interface{} `json:"alerts,omitempty"`
BaseballSchedule []BaseballScheduleItem `json:"baseballSchedule,omitempty"`
HydratedStats map[string]interface{} `json:"hydratedStats,omitempty"`
HydratedPeople map[string]interface{} `json:"hydratedPeople,omitempty"`
PreviousPlay map[string]interface{} `json:"previousPlay,omitempty"`
HydratedTeamLeadersInPreview map[string]interface{} `json:"hydratedTeamLeadersInPreview,omitempty"`
HydratedTeamLeaders map[string]interface{} `json:"hydratedTeamLeaders,omitempty"`
ProbablePitchersNotes map[string]interface{} `json:"probablePitchersNotes,omitempty"`
HydratedProbablePitchers map[string]interface{} `json:"hydratedProbablePitchers,omitempty"`
LiveLookins map[string]interface{} `json:"liveLookins,omitempty"`
BaseballLineups map[string]interface{} `json:"baseballLineups,omitempty"`
ProbableOfficials map[string]interface{} `json:"probableOfficials,omitempty"`
HydratedTeamsAsString map[string]interface{} `json:"hydratedTeamsAsString,omitempty"`
HydratedVenuesAsString map[string]interface{} `json:"hydratedVenuesAsString,omitempty"`
HydratedEventVenuesAsString map[string]interface{} `json:"hydratedEventVenuesAsString,omitempty"`
HydratedEventDivisionsAsString map[string]interface{} `json:"hydratedEventDivisionsAsString,omitempty"`
HydratedEventLeaguesAsString map[string]interface{} `json:"hydratedEventLeaguesAsString,omitempty"`
HydratedEventSportsAsString map[string]interface{} `json:"hydratedEventSportsAsString,omitempty"`
GamePreviewStoryLegacy *BaseballScheduleItem `json:"gamePreviewStoryLegacy,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,160 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballScheduleItem struct {
CalendarEventId string `json:"calendarEventId,omitempty"`
GamePk int32 `json:"gamePk,omitempty"`
GameType *GameTypeEnum `json:"gameType,omitempty"`
GameDate time.Time `json:"gameDate,omitempty"`
OfficialDate string `json:"officialDate,omitempty"`
CalendarDate string `json:"calendarDate,omitempty"`
UnmodifiedCalendarDate string `json:"unmodifiedCalendarDate,omitempty"`
ResumeGameDate string `json:"resumeGameDate,omitempty"`
ResumeDate time.Time `json:"resumeDate,omitempty"`
ResumedFromDate string `json:"resumedFromDate,omitempty"`
ResumedFrom time.Time `json:"resumedFrom,omitempty"`
RescheduleGameDate string `json:"rescheduleGameDate,omitempty"`
RescheduleDate time.Time `json:"rescheduleDate,omitempty"`
RescheduledFromDate string `json:"rescheduledFromDate,omitempty"`
RescheduledFrom time.Time `json:"rescheduledFrom,omitempty"`
Season string `json:"season,omitempty"`
StatusInd string `json:"statusInd,omitempty"`
GameNumber int32 `json:"gameNumber,omitempty"`
GameStatus *IGameStatus `json:"gameStatus,omitempty"`
AwayTeam *BaseballTeam `json:"awayTeam,omitempty"`
HomeTeam *BaseballTeam `json:"homeTeam,omitempty"`
Venue *Venue `json:"venue,omitempty"`
ResumeVenue *Venue `json:"resumeVenue,omitempty"`
ResumedFromVenue *Venue `json:"resumedFromVenue,omitempty"`
Cms *GameCms `json:"cms,omitempty"`
AwayScore int32 `json:"awayScore,omitempty"`
HomeScore int32 `json:"homeScore,omitempty"`
AwayWins int32 `json:"awayWins,omitempty"`
AwayLosses int32 `json:"awayLosses,omitempty"`
AwayOvertimeLosses int32 `json:"awayOvertimeLosses,omitempty"`
AwayTies int32 `json:"awayTies,omitempty"`
AwayIsWinner bool `json:"awayIsWinner,omitempty"`
HomeWins int32 `json:"homeWins,omitempty"`
HomeLosses int32 `json:"homeLosses,omitempty"`
PostseasonSeries *PostseasonSeries `json:"postseasonSeries,omitempty"`
HomeOvertimeLosses int32 `json:"homeOvertimeLosses,omitempty"`
HomeTies int32 `json:"homeTies,omitempty"`
HomeIsWinner bool `json:"homeIsWinner,omitempty"`
IsTie bool `json:"isTie,omitempty"`
Linescore *BaseballLinescore `json:"linescore,omitempty"`
Decisions *BaseballDecision `json:"decisions,omitempty"`
ScoringPlays []BaseballPlay `json:"scoringPlays,omitempty"`
Broadcasts []GameDateBroadcast `json:"broadcasts,omitempty"`
RadioBroadcasts []GameDateBroadcast `json:"radioBroadcasts,omitempty"`
EndDateTime time.Time `json:"endDateTime,omitempty"`
IsDefaultGame bool `json:"isDefaultGame,omitempty"`
Promotions []Promotion `json:"promotions,omitempty"`
AtBatPromotions []Promotion `json:"atBatPromotions,omitempty"`
Sponsorships []Promotion `json:"sponsorships,omitempty"`
Officials []Official `json:"officials,omitempty"`
PregameOfficials []Official `json:"pregameOfficials,omitempty"`
Weather *Weather `json:"weather,omitempty"`
GameInfo *GameTo `json:"gameInfo,omitempty"`
PublicFacing *PublicFacingEnum `json:"publicFacing,omitempty"`
Story *GameStory `json:"story,omitempty"`
TrackingVersion *TrackingVersion `json:"trackingVersion,omitempty"`
TrackingSystemOwner *TrackingSystemOwner `json:"trackingSystemOwner,omitempty"`
CoachingVideo []MediaSourceType `json:"coachingVideo,omitempty"`
AtBatTicketLinks []BaseballTicket `json:"atBatTicketLinks,omitempty"`
SeriesStatus *SeriesStatus `json:"seriesStatus,omitempty"`
SortNumber int32 `json:"sortNumber,omitempty"`
IsFeaturedGame bool `json:"isFeaturedGame,omitempty"`
XrefIds []XrefId `json:"xrefIds,omitempty"`
GameId string `json:"gameId,omitempty"`
Description string `json:"description,omitempty"`
SeriesDescription string `json:"seriesDescription,omitempty"`
DoubleHeader string `json:"doubleHeader,omitempty"`
GamedayType string `json:"gamedayType,omitempty"`
Tiebreaker string `json:"tiebreaker,omitempty"`
ScheduledInnings int32 `json:"scheduledInnings,omitempty"`
InningBreakLength int32 `json:"inningBreakLength,omitempty"`
GamesInSeries int32 `json:"gamesInSeries,omitempty"`
SeriesGameNumber int32 `json:"seriesGameNumber,omitempty"`
EditorialGameType string `json:"editorialGameType,omitempty"`
EditorialSeason string `json:"editorialSeason,omitempty"`
LocalTime string `json:"localTime,omitempty"`
LocalAmPm string `json:"localAmPm,omitempty"`
LocalDate string `json:"localDate,omitempty"`
AwayGamesBack string `json:"awayGamesBack,omitempty"`
AwayWildCardGamesBack string `json:"awayWildCardGamesBack,omitempty"`
AwaySplitSquad bool `json:"awaySplitSquad,omitempty"`
AwaySeriesNumber int32 `json:"awaySeriesNumber,omitempty"`
RecordSource string `json:"recordSource,omitempty"`
IfNecessary string `json:"ifNecessary,omitempty"`
IfNecessaryDescription string `json:"ifNecessaryDescription,omitempty"`
HomeGamesBack string `json:"homeGamesBack,omitempty"`
HomeWildCardGamesBack string `json:"homeWildCardGamesBack,omitempty"`
HomeSplitSquad bool `json:"homeSplitSquad,omitempty"`
HomeSeriesNumber int32 `json:"homeSeriesNumber,omitempty"`
IsNightGame bool `json:"isNightGame,omitempty"`
AwayProbable *BaseballPerson `json:"awayProbable,omitempty"`
HomeProbable *BaseballPerson `json:"homeProbable,omitempty"`
Challenge *BaseballChallenge `json:"challenge,omitempty"`
AbsChallenge *BaseballAbsChallenge `json:"absChallenge,omitempty"`
Flags *BaseballGameFlag `json:"flags,omitempty"`
Alerts []BaseballGameAlert `json:"alerts,omitempty"`
LiveLookin *LiveLookin `json:"liveLookin,omitempty"`
SortTime string `json:"sortTime,omitempty"`
SortTeam string `json:"sortTeam,omitempty"`
SortGameId string `json:"sortGameId,omitempty"`
SortGameNo string `json:"sortGameNo,omitempty"`
PreviousPlay *BaseballPlay `json:"previousPlay,omitempty"`
HomeRuns []BaseballPlay `json:"homeRuns,omitempty"`
Tickets []BaseballTicket `json:"tickets,omitempty"`
AtBatTickets []BaseballTicket `json:"atBatTickets,omitempty"`
SportId int32 `json:"sportId,omitempty"`
Day string `json:"day,omitempty"`
HomeLeagueId int32 `json:"homeLeagueId,omitempty"`
AwayLeagueId int32 `json:"awayLeagueId,omitempty"`
BaseballLineup *BaseballLineup `json:"baseballLineup,omitempty"`
DoubleHeaderGameOneTime time.Time `json:"doubleHeaderGameOneTime,omitempty"`
ReverseHomeAwayStatus bool `json:"reverseHomeAwayStatus,omitempty"`
IsDoNotSortAsDH bool `json:"isDoNotSortAsDH,omitempty"`
StatusFlags *StatusFlags `json:"statusFlags,omitempty"`
GameGuid string `json:"gameGuid,omitempty"`
VendorWeatherForecast *VendorWeatherForecast `json:"vendorWeatherForecast,omitempty"`
CacheKey string `json:"cacheKey,omitempty"`
LinescoreOverrides *BaseballLinescore `json:"linescoreOverrides,omitempty"`
PostseasonSeriesId string `json:"postseasonSeriesId,omitempty"`
WinningTeam *BaseballTeam `json:"winningTeam,omitempty"`
Tie bool `json:"tie,omitempty"`
Hydratable bool `json:"hydratable,omitempty"`
NightGame bool `json:"nightGame,omitempty"`
LosingTeam *BaseballTeam `json:"losingTeam,omitempty"`
SortDate time.Time `json:"sortDate,omitempty"`
DoubleHeaderTeamPairKey string `json:"doubleHeaderTeamPairKey,omitempty"`
}

View File

@@ -0,0 +1,109 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballScheduleItemRestObject struct {
Copyright string `json:"copyright,omitempty"`
GamePk int32 `json:"gamePk,omitempty"`
GameGuid string `json:"gameGuid,omitempty"`
Link string `json:"link,omitempty"`
GameType string `json:"gameType,omitempty"`
Season string `json:"season,omitempty"`
GameDate time.Time `json:"gameDate,omitempty"`
OfficialDate string `json:"officialDate,omitempty"`
ResumeDate time.Time `json:"resumeDate,omitempty"`
ResumeGameDate string `json:"resumeGameDate,omitempty"`
ResumedFrom time.Time `json:"resumedFrom,omitempty"`
ResumedFromDate string `json:"resumedFromDate,omitempty"`
RescheduleDate time.Time `json:"rescheduleDate,omitempty"`
RescheduleGameDate string `json:"rescheduleGameDate,omitempty"`
RescheduledFrom time.Time `json:"rescheduledFrom,omitempty"`
RescheduledFromDate string `json:"rescheduledFromDate,omitempty"`
EndDateTime time.Time `json:"endDateTime,omitempty"`
Status *GameStatusRestObject `json:"status,omitempty"`
Teams map[string]BaseballScheduleItemTeamRestObject `json:"teams,omitempty"`
Linescore *BaseballLinescoreRestObject `json:"linescore,omitempty"`
Decisions *BaseballDecisionRestObject `json:"decisions,omitempty"`
ScoringPlays []BaseballPlayRestObject `json:"scoringPlays,omitempty"`
Venue *VenueRestObject `json:"venue,omitempty"`
Tickets []BaseballTicketRestObject `json:"tickets,omitempty"`
AtBatTickets []BaseballTicketRestObject `json:"atBatTickets,omitempty"`
Promotions []PromotionRestObject `json:"promotions,omitempty"`
AtBatPromotions []PromotionRestObject `json:"atBatPromotions,omitempty"`
Sponsorships []PromotionRestObject `json:"sponsorships,omitempty"`
Broadcasts []GameDateBroadcastRestObject `json:"broadcasts,omitempty"`
RadioBroadcasts []GameDateBroadcastRestObject `json:"radioBroadcasts,omitempty"`
Content *GameContentRestObject `json:"content,omitempty"`
SeriesStatus *SeriesStatusRestObject `json:"seriesStatus,omitempty"`
IsDefaultGame bool `json:"isDefaultGame,omitempty"`
SortNumber int32 `json:"sortNumber,omitempty"`
IsTie bool `json:"isTie,omitempty"`
IsFeaturedGame bool `json:"isFeaturedGame,omitempty"`
Officials []OfficialRestObject `json:"officials,omitempty"`
PregameOfficials []OfficialRestObject `json:"pregameOfficials,omitempty"`
Weather *WeatherRestObject `json:"weather,omitempty"`
XrefIds []XrefIdRestObject `json:"xrefIds,omitempty"`
GameInfo *GameInfoRestObject `json:"gameInfo,omitempty"`
GameNumber int32 `json:"gameNumber,omitempty"`
PublicFacing bool `json:"publicFacing,omitempty"`
Story *GameStoryRestObject `json:"story,omitempty"`
WeatherForecast *VendorWeatherForecastRestObject `json:"weatherForecast,omitempty"`
RuleSettings []RuleSettingsRestObject `json:"ruleSettings,omitempty"`
TrackingVersion *TrackingVersionRestObject `json:"trackingVersion,omitempty"`
CoachingVideo []string `json:"coachingVideo,omitempty"`
DoubleHeader string `json:"doubleHeader,omitempty"`
GamedayType string `json:"gamedayType,omitempty"`
Tiebreaker string `json:"tiebreaker,omitempty"`
CalendarEventID string `json:"calendarEventID,omitempty"`
SeasonDisplay string `json:"seasonDisplay,omitempty"`
DayNight string `json:"dayNight,omitempty"`
Description string `json:"description,omitempty"`
ScheduledInnings int32 `json:"scheduledInnings,omitempty"`
ReverseHomeAwayStatus bool `json:"reverseHomeAwayStatus,omitempty"`
InningBreakLength int32 `json:"inningBreakLength,omitempty"`
GamesInSeries int32 `json:"gamesInSeries,omitempty"`
SeriesGameNumber int32 `json:"seriesGameNumber,omitempty"`
SeriesDescription string `json:"seriesDescription,omitempty"`
Review *BaseballReviewRestObject `json:"review,omitempty"`
AbsChallenge *BaseballAbsChallengeRestObject `json:"absChallenge,omitempty"`
Flags *BaseballGameFlagRestObject `json:"flags,omitempty"`
StatusFlags *StatusFlagsRestObject `json:"statusFlags,omitempty"`
Alerts []BaseballGameAlertRestObject `json:"alerts,omitempty"`
LiveLookin *BaseballGameLiveLookinRestObject `json:"liveLookin,omitempty"`
PreviousPlay *BaseballPlayRestObject `json:"previousPlay,omitempty"`
HomeRuns []BaseballPlayRestObject `json:"homeRuns,omitempty"`
RecordSource string `json:"recordSource,omitempty"`
IfNecessary string `json:"ifNecessary,omitempty"`
IfNecessaryDescription string `json:"ifNecessaryDescription,omitempty"`
Day string `json:"day,omitempty"`
GameId string `json:"gameId,omitempty"`
Lineups *BaseballLineupRestObject `json:"lineups,omitempty"`
}

View File

@@ -0,0 +1,40 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballScheduleItemTeamRestObject struct {
Copyright string `json:"copyright,omitempty"`
LeagueRecord *WinLossRecordRestObject `json:"leagueRecord,omitempty"`
Score int32 `json:"score,omitempty"`
Team *BaseballTeamRestObject `json:"team,omitempty"`
IsWinner bool `json:"isWinner,omitempty"`
ProbablePitcher *BaseballPersonRestObject `json:"probablePitcher,omitempty"`
SplitSquad bool `json:"splitSquad,omitempty"`
SeriesNumber int32 `json:"seriesNumber,omitempty"`
SeedNumber int32 `json:"seedNumber,omitempty"`
SpringLeague *LeagueRestObject `json:"springLeague,omitempty"`
}

View File

@@ -0,0 +1,36 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballStats struct {
AllStats []StatContainer `json:"allStats,omitempty"`
BattingStats *BattingData `json:"battingStats,omitempty"`
PitchingStats *PitchingData `json:"pitchingStats,omitempty"`
FieldingStats *FieldingData `json:"fieldingStats,omitempty"`
GameStats *GameStatData `json:"gameStats,omitempty"`
TeamStats *TeamStatData `json:"teamStats,omitempty"`
}

View File

@@ -0,0 +1,224 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballStatsEnum string
// List of BaseballStatsEnum
const (
AIROUTS_BaseballStatsEnum BaseballStatsEnum = "AIROUTS"
ASSISTS_BaseballStatsEnum BaseballStatsEnum = "ASSISTS"
AT_BATS_BaseballStatsEnum BaseballStatsEnum = "AT_BATS"
AT_BATS_PER_HOMERUN_BaseballStatsEnum BaseballStatsEnum = "AT_BATS_PER_HOMERUN"
BALK_BaseballStatsEnum BaseballStatsEnum = "BALK"
BATTING_AVERAGE_BaseballStatsEnum BaseballStatsEnum = "BATTING_AVERAGE"
BATTING_AVERAGE_BALLS_IN_PLAY_BaseballStatsEnum BaseballStatsEnum = "BATTING_AVERAGE_BALLS_IN_PLAY"
QUALITY_STARTS_BaseballStatsEnum BaseballStatsEnum = "QUALITY_STARTS"
BEQUEATHED_RUNNERS_BaseballStatsEnum BaseballStatsEnum = "BEQUEATHED_RUNNERS"
BEQUEATHED_RUNNERS_SCORED_BaseballStatsEnum BaseballStatsEnum = "BEQUEATHED_RUNNERS_SCORED"
BLOWN_SAVES_BaseballStatsEnum BaseballStatsEnum = "BLOWN_SAVES"
CATCHER_ERA_BaseballStatsEnum BaseballStatsEnum = "CATCHER_ERA"
CATCHERS_INTERFERENCE_BaseballStatsEnum BaseballStatsEnum = "CATCHERS_INTERFERENCE"
CAUGHT_STEALING_BaseballStatsEnum BaseballStatsEnum = "CAUGHT_STEALING"
CHANCES_BaseballStatsEnum BaseballStatsEnum = "CHANCES"
COMPLETE_GAME_BaseballStatsEnum BaseballStatsEnum = "COMPLETE_GAME"
DOUBLE_PLAYS_BaseballStatsEnum BaseballStatsEnum = "DOUBLE_PLAYS"
DOUBLES_BaseballStatsEnum BaseballStatsEnum = "DOUBLES"
EARNED_RUN_BaseballStatsEnum BaseballStatsEnum = "EARNED_RUN"
EARNED_RUN_AVERAGE_BaseballStatsEnum BaseballStatsEnum = "EARNED_RUN_AVERAGE"
ERRORS_BaseballStatsEnum BaseballStatsEnum = "ERRORS"
EXIT_VELOCITY_BaseballStatsEnum BaseballStatsEnum = "EXIT_VELOCITY"
EXTRA_BASE_HITS_BaseballStatsEnum BaseballStatsEnum = "EXTRA_BASE_HITS"
FIELDING_PERCENTAGE_BaseballStatsEnum BaseballStatsEnum = "FIELDING_PERCENTAGE"
FLYOUTS_BaseballStatsEnum BaseballStatsEnum = "FLYOUTS"
GAMES_FINISHED_BaseballStatsEnum BaseballStatsEnum = "GAMES_FINISHED"
GAMES_PLAYED_BaseballStatsEnum BaseballStatsEnum = "GAMES_PLAYED"
GAMES_STARTED_BaseballStatsEnum BaseballStatsEnum = "GAMES_STARTED"
GROUND_INTO_DOUBLE_PLAYS_BaseballStatsEnum BaseballStatsEnum = "GROUND_INTO_DOUBLE_PLAYS"
GROUND_INTO_DOUBLE_PLAY_OPPORTUNITIES_BaseballStatsEnum BaseballStatsEnum = "GROUND_INTO_DOUBLE_PLAY_OPPORTUNITIES"
GROUND_INTO_TRIPLE_PLAYS_BaseballStatsEnum BaseballStatsEnum = "GROUND_INTO_TRIPLE_PLAYS"
GROUNDOUTS_BaseballStatsEnum BaseballStatsEnum = "GROUNDOUTS"
GROUNDOUT_TO_FLYOUT_RATIO_BaseballStatsEnum BaseballStatsEnum = "GROUNDOUT_TO_FLYOUT_RATIO"
HITS_BaseballStatsEnum BaseballStatsEnum = "HITS"
HITS_RISP_BaseballStatsEnum BaseballStatsEnum = "HITS_RISP"
HIT_BATSMAN_BaseballStatsEnum BaseballStatsEnum = "HIT_BATSMAN"
HIT_BY_PITCHES_BaseballStatsEnum BaseballStatsEnum = "HIT_BY_PITCHES"
HITS_PER_9_INN_BaseballStatsEnum BaseballStatsEnum = "HITS_PER_9_INN"
HOLDS_BaseballStatsEnum BaseballStatsEnum = "HOLDS"
HOME_RUNS_BaseballStatsEnum BaseballStatsEnum = "HOME_RUNS"
HOME_RUNS_PER_PLATE_APPEARANCE_BaseballStatsEnum BaseballStatsEnum = "HOME_RUNS_PER_PLATE_APPEARANCE"
INHERITED_RUNNER_BaseballStatsEnum BaseballStatsEnum = "INHERITED_RUNNER"
INHERITED_RUNNER_SCORED_BaseballStatsEnum BaseballStatsEnum = "INHERITED_RUNNER_SCORED"
INNINGS_BaseballStatsEnum BaseballStatsEnum = "INNINGS"
OUTS_PITCHED_BaseballStatsEnum BaseballStatsEnum = "OUTS_PITCHED"
INNINGS_PITCHED_BaseballStatsEnum BaseballStatsEnum = "INNINGS_PITCHED"
INTENTIONAL_WALKS_BaseballStatsEnum BaseballStatsEnum = "INTENTIONAL_WALKS"
ISO_BaseballStatsEnum BaseballStatsEnum = "ISO"
LEFT_ON_BASE_BaseballStatsEnum BaseballStatsEnum = "LEFT_ON_BASE"
LEFT_ON_BASE_RISP_BaseballStatsEnum BaseballStatsEnum = "LEFT_ON_BASE_RISP"
LOSSES_BaseballStatsEnum BaseballStatsEnum = "LOSSES"
NUMBER_OF_STRIKES_BaseballStatsEnum BaseballStatsEnum = "NUMBER_OF_STRIKES"
NUMBER_OF_BALLS_BaseballStatsEnum BaseballStatsEnum = "NUMBER_OF_BALLS"
NUMBER_OF_PITCHES_BaseballStatsEnum BaseballStatsEnum = "NUMBER_OF_PITCHES"
ON_BASE_PERCENTAGE_BaseballStatsEnum BaseballStatsEnum = "ON_BASE_PERCENTAGE"
ON_BASE_PLUS_SLUGGING_BaseballStatsEnum BaseballStatsEnum = "ON_BASE_PLUS_SLUGGING"
OUTFIELD_ASSISTS_BaseballStatsEnum BaseballStatsEnum = "OUTFIELD_ASSISTS"
UZR_BaseballStatsEnum BaseballStatsEnum = "UZR"
PASSED_BALLS_BaseballStatsEnum BaseballStatsEnum = "PASSED_BALLS"
PICKOFFS_BaseballStatsEnum BaseballStatsEnum = "PICKOFFS"
PITCHES_PER_INNING_BaseballStatsEnum BaseballStatsEnum = "PITCHES_PER_INNING"
PITCHES_PER_PLATE_APPEARANCE_BaseballStatsEnum BaseballStatsEnum = "PITCHES_PER_PLATE_APPEARANCE"
PUT_OUTS_BaseballStatsEnum BaseballStatsEnum = "PUT_OUTS"
RANGE_FACTOR_PER_GAME_BaseballStatsEnum BaseballStatsEnum = "RANGE_FACTOR_PER_GAME"
RANGE_FACTOR_PER_9_INN_BaseballStatsEnum BaseballStatsEnum = "RANGE_FACTOR_PER_9_INN"
REACHED_ON_ERROR_BaseballStatsEnum BaseballStatsEnum = "REACHED_ON_ERROR"
RUNS_BaseballStatsEnum BaseballStatsEnum = "RUNS"
RUNS_BATTED_IN_BaseballStatsEnum BaseballStatsEnum = "RUNS_BATTED_IN"
SACRIFICE_BUNTS_BaseballStatsEnum BaseballStatsEnum = "SACRIFICE_BUNTS"
SACRIFICE_FLIES_BaseballStatsEnum BaseballStatsEnum = "SACRIFICE_FLIES"
SAVES_BaseballStatsEnum BaseballStatsEnum = "SAVES"
SAVE_OPPORTUNITIES_BaseballStatsEnum BaseballStatsEnum = "SAVE_OPPORTUNITIES"
SHUTOUTS_BaseballStatsEnum BaseballStatsEnum = "SHUTOUTS"
SLUGGING_PERCENTAGE_BaseballStatsEnum BaseballStatsEnum = "SLUGGING_PERCENTAGE"
STOLEN_BASES_BaseballStatsEnum BaseballStatsEnum = "STOLEN_BASES"
STOLEN_BASE_PERCENTAGE_BaseballStatsEnum BaseballStatsEnum = "STOLEN_BASE_PERCENTAGE"
STRIKEOUTS_BaseballStatsEnum BaseballStatsEnum = "STRIKEOUTS"
STRIKEOUTS_PER_9_INN_BaseballStatsEnum BaseballStatsEnum = "STRIKEOUTS_PER_9_INN"
STRIKEOUTS_PER_PLATE_APPEARANCE_BaseballStatsEnum BaseballStatsEnum = "STRIKEOUTS_PER_PLATE_APPEARANCE"
STRIKEOUT_WALK_RATIO_BaseballStatsEnum BaseballStatsEnum = "STRIKEOUT_WALK_RATIO"
THROWING_ERRORS_BaseballStatsEnum BaseballStatsEnum = "THROWING_ERRORS"
TOTAL_BASES_BaseballStatsEnum BaseballStatsEnum = "TOTAL_BASES"
TOTAL_BATTERS_FACED_BaseballStatsEnum BaseballStatsEnum = "TOTAL_BATTERS_FACED"
TOTAL_PLATE_APPEARANCES_BaseballStatsEnum BaseballStatsEnum = "TOTAL_PLATE_APPEARANCES"
TRIPLE_PLAYS_BaseballStatsEnum BaseballStatsEnum = "TRIPLE_PLAYS"
TRIPLES_BaseballStatsEnum BaseballStatsEnum = "TRIPLES"
WALKS_PER_STRIKEOUT_BaseballStatsEnum BaseballStatsEnum = "WALKS_PER_STRIKEOUT"
WALKS_PER_PLATE_APPEARANCE_BaseballStatsEnum BaseballStatsEnum = "WALKS_PER_PLATE_APPEARANCE"
WALKS_HITS_PER_INNING_PITCHED_BaseballStatsEnum BaseballStatsEnum = "WALKS_HITS_PER_INNING_PITCHED"
WALKS_BaseballStatsEnum BaseballStatsEnum = "WALKS"
WALKS_PER_9_INN_BaseballStatsEnum BaseballStatsEnum = "WALKS_PER_9_INN"
WALKOFFS_BaseballStatsEnum BaseballStatsEnum = "WALKOFFS"
WILD_PITCH_BaseballStatsEnum BaseballStatsEnum = "WILD_PITCH"
WINS_BaseballStatsEnum BaseballStatsEnum = "WINS"
WIN_PERCENTAGE_BaseballStatsEnum BaseballStatsEnum = "WIN_PERCENTAGE"
ATTENDANCE_BaseballStatsEnum BaseballStatsEnum = "ATTENDANCE"
DURATION_BaseballStatsEnum BaseballStatsEnum = "DURATION"
WIN_STREAK_BaseballStatsEnum BaseballStatsEnum = "WIN_STREAK"
LOSS_STREAK_BaseballStatsEnum BaseballStatsEnum = "LOSS_STREAK"
WOBA_BaseballStatsEnum BaseballStatsEnum = "WOBA"
XWOBA_BaseballStatsEnum BaseballStatsEnum = "XWOBA"
XWOBACON_BaseballStatsEnum BaseballStatsEnum = "XWOBACON"
XAVG_BaseballStatsEnum BaseballStatsEnum = "XAVG"
XSLG_BaseballStatsEnum BaseballStatsEnum = "XSLG"
LAUNCH_ANGLE_BaseballStatsEnum BaseballStatsEnum = "LAUNCH_ANGLE"
HOME_RUN_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "HOME_RUN_DISTANCE"
HIT_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "HIT_DISTANCE"
HANG_TIME_BaseballStatsEnum BaseballStatsEnum = "HANG_TIME"
MAX_HEIGHT_BaseballStatsEnum BaseballStatsEnum = "MAX_HEIGHT"
HIT_PROBABILITY_BaseballStatsEnum BaseballStatsEnum = "HIT_PROBABILITY"
CATCH_PROBABILITY_BaseballStatsEnum BaseballStatsEnum = "CATCH_PROBABILITY"
BARRELS_BaseballStatsEnum BaseballStatsEnum = "BARRELS"
PITCH_SPEED_BaseballStatsEnum BaseballStatsEnum = "PITCH_SPEED"
SPIN_RATE_BaseballStatsEnum BaseballStatsEnum = "SPIN_RATE"
EXTENSION_BaseballStatsEnum BaseballStatsEnum = "EXTENSION"
HORIZONTAL_BREAK_BaseballStatsEnum BaseballStatsEnum = "HORIZONTAL_BREAK"
ARM_STRENGTH_BaseballStatsEnum BaseballStatsEnum = "ARM_STRENGTH"
DISTANCE_COVERED_BaseballStatsEnum BaseballStatsEnum = "DISTANCE_COVERED"
EXCHANGE_BaseballStatsEnum BaseballStatsEnum = "EXCHANGE"
FIELDER_BURST_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "FIELDER_BURST_DISTANCE"
FIELDER_JUMP_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "FIELDER_JUMP_DISTANCE"
FIELDER_REACTION_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "FIELDER_REACTION_DISTANCE"
FIRST_STEP_BaseballStatsEnum BaseballStatsEnum = "FIRST_STEP"
FIRST_STEP_EFFICIENCY_BaseballStatsEnum BaseballStatsEnum = "FIRST_STEP_EFFICIENCY"
POP_TIME_1_B_BaseballStatsEnum BaseballStatsEnum = "POP_TIME_1B"
POP_TIME_2_B_BaseballStatsEnum BaseballStatsEnum = "POP_TIME_2B"
POP_TIME_3_B_BaseballStatsEnum BaseballStatsEnum = "POP_TIME_3B"
ROUTE_EFFICIENCY_BaseballStatsEnum BaseballStatsEnum = "ROUTE_EFFICIENCY"
SPRINT_SPEED_BaseballStatsEnum BaseballStatsEnum = "SPRINT_SPEED"
THROW_ACCURACY_BaseballStatsEnum BaseballStatsEnum = "THROW_ACCURACY"
THROW_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "THROW_DISTANCE"
THROW_DISTANCE_WITH_BOUNCES_BaseballStatsEnum BaseballStatsEnum = "THROW_DISTANCE_WITH_BOUNCES"
ACCELERATION_BaseballStatsEnum BaseballStatsEnum = "ACCELERATION"
BURST_BaseballStatsEnum BaseballStatsEnum = "BURST"
FIRST_TO_HOME_BaseballStatsEnum BaseballStatsEnum = "FIRST_TO_HOME"
FIRST_TO_SECOND_BaseballStatsEnum BaseballStatsEnum = "FIRST_TO_SECOND"
FIRST_TO_THIRD_BaseballStatsEnum BaseballStatsEnum = "FIRST_TO_THIRD"
HOME_RUN_TROT_BaseballStatsEnum BaseballStatsEnum = "HOME_RUN_TROT"
HOME_TO_FIRST_BaseballStatsEnum BaseballStatsEnum = "HOME_TO_FIRST"
HOME_TO_SECOND_BaseballStatsEnum BaseballStatsEnum = "HOME_TO_SECOND"
HOME_TO_THIRD_BaseballStatsEnum BaseballStatsEnum = "HOME_TO_THIRD"
LEAD_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "LEAD_DISTANCE"
OUT_OF_BOX_BaseballStatsEnum BaseballStatsEnum = "OUT_OF_BOX"
SECOND_TO_HOME_BaseballStatsEnum BaseballStatsEnum = "SECOND_TO_HOME"
SECOND_TO_THIRD_BaseballStatsEnum BaseballStatsEnum = "SECOND_TO_THIRD"
SECONDARY_LEAD_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "SECONDARY_LEAD_DISTANCE"
STEAL_FIRST_TO_SECOND_BaseballStatsEnum BaseballStatsEnum = "STEAL_FIRST_TO_SECOND"
STEAL_SECOND_TO_THIRD_BaseballStatsEnum BaseballStatsEnum = "STEAL_SECOND_TO_THIRD"
STEAL_THIRD_TO_HOME_BaseballStatsEnum BaseballStatsEnum = "STEAL_THIRD_TO_HOME"
TAG_FIRST_STEP_BaseballStatsEnum BaseballStatsEnum = "TAG_FIRST_STEP"
TAG_FIRST_TO_SECOND_BaseballStatsEnum BaseballStatsEnum = "TAG_FIRST_TO_SECOND"
TAG_SECOND_TO_THIRD_BaseballStatsEnum BaseballStatsEnum = "TAG_SECOND_TO_THIRD"
TAG_THIRD_TO_HOME_BaseballStatsEnum BaseballStatsEnum = "TAG_THIRD_TO_HOME"
THIRD_TO_HOME_BaseballStatsEnum BaseballStatsEnum = "THIRD_TO_HOME"
OUTS_ABOVE_AVERAGE_BaseballStatsEnum BaseballStatsEnum = "OUTS_ABOVE_AVERAGE"
FIELDING_RUNS_PREVENTED_BaseballStatsEnum BaseballStatsEnum = "FIELDING_RUNS_PREVENTED"
STREAK_BaseballStatsEnum BaseballStatsEnum = "STREAK"
WINS_ABOVE_REPLACEMENT_BaseballStatsEnum BaseballStatsEnum = "WINS_ABOVE_REPLACEMENT"
GAME_DATE_BaseballStatsEnum BaseballStatsEnum = "GAME_DATE"
VERTICAL_BREAK_BaseballStatsEnum BaseballStatsEnum = "VERTICAL_BREAK"
BURST_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "BURST_DISTANCE"
WEIGHTED_RUNS_ABOVE_AVERAGE_BaseballStatsEnum BaseballStatsEnum = "WEIGHTED_RUNS_ABOVE_AVERAGE"
WEIGHTED_RUNS_CREATED_BaseballStatsEnum BaseballStatsEnum = "WEIGHTED_RUNS_CREATED"
WEIGHTED_RUNS_CREATED_PLUS_BaseballStatsEnum BaseballStatsEnum = "WEIGHTED_RUNS_CREATED_PLUS"
RUNS_ABOVE_REPLACEMENT_BaseballStatsEnum BaseballStatsEnum = "RUNS_ABOVE_REPLACEMENT"
BATTING_RUNS_ABOVE_AVG_BaseballStatsEnum BaseballStatsEnum = "BATTING_RUNS_ABOVE_AVG"
FIELDING_RUNS_ABOVE_AVG_BaseballStatsEnum BaseballStatsEnum = "FIELDING_RUNS_ABOVE_AVG"
POSITIONAL_RUNS_ABOVE_AVG_BaseballStatsEnum BaseballStatsEnum = "POSITIONAL_RUNS_ABOVE_AVG"
BASE_RUNNING_RUNS_ABOVE_AVG_BaseballStatsEnum BaseballStatsEnum = "BASE_RUNNING_RUNS_ABOVE_AVG"
WEIGHTED_LEAGUE_ADJUST_BaseballStatsEnum BaseballStatsEnum = "WEIGHTED_LEAGUE_ADJUST"
REPLACEMENT_RUNS_BaseballStatsEnum BaseballStatsEnum = "REPLACEMENT_RUNS"
SPEED_SCORE_BaseballStatsEnum BaseballStatsEnum = "SPEED_SCORE"
ULTIMATE_BASE_RUNNING_BaseballStatsEnum BaseballStatsEnum = "ULTIMATE_BASE_RUNNING"
WEIGHTED_NOT_GROUND_INTO_DP_RUNS_BaseballStatsEnum BaseballStatsEnum = "WEIGHTED_NOT_GROUND_INTO_DP_RUNS"
WEIGHTED_STOLEN_BASE_RUNS_BaseballStatsEnum BaseballStatsEnum = "WEIGHTED_STOLEN_BASE_RUNS"
FIELDING_INDEPENDENT_PITCHING_BaseballStatsEnum BaseballStatsEnum = "FIELDING_INDEPENDENT_PITCHING"
EXPECTED_FIELDING_INDEPENDENT_PITCHING_BaseballStatsEnum BaseballStatsEnum = "EXPECTED_FIELDING_INDEPENDENT_PITCHING"
FIELDING_INDEPENDENT_PITCHING_MINUS_BaseballStatsEnum BaseballStatsEnum = "FIELDING_INDEPENDENT_PITCHING_MINUS"
RUNS_ALLOWED_BASED_WAR_BaseballStatsEnum BaseballStatsEnum = "RUNS_ALLOWED_BASED_WAR"
SHUTDOWNS_BaseballStatsEnum BaseballStatsEnum = "SHUTDOWNS"
MELTDOWNS_BaseballStatsEnum BaseballStatsEnum = "MELTDOWNS"
PITCHER_AVERAGE_LEVERAGE_INDEX_BaseballStatsEnum BaseballStatsEnum = "PITCHER_AVERAGE_LEVERAGE_INDEX"
INNING_AVERAGE_LEVERAGE_INDEX_BaseballStatsEnum BaseballStatsEnum = "INNING_AVERAGE_LEVERAGE_INDEX"
GAME_AVERAGE_LEVERAGE_INDEX_BaseballStatsEnum BaseballStatsEnum = "GAME_AVERAGE_LEVERAGE_INDEX"
END_OF_APPEARANCE_AVERAGE_LEVERAGE_INDEX_BaseballStatsEnum BaseballStatsEnum = "END_OF_APPEARANCE_AVERAGE_LEVERAGE_INDEX"
ERA_MINUS_BaseballStatsEnum BaseballStatsEnum = "ERA_MINUS"
JUMP_DISTANCE_BaseballStatsEnum BaseballStatsEnum = "JUMP_DISTANCE"
ATTACK_ANGLE_BaseballStatsEnum BaseballStatsEnum = "ATTACK_ANGLE"
BAT_SPEED_BaseballStatsEnum BaseballStatsEnum = "BAT_SPEED"
HOME_RUN_X_BALLPARKS_BaseballStatsEnum BaseballStatsEnum = "HOME_RUN_X_BALLPARKS"
HOME_RUN_VENUE_IDS_BaseballStatsEnum BaseballStatsEnum = "HOME_RUN_VENUE_IDS"
)

View File

@@ -0,0 +1,38 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballStatsTypeRestObject struct {
Name string `json:"name,omitempty"`
LookupParam string `json:"lookupParam,omitempty"`
IsCounting bool `json:"isCounting,omitempty"`
Label string `json:"label,omitempty"`
StatGroups []StatGroup `json:"statGroups,omitempty"`
OrgTypes []OrganizationType `json:"orgTypes,omitempty"`
HighLowTypes []HighLowTypeEnum `json:"highLowTypes,omitempty"`
StreakLevels []StreakLevelEnum `json:"streakLevels,omitempty"`
}

View File

@@ -0,0 +1,90 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballTeam struct {
RequestingUserRole *Role `json:"requestingUserRole,omitempty"`
Id int32 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Season int32 `json:"season,omitempty"`
StrSeason string `json:"strSeason,omitempty"`
Venue *Venue `json:"venue,omitempty"`
SpringVenue *Venue `json:"springVenue,omitempty"`
TeamCode string `json:"teamCode,omitempty"`
FileCode string `json:"fileCode,omitempty"`
Abbreviation string `json:"abbreviation,omitempty"`
FirstYearOfPlay string `json:"firstYearOfPlay,omitempty"`
TeamName string `json:"teamName,omitempty"`
LocationName string `json:"locationName,omitempty"`
Active bool `json:"active,omitempty"`
Placeholder bool `json:"placeholder,omitempty"`
Roster *BaseballRoster `json:"roster,omitempty"`
NextGameSchedule *BaseballSchedule `json:"nextGameSchedule,omitempty"`
PreviousGameSchedule *BaseballSchedule `json:"previousGameSchedule,omitempty"`
NextSchedule *BaseballSchedule `json:"nextSchedule,omitempty"`
PreviousSchedule *BaseballSchedule `json:"previousSchedule,omitempty"`
Content *TeamContentCms `json:"content,omitempty"`
DeviceProperties *JsonNode `json:"deviceProperties,omitempty"`
Tickets []BaseballTicket `json:"tickets,omitempty"`
PlayoffInfo *TeamPlayoffs `json:"playoffInfo,omitempty"`
HomeAway string `json:"homeAway,omitempty"`
Record *BaseballTeamStandingsRecord `json:"record,omitempty"`
TeamStats []StatContainer `json:"teamStats,omitempty"`
TeamLeaders []Leaders `json:"teamLeaders,omitempty"`
OtherTeamNames *OtherTeamNames `json:"otherTeamNames,omitempty"`
SocialMediaInfo *SocialMediaInfo `json:"socialMediaInfo,omitempty"`
Twitter string `json:"twitter,omitempty"`
LeagueId int32 `json:"leagueId,omitempty"`
TeamDesignation *TeamDesignationEnum `json:"teamDesignation,omitempty"`
ParentOrgId int32 `json:"parentOrgId,omitempty"`
ParentOrgName string `json:"parentOrgName,omitempty"`
SeedNumber int32 `json:"seedNumber,omitempty"`
FranchiseName string `json:"franchiseName,omitempty"`
ClubName string `json:"clubName,omitempty"`
Location *Location `json:"location,omitempty"`
SpringLeague *League `json:"springLeague,omitempty"`
XrefIds []XrefId `json:"xrefIds,omitempty"`
AllStarStatus *AllStarEnum `json:"allStarStatus,omitempty"`
TeamSeq int32 `json:"teamSeq,omitempty"`
NameLanguageHistoryStart string `json:"nameLanguageHistoryStart,omitempty"`
NameLanguageHistoryEnd string `json:"nameLanguageHistoryEnd,omitempty"`
CacheKey string `json:"cacheKey,omitempty"`
ShortName string `json:"shortName,omitempty"`
League *League `json:"league,omitempty"`
Sport *Sport `json:"sport,omitempty"`
Division *Division `json:"division,omitempty"`
Conference *Conference `json:"conference,omitempty"`
HydratedSocial map[string]interface{} `json:"hydratedSocial,omitempty"`
HydratedDeviceProperties map[string]interface{} `json:"hydratedDeviceProperties,omitempty"`
HydratedGamePromotionsAtBat map[string]interface{} `json:"hydratedGamePromotionsAtBat,omitempty"`
HydratedGamePromotions map[string]interface{} `json:"hydratedGamePromotions,omitempty"`
HydratedGameSponsorships map[string]interface{} `json:"hydratedGameSponsorships,omitempty"`
HydratedGameTickets map[string]interface{} `json:"hydratedGameTickets,omitempty"`
HydratedGameTicketsAtBat map[string]interface{} `json:"hydratedGameTicketsAtBat,omitempty"`
Franchise *Franchise `json:"franchise,omitempty"`
UserPrivileges []Privilege `json:"userPrivileges,omitempty"`
}

View File

@@ -0,0 +1,40 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballTeamBoxscore struct {
Team *BaseballTeamRestObject `json:"team,omitempty"`
TeamStats *StatsRestObject `json:"teamStats,omitempty"`
Players map[string]BaseballRosterEntryRestObject `json:"players,omitempty"`
Batters []int32 `json:"batters,omitempty"`
Pitchers []int32 `json:"pitchers,omitempty"`
Bench []int32 `json:"bench,omitempty"`
Bullpen []int32 `json:"bullpen,omitempty"`
BattingOrder []int32 `json:"battingOrder,omitempty"`
Info []BaseballBoxscoreNoteWrapRestObject `json:"info,omitempty"`
Note []BaseballBoxscoreNoteRestObject `json:"note,omitempty"`
}

View File

@@ -0,0 +1,75 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballTeamRestObject struct {
Copyright string `json:"copyright,omitempty"`
Hydrations []string `json:"hydrations,omitempty"`
SpringLeague *LeagueRestObject `json:"springLeague,omitempty"`
XrefIds []XrefIdRestObject `json:"xrefIds,omitempty"`
AllStarStatus *AllStarEnum `json:"allStarStatus,omitempty"`
Id int32 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Link string `json:"link,omitempty"`
Season int32 `json:"season,omitempty"`
Venue *VenueRestObject `json:"venue,omitempty"`
SpringVenue *VenueRestObject `json:"springVenue,omitempty"`
TeamCode string `json:"teamCode,omitempty"`
FileCode string `json:"fileCode,omitempty"`
Abbreviation string `json:"abbreviation,omitempty"`
TriCode string `json:"triCode,omitempty"`
TeamName string `json:"teamName,omitempty"`
LocationName string `json:"locationName,omitempty"`
FirstYearOfPlay string `json:"firstYearOfPlay,omitempty"`
League *LeagueRestObject `json:"league,omitempty"`
Division *DivisionRestObject `json:"division,omitempty"`
Sport *SportRestObject `json:"sport,omitempty"`
Conference *ConferenceRestObject `json:"conference,omitempty"`
Franchise *FranchiseRestObject `json:"franchise,omitempty"`
TeamStats []StatContainerRestObject `json:"teamStats,omitempty"`
Roster *RosterRestObject `json:"roster,omitempty"`
TeamLeaders []LeadersRestObject `json:"teamLeaders,omitempty"`
NextGameSchedule *ScheduleRestObject `json:"nextGameSchedule,omitempty"`
PreviousGameSchedule *ScheduleRestObject `json:"previousGameSchedule,omitempty"`
NextSchedule *ScheduleRestObject `json:"nextSchedule,omitempty"`
PreviousSchedule *ScheduleRestObject `json:"previousSchedule,omitempty"`
Content *TeamContentCms `json:"content,omitempty"`
DeviceProperties *JsonNode `json:"deviceProperties,omitempty"`
Social *SocialMediaRestObject `json:"social,omitempty"`
ShortName string `json:"shortName,omitempty"`
Record *TeamStandingsRecordRestObject `json:"record,omitempty"`
PlayoffInfo *TeamPlayoffs `json:"playoffInfo,omitempty"`
HomeAway string `json:"homeAway,omitempty"`
TeamDesignation string `json:"teamDesignation,omitempty"`
ParentOrgName string `json:"parentOrgName,omitempty"`
ParentOrgId int32 `json:"parentOrgId,omitempty"`
FranchiseName string `json:"franchiseName,omitempty"`
ClubName string `json:"clubName,omitempty"`
Location *LocationRestObject `json:"location,omitempty"`
Active bool `json:"active,omitempty"`
Placeholder bool `json:"placeholder,omitempty"`
}

View File

@@ -0,0 +1,34 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballTeamReview struct {
Copyright string `json:"copyright,omitempty"`
UsedSuccessful int32 `json:"usedSuccessful,omitempty"`
UsedFailed int32 `json:"usedFailed,omitempty"`
Remaining int32 `json:"remaining,omitempty"`
}

View File

@@ -0,0 +1,113 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballTeamStandingsRecord struct {
Team *BaseballTeam `json:"team,omitempty"`
Wins int32 `json:"wins,omitempty"`
Losses int32 `json:"losses,omitempty"`
Ties int32 `json:"ties,omitempty"`
GamesBack string `json:"gamesBack,omitempty"`
WildCardGamesBack string `json:"wildCardGamesBack,omitempty"`
LeagueGamesBack string `json:"leagueGamesBack,omitempty"`
SpringLeagueGamesBack string `json:"springLeagueGamesBack,omitempty"`
SportGamesBack string `json:"sportGamesBack,omitempty"`
DivisionGamesBack string `json:"divisionGamesBack,omitempty"`
ConferenceGamesBack string `json:"conferenceGamesBack,omitempty"`
DivisionChamp bool `json:"divisionChamp,omitempty"`
Season string `json:"season,omitempty"`
Streak string `json:"streak,omitempty"`
LastUpdated time.Time `json:"lastUpdated,omitempty"`
Home string `json:"home,omitempty"`
Away string `json:"away,omitempty"`
LastTen string `json:"lastTen,omitempty"`
Points int32 `json:"points,omitempty"`
ClinchIndicator string `json:"clinchIndicator,omitempty"`
DivisionRank string `json:"divisionRank,omitempty"`
ConferenceRank string `json:"conferenceRank,omitempty"`
SpringLeagueRank string `json:"springLeagueRank,omitempty"`
LeagueRank string `json:"leagueRank,omitempty"`
SportRank string `json:"sportRank,omitempty"`
WildCardRank string `json:"wildCardRank,omitempty"`
GamesPlayed int32 `json:"gamesPlayed,omitempty"`
Place int32 `json:"place,omitempty"`
WildcardPlace int32 `json:"wildcardPlace,omitempty"`
WildcardOdds float64 `json:"wildcardOdds,omitempty"`
DivisionOdds float64 `json:"divisionOdds,omitempty"`
PlayoffOdds float64 `json:"playoffOdds,omitempty"`
RunsAllowed int32 `json:"runsAllowed,omitempty"`
RunsScored int32 `json:"runsScored,omitempty"`
HasWildcard bool `json:"hasWildcard,omitempty"`
Clinched bool `json:"clinched,omitempty"`
EliminationNumber string `json:"eliminationNumber,omitempty"`
EliminationNumberSport string `json:"eliminationNumberSport,omitempty"`
EliminationNumberLeague string `json:"eliminationNumberLeague,omitempty"`
EliminationNumberDivision string `json:"eliminationNumberDivision,omitempty"`
EliminationNumberConference string `json:"eliminationNumberConference,omitempty"`
EliminationNumberWildcard string `json:"eliminationNumberWildcard,omitempty"`
MagicNumber string `json:"magicNumber,omitempty"`
HasPlayoffPoints bool `json:"hasPlayoffPoints,omitempty"`
VsWest string `json:"vsWest,omitempty"`
VsCentral string `json:"vsCentral,omitempty"`
VsEast string `json:"vsEast,omitempty"`
VsInterleague string `json:"vsInterleague,omitempty"`
VsRight string `json:"vsRight,omitempty"`
VsRightHomeWin string `json:"vsRightHomeWin,omitempty"`
VsRightHomeLoss string `json:"vsRightHomeLoss,omitempty"`
VsRightAwayWin string `json:"vsRightAwayWin,omitempty"`
VsRightAwayLoss string `json:"vsRightAwayLoss,omitempty"`
VsLeft string `json:"vsLeft,omitempty"`
VsLeftHomeWin string `json:"vsLeftHomeWin,omitempty"`
VsLeftHomeLoss string `json:"vsLeftHomeLoss,omitempty"`
VsLeftAwayWin string `json:"vsLeftAwayWin,omitempty"`
VsLeftAwayLoss string `json:"vsLeftAwayLoss,omitempty"`
VsWinners string `json:"vsWinners,omitempty"`
ExtraInnings string `json:"extraInnings,omitempty"`
ExpectedWinLoss string `json:"expectedWinLoss,omitempty"`
ExpectedWinLossSeason string `json:"expectedWinLossSeason,omitempty"`
OneRunGames string `json:"oneRunGames,omitempty"`
Turf string `json:"turf,omitempty"`
Grass string `json:"grass,omitempty"`
Night string `json:"night,omitempty"`
Day string `json:"day,omitempty"`
IsWildCardTeam bool `json:"isWildCardTeam,omitempty"`
IsDivisionLeader bool `json:"isDivisionLeader,omitempty"`
DivisionRecords []WinLossRecord `json:"divisionRecords,omitempty"`
ConferenceRecords []WinLossRecord `json:"conferenceRecords,omitempty"`
LeagueRecords []WinLossRecord `json:"leagueRecords,omitempty"`
SplitRecords []WinLossRecord `json:"splitRecords,omitempty"`
ExpectedRecords []WinLossRecord `json:"expectedRecords,omitempty"`
OverallRecords []WinLossRecord `json:"overallRecords,omitempty"`
Conference *Conference `json:"conference,omitempty"`
RunDifferental int32 `json:"runDifferental,omitempty"`
WildCardLeader bool `json:"wildCardLeader,omitempty"`
WinningPercentage float64 `json:"winningPercentage,omitempty"`
}

View File

@@ -0,0 +1,35 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballTeamUniformRestObject struct {
Copyright string `json:"copyright,omitempty"`
Id int32 `json:"id,omitempty"`
TeamName string `json:"teamName,omitempty"`
UniformAssets []UniformRestObject `json:"uniformAssets,omitempty"`
Link string `json:"link,omitempty"`
}

View File

@@ -0,0 +1,40 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
import (
"time"
)
type BaseballTicket struct {
TicketType string `json:"ticketType,omitempty"`
TicketLink string `json:"ticketLink,omitempty"`
ScheduleId int32 `json:"scheduleId,omitempty"`
OnSaleEndDate time.Time `json:"onSaleEndDate,omitempty"`
HomeTicketLink string `json:"homeTicketLink,omitempty"`
AwayTicketLink string `json:"awayTicketLink,omitempty"`
}

View File

@@ -0,0 +1,34 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballTicketRestObject struct {
Copyright string `json:"copyright,omitempty"`
TicketType string `json:"ticketType,omitempty"`
TicketLink string `json:"ticketLink,omitempty"`
TicketLinks map[string]string `json:"ticketLinks,omitempty"`
}

View File

@@ -0,0 +1,34 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BaseballViolation struct {
ViolationType string `json:"violationType,omitempty"`
ViolationSubType string `json:"violationSubType,omitempty"`
ViolationDescription string `json:"violationDescription,omitempty"`
ViolationPlayer *BaseballPerson `json:"violationPlayer,omitempty"`
}

View File

@@ -0,0 +1,33 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BasicWeatherWrapperRestObject struct {
Copyright string `json:"copyright,omitempty"`
Units *JsonNode `json:"units,omitempty"`
Data *WeatherConditionsRestObject `json:"data,omitempty"`
}

View File

@@ -0,0 +1,40 @@
/*
Copyright (C) 2025 filifa
This file is part of mlbstats.
mlbstats is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
mlbstats is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
mlbstats. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Stats API Documentation
*
* Official API for Major League Baseball.
*
* API version: 2.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
type BatImpactRestObject struct {
Copyright string `json:"copyright,omitempty"`
// The angle of the bat's path, at impact, relative to horizontal. A negative value represents swinging downward, a positive value upward.
AttackAngle float64 `json:"attackAngle,omitempty"`
Speed *BatImpactSpeedRestObject `json:"speed,omitempty"`
ContactPoint *ContactPointPositionRestObject `json:"contactPoint,omitempty"`
HeadPosition *HeadPositionRestObject `json:"headPosition,omitempty"`
HandlePosition *HandlePositionRestObject `json:"handlePosition,omitempty"`
Velocity *BatImpactVelocityRestObject `json:"velocity,omitempty"`
// TimeStamp when bat and ball either intersect in case of contact, or in cases where they dont collide, timeStamp where ball is closest to any point along the bat.
TimeStamp string `json:"timeStamp,omitempty"`
}

Some files were not shown because too many files have changed in this diff Show More