@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
package/dist/index.js CHANGED
@@ -1,756 +1,23 @@
1
- import { wowBasePath, wowCharacterBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/core";
2
- //#region src/auction-house/auction-house.ts
3
- /**
4
- * Returns an index of auction houses for a connected realm.
5
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
6
- * @param connectedRealmId The ID of the connected realm.
7
- * @returns The auction house index. See {@link AuctionHouseIndexResponse}.
8
- */
9
- function auctionHouseIndex(namespace, connectedRealmId) {
10
- return {
11
- namespace,
12
- path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/index`
13
- };
14
- }
15
- /**
16
- * Returns all active auctions for a specific auction house on a connected realm.
17
- *
18
- * Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
19
- *
20
- * 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.
21
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
22
- * @param connectedRealmId The ID of the connected realm.
23
- * @param auctionHouseId The ID of the auction house.
24
- * @returns The auction house data. See {@link AuctionsResponse}.
25
- */
26
- function auctions(namespace, connectedRealmId, auctionHouseId) {
27
- return {
28
- namespace,
29
- path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`
30
- };
31
- }
32
- //#endregion
33
- //#region src/character-achievements/character-achievements.ts
34
- /**
35
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}. Note: This API is not supported for classic era realms.
36
- * @param realmSlug The slug of the realm.
37
- * @param characterName The lowercase name of the character.
38
- * @returns a summary of the achievements a character has completed.
39
- */
40
- function characterAchievementsSummary(namespace, realmSlug, characterName) {
41
- return {
42
- namespace,
43
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`
44
- };
45
- }
46
- /**
47
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}. Note: This API is not supported for classic era realms.
48
- * @param realmSlug The slug of the realm.
49
- * @param characterName The lowercase name of the character.
50
- * @returns a character's statistics as they pertain to achievements.
51
- */
52
- function characterAchievementStatistics(namespace, realmSlug, characterName) {
53
- return {
54
- namespace,
55
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
56
- };
57
- }
58
- //#endregion
59
- //#region src/character-equipment/character-equipment.ts
60
- /**
61
- * Returns a summary of the items equipped by a character.
62
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
63
- * @param realmSlug The realm slug.
64
- * @param characterName The character name.
65
- * @returns The character equipment summary.
66
- */
67
- function characterEquipmentSummary(namespace, realmSlug, characterName) {
68
- return {
69
- namespace,
70
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/equipment`
71
- };
72
- }
73
- //#endregion
74
- //#region src/character-hunter-pets/character-hunter-pets.ts
75
- /**
76
- * If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
77
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
78
- * @param realmSlug The slug of the realm.
79
- * @param characterName The lowercase name of the character.
80
- * @returns a summary of the character's hunter pets.
81
- */
82
- function characterHunterPetsSummary(namespace, realmSlug, characterName) {
83
- return {
84
- namespace,
85
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/hunter-pets`
86
- };
87
- }
88
- //#endregion
89
- //#region src/character-media/character-media.ts
90
- /**
91
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
92
- * @param realmSlug The slug of the realm.
93
- * @param characterName The lowercase name of the character.
94
- * @returns a summary of the media assets available for a character (such as an avatar render).
95
- */
96
- function characterMediaSummary(namespace, realmSlug, characterName) {
97
- return {
98
- namespace,
99
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/character-media`
100
- };
101
- }
102
- //#endregion
103
- //#region src/character-profile/character-profile.ts
104
- /**
105
- * Returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur:
106
- * - an HTTP 404 Not Found error is returned
107
- * - the is_valid value is false
108
- * - the returned character ID doesn't match the previously recorded value for the character
109
- *
110
- * The following example illustrates how to use this endpoint:
111
- *
112
- * 1. A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
113
- * 2. After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
114
- * 3. If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
115
- * 4. If the character is valid and the character IDs match, the client retains the data for another 30 days.
116
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
117
- * @param realmSlug The slug of the realm.
118
- * @param characterName The lowercase name of the character.
119
- * @returns the status of the character profile for a character.
120
- */
121
- function characterProfileStatus(namespace, realmSlug, characterName) {
122
- return {
123
- namespace,
124
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/status`
125
- };
126
- }
127
- /**
128
- * Returns a summary of the character profile for a character.
129
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
130
- * @param realmSlug The slug of the realm.
131
- * @param characterName The lowercase name of the character.
132
- * @returns a summary of the character profile for a character.
133
- */
134
- function characterProfileSummary(namespace, realmSlug, characterName) {
135
- return {
136
- namespace,
137
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}`
138
- };
139
- }
140
- //#endregion
141
- //#region src/character-specialization/character-specialization.ts
142
- /**
143
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
144
- * @param realmSlug The slug of the realm.
145
- * @param characterName The lowercase name of the character.
146
- * @returns a summary of a character's specializations.
147
- */
148
- function characterSpecializationsSummary(namespace, realmSlug, characterName) {
149
- return {
150
- namespace,
151
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/specializations`
152
- };
153
- }
154
- //#endregion
155
- //#region src/character-statistics/character-statistics.ts
156
- /**
157
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
158
- * @param realmSlug The slug of the realm.
159
- * @param characterName The lowercase name of the character.
160
- * @returns a statistics summary for a character.
161
- */
162
- function characterStatisticsSummary(namespace, realmSlug, characterName) {
163
- return {
164
- namespace,
165
- path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/statistics`
166
- };
167
- }
168
- //#endregion
169
- //#region src/connected-realm/connected-realm.ts
170
- /**
171
- * Returns a connected realm by ID.
172
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
173
- * @param connectedRealmId The connected realm ID.
174
- * @returns The connected realm. See {@link ConnectedRealmResponse}.
175
- */
176
- function connectedRealm(namespace, connectedRealmId) {
177
- return {
178
- namespace,
179
- path: `${wowBasePath}/connected-realm/${connectedRealmId}`
180
- };
181
- }
182
- /**
183
- * Returns an index of connected realms.
184
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
185
- * @returns The connected realm index. See {@link ConnectedRealmIndexResponse}.
186
- */
187
- function connectedRealmIndex(namespace) {
188
- return {
189
- namespace,
190
- path: `${wowBasePath}/connected-realm/index`
191
- };
192
- }
193
- /**
194
- * Performs a search of connected realms.
195
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
196
- * @param options The search parameters. See {@link ConnectedRealmSearchParameters}.
197
- * @returns The search results. See {@link ConnectedRealmSearchResponse}.
198
- */
199
- function connectedRealmSearch(namespace, options) {
200
- return {
201
- namespace,
202
- parameters: {
203
- _page: options._page,
204
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
205
- "realms.timezone": options["realms.timezone"],
206
- "status.type": options["status.type"]
207
- },
208
- path: `${wowBasePath}/search/connected-realm`
209
- };
210
- }
211
- //#endregion
212
- //#region src/creature/creature.ts
213
- /**
214
- * Returns a creature by ID.
215
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
216
- * @param creatureId The creature ID.
217
- * @returns The creature. See {@link CreatureResponse}.
218
- */
219
- function creature(namespace, creatureId) {
220
- return {
221
- namespace,
222
- path: `${wowBasePath}/creature/${creatureId}`
223
- };
224
- }
225
- /**
226
- * Returns media for a creature display by ID.
227
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
228
- * @param creatureDisplayId The creature display ID.
229
- * @returns The creature display media. See {@link CreatureDisplayMediaResponse}.
230
- */
231
- function creatureDisplayMedia(namespace, creatureDisplayId) {
232
- return {
233
- namespace,
234
- path: `${wowMediaBasePath}/creature-display/${creatureDisplayId}`
235
- };
236
- }
237
- /**
238
- * Returns a creature family by ID.
239
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
240
- * @param creatureFamilyId The creature family ID.
241
- * @returns The creature family. See {@link CreatureFamilyResponse}.
242
- */
243
- function creatureFamily(namespace, creatureFamilyId) {
244
- return {
245
- namespace,
246
- path: `${wowBasePath}/creature-family/${creatureFamilyId}`
247
- };
248
- }
249
- /**
250
- * Returns an index of creature families.
251
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
252
- * @returns The creature family index. See {@link CreatureFamilyIndexResponse}.
253
- */
254
- function creatureFamilyIndex(namespace) {
255
- return {
256
- namespace,
257
- path: `${wowBasePath}/creature-family/index`
258
- };
259
- }
260
- /**
261
- * Returns media for a creature family by ID.
262
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
263
- * @param creatureFamilyId The creature family ID.
264
- * @returns The creature family media. See {@link CreatureFamilyMediaResponse}.
265
- */
266
- function creatureFamilyMedia(namespace, creatureFamilyId) {
267
- return {
268
- namespace,
269
- path: `${wowMediaBasePath}/creature-family/${creatureFamilyId}`
270
- };
271
- }
272
- /**
273
- * Performs a search of creatures.
274
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
275
- * @param options The creature search parameters. See {@link CreatureSearchParameters}.
276
- * @returns The creature search results. See {@link CreatureSearchResponse}.
277
- */
278
- function creatureSearch(namespace, options) {
279
- return {
280
- namespace,
281
- parameters: {
282
- _page: options._page,
283
- [`name.${options.locale}`]: options.name,
284
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
285
- },
286
- path: `${wowSearchBasePath}/creature`
287
- };
288
- }
289
- /**
290
- * Returns a creature type by ID.
291
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
292
- * @param creatureTypeId The creature type ID.
293
- * @returns The creature type. See {@link CreatureTypeResponse}.
294
- */
295
- function creatureType(namespace, creatureTypeId) {
296
- return {
297
- namespace,
298
- path: `${wowBasePath}/creature-type/${creatureTypeId}`
299
- };
300
- }
301
- /**
302
- * Returns an index of creature types.
303
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
304
- * @returns The creature type index. See {@link CreatureTypeIndexResponse}.
305
- */
306
- function creatureTypeIndex(namespace) {
307
- return {
308
- namespace,
309
- path: `${wowBasePath}/creature-type/index`
310
- };
311
- }
312
- //#endregion
313
- //#region src/guild-crest/guild-crest.ts
314
- /**
315
- * Returns media for a guild crest border by ID.
316
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
317
- * @param borderId The guild crest border ID.
318
- * @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.
319
- */
320
- function guildCrestBorder(namespace, borderId) {
321
- return {
322
- namespace,
323
- path: `${wowMediaBasePath}/guild-crest/border/${borderId}`
324
- };
325
- }
326
- /**
327
- * Returns an index of guild crest media.
328
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
329
- * @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.
330
- */
331
- function guildCrestComponentsIndex(namespace) {
332
- return {
333
- namespace,
334
- path: `${wowBasePath}/guild-crest/index`
335
- };
336
- }
337
- /**
338
- * Returns media for a guild crest emblem by ID.
339
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
340
- * @param emblemId The guild crest emblem ID.
341
- * @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.
342
- */
343
- function guildCrestEmblem(namespace, emblemId) {
344
- return {
345
- namespace,
346
- path: `${wowMediaBasePath}/guild-crest/emblem/${emblemId}`
347
- };
348
- }
349
- //#endregion
350
- //#region src/guild/guild.ts
351
- const basePath = "/data/wow/guild";
352
- /**
353
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
354
- * @param realmSlug The slug of the realm.
355
- * @param nameSlug The lowercase name of the guild.
356
- * @returns a single guild by its name and realm.
357
- */
358
- function guild(namespace, realmSlug, nameSlug) {
359
- return {
360
- namespace,
361
- path: `${basePath}/${realmSlug}/${nameSlug}`
362
- };
363
- }
364
- /**
365
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
366
- * @param realmSlug The slug of the realm.
367
- * @param nameSlug The lowercase name of the guild.
368
- * @returns a single guild's achievements by name and realm.
369
- */
370
- function guildAchievements(namespace, realmSlug, nameSlug) {
371
- return {
372
- namespace,
373
- path: `${basePath}/${realmSlug}/${nameSlug}/achievements`
374
- };
375
- }
376
- /**
377
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
378
- * @param realmSlug The slug of the realm.
379
- * @param nameSlug The lowercase name of the guild.
380
- * @returns a single guild's activity by name and realm.
381
- */
382
- function guildActivity(namespace, realmSlug, nameSlug) {
383
- return {
384
- namespace,
385
- path: `${basePath}/${realmSlug}/${nameSlug}/activity`
386
- };
387
- }
388
- /**
389
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
390
- * @param realmSlug The slug of the realm.
391
- * @param nameSlug The lowercase name of the guild.
392
- * @returns a single guild's roster by its name and realm.
393
- */
394
- function guildRoster(namespace, realmSlug, nameSlug) {
395
- return {
396
- namespace,
397
- path: `${basePath}/${realmSlug}/${nameSlug}/roster`
398
- };
399
- }
400
- //#endregion
401
- //#region src/item/item.ts
402
- /**
403
- * Get an item by ID.
404
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
405
- * @param itemId The item ID.
406
- * @returns The item. See {@link ItemResponse}.
407
- */
408
- function item(namespace, itemId) {
409
- return {
410
- namespace,
411
- path: `${wowBasePath}/item/${itemId}`
412
- };
413
- }
414
- /**
415
- * Get an item class by ID.
416
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
417
- * @param itemClassId The item class ID.
418
- * @returns The item class. See {@link ItemClassResponse}.
419
- */
420
- function itemClass(namespace, itemClassId) {
421
- return {
422
- namespace,
423
- path: `${wowBasePath}/item-class/${itemClassId}`
424
- };
425
- }
426
- /**
427
- * Get an item class index.
428
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
429
- * @returns The item class index. See {@link ItemClassIndexResponse}.
430
- */
431
- function itemClassIndex(namespace) {
432
- return {
433
- namespace,
434
- path: `${wowBasePath}/item-class/index`
435
- };
436
- }
437
- /**
438
- * Get item media by ID.
439
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
440
- * @param itemId The item ID.
441
- * @returns The item media. See {@link ItemMediaResponse}.
442
- */
443
- function itemMedia(namespace, itemId) {
444
- return {
445
- namespace,
446
- path: `${wowMediaBasePath}/item/${itemId}`
447
- };
448
- }
449
- /**
450
- * Search for items.
451
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
452
- * @param options The search parameters. See {@link ItemSearchParameters}.
453
- * @returns The search results. See {@link ItemSearchResponse}.
454
- */
455
- function itemSearch(namespace, options) {
456
- return {
457
- namespace,
458
- parameters: {
459
- _page: options._page,
460
- [`name.${options.locale}`]: options.name,
461
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
462
- },
463
- path: `${wowSearchBasePath}/item`
464
- };
465
- }
466
- /**
467
- * Get an item subclass by ID.
468
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
469
- * @param itemClassId The item class ID.
470
- * @param itemSubclassId The item subclass ID.
471
- * @returns The item subclass. See {@link ItemSubClassResponse}.
472
- */
473
- function itemSubClass(namespace, itemClassId, itemSubclassId) {
474
- return {
475
- namespace,
476
- path: `${wowBasePath}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`
477
- };
478
- }
479
- //#endregion
480
- //#region src/media-search/media-search.ts
481
- /**
482
- * Search for media.
483
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
484
- * @param options The search parameters. See {@link MediaSearchParameters}.
485
- * @returns The search results. See {@link MediaSearchResponse}.
486
- */
487
- function mediaSearch(namespace, options) {
488
- return {
489
- namespace,
490
- parameters: {
491
- _page: options._page,
492
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
493
- tags: options.tags
494
- },
495
- path: `${wowSearchBasePath}/media`
496
- };
497
- }
498
- //#endregion
499
- //#region src/playable-class/playable-class.ts
500
- /**
501
- * Get a playable class by ID.
502
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
503
- * @param playableClassId The playable class ID.
504
- * @returns The playable class. See {@link PlayableClassResponse}.
505
- */
506
- function playableClass(namespace, playableClassId) {
507
- return {
508
- namespace,
509
- path: `${wowBasePath}/playable-class/${playableClassId}`
510
- };
511
- }
512
- /**
513
- * Get a playable class index.
514
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
515
- * @returns The playable class index. See {@link PlayableClassIndexResponse}.
516
- */
517
- function playableClassIndex(namespace) {
518
- return {
519
- namespace,
520
- path: `${wowBasePath}/playable-class/index`
521
- };
522
- }
523
- /**
524
- * Get playable class media by ID.
525
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
526
- * @param playableClassId The playable class ID.
527
- * @returns The playable class media. See {@link PlayableClassMediaResponse}.
528
- */
529
- function playableClassMedia(namespace, playableClassId) {
530
- return {
531
- namespace,
532
- path: `${wowMediaBasePath}/playable-class/${playableClassId}`
533
- };
534
- }
535
- //#endregion
536
- //#region src/playable-race/playable-race.ts
537
- /**
538
- * Get a playable race by ID.
539
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
540
- * @param playableRaceId The playable race ID.
541
- * @returns The playable race. See {@link PlayableRaceResponse}.
542
- */
543
- function playableRace(namespace, playableRaceId) {
544
- return {
545
- namespace,
546
- path: `${wowBasePath}/playable-race/${playableRaceId}`
547
- };
548
- }
549
- /**
550
- * Get a playable race index.
551
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
552
- * @returns The playable race index. See {@link PlayableRaceIndexResponse}.
553
- */
554
- function playableRaceIndex(namespace) {
555
- return {
556
- namespace,
557
- path: `${wowBasePath}/playable-race/index`
558
- };
559
- }
560
- //#endregion
561
- //#region src/power-type/power-type.ts
562
- /**
563
- * Get a power type by ID.
564
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
565
- * @param powerTypeId The power type ID.
566
- * @returns The power type. See {@link PowerTypeResponse}.
567
- */
568
- function powerType(namespace, powerTypeId) {
569
- return {
570
- namespace,
571
- path: `${wowBasePath}/power-type/${powerTypeId}`
572
- };
573
- }
574
- /**
575
- * Get a power type index.
576
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
577
- * @returns The power type index. See {@link PowerTypeIndexResponse}.
578
- */
579
- function powerTypeIndex(namespace) {
580
- return {
581
- namespace,
582
- path: `${wowBasePath}/power-type/index`
583
- };
584
- }
585
- //#endregion
586
- //#region src/pvp-season/pvp-season.ts
587
- /**
588
- * Get a PvP leaderboard by PvP season ID and bracket.
589
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
590
- * @param pvpRegionId The PvP region ID.
591
- * @param pvpSeasonId The PvP season ID.
592
- * @param pvpBracket The PvP bracket.
593
- * @returns The PvP leaderboard.
594
- */
595
- function pvpLeaderboard(namespace, pvpRegionId, pvpSeasonId, pvpBracket) {
596
- return {
597
- namespace,
598
- path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`
599
- };
600
- }
601
- /**
602
- * Returns an index of PvP leaderboards for a PvP season in a given PvP region.
603
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
604
- * @param pvpRegionId The PvP region ID.
605
- * @param pvpSeasonId The PvP season ID.
606
- * @returns The PvP leaderboard index.
607
- */
608
- function pvpLeaderboardIndex(namespace, pvpRegionId, pvpSeasonId) {
609
- return {
610
- namespace,
611
- path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`
612
- };
613
- }
614
- /**
615
- * Returns a PvP season by region ID and season ID.
616
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
617
- * @param pvpRegionId The PvP region ID.
618
- * @param pvpSeasonId The PvP season ID.
619
- * @returns The PvP season.
620
- */
621
- function pvpRegionalSeason(namespace, pvpRegionId, pvpSeasonId) {
622
- return {
623
- namespace,
624
- path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`
625
- };
626
- }
627
- /**
628
- * Returns an index of PvP Seasons in a PvP region.
629
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
630
- * @param pvpRegionId The PvP region ID.
631
- * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
632
- */
633
- function pvpRegionalSeasonIndex(namespace, pvpRegionId) {
634
- return {
635
- namespace,
636
- path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/index`
637
- };
638
- }
639
- /**
640
- * Returns an index of PvP Regions.
641
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
642
- * @returns The PvP region index.
643
- */
644
- function pvpRegionIndex(namespace) {
645
- return {
646
- namespace,
647
- path: `${wowBasePath}/pvp-region/index`
648
- };
649
- }
650
- /**
651
- * Returns an index of PvP rewards for a PvP season in a given PvP region.
652
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
653
- * @param pvpRegionId The PvP region ID.
654
- * @param pvpSeasonId The PvP season ID.
655
- * @returns The PvP reward index.
656
- */
657
- function pvpRewardsIndex(namespace, pvpRegionId, pvpSeasonId) {
658
- return {
659
- namespace,
660
- path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`
661
- };
662
- }
663
- /**
664
- * Get a PvP season by ID.
665
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
666
- * @param pvpSeasonId The PvP season ID.
667
- * @returns The PvP season. See {@link PvpSeasonResponse}.
668
- */
669
- function pvpSeason(namespace, pvpSeasonId) {
670
- return {
671
- namespace,
672
- path: `${wowBasePath}/pvp-season/${pvpSeasonId}`
673
- };
674
- }
675
- /**
676
- * Get a PvP season index.
677
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
678
- * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
679
- */
680
- function pvpSeasonIndex(namespace) {
681
- return {
682
- namespace,
683
- path: `${wowBasePath}/pvp-season/index`
684
- };
685
- }
686
- //#endregion
687
- //#region src/realm/realm.ts
688
- /**
689
- * Get a realm by slug.
690
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
691
- * @param realmSlug The realm slug.
692
- * @returns The realm. See {@link RealmResponse}.
693
- */
694
- function realm(namespace, realmSlug) {
695
- return {
696
- namespace,
697
- path: `${wowBasePath}/realm/${realmSlug}`
698
- };
699
- }
700
- /**
701
- * Get a realm index.
702
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
703
- * @returns The realm index. See {@link RealmIndexResponse}.
704
- */
705
- function realmIndex(namespace) {
706
- return {
707
- namespace,
708
- path: `${wowBasePath}/realm/index`
709
- };
710
- }
711
- /**
712
- * Search for realms.
713
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
714
- * @param options The search parameters. See {@link RealmSearchParameters}.
715
- * @returns The search results. See {@link RealmSearchResponse}.
716
- */
717
- function realmSearch(namespace, options) {
718
- return {
719
- namespace,
720
- parameters: {
721
- _page: options._page,
722
- orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
723
- timezone: options.timezone
724
- },
725
- path: `${wowSearchBasePath}/realm`
726
- };
727
- }
728
- //#endregion
729
- //#region src/region/region.ts
730
- /**
731
- * Get a region by ID.
732
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
733
- * @param regionId The region ID.
734
- * @returns The region. See {@link RegionResponse}.
735
- */
736
- function region(namespace, regionId) {
737
- return {
738
- namespace,
739
- path: `${wowBasePath}/region/${regionId}`
740
- };
741
- }
742
- /**
743
- * Get a region index.
744
- * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
745
- * @returns The region index. See {@link RegionIndexResponse}.
746
- */
747
- function regionIndex(namespace) {
748
- return {
749
- namespace,
750
- path: `${wowBasePath}/region/index`
751
- };
752
- }
753
- //#endregion
1
+ import { auctionHouseIndex, auctions } from "./auction-house/index.js";
2
+ import { characterAchievementStatistics, characterAchievementsSummary } from "./character-achievements/index.js";
3
+ import { characterEquipmentSummary } from "./character-equipment/index.js";
4
+ import { characterHunterPetsSummary } from "./character-hunter-pets/index.js";
5
+ import { characterMediaSummary } from "./character-media/index.js";
6
+ import { characterProfileStatus, characterProfileSummary } from "./character-profile/index.js";
7
+ import { characterSpecializationsSummary } from "./character-specialization/index.js";
8
+ import { characterStatisticsSummary } from "./character-statistics/index.js";
9
+ import { connectedRealm, connectedRealmIndex, connectedRealmSearch } from "./connected-realm/index.js";
10
+ import { creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex } from "./creature/index.js";
11
+ import { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem } from "./guild-crest/index.js";
12
+ import { guild, guildAchievements, guildActivity, guildRoster } from "./guild/index.js";
13
+ import { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubClass } from "./item/index.js";
14
+ import { mediaSearch } from "./media-search/index.js";
15
+ import { playableClass, playableClassIndex, playableClassMedia } from "./playable-class/index.js";
16
+ import { playableRace, playableRaceIndex } from "./playable-race/index.js";
17
+ import { powerType, powerTypeIndex } from "./power-type/index.js";
18
+ import { pvpLeaderboard, pvpLeaderboardIndex, pvpRegionIndex, pvpRegionalSeason, pvpRegionalSeasonIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex } from "./pvp-season/index.js";
19
+ import { realm, realmIndex, realmSearch } from "./realm/index.js";
20
+ import { region, regionIndex } from "./region/index.js";
754
21
  //#region src/index.ts
755
22
  const classicWow = {
756
23
  auctionHouseIndex,