@blizzard-api/classic-wow 1.1.7 → 2.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/package.json +5 -9
- package/dist/index.cjs +0 -423
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -1138
package/package.json
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/classic-wow",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Putro",
|
|
6
6
|
"description": "A series of helpers to interact with the World of Warcraft Classic Blizzard API",
|
|
7
7
|
"repository": "https://github.com/Pewtro/blizzard-api/tree/main/packages/classic-wow",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": "^18.18 ||
|
|
10
|
+
"node": "^18.18 || >=20.9"
|
|
11
11
|
},
|
|
12
|
-
"main": "./dist/index.cjs",
|
|
13
12
|
"module": "./dist/index.js",
|
|
14
13
|
"types": "./dist/index.d.ts",
|
|
15
14
|
"exports": {
|
|
16
15
|
"import": {
|
|
16
|
+
"@blizzard-api/classic-wow-local": "./src/index.ts",
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"default": "./dist/index.js"
|
|
19
|
-
},
|
|
20
|
-
"require": {
|
|
21
|
-
"types": "./dist/index.d.cts",
|
|
22
|
-
"default": "./dist/index.cjs"
|
|
23
19
|
}
|
|
24
20
|
},
|
|
25
21
|
"files": [
|
|
@@ -38,10 +34,10 @@
|
|
|
38
34
|
],
|
|
39
35
|
"dependencies": {},
|
|
40
36
|
"peerDependencies": {
|
|
41
|
-
"@blizzard-api/core": "
|
|
37
|
+
"@blizzard-api/core": "2.0.0"
|
|
42
38
|
},
|
|
43
39
|
"devDependencies": {
|
|
44
|
-
"@blizzard-api/core": "
|
|
40
|
+
"@blizzard-api/core": "2.0.0"
|
|
45
41
|
},
|
|
46
42
|
"scripts": {
|
|
47
43
|
"build": "tsup",
|
package/dist/index.cjs
DELETED
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
// ../wow/src/base.ts
|
|
6
|
-
var base = "/data/wow";
|
|
7
|
-
var mediaBase = `${base}/media`;
|
|
8
|
-
var searchBase = `${base}/search`;
|
|
9
|
-
|
|
10
|
-
// src/auction-house/auction-house.ts
|
|
11
|
-
function auctionHouseIndex(namespace, connectedRealmId) {
|
|
12
|
-
return {
|
|
13
|
-
namespace,
|
|
14
|
-
path: `${base}/connected-realm/${connectedRealmId}/auctions/index`
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
function auctions(namespace, connectedRealmId, auctionHouseId) {
|
|
18
|
-
return {
|
|
19
|
-
namespace,
|
|
20
|
-
path: `${base}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// src/connected-realm/connected-realm.ts
|
|
25
|
-
function connectedRealmIndex(namespace) {
|
|
26
|
-
return {
|
|
27
|
-
namespace,
|
|
28
|
-
path: `${base}/connected-realm/index`
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function connectedRealm(namespace, connectedRealmId) {
|
|
32
|
-
return {
|
|
33
|
-
namespace,
|
|
34
|
-
path: `${base}/connected-realm/${connectedRealmId}`
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function connectedRealmSearch(namespace, options) {
|
|
38
|
-
return {
|
|
39
|
-
namespace,
|
|
40
|
-
parameters: {
|
|
41
|
-
_page: options._page,
|
|
42
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
43
|
-
"realms.timezone": options["realms.timezone"],
|
|
44
|
-
"status.type": options["status.type"]
|
|
45
|
-
},
|
|
46
|
-
path: `${base}/search/connected-realm`
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// src/creature/creature.ts
|
|
51
|
-
function creature(namespace, creatureId) {
|
|
52
|
-
return {
|
|
53
|
-
namespace,
|
|
54
|
-
path: `${base}/creature/${creatureId}`
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function creatureDisplayMedia(namespace, creatureDisplayId) {
|
|
58
|
-
return {
|
|
59
|
-
namespace,
|
|
60
|
-
path: `${mediaBase}/creature-display/${creatureDisplayId}`
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function creatureFamily(namespace, creatureFamilyId) {
|
|
64
|
-
return {
|
|
65
|
-
namespace,
|
|
66
|
-
path: `${base}/creature-family/${creatureFamilyId}`
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function creatureFamilyIndex(namespace) {
|
|
70
|
-
return {
|
|
71
|
-
namespace,
|
|
72
|
-
path: `${base}/creature-family/index`
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
function creatureFamilyMedia(namespace, creatureFamilyId) {
|
|
76
|
-
return {
|
|
77
|
-
namespace,
|
|
78
|
-
path: `${mediaBase}/creature-family/${creatureFamilyId}`
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function creatureType(namespace, creatureTypeId) {
|
|
82
|
-
return {
|
|
83
|
-
namespace,
|
|
84
|
-
path: `${base}/creature-type/${creatureTypeId}`
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function creatureTypeIndex(namespace) {
|
|
88
|
-
return {
|
|
89
|
-
namespace,
|
|
90
|
-
path: `${base}/creature-type/index`
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
function creatureSearch(namespace, options) {
|
|
94
|
-
return {
|
|
95
|
-
namespace,
|
|
96
|
-
parameters: {
|
|
97
|
-
_page: options._page,
|
|
98
|
-
[`name.${options.locale}`]: options.name,
|
|
99
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
|
|
100
|
-
},
|
|
101
|
-
path: `${searchBase}/creature`
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// src/guild-crest/guild-crest.ts
|
|
106
|
-
function guildCrestComponentsIndex(namespace) {
|
|
107
|
-
return {
|
|
108
|
-
namespace,
|
|
109
|
-
path: `${base}/guild-crest/index`
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function guildCrestBorder(namespace, borderId) {
|
|
113
|
-
return {
|
|
114
|
-
namespace,
|
|
115
|
-
path: `${mediaBase}/guild-crest/border/${borderId}`
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
function guildCrestEmblem(namespace, emblemId) {
|
|
119
|
-
return {
|
|
120
|
-
namespace,
|
|
121
|
-
path: `${mediaBase}/guild-crest/emblem/${emblemId}`
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// src/item/item.ts
|
|
126
|
-
function itemClassIndex(namespace) {
|
|
127
|
-
return {
|
|
128
|
-
namespace,
|
|
129
|
-
path: `${base}/item-class/index`
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
function itemClass(namespace, itemClassId) {
|
|
133
|
-
return {
|
|
134
|
-
namespace,
|
|
135
|
-
path: `${base}/item-class/${itemClassId}`
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
function itemSubClass(namespace, itemClassId, itemSubclassId) {
|
|
139
|
-
return {
|
|
140
|
-
namespace,
|
|
141
|
-
path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
function item(namespace, itemId) {
|
|
145
|
-
return {
|
|
146
|
-
namespace,
|
|
147
|
-
path: `${base}/item/${itemId}`
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
function itemMedia(namespace, itemId) {
|
|
151
|
-
return {
|
|
152
|
-
namespace,
|
|
153
|
-
path: `${mediaBase}/item/${itemId}`
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
function itemSearch(namespace, options) {
|
|
157
|
-
return {
|
|
158
|
-
namespace,
|
|
159
|
-
parameters: {
|
|
160
|
-
_page: options._page,
|
|
161
|
-
[`name.${options.locale}`]: options.name,
|
|
162
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
|
|
163
|
-
},
|
|
164
|
-
path: `${searchBase}/item`
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// src/media-search/media-search.ts
|
|
169
|
-
function mediaSearch(namespace, options) {
|
|
170
|
-
return {
|
|
171
|
-
namespace,
|
|
172
|
-
parameters: {
|
|
173
|
-
_page: options._page,
|
|
174
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
175
|
-
tags: options.tags
|
|
176
|
-
},
|
|
177
|
-
path: `${searchBase}/media`
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// src/playable-class/playable-class.ts
|
|
182
|
-
function playableClass(namespace, playableClassId) {
|
|
183
|
-
return {
|
|
184
|
-
namespace,
|
|
185
|
-
path: `${base}/playable-class/${playableClassId}`
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
function playableClassIndex(namespace) {
|
|
189
|
-
return {
|
|
190
|
-
namespace,
|
|
191
|
-
path: `${base}/playable-class/index`
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
function playableClassMedia(namespace, playableClassId) {
|
|
195
|
-
return {
|
|
196
|
-
namespace,
|
|
197
|
-
path: `${mediaBase}/playable-class/${playableClassId}`
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// src/playable-race/playable-race.ts
|
|
202
|
-
function playableRace(namespace, playableRaceId) {
|
|
203
|
-
return {
|
|
204
|
-
namespace,
|
|
205
|
-
path: `${base}/playable-race/${playableRaceId}`
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
function playableRaceIndex(namespace) {
|
|
209
|
-
return {
|
|
210
|
-
namespace,
|
|
211
|
-
path: `${base}/playable-race/index`
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// src/power-type/power-type.ts
|
|
216
|
-
function powerType(namespace, powerTypeId) {
|
|
217
|
-
return {
|
|
218
|
-
namespace,
|
|
219
|
-
path: `${base}/power-type/${powerTypeId}`
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
function powerTypeIndex(namespace) {
|
|
223
|
-
return {
|
|
224
|
-
namespace,
|
|
225
|
-
path: `${base}/power-type/index`
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// src/pvp-season/pvp-season.ts
|
|
230
|
-
function pvpSeasonIndex(namespace) {
|
|
231
|
-
return {
|
|
232
|
-
namespace,
|
|
233
|
-
path: `${base}/pvp-season/index`
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
function pvpSeason(namespace, pvpSeasonId) {
|
|
237
|
-
return {
|
|
238
|
-
namespace,
|
|
239
|
-
path: `${base}/pvp-season/${pvpSeasonId}`
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
function pvpRegionIndex(namespace) {
|
|
243
|
-
return {
|
|
244
|
-
namespace,
|
|
245
|
-
path: `${base}/pvp-region/index`
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
function pvpRegionalSeasonIndex(namespace, pvpRegionId) {
|
|
249
|
-
return {
|
|
250
|
-
namespace,
|
|
251
|
-
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/index`
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
function pvpRegionalSeason(namespace, pvpRegionId, pvpSeasonId) {
|
|
255
|
-
return {
|
|
256
|
-
namespace,
|
|
257
|
-
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
function pvpLeaderboardIndex(namespace, pvpRegionId, pvpSeasonId) {
|
|
261
|
-
return {
|
|
262
|
-
namespace,
|
|
263
|
-
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
function pvpLeaderboard(namespace, pvpRegionId, pvpSeasonId, pvpBracket) {
|
|
267
|
-
return {
|
|
268
|
-
namespace,
|
|
269
|
-
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
function pvpRewardsIndex(namespace, pvpRegionId, pvpSeasonId) {
|
|
273
|
-
return {
|
|
274
|
-
namespace,
|
|
275
|
-
path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
// src/realm/realm.ts
|
|
280
|
-
function realm(namespace, realmSlug) {
|
|
281
|
-
return {
|
|
282
|
-
namespace,
|
|
283
|
-
path: `${base}/realm/${realmSlug}`
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
function realmIndex(namespace) {
|
|
287
|
-
return {
|
|
288
|
-
namespace,
|
|
289
|
-
path: `${base}/realm/index`
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
function realmSearch(namespace, options) {
|
|
293
|
-
return {
|
|
294
|
-
namespace,
|
|
295
|
-
parameters: {
|
|
296
|
-
_page: options._page,
|
|
297
|
-
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
|
|
298
|
-
timezone: options.timezone
|
|
299
|
-
},
|
|
300
|
-
path: `${searchBase}/realm`
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
// src/region/region.ts
|
|
305
|
-
function region(namespace, regionId) {
|
|
306
|
-
return {
|
|
307
|
-
namespace,
|
|
308
|
-
path: `${base}/region/${regionId}`
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
function regionIndex(namespace) {
|
|
312
|
-
return {
|
|
313
|
-
namespace,
|
|
314
|
-
path: `${base}/region/index`
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
// src/index.ts
|
|
319
|
-
var classicWow = {
|
|
320
|
-
//Auction House
|
|
321
|
-
auctionHouseIndex,
|
|
322
|
-
auctions,
|
|
323
|
-
//Connected Realm
|
|
324
|
-
connectedRealm,
|
|
325
|
-
connectedRealmIndex,
|
|
326
|
-
connectedRealmSearch,
|
|
327
|
-
//Creature
|
|
328
|
-
creature,
|
|
329
|
-
creatureDisplayMedia,
|
|
330
|
-
creatureFamily,
|
|
331
|
-
creatureFamilyIndex,
|
|
332
|
-
creatureFamilyMedia,
|
|
333
|
-
creatureSearch,
|
|
334
|
-
creatureType,
|
|
335
|
-
creatureTypeIndex,
|
|
336
|
-
//Guild Crest
|
|
337
|
-
guildCrestBorder,
|
|
338
|
-
guildCrestComponentsIndex,
|
|
339
|
-
guildCrestEmblem,
|
|
340
|
-
//Item
|
|
341
|
-
item,
|
|
342
|
-
itemClass,
|
|
343
|
-
itemClassIndex,
|
|
344
|
-
itemMedia,
|
|
345
|
-
itemSearch,
|
|
346
|
-
itemSubClass,
|
|
347
|
-
//Media Search
|
|
348
|
-
mediaSearch,
|
|
349
|
-
//Playable Class
|
|
350
|
-
playableClass,
|
|
351
|
-
playableClassIndex,
|
|
352
|
-
playableClassMedia,
|
|
353
|
-
//Playable Race
|
|
354
|
-
playableRace,
|
|
355
|
-
playableRaceIndex,
|
|
356
|
-
//Power Type
|
|
357
|
-
powerType,
|
|
358
|
-
powerTypeIndex,
|
|
359
|
-
//Pvp Season
|
|
360
|
-
pvpLeaderboard,
|
|
361
|
-
pvpLeaderboardIndex,
|
|
362
|
-
pvpRegionalSeason,
|
|
363
|
-
pvpRegionalSeasonIndex,
|
|
364
|
-
pvpRegionIndex,
|
|
365
|
-
pvpRewardsIndex,
|
|
366
|
-
pvpSeason,
|
|
367
|
-
pvpSeasonIndex,
|
|
368
|
-
//Realm
|
|
369
|
-
realm,
|
|
370
|
-
realmIndex,
|
|
371
|
-
realmSearch,
|
|
372
|
-
//Region
|
|
373
|
-
region,
|
|
374
|
-
regionIndex
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
exports.auctionHouseIndex = auctionHouseIndex;
|
|
378
|
-
exports.auctions = auctions;
|
|
379
|
-
exports.classicWow = classicWow;
|
|
380
|
-
exports.connectedRealm = connectedRealm;
|
|
381
|
-
exports.connectedRealmIndex = connectedRealmIndex;
|
|
382
|
-
exports.connectedRealmSearch = connectedRealmSearch;
|
|
383
|
-
exports.creature = creature;
|
|
384
|
-
exports.creatureDisplayMedia = creatureDisplayMedia;
|
|
385
|
-
exports.creatureFamily = creatureFamily;
|
|
386
|
-
exports.creatureFamilyIndex = creatureFamilyIndex;
|
|
387
|
-
exports.creatureFamilyMedia = creatureFamilyMedia;
|
|
388
|
-
exports.creatureSearch = creatureSearch;
|
|
389
|
-
exports.creatureType = creatureType;
|
|
390
|
-
exports.creatureTypeIndex = creatureTypeIndex;
|
|
391
|
-
exports.default = classicWow;
|
|
392
|
-
exports.guildCrestBorder = guildCrestBorder;
|
|
393
|
-
exports.guildCrestComponentsIndex = guildCrestComponentsIndex;
|
|
394
|
-
exports.guildCrestEmblem = guildCrestEmblem;
|
|
395
|
-
exports.item = item;
|
|
396
|
-
exports.itemClass = itemClass;
|
|
397
|
-
exports.itemClassIndex = itemClassIndex;
|
|
398
|
-
exports.itemMedia = itemMedia;
|
|
399
|
-
exports.itemSearch = itemSearch;
|
|
400
|
-
exports.itemSubClass = itemSubClass;
|
|
401
|
-
exports.mediaSearch = mediaSearch;
|
|
402
|
-
exports.playableClass = playableClass;
|
|
403
|
-
exports.playableClassIndex = playableClassIndex;
|
|
404
|
-
exports.playableClassMedia = playableClassMedia;
|
|
405
|
-
exports.playableRace = playableRace;
|
|
406
|
-
exports.playableRaceIndex = playableRaceIndex;
|
|
407
|
-
exports.powerType = powerType;
|
|
408
|
-
exports.powerTypeIndex = powerTypeIndex;
|
|
409
|
-
exports.pvpLeaderboard = pvpLeaderboard;
|
|
410
|
-
exports.pvpLeaderboardIndex = pvpLeaderboardIndex;
|
|
411
|
-
exports.pvpRegionIndex = pvpRegionIndex;
|
|
412
|
-
exports.pvpRegionalSeason = pvpRegionalSeason;
|
|
413
|
-
exports.pvpRegionalSeasonIndex = pvpRegionalSeasonIndex;
|
|
414
|
-
exports.pvpRewardsIndex = pvpRewardsIndex;
|
|
415
|
-
exports.pvpSeason = pvpSeason;
|
|
416
|
-
exports.pvpSeasonIndex = pvpSeasonIndex;
|
|
417
|
-
exports.realm = realm;
|
|
418
|
-
exports.realmIndex = realmIndex;
|
|
419
|
-
exports.realmSearch = realmSearch;
|
|
420
|
-
exports.region = region;
|
|
421
|
-
exports.regionIndex = regionIndex;
|
|
422
|
-
//# sourceMappingURL=index.cjs.map
|
|
423
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../wow/src/base.ts","../src/auction-house/auction-house.ts","../src/connected-realm/connected-realm.ts","../src/creature/creature.ts","../src/guild-crest/guild-crest.ts","../src/item/item.ts","../src/media-search/media-search.ts","../src/playable-class/playable-class.ts","../src/playable-race/playable-race.ts","../src/power-type/power-type.ts","../src/pvp-season/pvp-season.ts","../src/realm/realm.ts","../src/region/region.ts","../src/index.ts"],"names":[],"mappings":";;;;;AASO,IAAM,IAAO,GAAA,WAAA,CAAA;AAKb,IAAM,SAAA,GAAY,GAAG,IAAI,CAAA,MAAA,CAAA,CAAA;AAKzB,IAAM,UAAA,GAAa,GAAG,IAAI,CAAA,OAAA,CAAA,CAAA;;;ACT1B,SAAS,iBAAA,CACd,WACA,gBACqC,EAAA;AACrC,EAAO,OAAA;AAAA,IACL,SAAA;AAAA,IACA,IAAM,EAAA,CAAA,EAAG,IAAI,CAAA,iBAAA,EAAoB,gBAAgB,CA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;AAC1B,EAAO,OAAA;AAAA,IACL,SAAA;AAAA,IACA,IAAM,EAAA,CAAA,EAAG,IAAI,CAAA,QAAA,EAAW,QAAQ,CAAA,CAAA;AAAA,GAClC,CAAA;AACF,CAAA;AAMO,SAAS,YACd,SAC+B,EAAA;AAC/B,EAAO,OAAA;AAAA,IACL,SAAA;AAAA,IACA,IAAA,EAAM,GAAG,IAAI,CAAA,aAAA,CAAA;AAAA,GACf,CAAA;AACF,CAAA;;;ACAA,IAAM,UAAa,GAAA;AAAA;AAAA,EAEjB,iBAAA;AAAA,EACA,QAAA;AAAA;AAAA,EAEA,cAAA;AAAA,EACA,mBAAA;AAAA,EACA,oBAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,oBAAA;AAAA,EACA,cAAA;AAAA,EACA,mBAAA;AAAA,EACA,mBAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AAAA,EACA,iBAAA;AAAA;AAAA,EAEA,gBAAA;AAAA,EACA,yBAAA;AAAA,EACA,gBAAA;AAAA;AAAA,EAEA,IAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA;AAAA,EAEA,WAAA;AAAA;AAAA,EAEA,aAAA;AAAA,EACA,kBAAA;AAAA,EACA,kBAAA;AAAA;AAAA,EAEA,YAAA;AAAA,EACA,iBAAA;AAAA;AAAA,EAEA,SAAA;AAAA,EACA,cAAA;AAAA;AAAA,EAEA,cAAA;AAAA,EACA,mBAAA;AAAA,EACA,iBAAA;AAAA,EACA,sBAAA;AAAA,EACA,cAAA;AAAA,EACA,eAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA;AAAA,EAEA,KAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA;AAAA,EAEA,MAAA;AAAA,EACA,WAAA;AACF","file":"index.cjs","sourcesContent":["/**\r\n * @file base.ts\r\n * @module base\r\n * @description Contains base constants and interfaces for the Blizzard API.\r\n */\r\n\r\n/**\r\n * The base request path for the Blizzard API for world of warcraft.\r\n */\r\nexport const base = '/data/wow';\r\n\r\n/**\r\n * The base request path for media in the Blizzard API for world of warcraft.\r\n */\r\nexport const mediaBase = `${base}/media` as const;\r\n\r\n/**\r\n * The base request path for search in the Blizzard API for world of warcraft.\r\n */\r\nexport const searchBase = `${base}/search` as const;\r\n\r\n/**\r\n *\r\n */\r\n\r\nexport interface Href {\r\n href: string;\r\n}\r\n/**\r\n * Base interface for Blizzard API responses.\r\n */\r\nexport interface ResponseBase {\r\n _links: {\r\n self: Href;\r\n };\r\n}\r\n\r\n/**\r\n * Base record interface containing key.href property that often appear in Blizzard API responses.\r\n */\r\nexport interface KeyBase {\r\n key: Href;\r\n}\r\n\r\n/**\r\n * Base record interface containing name and id properties that often appear together in Blizzard API responses.\r\n */\r\nexport interface NameId {\r\n id: number;\r\n name: string;\r\n}\r\n\r\n/**\r\n * Base record containing both {@link KeyBase} and {@link NameId} interfaces.\r\n */\r\nexport interface NameIdKey extends KeyBase, NameId {}\r\n\r\n/**\r\n * A record containing the RGBA values of a color.\r\n */\r\nexport interface Color {\r\n a: number;\r\n b: number;\r\n g: number;\r\n r: number;\r\n}\r\n\r\n/**\r\n * The media asset associated with a character or entity in World of Warcraft.\r\n */\r\nexport interface MediaAsset {\r\n file_data_id: number;\r\n key: string;\r\n value: string;\r\n}\r\n\r\n/**\r\n * The playable gender names/descriptions in World of Warcraft.\r\n */\r\nexport interface GenderName {\r\n female: string;\r\n male: string;\r\n}\r\n\r\n/**\r\n * The playable genders in World of Warcraft.\r\n */\r\nexport const Genders = {\r\n FEMALE: 'FEMALE',\r\n MALE: 'MALE',\r\n} as const;\r\n\r\n/**\r\n * The gender associated with a character or entity in World of Warcraft.\r\n */\r\nexport interface Gender {\r\n name: Capitalize<Lowercase<keyof typeof Genders>>;\r\n type: keyof typeof Genders;\r\n}\r\n\r\n/**\r\n * The playable factions in World of Warcraft.\r\n */\r\nexport const Factions = {\r\n ALLIANCE: 'ALLIANCE',\r\n HORDE: 'HORDE',\r\n} as const;\r\n\r\n/**\r\n * The faction associated with a character or entity in World of Warcraft.\r\n */\r\nexport interface Faction {\r\n name: Capitalize<Lowercase<keyof typeof Factions>>;\r\n type: keyof typeof Factions;\r\n}\r\n\r\n/**\r\n * The standard structure to represent a World of Warcraft Realm.\r\n */\r\nexport interface Realm extends NameIdKey {\r\n slug: string;\r\n}\r\n\r\n/**\r\n * The standard structure to represent a World of Warcraft Character.\r\n */\r\nexport interface Character extends NameIdKey {\r\n realm: Realm;\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { AuctionHouseIndexResponse, AuctionsResponse } from './types';\r\n\r\n/**\r\n * Returns an index of auction houses for a connected realm.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param connectedRealmId The ID of the connected realm.\r\n * @returns The auction house index. See {@link AuctionHouseIndexResponse}.\r\n */\r\nexport function auctionHouseIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n connectedRealmId: number,\r\n): Resource<AuctionHouseIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/connected-realm/${connectedRealmId}/auctions/index`,\r\n };\r\n}\r\n/**\r\n * Returns all active auctions for a specific auction house on a connected realm.\r\n *\r\n * Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.\r\n *\r\n * 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.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param connectedRealmId The ID of the connected realm.\r\n * @param auctionHouseId The ID of the auction house.\r\n * @returns The auction house data. See {@link AuctionsResponse}.\r\n */\r\nexport function auctions(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n connectedRealmId: number,\r\n auctionHouseId: number,\r\n): Resource<AuctionsResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type {\r\n ConnectedRealmIndexResponse,\r\n ConnectedRealmResponse,\r\n ConnectedRealmSearchParameters,\r\n ConnectedRealmSearchResponseItem,\r\n} from './types';\r\n\r\n/**\r\n * Returns an index of connected realms.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The connected realm index. See {@link ConnectedRealmIndexResponse}.\r\n */\r\nexport function connectedRealmIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n): Resource<ConnectedRealmIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/connected-realm/index`,\r\n };\r\n}\r\n/**\r\n * Returns a connected realm by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param connectedRealmId The connected realm ID.\r\n * @returns The connected realm. See {@link ConnectedRealmResponse}.\r\n */\r\nexport function connectedRealm(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n connectedRealmId: number,\r\n): Resource<ConnectedRealmResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/connected-realm/${connectedRealmId}`,\r\n };\r\n}\r\n/**\r\n * Performs a search of connected realms.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param options The search parameters. See {@link ConnectedRealmSearchParameters}.\r\n * @returns The search results. See {@link SearchResponse} & {@link ConnectedRealmSearchResponseItem}.\r\n */\r\nexport function connectedRealmSearch(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n options: ConnectedRealmSearchParameters,\r\n): Resource<SearchResponse<ConnectedRealmSearchResponseItem>, ConnectedRealmSearchParameters> {\r\n return {\r\n namespace,\r\n parameters: {\r\n _page: options._page,\r\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\r\n 'realms.timezone': options['realms.timezone'],\r\n 'status.type': options['status.type'],\r\n },\r\n path: `${base}/search/connected-realm`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { base, mediaBase, searchBase } from '../../../wow/src/base';\r\nimport type {\r\n CreatureDisplayMediaResponse,\r\n CreatureFamilyIndexResponse,\r\n CreatureFamilyMediaResponse,\r\n CreatureFamilyResponse,\r\n CreatureResponse,\r\n CreatureSearchParameters,\r\n CreatureSearchResponseItem,\r\n CreatureTypeIndexResponse,\r\n CreatureTypeResponse,\r\n} from './types';\r\n\r\n/**\r\n * Returns a creature by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param creatureId The creature ID.\r\n * @returns The creature. See {@link CreatureResponse}.\r\n */\r\nexport function creature(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureId: number,\r\n): Resource<CreatureResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/creature/${creatureId}`,\r\n };\r\n}\r\n/**\r\n * Returns media for a creature display by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param creatureDisplayId The creature display ID.\r\n * @returns The creature display media. See {@link CreatureDisplayMediaResponse}.\r\n */\r\nexport function creatureDisplayMedia(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureDisplayId: number,\r\n): Resource<CreatureDisplayMediaResponse> {\r\n return {\r\n namespace,\r\n path: `${mediaBase}/creature-display/${creatureDisplayId}`,\r\n };\r\n}\r\n/**\r\n * Returns a creature family by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param creatureFamilyId The creature family ID.\r\n * @returns The creature family. See {@link CreatureFamilyResponse}.\r\n */\r\nexport function creatureFamily(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureFamilyId: number,\r\n): Resource<CreatureFamilyResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/creature-family/${creatureFamilyId}`,\r\n };\r\n}\r\n/**\r\n * Returns an index of creature families.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The creature family index. See {@link CreatureFamilyIndexResponse}.\r\n */\r\nexport function creatureFamilyIndex(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n): Resource<CreatureFamilyIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/creature-family/index`,\r\n };\r\n}\r\n/**\r\n * Returns media for a creature family by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param creatureFamilyId The creature family ID.\r\n * @returns The creature family media. See {@link CreatureFamilyMediaResponse}.\r\n */\r\nexport function creatureFamilyMedia(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureFamilyId: number,\r\n): Resource<CreatureFamilyMediaResponse> {\r\n return {\r\n namespace,\r\n path: `${mediaBase}/creature-family/${creatureFamilyId}`,\r\n };\r\n}\r\n/**\r\n * Returns a creature type by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param creatureTypeId The creature type ID.\r\n * @returns The creature type. See {@link CreatureTypeResponse}.\r\n */\r\nexport function creatureType(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureTypeId: number,\r\n): Resource<CreatureTypeResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/creature-type/${creatureTypeId}`,\r\n };\r\n}\r\n/**\r\n * Returns an index of creature types.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The creature type index. See {@link CreatureTypeIndexResponse}.\r\n */\r\nexport function creatureTypeIndex(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n): Resource<CreatureTypeIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/creature-type/index`,\r\n };\r\n}\r\n/**\r\n * Performs a search of creatures.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param options The creature search parameters. See {@link CreatureSearchParameters}.\r\n * @returns The creature search results. See {@link SearchResponse} & {@link CreatureSearchResponseItem}.\r\n */\r\nexport function creatureSearch(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n options: CreatureSearchParameters,\r\n): Resource<SearchResponse<CreatureSearchResponseItem>, Omit<CreatureSearchParameters, 'locale' | 'name'>> {\r\n return {\r\n namespace,\r\n parameters: {\r\n _page: options._page,\r\n [`name.${options.locale}`]: options.name,\r\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\r\n },\r\n path: `${searchBase}/creature`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base, mediaBase } from '../../../wow/src/base';\r\nimport type { GuildCrestBorderEmblemResponse, GuildCrestComponentsIndexResponse } from './types';\r\n\r\n/**\r\n * Returns an index of guild crest media.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.\r\n */\r\nexport function guildCrestComponentsIndex(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n): Resource<GuildCrestComponentsIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/guild-crest/index`,\r\n };\r\n}\r\n/**\r\n * Returns media for a guild crest border by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param borderId The guild crest border ID.\r\n * @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.\r\n */\r\nexport function guildCrestBorder(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n borderId: number,\r\n): Resource<GuildCrestBorderEmblemResponse> {\r\n return {\r\n namespace,\r\n path: `${mediaBase}/guild-crest/border/${borderId}`,\r\n };\r\n}\r\n/**\r\n * Returns media for a guild crest emblem by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param emblemId The guild crest emblem ID.\r\n * @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.\r\n */\r\nexport function guildCrestEmblem(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n emblemId: number,\r\n): Resource<GuildCrestBorderEmblemResponse> {\r\n return {\r\n namespace,\r\n path: `${mediaBase}/guild-crest/emblem/${emblemId}`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { base, mediaBase, searchBase } from '../../../wow/src/base';\r\nimport type {\r\n ItemClassIndexResponse,\r\n ItemClassResponse,\r\n ItemMediaResponse,\r\n ItemResponse,\r\n ItemSearchParameters,\r\n ItemSearchResponseItem,\r\n ItemSubClassResponse,\r\n} from './types';\r\n\r\n/**\r\n * Get an item class index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The item class index. See {@link ItemClassIndexResponse}.\r\n */\r\nexport function itemClassIndex(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n): Resource<ItemClassIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/item-class/index`,\r\n };\r\n}\r\n/**\r\n * Get an item class by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param itemClassId The item class ID.\r\n * @returns The item class. See {@link ItemClassResponse}.\r\n */\r\nexport function itemClass(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n itemClassId: number,\r\n): Resource<ItemClassResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/item-class/${itemClassId}`,\r\n };\r\n}\r\n/**\r\n * Get an item subclass by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param itemClassId The item class ID.\r\n * @param itemSubclassId The item subclass ID.\r\n * @returns The item subclass. See {@link ItemSubClassResponse}.\r\n */\r\nexport function itemSubClass(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n itemClassId: number,\r\n itemSubclassId: number,\r\n): Resource<ItemSubClassResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,\r\n };\r\n}\r\n/**\r\n * Get an item by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param itemId The item ID.\r\n * @returns The item. See {@link ItemResponse}.\r\n */\r\nexport function item(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n itemId: number,\r\n): Resource<ItemResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/item/${itemId}`,\r\n };\r\n}\r\n/**\r\n * Get item media by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param itemId The item ID.\r\n * @returns The item media. See {@link ItemMediaResponse}.\r\n */\r\nexport function itemMedia(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n itemId: number,\r\n): Resource<ItemMediaResponse> {\r\n return {\r\n namespace,\r\n path: `${mediaBase}/item/${itemId}`,\r\n };\r\n}\r\n/**\r\n * Search for items.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param options The search parameters. See {@link ItemSearchParameters}.\r\n * @returns The search results. See {@link SearchResponse}.\r\n */\r\nexport function itemSearch(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n options: ItemSearchParameters,\r\n): Resource<SearchResponse<ItemSearchResponseItem>, Omit<ItemSearchParameters, 'locale' | 'name'>> {\r\n return {\r\n namespace,\r\n parameters: {\r\n _page: options._page,\r\n [`name.${options.locale}`]: options.name,\r\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\r\n },\r\n path: `${searchBase}/item`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { searchBase } from '../../../wow/src/base';\r\nimport type { MediaSearchParameters, MediaSearchResponseItem } from './types';\r\n\r\n/**\r\n * Search for media.\r\n * @param options The search parameters. See {@link MediaSearchParameters}.\r\n * @returns The search results. See {@link SearchResponse}.\r\n */\r\nexport function mediaSearch(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n options: MediaSearchParameters,\r\n): Resource<SearchResponse<MediaSearchResponseItem>, MediaSearchParameters> {\r\n return {\r\n namespace,\r\n parameters: {\r\n _page: options._page,\r\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\r\n tags: options.tags,\r\n },\r\n path: `${searchBase}/media`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base, mediaBase } from '../../../wow/src/base';\r\nimport type { PlayableClassIndexResponse, PlayableClassMediaResponse, PlayableClassResponse } from './types';\r\n\r\n/**\r\n * Get a playable class by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param playableClassId The playable class ID.\r\n * @returns The playable class. See {@link PlayableClassResponse}.\r\n */\r\nexport function playableClass(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n playableClassId: number,\r\n): Resource<PlayableClassResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/playable-class/${playableClassId}`,\r\n };\r\n}\r\n/**\r\n * Get a playable class index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The playable class index. See {@link PlayableClassIndexResponse}.\r\n */\r\nexport function playableClassIndex(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n): Resource<PlayableClassIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/playable-class/index`,\r\n };\r\n}\r\n/**\r\n * Get playable class media by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param playableClassId The playable class ID.\r\n * @returns The playable class media. See {@link PlayableClassMediaResponse}.\r\n */\r\nexport function playableClassMedia(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n playableClassId: number,\r\n): Resource<PlayableClassMediaResponse> {\r\n return {\r\n namespace,\r\n path: `${mediaBase}/playable-class/${playableClassId}`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { PlayableRaceIndexResponse, PlayableRaceResponse } from './types';\r\n\r\n/**\r\n * Get a playable race by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param playableRaceId The playable race ID.\r\n * @returns The playable race. See {@link PlayableRaceResponse}.\r\n */\r\nexport function playableRace(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n playableRaceId: number,\r\n): Resource<PlayableRaceResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/playable-race/${playableRaceId}`,\r\n };\r\n}\r\n/**\r\n * Get a playable race index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The playable race index. See {@link PlayableRaceIndexResponse}.\r\n */\r\nexport function playableRaceIndex(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n): Resource<PlayableRaceIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/playable-race/index`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { PowerTypeIndexResponse, PowerTypeResponse } from './types';\r\n\r\n/**\r\n * Get a power type by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param powerTypeId The power type ID.\r\n * @returns The power type. See {@link PowerTypeResponse}.\r\n */\r\nexport function powerType(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n powerTypeId: number,\r\n): Resource<PowerTypeResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/power-type/${powerTypeId}`,\r\n };\r\n}\r\n/**\r\n * Get a power type index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The power type index. See {@link PowerTypeIndexResponse}.\r\n */\r\nexport function powerTypeIndex(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n): Resource<PowerTypeIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/power-type/index`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { PvpSeasonIndexResponse, PvpSeasonResponse } from './types';\r\n\r\n/**\r\n * Get a PvP season index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.\r\n */\r\nexport function pvpSeasonIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n): Resource<PvpSeasonIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-season/index`,\r\n };\r\n}\r\n/**\r\n * Get a PvP season by ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n * @returns The PvP season. See {@link PvpSeasonResponse}.\r\n */\r\nexport function pvpSeason(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpSeasonId: number,\r\n): Resource<PvpSeasonResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-season/${pvpSeasonId}`,\r\n };\r\n}\r\n/**\r\n * Returns an index of PvP Regions.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n */\r\nexport function pvpRegionIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n): Resource<unknown> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/index`,\r\n };\r\n}\r\n/**\r\n * Returns an index of PvP Seasons in a PvP region.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.\r\n */\r\nexport function pvpRegionalSeasonIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n): Resource<PvpSeasonIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/index`,\r\n };\r\n}\r\n/**\r\n * Returns a PvP season by region ID and season ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n */\r\nexport function pvpRegionalSeason(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n pvpSeasonId: number,\r\n): Resource<unknown> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`,\r\n };\r\n}\r\n/**\r\n * Returns an index of PvP leaderboards for a PvP season in a given PvP region.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n */\r\nexport function pvpLeaderboardIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n pvpSeasonId: number,\r\n): Resource<unknown> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,\r\n };\r\n}\r\n/**\r\n * Get a PvP leaderboard by PvP season ID and bracket.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n * @param pvpBracket The PvP bracket.\r\n */\r\nexport function pvpLeaderboard(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n pvpSeasonId: number,\r\n pvpBracket: string,\r\n): Resource<unknown> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`,\r\n };\r\n}\r\n/**\r\n * Returns an index of PvP rewards for a PvP season in a given PvP region.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n */\r\nexport function pvpRewardsIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n pvpSeasonId: number,\r\n): Resource<unknown> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { base, searchBase } from '../../../wow/src/base';\r\nimport type { RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponseItem } from './types';\r\n\r\n/**\r\n * Get a realm by slug.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param realmSlug The realm slug.\r\n * @returns The realm. See {@link RealmResponse}.\r\n */\r\nexport function realm(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n realmSlug: string,\r\n): Resource<RealmResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/realm/${realmSlug}`,\r\n };\r\n}\r\n/**\r\n * Get a realm index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The realm index. See {@link RealmIndexResponse}.\r\n */\r\nexport function realmIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n): Resource<RealmIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/realm/index`,\r\n };\r\n}\r\n/**\r\n * Search for realms.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param options The search parameters. See {@link RealmSearchParameters}.\r\n * @returns The search results. See {@link SearchResponse}.\r\n */\r\nexport function realmSearch(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n options: RealmSearchParameters,\r\n): Resource<SearchResponse<RealmSearchResponseItem>, RealmSearchParameters> {\r\n return {\r\n namespace,\r\n parameters: {\r\n _page: options._page,\r\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\r\n timezone: options.timezone,\r\n },\r\n path: `${searchBase}/realm`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { RegionIndexResponse, RegionResponse } from './types';\r\n\r\n/**\r\n * Get a region by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param regionId The region ID.\r\n * @returns The region. See {@link RegionResponse}.\r\n */\r\nexport function region(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n regionId: number,\r\n): Resource<RegionResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/region/${regionId}`,\r\n };\r\n}\r\n/**\r\n * Get a region index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The region index. See {@link RegionIndexResponse}.\r\n */\r\nexport function regionIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n): Resource<RegionIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/region/index`,\r\n };\r\n}\r\n","import { auctionHouseIndex, auctions } from './auction-house/auction-house';\r\nimport { connectedRealm, connectedRealmIndex, connectedRealmSearch } from './connected-realm/connected-realm';\r\nimport {\r\n creature,\r\n creatureDisplayMedia,\r\n creatureFamily,\r\n creatureFamilyIndex,\r\n creatureFamilyMedia,\r\n creatureSearch,\r\n creatureType,\r\n creatureTypeIndex,\r\n} from './creature/creature';\r\nimport { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem } from './guild-crest/guild-crest';\r\nimport { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubClass } from './item/item';\r\nimport { mediaSearch } from './media-search/media-search';\r\nimport { playableClass, playableClassIndex, playableClassMedia } from './playable-class/playable-class';\r\nimport { playableRace, playableRaceIndex } from './playable-race/playable-race';\r\nimport { powerType, powerTypeIndex } from './power-type/power-type';\r\nimport {\r\n pvpLeaderboard,\r\n pvpLeaderboardIndex,\r\n pvpRegionalSeason,\r\n pvpRegionalSeasonIndex,\r\n pvpRegionIndex,\r\n pvpRewardsIndex,\r\n pvpSeason,\r\n pvpSeasonIndex,\r\n} from './pvp-season/pvp-season';\r\nimport { realm, realmIndex, realmSearch } from './realm/realm';\r\nimport { region, regionIndex } from './region/region';\r\n\r\nconst classicWow = {\r\n //Auction House\r\n auctionHouseIndex,\r\n auctions,\r\n //Connected Realm\r\n connectedRealm,\r\n connectedRealmIndex,\r\n connectedRealmSearch,\r\n //Creature\r\n creature,\r\n creatureDisplayMedia,\r\n creatureFamily,\r\n creatureFamilyIndex,\r\n creatureFamilyMedia,\r\n creatureSearch,\r\n creatureType,\r\n creatureTypeIndex,\r\n //Guild Crest\r\n guildCrestBorder,\r\n guildCrestComponentsIndex,\r\n guildCrestEmblem,\r\n //Item\r\n item,\r\n itemClass,\r\n itemClassIndex,\r\n itemMedia,\r\n itemSearch,\r\n itemSubClass,\r\n //Media Search\r\n mediaSearch,\r\n //Playable Class\r\n playableClass,\r\n playableClassIndex,\r\n playableClassMedia,\r\n //Playable Race\r\n playableRace,\r\n playableRaceIndex,\r\n //Power Type\r\n powerType,\r\n powerTypeIndex,\r\n //Pvp Season\r\n pvpLeaderboard,\r\n pvpLeaderboardIndex,\r\n pvpRegionalSeason,\r\n pvpRegionalSeasonIndex,\r\n pvpRegionIndex,\r\n pvpRewardsIndex,\r\n pvpSeason,\r\n pvpSeasonIndex,\r\n //Realm\r\n realm,\r\n realmIndex,\r\n realmSearch,\r\n //Region\r\n region,\r\n regionIndex,\r\n};\r\nexport { classicWow as default, classicWow };\r\n\r\n//Auction House\r\nexport * from './auction-house/auction-house';\r\nexport type * from './auction-house/types';\r\n//Connected Realm\r\nexport * from './connected-realm/connected-realm';\r\nexport type * from './connected-realm/types';\r\n//Creature\r\nexport * from './creature/creature';\r\nexport type * from './creature/types';\r\n//Guild Crest\r\nexport * from './guild-crest/guild-crest';\r\nexport type * from './guild-crest/types';\r\n//Item\r\nexport * from './item/item';\r\nexport type * from './item/types';\r\n//Media Search\r\nexport * from './media-search/media-search';\r\nexport type * from './media-search/types';\r\n//Playable Class\r\nexport * from './playable-class/playable-class';\r\nexport type * from './playable-class/types';\r\n//Playable Race\r\nexport * from './playable-race/playable-race';\r\nexport type * from './playable-race/types';\r\n//Power Type\r\nexport * from './power-type/power-type';\r\nexport type * from './power-type/types';\r\n//Pvp Season\r\nexport * from './pvp-season/pvp-season';\r\nexport type * from './pvp-season/types';\r\n//Realm\r\nexport * from './realm/realm';\r\nexport type * from './realm/types';\r\n//Region\r\nexport * from './region/region';\r\nexport type * from './region/types';\r\n"]}
|