UNPKG

galeforce-tmp-sea

Version:

A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.

180 lines 13 kB
"use strict"; /* eslint-disable no-template-curly-in-string */ Object.defineProperty(exports, "__esModule", { value: true }); exports.LOR_DATA_DRAGON = exports.GAME_CLIENT = exports.STATIC = exports.LOL_DATA_DRAGON = exports.VAL_STATUS = exports.VAL_RANKED = exports.VAL_MATCH = exports.VAL_CONTENT = exports.TFT_SUMMONER = exports.TFT_MATCH = exports.TFT_LEAGUE = exports.LOR_STATUS = exports.LOR_RANKED = exports.LOR_MATCH = exports.TOURNAMENT_STUB = exports.TOURNAMENT = exports.CLASH = exports.CHAMPION = exports.STATUS = exports.MATCH = exports.CHALLENGES = exports.LEAGUE = exports.SPECTATOR = exports.CHAMPION_MASTERY = exports.SUMMONER = exports.ACCOUNT = void 0; exports.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}', }; exports.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}', }; exports.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}', }; exports.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', }; exports.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}', }; exports.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}', }; exports.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', }; exports.STATUS = { PLATFORM_DATA: 'https://${region}.api.riotgames.com/lol/status/v4/platform-data', }; exports.CHAMPION = { CHAMPION_ROTATIONS: 'https://${region}.api.riotgames.com/lol/platform/v3/champion-rotations', }; exports.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}', }; exports.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', }; exports.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', }; exports.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', }; exports.LOR_RANKED = { LEADERBOARDS: 'https://${region}.api.riotgames.com/lor/ranked/v1/leaderboards', }; exports.LOR_STATUS = { PLATFORM_DATA: 'https://${region}.api.riotgames.com/lor/status/v1/platform-data', }; exports.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', }; exports.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', }; exports.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}', }; exports.VAL_CONTENT = { CONTENTS: 'https://${region}.api.riotgames.com/val/content/v1/contents', }; exports.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}', }; exports.VAL_RANKED = { LEADERBOARDS: 'https://${region}.api.riotgames.com/val/ranked/v1/leaderboards/by-act/${actId}', }; exports.VAL_STATUS = { PLATFORM_DATA: 'https://${region}.api.riotgames.com/val/status/v1/platform-data', }; exports.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', }; exports.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', }; exports.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', }; exports.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', }; //# sourceMappingURL=endpoints.js.map