@blizzard-api/wow
Version:
A series of helpers to interact with the World of Warcraft Blizzard API
28 lines (27 loc) • 947 B
JavaScript
//#region src/character-achievements/index.ts
const basePath = "/profile/wow/character";
/**
* @param realmSlug The slug of the realm.
* @param characterName The lowercase name of the character.
* @returns a summary of the achievements a character has completed.
*/
function characterAchievementsSummary(realmSlug, characterName) {
return {
namespace: "profile",
path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`
};
}
/**
* @param realmSlug The slug of the realm.
* @param characterName The lowercase name of the character.
* @returns a character's statistics as they pertain to achievements.
*/
function characterAchievementStatistics(realmSlug, characterName) {
return {
namespace: "profile",
path: `${basePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
};
}
//#endregion
export { characterAchievementStatistics, characterAchievementsSummary };
//# sourceMappingURL=index.js.map