battlenet-api-types
Version:
Typescript interfaces for Blizzard's Battle.net API
64 lines (58 loc) • 1.32 kB
text/typescript
/**
* @categoryDescription Playable Class API
* Playable Class API Return Types
*
*/
import { APIMediaStruct, hrefStruct, linksStruct, idkeyStruct, refStruct } from "../shared";
/**
* Playable Classes Index
*
* /data/wow/playable-class/index
* @category Playable Class API
*/
export interface APIPlayableClassesIndex {
_links: linksStruct;
classes: refStruct[];
}
/**
* Playable Class
*
* /data/wow/playable-class/{{classId}}
* @category Playable Class API
*/
export interface APIPlayableClass {
_links: linksStruct;
id: number;
name: string;
gender_name: {
male: string;
female: string;
}
power_type: refStruct;
specializations: refStruct[];
media?: idkeyStruct;
pvp_talent_slots: hrefStruct;
playable_races: refStruct[];
additional_power_types: refStruct[];
}
/**
* Playable Class Media
*
* /data/wow/media/playable-class/{playableClassId}
* @category Playable Class API
*/
export interface APIPlayableClassMedia extends APIMediaStruct {
}
/**
* PvP Talent Slots
*
* /data/wow/playable-class/{classId}/pvp-talent-slots
* @category Playable Class API
*/
export interface APIPvPTalentSlots {
_links: linksStruct;
talent_slots: {
slot_number: number;
unlock_player_level: number;
}[]
}