@blizzard-api/wow 3.0.5 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-profile/index.d.ts +2 -0
- package/dist/account-profile/index.js +104 -0
- package/dist/account-profile/index.js.map +1 -0
- package/dist/achievements/index.d.ts +2 -0
- package/dist/achievements/index.js +61 -0
- package/dist/achievements/index.js.map +1 -0
- package/dist/auction-house/index.d.ts +2 -0
- package/dist/auction-house/index.js +27 -0
- package/dist/auction-house/index.js.map +1 -0
- package/dist/azerite-essence/index.d.ts +2 -0
- package/dist/azerite-essence/index.js +54 -0
- package/dist/azerite-essence/index.js.map +1 -0
- package/dist/character-achievements/index.d.ts +2 -0
- package/dist/character-achievements/index.js +28 -0
- package/dist/character-achievements/index.js.map +1 -0
- package/dist/character-appearance/index.d.ts +2 -0
- package/dist/character-appearance/index.js +16 -0
- package/dist/character-appearance/index.js.map +1 -0
- package/dist/character-collections/index.d.ts +2 -0
- package/dist/character-collections/index.js +72 -0
- package/dist/character-collections/index.js.map +1 -0
- package/dist/character-encounters/index.d.ts +2 -0
- package/dist/character-encounters/index.js +39 -0
- package/dist/character-encounters/index.js.map +1 -0
- package/dist/character-equipment/index.d.ts +2 -0
- package/dist/character-equipment/index.js +16 -0
- package/dist/character-equipment/index.js.map +1 -0
- package/dist/character-hunter-pets/index.d.ts +2 -0
- package/dist/character-hunter-pets/index.js +17 -0
- package/dist/character-hunter-pets/index.js.map +1 -0
- package/dist/character-media/index.d.ts +2 -0
- package/dist/character-media/index.js +16 -0
- package/dist/character-media/index.js.map +1 -0
- package/dist/character-mythic-keystone-profile/index.d.ts +2 -0
- package/dist/character-mythic-keystone-profile/index.js +30 -0
- package/dist/character-mythic-keystone-profile/index.js.map +1 -0
- package/dist/character-professions/index.d.ts +2 -0
- package/dist/character-professions/index.js +16 -0
- package/dist/character-professions/index.js.map +1 -0
- package/dist/character-profile/index.d.ts +2 -0
- package/dist/character-profile/index.js +39 -0
- package/dist/character-profile/index.js.map +1 -0
- package/dist/character-pvp/index.d.ts +2 -0
- package/dist/character-pvp/index.js +28 -0
- package/dist/character-pvp/index.js.map +1 -0
- package/dist/character-quests/index.d.ts +2 -0
- package/dist/character-quests/index.js +27 -0
- package/dist/character-quests/index.js.map +1 -0
- package/dist/character-reputations/index.d.ts +2 -0
- package/dist/character-reputations/index.js +16 -0
- package/dist/character-reputations/index.js.map +1 -0
- package/dist/character-soulbinds/index.d.ts +2 -0
- package/dist/character-soulbinds/index.js +16 -0
- package/dist/character-soulbinds/index.js.map +1 -0
- package/dist/character-specializations/index.d.ts +2 -0
- package/dist/character-specializations/index.js +16 -0
- package/dist/character-specializations/index.js.map +1 -0
- package/dist/character-statistics/index.d.ts +2 -0
- package/dist/character-statistics/index.js +16 -0
- package/dist/character-statistics/index.js.map +1 -0
- package/dist/character-titles/index.d.ts +2 -0
- package/dist/character-titles/index.js +16 -0
- package/dist/character-titles/index.js.map +1 -0
- package/dist/connected-realm/index.d.ts +2 -0
- package/dist/connected-realm/index.js +44 -0
- package/dist/connected-realm/index.js.map +1 -0
- package/dist/covenant/index.d.ts +2 -0
- package/dist/covenant/index.js +80 -0
- package/dist/covenant/index.js.map +1 -0
- package/dist/creature/index.d.ts +2 -0
- package/dist/creature/index.js +97 -0
- package/dist/creature/index.js.map +1 -0
- package/dist/guild/index.d.ts +2 -0
- package/dist/guild/index.js +50 -0
- package/dist/guild/index.js.map +1 -0
- package/dist/guild-crest/index.d.ts +2 -0
- package/dist/guild-crest/index.js +38 -0
- package/dist/guild-crest/index.js.map +1 -0
- package/dist/heirloom/index.d.ts +2 -0
- package/dist/heirloom/index.js +27 -0
- package/dist/heirloom/index.js.map +1 -0
- package/dist/housing-decor/index.d.ts +2 -0
- package/dist/housing-decor/index.js +155 -0
- package/dist/housing-decor/index.js.map +1 -0
- package/dist/index--WL1Ol2r.d.ts +192 -0
- package/dist/index-0hpJYoWw.d.ts +86 -0
- package/dist/index-2xjdPrIp.d.ts +34 -0
- package/dist/index-8go905Or2.d.ts +46 -0
- package/dist/index-B-v4jmT8.d.ts +120 -0
- package/dist/index-BAx6xlRe.d.ts +43 -0
- package/dist/index-BJYdOuJB2.d.ts +21 -0
- package/dist/index-BM5t9AbX2.d.ts +72 -0
- package/dist/index-BOz0BCUN2.d.ts +233 -0
- package/dist/index-BUSzkCHP2.d.ts +38 -0
- package/dist/index-BWGWNZX7.d.ts +62 -0
- package/dist/index-BXawY6VA2.d.ts +150 -0
- package/dist/index-B_OrLUY42.d.ts +102 -0
- package/dist/index-BcKDDvwF.d.ts +85 -0
- package/dist/index-Bd_PavJU.d.ts +56 -0
- package/dist/index-BgkVcJkr2.d.ts +60 -0
- package/dist/index-BuORTLmA.d.ts +29 -0
- package/dist/index-C2BXkcO8.d.ts +36 -0
- package/dist/index-C9JT3jCN2.d.ts +77 -0
- package/dist/index-CE4iGLJf2.d.ts +128 -0
- package/dist/index-CH3CudPP.d.ts +91 -0
- package/dist/index-CJSqSpru.d.ts +145 -0
- package/dist/index-CP1gTrDv.d.ts +312 -0
- package/dist/index-CQXTvcKu2.d.ts +72 -0
- package/dist/index-CS_QQdEk.d.ts +22 -0
- package/dist/index-CWFif_SP2.d.ts +31 -0
- package/dist/index-CZy1t3WK.d.ts +160 -0
- package/dist/index-ChVDi11Z.d.ts +54 -0
- package/dist/index-CmJhDVVk.d.ts +157 -0
- package/dist/index-Cry2-cm82.d.ts +123 -0
- package/dist/index-Cto5KQ-A2.d.ts +71 -0
- package/dist/index-D9u-Oxk6.d.ts +69 -0
- package/dist/index-DDHIN-u0.d.ts +36 -0
- package/dist/index-DJZZaqMF.d.ts +66 -0
- package/dist/index-DLD2tbdk.d.ts +68 -0
- package/dist/index-DScltfEW.d.ts +89 -0
- package/dist/index-DZqv9GTd.d.ts +125 -0
- package/dist/index-DiU4f1cd2.d.ts +45 -0
- package/dist/index-DlkM3Nrw2.d.ts +45 -0
- package/dist/index-Do1l3j1C.d.ts +283 -0
- package/dist/index-DpfeUoRy.d.ts +149 -0
- package/dist/index-DvzdYkdL.d.ts +89 -0
- package/dist/index-DwuFoDTp.d.ts +159 -0
- package/dist/index-DxEXkR_n.d.ts +81 -0
- package/dist/index-Dzfv2QaX.d.ts +65 -0
- package/dist/index-J46u_PSy2.d.ts +117 -0
- package/dist/index-LhUh1Lk5.d.ts +30 -0
- package/dist/index-SfMQ7bBi2.d.ts +86 -0
- package/dist/index-Xyv-CG_n.d.ts +160 -0
- package/dist/index-ZAJGdEvm.d.ts +102 -0
- package/dist/index-fbBIJXcV.d.ts +69 -0
- package/dist/index-fn_f7xiC.d.ts +21 -0
- package/dist/index-h17WWDmt.d.ts +118 -0
- package/dist/index-m4fmIRKg.d.ts +35 -0
- package/dist/index.d.ts +69 -4738
- package/dist/index.js +68 -2137
- package/dist/index.js.map +1 -1
- package/dist/item/index.d.ts +2 -0
- package/dist/item/index.js +98 -0
- package/dist/item/index.js.map +1 -0
- package/dist/journal/index.d.ts +2 -0
- package/dist/journal/index.js +96 -0
- package/dist/journal/index.js.map +1 -0
- package/dist/media-search/index.d.ts +2 -0
- package/dist/media-search/index.js +22 -0
- package/dist/media-search/index.js.map +1 -0
- package/dist/modified-crafting/index.d.ts +2 -0
- package/dist/modified-crafting/index.js +58 -0
- package/dist/modified-crafting/index.js.map +1 -0
- package/dist/mount/index.d.ts +2 -0
- package/dist/mount/index.js +43 -0
- package/dist/mount/index.js.map +1 -0
- package/dist/mythic-keystone-affix/index.d.ts +2 -0
- package/dist/mythic-keystone-affix/index.js +38 -0
- package/dist/mythic-keystone-affix/index.js.map +1 -0
- package/dist/mythic-keystone-dungeon/index.d.ts +2 -0
- package/dist/mythic-keystone-dungeon/index.js +79 -0
- package/dist/mythic-keystone-dungeon/index.js.map +1 -0
- package/dist/mythic-keystone-leaderboard/index.d.ts +2 -0
- package/dist/mythic-keystone-leaderboard/index.js +30 -0
- package/dist/mythic-keystone-leaderboard/index.js.map +1 -0
- package/dist/mythic-raid-leaderboard/index.d.ts +2 -0
- package/dist/mythic-raid-leaderboard/index.js +18 -0
- package/dist/mythic-raid-leaderboard/index.js.map +1 -0
- package/dist/pet/index.d.ts +2 -0
- package/dist/pet/index.js +70 -0
- package/dist/pet/index.js.map +1 -0
- package/dist/playable-class/index.d.ts +2 -0
- package/dist/playable-class/index.js +49 -0
- package/dist/playable-class/index.js.map +1 -0
- package/dist/playable-race/index.d.ts +2 -0
- package/dist/playable-race/index.js +27 -0
- package/dist/playable-race/index.js.map +1 -0
- package/dist/playable-specialization/index.d.ts +2 -0
- package/dist/playable-specialization/index.js +38 -0
- package/dist/playable-specialization/index.js.map +1 -0
- package/dist/power-type/index.d.ts +2 -0
- package/dist/power-type/index.js +27 -0
- package/dist/power-type/index.js.map +1 -0
- package/dist/profession/index.d.ts +2 -0
- package/dist/profession/index.js +72 -0
- package/dist/profession/index.js.map +1 -0
- package/dist/pvp-season/index.d.ts +2 -0
- package/dist/pvp-season/index.js +61 -0
- package/dist/pvp-season/index.js.map +1 -0
- package/dist/pvp-tier/index.d.ts +2 -0
- package/dist/pvp-tier/index.js +38 -0
- package/dist/pvp-tier/index.js.map +1 -0
- package/dist/quest/index.d.ts +2 -0
- package/dist/quest/index.js +90 -0
- package/dist/quest/index.js.map +1 -0
- package/dist/realm/index.d.ts +24 -0
- package/dist/realm/index.js +43 -0
- package/dist/realm/index.js.map +1 -0
- package/dist/region/index.d.ts +2 -0
- package/dist/region/index.js +27 -0
- package/dist/region/index.js.map +1 -0
- package/dist/reputations/index.d.ts +2 -0
- package/dist/reputations/index.js +48 -0
- package/dist/reputations/index.js.map +1 -0
- package/dist/spell/index.d.ts +2 -0
- package/dist/spell/index.js +44 -0
- package/dist/spell/index.js.map +1 -0
- package/dist/talent/index.d.ts +2 -0
- package/dist/talent/index.js +81 -0
- package/dist/talent/index.js.map +1 -0
- package/dist/tech-talent/index.d.ts +2 -0
- package/dist/tech-talent/index.js +59 -0
- package/dist/tech-talent/index.js.map +1 -0
- package/dist/title/index.d.ts +2 -0
- package/dist/title/index.js +27 -0
- package/dist/title/index.js.map +1 -0
- package/dist/toy/index.d.ts +2 -0
- package/dist/toy/index.js +27 -0
- package/dist/toy/index.js.map +1 -0
- package/dist/types-Z0ZgMUXA.d.ts +79 -0
- package/dist/wow-token/index.d.ts +2 -0
- package/dist/wow-token/index.js +16 -0
- package/dist/wow-token/index.js.map +1 -0
- package/package.json +16 -7
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Href, KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/modified-crafting/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for a modified crafting category index.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface ModifiedCraftingCategoryIndexResponse extends ResponseBase {
|
|
9
|
+
categories: Array<KeyBase & {
|
|
10
|
+
id: number;
|
|
11
|
+
name?: null | string;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The response for a modified crafting category.
|
|
16
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
17
|
+
*/
|
|
18
|
+
interface ModifiedCraftingCategoryResponse extends ResponseBase {
|
|
19
|
+
id: number;
|
|
20
|
+
name?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The response for a modified crafting index.
|
|
24
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
25
|
+
*/
|
|
26
|
+
interface ModifiedCraftingIndexResponse extends ResponseBase {
|
|
27
|
+
categories: Href;
|
|
28
|
+
slot_types: Href;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The response for a modified crafting reagent slot type index.
|
|
32
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
33
|
+
*/
|
|
34
|
+
interface ModifiedCraftingReagentSlotTypeIndexResponse extends ResponseBase {
|
|
35
|
+
slot_types: Array<SlotType>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The response for a modified crafting reagent slot type.
|
|
39
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
40
|
+
*/
|
|
41
|
+
interface ModifiedCraftingReagentSlotTypeResponse extends ResponseBase {
|
|
42
|
+
compatible_categories: Array<NameIdKey>;
|
|
43
|
+
description: string;
|
|
44
|
+
id: number;
|
|
45
|
+
}
|
|
46
|
+
interface SlotType extends KeyBase {
|
|
47
|
+
id: number;
|
|
48
|
+
name?: null | string;
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/modified-crafting/index.d.ts
|
|
52
|
+
/**
|
|
53
|
+
* Get a modified crafting category by ID.
|
|
54
|
+
* @param modifiedCraftingCategoryId The modified crafting category ID.
|
|
55
|
+
* @returns The modified crafting category. See {@link ModifiedCraftingCategoryResponse}.
|
|
56
|
+
*/
|
|
57
|
+
declare function modifiedCraftingCategory(modifiedCraftingCategoryId: number): Resource<ModifiedCraftingCategoryResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Get a modified crafting category index.
|
|
60
|
+
* @returns The modified crafting category index. See {@link ModifiedCraftingCategoryIndexResponse}.
|
|
61
|
+
*/
|
|
62
|
+
declare function modifiedCraftingCategoryIndex(): Resource<ModifiedCraftingCategoryIndexResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Get a modified crafting index.
|
|
65
|
+
* @returns The modified crafting index. See {@link ModifiedCraftingIndexResponse}.
|
|
66
|
+
*/
|
|
67
|
+
declare function modifiedCraftingIndex(): Resource<ModifiedCraftingIndexResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Get a modified crafting reagent slot type by ID.
|
|
70
|
+
* @param modifiedCraftingReagentSlotTypeId The modified crafting reagent slot type ID.
|
|
71
|
+
* @returns The modified crafting reagent slot type. See {@link ModifiedCraftingReagentSlotTypeResponse}.
|
|
72
|
+
*/
|
|
73
|
+
declare function modifiedCraftingReagentSlotType(modifiedCraftingReagentSlotTypeId: number): Resource<ModifiedCraftingReagentSlotTypeResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Get a modified crafting reagent slot type index.
|
|
76
|
+
* @returns The modified crafting reagent slot type index. See {@link ModifiedCraftingReagentSlotTypeIndexResponse}.
|
|
77
|
+
*/
|
|
78
|
+
declare function modifiedCraftingReagentSlotTypeIndex(): Resource<ModifiedCraftingReagentSlotTypeIndexResponse>;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { modifiedCraftingReagentSlotTypeIndex as a, ModifiedCraftingIndexResponse as c, modifiedCraftingReagentSlotType as i, ModifiedCraftingReagentSlotTypeIndexResponse as l, modifiedCraftingCategoryIndex as n, ModifiedCraftingCategoryIndexResponse as o, modifiedCraftingIndex as r, ModifiedCraftingCategoryResponse as s, modifiedCraftingCategory as t, ModifiedCraftingReagentSlotTypeResponse as u };
|
|
81
|
+
//# sourceMappingURL=index-DxEXkR_n.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Character, Color, KeyBase, NameId, NameIdKey, Realm, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/character-mythic-keystone-profile/types.d.ts
|
|
4
|
+
interface CharacterMythicKeystoneProfileIndexResponse extends ResponseBase {
|
|
5
|
+
character: Character;
|
|
6
|
+
current_period: CurrentPeriod;
|
|
7
|
+
seasons: Array<KeyBase & {
|
|
8
|
+
id: number;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
interface CharacterMythicKeystoneSeasonDetailsResponse extends ResponseBase {
|
|
12
|
+
best_runs: Array<BestRun>;
|
|
13
|
+
character: Character;
|
|
14
|
+
mythic_rating: MythicRating;
|
|
15
|
+
season: KeyBase & {
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
interface BestRun {
|
|
20
|
+
completed_timestamp: number;
|
|
21
|
+
dungeon: NameIdKey;
|
|
22
|
+
duration: number;
|
|
23
|
+
is_completed_within_time: boolean;
|
|
24
|
+
keystone_affixes: Array<NameIdKey>;
|
|
25
|
+
keystone_level: number;
|
|
26
|
+
members: Array<Member>;
|
|
27
|
+
mythic_rating: MythicRating;
|
|
28
|
+
}
|
|
29
|
+
interface CurrentPeriod {
|
|
30
|
+
period: KeyBase & {
|
|
31
|
+
id: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
interface Member {
|
|
35
|
+
character: NameId & {
|
|
36
|
+
realm: Realm;
|
|
37
|
+
};
|
|
38
|
+
equipped_item_level: number;
|
|
39
|
+
race: NameIdKey;
|
|
40
|
+
specialization: NameIdKey;
|
|
41
|
+
}
|
|
42
|
+
interface MythicRating {
|
|
43
|
+
color: Color;
|
|
44
|
+
rating: number;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/character-mythic-keystone-profile/index.d.ts
|
|
48
|
+
/**
|
|
49
|
+
* @param realmSlug The slug of the realm.
|
|
50
|
+
* @param characterName The lowercase name of the character.
|
|
51
|
+
* @returns Returns the Mythic Keystone season details for a character. Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.
|
|
52
|
+
*/
|
|
53
|
+
declare function characterMythicKeystoneProfileIndex(realmSlug: string, characterName: string): Resource<CharacterMythicKeystoneProfileIndexResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Returns the Mythic Keystone season details for a character.
|
|
56
|
+
* Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.
|
|
57
|
+
* @param realmSlug The slug of the realm.
|
|
58
|
+
* @param characterName The lowercase name of the character.
|
|
59
|
+
* @param seasonId The ID of the season.
|
|
60
|
+
* @returns the Mythic Keystone season details for a character.
|
|
61
|
+
*/
|
|
62
|
+
declare function characterMythicKeystoneSeasonDetails(realmSlug: string, characterName: string, seasonId: number): Resource<CharacterMythicKeystoneSeasonDetailsResponse>;
|
|
63
|
+
//#endregion
|
|
64
|
+
export { CharacterMythicKeystoneSeasonDetailsResponse as i, characterMythicKeystoneSeasonDetails as n, CharacterMythicKeystoneProfileIndexResponse as r, characterMythicKeystoneProfileIndex as t };
|
|
65
|
+
//# sourceMappingURL=index-Dzfv2QaX.d.ts.map
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { KeyBase, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/pet/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for a pet ability index.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface PetAbilityIndexResponse extends ResponseBase {
|
|
9
|
+
abilities: Array<NullishNameIdKey>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The response for a pet ability media.
|
|
13
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
14
|
+
*/
|
|
15
|
+
interface PetAbilityMediaResponse extends ResponseBase {
|
|
16
|
+
assets: Array<MediaAsset>;
|
|
17
|
+
id: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The response for a pet ability.
|
|
21
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
22
|
+
*/
|
|
23
|
+
interface PetAbilityResponse extends NameId, ResponseBase {
|
|
24
|
+
battle_pet_type: BattlePetType;
|
|
25
|
+
cooldown?: number;
|
|
26
|
+
media: Media;
|
|
27
|
+
rounds: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The response for a pet index.
|
|
31
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
32
|
+
*/
|
|
33
|
+
interface PetIndexResponse extends ResponseBase {
|
|
34
|
+
pets: Array<NullishNameIdKey>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The response for a pet search.
|
|
38
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
39
|
+
*/
|
|
40
|
+
interface PetMediaResponse extends ResponseBase {
|
|
41
|
+
assets: Array<MediaAsset>;
|
|
42
|
+
id: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The response for a pet.
|
|
46
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
47
|
+
*/
|
|
48
|
+
interface PetResponse extends NameId, ResponseBase {
|
|
49
|
+
abilities?: Array<Ability>;
|
|
50
|
+
battle_pet_type: BattlePetType;
|
|
51
|
+
creature: NameIdKey;
|
|
52
|
+
description: null | string;
|
|
53
|
+
icon: string;
|
|
54
|
+
is_alliance_only: boolean;
|
|
55
|
+
is_battlepet: boolean;
|
|
56
|
+
is_capturable: boolean;
|
|
57
|
+
is_horde_only: boolean;
|
|
58
|
+
is_random_creature_display: boolean;
|
|
59
|
+
is_tradable: boolean;
|
|
60
|
+
media: Media;
|
|
61
|
+
should_exclude_if_uncollected?: boolean;
|
|
62
|
+
source?: Source;
|
|
63
|
+
}
|
|
64
|
+
interface Ability {
|
|
65
|
+
ability: NameIdKey;
|
|
66
|
+
required_level: number;
|
|
67
|
+
slot: number;
|
|
68
|
+
}
|
|
69
|
+
interface BattlePetType extends NameId {
|
|
70
|
+
type: string;
|
|
71
|
+
}
|
|
72
|
+
interface Media extends KeyBase {
|
|
73
|
+
id: number;
|
|
74
|
+
}
|
|
75
|
+
interface Source {
|
|
76
|
+
name: string;
|
|
77
|
+
type: string;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/pet/index.d.ts
|
|
81
|
+
/**
|
|
82
|
+
* Get a pet by ID.
|
|
83
|
+
* @param petId The pet ID.
|
|
84
|
+
* @returns The pet. See {@link PetResponse}.
|
|
85
|
+
*/
|
|
86
|
+
declare function pet(petId: number): Resource<PetResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Get a pet ability by ID.
|
|
89
|
+
* @param petAbilityId The pet ability ID.
|
|
90
|
+
* @returns The pet ability. See {@link PetAbilityResponse}.
|
|
91
|
+
*/
|
|
92
|
+
declare function petAbility(petAbilityId: number): Resource<PetAbilityResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Get a pet ability index.
|
|
95
|
+
* @returns The pet ability index. See {@link PetAbilityIndexResponse}.
|
|
96
|
+
*/
|
|
97
|
+
declare function petAbilityIndex(): Resource<PetAbilityIndexResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* Get a pet ability media by ID.
|
|
100
|
+
* @param petAbilityId The pet ability ID.
|
|
101
|
+
* @returns The pet ability media. See {@link PetAbilityMediaResponse}.
|
|
102
|
+
*/
|
|
103
|
+
declare function petAbilityMedia(petAbilityId: number): Resource<PetAbilityMediaResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* Get a pet index.
|
|
106
|
+
* @returns The pet index. See {@link PetIndexResponse}.
|
|
107
|
+
*/
|
|
108
|
+
declare function petIndex(): Resource<PetIndexResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Get a pet media by ID.
|
|
111
|
+
* @param petId The pet ID.
|
|
112
|
+
* @returns The pet media. See {@link PetMediaResponse}.
|
|
113
|
+
*/
|
|
114
|
+
declare function petMedia(petId: number): Resource<PetMediaResponse>;
|
|
115
|
+
//#endregion
|
|
116
|
+
export { petIndex as a, PetAbilityMediaResponse as c, PetMediaResponse as d, PetResponse as f, petAbilityMedia as i, PetAbilityResponse as l, petAbility as n, petMedia as o, petAbilityIndex as r, PetAbilityIndexResponse as s, pet as t, PetIndexResponse as u };
|
|
117
|
+
//# sourceMappingURL=index-J46u_PSy2.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Character, KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/character-hunter-pets/types.d.ts
|
|
4
|
+
interface CharacterHunterPetsSummaryResponse extends ResponseBase {
|
|
5
|
+
character: Character;
|
|
6
|
+
hunter_pets: Array<HunterPet>;
|
|
7
|
+
}
|
|
8
|
+
interface HunterPet {
|
|
9
|
+
creature: NameIdKey;
|
|
10
|
+
creature_display: KeyBase & {
|
|
11
|
+
id: number;
|
|
12
|
+
};
|
|
13
|
+
is_active?: boolean;
|
|
14
|
+
is_summoned?: boolean;
|
|
15
|
+
level: number;
|
|
16
|
+
name: string;
|
|
17
|
+
slot: number;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/character-hunter-pets/index.d.ts
|
|
21
|
+
/**
|
|
22
|
+
* If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
|
|
23
|
+
* @param realmSlug The slug of the realm.
|
|
24
|
+
* @param characterName The lowercase name of the character.
|
|
25
|
+
* @returns a summary of the character's hunter pets.
|
|
26
|
+
*/
|
|
27
|
+
declare function characterHunterPetsSummary(realmSlug: string, characterName: string): Resource<CharacterHunterPetsSummaryResponse>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { CharacterHunterPetsSummaryResponse as n, characterHunterPetsSummary as t };
|
|
30
|
+
//# sourceMappingURL=index-LhUh1Lk5.d.ts.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Faction, KeyBase, NameIdKey, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/reputations/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for a reputation faction index.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface ReputationFactionIndexResponse extends ResponseBase {
|
|
9
|
+
factions: Array<NullishNameIdKey>;
|
|
10
|
+
root_factions: Array<NameIdKey>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The response for a reputation faction.
|
|
14
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
15
|
+
*/
|
|
16
|
+
interface ReputationFactionResponse extends ResponseBase {
|
|
17
|
+
can_paragon?: boolean;
|
|
18
|
+
description?: string;
|
|
19
|
+
factions?: Array<NameIdKey>;
|
|
20
|
+
header_shows_bar?: boolean;
|
|
21
|
+
id: number;
|
|
22
|
+
is_header?: boolean;
|
|
23
|
+
is_renown?: boolean;
|
|
24
|
+
name: string;
|
|
25
|
+
player_faction?: Faction;
|
|
26
|
+
renown_tiers?: Array<RenownTier>;
|
|
27
|
+
reputation_tiers?: ReputationTier;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The response for a reputation tier index.
|
|
31
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
32
|
+
*/
|
|
33
|
+
interface ReputationTiersIndexResponse extends ResponseBase {
|
|
34
|
+
reputation_tiers: Array<ReputationTier>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The response for a reputation tier.
|
|
38
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
39
|
+
*/
|
|
40
|
+
interface ReputationTiersResponse extends ResponseBase {
|
|
41
|
+
faction?: NameIdKey;
|
|
42
|
+
id: number;
|
|
43
|
+
tiers: Array<Tier>;
|
|
44
|
+
}
|
|
45
|
+
interface RenownTier {
|
|
46
|
+
level: number;
|
|
47
|
+
name: string;
|
|
48
|
+
rewards: Array<NameIdKey>;
|
|
49
|
+
}
|
|
50
|
+
interface ReputationTier extends KeyBase {
|
|
51
|
+
id: number;
|
|
52
|
+
name?: string;
|
|
53
|
+
}
|
|
54
|
+
interface Tier {
|
|
55
|
+
id: number;
|
|
56
|
+
max_value: number;
|
|
57
|
+
min_value: number;
|
|
58
|
+
name: string;
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/reputations/index.d.ts
|
|
62
|
+
/**
|
|
63
|
+
* Get a reputation faction by ID.
|
|
64
|
+
* @param reputationFactionId The reputation faction ID.
|
|
65
|
+
* @returns The reputation faction. See {@link ReputationFactionResponse}.
|
|
66
|
+
*/
|
|
67
|
+
declare function reputationFaction(reputationFactionId: number): Resource<ReputationFactionResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Get a reputation faction index.
|
|
70
|
+
* @returns The reputation faction index. See {@link ReputationFactionIndexResponse}.
|
|
71
|
+
*/
|
|
72
|
+
declare function reputationFactionIndex(): Resource<ReputationFactionIndexResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Get a reputation tier by ID.
|
|
75
|
+
* @param reputationTiersId The reputation tier ID.
|
|
76
|
+
* @returns The reputation tier. See {@link ReputationTiersResponse}.
|
|
77
|
+
*/
|
|
78
|
+
declare function reputationTiers(reputationTiersId: number): Resource<ReputationTiersResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Get a reputation tier index.
|
|
81
|
+
* @returns The reputation tier index. See {@link ReputationTiersIndexResponse}.
|
|
82
|
+
*/
|
|
83
|
+
declare function reputationTiersIndex(): Resource<ReputationTiersIndexResponse>;
|
|
84
|
+
//#endregion
|
|
85
|
+
export { ReputationFactionIndexResponse as a, ReputationTiersResponse as c, reputationTiersIndex as i, reputationFactionIndex as n, ReputationFactionResponse as o, reputationTiers as r, ReputationTiersIndexResponse as s, reputationFaction as t };
|
|
86
|
+
//# sourceMappingURL=index-SfMQ7bBi2.d.ts.map
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { Character, Color, KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/character-equipment/types.d.ts
|
|
4
|
+
interface CharacterEquipmentSummaryResponse extends ResponseBase {
|
|
5
|
+
character: Character;
|
|
6
|
+
equipped_item_sets?: Array<Set>;
|
|
7
|
+
equipped_items: Array<EquippedItem>;
|
|
8
|
+
}
|
|
9
|
+
interface Armor {
|
|
10
|
+
display: NameDescription;
|
|
11
|
+
value: number;
|
|
12
|
+
}
|
|
13
|
+
interface Damage {
|
|
14
|
+
damage_class: NameType;
|
|
15
|
+
display_string: string;
|
|
16
|
+
max_value: number;
|
|
17
|
+
min_value: number;
|
|
18
|
+
}
|
|
19
|
+
interface DisplayStrings {
|
|
20
|
+
copper: string;
|
|
21
|
+
gold: string;
|
|
22
|
+
header: string;
|
|
23
|
+
silver: string;
|
|
24
|
+
}
|
|
25
|
+
interface DisplayStringValue {
|
|
26
|
+
display_string: string;
|
|
27
|
+
value: number;
|
|
28
|
+
}
|
|
29
|
+
interface Effect {
|
|
30
|
+
display_string: string;
|
|
31
|
+
is_active?: boolean;
|
|
32
|
+
required_count: number;
|
|
33
|
+
}
|
|
34
|
+
interface Enchantment {
|
|
35
|
+
display_string: string;
|
|
36
|
+
enchantment_id: number;
|
|
37
|
+
enchantment_slot: EnchantmentSlot;
|
|
38
|
+
source_item?: NameIdKey;
|
|
39
|
+
}
|
|
40
|
+
interface EnchantmentSlot {
|
|
41
|
+
id: number;
|
|
42
|
+
type: string;
|
|
43
|
+
}
|
|
44
|
+
interface EquippedItem {
|
|
45
|
+
armor?: Armor;
|
|
46
|
+
binding: NameType;
|
|
47
|
+
bonus_list?: Array<number>;
|
|
48
|
+
context: number;
|
|
49
|
+
description?: string;
|
|
50
|
+
durability?: DisplayStringValue;
|
|
51
|
+
enchantments?: Array<Enchantment>;
|
|
52
|
+
inventory_type: NameType;
|
|
53
|
+
is_subclass_hidden?: boolean;
|
|
54
|
+
item: KeyBase & {
|
|
55
|
+
id: number;
|
|
56
|
+
};
|
|
57
|
+
item_class: NameIdKey;
|
|
58
|
+
item_subclass: NameIdKey;
|
|
59
|
+
level: DisplayStringValue;
|
|
60
|
+
limit_category?: string;
|
|
61
|
+
media: KeyBase & {
|
|
62
|
+
id: number;
|
|
63
|
+
};
|
|
64
|
+
modified_appearance_id?: number;
|
|
65
|
+
modified_crafting_stat?: Array<ModifiedCraftingStat>;
|
|
66
|
+
name: string;
|
|
67
|
+
name_description?: NameDescription;
|
|
68
|
+
quality: NameType;
|
|
69
|
+
quantity: number;
|
|
70
|
+
requirements?: Requirements;
|
|
71
|
+
sell_price?: SellPrice;
|
|
72
|
+
set?: Set;
|
|
73
|
+
slot: NameType;
|
|
74
|
+
sockets?: Array<Socket>;
|
|
75
|
+
spells?: Array<Spell>;
|
|
76
|
+
stats?: Array<Stat>;
|
|
77
|
+
transmog?: Transmog;
|
|
78
|
+
unique_equipped?: string;
|
|
79
|
+
weapon?: Weapon;
|
|
80
|
+
}
|
|
81
|
+
interface ItemElement {
|
|
82
|
+
is_equipped?: boolean;
|
|
83
|
+
item: NameIdKey;
|
|
84
|
+
}
|
|
85
|
+
interface ModifiedCraftingStat {
|
|
86
|
+
id: number;
|
|
87
|
+
name: string;
|
|
88
|
+
type: string;
|
|
89
|
+
}
|
|
90
|
+
interface NameDescription {
|
|
91
|
+
color: Color;
|
|
92
|
+
display_string: string;
|
|
93
|
+
}
|
|
94
|
+
interface NameType {
|
|
95
|
+
name: string;
|
|
96
|
+
type: string;
|
|
97
|
+
}
|
|
98
|
+
interface PlayableClasses {
|
|
99
|
+
display_string: string;
|
|
100
|
+
links: Array<NameIdKey>;
|
|
101
|
+
}
|
|
102
|
+
interface Requirements {
|
|
103
|
+
level: DisplayStringValue;
|
|
104
|
+
playable_classes?: PlayableClasses;
|
|
105
|
+
}
|
|
106
|
+
interface SellPrice {
|
|
107
|
+
display_strings: DisplayStrings;
|
|
108
|
+
value: number;
|
|
109
|
+
}
|
|
110
|
+
interface Set {
|
|
111
|
+
display_string: string;
|
|
112
|
+
effects: Array<Effect>;
|
|
113
|
+
item_set: NameIdKey;
|
|
114
|
+
items: Array<ItemElement>;
|
|
115
|
+
}
|
|
116
|
+
interface Socket {
|
|
117
|
+
context?: number;
|
|
118
|
+
display_color?: Color;
|
|
119
|
+
display_string?: string;
|
|
120
|
+
item?: NameIdKey;
|
|
121
|
+
media?: KeyBase & {
|
|
122
|
+
id: number;
|
|
123
|
+
};
|
|
124
|
+
socket_type: NameType;
|
|
125
|
+
}
|
|
126
|
+
interface Spell {
|
|
127
|
+
description: string;
|
|
128
|
+
display_color?: Color;
|
|
129
|
+
spell: NameIdKey;
|
|
130
|
+
}
|
|
131
|
+
interface Stat {
|
|
132
|
+
display: NameDescription;
|
|
133
|
+
is_equip_bonus?: boolean;
|
|
134
|
+
is_negated?: boolean;
|
|
135
|
+
type: NameType;
|
|
136
|
+
value: number;
|
|
137
|
+
}
|
|
138
|
+
interface Transmog {
|
|
139
|
+
display_string: string;
|
|
140
|
+
item: NameIdKey;
|
|
141
|
+
item_modified_appearance_id: number;
|
|
142
|
+
second_item?: NameIdKey;
|
|
143
|
+
second_item_modified_appearance_id?: number;
|
|
144
|
+
}
|
|
145
|
+
interface Weapon {
|
|
146
|
+
attack_speed: DisplayStringValue;
|
|
147
|
+
damage: Damage;
|
|
148
|
+
dps: DisplayStringValue;
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/character-equipment/index.d.ts
|
|
152
|
+
/**
|
|
153
|
+
* @param realmSlug The slug of the realm.
|
|
154
|
+
* @param characterName The lowercase name of the character.
|
|
155
|
+
* @returns a summary of the items equipped by a character.
|
|
156
|
+
*/
|
|
157
|
+
declare function characterEquipmentSummary(realmSlug: string, characterName: string): Resource<CharacterEquipmentSummaryResponse>;
|
|
158
|
+
//#endregion
|
|
159
|
+
export { CharacterEquipmentSummaryResponse as n, characterEquipmentSummary as t };
|
|
160
|
+
//# sourceMappingURL=index-Xyv-CG_n.d.ts.map
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Color, KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/heirloom/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for the heirloom index.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface HeirloomIndexResponse extends ResponseBase {
|
|
9
|
+
heirlooms: Array<NameIdKey>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The response for a heirloom.
|
|
13
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
14
|
+
*/
|
|
15
|
+
interface HeirloomResponse extends ResponseBase {
|
|
16
|
+
id: number;
|
|
17
|
+
item: NameIdKey;
|
|
18
|
+
media: Media;
|
|
19
|
+
source: Source;
|
|
20
|
+
source_description: string;
|
|
21
|
+
upgrades: Array<Upgrade>;
|
|
22
|
+
}
|
|
23
|
+
interface AttackSpeedClass {
|
|
24
|
+
display_string: string;
|
|
25
|
+
value: number;
|
|
26
|
+
}
|
|
27
|
+
interface Damage {
|
|
28
|
+
damage_class: Source;
|
|
29
|
+
display_string: string;
|
|
30
|
+
max_value: number;
|
|
31
|
+
min_value: number;
|
|
32
|
+
}
|
|
33
|
+
interface Display {
|
|
34
|
+
color: Color;
|
|
35
|
+
display_string: string;
|
|
36
|
+
}
|
|
37
|
+
interface Media extends KeyBase {
|
|
38
|
+
id: number;
|
|
39
|
+
}
|
|
40
|
+
interface Requirements {
|
|
41
|
+
level: RequirementsLevel;
|
|
42
|
+
}
|
|
43
|
+
interface RequirementsLevel {
|
|
44
|
+
display_string: string;
|
|
45
|
+
}
|
|
46
|
+
interface Source {
|
|
47
|
+
name: string;
|
|
48
|
+
type: string;
|
|
49
|
+
}
|
|
50
|
+
interface Stat {
|
|
51
|
+
display: Display;
|
|
52
|
+
is_equip_bonus?: boolean;
|
|
53
|
+
type: Source;
|
|
54
|
+
value: number;
|
|
55
|
+
}
|
|
56
|
+
interface Upgrade {
|
|
57
|
+
item: UpgradeItem;
|
|
58
|
+
level: number;
|
|
59
|
+
}
|
|
60
|
+
interface UpgradeItem {
|
|
61
|
+
binding: Source;
|
|
62
|
+
bonus_list: Array<number>;
|
|
63
|
+
context: number;
|
|
64
|
+
inventory_type: Source;
|
|
65
|
+
item: Media;
|
|
66
|
+
item_class: NameIdKey;
|
|
67
|
+
item_subclass: NameIdKey;
|
|
68
|
+
level: AttackSpeedClass;
|
|
69
|
+
media: Media;
|
|
70
|
+
name: string;
|
|
71
|
+
quality: Source;
|
|
72
|
+
requirements: Requirements;
|
|
73
|
+
stats: Array<Stat>;
|
|
74
|
+
upgrades: Upgrades;
|
|
75
|
+
weapon: Weapon;
|
|
76
|
+
}
|
|
77
|
+
interface Upgrades {
|
|
78
|
+
display_string: string;
|
|
79
|
+
max_value: number;
|
|
80
|
+
value: number;
|
|
81
|
+
}
|
|
82
|
+
interface Weapon {
|
|
83
|
+
attack_speed: AttackSpeedClass;
|
|
84
|
+
damage: Damage;
|
|
85
|
+
dps: AttackSpeedClass;
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/heirloom/index.d.ts
|
|
89
|
+
/**
|
|
90
|
+
* Get a heirloom by ID.
|
|
91
|
+
* @param heirloomId The heirloom ID.
|
|
92
|
+
* @returns The heirloom. See {@link HeirloomResponse}.
|
|
93
|
+
*/
|
|
94
|
+
declare function heirloom(heirloomId: number): Resource<HeirloomResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Get the heirloom index.
|
|
97
|
+
* @returns The heirloom index. See {@link HeirloomIndexResponse}.
|
|
98
|
+
*/
|
|
99
|
+
declare function heirloomIndex(): Resource<HeirloomIndexResponse>;
|
|
100
|
+
//#endregion
|
|
101
|
+
export { HeirloomResponse as i, heirloomIndex as n, HeirloomIndexResponse as r, heirloom as t };
|
|
102
|
+
//# sourceMappingURL=index-ZAJGdEvm.d.ts.map
|