@blizzard-api/wow 4.1.6 → 4.2.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 -2
- package/dist/account-profile/index.js +22 -10
- package/dist/account-profile/index.js.map +1 -1
- package/dist/character-achievements/index.js +3 -3
- package/dist/character-achievements/index.js.map +1 -1
- package/dist/character-collections/index.d.ts +2 -2
- package/dist/character-collections/index.js +19 -8
- package/dist/character-collections/index.js.map +1 -1
- package/dist/character-equipment/index.d.ts +1 -1
- package/dist/character-house/index.d.ts +2 -0
- package/dist/character-house/index.js +22 -0
- package/dist/character-house/index.js.map +1 -0
- package/dist/character-mythic-keystone-profile/index.d.ts +1 -1
- package/dist/guild/index.js +5 -5
- package/dist/guild/index.js.map +1 -1
- package/dist/index-BlmuhVLr.d.ts +45 -0
- package/dist/index-CAAhdmK-.d.ts +25 -0
- package/dist/index-CcOUGucU.d.ts +121 -0
- package/dist/{index-BYi-k0bg.d.ts → index-D4WW7V4l.d.ts} +5 -11
- package/dist/{index-XAI3xA9N.d.ts → index-DdmXkF2F.d.ts} +5 -15
- package/dist/{index-CNnXwh3U.d.ts → index-DxnfWpb6.d.ts} +21 -21
- package/dist/{index-DE8VhwEW.d.ts → index-FuJJlGI3.d.ts} +24 -26
- package/dist/index.d.ts +21 -5
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/item-appearance/index.d.ts +2 -0
- package/dist/item-appearance/index.js +74 -0
- package/dist/item-appearance/index.js.map +1 -0
- package/dist/neighborhood-map/index.d.ts +2 -0
- package/dist/neighborhood-map/index.js +38 -0
- package/dist/neighborhood-map/index.js.map +1 -0
- package/dist/types-BihzpfkI.d.ts +18 -0
- package/package.json +3 -3
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { wowBasePath, wowSearchBasePath } from "@blizzard-api/core";
|
|
2
|
+
// src/item-appearance/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get an item appearance by ID.
|
|
5
|
+
* @param appearanceId The item appearance ID.
|
|
6
|
+
* @returns The item appearance. See {@link ItemAppearanceResponse}.
|
|
7
|
+
*/
|
|
8
|
+
function itemAppearance(appearanceId) {
|
|
9
|
+
return {
|
|
10
|
+
namespace: "static",
|
|
11
|
+
path: `${wowBasePath}/item-appearance/${appearanceId}`
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Search for item appearances.
|
|
16
|
+
* @param options The search parameters. See {@link ItemAppearanceSearchParameters}.
|
|
17
|
+
* @returns The search results. See {@link ItemAppearanceSearchResponse}.
|
|
18
|
+
*/
|
|
19
|
+
function itemAppearanceSearch(options) {
|
|
20
|
+
return {
|
|
21
|
+
namespace: "static",
|
|
22
|
+
parameters: {
|
|
23
|
+
_page: options._page,
|
|
24
|
+
id: options.id,
|
|
25
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
|
|
26
|
+
},
|
|
27
|
+
path: `${wowSearchBasePath}/item-appearance`
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Get an item appearance set by ID.
|
|
32
|
+
* @param appearanceSetId The item appearance set ID.
|
|
33
|
+
* @returns The item appearance set. See {@link ItemAppearanceSetResponse}.
|
|
34
|
+
*/
|
|
35
|
+
function itemAppearanceSet(appearanceSetId) {
|
|
36
|
+
return {
|
|
37
|
+
namespace: "static",
|
|
38
|
+
path: `${wowBasePath}/item-appearance/set/${appearanceSetId}`
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get an item appearance set index.
|
|
43
|
+
* @returns The item appearance set index. See {@link ItemAppearanceSetIndexResponse}.
|
|
44
|
+
*/
|
|
45
|
+
function itemAppearanceSetIndex() {
|
|
46
|
+
return {
|
|
47
|
+
namespace: "static",
|
|
48
|
+
path: `${wowBasePath}/item-appearance/set/index`
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Get an item appearance slot by slot type.
|
|
53
|
+
* @param slotType The item appearance slot type.
|
|
54
|
+
* @returns The item appearance slot. See {@link ItemAppearanceSlotResponse}.
|
|
55
|
+
*/
|
|
56
|
+
function itemAppearanceSlot(slotType) {
|
|
57
|
+
return {
|
|
58
|
+
namespace: "static",
|
|
59
|
+
path: `${wowBasePath}/item-appearance/slot/${slotType}`
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get an item appearance slot index.
|
|
64
|
+
* @returns The item appearance slot index. See {@link ItemAppearanceSlotIndexResponse}.
|
|
65
|
+
*/
|
|
66
|
+
function itemAppearanceSlotIndex() {
|
|
67
|
+
return {
|
|
68
|
+
namespace: "static",
|
|
69
|
+
path: `${wowBasePath}/item-appearance/slot/index`
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export { itemAppearance, itemAppearanceSearch, itemAppearanceSet, itemAppearanceSetIndex, itemAppearanceSlot, itemAppearanceSlotIndex };
|
|
73
|
+
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/item-appearance/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type {\n ItemAppearanceResponse,\n ItemAppearanceSearchParameters,\n ItemAppearanceSearchResponse,\n ItemAppearanceSetIndexResponse,\n ItemAppearanceSetResponse,\n ItemAppearanceSlotIndexResponse,\n ItemAppearanceSlotResponse,\n ItemAppearanceSlotType,\n} from './types';\n\n/**\n * Get an item appearance by ID.\n * @param appearanceId The item appearance ID.\n * @returns The item appearance. See {@link ItemAppearanceResponse}.\n */\nexport function itemAppearance(appearanceId: number): Resource<ItemAppearanceResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/${appearanceId}`,\n };\n}\n/**\n * Search for item appearances.\n * @param options The search parameters. See {@link ItemAppearanceSearchParameters}.\n * @returns The search results. See {@link ItemAppearanceSearchResponse}.\n */\nexport function itemAppearanceSearch(\n options: ItemAppearanceSearchParameters,\n): Resource<ItemAppearanceSearchResponse, ItemAppearanceSearchParameters> {\n return {\n namespace: 'static',\n parameters: {\n _page: options._page,\n id: options.id,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/item-appearance`,\n };\n}\n/**\n * Get an item appearance set by ID.\n * @param appearanceSetId The item appearance set ID.\n * @returns The item appearance set. See {@link ItemAppearanceSetResponse}.\n */\nexport function itemAppearanceSet(appearanceSetId: number): Resource<ItemAppearanceSetResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/set/${appearanceSetId}`,\n };\n}\n/**\n * Get an item appearance set index.\n * @returns The item appearance set index. See {@link ItemAppearanceSetIndexResponse}.\n */\nexport function itemAppearanceSetIndex(): Resource<ItemAppearanceSetIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/set/index`,\n };\n}\n/**\n * Get an item appearance slot by slot type.\n * @param slotType The item appearance slot type.\n * @returns The item appearance slot. See {@link ItemAppearanceSlotResponse}.\n */\nexport function itemAppearanceSlot(slotType: ItemAppearanceSlotType): Resource<ItemAppearanceSlotResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/slot/${slotType}`,\n };\n}\n/**\n * Get an item appearance slot index.\n * @returns The item appearance slot index. See {@link ItemAppearanceSlotIndexResponse}.\n */\nexport function itemAppearanceSlotIndex(): Resource<ItemAppearanceSlotIndexResponse> {\n return {\n namespace: 'static',\n path: `${wowBasePath}/item-appearance/slot/index`,\n };\n}\n"],"mappings":";;;;;;;AAkBA,SAAgB,eAAe,cAAwD;CACrF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,mBAAmB;CAC1C;AACF;;;;;;AAMA,SAAgB,qBACd,SACwE;CACxE,OAAO;EACL,WAAW;EACX,YAAY;GACV,OAAO,QAAQ;GACf,IAAI,QAAQ;GACZ,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF;;;;;;AAMA,SAAgB,kBAAkB,iBAA8D;CAC9F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,uBAAuB;CAC9C;AACF;;;;;AAKA,SAAgB,yBAAmE;CACjF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAMA,SAAgB,mBAAmB,UAAwE;CACzG,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,wBAAwB;CAC/C;AACF;;;;;AAKA,SAAgB,0BAAqE;CACnF,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { wowBasePath } from "@blizzard-api/core";
|
|
2
|
+
// src/neighborhood-map/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Get an index of neighborhood maps.
|
|
5
|
+
* @returns The neighborhood map index. See {@link NeighborhoodMapIndexResponse}.
|
|
6
|
+
*/
|
|
7
|
+
function neighborhoodMaps() {
|
|
8
|
+
return {
|
|
9
|
+
namespace: "dynamic",
|
|
10
|
+
path: `${wowBasePath}/neighborhood-map/index`
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Get a neighborhood map by ID.
|
|
15
|
+
* @param neighborhoodMapId The neighborhood map ID.
|
|
16
|
+
* @returns The neighborhood map. See {@link NeighborhoodMapResponse}.
|
|
17
|
+
*/
|
|
18
|
+
function neighborhoodMap(neighborhoodMapId) {
|
|
19
|
+
return {
|
|
20
|
+
namespace: "dynamic",
|
|
21
|
+
path: `${wowBasePath}/neighborhood-map/${neighborhoodMapId}`
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a neighborhood within a neighborhood map by ID.
|
|
26
|
+
* @param neighborhoodMapId The neighborhood map ID.
|
|
27
|
+
* @param neighborhoodId The neighborhood ID.
|
|
28
|
+
* @returns The neighborhood. See {@link NeighborhoodResponse}.
|
|
29
|
+
*/
|
|
30
|
+
function neighborhood(neighborhoodMapId, neighborhoodId) {
|
|
31
|
+
return {
|
|
32
|
+
namespace: "dynamic",
|
|
33
|
+
path: `${wowBasePath}/neighborhood-map/${neighborhoodMapId}/neighborhood/${neighborhoodId}`
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export { neighborhood, neighborhoodMap, neighborhoodMaps };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/neighborhood-map/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { wowBasePath } from '@blizzard-api/core';\nimport type { NeighborhoodMapIndexResponse, NeighborhoodMapResponse, NeighborhoodResponse } from './types';\n\n/**\n * Get an index of neighborhood maps.\n * @returns The neighborhood map index. See {@link NeighborhoodMapIndexResponse}.\n */\nexport function neighborhoodMaps(): Resource<NeighborhoodMapIndexResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/neighborhood-map/index`,\n };\n}\n\n/**\n * Get a neighborhood map by ID.\n * @param neighborhoodMapId The neighborhood map ID.\n * @returns The neighborhood map. See {@link NeighborhoodMapResponse}.\n */\nexport function neighborhoodMap(neighborhoodMapId: number): Resource<NeighborhoodMapResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/neighborhood-map/${neighborhoodMapId}`,\n };\n}\n\n/**\n * Get a neighborhood within a neighborhood map by ID.\n * @param neighborhoodMapId The neighborhood map ID.\n * @param neighborhoodId The neighborhood ID.\n * @returns The neighborhood. See {@link NeighborhoodResponse}.\n */\nexport function neighborhood(neighborhoodMapId: number, neighborhoodId: number): Resource<NeighborhoodResponse> {\n return {\n namespace: 'dynamic',\n path: `${wowBasePath}/neighborhood-map/${neighborhoodMapId}/neighborhood/${neighborhoodId}`,\n };\n}\n"],"mappings":";;;;;;AAQA,SAAgB,mBAA2D;CACzE,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;AAOA,SAAgB,gBAAgB,mBAA8D;CAC5F,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB;CAC3C;AACF;;;;;;;AAQA,SAAgB,aAAa,mBAA2B,gBAAwD;CAC9G,OAAO;EACL,WAAW;EACX,MAAM,GAAG,YAAY,oBAAoB,kBAAkB,gBAAgB;CAC7E;AACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The quality attributes returned for a World of Warcraft battle pet.
|
|
3
|
+
*/
|
|
4
|
+
interface PetQuality {
|
|
5
|
+
name: string;
|
|
6
|
+
type: 'COMMON' | 'POOR' | 'RARE' | 'UNCOMMON';
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The statistics returned for a World of Warcraft battle pet.
|
|
10
|
+
*/
|
|
11
|
+
interface PetStats {
|
|
12
|
+
breed_id: number;
|
|
13
|
+
health: number;
|
|
14
|
+
power: number;
|
|
15
|
+
speed: number;
|
|
16
|
+
}
|
|
17
|
+
export { PetStats as n, PetQuality as t };
|
|
18
|
+
//# sourceMappingURL=types-BihzpfkI.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/wow",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "A series of helpers to interact with the World of Warcraft Blizzard API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@blizzard-api/core": "4.
|
|
45
|
+
"@blizzard-api/core": "4.5.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@blizzard-api/core": "4.
|
|
48
|
+
"@blizzard-api/core": "4.5.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": "^22.13.0 || ^24 || ^26"
|