@blizzard-api/wow 3.0.6 → 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,22 @@
|
|
|
1
|
+
import { wowSearchBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/media-search/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Search for media.
|
|
5
|
+
* @param options The search parameters. See {@link MediaSearchParameters}.
|
|
6
|
+
* @returns The search results. See {@link MediaSearchResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function mediaSearch(options) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
parameters: {
|
|
12
|
+
_page: options._page,
|
|
13
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
14
|
+
tags: options.tags
|
|
15
|
+
},
|
|
16
|
+
path: `${wowSearchBasePath}/media`
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { mediaSearch };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/media-search/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowSearchBasePath } from '@blizzard-api/core';\nimport type { MediaSearchParameters, MediaSearchResponse } from './types';\n\n/**\n * Search for media.\n * @param options The search parameters. See {@link MediaSearchParameters}.\n * @returns The search results. See {@link MediaSearchResponse}.\n */\nexport function mediaSearch(options: MediaSearchParameters): Resource<MediaSearchResponse, MediaSearchParameters> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n tags: options.tags,\n },\n path: `${wowSearchBasePath}/media`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,YAAY,SAAsF;AAChH,QAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC9E,MAAM,QAAQ;GACf;EACD,MAAM,GAAG,kBAAkB;EAC5B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as modifiedCraftingReagentSlotTypeIndex, i as modifiedCraftingReagentSlotType, n as modifiedCraftingCategoryIndex, r as modifiedCraftingIndex, t as modifiedCraftingCategory } from "../index-DxEXkR_n.js";
|
|
2
|
+
export { modifiedCraftingCategory, modifiedCraftingCategoryIndex, modifiedCraftingIndex, modifiedCraftingReagentSlotType, modifiedCraftingReagentSlotTypeIndex };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { wowBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/modified-crafting/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a modified crafting category by ID.
|
|
5
|
+
* @param modifiedCraftingCategoryId The modified crafting category ID.
|
|
6
|
+
* @returns The modified crafting category. See {@link ModifiedCraftingCategoryResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function modifiedCraftingCategory(modifiedCraftingCategoryId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/modified-crafting/category/${modifiedCraftingCategoryId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a modified crafting category index.
|
|
16
|
+
* @returns The modified crafting category index. See {@link ModifiedCraftingCategoryIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function modifiedCraftingCategoryIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/modified-crafting/category/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a modified crafting index.
|
|
26
|
+
* @returns The modified crafting index. See {@link ModifiedCraftingIndexResponse}.
|
|
27
|
+
*/
|
|
28
|
+
function modifiedCraftingIndex() {
|
|
29
|
+
return {
|
|
30
|
+
namespace: "static",
|
|
31
|
+
path: `${wowBasePath}/modified-crafting/index`
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a modified crafting reagent slot type by ID.
|
|
36
|
+
* @param modifiedCraftingReagentSlotTypeId The modified crafting reagent slot type ID.
|
|
37
|
+
* @returns The modified crafting reagent slot type. See {@link ModifiedCraftingReagentSlotTypeResponse}.
|
|
38
|
+
*/
|
|
39
|
+
function modifiedCraftingReagentSlotType(modifiedCraftingReagentSlotTypeId) {
|
|
40
|
+
return {
|
|
41
|
+
namespace: "static",
|
|
42
|
+
path: `${wowBasePath}/modified-crafting/reagent-slot-type/${modifiedCraftingReagentSlotTypeId}`
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get a modified crafting reagent slot type index.
|
|
47
|
+
* @returns The modified crafting reagent slot type index. See {@link ModifiedCraftingReagentSlotTypeIndexResponse}.
|
|
48
|
+
*/
|
|
49
|
+
function modifiedCraftingReagentSlotTypeIndex() {
|
|
50
|
+
return {
|
|
51
|
+
namespace: "static",
|
|
52
|
+
path: `${wowBasePath}/modified-crafting/reagent-slot-type/index`
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { modifiedCraftingCategory, modifiedCraftingCategoryIndex, modifiedCraftingIndex, modifiedCraftingReagentSlotType, modifiedCraftingReagentSlotTypeIndex };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/modified-crafting/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n ModifiedCraftingCategoryIndexResponse,\n ModifiedCraftingCategoryResponse,\n ModifiedCraftingIndexResponse,\n ModifiedCraftingReagentSlotTypeIndexResponse,\n ModifiedCraftingReagentSlotTypeResponse,\n} from './types';\n\n/**\n * Get a modified crafting category by ID.\n * @param modifiedCraftingCategoryId The modified crafting category ID.\n * @returns The modified crafting category. See {@link ModifiedCraftingCategoryResponse}.\n */\nexport function modifiedCraftingCategory(\n modifiedCraftingCategoryId: number,\n): Resource<ModifiedCraftingCategoryResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/category/${modifiedCraftingCategoryId}`,\n };\n}\n/**\n * Get a modified crafting category index.\n * @returns The modified crafting category index. See {@link ModifiedCraftingCategoryIndexResponse}.\n */\nexport function modifiedCraftingCategoryIndex(): Resource<ModifiedCraftingCategoryIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/category/index`,\n };\n}\n/**\n * Get a modified crafting index.\n * @returns The modified crafting index. See {@link ModifiedCraftingIndexResponse}.\n */\nexport function modifiedCraftingIndex(): Resource<ModifiedCraftingIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/index`,\n };\n}\n/**\n * Get a modified crafting reagent slot type by ID.\n * @param modifiedCraftingReagentSlotTypeId The modified crafting reagent slot type ID.\n * @returns The modified crafting reagent slot type. See {@link ModifiedCraftingReagentSlotTypeResponse}.\n */\nexport function modifiedCraftingReagentSlotType(\n modifiedCraftingReagentSlotTypeId: number,\n): Resource<ModifiedCraftingReagentSlotTypeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/reagent-slot-type/${modifiedCraftingReagentSlotTypeId}`,\n };\n}\n/**\n * Get a modified crafting reagent slot type index.\n * @returns The modified crafting reagent slot type index. See {@link ModifiedCraftingReagentSlotTypeIndexResponse}.\n */\nexport function modifiedCraftingReagentSlotTypeIndex(): Resource<ModifiedCraftingReagentSlotTypeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/modified-crafting/reagent-slot-type/index`,\n };\n}\n"],"mappings":";;;;;;;AAeA,SAAgB,yBACd,4BAC4C;AAC5C,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,8BAA8B;EACpD;;;;;;AAMH,SAAgB,gCAAiF;AAC/F,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;AAMH,SAAgB,wBAAiE;AAC/E,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,gCACd,mCACmD;AACnD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,uCAAuC;EAC7D;;;;;;AAMH,SAAgB,uCAA+F;AAC7G,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { wowBasePath, wowSearchBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/mount/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a mount by ID.
|
|
5
|
+
* @param mountId The mount ID.
|
|
6
|
+
* @returns The mount. See {@link MountResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function mount(mountId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/mount/${mountId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a mount index.
|
|
16
|
+
* @returns The mount index. See {@link MountIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function mountIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/mount/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a mount search.
|
|
26
|
+
* @param options The search parameters. See {@link MountSearchParameters}.
|
|
27
|
+
* @returns The search results. See {@link MountSearchResponse}.
|
|
28
|
+
*/
|
|
29
|
+
function mountSearch(options) {
|
|
30
|
+
return {
|
|
31
|
+
namespace: "static",
|
|
32
|
+
parameters: {
|
|
33
|
+
_page: options._page,
|
|
34
|
+
[`name.${options.locale}`]: options.name,
|
|
35
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
|
|
36
|
+
},
|
|
37
|
+
path: `${wowSearchBasePath}/mount`
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { mount, mountIndex, mountSearch };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/mount/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { MountIndexResponse, MountResponse, MountSearchParameters, MountSearchResponse } from './types';\n\n/**\n * Get a mount by ID.\n * @param mountId The mount ID.\n * @returns The mount. See {@link MountResponse}.\n */\nexport function mount(mountId: number): Resource<MountResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/mount/${mountId}`,\n };\n}\n/**\n * Get a mount index.\n * @returns The mount index. See {@link MountIndexResponse}.\n */\nexport function mountIndex(): Resource<MountIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/mount/index`,\n };\n}\n/**\n * Get a mount search.\n * @param options The search parameters. See {@link MountSearchParameters}.\n * @returns The search results. See {@link MountSearchResponse}.\n */\nexport function mountSearch(\n options: MountSearchParameters,\n): Resource<MountSearchResponse, Omit<MountSearchParameters, '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}/mount`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,MAAM,SAA0C;AAC9D,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,SAAS;EAC/B;;;;;;AAMH,SAAgB,aAA2C;AACzD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,YACd,SAC+E;AAC/E,QAAO;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,38 @@
|
|
|
1
|
+
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/mythic-keystone-affix/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a list of all Mythic Keystone affixes.
|
|
5
|
+
* @param mythicKeystoneAffixId The ID of the Mythic Keystone affix.
|
|
6
|
+
* @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}
|
|
7
|
+
*/
|
|
8
|
+
function mythicKeystoneAffix(mythicKeystoneAffixId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/keystone-affix/${mythicKeystoneAffixId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a list of all Mythic Keystone affixes.
|
|
16
|
+
* @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}
|
|
17
|
+
*/
|
|
18
|
+
function mythicKeystoneAffixIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/keystone-affix/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a list of all Mythic Keystone affix media.
|
|
26
|
+
* @param mythicKeystoneAffixId The ID of the Mythic Keystone affix.
|
|
27
|
+
* @returns A list of all Mythic Keystone affix media. See {@link MythicKeystoneAffixMediaResponse}
|
|
28
|
+
*/
|
|
29
|
+
function mythicKeystoneAffixMedia(mythicKeystoneAffixId) {
|
|
30
|
+
return {
|
|
31
|
+
namespace: "static",
|
|
32
|
+
path: `${wowMediaBasePath}/keystone-affix/${mythicKeystoneAffixId}`
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { mythicKeystoneAffix, mythicKeystoneAffixIndex, mythicKeystoneAffixMedia };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-keystone-affix/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n MythicKeystoneAffixIndexResponse,\n MythicKeystoneAffixMediaResponse,\n MythicKeystoneAffixResponse,\n} from './types';\n\n/**\n * Get a list of all Mythic Keystone affixes.\n * @param mythicKeystoneAffixId The ID of the Mythic Keystone affix.\n * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}\n */\nexport function mythicKeystoneAffix(mythicKeystoneAffixId: number): Resource<MythicKeystoneAffixResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/keystone-affix/${mythicKeystoneAffixId}`,\n };\n}\n/**\n * Get a list of all Mythic Keystone affixes.\n * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}\n */\nexport function mythicKeystoneAffixIndex(): Resource<MythicKeystoneAffixIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/keystone-affix/index`,\n };\n}\n/**\n * Get a list of all Mythic Keystone affix media.\n * @param mythicKeystoneAffixId The ID of the Mythic Keystone affix.\n * @returns A list of all Mythic Keystone affix media. See {@link MythicKeystoneAffixMediaResponse}\n */\nexport function mythicKeystoneAffixMedia(mythicKeystoneAffixId: number): Resource<MythicKeystoneAffixMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/keystone-affix/${mythicKeystoneAffixId}`,\n };\n}\n"],"mappings":";;;;;;;AAaA,SAAgB,oBAAoB,uBAAsE;AACxG,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB;EACxC;;;;;;AAMH,SAAgB,2BAAuE;AACrF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,yBAAyB,uBAA2E;AAClH,QAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,kBAAkB;EAC7C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as mythicKeystonePeriodIndex, i as mythicKeystonePeriod, n as mythicKeystoneDungeonIndex, o as mythicKeystoneSeason, r as mythicKeystoneIndex, s as mythicKeystoneSeasonIndex, t as mythicKeystoneDungeon } from "../index-h17WWDmt.js";
|
|
2
|
+
export { mythicKeystoneDungeon, mythicKeystoneDungeonIndex, mythicKeystoneIndex, mythicKeystonePeriod, mythicKeystonePeriodIndex, mythicKeystoneSeason, mythicKeystoneSeasonIndex };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { wowBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/mythic-keystone-dungeon/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a Mythic Keystone dungeon by ID.
|
|
5
|
+
* @param mythicKeystoneDungeonId The Mythic Keystone dungeon ID.
|
|
6
|
+
* @returns The Mythic Keystone dungeon. See {@link MythicKeystoneDungeonResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function mythicKeystoneDungeon(mythicKeystoneDungeonId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "dynamic",
|
|
11
|
+
path: `${wowBasePath}/mythic-keystone/dungeon/${mythicKeystoneDungeonId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a Mythic Keystone dungeon index.
|
|
16
|
+
* @returns The Mythic Keystone dungeon index. See {@link MythicKeystoneDungeonIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function mythicKeystoneDungeonIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "dynamic",
|
|
21
|
+
path: `${wowBasePath}/mythic-keystone/dungeon/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a Mythic Keystone index.
|
|
26
|
+
* @returns The Mythic Keystone index. See {@link MythicKeystoneIndexResponse}.
|
|
27
|
+
*/
|
|
28
|
+
function mythicKeystoneIndex() {
|
|
29
|
+
return {
|
|
30
|
+
namespace: "dynamic",
|
|
31
|
+
path: `${wowBasePath}/mythic-keystone/index`
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a Mythic Keystone period by ID.
|
|
36
|
+
* @param mythicKeystonePeriodId The Mythic Keystone period ID.
|
|
37
|
+
* @returns The Mythic Keystone period. See {@link MythicKeystonePeriodResponse}.
|
|
38
|
+
*/
|
|
39
|
+
function mythicKeystonePeriod(mythicKeystonePeriodId) {
|
|
40
|
+
return {
|
|
41
|
+
namespace: "dynamic",
|
|
42
|
+
path: `${wowBasePath}/mythic-keystone/period/${mythicKeystonePeriodId}`
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get a Mythic Keystone period index.
|
|
47
|
+
* @returns The Mythic Keystone period index. See {@link MythicKeystonePeriodIndexResponse}.
|
|
48
|
+
*/
|
|
49
|
+
function mythicKeystonePeriodIndex() {
|
|
50
|
+
return {
|
|
51
|
+
namespace: "dynamic",
|
|
52
|
+
path: `${wowBasePath}/mythic-keystone/period/index`
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get a Mythic Keystone season by ID.
|
|
57
|
+
* @param mythicKeystoneSeasonId The Mythic Keystone season ID.
|
|
58
|
+
* @returns The Mythic Keystone season. See {@link MythicKeystoneSeasonResponse}.
|
|
59
|
+
*/
|
|
60
|
+
function mythicKeystoneSeason(mythicKeystoneSeasonId) {
|
|
61
|
+
return {
|
|
62
|
+
namespace: "dynamic",
|
|
63
|
+
path: `${wowBasePath}/mythic-keystone/season/${mythicKeystoneSeasonId}`
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get a Mythic Keystone season index.
|
|
68
|
+
* @returns The Mythic Keystone season index. See {@link MythicKeystoneSeasonIndexResponse}.
|
|
69
|
+
*/
|
|
70
|
+
function mythicKeystoneSeasonIndex() {
|
|
71
|
+
return {
|
|
72
|
+
namespace: "dynamic",
|
|
73
|
+
path: `${wowBasePath}/mythic-keystone/season/index`
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { mythicKeystoneDungeon, mythicKeystoneDungeonIndex, mythicKeystoneIndex, mythicKeystonePeriod, mythicKeystonePeriodIndex, mythicKeystoneSeason, mythicKeystoneSeasonIndex };
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-keystone-dungeon/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type {\n MythicKeystoneDungeonIndexResponse,\n MythicKeystoneDungeonResponse,\n MythicKeystoneIndexResponse,\n MythicKeystonePeriodIndexResponse,\n MythicKeystonePeriodResponse,\n MythicKeystoneSeasonIndexResponse,\n MythicKeystoneSeasonResponse,\n} from './types';\n\n/**\n * Get a Mythic Keystone dungeon by ID.\n * @param mythicKeystoneDungeonId The Mythic Keystone dungeon ID.\n * @returns The Mythic Keystone dungeon. See {@link MythicKeystoneDungeonResponse}.\n */\nexport function mythicKeystoneDungeon(mythicKeystoneDungeonId: number): Resource<MythicKeystoneDungeonResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/dungeon/${mythicKeystoneDungeonId}`,\n };\n}\n/**\n * Get a Mythic Keystone dungeon index.\n * @returns The Mythic Keystone dungeon index. See {@link MythicKeystoneDungeonIndexResponse}.\n */\nexport function mythicKeystoneDungeonIndex(): Resource<MythicKeystoneDungeonIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/dungeon/index`,\n };\n}\n/**\n * Get a Mythic Keystone index.\n * @returns The Mythic Keystone index. See {@link MythicKeystoneIndexResponse}.\n */\nexport function mythicKeystoneIndex(): Resource<MythicKeystoneIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/index`,\n };\n}\n/**\n * Get a Mythic Keystone period by ID.\n * @param mythicKeystonePeriodId The Mythic Keystone period ID.\n * @returns The Mythic Keystone period. See {@link MythicKeystonePeriodResponse}.\n */\nexport function mythicKeystonePeriod(mythicKeystonePeriodId: number): Resource<MythicKeystonePeriodResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/period/${mythicKeystonePeriodId}`,\n };\n}\n/**\n * Get a Mythic Keystone period index.\n * @returns The Mythic Keystone period index. See {@link MythicKeystonePeriodIndexResponse}.\n */\nexport function mythicKeystonePeriodIndex(): Resource<MythicKeystonePeriodIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/period/index`,\n };\n}\n/**\n * Get a Mythic Keystone season by ID.\n * @param mythicKeystoneSeasonId The Mythic Keystone season ID.\n * @returns The Mythic Keystone season. See {@link MythicKeystoneSeasonResponse}.\n */\nexport function mythicKeystoneSeason(mythicKeystoneSeasonId: number): Resource<MythicKeystoneSeasonResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/season/${mythicKeystoneSeasonId}`,\n };\n}\n/**\n * Get a Mythic Keystone season index.\n * @returns The Mythic Keystone season index. See {@link MythicKeystoneSeasonIndexResponse}.\n */\nexport function mythicKeystoneSeasonIndex(): Resource<MythicKeystoneSeasonIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/mythic-keystone/season/index`,\n };\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,sBAAsB,yBAA0E;AAC9G,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,2BAA2B;EACjD;;;;;;AAMH,SAAgB,6BAA2E;AACzF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;AAMH,SAAgB,sBAA6D;AAC3E,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,qBAAqB,wBAAwE;AAC3G,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,0BAA0B;EAChD;;;;;;AAMH,SAAgB,4BAAyE;AACvF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,qBAAqB,wBAAwE;AAC3G,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,0BAA0B;EAChD;;;;;;AAMH,SAAgB,4BAAyE;AACvF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { wowBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/mythic-keystone-leaderboard/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a Mythic Keystone leaderboard by connected realm ID, dungeon ID, and period.
|
|
5
|
+
* @param connectedRealmId The connected realm ID.
|
|
6
|
+
* @param dungeonId The dungeon ID.
|
|
7
|
+
* @param period The period ID.
|
|
8
|
+
* @returns The Mythic Keystone leaderboard. See {@link MythicKeystoneLeaderboardResponse}.
|
|
9
|
+
*/
|
|
10
|
+
function mythicKeystoneLeaderboard(connectedRealmId, dungeonId, period) {
|
|
11
|
+
return {
|
|
12
|
+
namespace: "dynamic",
|
|
13
|
+
path: `${wowBasePath}/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get a Mythic Keystone leaderboard index by connected realm ID.
|
|
18
|
+
* @param connectedRealmId The connected realm ID.
|
|
19
|
+
* @returns The Mythic Keystone leaderboard index. See {@link MythicKeystoneLeaderboardIndexResponse}.
|
|
20
|
+
*/
|
|
21
|
+
function mythicKeystoneLeaderboardIndex(connectedRealmId) {
|
|
22
|
+
return {
|
|
23
|
+
namespace: "dynamic",
|
|
24
|
+
path: `${wowBasePath}/connected-realm/${connectedRealmId}/mythic-leaderboard/index`
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { mythicKeystoneLeaderboard, mythicKeystoneLeaderboardIndex };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-keystone-leaderboard/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { MythicKeystoneLeaderboardIndexResponse, MythicKeystoneLeaderboardResponse } from './types';\n\n/**\n * Get a Mythic Keystone leaderboard by connected realm ID, dungeon ID, and period.\n * @param connectedRealmId The connected realm ID.\n * @param dungeonId The dungeon ID.\n * @param period The period ID.\n * @returns The Mythic Keystone leaderboard. See {@link MythicKeystoneLeaderboardResponse}.\n */\nexport function mythicKeystoneLeaderboard(\n connectedRealmId: number,\n dungeonId: number,\n period: number,\n): Resource<MythicKeystoneLeaderboardResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,\n };\n}\n/**\n * Get a Mythic Keystone leaderboard index by connected realm ID.\n * @param connectedRealmId The connected realm ID.\n * @returns The Mythic Keystone leaderboard index. See {@link MythicKeystoneLeaderboardIndexResponse}.\n */\nexport function mythicKeystoneLeaderboardIndex(\n connectedRealmId: number,\n): Resource<MythicKeystoneLeaderboardIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,\n };\n}\n"],"mappings":";;;;;;;;;AAWA,SAAgB,0BACd,kBACA,WACA,QAC6C;AAC7C,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,iBAAiB,sBAAsB,UAAU,UAAU;EACpG;;;;;;;AAOH,SAAgB,+BACd,kBACkD;AAClD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB,iBAAiB;EAC1D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { wowBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/mythic-raid-leaderboard/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a Mythic Raid leaderboard by raid and faction.
|
|
5
|
+
* @param raid The slug of the raid.
|
|
6
|
+
* @param faction The faction. Either 'alliance' or 'horde'.
|
|
7
|
+
* @returns The Mythic Raid leaderboard. See {@link MythicRaidLeaderboardResponse}.
|
|
8
|
+
*/
|
|
9
|
+
function mythicRaidLeaderboard(raid, faction) {
|
|
10
|
+
return {
|
|
11
|
+
namespace: "dynamic",
|
|
12
|
+
path: `${wowBasePath}/leaderboard/hall-of-fame/${raid}/${faction}`
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { mythicRaidLeaderboard };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/mythic-raid-leaderboard/index.ts"],"sourcesContent":["import type { Factions, Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { MythicRaidLeaderboardResponse } from './types';\n\n/**\n * Get a Mythic Raid leaderboard by raid and faction.\n * @param raid The slug of the raid.\n * @param faction The faction. Either 'alliance' or 'horde'.\n * @returns The Mythic Raid leaderboard. See {@link MythicRaidLeaderboardResponse}.\n */\nexport function mythicRaidLeaderboard(\n raid: string,\n faction: Lowercase<Factions>,\n): Resource<MythicRaidLeaderboardResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/leaderboard/hall-of-fame/${raid}/${faction}`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,sBACd,MACA,SACyC;AACzC,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,4BAA4B,KAAK,GAAG;EAC1D"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/pet/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a pet by ID.
|
|
5
|
+
* @param petId The pet ID.
|
|
6
|
+
* @returns The pet. See {@link PetResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function pet(petId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/pet/${petId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a pet ability by ID.
|
|
16
|
+
* @param petAbilityId The pet ability ID.
|
|
17
|
+
* @returns The pet ability. See {@link PetAbilityResponse}.
|
|
18
|
+
*/
|
|
19
|
+
function petAbility(petAbilityId) {
|
|
20
|
+
return {
|
|
21
|
+
namespace: "static",
|
|
22
|
+
path: `${wowBasePath}/pet-ability/${petAbilityId}`
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get a pet ability index.
|
|
27
|
+
* @returns The pet ability index. See {@link PetAbilityIndexResponse}.
|
|
28
|
+
*/
|
|
29
|
+
function petAbilityIndex() {
|
|
30
|
+
return {
|
|
31
|
+
namespace: "static",
|
|
32
|
+
path: `${wowBasePath}/pet-ability/index`
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get a pet ability media by ID.
|
|
37
|
+
* @param petAbilityId The pet ability ID.
|
|
38
|
+
* @returns The pet ability media. See {@link PetAbilityMediaResponse}.
|
|
39
|
+
*/
|
|
40
|
+
function petAbilityMedia(petAbilityId) {
|
|
41
|
+
return {
|
|
42
|
+
namespace: "static",
|
|
43
|
+
path: `${wowMediaBasePath}/pet-ability/${petAbilityId}`
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get a pet index.
|
|
48
|
+
* @returns The pet index. See {@link PetIndexResponse}.
|
|
49
|
+
*/
|
|
50
|
+
function petIndex() {
|
|
51
|
+
return {
|
|
52
|
+
namespace: "static",
|
|
53
|
+
path: `${wowBasePath}/pet/index`
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get a pet media by ID.
|
|
58
|
+
* @param petId The pet ID.
|
|
59
|
+
* @returns The pet media. See {@link PetMediaResponse}.
|
|
60
|
+
*/
|
|
61
|
+
function petMedia(petId) {
|
|
62
|
+
return {
|
|
63
|
+
namespace: "static",
|
|
64
|
+
path: `${wowMediaBasePath}/pet/${petId}`
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { pet, petAbility, petAbilityIndex, petAbilityMedia, petIndex, petMedia };
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/pet/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n PetAbilityIndexResponse,\n PetAbilityMediaResponse,\n PetAbilityResponse,\n PetIndexResponse,\n PetMediaResponse,\n PetResponse,\n} from './types';\n\n/**\n * Get a pet by ID.\n * @param petId The pet ID.\n * @returns The pet. See {@link PetResponse}.\n */\nexport function pet(petId: number): Resource<PetResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet/${petId}`,\n };\n}\n/**\n * Get a pet ability by ID.\n * @param petAbilityId The pet ability ID.\n * @returns The pet ability. See {@link PetAbilityResponse}.\n */\nexport function petAbility(petAbilityId: number): Resource<PetAbilityResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet-ability/${petAbilityId}`,\n };\n}\n/**\n * Get a pet ability index.\n * @returns The pet ability index. See {@link PetAbilityIndexResponse}.\n */\nexport function petAbilityIndex(): Resource<PetAbilityIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet-ability/index`,\n };\n}\n/**\n * Get a pet ability media by ID.\n * @param petAbilityId The pet ability ID.\n * @returns The pet ability media. See {@link PetAbilityMediaResponse}.\n */\nexport function petAbilityMedia(petAbilityId: number): Resource<PetAbilityMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/pet-ability/${petAbilityId}`,\n };\n}\n/**\n * Get a pet index.\n * @returns The pet index. See {@link PetIndexResponse}.\n */\nexport function petIndex(): Resource<PetIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/pet/index`,\n };\n}\n/**\n * Get a pet media by ID.\n * @param petId The pet ID.\n * @returns The pet media. See {@link PetMediaResponse}.\n */\nexport function petMedia(petId: number): Resource<PetMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/pet/${petId}`,\n };\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,IAAI,OAAsC;AACxD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,OAAO;EAC7B;;;;;;;AAOH,SAAgB,WAAW,cAAoD;AAC7E,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,eAAe;EACrC;;;;;;AAMH,SAAgB,kBAAqD;AACnE,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,gBAAgB,cAAyD;AACvF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,eAAe;EAC1C;;;;;;AAMH,SAAgB,WAAuC;AACrD,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,SAAS,OAA2C;AAClE,QAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,OAAO;EAClC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/playable-class/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a playable class by ID.
|
|
5
|
+
* @param playableClassId The playable class ID.
|
|
6
|
+
* @returns The playable class. See {@link PlayableClassResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function playableClass(playableClassId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/playable-class/${playableClassId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a playable class index.
|
|
16
|
+
* @returns The playable class index. See {@link PlayableClassIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function playableClassIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/playable-class/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get playable class media by ID.
|
|
26
|
+
* @param playableClassId The playable class ID.
|
|
27
|
+
* @returns The playable class media. See {@link PlayableClassMediaResponse}.
|
|
28
|
+
*/
|
|
29
|
+
function playableClassMedia(playableClassId) {
|
|
30
|
+
return {
|
|
31
|
+
namespace: "static",
|
|
32
|
+
path: `${wowMediaBasePath}/playable-class/${playableClassId}`
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get a playable class's PvP talent slots by ID.
|
|
37
|
+
* @param playableClassId The playable class ID.
|
|
38
|
+
* @returns The playable class's PvP talent slots. See {@link PvpTalentSlotsResponse}.
|
|
39
|
+
*/
|
|
40
|
+
function pvpTalentSlots(playableClassId) {
|
|
41
|
+
return {
|
|
42
|
+
namespace: "static",
|
|
43
|
+
path: `${wowBasePath}/playable-class/${playableClassId}/pvp-talent-slots`
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { playableClass, playableClassIndex, playableClassMedia, pvpTalentSlots };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/playable-class/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n PlayableClassIndexResponse,\n PlayableClassMediaResponse,\n PlayableClassResponse,\n PvpTalentSlotsResponse,\n} from './types';\n\n/**\n * Get a playable class by ID.\n * @param playableClassId The playable class ID.\n * @returns The playable class. See {@link PlayableClassResponse}.\n */\nexport function playableClass(playableClassId: number): Resource<PlayableClassResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-class/${playableClassId}`,\n };\n}\n/**\n * Get a playable class index.\n * @returns The playable class index. See {@link PlayableClassIndexResponse}.\n */\nexport function playableClassIndex(): Resource<PlayableClassIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-class/index`,\n };\n}\n/**\n * Get playable class media by ID.\n * @param playableClassId The playable class ID.\n * @returns The playable class media. See {@link PlayableClassMediaResponse}.\n */\nexport function playableClassMedia(playableClassId: number): Resource<PlayableClassMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/playable-class/${playableClassId}`,\n };\n}\n/**\n * Get a playable class's PvP talent slots by ID.\n * @param playableClassId The playable class ID.\n * @returns The playable class's PvP talent slots. See {@link PvpTalentSlotsResponse}.\n */\nexport function pvpTalentSlots(playableClassId: number): Resource<PvpTalentSlotsResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-class/${playableClassId}/pvp-talent-slots`,\n };\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,cAAc,iBAA0D;AACtF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB;EACxC;;;;;;AAMH,SAAgB,qBAA2D;AACzE,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,mBAAmB,iBAA+D;AAChG,QAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,kBAAkB;EAC7C;;;;;;;AAOH,SAAgB,eAAe,iBAA2D;AACxF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,kBAAkB,gBAAgB;EACxD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { wowBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/playable-race/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a playable race by ID.
|
|
5
|
+
* @param playableRaceId The playable race ID.
|
|
6
|
+
* @returns The playable race. See {@link PlayableRaceResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function playableRace(playableRaceId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/playable-race/${playableRaceId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a playable race index.
|
|
16
|
+
* @returns The playable race index. See {@link PlayableRaceIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function playableRaceIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/playable-race/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { playableRace, playableRaceIndex };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/playable-race/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { PlayableRaceIndexResponse, PlayableRaceResponse } from './types';\n\n/**\n * Get a playable race by ID.\n * @param playableRaceId The playable race ID.\n * @returns The playable race. See {@link PlayableRaceResponse}.\n */\nexport function playableRace(playableRaceId: number): Resource<PlayableRaceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-race/${playableRaceId}`,\n };\n}\n/**\n * Get a playable race index.\n * @returns The playable race index. See {@link PlayableRaceIndexResponse}.\n */\nexport function playableRaceIndex(): Resource<PlayableRaceIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-race/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,aAAa,gBAAwD;AACnF,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,iBAAiB;EACvC;;;;;;AAMH,SAAgB,oBAAyD;AACvE,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/playable-specialization/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a playable specialization by ID.
|
|
5
|
+
* @param specializationId The playable specialization ID.
|
|
6
|
+
* @returns The playable specialization. See {@link PlayableSpecializationResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function playableSpecialization(specializationId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/playable-specialization/${specializationId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a playable specialization index.
|
|
16
|
+
* @returns The playable specialization index. See {@link PlayableSpecializationIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function playableSpecializationIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/playable-specialization/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a playable specialization media by ID.
|
|
26
|
+
* @param specializationId The playable specialization ID.
|
|
27
|
+
* @returns The playable specialization media. See {@link PlayableSpecializationMediaResponse}.
|
|
28
|
+
*/
|
|
29
|
+
function playableSpecializationMedia(specializationId) {
|
|
30
|
+
return {
|
|
31
|
+
namespace: "static",
|
|
32
|
+
path: `${wowMediaBasePath}/playable-specialization/${specializationId}`
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { playableSpecialization, playableSpecializationIndex, playableSpecializationMedia };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/playable-specialization/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type {\n PlayableSpecializationIndexResponse,\n PlayableSpecializationMediaResponse,\n PlayableSpecializationResponse,\n} from './types';\n\n/**\n * Get a playable specialization by ID.\n * @param specializationId The playable specialization ID.\n * @returns The playable specialization. See {@link PlayableSpecializationResponse}.\n */\nexport function playableSpecialization(specializationId: number): Resource<PlayableSpecializationResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-specialization/${specializationId}`,\n };\n}\n/**\n * Get a playable specialization index.\n * @returns The playable specialization index. See {@link PlayableSpecializationIndexResponse}.\n */\nexport function playableSpecializationIndex(): Resource<PlayableSpecializationIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/playable-specialization/index`,\n };\n}\n/**\n * Get a playable specialization media by ID.\n * @param specializationId The playable specialization ID.\n * @returns The playable specialization media. See {@link PlayableSpecializationMediaResponse}.\n */\nexport function playableSpecializationMedia(specializationId: number): Resource<PlayableSpecializationMediaResponse> {\n return {\n namespace: 'static',\n path: `${wowMediaBasePath}/playable-specialization/${specializationId}`,\n };\n}\n"],"mappings":";;;;;;;AAaA,SAAgB,uBAAuB,kBAAoE;AACzG,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,2BAA2B;EACjD;;;;;;AAMH,SAAgB,8BAA6E;AAC3F,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB;;;;;;;AAOH,SAAgB,4BAA4B,kBAAyE;AACnH,QAAO;EACL,WAAW;EACX,MAAM,GAAG,iBAAiB,2BAA2B;EACtD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { wowBasePath } from "@blizzard-api/core";
|
|
2
|
+
//#region src/power-type/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get a power type by ID.
|
|
5
|
+
* @param powerTypeId The power type ID.
|
|
6
|
+
* @returns The power type. See {@link PowerTypeResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function powerType(powerTypeId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/power-type/${powerTypeId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a power type index.
|
|
16
|
+
* @returns The power type index. See {@link PowerTypeIndexResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function powerTypeIndex() {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "static",
|
|
21
|
+
path: `${wowBasePath}/power-type/index`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { powerType, powerTypeIndex };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/power-type/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { PowerTypeIndexResponse, PowerTypeResponse } from './types';\n\n/**\n * Get a power type by ID.\n * @param powerTypeId The power type ID.\n * @returns The power type. See {@link PowerTypeResponse}.\n */\nexport function powerType(powerTypeId: number): Resource<PowerTypeResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/power-type/${powerTypeId}`,\n };\n}\n/**\n * Get a power type index.\n * @returns The power type index. See {@link PowerTypeIndexResponse}.\n */\nexport function powerTypeIndex(): Resource<PowerTypeIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/power-type/index`,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,UAAU,aAAkD;AAC1E,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,cAAc;EACpC;;;;;;AAMH,SAAgB,iBAAmD;AACjE,QAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;EACtB"}
|