<reponame>len-m/league-api-website<filename>client/node_modules/.cache/babel-loader/78da8b2c1e3d0a2df29c2628f5c93100.json
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nconst base_api_lol_1 = require(\"../base/base.api.lol\");\n\nconst endpoints_1 = require(\"../../../endpoints\");\n/**\n * Clash api methods\n */\n\n\nclass ClashApi extends base_api_lol_1.BaseApiLol {\n  /**\n   * This endpoint returns a list of active Clash players for a given summoner ID. If a summoner registers for multiple tournaments at the same time (e.g., Saturday and Sunday) then both registrations would appear in this list.\n   * @param region\n   * @param summonerId Encrypted summoner id\n   */\n  playersList(encryptedSummonerId, region) {\n    return this.request(region, endpoints_1.endpointsClashV1.GetPlayers, {\n      encryptedSummonerId\n    });\n  }\n  /**\n   * Get team by id\n   * @param region\n   * @param teamId Team id\n   */\n\n\n  getTeamById(teamId, region) {\n    return this.request(region, endpoints_1.endpointsClashV1.GetTean, {\n      teamId\n    });\n  }\n  /**\n   * Returns a list of active and upcoming tournaments.\n   * @param region\n   */\n\n\n  getTournaments(region) {\n    return this.request(region, endpoints_1.endpointsClashV1.GetTournaments);\n  }\n  /**\n   * Get team tournament\n   */\n\n\n  getTeamTournament(teamId, region) {\n    return this.request(region, endpoints_1.endpointsClashV1.GetTournamentByTeamId, {\n      teamId\n    });\n  }\n  /**\n   * Get tournament by id\n   */\n\n\n  getTournamentById(tournamentId, region) {\n    return this.request(region, endpoints_1.endpointsClashV1.GetTournamentById, {\n      tournamentId\n    });\n  }\n\n}\n\nexports.ClashApi = ClashApi;","map":{"version":3,"sources":["C:/website/node_modules/twisted/dist/apis/lol/clash/clash.api.lol.js"],"names":["Object","defineProperty","exports","value","base_api_lol_1","require","endpoints_1","ClashApi","BaseApiLol","playersList","encryptedSummonerId","region","request","endpointsClashV1","GetPlayers","getTeamById","teamId","GetTean","getTournaments","GetTournaments","getTeamTournament","GetTournamentByTeamId","getTournamentById","tournamentId","GetTournamentById"],"mappings":"AAAA;;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,GAAmBA,QAAnB","sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst base_api_lol_1 = require(\"../base/base.api.lol\");\nconst endpoints_1 = require(\"../../../endpoints\");\n/**\n * Clash api methods\n */\nclass ClashApi extends base_api_lol_1.BaseApiLol {\n    /**\n     * This endpoint returns a list of active Clash players for a given summoner ID. If a summoner registers for multiple tournaments at the same time (e.g., Saturday and Sunday) then both registrations would appear in this list.\n     * @param region\n     * @param summonerId Encrypted summoner id\n     */\n    playersList(encryptedSummonerId, region) {\n        return this.request(region, endpoints_1.endpointsClashV1.GetPlayers, { encryptedSummonerId });\n    }\n    /**\n     * Get team by id\n     * @param region\n     * @param teamId Team id\n     */\n    getTeamById(teamId, region) {\n        return this.request(region, endpoints_1.endpointsClashV1.GetTean, { teamId });\n    }\n    /**\n     * Returns a list of active and upcoming tournaments.\n     * @param region\n     */\n    getTournaments(region) {\n        return this.request(region, endpoints_1.endpointsClashV1.GetTournaments);\n    }\n    /**\n     * Get team tournament\n     */\n    getTeamTournament(teamId, region) {\n        return this.request(region, endpoints_1.endpointsClashV1.GetTournamentByTeamId, { teamId });\n    }\n    /**\n     * Get tournament by id\n     */\n    getTournamentById(tournamentId, region) {\n        return this.request(region, endpoints_1.endpointsClashV1.GetTournamentById, { tournamentId });\n    }\n}\nexports.ClashApi = ClashApi;\n"]},"metadata":{},"sourceType":"script"}