@blizzard-api/classic-wow 3.0.4 → 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.
Files changed (84) hide show
  1. package/dist/auction-house/index.d.ts +2 -0
  2. package/dist/auction-house/index.js +35 -0
  3. package/dist/auction-house/index.js.map +1 -0
  4. package/dist/character-achievements/index.d.ts +2 -0
  5. package/dist/character-achievements/index.js +30 -0
  6. package/dist/character-achievements/index.js.map +1 -0
  7. package/dist/character-equipment/index.d.ts +2 -0
  8. package/dist/character-equipment/index.js +19 -0
  9. package/dist/character-equipment/index.js.map +1 -0
  10. package/dist/character-hunter-pets/index.d.ts +2 -0
  11. package/dist/character-hunter-pets/index.js +19 -0
  12. package/dist/character-hunter-pets/index.js.map +1 -0
  13. package/dist/character-media/index.d.ts +2 -0
  14. package/dist/character-media/index.js +18 -0
  15. package/dist/character-media/index.js.map +1 -0
  16. package/dist/character-profile/index.d.ts +2 -0
  17. package/dist/character-profile/index.js +42 -0
  18. package/dist/character-profile/index.js.map +1 -0
  19. package/dist/character-specialization/index.d.ts +2 -0
  20. package/dist/character-specialization/index.js +18 -0
  21. package/dist/character-specialization/index.js.map +1 -0
  22. package/dist/character-statistics/index.d.ts +2 -0
  23. package/dist/character-statistics/index.js +18 -0
  24. package/dist/character-statistics/index.js.map +1 -0
  25. package/dist/connected-realm/index.d.ts +2 -0
  26. package/dist/connected-realm/index.js +47 -0
  27. package/dist/connected-realm/index.js.map +1 -0
  28. package/dist/creature/index.d.ts +2 -0
  29. package/dist/creature/index.js +105 -0
  30. package/dist/creature/index.js.map +1 -0
  31. package/dist/guild/index.d.ts +2 -0
  32. package/dist/guild/index.js +54 -0
  33. package/dist/guild/index.js.map +1 -0
  34. package/dist/guild-crest/index.d.ts +2 -0
  35. package/dist/guild-crest/index.js +41 -0
  36. package/dist/guild-crest/index.js.map +1 -0
  37. package/dist/index--VDjAqSZ.d.ts +23 -0
  38. package/dist/index-0TuKK7MU.d.ts +75 -0
  39. package/dist/index-B-LUShkQ.d.ts +167 -0
  40. package/dist/index-BHX6BR24.d.ts +163 -0
  41. package/dist/index-BQ-NY0vY.d.ts +128 -0
  42. package/dist/index-BZ8QSRSe.d.ts +90 -0
  43. package/dist/index-BrwXCy4D.d.ts +40 -0
  44. package/dist/index-BtfmrbYY.d.ts +31 -0
  45. package/dist/index-C7VwaWu6.d.ts +66 -0
  46. package/dist/index-Ce02MoQO.d.ts +37 -0
  47. package/dist/index-DDSvssGG.d.ts +59 -0
  48. package/dist/index-DSc_fuNb.d.ts +46 -0
  49. package/dist/index-DUgdQv4k.d.ts +36 -0
  50. package/dist/index-DajMx-uR.d.ts +143 -0
  51. package/dist/index-Djpr-_AW.d.ts +65 -0
  52. package/dist/index-DmVmLB_p.d.ts +51 -0
  53. package/dist/index-i0vuifJx.d.ts +33 -0
  54. package/dist/index-u8N9Fa6T.d.ts +290 -0
  55. package/dist/index-y_6cJbJi.d.ts +89 -0
  56. package/dist/index.d.ts +22 -1632
  57. package/dist/index.js +20 -753
  58. package/dist/index.js.map +1 -1
  59. package/dist/item/index.d.ts +2 -0
  60. package/dist/item/index.js +83 -0
  61. package/dist/item/index.js.map +1 -0
  62. package/dist/media-search/index.d.ts +2 -0
  63. package/dist/media-search/index.js +23 -0
  64. package/dist/media-search/index.js.map +1 -0
  65. package/dist/playable-class/index.d.ts +2 -0
  66. package/dist/playable-class/index.js +41 -0
  67. package/dist/playable-class/index.js.map +1 -0
  68. package/dist/playable-race/index.d.ts +2 -0
  69. package/dist/playable-race/index.js +29 -0
  70. package/dist/playable-race/index.js.map +1 -0
  71. package/dist/power-type/index.d.ts +2 -0
  72. package/dist/power-type/index.js +29 -0
  73. package/dist/power-type/index.js.map +1 -0
  74. package/dist/pvp-season/index.d.ts +2 -0
  75. package/dist/pvp-season/index.js +105 -0
  76. package/dist/pvp-season/index.js.map +1 -0
  77. package/dist/realm/index.d.ts +27 -0
  78. package/dist/realm/index.js +46 -0
  79. package/dist/realm/index.js.map +1 -0
  80. package/dist/region/index.d.ts +2 -0
  81. package/dist/region/index.js +29 -0
  82. package/dist/region/index.js.map +1 -0
  83. package/dist/types-gA98D5Xw.d.ts +79 -0
  84. package/package.json +16 -7
@@ -0,0 +1,290 @@
1
+ import { BaseSearchParameters, BlizzardNamespaces, Color, KeyBase, Locales, MediaAsset, NameId, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
+
3
+ //#region src/item/types.d.ts
4
+ /**
5
+ * The response for an item class index.
6
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
7
+ */
8
+ interface ItemClassIndexResponse extends ResponseBase {
9
+ item_classes: Array<NameIdKey>;
10
+ }
11
+ /**
12
+ * The response for an item class.
13
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
14
+ */
15
+ interface ItemClassResponse extends ResponseBase {
16
+ class_id: number;
17
+ item_subclasses?: Array<NameIdKey>;
18
+ name: string;
19
+ }
20
+ /**
21
+ * The response for an item media.
22
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
23
+ */
24
+ interface ItemMediaResponse extends ResponseBase {
25
+ assets: Array<MediaAsset>;
26
+ id: number;
27
+ }
28
+ /**
29
+ * The response for an item.
30
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
31
+ */
32
+ interface ItemResponse extends NameId, ResponseBase {
33
+ appearances?: Array<KeyBase & {
34
+ id: number;
35
+ }>;
36
+ description?: string;
37
+ inventory_type: InventoryTypeName;
38
+ is_equippable: boolean;
39
+ is_stackable: boolean;
40
+ item_class: NameIdKey;
41
+ item_subclass: NameIdKey;
42
+ level: number;
43
+ max_count: number;
44
+ media: Media;
45
+ preview_item: PreviewItem;
46
+ purchase_price: number;
47
+ purchase_quantity: number;
48
+ quality: ItemQuality;
49
+ required_level: number;
50
+ sell_price: number;
51
+ }
52
+ /**
53
+ * The parameters for an item search.
54
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
55
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
56
+ */
57
+ interface ItemSearchParameters extends BaseSearchParameters {
58
+ locale: Locales;
59
+ name: string;
60
+ }
61
+ /**
62
+ * The response for an item search.
63
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
64
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
65
+ */
66
+ interface ItemSearchResponse extends SearchResponseWithoutResults {
67
+ results: Array<ItemSearchResponseItem>;
68
+ }
69
+ /**
70
+ * The response for an item subclass.
71
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
72
+ */
73
+ interface ItemSubClassResponse extends ResponseBase {
74
+ class_id: number;
75
+ display_name: string;
76
+ hide_subclass_in_tooltips?: boolean;
77
+ subclass_id: number;
78
+ verbose_name?: string;
79
+ }
80
+ interface Armor {
81
+ display: Display;
82
+ value: number;
83
+ }
84
+ interface Damage {
85
+ damage_class: {
86
+ name: string;
87
+ type: string;
88
+ };
89
+ display_string: string;
90
+ max_value: number;
91
+ min_value: number;
92
+ }
93
+ interface Display {
94
+ color: Color;
95
+ display_string: string;
96
+ }
97
+ interface Durability {
98
+ display_string: string;
99
+ value: number;
100
+ }
101
+ type InventoryType = 'BACK' | 'CHEST' | 'FEET' | 'FINGER' | 'HANDS' | 'HEAD' | 'LEGS' | 'NECK' | 'SHOULDER' | 'TRINKET' | 'WAIST' | 'WRIST' | 'RANGED' | 'THROWN' | 'TWOHWEAPON' | 'WEAPON' | 'WEAPONMAINHAND' | 'WEAPONOFFHAND' | 'BAG' | 'NON_EQUIP' | 'SHIRT' | 'TABARD';
102
+ interface InventoryTypeName {
103
+ name: string;
104
+ type: InventoryType;
105
+ }
106
+ interface InventoryTypeNameFromSearch {
107
+ name: Record<Locales, string>;
108
+ type: InventoryType;
109
+ }
110
+ interface ItemQuality {
111
+ name: string;
112
+ type: ItemQualityType;
113
+ }
114
+ interface ItemQualityFromSearch {
115
+ name: Record<Locales, string>;
116
+ type: ItemQualityType;
117
+ }
118
+ type ItemQualityType = 'ARTIFACT' | 'COMMON' | 'EPIC' | 'HEIRLOOM' | 'LEGENDARY' | 'POOR' | 'RARE' | 'UNCOMMON';
119
+ interface ItemSearchResponseItem extends KeyBase {
120
+ data: {
121
+ appearances?: Array<{
122
+ id: number;
123
+ }>;
124
+ id: number;
125
+ inventory_type: InventoryTypeNameFromSearch;
126
+ is_equippable: boolean;
127
+ is_stackable: boolean;
128
+ item_class: {
129
+ id: number;
130
+ name: Record<Locales, string>;
131
+ };
132
+ item_subclass: {
133
+ id: number;
134
+ name: Record<Locales, string>;
135
+ };
136
+ level: number;
137
+ max_count: number;
138
+ media: {
139
+ id: number;
140
+ };
141
+ name: Record<Locales, string | undefined>;
142
+ purchase_price: number;
143
+ purchase_quantity: number;
144
+ quality: ItemQualityFromSearch;
145
+ required_level: number;
146
+ sell_price: number;
147
+ };
148
+ }
149
+ interface Media extends KeyBase {
150
+ id: number;
151
+ }
152
+ interface PreviewItem {
153
+ armor?: Armor;
154
+ binding?: {
155
+ name: string;
156
+ type: string;
157
+ };
158
+ bonus_list?: Array<number>;
159
+ container_slots?: Durability;
160
+ context?: number;
161
+ crafting_reagent?: string;
162
+ description?: string;
163
+ durability?: Durability;
164
+ inventory_type: InventoryTypeName;
165
+ is_subclass_hidden?: boolean;
166
+ item: Media;
167
+ item_class: NameIdKey;
168
+ item_subclass: NameIdKey;
169
+ level?: Durability;
170
+ media: Media;
171
+ name: string;
172
+ quality: ItemQuality;
173
+ recipe?: Recipe;
174
+ requirements?: Requirements;
175
+ sell_price?: {
176
+ display_strings: RecipeItemDisplayStrings;
177
+ value: number;
178
+ };
179
+ shield_block?: Armor;
180
+ spells?: Array<Spell>;
181
+ stats?: Array<Stat>;
182
+ unique_equipped?: 'Unique';
183
+ weapon?: Weapon;
184
+ }
185
+ interface Recipe {
186
+ item: RecipeItem;
187
+ reagents: Array<NameIdKey & {
188
+ quantity: number;
189
+ }>;
190
+ reagents_display_string: string;
191
+ }
192
+ interface RecipeItem {
193
+ armor?: Armor;
194
+ binding: {
195
+ name: string;
196
+ type: string;
197
+ };
198
+ durability: Durability;
199
+ inventory_type: InventoryTypeName;
200
+ item: Media;
201
+ item_class: NameIdKey;
202
+ item_subclass: NameIdKey;
203
+ level: Durability;
204
+ media: Media;
205
+ name: string;
206
+ quality: ItemQuality;
207
+ requirements: Requirements;
208
+ sell_price: {
209
+ display_strings: RecipeItemDisplayStrings;
210
+ value: number;
211
+ };
212
+ stats: Array<Stat>;
213
+ weapon?: Weapon;
214
+ }
215
+ interface RecipeItemDisplayStrings {
216
+ copper: string;
217
+ gold: string;
218
+ header: string;
219
+ silver: string;
220
+ }
221
+ interface Requirements {
222
+ level: Durability;
223
+ }
224
+ interface Spell {
225
+ description: string;
226
+ spell: NameIdKey;
227
+ }
228
+ interface Stat {
229
+ display: Display;
230
+ is_negated?: boolean;
231
+ type: {
232
+ name: string;
233
+ type: StatTypeCapitalized;
234
+ };
235
+ value: number;
236
+ }
237
+ type StatTypeCapitalized = 'AGILITY' | 'ARCANE_RESISTANCE' | 'CRIT_RATING' | 'FIRE_RESISTANCE' | 'FROST_RESISTANCE' | 'HASTE_RATING' | 'INTELLECT' | 'MASTERY' | 'NATURE_RESISTANCE' | 'SHADOW_RESISTANCE' | 'STAMINA' | 'STRENGTH' | 'VERSATILITY';
238
+ interface Weapon {
239
+ additional_damage?: Array<Damage>;
240
+ attack_speed: Durability;
241
+ damage: Damage;
242
+ dps: Durability;
243
+ }
244
+ //#endregion
245
+ //#region src/item/index.d.ts
246
+ /**
247
+ * Get an item by ID.
248
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
249
+ * @param itemId The item ID.
250
+ * @returns The item. See {@link ItemResponse}.
251
+ */
252
+ declare function item(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, itemId: number): Resource<ItemResponse>;
253
+ /**
254
+ * Get an item class by ID.
255
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
256
+ * @param itemClassId The item class ID.
257
+ * @returns The item class. See {@link ItemClassResponse}.
258
+ */
259
+ declare function itemClass(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, itemClassId: number): Resource<ItemClassResponse>;
260
+ /**
261
+ * Get an item class index.
262
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
263
+ * @returns The item class index. See {@link ItemClassIndexResponse}.
264
+ */
265
+ declare function itemClassIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<ItemClassIndexResponse>;
266
+ /**
267
+ * Get item media by ID.
268
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
269
+ * @param itemId The item ID.
270
+ * @returns The item media. See {@link ItemMediaResponse}.
271
+ */
272
+ declare function itemMedia(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, itemId: number): Resource<ItemMediaResponse>;
273
+ /**
274
+ * Search for items.
275
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
276
+ * @param options The search parameters. See {@link ItemSearchParameters}.
277
+ * @returns The search results. See {@link ItemSearchResponse}.
278
+ */
279
+ declare function itemSearch(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, options: ItemSearchParameters): Resource<ItemSearchResponse, Omit<ItemSearchParameters, 'locale' | 'name'>>;
280
+ /**
281
+ * Get an item subclass by ID.
282
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
283
+ * @param itemClassId The item class ID.
284
+ * @param itemSubclassId The item subclass ID.
285
+ * @returns The item subclass. See {@link ItemSubClassResponse}.
286
+ */
287
+ declare function itemSubClass(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, itemClassId: number, itemSubclassId: number): Resource<ItemSubClassResponse>;
288
+ //#endregion
289
+ export { itemSearch as a, ItemClassResponse as c, ItemSearchParameters as d, ItemSearchResponse as f, itemMedia as i, ItemMediaResponse as l, itemClass as n, itemSubClass as o, ItemSubClassResponse as p, itemClassIndex as r, ItemClassIndexResponse as s, item as t, ItemResponse as u };
290
+ //# sourceMappingURL=index-u8N9Fa6T.d.ts.map
@@ -0,0 +1,89 @@
1
+ import { BlizzardNamespaces, Href, KeyBase, Resource, ResponseBase } from "@blizzard-api/core";
2
+
3
+ //#region src/pvp-season/types.d.ts
4
+ /**
5
+ * The response for a PvP season index.
6
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
7
+ */
8
+ interface PvpSeasonIndexResponse extends ResponseBase {
9
+ current_season: Season;
10
+ seasons: Array<Season>;
11
+ }
12
+ /**
13
+ * The response for a PvP season.
14
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
15
+ */
16
+ interface PvpSeasonResponse extends ResponseBase {
17
+ id: number;
18
+ leaderboards: Href;
19
+ rewards: Href;
20
+ season_name?: null | string;
21
+ season_start_timestamp: number;
22
+ }
23
+ interface Season extends KeyBase {
24
+ id: number;
25
+ }
26
+ //#endregion
27
+ //#region src/pvp-season/index.d.ts
28
+ /**
29
+ * Get a PvP leaderboard by PvP season ID and bracket.
30
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
31
+ * @param pvpRegionId The PvP region ID.
32
+ * @param pvpSeasonId The PvP season ID.
33
+ * @param pvpBracket The PvP bracket.
34
+ * @returns The PvP leaderboard.
35
+ */
36
+ declare function pvpLeaderboard(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, pvpRegionId: number, pvpSeasonId: number, pvpBracket: string): Resource<unknown>;
37
+ /**
38
+ * Returns an index of PvP leaderboards for a PvP season in a given PvP region.
39
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
40
+ * @param pvpRegionId The PvP region ID.
41
+ * @param pvpSeasonId The PvP season ID.
42
+ * @returns The PvP leaderboard index.
43
+ */
44
+ declare function pvpLeaderboardIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, pvpRegionId: number, pvpSeasonId: number): Resource<unknown>;
45
+ /**
46
+ * Returns a PvP season by region ID and season ID.
47
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
48
+ * @param pvpRegionId The PvP region ID.
49
+ * @param pvpSeasonId The PvP season ID.
50
+ * @returns The PvP season.
51
+ */
52
+ declare function pvpRegionalSeason(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, pvpRegionId: number, pvpSeasonId: number): Resource<unknown>;
53
+ /**
54
+ * Returns an index of PvP Seasons in a PvP region.
55
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
56
+ * @param pvpRegionId The PvP region ID.
57
+ * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
58
+ */
59
+ declare function pvpRegionalSeasonIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, pvpRegionId: number): Resource<PvpSeasonIndexResponse>;
60
+ /**
61
+ * Returns an index of PvP Regions.
62
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
63
+ * @returns The PvP region index.
64
+ */
65
+ declare function pvpRegionIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>): Resource<unknown>;
66
+ /**
67
+ * Returns an index of PvP rewards for a PvP season in a given PvP region.
68
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
69
+ * @param pvpRegionId The PvP region ID.
70
+ * @param pvpSeasonId The PvP season ID.
71
+ * @returns The PvP reward index.
72
+ */
73
+ declare function pvpRewardsIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, pvpRegionId: number, pvpSeasonId: number): Resource<unknown>;
74
+ /**
75
+ * Get a PvP season by ID.
76
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
77
+ * @param pvpSeasonId The PvP season ID.
78
+ * @returns The PvP season. See {@link PvpSeasonResponse}.
79
+ */
80
+ declare function pvpSeason(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, pvpSeasonId: number): Resource<PvpSeasonResponse>;
81
+ /**
82
+ * Get a PvP season index.
83
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
84
+ * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
85
+ */
86
+ declare function pvpSeasonIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>): Resource<PvpSeasonIndexResponse>;
87
+ //#endregion
88
+ export { pvpRegionalSeasonIndex as a, pvpSeasonIndex as c, pvpRegionalSeason as i, PvpSeasonIndexResponse as l, pvpLeaderboardIndex as n, pvpRewardsIndex as o, pvpRegionIndex as r, pvpSeason as s, pvpLeaderboard as t, PvpSeasonResponse as u };
89
+ //# sourceMappingURL=index-y_6cJbJi.d.ts.map