@blizzard-api/classic-wow
Version:
A series of helpers to interact with the World of Warcraft Classic Blizzard API
30 lines (29 loc) • 1.25 kB
JavaScript
import { wowCharacterBasePath } from "@blizzard-api/core";
//#region src/character-achievements/index.ts
/**
* @param namespace The namespace to use. See {@link BlizzardNamespaces}. Note: This API is not supported for classic era realms.
* @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(namespace, realmSlug, characterName) {
return {
namespace,
path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`
};
}
/**
* @param namespace The namespace to use. See {@link BlizzardNamespaces}. Note: This API is not supported for classic era realms.
* @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(namespace, realmSlug, characterName) {
return {
namespace,
path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
};
}
//#endregion
export { characterAchievementStatistics, characterAchievementsSummary };
//# sourceMappingURL=index.js.map