@blizzard-api/classic-wow
Version:
A series of helpers to interact with the World of Warcraft Classic Blizzard API
66 lines (65 loc) • 2.22 kB
TypeScript
import { BlizzardNamespaces, Character, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
//#region src/character-statistics/types.d.ts
interface CharacterStatisticsSummaryResponse extends ResponseBase {
agility: BaseEffectiveStat;
arcane_resistance?: BaseEffectiveStat;
armor: BaseEffectiveStat;
attack_power: number;
block: RatingWithValue;
bonus_armor?: number;
character: Character;
defense?: BaseEffectiveStat;
dodge: RatingWithValue;
fire_resistance?: BaseEffectiveStat;
health: number;
holy_resistance?: BaseEffectiveStat;
intellect: BaseEffectiveStat;
main_hand_damage_max: number;
main_hand_damage_min: number;
main_hand_dps: number;
main_hand_speed: number;
mana_regen: number;
mana_regen_combat: number;
mastery?: RatingWithValue;
melee_crit: RatingWithValue;
melee_haste?: RatingWithValue;
nature_resistance?: BaseEffectiveStat;
off_hand_damage_max: number;
off_hand_damage_min: number;
off_hand_dps: number;
off_hand_speed: number;
parry: RatingWithValue;
power: number;
power_type: NameIdKey;
ranged_crit: RatingWithValue;
ranged_haste?: RatingWithValue;
shadow_resistance?: BaseEffectiveStat;
spell_crit: RatingWithValue;
spell_haste?: RatingWithValue;
spell_penetration: number;
spell_power: number;
spirit: BaseEffectiveStat;
stamina: BaseEffectiveStat;
strength: BaseEffectiveStat;
}
interface BaseEffectiveStat {
base: number;
effective: number;
}
interface RatingWithValue {
rating_bonus: number;
rating_normalized: number;
value: number;
}
//#endregion
//#region src/character-statistics/index.d.ts
/**
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
* @param realmSlug The slug of the realm.
* @param characterName The lowercase name of the character.
* @returns a statistics summary for a character.
*/
declare function characterStatisticsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterStatisticsSummaryResponse>;
//#endregion
export { CharacterStatisticsSummaryResponse as n, characterStatisticsSummary as t };
//# sourceMappingURL=index-C7VwaWu6.d.ts.map