UNPKG

@blizzard-api/wow

Version:

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

72 lines (71 loc) 1.86 kB
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core"; //#region src/profession/index.ts /** * Get a profession by ID. * @param professionId The profession ID. * @returns The profession. See {@link ProfessionResponse}. */ function profession(professionId) { return { namespace: "static", path: `${wowBasePath}/profession/${professionId}` }; } /** * Get a profession index. * @returns The profession index. See {@link ProfessionIndexResponse}. */ function professionIndex() { return { namespace: "static", path: `${wowBasePath}/profession/index` }; } /** * Get profession media by ID. * @param professionId The profession ID. * @returns The profession media. See {@link ProfessionMediaResponse}. */ function professionMedia(professionId) { return { namespace: "static", path: `${wowMediaBasePath}/profession/${professionId}` }; } /** * Get a profession's skill tier by ID. * @param professionId The profession ID. * @param skillTierId The skill tier ID. * @returns The profession's skill tier. See {@link ProfessionSkillTierResponse}. */ function professionSkillTier(professionId, skillTierId) { return { namespace: "static", path: `${wowBasePath}/profession/${professionId}/skill-tier/${skillTierId}` }; } /** * Get a recipe by ID. * @param recipeId The recipe ID. * @returns The recipe. See {@link RecipeResponse}. */ function recipe(recipeId) { return { namespace: "static", path: `${wowBasePath}/recipe/${recipeId}` }; } /** * Get recipe media by ID. * @param recipeId The recipe ID. * @returns The recipe media. See {@link RecipeMediaResponse}. */ function recipeMedia(recipeId) { return { namespace: "static", path: `${wowMediaBasePath}/recipe/${recipeId}` }; } //#endregion export { profession, professionIndex, professionMedia, professionSkillTier, recipe, recipeMedia }; //# sourceMappingURL=index.js.map