-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds beta version for Euro2024 (#689)
- Loading branch information
1 parent
a01daf2
commit 5e95201
Showing
6 changed files
with
347 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
{ | ||
"id": "Euro2024", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "This is for the 2024 European Championship. This is right now in beta. Player forecast does not work.", | ||
"files": [ | ||
"https://raw.githubusercontent.com/Lukasdotcom/fantasy-manager/main/store/Europe2024/index.ts", | ||
"https://raw.githubusercontent.com/Lukasdotcom/fantasy-manager/main/store/Europe2024/types.ts" | ||
"https://raw.githubusercontent.com/Lukasdotcom/fantasy-manager/main/store/Euro2024/index.ts", | ||
"https://raw.githubusercontent.com/Lukasdotcom/fantasy-manager/main/store/Euro2024/types.ts", | ||
"https://raw.githubusercontent.com/Lukasdotcom/fantasy-manager/main/store/Euro2024/typeClubs.ts", | ||
"https://raw.githubusercontent.com/Lukasdotcom/fantasy-manager/main/store/Euro2024/typeMatchday.ts", | ||
"https://raw.githubusercontent.com/Lukasdotcom/fantasy-manager/main/store/Euro2024/typePlayers.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
// Generated by https://jsonformatter.org/json-to-typescript for https://gaming.uefa.com/en/uclpredictor/api/v1/competition/3/season/current/predictor/matches/${matchday_id} | ||
export default interface Result { | ||
data: Data_club; | ||
} | ||
|
||
export interface Data_club { | ||
items: Item[]; | ||
share_page: null; | ||
share_page_hash: null; | ||
sync: Sync; | ||
} | ||
|
||
export interface Item { | ||
id: number; | ||
home_team: Team; | ||
away_team: Team; | ||
winner_team_id: number | null; | ||
status: Status; | ||
home_team_score: number; | ||
away_team_score: number; | ||
home_team_pen_score: number; | ||
away_team_pen_score: number; | ||
home_team_agg_score: null | number; | ||
away_team_agg_score: null | number; | ||
related_match_score: null | number; | ||
leg_number: null | number; | ||
points_count_finished: boolean; | ||
start_at: string; | ||
match_id: number; | ||
predictable: boolean; | ||
has_penalties: boolean; | ||
has_extra_time: boolean; | ||
phase: null; | ||
prediction_types: PredictionType[]; | ||
tbc: boolean; | ||
joker_multiplier: number; | ||
prediction: null; | ||
tenant_season_matchday_id: number; | ||
match_friends: MatchFriends; | ||
} | ||
|
||
export interface Team { | ||
id: number; | ||
ref_id: string; | ||
name: string; | ||
name_short: string; | ||
image: Image; | ||
active: null; | ||
} | ||
|
||
export interface Image { | ||
large: string; | ||
small: string; | ||
medium: string; | ||
} | ||
|
||
export interface MatchFriends { | ||
count: number; | ||
random_friend_name: string; | ||
items: unknown[]; | ||
} | ||
|
||
export interface PredictionType { | ||
type: Type; | ||
name: Name; | ||
category: Category; | ||
position: number; | ||
primary: boolean; | ||
max_points: number; | ||
most_popular_predictions: MostPopularPrediction[]; | ||
} | ||
|
||
export enum Category { | ||
Fixture = "fixture", | ||
Team = "team", | ||
} | ||
|
||
export interface MostPopularPrediction { | ||
id: number; | ||
value: string; | ||
popularity: number; | ||
percentage: number; | ||
home_team_score: string; | ||
away_team_score: string; | ||
} | ||
|
||
export enum Name { | ||
FirstTeamToScore = "First team to score", | ||
GamePredictionTypesFixtureScoreName = "game.prediction.types.fixture_score.name", | ||
} | ||
|
||
export enum Type { | ||
FirstTeamScore = "first_team_score", | ||
FixtureScore = "fixture_score", | ||
} | ||
|
||
export enum Status { | ||
NotStarted = "not_started", | ||
// These two are guesses and may be wrong | ||
Started = "started", | ||
Finished = "finished", | ||
} | ||
|
||
export interface Sync { | ||
mhash: string; | ||
s: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Generated by https://jsonformatter.org/json-to-typescript for https://gaming.uefa.com/en/uclpredictor/api/v1/competition/3/season/current/predictor/match_days | ||
export default interface Result { | ||
data: Data_matchday; | ||
} | ||
|
||
export interface Data_matchday { | ||
items: CurrentMatchDay[]; | ||
current_match_day: CurrentMatchDay; | ||
} | ||
|
||
export interface CurrentMatchDay { | ||
id: number; | ||
name: string; | ||
name_short: string; | ||
name_abbr: string; | ||
start_at: number; | ||
end_at: number; | ||
is_public: boolean; | ||
points_count_finished: boolean; | ||
predictable: boolean; | ||
has_played_match: boolean; | ||
related_match_number: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
// Generated by https://jsonformatter.org/json-to-typescript for https://gaming.uefa.com/en/eurofantasy/services/feeds/players/players_2_en_1.json | ||
export default interface Result { | ||
data: Data; | ||
meta: Meta; | ||
} | ||
|
||
export interface Data { | ||
value: Value; | ||
feedTime: FeedTime; | ||
} | ||
|
||
export interface FeedTime { | ||
utcTime: string; | ||
istTime: string; | ||
cestTime: string; | ||
} | ||
|
||
export interface Value { | ||
playerList: PlayerList[]; | ||
} | ||
|
||
export interface PlayerList { | ||
id: string; | ||
pDName: string; | ||
pFName: string; | ||
latinName: string; | ||
tName: string; | ||
tId: string; | ||
teamPlayed: number; | ||
minsPlyd: number; | ||
mTransferIn: number; | ||
mTransferOut: number; | ||
rating: number; | ||
cCode: string; | ||
skill: number; | ||
value: number; | ||
isActive: number; | ||
selPer: number; | ||
mdId: string; | ||
totPts: number; | ||
gS: number; | ||
assist: number; | ||
cS: number; | ||
gC: number; | ||
yC: number; | ||
rC: number; | ||
oG: number; | ||
pS: number; | ||
pC: number; | ||
pE: number; | ||
saves: number; | ||
pM: number; | ||
bR: number; | ||
gOB: number; | ||
mOM: number; | ||
mOMPts: number; | ||
pStatus: PStatus; | ||
curGDPts: number; | ||
matchAtd: string; | ||
trained: string; | ||
isPlayed: number; | ||
selInPer: number; | ||
selOutPer: number; | ||
upcomingMatchesList: MatchesList[]; | ||
currentMatchesList: MatchesList[]; | ||
avgPlayerPts: number; | ||
avgPlayerValue: number; | ||
lastGdPoints: number; | ||
category1: number; | ||
category2: number; | ||
category3: number; | ||
category4: number; | ||
category5: number; | ||
category6: number; | ||
category7: number; | ||
category8: number; | ||
category9: number; | ||
category10: number; | ||
category11: number; | ||
category12: number; | ||
category13: number; | ||
category14: number; | ||
category15: number; | ||
dTotPts: number; | ||
} | ||
|
||
export interface MatchesList { | ||
mdId: string; | ||
tId: string; | ||
tSCode: string; | ||
cCode: string; | ||
tLoc: HomeAway; | ||
vsTID: string; | ||
vsTSCode: string; | ||
vsCCode: string; | ||
matchDate: string; | ||
vsTLoc: HomeAway; | ||
} | ||
|
||
export enum HomeAway { | ||
Away = "A", | ||
Home = "H", | ||
} | ||
|
||
export enum PStatus { | ||
Empty = "", | ||
Nis = "NIS", | ||
} | ||
|
||
export interface Meta { | ||
message: string; | ||
retVal: number; | ||
success: boolean; | ||
timestamp: FeedTime; | ||
} |
Oops, something went wrong.