/
endpoints.ts
202 lines (176 loc) · 12.2 KB
/
endpoints.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/* eslint-disable no-template-curly-in-string */
export const ACCOUNT = {
PUUID: 'https://${region}.api.riotgames.com/riot/account/v1/accounts/by-puuid/${puuid}',
RIOT_ID: 'https://${region}.api.riotgames.com/riot/account/v1/accounts/by-riot-id/${gameName}/${tagLine}',
ACTIVE_SHARDS: 'https://${region}.api.riotgames.com/riot/account/v1/active-shards/by-game/${game}/by-puuid/${puuid}',
};
export const SUMMONER = {
SUMMONER_NAME: 'https://${region}.api.riotgames.com/lol/summoner/v4/summoners/by-name/${summonerName}',
PUUID: 'https://${region}.api.riotgames.com/lol/summoner/v4/summoners/by-puuid/${puuid}',
ACCOUNT_ID: 'https://${region}.api.riotgames.com/lol/summoner/v4/summoners/by-account/${accountId}',
SUMMONER_ID: 'https://${region}.api.riotgames.com/lol/summoner/v4/summoners/${summonerId}',
};
export const CHAMPION_MASTERY = {
LIST: 'https://${region}.api.riotgames.com/lol/champion-mastery/v4/champion-masteries/by-summoner/${summonerId}',
CHAMPION: 'https://${region}.api.riotgames.com/lol/champion-mastery/v4/champion-masteries/by-summoner/${summonerId}/by-champion/${championId}',
SCORE: 'https://${region}.api.riotgames.com/lol/champion-mastery/v4/scores/by-summoner/${summonerId}',
};
export const SPECTATOR = {
SUMMONER_ID: 'https://${region}.api.riotgames.com/lol/spectator/v4/active-games/by-summoner/${summonerId}',
FEATURED: 'https://${region}.api.riotgames.com/lol/spectator/v4/featured-games',
};
export const LEAGUE = {
SUMMONER_ID: 'https://${region}.api.riotgames.com/lol/league/v4/entries/by-summoner/${summonerId}',
LEAGUE_ID: 'https://${region}.api.riotgames.com/lol/league/v4/leagues/${leagueId}',
ENTRIES_BY_RANK: 'https://${region}.api.riotgames.com/lol/league/v4/entries/${queue}/${tier}/${division}',
CHALLENGER_LEAGUE: 'https://${region}.api.riotgames.com/lol/league/v4/challengerleagues/by-queue/${queue}',
GRANDMASTER_LEAGUE: 'https://${region}.api.riotgames.com/lol/league/v4/grandmasterleagues/by-queue/${queue}',
MASTER_LEAGUE: 'https://${region}.api.riotgames.com/lol/league/v4/masterleagues/by-queue/${queue}',
ENTRIES_BY_RANK_EXP: 'https://${region}.api.riotgames.com/lol/league-exp/v4/entries/${queue}/${tier}/${division}',
};
export const CHALLENGES = {
CONFIG_LIST: 'https://${region}.api.riotgames.com/lol/challenges/v1/challenges/config',
PERCENTILES_LIST: 'https://${region}.api.riotgames.com/lol/challenges/v1/challenges/percentiles',
CONFIG: 'https://${region}.api.riotgames.com/lol/challenges/v1/challenges/${challengeId}/config',
LEADERBOARD: 'https://${region}.api.riotgames.com/lol/challenges/v1/challenges/${challengeId}/leaderboards/by-level/${tier}',
PERCENTILES: 'https://${region}.api.riotgames.com/lol/challenges/v1/challenges/${challengeId}/percentiles',
PLAYER_DATA: 'https://${region}.api.riotgames.com/lol/challenges/v1/player-data/${puuid}',
};
export const MATCH = {
MATCHLIST: 'https://${region}.api.riotgames.com/lol/match/v5/matches/by-puuid/${puuid}/ids',
MATCH_ID: 'https://${region}.api.riotgames.com/lol/match/v5/matches/${matchId}',
TIMELINE: 'https://${region}.api.riotgames.com/lol/match/v5/matches/${matchId}/timeline',
};
export const STATUS = {
PLATFORM_DATA: 'https://${region}.api.riotgames.com/lol/status/v4/platform-data',
};
export const CHAMPION = {
CHAMPION_ROTATIONS: 'https://${region}.api.riotgames.com/lol/platform/v3/champion-rotations',
};
export const CLASH = {
PLAYERS: 'https://${region}.api.riotgames.com/lol/clash/v1/players/by-summoner/${summonerId}',
TEAMS: 'https://${region}.api.riotgames.com/lol/clash/v1/teams/${teamId}',
ALL_TOURNAMENTS: 'https://${region}.api.riotgames.com/lol/clash/v1/tournaments',
GET_TEAM_TOURNAMENT: 'https://${region}.api.riotgames.com/lol/clash/v1/tournaments/by-team/${teamId}',
GET_TOURNAMENT: 'https://${region}.api.riotgames.com/lol/clash/v1/tournaments/${tournamentId}',
};
export const TOURNAMENT = {
CREATE_CODE: 'https://${region}.api.riotgames.com/lol/tournament/v4/codes',
BY_CODE: 'https://${region}.api.riotgames.com/lol/tournament/v4/codes/${tournamentCode}',
EVENTS: 'https://${region}.api.riotgames.com/lol/tournament/v4/lobby-events/by-code/${tournamentCode}',
PROVIDERS: 'https://${region}.api.riotgames.com/lol/tournament/v4/providers',
TOURNAMENTS: 'https://${region}.api.riotgames.com/lol/tournament/v4/tournaments',
};
export const TOURNAMENT_STUB = {
CREATE_CODE: 'https://${region}.api.riotgames.com/lol/tournament-stub/v4/codes',
EVENTS: 'https://${region}.api.riotgames.com/lol/tournament-stub/v4/lobby-events/by-code/${tournamentCode}',
PROVIDERS: 'https://${region}.api.riotgames.com/lol/tournament-stub/v4/providers',
TOURNAMENTS: 'https://${region}.api.riotgames.com/lol/tournament-stub/v4/tournaments',
};
export const LOR_MATCH = {
MATCH: 'https://${region}.api.riotgames.com/lor/match/v1/matches/${matchId}',
MATCHLIST: 'https://${region}.api.riotgames.com/lor/match/v1/matches/by-puuid/${puuid}/ids',
};
export const LOR_RANKED = {
LEADERBOARDS: 'https://${region}.api.riotgames.com/lor/ranked/v1/leaderboards',
};
export const LOR_STATUS = {
PLATFORM_DATA: 'https://${region}.api.riotgames.com/lor/status/v1/platform-data',
};
export const TFT_LEAGUE = {
SUMMONER_ID: 'https://${region}.api.riotgames.com/tft/league/v1/entries/by-summoner/${summonerId}',
LEAGUE_ID: 'https://${region}.api.riotgames.com/tft/league/v1/leagues/${leagueId}',
ENTRIES_BY_RANK: 'https://${region}.api.riotgames.com/tft/league/v1/entries/${tier}/${division}',
CHALLENGER_LEAGUE: 'https://${region}.api.riotgames.com/tft/league/v1/challenger',
GRANDMASTER_LEAGUE: 'https://${region}.api.riotgames.com/tft/league/v1/grandmaster',
MASTER_LEAGUE: 'https://${region}.api.riotgames.com/tft/league/v1/master',
};
export const TFT_MATCH = {
MATCH: 'https://${region}.api.riotgames.com/tft/match/v1/matches/${matchId}',
MATCHLIST: 'https://${region}.api.riotgames.com/tft/match/v1/matches/by-puuid/${puuid}/ids',
};
export const TFT_SUMMONER = {
SUMMONER_NAME: 'https://${region}.api.riotgames.com/tft/summoner/v1/summoners/by-name/${summonerName}',
PUUID: 'https://${region}.api.riotgames.com/tft/summoner/v1/summoners/by-puuid/${puuid}',
ACCOUNT_ID: 'https://${region}.api.riotgames.com/tft/summoner/v1/summoners/by-account/${accountId}',
SUMMONER_ID: 'https://${region}.api.riotgames.com/tft/summoner/v1/summoners/${summonerId}',
};
export const VAL_CONTENT = {
CONTENTS: 'https://${region}.api.riotgames.com/val/content/v1/contents',
};
export const VAL_MATCH = {
MATCH: 'https://${region}.api.riotgames.com/val/match/v1/matches/${matchId}',
MATCHLIST: 'https://${region}.api.riotgames.com/val/match/v1/matchlists/by-puuid/${puuid}',
RECENT: 'https://${region}.api.riotgames.com/val/match/v1/recent-matches/by-queue/${queue}',
};
export const VAL_RANKED = {
LEADERBOARDS: 'https://${region}.api.riotgames.com/val/ranked/v1/leaderboards/by-act/${actId}',
};
export const VAL_STATUS = {
PLATFORM_DATA: 'https://${region}.api.riotgames.com/val/status/v1/platform-data',
};
export const LOL_DATA_DRAGON = {
DRAGON_TAIL: 'https://ddragon.leagueoflegends.com/cdn/dragontail-${version}.tgz',
DRAGON_TAIL_ZIP: 'https://ddragon.leagueoflegends.com/cdn/dragontail-${version}.zip',
ASSET: 'https://ddragon.leagueoflegends.com/cdn${assetPath}',
VERSIONS: 'https://ddragon.leagueoflegends.com/api/versions.json',
REGIONS: 'https://ddragon.leagueoflegends.com/realms/${region}.json',
LANGUAGES: 'https://ddragon.leagueoflegends.com/cdn/languages.json',
CHAMPION_LIST: 'https://ddragon.leagueoflegends.com/cdn/${version}/data/${locale}/champion.json',
CHAMPION: 'https://ddragon.leagueoflegends.com/cdn/${version}/data/${locale}/champion/${champion}.json',
SPLASH_ART: 'https://ddragon.leagueoflegends.com/cdn/img/champion/splash/${champion}_${skin}.jpg',
LOADING_ART: 'https://ddragon.leagueoflegends.com/cdn/img/champion/loading/${champion}_${skin}.jpg',
TILE_ART: 'https://ddragon.leagueoflegends.com/cdn/img/champion/tiles/${champion}_${skin}.jpg',
SQUARE_ART: 'https://ddragon.leagueoflegends.com/cdn/${version}/img/champion/${champion}.png',
CHAMPION_PASSIVE_ART: 'https://ddragon.leagueoflegends.com/cdn/${version}/img/passive/${spell}.png',
SPELL_ART: 'https://ddragon.leagueoflegends.com/cdn/${version}/img/spell/${spell}.png',
ITEM_LIST: 'https://ddragon.leagueoflegends.com/cdn/${version}/data/${locale}/item.json',
ITEM_ART: 'https://ddragon.leagueoflegends.com/cdn/${version}/img/item/${assetId}.png',
RUNE_LIST: 'https://ddragon.leagueoflegends.com/cdn/${version}/data/${locale}/runesReforged.json',
RUNE_ART: 'https://ddragon.leagueoflegends.com/cdn/img/perk-images${assetPath}',
SUMMONER_SPELL_LIST: 'https://ddragon.leagueoflegends.com/cdn/${version}/data/${locale}/summoner.json',
PROFILE_ICON_LIST: 'https://ddragon.leagueoflegends.com/cdn/${version}/data/${locale}/profileicon.json',
PROFILE_ICON_ART: 'https://ddragon.leagueoflegends.com/cdn/${version}/img/profileicon/${assetId}.png',
MINIMAP_ART: 'https://ddragon.leagueoflegends.com/cdn/${version}/img/map/${assetId}.png',
SPRITES_ART: 'https://ddragon.leagueoflegends.com/cdn/${version}/img/sprite/${assetId}.png',
SCOREBOARD_ICONS_CHAMPION_ART: 'https://ddragon.leagueoflegends.com/cdn/5.5.1/img/ui/champion.png',
SCOREBOARD_ICONS_ITEMS_ART: 'https://ddragon.leagueoflegends.com/cdn/5.5.1/img/ui/items.png',
SCOREBOARD_ICONS_MINION_ART: 'https://ddragon.leagueoflegends.com/cdn/5.5.1/img/ui/minion.png',
SCOREBOARD_ICONS_SCORE_ART: 'https://ddragon.leagueoflegends.com/cdn/5.5.1/img/ui/score.png',
SCOREBOARD_ICONS_SPELLS_ART: 'https://ddragon.leagueoflegends.com/cdn/5.5.1/img/ui/spells.png',
};
export const STATIC = {
SEASONS: 'http://static.developer.riotgames.com/docs/lol/seasons.json',
QUEUES: 'http://static.developer.riotgames.com/docs/lol/queues.json',
MAPS: 'http://static.developer.riotgames.com/docs/lol/maps.json',
GAME_MODES: 'http://static.developer.riotgames.com/docs/lol/gameModes.json',
GAME_TYPES: 'http://static.developer.riotgames.com/docs/lol/gameTypes.json',
};
export const GAME_CLIENT = {
SWAGGER: 'https://127.0.0.1:2999/swagger/v2/swagger.json',
OPEN_API: 'https://127.0.0.1:2999/swagger/v3/openapi.json',
ALL_GAME_DATA: 'https://127.0.0.1:2999/liveclientdata/allgamedata',
ACTIVE_PLAYER: 'https://127.0.0.1:2999/liveclientdata/activeplayer',
ACTIVE_PLAYER_NAME: 'https://127.0.0.1:2999/liveclientdata/activeplayername',
ACTIVE_PLAYER_ABILITIES: 'https://127.0.0.1:2999/liveclientdata/activeplayerabilities',
ACTIVE_PLAYER_RUNES: 'https://127.0.0.1:2999/liveclientdata/activeplayerrunes',
PLAYER_LIST: 'https://127.0.0.1:2999/liveclientdata/playerlist',
PLAYER_SCORES: 'https://127.0.0.1:2999/liveclientdata/playerscores?summonerName=${summonerName}',
PLAYER_SUMMONER_SPELLS: 'https://127.0.0.1:2999/liveclientdata/playersummonerspells?summonerName=${summonerName}',
PLAYER_RUNES: 'https://127.0.0.1:2999/liveclientdata/playermainrunes?summonerName=${summonerName}',
PLAYER_ITEMS: 'https://127.0.0.1:2999/liveclientdata/playeritems?summonerName=${summonerName}',
EVENTS: 'https://127.0.0.1:2999/liveclientdata/eventdata',
GAME_STATS: 'https://127.0.0.1:2999/liveclientdata/gamestats',
};
export const LOR_DATA_DRAGON = {
CORE_BUNDLE: 'https://dd.b.pvp.net/${version}/core-${locale}.zip',
SET_BUNDLE_FULL: 'https://dd.b.pvp.net/${version}/set${lorSet}-${locale}.zip',
SET_BUNDLE_LITE: 'https://dd.b.pvp.net/${version}/set${lorSet}-lite-${locale}.zip',
CORE_GLOBALS: 'https://dd.b.pvp.net/${version}/core/${locale}/data/globals-${locale}.json',
CORE_REGION_ICONS: 'https://dd.b.pvp.net/${version}/core/${locale}/img/regions/icon-${lorRegion}.png',
SET_DATA: 'https://dd.b.pvp.net/${version}/set${lorSet}/${locale}/data/set${lorSet}-${locale}.json',
SET_CARD_ART: 'https://dd.b.pvp.net/${version}/set${lorSet}/${locale}/img/cards/${card}.png',
SET_CARD_ART_FULL: 'https://dd.b.pvp.net/${version}/set${lorSet}/${locale}/img/cards/${card}-full.png',
SET_CARD_ART_ALT: 'https://dd.b.pvp.net/${version}/set${lorSet}/${locale}/img/cards/${card}-alt.png',
SET_CARD_ART_ALT_FULL: 'https://dd.b.pvp.net/${version}/set${lorSet}/${locale}/img/cards/${card}-alt-full.png',
};