UNPKG

@blizzard-api/wow

Version:

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

70 lines (69 loc) 1.59 kB
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core"; //#region src/pet/index.ts /** * Get a pet by ID. * @param petId The pet ID. * @returns The pet. See {@link PetResponse}. */ function pet(petId) { return { namespace: "static", path: `${wowBasePath}/pet/${petId}` }; } /** * Get a pet ability by ID. * @param petAbilityId The pet ability ID. * @returns The pet ability. See {@link PetAbilityResponse}. */ function petAbility(petAbilityId) { return { namespace: "static", path: `${wowBasePath}/pet-ability/${petAbilityId}` }; } /** * Get a pet ability index. * @returns The pet ability index. See {@link PetAbilityIndexResponse}. */ function petAbilityIndex() { return { namespace: "static", path: `${wowBasePath}/pet-ability/index` }; } /** * Get a pet ability media by ID. * @param petAbilityId The pet ability ID. * @returns The pet ability media. See {@link PetAbilityMediaResponse}. */ function petAbilityMedia(petAbilityId) { return { namespace: "static", path: `${wowMediaBasePath}/pet-ability/${petAbilityId}` }; } /** * Get a pet index. * @returns The pet index. See {@link PetIndexResponse}. */ function petIndex() { return { namespace: "static", path: `${wowBasePath}/pet/index` }; } /** * Get a pet media by ID. * @param petId The pet ID. * @returns The pet media. See {@link PetMediaResponse}. */ function petMedia(petId) { return { namespace: "static", path: `${wowMediaBasePath}/pet/${petId}` }; } //#endregion export { pet, petAbility, petAbilityIndex, petAbilityMedia, petIndex, petMedia }; //# sourceMappingURL=index.js.map