@blizzard-api/classic-wow 1.0.0 → 1.1.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/README.md +14 -4
- package/dist/index.cjs +427 -572
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +350 -261
- package/dist/index.d.ts +350 -261
- package/dist/index.js +383 -571
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -20,7 +20,50 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
|
-
|
|
23
|
+
auctionHouseIndex: () => auctionHouseIndex,
|
|
24
|
+
auctions: () => auctions,
|
|
25
|
+
classicWow: () => classicWow,
|
|
26
|
+
connectedRealm: () => connectedRealm,
|
|
27
|
+
connectedRealmIndex: () => connectedRealmIndex,
|
|
28
|
+
connectedRealmSearch: () => connectedRealmSearch,
|
|
29
|
+
creature: () => creature,
|
|
30
|
+
creatureDisplayMedia: () => creatureDisplayMedia,
|
|
31
|
+
creatureFamily: () => creatureFamily,
|
|
32
|
+
creatureFamilyIndex: () => creatureFamilyIndex,
|
|
33
|
+
creatureFamilyMedia: () => creatureFamilyMedia,
|
|
34
|
+
creatureSearch: () => creatureSearch,
|
|
35
|
+
creatureType: () => creatureType,
|
|
36
|
+
creatureTypeIndex: () => creatureTypeIndex,
|
|
37
|
+
guildCrestBorder: () => guildCrestBorder,
|
|
38
|
+
guildCrestComponentsIndex: () => guildCrestComponentsIndex,
|
|
39
|
+
guildCrestEmblem: () => guildCrestEmblem,
|
|
40
|
+
item: () => item,
|
|
41
|
+
itemClass: () => itemClass,
|
|
42
|
+
itemClassIndex: () => itemClassIndex,
|
|
43
|
+
itemMedia: () => itemMedia,
|
|
44
|
+
itemSearch: () => itemSearch,
|
|
45
|
+
itemSubClass: () => itemSubClass,
|
|
46
|
+
mediaSearch: () => mediaSearch,
|
|
47
|
+
playableClass: () => playableClass,
|
|
48
|
+
playableClassIndex: () => playableClassIndex,
|
|
49
|
+
playableClassMedia: () => playableClassMedia,
|
|
50
|
+
playableRace: () => playableRace,
|
|
51
|
+
playableRaceIndex: () => playableRaceIndex,
|
|
52
|
+
powerType: () => powerType,
|
|
53
|
+
powerTypeIndex: () => powerTypeIndex,
|
|
54
|
+
pvpLeaderboard: () => pvpLeaderboard,
|
|
55
|
+
pvpLeaderboardIndex: () => pvpLeaderboardIndex,
|
|
56
|
+
pvpRegionIndex: () => pvpRegionIndex,
|
|
57
|
+
pvpRegionalSeason: () => pvpRegionalSeason,
|
|
58
|
+
pvpRegionalSeasonIndex: () => pvpRegionalSeasonIndex,
|
|
59
|
+
pvpRewardsIndex: () => pvpRewardsIndex,
|
|
60
|
+
pvpSeason: () => pvpSeason,
|
|
61
|
+
pvpSeasonIndex: () => pvpSeasonIndex,
|
|
62
|
+
realm: () => realm,
|
|
63
|
+
realmIndex: () => realmIndex,
|
|
64
|
+
realmSearch: () => realmSearch,
|
|
65
|
+
region: () => region,
|
|
66
|
+
regionIndex: () => regionIndex
|
|
24
67
|
});
|
|
25
68
|
module.exports = __toCommonJS(src_exports);
|
|
26
69
|
|
|
@@ -30,604 +73,416 @@ var mediaBase = `${base}/media`;
|
|
|
30
73
|
var searchBase = `${base}/search`;
|
|
31
74
|
|
|
32
75
|
// src/auction-house/auction-house.ts
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* Returns all active auctions for a specific auction house on a connected realm.
|
|
48
|
-
*
|
|
49
|
-
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
50
|
-
*
|
|
51
|
-
* Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large, sometimes exceeding 10 MB.
|
|
52
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
53
|
-
* @param connectedRealmId The ID of the connected realm.
|
|
54
|
-
* @param auctionHouseId The ID of the auction house.
|
|
55
|
-
* @returns The auction house data. See {@link AuctionsResponse}.
|
|
56
|
-
*/
|
|
57
|
-
auctions: (namespace, connectedRealmId, auctionHouseId) => {
|
|
58
|
-
return {
|
|
59
|
-
path: `${base}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`,
|
|
60
|
-
namespace
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
};
|
|
76
|
+
function auctionHouseIndex(namespace, connectedRealmId) {
|
|
77
|
+
return {
|
|
78
|
+
path: `${base}/connected-realm/${connectedRealmId}/auctions/index`,
|
|
79
|
+
namespace
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function auctions(namespace, connectedRealmId, auctionHouseId) {
|
|
83
|
+
return {
|
|
84
|
+
path: `${base}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`,
|
|
85
|
+
namespace
|
|
86
|
+
};
|
|
87
|
+
}
|
|
64
88
|
|
|
65
89
|
// src/connected-realm/connected-realm.ts
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Performs a search of connected realms.
|
|
92
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
93
|
-
* @param options The search parameters. See {@link ConnectedRealmSearchParameters}.
|
|
94
|
-
* @returns The search results. See {@link SearchResponse} & {@link ConnectedRealmSearchResponseItem}.
|
|
95
|
-
*/
|
|
96
|
-
connectedRealmSearch: (namespace, options) => {
|
|
97
|
-
return {
|
|
98
|
-
namespace,
|
|
99
|
-
parameters: {
|
|
100
|
-
_page: options._page,
|
|
101
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
102
|
-
"status.type": options["status.type"],
|
|
103
|
-
"realms.timezone": options["realms.timezone"]
|
|
104
|
-
},
|
|
105
|
-
path: `${base}/search/connected-realm`
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
};
|
|
90
|
+
function connectedRealmIndex(namespace) {
|
|
91
|
+
return {
|
|
92
|
+
path: `${base}/connected-realm/index`,
|
|
93
|
+
namespace
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function connectedRealm(namespace, connectedRealmId) {
|
|
97
|
+
return {
|
|
98
|
+
path: `${base}/connected-realm/${connectedRealmId}`,
|
|
99
|
+
namespace
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function connectedRealmSearch(namespace, options) {
|
|
103
|
+
return {
|
|
104
|
+
namespace,
|
|
105
|
+
parameters: {
|
|
106
|
+
_page: options._page,
|
|
107
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
108
|
+
"status.type": options["status.type"],
|
|
109
|
+
"realms.timezone": options["realms.timezone"]
|
|
110
|
+
},
|
|
111
|
+
path: `${base}/search/connected-realm`
|
|
112
|
+
};
|
|
113
|
+
}
|
|
109
114
|
|
|
110
115
|
// src/creature/creature.ts
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
*/
|
|
165
|
-
creatureFamilyMedia: (namespace, creatureFamilyId) => {
|
|
166
|
-
return {
|
|
167
|
-
path: `${mediaBase}/creature-family/${creatureFamilyId}`,
|
|
168
|
-
namespace
|
|
169
|
-
};
|
|
170
|
-
},
|
|
171
|
-
/**
|
|
172
|
-
* Returns a creature type by ID.
|
|
173
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
174
|
-
* @param creatureTypeId The creature type ID.
|
|
175
|
-
* @returns The creature type. See {@link CreatureTypeResponse}.
|
|
176
|
-
*/
|
|
177
|
-
creatureType: (namespace, creatureTypeId) => {
|
|
178
|
-
return {
|
|
179
|
-
path: `${base}/creature-type/${creatureTypeId}`,
|
|
180
|
-
namespace
|
|
181
|
-
};
|
|
182
|
-
},
|
|
183
|
-
/**
|
|
184
|
-
* Returns an index of creature types.
|
|
185
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
186
|
-
* @returns The creature type index. See {@link CreatureTypeIndexResponse}.
|
|
187
|
-
*/
|
|
188
|
-
creatureTypeIndex: (namespace) => {
|
|
189
|
-
return {
|
|
190
|
-
path: `${base}/creature-type/index`,
|
|
191
|
-
namespace
|
|
192
|
-
};
|
|
193
|
-
},
|
|
194
|
-
/**
|
|
195
|
-
* Performs a search of creatures.
|
|
196
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
197
|
-
* @param options The creature search parameters. See {@link CreatureSearchParameters}.
|
|
198
|
-
* @returns The creature search results. See {@link SearchResponse} & {@link CreatureSearchResponseItem}.
|
|
199
|
-
*/
|
|
200
|
-
creatureSearch: (namespace, options) => {
|
|
201
|
-
return {
|
|
202
|
-
namespace,
|
|
203
|
-
parameters: {
|
|
204
|
-
_page: options._page,
|
|
205
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
206
|
-
[`name.${options.locale}`]: options.name
|
|
207
|
-
},
|
|
208
|
-
path: `${searchBase}/creature`
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
};
|
|
116
|
+
function creature(namespace, creatureId) {
|
|
117
|
+
return {
|
|
118
|
+
path: `${base}/creature/${creatureId}`,
|
|
119
|
+
namespace
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function creatureDisplayMedia(namespace, creatureDisplayId) {
|
|
123
|
+
return {
|
|
124
|
+
path: `${mediaBase}/creature-display/${creatureDisplayId}`,
|
|
125
|
+
namespace
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function creatureFamily(namespace, creatureFamilyId) {
|
|
129
|
+
return {
|
|
130
|
+
path: `${base}/creature-family/${creatureFamilyId}`,
|
|
131
|
+
namespace
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function creatureFamilyIndex(namespace) {
|
|
135
|
+
return {
|
|
136
|
+
path: `${base}/creature-family/index`,
|
|
137
|
+
namespace
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
function creatureFamilyMedia(namespace, creatureFamilyId) {
|
|
141
|
+
return {
|
|
142
|
+
path: `${mediaBase}/creature-family/${creatureFamilyId}`,
|
|
143
|
+
namespace
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function creatureType(namespace, creatureTypeId) {
|
|
147
|
+
return {
|
|
148
|
+
path: `${base}/creature-type/${creatureTypeId}`,
|
|
149
|
+
namespace
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function creatureTypeIndex(namespace) {
|
|
153
|
+
return {
|
|
154
|
+
path: `${base}/creature-type/index`,
|
|
155
|
+
namespace
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function creatureSearch(namespace, options) {
|
|
159
|
+
return {
|
|
160
|
+
namespace,
|
|
161
|
+
parameters: {
|
|
162
|
+
_page: options._page,
|
|
163
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
164
|
+
[`name.${options.locale}`]: options.name
|
|
165
|
+
},
|
|
166
|
+
path: `${searchBase}/creature`
|
|
167
|
+
};
|
|
168
|
+
}
|
|
212
169
|
|
|
213
170
|
// src/guild-crest/guild-crest.ts
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
guildCrestBorder: (namespace, borderId) => {
|
|
233
|
-
return {
|
|
234
|
-
path: `${mediaBase}/guild-crest/border/${borderId}`,
|
|
235
|
-
namespace
|
|
236
|
-
};
|
|
237
|
-
},
|
|
238
|
-
/**
|
|
239
|
-
* Returns media for a guild crest emblem by ID.
|
|
240
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
241
|
-
* @param emblemId The guild crest emblem ID.
|
|
242
|
-
* @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.
|
|
243
|
-
*/
|
|
244
|
-
guildCrestEmblem: (namespace, emblemId) => {
|
|
245
|
-
return {
|
|
246
|
-
path: `${mediaBase}/guild-crest/emblem/${emblemId}`,
|
|
247
|
-
namespace
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
};
|
|
171
|
+
function guildCrestComponentsIndex(namespace) {
|
|
172
|
+
return {
|
|
173
|
+
path: `${base}/guild-crest/index`,
|
|
174
|
+
namespace
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function guildCrestBorder(namespace, borderId) {
|
|
178
|
+
return {
|
|
179
|
+
path: `${mediaBase}/guild-crest/border/${borderId}`,
|
|
180
|
+
namespace
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function guildCrestEmblem(namespace, emblemId) {
|
|
184
|
+
return {
|
|
185
|
+
path: `${mediaBase}/guild-crest/emblem/${emblemId}`,
|
|
186
|
+
namespace
|
|
187
|
+
};
|
|
188
|
+
}
|
|
251
189
|
|
|
252
190
|
// src/item/item.ts
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
* @returns The item. See {@link ItemResponse}.
|
|
295
|
-
*/
|
|
296
|
-
item: (namespace, itemId) => {
|
|
297
|
-
return {
|
|
298
|
-
namespace,
|
|
299
|
-
path: `${base}/item/${itemId}`
|
|
300
|
-
};
|
|
301
|
-
},
|
|
302
|
-
/**
|
|
303
|
-
* Get item media by ID.
|
|
304
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
305
|
-
* @param itemId The item ID.
|
|
306
|
-
* @returns The item media. See {@link ItemMediaResponse}.
|
|
307
|
-
*/
|
|
308
|
-
itemMedia: (namespace, itemId) => {
|
|
309
|
-
return {
|
|
310
|
-
namespace,
|
|
311
|
-
path: `${mediaBase}/item/${itemId}`
|
|
312
|
-
};
|
|
313
|
-
},
|
|
314
|
-
/**
|
|
315
|
-
* Search for items.
|
|
316
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
317
|
-
* @param options The search parameters. See {@link ItemSearchParameters}.
|
|
318
|
-
* @returns The search results. See {@link SearchResponse}.
|
|
319
|
-
*/
|
|
320
|
-
itemSearch: (namespace, options) => {
|
|
321
|
-
return {
|
|
322
|
-
namespace,
|
|
323
|
-
parameters: {
|
|
324
|
-
_page: options._page,
|
|
325
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
326
|
-
[`name.${options.locale}`]: options.name
|
|
327
|
-
},
|
|
328
|
-
path: `${searchBase}/item`
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
};
|
|
191
|
+
function itemClassIndex(namespace) {
|
|
192
|
+
return {
|
|
193
|
+
path: `${base}/item-class/index`,
|
|
194
|
+
namespace
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
function itemClass(namespace, itemClassId) {
|
|
198
|
+
return {
|
|
199
|
+
namespace,
|
|
200
|
+
path: `${base}/item-class/${itemClassId}`
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function itemSubClass(namespace, itemClassId, itemSubclassId) {
|
|
204
|
+
return {
|
|
205
|
+
namespace,
|
|
206
|
+
path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
function item(namespace, itemId) {
|
|
210
|
+
return {
|
|
211
|
+
namespace,
|
|
212
|
+
path: `${base}/item/${itemId}`
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function itemMedia(namespace, itemId) {
|
|
216
|
+
return {
|
|
217
|
+
namespace,
|
|
218
|
+
path: `${mediaBase}/item/${itemId}`
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
function itemSearch(namespace, options) {
|
|
222
|
+
return {
|
|
223
|
+
namespace,
|
|
224
|
+
parameters: {
|
|
225
|
+
_page: options._page,
|
|
226
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
227
|
+
[`name.${options.locale}`]: options.name
|
|
228
|
+
},
|
|
229
|
+
path: `${searchBase}/item`
|
|
230
|
+
};
|
|
231
|
+
}
|
|
332
232
|
|
|
333
233
|
// src/media-search/media-search.ts
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
346
|
-
tags: options.tags
|
|
347
|
-
},
|
|
348
|
-
path: `${searchBase}/media`
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
};
|
|
234
|
+
function mediaSearch(namespace, options) {
|
|
235
|
+
return {
|
|
236
|
+
namespace,
|
|
237
|
+
parameters: {
|
|
238
|
+
_page: options._page,
|
|
239
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
240
|
+
tags: options.tags
|
|
241
|
+
},
|
|
242
|
+
path: `${searchBase}/media`
|
|
243
|
+
};
|
|
244
|
+
}
|
|
352
245
|
|
|
353
246
|
// src/playable-class/playable-class.ts
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
playableClassIndex: (namespace) => {
|
|
373
|
-
return {
|
|
374
|
-
namespace,
|
|
375
|
-
path: `${base}/playable-class/index`
|
|
376
|
-
};
|
|
377
|
-
},
|
|
378
|
-
/**
|
|
379
|
-
* Get playable class media by ID.
|
|
380
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
381
|
-
* @param playableClassId The playable class ID.
|
|
382
|
-
* @returns The playable class media. See {@link PlayableClassMediaResponse}.
|
|
383
|
-
*/
|
|
384
|
-
playableClassMedia: (namespace, playableClassId) => {
|
|
385
|
-
return {
|
|
386
|
-
namespace,
|
|
387
|
-
path: `${mediaBase}/playable-class/${playableClassId}`
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
};
|
|
247
|
+
function playableClass(namespace, playableClassId) {
|
|
248
|
+
return {
|
|
249
|
+
namespace,
|
|
250
|
+
path: `${base}/playable-class/${playableClassId}`
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
function playableClassIndex(namespace) {
|
|
254
|
+
return {
|
|
255
|
+
namespace,
|
|
256
|
+
path: `${base}/playable-class/index`
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
function playableClassMedia(namespace, playableClassId) {
|
|
260
|
+
return {
|
|
261
|
+
namespace,
|
|
262
|
+
path: `${mediaBase}/playable-class/${playableClassId}`
|
|
263
|
+
};
|
|
264
|
+
}
|
|
391
265
|
|
|
392
266
|
// src/playable-race/playable-race.ts
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
},
|
|
406
|
-
/**
|
|
407
|
-
* Get a playable race index.
|
|
408
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
409
|
-
* @returns The playable race index. See {@link PlayableRaceIndexResponse}.
|
|
410
|
-
*/
|
|
411
|
-
playableRaceIndex: (namespace) => {
|
|
412
|
-
return {
|
|
413
|
-
namespace,
|
|
414
|
-
path: `${base}/playable-race/index`
|
|
415
|
-
};
|
|
416
|
-
}
|
|
417
|
-
};
|
|
267
|
+
function playableRace(namespace, playableRaceId) {
|
|
268
|
+
return {
|
|
269
|
+
namespace,
|
|
270
|
+
path: `${base}/playable-race/${playableRaceId}`
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
function playableRaceIndex(namespace) {
|
|
274
|
+
return {
|
|
275
|
+
namespace,
|
|
276
|
+
path: `${base}/playable-race/index`
|
|
277
|
+
};
|
|
278
|
+
}
|
|
418
279
|
|
|
419
280
|
// src/power-type/power-type.ts
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
},
|
|
433
|
-
/**
|
|
434
|
-
* Get a power type index.
|
|
435
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
436
|
-
* @returns The power type index. See {@link PowerTypeIndexResponse}.
|
|
437
|
-
*/
|
|
438
|
-
powerTypeIndex: (namespace) => {
|
|
439
|
-
return {
|
|
440
|
-
namespace,
|
|
441
|
-
path: `${base}/power-type/index`
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
};
|
|
281
|
+
function powerType(namespace, powerTypeId) {
|
|
282
|
+
return {
|
|
283
|
+
namespace,
|
|
284
|
+
path: `${base}/power-type/${powerTypeId}`
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
function powerTypeIndex(namespace) {
|
|
288
|
+
return {
|
|
289
|
+
namespace,
|
|
290
|
+
path: `${base}/power-type/index`
|
|
291
|
+
};
|
|
292
|
+
}
|
|
445
293
|
|
|
446
294
|
// src/pvp-season/pvp-season.ts
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
* @param pvpRegionId The PvP region ID.
|
|
496
|
-
* @param pvpSeasonId The PvP season ID.
|
|
497
|
-
*/
|
|
498
|
-
pvpRegionalSeason: (namespace, pvpRegionId, pvpSeasonId) => {
|
|
499
|
-
return {
|
|
500
|
-
namespace,
|
|
501
|
-
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`
|
|
502
|
-
};
|
|
503
|
-
},
|
|
504
|
-
/**
|
|
505
|
-
* Returns an index of PvP leaderboards for a PvP season in a given PvP region.
|
|
506
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
507
|
-
* @param pvpRegionId The PvP region ID.
|
|
508
|
-
* @param pvpSeasonId The PvP season ID.
|
|
509
|
-
*/
|
|
510
|
-
pvpLeaderboardIndex: (namespace, pvpRegionId, pvpSeasonId) => {
|
|
511
|
-
return {
|
|
512
|
-
namespace,
|
|
513
|
-
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`
|
|
514
|
-
};
|
|
515
|
-
},
|
|
516
|
-
/**
|
|
517
|
-
* Get a PvP leaderboard by PvP season ID and bracket.
|
|
518
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
519
|
-
* @param pvpRegionId The PvP region ID.
|
|
520
|
-
* @param pvpSeasonId The PvP season ID.
|
|
521
|
-
* @param pvpBracket The PvP bracket.
|
|
522
|
-
*/
|
|
523
|
-
pvpLeaderboard: (namespace, pvpRegionId, pvpSeasonId, pvpBracket) => {
|
|
524
|
-
return {
|
|
525
|
-
namespace,
|
|
526
|
-
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`
|
|
527
|
-
};
|
|
528
|
-
},
|
|
529
|
-
/**
|
|
530
|
-
* Returns an index of PvP rewards for a PvP season in a given PvP region.
|
|
531
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
532
|
-
* @param pvpRegionId The PvP region ID.
|
|
533
|
-
* @param pvpSeasonId The PvP season ID.
|
|
534
|
-
*/
|
|
535
|
-
pvpRewardsIndex: (namespace, pvpRegionId, pvpSeasonId) => {
|
|
536
|
-
return {
|
|
537
|
-
namespace,
|
|
538
|
-
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
};
|
|
295
|
+
function pvpSeasonIndex(namespace) {
|
|
296
|
+
return {
|
|
297
|
+
namespace,
|
|
298
|
+
path: `${base}/pvp-season/index`
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
function pvpSeason(namespace, pvpSeasonId) {
|
|
302
|
+
return {
|
|
303
|
+
namespace,
|
|
304
|
+
path: `${base}/pvp-season/${pvpSeasonId}`
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function pvpRegionIndex(namespace) {
|
|
308
|
+
return {
|
|
309
|
+
namespace,
|
|
310
|
+
path: `${base}/pvp-region/index`
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
function pvpRegionalSeasonIndex(namespace, pvpRegionId) {
|
|
314
|
+
return {
|
|
315
|
+
namespace,
|
|
316
|
+
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/index`
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
function pvpRegionalSeason(namespace, pvpRegionId, pvpSeasonId) {
|
|
320
|
+
return {
|
|
321
|
+
namespace,
|
|
322
|
+
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
function pvpLeaderboardIndex(namespace, pvpRegionId, pvpSeasonId) {
|
|
326
|
+
return {
|
|
327
|
+
namespace,
|
|
328
|
+
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
function pvpLeaderboard(namespace, pvpRegionId, pvpSeasonId, pvpBracket) {
|
|
332
|
+
return {
|
|
333
|
+
namespace,
|
|
334
|
+
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
function pvpRewardsIndex(namespace, pvpRegionId, pvpSeasonId) {
|
|
338
|
+
return {
|
|
339
|
+
namespace,
|
|
340
|
+
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`
|
|
341
|
+
};
|
|
342
|
+
}
|
|
542
343
|
|
|
543
344
|
// src/realm/realm.ts
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
},
|
|
568
|
-
/**
|
|
569
|
-
* Search for realms.
|
|
570
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
571
|
-
* @param options The search parameters. See {@link RealmSearchParameters}.
|
|
572
|
-
* @returns The search results. See {@link SearchResponse}.
|
|
573
|
-
*/
|
|
574
|
-
realmSearch: (namespace, options) => {
|
|
575
|
-
return {
|
|
576
|
-
namespace,
|
|
577
|
-
parameters: {
|
|
578
|
-
_page: options._page,
|
|
579
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
580
|
-
timezone: options.timezone
|
|
581
|
-
},
|
|
582
|
-
path: `${searchBase}/realm`
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
};
|
|
345
|
+
function realm(namespace, realmSlug) {
|
|
346
|
+
return {
|
|
347
|
+
path: `${base}/realm/${realmSlug}`,
|
|
348
|
+
namespace
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
function realmIndex(namespace) {
|
|
352
|
+
return {
|
|
353
|
+
path: `${base}/realm/index`,
|
|
354
|
+
namespace
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
function realmSearch(namespace, options) {
|
|
358
|
+
return {
|
|
359
|
+
namespace,
|
|
360
|
+
parameters: {
|
|
361
|
+
_page: options._page,
|
|
362
|
+
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
363
|
+
timezone: options.timezone
|
|
364
|
+
},
|
|
365
|
+
path: `${searchBase}/realm`
|
|
366
|
+
};
|
|
367
|
+
}
|
|
586
368
|
|
|
587
369
|
// src/region/region.ts
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
},
|
|
601
|
-
/**
|
|
602
|
-
* Get a region index.
|
|
603
|
-
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
604
|
-
* @returns The region index. See {@link RegionIndexResponse}.
|
|
605
|
-
*/
|
|
606
|
-
regionIndex: (namespace) => {
|
|
607
|
-
return {
|
|
608
|
-
path: `${base}/region/index`,
|
|
609
|
-
namespace
|
|
610
|
-
};
|
|
611
|
-
}
|
|
612
|
-
};
|
|
370
|
+
function region(namespace, regionId) {
|
|
371
|
+
return {
|
|
372
|
+
path: `${base}/region/${regionId}`,
|
|
373
|
+
namespace
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
function regionIndex(namespace) {
|
|
377
|
+
return {
|
|
378
|
+
path: `${base}/region/index`,
|
|
379
|
+
namespace
|
|
380
|
+
};
|
|
381
|
+
}
|
|
613
382
|
|
|
614
383
|
// src/index.ts
|
|
615
384
|
var classicWow = {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
385
|
+
//Auction House
|
|
386
|
+
auctionHouseIndex,
|
|
387
|
+
auctions,
|
|
388
|
+
//Connected Realm
|
|
389
|
+
connectedRealm,
|
|
390
|
+
connectedRealmIndex,
|
|
391
|
+
connectedRealmSearch,
|
|
392
|
+
//Creature
|
|
393
|
+
creature,
|
|
394
|
+
creatureDisplayMedia,
|
|
395
|
+
creatureFamily,
|
|
396
|
+
creatureFamilyIndex,
|
|
397
|
+
creatureFamilyMedia,
|
|
398
|
+
creatureType,
|
|
399
|
+
creatureTypeIndex,
|
|
400
|
+
creatureSearch,
|
|
401
|
+
//Guild Crest
|
|
402
|
+
guildCrestComponentsIndex,
|
|
403
|
+
guildCrestBorder,
|
|
404
|
+
guildCrestEmblem,
|
|
405
|
+
//Item
|
|
406
|
+
itemClassIndex,
|
|
407
|
+
itemClass,
|
|
408
|
+
itemSubClass,
|
|
409
|
+
item,
|
|
410
|
+
itemMedia,
|
|
411
|
+
itemSearch,
|
|
412
|
+
//Media Search
|
|
413
|
+
mediaSearch,
|
|
414
|
+
//Playable Class
|
|
415
|
+
playableClass,
|
|
416
|
+
playableClassIndex,
|
|
417
|
+
playableClassMedia,
|
|
418
|
+
//Playable Race
|
|
419
|
+
playableRace,
|
|
420
|
+
playableRaceIndex,
|
|
421
|
+
//Power Type
|
|
422
|
+
powerType,
|
|
423
|
+
powerTypeIndex,
|
|
424
|
+
//Pvp Season
|
|
425
|
+
pvpSeasonIndex,
|
|
426
|
+
pvpSeason,
|
|
427
|
+
pvpRegionIndex,
|
|
428
|
+
pvpRegionalSeasonIndex,
|
|
429
|
+
pvpRegionalSeason,
|
|
430
|
+
pvpLeaderboardIndex,
|
|
431
|
+
pvpLeaderboard,
|
|
432
|
+
pvpRewardsIndex,
|
|
433
|
+
//Realm
|
|
434
|
+
realm,
|
|
435
|
+
realmIndex,
|
|
436
|
+
realmSearch,
|
|
437
|
+
//Region
|
|
438
|
+
region,
|
|
439
|
+
regionIndex
|
|
628
440
|
};
|
|
629
441
|
// Annotate the CommonJS export names for ESM import in node:
|
|
630
442
|
0 && (module.exports = {
|
|
631
|
-
|
|
443
|
+
auctionHouseIndex,
|
|
444
|
+
auctions,
|
|
445
|
+
classicWow,
|
|
446
|
+
connectedRealm,
|
|
447
|
+
connectedRealmIndex,
|
|
448
|
+
connectedRealmSearch,
|
|
449
|
+
creature,
|
|
450
|
+
creatureDisplayMedia,
|
|
451
|
+
creatureFamily,
|
|
452
|
+
creatureFamilyIndex,
|
|
453
|
+
creatureFamilyMedia,
|
|
454
|
+
creatureSearch,
|
|
455
|
+
creatureType,
|
|
456
|
+
creatureTypeIndex,
|
|
457
|
+
guildCrestBorder,
|
|
458
|
+
guildCrestComponentsIndex,
|
|
459
|
+
guildCrestEmblem,
|
|
460
|
+
item,
|
|
461
|
+
itemClass,
|
|
462
|
+
itemClassIndex,
|
|
463
|
+
itemMedia,
|
|
464
|
+
itemSearch,
|
|
465
|
+
itemSubClass,
|
|
466
|
+
mediaSearch,
|
|
467
|
+
playableClass,
|
|
468
|
+
playableClassIndex,
|
|
469
|
+
playableClassMedia,
|
|
470
|
+
playableRace,
|
|
471
|
+
playableRaceIndex,
|
|
472
|
+
powerType,
|
|
473
|
+
powerTypeIndex,
|
|
474
|
+
pvpLeaderboard,
|
|
475
|
+
pvpLeaderboardIndex,
|
|
476
|
+
pvpRegionIndex,
|
|
477
|
+
pvpRegionalSeason,
|
|
478
|
+
pvpRegionalSeasonIndex,
|
|
479
|
+
pvpRewardsIndex,
|
|
480
|
+
pvpSeason,
|
|
481
|
+
pvpSeasonIndex,
|
|
482
|
+
realm,
|
|
483
|
+
realmIndex,
|
|
484
|
+
realmSearch,
|
|
485
|
+
region,
|
|
486
|
+
regionIndex
|
|
632
487
|
});
|
|
633
488
|
//# sourceMappingURL=index.cjs.map
|