@blizzard-api/wow
Version:
A series of helpers to interact with the World of Warcraft Blizzard API
39 lines (38 loc) • 1.23 kB
JavaScript
//#region src/character-encounters/index.ts
const bathPase = "profile/wow/character";
/**
* @param realmSlug The slug of the realm.
* @param characterName The lowercase name of the character.
* @returns a summary of a character's completed dungeons.
*/
function characterDungeons(realmSlug, characterName) {
return {
namespace: "profile",
path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters/dungeons`
};
}
/**
* @param realmSlug The slug of the realm.
* @param characterName The lowercase name of the character.
* @returns a summary of a character's encounters.
*/
function characterEncountersSummary(realmSlug, characterName) {
return {
namespace: "profile",
path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters`
};
}
/**
* @param realmSlug The slug of the realm.
* @param characterName The lowercase name of the character.
* @returns a summary of a character's completed raids.
*/
function characterRaids(realmSlug, characterName) {
return {
namespace: "profile",
path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters/raids`
};
}
//#endregion
export { characterDungeons, characterEncountersSummary, characterRaids };
//# sourceMappingURL=index.js.map