@blizzard-api/wow 3.0.6 → 4.0.1
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-CMDZfaJk.d.ts +161 -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-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,38 @@
|
|
|
1
|
+
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/guild-crest/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a guild crest border by ID.
|
|
5
|
+
* @param borderId The guild crest border ID.
|
|
6
|
+
* @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function guildCrestBorder(borderId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowMediaBasePath}/guild-crest/border/${borderId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get the guild crest components index.
|
|
16
|
+
* @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function guildCrestComponentsIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/guild-crest/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a guild crest emblem by ID.
|
|
26
|
+
* @param emblemId The guild crest emblem ID.
|
|
27
|
+
* @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.
|
|
28
|
+
*/
|
|
29
|
+
function guildCrestEmblem(emblemId) {
|
|
30
|
+
return {
|
|
31
|
+
namespace: "static",
|
|
32
|
+
path: `${wowMediaBasePath}/guild-crest/emblem/${emblemId}`
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/guild-crest/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type { GuildCrestBorderEmblemResponse, GuildCrestComponentsIndexResponse } from './types';\n\n/**\n * Get a guild crest border by ID.\n * @param borderId The guild crest border ID.\n * @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.\n */\nexport function guildCrestBorder(borderId: number): Resource<GuildCrestBorderEmblemResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/guild-crest/border/${borderId}`,\n };\n}\n/**\n * Get the guild crest components index.\n * @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.\n */\nexport function guildCrestComponentsIndex(): Resource<GuildCrestComponentsIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/guild-crest/index`,\n };\n}\n/**\n * Get a guild crest emblem by ID.\n * @param emblemId The guild crest emblem ID.\n * @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.\n */\nexport function guildCrestEmblem(emblemId: number): Resource<GuildCrestBorderEmblemResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/guild-crest/emblem/${emblemId}`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,iBAAiB,UAA4D;CAC3F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,sBAAsB;EACjD;;;;;;AAMH,SAAgB,4BAAyE;CACvF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,iBAAiB,UAA4D;CAC3F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,sBAAsB;EACjD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { wowBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/heirloom/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a heirloom by ID.
|
|
5
|
+
* @param heirloomId The heirloom ID.
|
|
6
|
+
* @returns The heirloom. See {@link HeirloomResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function heirloom(heirloomId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/heirloom/${heirloomId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get the heirloom index.
|
|
16
|
+
* @returns The heirloom index. See {@link HeirloomIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function heirloomIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/heirloom/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { heirloom, heirloomIndex };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/heirloom/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { HeirloomIndexResponse, HeirloomResponse } from './types';\n\n/**\n * Get a heirloom by ID.\n * @param heirloomId The heirloom ID.\n * @returns The heirloom. See {@link HeirloomResponse}.\n */\nexport function heirloom(heirloomId: number): Resource<HeirloomResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/heirloom/${heirloomId}`,\n };\n}\n/**\n * Get the heirloom index.\n * @returns The heirloom index. See {@link HeirloomIndexResponse}.\n */\nexport function heirloomIndex(): Resource<HeirloomIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/heirloom/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,SAAS,YAAgD;CACvE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,YAAY;EAClC;;;;;;AAMH,SAAgB,gBAAiD;CAC/D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as fixtureHook, c as fixtureIndex, d as roomIndex, f as roomSearch, i as fixture, l as fixtureSearch, n as decorIndex, o as fixtureHookIndex, r as decorSearch, s as fixtureHookSearch, t as decor, u as room } from "../index-CMDZfaJk.js";
|
|
2
|
+
export { decor, decorIndex, decorSearch, fixture, fixtureHook, fixtureHookIndex, fixtureHookSearch, fixtureIndex, fixtureSearch, room, roomIndex, roomSearch };
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { wowBasePath, wowSearchBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/housing-decor/index.ts
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* Returns an index of decor.
|
|
6
|
+
* @returns An index of decor. See {@link DecorIndexResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function decorIndex() {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: "/data/wow/decor/index"
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a decor by ID.
|
|
16
|
+
* @param decorId The decor ID.
|
|
17
|
+
* @returns A decor. See {@link DecorResponse}.
|
|
18
|
+
*/
|
|
19
|
+
function decor(decorId) {
|
|
20
|
+
return {
|
|
21
|
+
namespace: "static",
|
|
22
|
+
path: `${wowBasePath}/decor/${decorId}`
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Searches for decor.
|
|
27
|
+
* @param options The search parameters. See {@link GenericDecorSearchParameters}.
|
|
28
|
+
* @returns A decor. See {@link DecorSearchResponse}.
|
|
29
|
+
*/
|
|
30
|
+
function decorSearch(options) {
|
|
31
|
+
return {
|
|
32
|
+
namespace: "static",
|
|
33
|
+
parameters: {
|
|
34
|
+
_page: options._page,
|
|
35
|
+
[`name.${options.locale}`]: options.name,
|
|
36
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
|
|
37
|
+
},
|
|
38
|
+
path: `${wowSearchBasePath}/decor`
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns an index of fixtures.
|
|
43
|
+
* @returns An index of fixtures. See {@link FixtureIndexResponse}.
|
|
44
|
+
*/
|
|
45
|
+
function fixtureIndex() {
|
|
46
|
+
return {
|
|
47
|
+
namespace: "static",
|
|
48
|
+
path: `${wowBasePath}/fixture/index`
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Returns a fixture by ID.
|
|
53
|
+
* @param fixtureId The fixture ID.
|
|
54
|
+
* @returns A fixture. See {@link FixtureResponse}.
|
|
55
|
+
*/
|
|
56
|
+
function fixture(fixtureId) {
|
|
57
|
+
return {
|
|
58
|
+
namespace: "static",
|
|
59
|
+
path: `${wowBasePath}/fixture/${fixtureId}`
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Searches for fixtures.
|
|
64
|
+
* @param options The search parameters. See {@link GenericDecorSearchParameters}.
|
|
65
|
+
* @returns A fixture. See {@link FixtureSearchResponse}.
|
|
66
|
+
*/
|
|
67
|
+
function fixtureSearch(options) {
|
|
68
|
+
return {
|
|
69
|
+
namespace: "static",
|
|
70
|
+
parameters: {
|
|
71
|
+
_page: options._page,
|
|
72
|
+
[`name.${options.locale}`]: options.name,
|
|
73
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
|
|
74
|
+
},
|
|
75
|
+
path: `${wowSearchBasePath}/fixture`
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns an index of fixture hooks.
|
|
80
|
+
* @returns An index of fixture hooks. See {@link FixtureHookIndexResponse}.
|
|
81
|
+
*/
|
|
82
|
+
function fixtureHookIndex() {
|
|
83
|
+
return {
|
|
84
|
+
namespace: "static",
|
|
85
|
+
path: `${wowBasePath}/fixture-hook/index`
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns a fixture hook by ID.
|
|
90
|
+
* @param fixtureHookId The fixture hook ID.
|
|
91
|
+
* @returns A fixture hook. See {@link FixtureHookResponse}.
|
|
92
|
+
*/
|
|
93
|
+
function fixtureHook(fixtureHookId) {
|
|
94
|
+
return {
|
|
95
|
+
namespace: "static",
|
|
96
|
+
path: `${wowBasePath}/fixture-hook/${fixtureHookId}`
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Searches for fixture hooks.
|
|
101
|
+
* @param options The search parameters. See {@link GenericDecorSearchParameters}.
|
|
102
|
+
* @returns A fixture hook. See {@link FixtureSearchResponse}.
|
|
103
|
+
*/
|
|
104
|
+
function fixtureHookSearch(options) {
|
|
105
|
+
return {
|
|
106
|
+
namespace: "static",
|
|
107
|
+
parameters: {
|
|
108
|
+
_page: options._page,
|
|
109
|
+
[`name.${options.locale}`]: options.name,
|
|
110
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
|
|
111
|
+
},
|
|
112
|
+
path: `${wowSearchBasePath}/fixture-hook`
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Returns an index of rooms.
|
|
117
|
+
* @returns An index of rooms. See {@link RoomIndexReponse}.
|
|
118
|
+
*/
|
|
119
|
+
function roomIndex() {
|
|
120
|
+
return {
|
|
121
|
+
namespace: "static",
|
|
122
|
+
path: `${wowBasePath}/room/index`
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Returns a room by ID.
|
|
127
|
+
* @param roomId The room ID.
|
|
128
|
+
* @returns A room. See {@link RoomResponse}.
|
|
129
|
+
*/
|
|
130
|
+
function room(roomId) {
|
|
131
|
+
return {
|
|
132
|
+
namespace: "static",
|
|
133
|
+
path: `${wowBasePath}/room/${roomId}`
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Searches for rooms.
|
|
138
|
+
* @param options The search parameters. See {@link GenericDecorSearchParameters}.
|
|
139
|
+
* @returns A room. See {@link RoomSearchResponse}.
|
|
140
|
+
*/
|
|
141
|
+
function roomSearch(options) {
|
|
142
|
+
return {
|
|
143
|
+
namespace: "static",
|
|
144
|
+
parameters: {
|
|
145
|
+
_page: options._page,
|
|
146
|
+
[`name.${options.locale}`]: options.name,
|
|
147
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
|
|
148
|
+
},
|
|
149
|
+
path: `${wowSearchBasePath}/room`
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
export { decor, decorIndex, decorSearch, fixture, fixtureHook, fixtureHookIndex, fixtureHookSearch, fixtureIndex, fixtureSearch, room, roomIndex, roomSearch };
|
|
154
|
+
|
|
155
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/housing-decor/index.ts"],"sourcesContent":["import { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { Resource } from '@blizzard-api/core';\nimport type {\n DecorIndexResponse,\n DecorResponse,\n DecorSearchResponse,\n FixtureHookIndexResponse,\n FixtureHookResponse,\n FixtureHookSearchResponse,\n FixtureIndexResponse,\n FixtureResponse,\n FixtureSearchResponse,\n GenericDecorSearchParameters,\n RoomIndexReponse,\n RoomResponse,\n RoomSearchResponse,\n} from './types';\n\n/**\n *\n * Returns an index of decor.\n * @returns An index of decor. See {@link DecorIndexResponse}.\n */\nexport function decorIndex(): Resource<DecorIndexResponse> {\n return {\n namespace: 'static',\n path: '/data/wow/decor/index',\n };\n}\n\n/**\n * Returns a decor by ID.\n * @param decorId The decor ID.\n * @returns A decor. See {@link DecorResponse}.\n */\nexport function decor(decorId: number): Resource<DecorResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/decor/${decorId}`,\n };\n}\n\n/**\n * Searches for decor.\n * @param options The search parameters. See {@link GenericDecorSearchParameters}.\n * @returns A decor. See {@link DecorSearchResponse}.\n */\nexport function decorSearch(\n options: GenericDecorSearchParameters,\n): Resource<DecorSearchResponse, Omit<GenericDecorSearchParameters, 'locale' | 'name'>> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/decor`,\n };\n}\n\n/**\n * Returns an index of fixtures.\n * @returns An index of fixtures. See {@link FixtureIndexResponse}.\n */\nexport function fixtureIndex(): Resource<FixtureIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/fixture/index`,\n };\n}\n\n/**\n * Returns a fixture by ID.\n * @param fixtureId The fixture ID.\n * @returns A fixture. See {@link FixtureResponse}.\n */\nexport function fixture(fixtureId: number): Resource<FixtureResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/fixture/${fixtureId}`,\n };\n}\n\n/**\n * Searches for fixtures.\n * @param options The search parameters. See {@link GenericDecorSearchParameters}.\n * @returns A fixture. See {@link FixtureSearchResponse}.\n */\nexport function fixtureSearch(\n options: GenericDecorSearchParameters,\n): Resource<FixtureSearchResponse, Omit<GenericDecorSearchParameters, 'locale' | 'name'>> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/fixture`,\n };\n}\n\n/**\n * Returns an index of fixture hooks.\n * @returns An index of fixture hooks. See {@link FixtureHookIndexResponse}.\n */\nexport function fixtureHookIndex(): Resource<FixtureHookIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/fixture-hook/index`,\n };\n}\n\n/**\n * Returns a fixture hook by ID.\n * @param fixtureHookId The fixture hook ID.\n * @returns A fixture hook. See {@link FixtureHookResponse}.\n */\nexport function fixtureHook(fixtureHookId: number): Resource<FixtureHookResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/fixture-hook/${fixtureHookId}`,\n };\n}\n\n/**\n * Searches for fixture hooks.\n * @param options The search parameters. See {@link GenericDecorSearchParameters}.\n * @returns A fixture hook. See {@link FixtureSearchResponse}.\n */\nexport function fixtureHookSearch(\n options: GenericDecorSearchParameters,\n): Resource<FixtureHookSearchResponse, Omit<GenericDecorSearchParameters, 'locale' | 'name'>> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/fixture-hook`,\n };\n}\n\n/**\n * Returns an index of rooms.\n * @returns An index of rooms. See {@link RoomIndexReponse}.\n */\nexport function roomIndex(): Resource<RoomIndexReponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/room/index`,\n };\n}\n\n/**\n * Returns a room by ID.\n * @param roomId The room ID.\n * @returns A room. See {@link RoomResponse}.\n */\nexport function room(roomId: number): Resource<RoomResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/room/${roomId}`,\n };\n}\n\n/**\n * Searches for rooms.\n * @param options The search parameters. See {@link GenericDecorSearchParameters}.\n * @returns A room. See {@link RoomSearchResponse}.\n */\nexport function roomSearch(\n options: GenericDecorSearchParameters,\n): Resource<RoomSearchResponse, Omit<GenericDecorSearchParameters, 'locale' | 'name'>> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/room`,\n };\n}\n"],"mappings":";;;;;;;AAuBA,SAAgB,aAA2C;CACzD,OAAO;EACL,WAAW;EACX,MAAM;EACP;;;;;;;AAQH,SAAgB,MAAM,SAA0C;CAC9D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS;EAC/B;;;;;;;AAQH,SAAgB,YACd,SACsF;CACtF,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC/E;EACD,MAAM,GAAG,kBAAkB;EAC5B;;;;;;AAOH,SAAgB,eAA+C;CAC7D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAQH,SAAgB,QAAQ,WAA8C;CACpE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,WAAW;EACjC;;;;;;;AAQH,SAAgB,cACd,SACwF;CACxF,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC/E;EACD,MAAM,GAAG,kBAAkB;EAC5B;;;;;;AAOH,SAAgB,mBAAuD;CACrE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAQH,SAAgB,YAAY,eAAsD;CAChF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,gBAAgB;EACtC;;;;;;;AAQH,SAAgB,kBACd,SAC4F;CAC5F,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC/E;EACD,MAAM,GAAG,kBAAkB;EAC5B;;;;;;AAOH,SAAgB,YAAwC;CACtD,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAQH,SAAgB,KAAK,QAAwC;CAC3D,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,QAAQ;EAC9B;;;;;;;AAQH,SAAgB,WACd,SACqF;CACrF,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC/E;EACD,MAAM,GAAG,kBAAkB;EAC5B"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { Faction, Gender, Href, KeyBase, NameId, NameIdKey, ProtectedResource, Realm } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/account-profile/types.d.ts
|
|
4
|
+
interface AccountCollectionsIndexResponse {
|
|
5
|
+
_links: Links;
|
|
6
|
+
heirlooms: Href;
|
|
7
|
+
mounts: Href;
|
|
8
|
+
pets: Href;
|
|
9
|
+
toys: Href;
|
|
10
|
+
transmogs: Href;
|
|
11
|
+
}
|
|
12
|
+
interface AccountHeirloomsCollectionSummaryResponse {
|
|
13
|
+
_links: Links;
|
|
14
|
+
heirlooms: Array<Heirloom>;
|
|
15
|
+
}
|
|
16
|
+
interface AccountMountsCollectionSummaryResponse {
|
|
17
|
+
_links: Links;
|
|
18
|
+
mounts: Array<Mount>;
|
|
19
|
+
}
|
|
20
|
+
interface AccountPetsCollectionSummaryResponse {
|
|
21
|
+
_links: Links;
|
|
22
|
+
pets: Array<Pet>;
|
|
23
|
+
unlocked_battle_pet_slots: number;
|
|
24
|
+
}
|
|
25
|
+
interface AccountProfileSummaryResponse {
|
|
26
|
+
_links: Links;
|
|
27
|
+
collections: Href;
|
|
28
|
+
id: number;
|
|
29
|
+
wow_accounts?: Array<WowAccount>;
|
|
30
|
+
}
|
|
31
|
+
interface AccountToysCollectionSummaryResponse {
|
|
32
|
+
_links: Links;
|
|
33
|
+
toys: Array<Toy>;
|
|
34
|
+
}
|
|
35
|
+
interface AccountTransmogsCollectionSummaryResponse {
|
|
36
|
+
_links: Links;
|
|
37
|
+
appearance_sets: Array<NameIdKey>;
|
|
38
|
+
slots: Array<Slot>;
|
|
39
|
+
}
|
|
40
|
+
interface ProtectedCharacterProfileSummaryResponse {
|
|
41
|
+
_links: Links;
|
|
42
|
+
bind_position: Position;
|
|
43
|
+
character: Realm;
|
|
44
|
+
id: number;
|
|
45
|
+
money: number;
|
|
46
|
+
name: string;
|
|
47
|
+
position: Position;
|
|
48
|
+
protected_stats: ProtectedStats;
|
|
49
|
+
wow_account: number;
|
|
50
|
+
}
|
|
51
|
+
interface Character$1 {
|
|
52
|
+
character: Href;
|
|
53
|
+
faction: Faction;
|
|
54
|
+
gender: Gender;
|
|
55
|
+
id: number;
|
|
56
|
+
level: number;
|
|
57
|
+
name: string;
|
|
58
|
+
playable_class: NameIdKey;
|
|
59
|
+
playable_race: NameIdKey;
|
|
60
|
+
protected_character: Href;
|
|
61
|
+
realm: Realm;
|
|
62
|
+
}
|
|
63
|
+
interface Heirloom {
|
|
64
|
+
heirloom: NameIdKey;
|
|
65
|
+
upgrade: {
|
|
66
|
+
level: number;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
interface Links {
|
|
70
|
+
profile: Href;
|
|
71
|
+
self: Href;
|
|
72
|
+
user: Href;
|
|
73
|
+
}
|
|
74
|
+
interface Mount {
|
|
75
|
+
is_favorite?: boolean;
|
|
76
|
+
mount: NameIdKey;
|
|
77
|
+
}
|
|
78
|
+
interface Pet {
|
|
79
|
+
active_slot?: number;
|
|
80
|
+
creature_display?: KeyBase & {
|
|
81
|
+
id: number;
|
|
82
|
+
};
|
|
83
|
+
id: number;
|
|
84
|
+
is_active?: boolean;
|
|
85
|
+
is_favorite?: boolean;
|
|
86
|
+
level: number;
|
|
87
|
+
name?: string;
|
|
88
|
+
quality: Quality;
|
|
89
|
+
species: NameIdKey;
|
|
90
|
+
stats: Stats;
|
|
91
|
+
}
|
|
92
|
+
interface Position {
|
|
93
|
+
facing: number;
|
|
94
|
+
map: NameId;
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
z: number;
|
|
98
|
+
zone: NameId;
|
|
99
|
+
}
|
|
100
|
+
interface ProtectedStats {
|
|
101
|
+
level_gold_gained: number;
|
|
102
|
+
level_gold_lost: number;
|
|
103
|
+
level_item_value_gained: number;
|
|
104
|
+
level_number_deaths: number;
|
|
105
|
+
total_gold_gained: number;
|
|
106
|
+
total_gold_lost: number;
|
|
107
|
+
total_item_value_gained: number;
|
|
108
|
+
total_number_deaths: number;
|
|
109
|
+
}
|
|
110
|
+
interface Quality {
|
|
111
|
+
name: string;
|
|
112
|
+
type: 'COMMON' | 'POOR' | 'RARE' | 'UNCOMMON';
|
|
113
|
+
}
|
|
114
|
+
interface Slot {
|
|
115
|
+
appearances: Array<KeyBase & {
|
|
116
|
+
id: number;
|
|
117
|
+
}>;
|
|
118
|
+
slot: Slot;
|
|
119
|
+
}
|
|
120
|
+
interface Slot {
|
|
121
|
+
name: string;
|
|
122
|
+
type: string;
|
|
123
|
+
}
|
|
124
|
+
interface Stats {
|
|
125
|
+
breed_id: number;
|
|
126
|
+
health: number;
|
|
127
|
+
power: number;
|
|
128
|
+
speed: number;
|
|
129
|
+
}
|
|
130
|
+
interface Toy {
|
|
131
|
+
is_favorite?: boolean;
|
|
132
|
+
toy: NameIdKey;
|
|
133
|
+
}
|
|
134
|
+
interface WowAccount {
|
|
135
|
+
characters: Array<Character$1>;
|
|
136
|
+
id: number;
|
|
137
|
+
}
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/account-profile/index.d.ts
|
|
140
|
+
/**
|
|
141
|
+
* Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
|
|
142
|
+
* @param token The OAuth 2.0 access token to use for authentication.
|
|
143
|
+
* @returns an index of collection types for an account.
|
|
144
|
+
*/
|
|
145
|
+
declare function accountCollectionsIndex(token: string): ProtectedResource<AccountCollectionsIndexResponse>;
|
|
146
|
+
/**
|
|
147
|
+
* Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
|
|
148
|
+
* @param token The OAuth 2.0 access token to use for authentication.
|
|
149
|
+
* @returns a summary of the heirlooms an account has obtained.
|
|
150
|
+
*/
|
|
151
|
+
declare function accountHeirloomsCollectionSummary(token: string): ProtectedResource<AccountHeirloomsCollectionSummaryResponse>;
|
|
152
|
+
/**
|
|
153
|
+
* Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
|
|
154
|
+
* @param token The OAuth 2.0 access token to use for authentication.
|
|
155
|
+
* @returns a summary of the mounts an account has obtained.
|
|
156
|
+
*/
|
|
157
|
+
declare function accountMountsCollectionSummary(token: string): ProtectedResource<AccountMountsCollectionSummaryResponse>;
|
|
158
|
+
/**
|
|
159
|
+
* Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
|
|
160
|
+
* @param token The OAuth 2.0 access token to use for authentication.
|
|
161
|
+
* @returns a summary of the battle pets an account has obtained.
|
|
162
|
+
*/
|
|
163
|
+
declare function accountPetsCollectionSummary(token: string): ProtectedResource<AccountPetsCollectionSummaryResponse>;
|
|
164
|
+
/**
|
|
165
|
+
* Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
|
|
166
|
+
* @param token The OAuth 2.0 access token to use for authentication.
|
|
167
|
+
* @returns a profile summary for an account.
|
|
168
|
+
*/
|
|
169
|
+
declare function accountProfileSummary(token: string): ProtectedResource<AccountProfileSummaryResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
|
|
172
|
+
* @param token The OAuth 2.0 access token to use for authentication.
|
|
173
|
+
* @returns a summary of the toys an account has obtained.
|
|
174
|
+
*/
|
|
175
|
+
declare function accountToysCollectionSummary(token: string): ProtectedResource<AccountToysCollectionSummaryResponse>;
|
|
176
|
+
/**
|
|
177
|
+
* Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
|
|
178
|
+
* @param token The OAuth 2.0 access token to use for authentication.
|
|
179
|
+
* @returns a summary of the transmog unlocks an account has obtained.
|
|
180
|
+
*/
|
|
181
|
+
declare function accountTransmogsCollectionSummary(token: string): ProtectedResource<AccountTransmogsCollectionSummaryResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
|
|
184
|
+
* @param realmId The realm ID.
|
|
185
|
+
* @param characterId The character ID.
|
|
186
|
+
* @param token The OAuth 2.0 access token to use for authentication.
|
|
187
|
+
* @returns a protected profile summary for a character.
|
|
188
|
+
*/
|
|
189
|
+
declare function protectedCharacterProfileSummary(realmId: number, characterId: number, token: string): ProtectedResource<ProtectedCharacterProfileSummaryResponse>;
|
|
190
|
+
//#endregion
|
|
191
|
+
export { accountProfileSummary as a, protectedCharacterProfileSummary as c, AccountMountsCollectionSummaryResponse as d, AccountPetsCollectionSummaryResponse as f, ProtectedCharacterProfileSummaryResponse as g, AccountTransmogsCollectionSummaryResponse as h, accountPetsCollectionSummary as i, AccountCollectionsIndexResponse as l, AccountToysCollectionSummaryResponse as m, accountHeirloomsCollectionSummary as n, accountToysCollectionSummary as o, AccountProfileSummaryResponse as p, accountMountsCollectionSummary as r, accountTransmogsCollectionSummary as s, accountCollectionsIndex as t, AccountHeirloomsCollectionSummaryResponse as u };
|
|
192
|
+
//# sourceMappingURL=index--WL1Ol2r.d.ts.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Character, Href, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/character-encounters/types.d.ts
|
|
4
|
+
interface CharacterDungeonsResponse extends ResponseBase {
|
|
5
|
+
expansions: Array<ExpansionWithDungeonInstances>;
|
|
6
|
+
}
|
|
7
|
+
interface CharacterEncountersSummaryResponse extends ResponseBase {
|
|
8
|
+
character: Character;
|
|
9
|
+
dungeons: Href;
|
|
10
|
+
raids: Href;
|
|
11
|
+
}
|
|
12
|
+
interface CharacterRaidsResponse extends ResponseBase {
|
|
13
|
+
character: Character;
|
|
14
|
+
expansions: Array<ExpansionWithRaidInstances>;
|
|
15
|
+
}
|
|
16
|
+
interface DungeonDifficulties {
|
|
17
|
+
name?: string;
|
|
18
|
+
type?: 'HEROIC' | 'MYTHIC' | 'MYTHIC_KEYSTONE' | 'NORMAL';
|
|
19
|
+
}
|
|
20
|
+
interface DungeonInstance {
|
|
21
|
+
instance: NameIdKey;
|
|
22
|
+
modes: Array<DungeonMode>;
|
|
23
|
+
}
|
|
24
|
+
interface DungeonMode {
|
|
25
|
+
difficulty: DungeonDifficulties;
|
|
26
|
+
progress: Progress;
|
|
27
|
+
status: Status;
|
|
28
|
+
}
|
|
29
|
+
interface Encounter {
|
|
30
|
+
completed_count: number;
|
|
31
|
+
encounter: NameIdKey;
|
|
32
|
+
last_kill_timestamp: number;
|
|
33
|
+
}
|
|
34
|
+
interface ExpansionWithDungeonInstances {
|
|
35
|
+
expansion: NameIdKey;
|
|
36
|
+
instances: Array<DungeonInstance>;
|
|
37
|
+
}
|
|
38
|
+
interface ExpansionWithRaidInstances {
|
|
39
|
+
expansion: NameIdKey;
|
|
40
|
+
instances: Array<RaidInstance>;
|
|
41
|
+
}
|
|
42
|
+
interface Progress {
|
|
43
|
+
completed_count: number;
|
|
44
|
+
encounters: Array<Encounter>;
|
|
45
|
+
total_count: number;
|
|
46
|
+
}
|
|
47
|
+
interface RaidDifficulties {
|
|
48
|
+
name: string;
|
|
49
|
+
type: 'HEROIC' | 'LEGACY_10_MAN' | 'LEGACY_10_MAN_HEROIC' | 'LEGACY_25_MAN' | 'LEGACY_25_MAN_HEROIC' | 'LFR' | 'MYTHIC' | 'NORMAL';
|
|
50
|
+
}
|
|
51
|
+
interface RaidInstance {
|
|
52
|
+
instance: NameIdKey;
|
|
53
|
+
modes: Array<RaidMode>;
|
|
54
|
+
}
|
|
55
|
+
interface RaidMode {
|
|
56
|
+
difficulty: RaidDifficulties;
|
|
57
|
+
progress: Progress;
|
|
58
|
+
status: Status;
|
|
59
|
+
}
|
|
60
|
+
interface Status {
|
|
61
|
+
name: string;
|
|
62
|
+
type: 'COMPLETE' | 'IN_PROGRESS';
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/character-encounters/index.d.ts
|
|
66
|
+
/**
|
|
67
|
+
* @param realmSlug The slug of the realm.
|
|
68
|
+
* @param characterName The lowercase name of the character.
|
|
69
|
+
* @returns a summary of a character's completed dungeons.
|
|
70
|
+
*/
|
|
71
|
+
declare function characterDungeons(realmSlug: string, characterName: string): Resource<CharacterDungeonsResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* @param realmSlug The slug of the realm.
|
|
74
|
+
* @param characterName The lowercase name of the character.
|
|
75
|
+
* @returns a summary of a character's encounters.
|
|
76
|
+
*/
|
|
77
|
+
declare function characterEncountersSummary(realmSlug: string, characterName: string): Resource<CharacterEncountersSummaryResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* @param realmSlug The slug of the realm.
|
|
80
|
+
* @param characterName The lowercase name of the character.
|
|
81
|
+
* @returns a summary of a character's completed raids.
|
|
82
|
+
*/
|
|
83
|
+
declare function characterRaids(realmSlug: string, characterName: string): Resource<CharacterRaidsResponse>;
|
|
84
|
+
//#endregion
|
|
85
|
+
export { CharacterEncountersSummaryResponse as a, CharacterDungeonsResponse as i, characterEncountersSummary as n, CharacterRaidsResponse as o, characterRaids as r, characterDungeons as t };
|
|
86
|
+
//# sourceMappingURL=index-0hpJYoWw.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Href, NameId, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/region/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for a region index.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface RegionIndexResponse extends ResponseBase {
|
|
9
|
+
regions: Array<Href>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The response for a region.
|
|
13
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
14
|
+
*/
|
|
15
|
+
interface RegionResponse extends NameId, ResponseBase {
|
|
16
|
+
patch_string: string;
|
|
17
|
+
tag: string;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/region/index.d.ts
|
|
21
|
+
/**
|
|
22
|
+
* Get a region by ID.
|
|
23
|
+
* @param regionId The region ID.
|
|
24
|
+
* @returns The region. See {@link RegionResponse}.
|
|
25
|
+
*/
|
|
26
|
+
declare function region(regionId: number): Resource<RegionResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Get a region index.
|
|
29
|
+
* @returns The region index. See {@link RegionIndexResponse}.
|
|
30
|
+
*/
|
|
31
|
+
declare function regionIndex(): Resource<RegionIndexResponse>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { RegionResponse as i, regionIndex as n, RegionIndexResponse as r, region as t };
|
|
34
|
+
//# sourceMappingURL=index-2xjdPrIp.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Factions, KeyBase, NameId, Origins, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/mythic-raid-leaderboard/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for a Mythic Raid leaderboard.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface MythicRaidLeaderboardResponse extends ResponseBase {
|
|
9
|
+
criteria_type: string;
|
|
10
|
+
entries: Array<Entry>;
|
|
11
|
+
journal_instance: JournalInstance;
|
|
12
|
+
slug: string;
|
|
13
|
+
}
|
|
14
|
+
interface Entry {
|
|
15
|
+
faction: {
|
|
16
|
+
type: Factions;
|
|
17
|
+
};
|
|
18
|
+
guild: Guild;
|
|
19
|
+
rank: number;
|
|
20
|
+
region: Origins;
|
|
21
|
+
timestamp: number;
|
|
22
|
+
}
|
|
23
|
+
interface Guild extends NameId {
|
|
24
|
+
realm: Realm$1;
|
|
25
|
+
}
|
|
26
|
+
interface JournalInstance extends KeyBase {
|
|
27
|
+
id: number;
|
|
28
|
+
name: null | string;
|
|
29
|
+
}
|
|
30
|
+
interface Realm$1 {
|
|
31
|
+
id: number;
|
|
32
|
+
name: null | string;
|
|
33
|
+
slug: string;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/mythic-raid-leaderboard/index.d.ts
|
|
37
|
+
/**
|
|
38
|
+
* Get a Mythic Raid leaderboard by raid and faction.
|
|
39
|
+
* @param raid The slug of the raid.
|
|
40
|
+
* @param faction The faction. Either 'alliance' or 'horde'.
|
|
41
|
+
* @returns The Mythic Raid leaderboard. See {@link MythicRaidLeaderboardResponse}.
|
|
42
|
+
*/
|
|
43
|
+
declare function mythicRaidLeaderboard(raid: string, faction: Lowercase<Factions>): Resource<MythicRaidLeaderboardResponse>;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { MythicRaidLeaderboardResponse as n, mythicRaidLeaderboard as t };
|
|
46
|
+
//# sourceMappingURL=index-8go905Or2.d.ts.map
|