1"""Models for the Profession API."""
2
3from wow.models._common import Document, IdRef, Model, Ref, TypedName
4
5__all__ = ["Profession", "ProfessionIndex", "ProfessionSkillTier", "RecipeCategory"]
6
7
[docs]
8class ProfessionIndex(Document):
9 """Every profession, primary and secondary."""
10
11 professions: tuple[Ref, ...]
12
13
[docs]
14class Profession(Document):
15 """A profession, such as Tailoring, with its skill tiers."""
16
17 id: int
18 name: str
19 description: str
20 type: TypedName
21 media: IdRef
22 skill_tiers: tuple[Ref, ...] = ()
23
24
[docs]
25class RecipeCategory(Model):
26 """A group of recipes in a skill tier, such as Weapon Stones."""
27
28 name: str
29 recipes: tuple[Ref, ...] = ()
30
31
[docs]
32class ProfessionSkillTier(Document):
33 """One skill tier of a profession: its skill range and every recipe in it, by category."""
34
35 id: int
36 name: str
37 minimum_skill_level: int
38 maximum_skill_level: int
39 categories: tuple[RecipeCategory, ...] = ()