UNPKG

@blizzard-api/wow

Version:

A series of helpers to interact with the World of Warcraft Blizzard API

81 lines (80 loc) 1.98 kB
import { wowBasePath } from "@blizzard-api/core"; //#region src/talent/index.ts /** * Get a PvP talent by ID. * @param pvpTalentId The PvP talent ID. * @returns The PvP talent. See {@link PvpTalentResponse}. */ function pvpTalent(pvpTalentId) { return { namespace: "static", path: `${wowBasePath}/pvp-talent/${pvpTalentId}` }; } /** * Get a PvP talent index. * @returns The PvP talent index. See {@link PvpTalentIndexResponse}. */ function pvpTalentIndex() { return { namespace: "static", path: `${wowBasePath}/pvp-talent/index` }; } /** * Get a talent by ID. * @param talentId The talent ID. * @returns The talent. See {@link TalentResponse}. */ function talent(talentId) { return { namespace: "static", path: `${wowBasePath}/talent/${talentId}` }; } /** * Get a talent index. * @returns The talent index. See {@link TalentIndexResponse}. */ function talentIndex() { return { namespace: "static", path: `${wowBasePath}/talent/index` }; } /** * Get a talent tree by ID. * @param talentTreeId The talent tree ID. * @param specId The playable specialization ID. * @returns The talent tree. See {@link TalentTreeResponse}. */ function talentTree(talentTreeId, specId) { return { namespace: "static", path: `${wowBasePath}/talent-tree/${talentTreeId}/playable-specialization/${specId}` }; } /** * Get a talent tree index. * @returns The talent tree index. See {@link TalentTreeIndexResponse}. */ function talentTreeIndex() { return { namespace: "static", path: `${wowBasePath}/talent-tree/index` }; } /** * Get talent tree nodes by talent tree ID. * @param talentTreeId The talent tree ID. * @returns The talent tree nodes. See {@link TalentTreeNodesResponse}. */ function talentTreeNodes(talentTreeId) { return { namespace: "static", path: `${wowBasePath}/talent-tree/${talentTreeId}` }; } //#endregion export { pvpTalent, pvpTalentIndex, talent, talentIndex, talentTree, talentTreeIndex, talentTreeNodes }; //# sourceMappingURL=index.js.map