@blizzard-api/classic-wow 2.0.2 → 2.1.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/README.md CHANGED
@@ -82,6 +82,6 @@ const client = await createBlizzardApiClient({
82
82
  //Response will automatically be typed with the appropriate values
83
83
  const response = await client.sendRequest(classicWow.commodities());
84
84
 
85
- console.log(response.data);
86
- ^ typeof AuctionHouseCommoditiesResponse
85
+ console.log(response);
86
+ ^ typeof AuctionHouseCommoditiesResponse
87
87
  ```
package/dist/index.d.ts CHANGED
@@ -56,6 +56,20 @@ interface ResponseBase {
56
56
  self: Href;
57
57
  };
58
58
  }
59
+ /**
60
+ * The playable genders in World of Warcraft.
61
+ */
62
+ declare const Genders: {
63
+ readonly FEMALE: "FEMALE";
64
+ readonly MALE: "MALE";
65
+ };
66
+ /**
67
+ * The gender associated with a character or entity in World of Warcraft.
68
+ */
69
+ interface Gender {
70
+ name: Capitalize<Lowercase<keyof typeof Genders>>;
71
+ type: keyof typeof Genders;
72
+ }
59
73
  /**
60
74
  * The playable factions in World of Warcraft.
61
75
  */
@@ -63,6 +77,12 @@ declare const Factions: {
63
77
  readonly ALLIANCE: "ALLIANCE";
64
78
  readonly HORDE: "HORDE";
65
79
  };
80
+ /**
81
+ * The standard structure to represent a World of Warcraft Character.
82
+ */
83
+ interface Character extends NameIdKey {
84
+ realm: Realm$1;
85
+ }
66
86
  /**
67
87
  * The faction associated with a character or entity in World of Warcraft.
68
88
  */
@@ -119,6 +139,431 @@ declare function auctionHouseIndex(namespace: Extract<BlizzardNamespaces, 'dynam
119
139
  */
120
140
  declare function auctions(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, connectedRealmId: number, auctionHouseId: number): Resource<AuctionsResponse>;
121
141
 
142
+ interface CharacterAchievementsSummaryResponse$1 extends ResponseBase {
143
+ achievements: Array<Achievement$1>;
144
+ category_progress: Array<CategoryProgress$1>;
145
+ character: Character;
146
+ recent_events: Array<RecentEvent$1>;
147
+ statistics: Href;
148
+ total_points: number;
149
+ total_quantity: number;
150
+ }
151
+ interface CharacterAchievementStatisticsResponse extends ResponseBase {
152
+ categories: Array<Category>;
153
+ character: Character;
154
+ }
155
+ interface Achievement$1 {
156
+ achievement: NameIdKey;
157
+ completed_timestamp?: number;
158
+ criteria?: Criteria$1;
159
+ id: number;
160
+ }
161
+ interface Category {
162
+ id: number;
163
+ name: string;
164
+ statistics: Array<Statistic>;
165
+ sub_categories: Array<SubCategory>;
166
+ }
167
+ interface CategoryProgress$1 {
168
+ category: NameIdKey;
169
+ points: number;
170
+ quantity: number;
171
+ }
172
+ interface Criteria$1 {
173
+ amount?: number;
174
+ child_criteria?: Array<Criteria$1>;
175
+ id: number;
176
+ is_completed: boolean;
177
+ }
178
+ interface RecentEvent$1 {
179
+ achievement: NameIdKey;
180
+ timestamp: number;
181
+ }
182
+ interface Statistic {
183
+ description?: null | string;
184
+ id: number;
185
+ last_updated_timestamp: number;
186
+ name: string;
187
+ quantity: number;
188
+ }
189
+ interface SubCategory {
190
+ id: number;
191
+ name: string;
192
+ statistics: Array<Statistic>;
193
+ }
194
+
195
+ type CharacterAchievementsSummaryResponse = Omit<CharacterAchievementsSummaryResponse$1, 'statistics'>;
196
+
197
+ /**
198
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}. Note: This API is not supported for classic era realms.
199
+ * @param realmSlug The slug of the realm.
200
+ * @param characterName The lowercase name of the character.
201
+ * @returns a summary of the achievements a character has completed.
202
+ */
203
+ declare function characterAchievementsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterAchievementsSummaryResponse>;
204
+ /**
205
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}. Note: This API is not supported for classic era realms.
206
+ * @param realmSlug The slug of the realm.
207
+ * @param characterName The lowercase name of the character.
208
+ * @returns a character's statistics as they pertain to achievements.
209
+ */
210
+ declare function characterAchievementStatistics(namespace: Extract<BlizzardNamespaces, 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterAchievementStatisticsResponse>;
211
+
212
+ interface CharacterEquipmentSummaryResponse extends ResponseBase {
213
+ character: Character;
214
+ equipped_item_sets: Array<Set>;
215
+ equipped_items: Array<EquippedItem>;
216
+ }
217
+ interface Armor$1 {
218
+ display: NameDescription;
219
+ value: number;
220
+ }
221
+ interface Damage$1 {
222
+ damage_class: NameType;
223
+ display_string: string;
224
+ max_value: number;
225
+ min_value: number;
226
+ }
227
+ interface DisplayStrings {
228
+ copper: string;
229
+ gold: string;
230
+ header: string;
231
+ silver: string;
232
+ }
233
+ interface DisplayStringValue {
234
+ display_string: string;
235
+ value: number;
236
+ }
237
+ interface Effect {
238
+ display_string: string;
239
+ is_active: boolean;
240
+ required_count: number;
241
+ }
242
+ interface Enchantment {
243
+ display_string: string;
244
+ enchantment_id: number;
245
+ enchantment_slot: EnchantmentSlot;
246
+ source_item?: NameIdKey;
247
+ }
248
+ interface EnchantmentSlot {
249
+ id: number;
250
+ type: string;
251
+ }
252
+ interface EquippedItem {
253
+ armor?: Armor$1;
254
+ binding: NameType;
255
+ bonus_list?: Array<number>;
256
+ context: number;
257
+ description?: string;
258
+ durability?: DisplayStringValue;
259
+ enchantments?: Array<Enchantment>;
260
+ inventory_type: NameType;
261
+ is_subclass_hidden?: boolean;
262
+ item: KeyBase & {
263
+ id: number;
264
+ };
265
+ item_class: NameIdKey;
266
+ item_subclass: NameIdKey;
267
+ level: DisplayStringValue;
268
+ limit_category?: string;
269
+ media: KeyBase & {
270
+ id: number;
271
+ };
272
+ modified_appearance_id?: number;
273
+ modified_crafting_stat?: Array<ModifiedCraftingStat>;
274
+ name: string;
275
+ name_description: NameDescription;
276
+ quality: NameType;
277
+ quantity: number;
278
+ requirements?: Requirements$1;
279
+ sell_price?: SellPrice;
280
+ set?: Set;
281
+ slot: NameType;
282
+ sockets?: Array<Socket>;
283
+ spells?: Array<Spell$1>;
284
+ stats?: Array<Stat$1>;
285
+ transmog?: Transmog;
286
+ unique_equipped?: string;
287
+ weapon?: Weapon$1;
288
+ }
289
+ interface ItemElement extends NameIdKey {
290
+ is_equipped?: boolean;
291
+ }
292
+ interface ModifiedCraftingStat {
293
+ id: number;
294
+ name: string;
295
+ type: string;
296
+ }
297
+ interface NameDescription {
298
+ color: Color;
299
+ display_string: string;
300
+ }
301
+ interface NameType {
302
+ name: string;
303
+ type: string;
304
+ }
305
+ interface PlayableClasses {
306
+ display_string: string;
307
+ links: Array<NameIdKey>;
308
+ }
309
+ interface Requirements$1 {
310
+ level: DisplayStringValue;
311
+ playable_classes?: PlayableClasses;
312
+ }
313
+ interface SellPrice {
314
+ display_strings: DisplayStrings;
315
+ value: number;
316
+ }
317
+ interface Set {
318
+ display_string: string;
319
+ effects: Array<Effect>;
320
+ item_set: NameIdKey;
321
+ items: Array<ItemElement>;
322
+ }
323
+ interface Socket {
324
+ display_string: string;
325
+ item: NameIdKey;
326
+ media: KeyBase & {
327
+ id: number;
328
+ };
329
+ socket_type: NameType;
330
+ }
331
+ interface Spell$1 {
332
+ description: string;
333
+ spell: NameIdKey;
334
+ }
335
+ interface Stat$1 {
336
+ display: NameDescription;
337
+ is_equip_bonus?: boolean;
338
+ is_negated?: boolean;
339
+ type: NameType;
340
+ value: number;
341
+ }
342
+ interface Transmog {
343
+ display_string: string;
344
+ item: NameIdKey;
345
+ item_modified_appearance_id: number;
346
+ }
347
+ interface Weapon$1 {
348
+ attack_speed: DisplayStringValue;
349
+ damage: Damage$1;
350
+ dps: DisplayStringValue;
351
+ }
352
+
353
+ /**
354
+ * Returns a summary of the items equipped by a character.
355
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
356
+ * @param realmSlug The realm slug.
357
+ * @param characterName The character name.
358
+ * @returns The character equipment summary.
359
+ */
360
+ declare function characterEquipmentSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterEquipmentSummaryResponse>;
361
+
362
+ interface CharacterHunterPetsSummaryResponse extends ResponseBase {
363
+ character: Character;
364
+ hunter_pets: Array<HunterPet>;
365
+ }
366
+ interface HunterPet {
367
+ creature: NameIdKey;
368
+ creature_display: KeyBase & {
369
+ id: number;
370
+ };
371
+ is_active?: boolean;
372
+ is_summoned?: boolean;
373
+ level: number;
374
+ name: string;
375
+ slot: number;
376
+ }
377
+
378
+ /**
379
+ * If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
380
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
381
+ * @param realmSlug The slug of the realm.
382
+ * @param characterName The lowercase name of the character.
383
+ * @returns a summary of the character's hunter pets.
384
+ */
385
+ declare function characterHunterPetsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterHunterPetsSummaryResponse>;
386
+
387
+ interface CharacterMediaSummaryResponse extends ResponseBase {
388
+ assets: Array<Asset>;
389
+ character: Character;
390
+ }
391
+ interface Asset {
392
+ key: string;
393
+ value: string;
394
+ }
395
+
396
+ /**
397
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
398
+ * @param realmSlug The slug of the realm.
399
+ * @param characterName The lowercase name of the character.
400
+ * @returns a summary of the media assets available for a character (such as an avatar render).
401
+ */
402
+ declare function characterMediaSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterMediaSummaryResponse>;
403
+
404
+ interface CharacterProfileStatusResponse extends ResponseBase {
405
+ id: number;
406
+ is_valid: boolean;
407
+ }
408
+
409
+ interface CharacterProfileSummaryResponse extends ResponseBase {
410
+ achievement_points?: number;
411
+ achievements?: Href;
412
+ active_spec: NameIdKey;
413
+ active_title?: {
414
+ name: string;
415
+ };
416
+ appearance: Href;
417
+ average_item_level: number;
418
+ character_class: NameIdKey;
419
+ equipment: Href;
420
+ equipped_item_level: number;
421
+ experience: number;
422
+ faction: Faction;
423
+ gender: Gender;
424
+ guild: Guild$2;
425
+ id: number;
426
+ last_login_timestamp: number;
427
+ level: number;
428
+ media: Href;
429
+ name: string;
430
+ pvp_summary: Href;
431
+ race: NameIdKey;
432
+ realm: Realm$1;
433
+ specializations: Href;
434
+ statistics: Href;
435
+ titles: Href;
436
+ }
437
+ interface Guild$2 extends NameIdKey {
438
+ faction: Faction;
439
+ realm: Realm$1;
440
+ }
441
+
442
+ /**
443
+ * 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:
444
+ * - an HTTP 404 Not Found error is returned
445
+ * - the is_valid value is false
446
+ * - the returned character ID doesn't match the previously recorded value for the character
447
+ *
448
+ * The following example illustrates how to use this endpoint:
449
+ *
450
+ * 1. A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
451
+ * 2. After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
452
+ * 3. If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
453
+ * 4. If the character is valid and the character IDs match, the client retains the data for another 30 days.
454
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
455
+ * @param realmSlug The slug of the realm.
456
+ * @param characterName The lowercase name of the character.
457
+ * @returns the status of the character profile for a character.
458
+ */
459
+ declare function characterProfileStatus(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<typeof namespace extends 'profile-classic1x' ? CharacterProfileStatusResponse : never>;
460
+ /**
461
+ * Returns a summary of the character profile for a character.
462
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
463
+ * @param realmSlug The slug of the realm.
464
+ * @param characterName The lowercase name of the character.
465
+ * @returns a summary of the character profile for a character.
466
+ */
467
+ declare function characterProfileSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterProfileSummaryResponse>;
468
+
469
+ interface CharacterSpecializationsSummaryResponse extends ResponseBase {
470
+ character: Character;
471
+ specialization_groups: Array<SpecializationGroup>;
472
+ }
473
+ interface Specialization {
474
+ specialization_name: string;
475
+ spent_points: number;
476
+ talents: Array<TalentElement>;
477
+ }
478
+ interface SpecializationGroup {
479
+ glyphs?: Array<NameId>;
480
+ is_active: boolean;
481
+ specializations?: Array<Specialization>;
482
+ }
483
+ interface SpellTooltip {
484
+ cast_time: 'Channeled' | 'Instant' | 'Instant cast' | 'Passive';
485
+ cooldown?: string;
486
+ description: string;
487
+ power_cost?: null | string;
488
+ range?: string;
489
+ spell: NameId;
490
+ }
491
+ interface TalentElement {
492
+ spell_tooltip: SpellTooltip;
493
+ talent: {
494
+ id: number;
495
+ };
496
+ talent_rank: number;
497
+ }
498
+
499
+ /**
500
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
501
+ * @param realmSlug The slug of the realm.
502
+ * @param characterName The lowercase name of the character.
503
+ * @returns a summary of a character's specializations.
504
+ */
505
+ declare function characterSpecializationsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterSpecializationsSummaryResponse>;
506
+
507
+ interface CharacterStatisticsSummaryResponse extends ResponseBase {
508
+ agility: BaseEffectiveStat;
509
+ arcane_resistance: BaseEffectiveStat;
510
+ armor: BaseEffectiveStat;
511
+ attack_power: number;
512
+ block: RatingWithValue;
513
+ bonus_armor?: number;
514
+ character: Character;
515
+ defense?: BaseEffectiveStat;
516
+ dodge: RatingWithValue;
517
+ fire_resistance: BaseEffectiveStat;
518
+ health: number;
519
+ holy_resistance: BaseEffectiveStat;
520
+ intellect: BaseEffectiveStat;
521
+ main_hand_damage_max: number;
522
+ main_hand_damage_min: number;
523
+ main_hand_dps: number;
524
+ main_hand_speed: number;
525
+ mana_regen: number;
526
+ mana_regen_combat: number;
527
+ mastery?: RatingWithValue;
528
+ melee_crit: RatingWithValue;
529
+ melee_haste?: RatingWithValue;
530
+ nature_resistance: BaseEffectiveStat;
531
+ off_hand_damage_max: number;
532
+ off_hand_damage_min: number;
533
+ off_hand_dps: number;
534
+ off_hand_speed: number;
535
+ parry: RatingWithValue;
536
+ power: number;
537
+ power_type: Character;
538
+ ranged_crit: RatingWithValue;
539
+ ranged_haste?: RatingWithValue;
540
+ shadow_resistance: BaseEffectiveStat;
541
+ spell_crit: RatingWithValue;
542
+ spell_haste?: RatingWithValue;
543
+ spell_penetration: number;
544
+ spell_power: number;
545
+ spirit: BaseEffectiveStat;
546
+ stamina: BaseEffectiveStat;
547
+ strength: BaseEffectiveStat;
548
+ }
549
+ interface BaseEffectiveStat {
550
+ base: number;
551
+ effective: number;
552
+ }
553
+ interface RatingWithValue {
554
+ rating: number;
555
+ rating_bonus: number;
556
+ value: number;
557
+ }
558
+
559
+ /**
560
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
561
+ * @param realmSlug The slug of the realm.
562
+ * @param characterName The lowercase name of the character.
563
+ * @returns a statistics summary for a character.
564
+ */
565
+ declare function characterStatisticsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterStatisticsSummaryResponse>;
566
+
122
567
  /**
123
568
  * The category of a realm.
124
569
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -494,15 +939,15 @@ interface GuildCrestBorderEmblemResponse extends ResponseBase {
494
939
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
495
940
  */
496
941
  interface GuildCrestComponentsIndexResponse extends ResponseBase {
497
- borders: Array<Border>;
942
+ borders: Array<Border$1>;
498
943
  colors: Colors;
499
- emblems: Array<Border>;
944
+ emblems: Array<Border$1>;
500
945
  }
501
946
  interface Background {
502
947
  id: number;
503
948
  rgba: RGBA;
504
949
  }
505
- interface Border {
950
+ interface Border$1 {
506
951
  id: number;
507
952
  media: Media$2;
508
953
  }
@@ -546,6 +991,143 @@ declare function guildCrestComponentsIndex(namespace: Extract<BlizzardNamespaces
546
991
  */
547
992
  declare function guildCrestEmblem(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, emblemId: number): Resource<GuildCrestBorderEmblemResponse>;
548
993
 
994
+ interface GuildAchievementsResponse extends ResponseBase {
995
+ achievements: Array<Achievement>;
996
+ category_progress: Array<CategoryProgress>;
997
+ guild: Guild$1;
998
+ recent_events: Array<RecentEvent>;
999
+ total_points: number;
1000
+ total_quantity: number;
1001
+ }
1002
+ interface GuildResponse$1 extends ResponseBase {
1003
+ achievement_points: number;
1004
+ achievements: Href;
1005
+ activity: Href;
1006
+ created_timestamp: number;
1007
+ crest: Crest;
1008
+ faction: Faction;
1009
+ id: number;
1010
+ member_count: number;
1011
+ name: string;
1012
+ name_search: string;
1013
+ realm: Realm$1;
1014
+ roster: Href;
1015
+ }
1016
+ interface Achievement {
1017
+ achievement: NameIdKey;
1018
+ completed_timestamp?: number;
1019
+ criteria?: Criteria;
1020
+ id: number;
1021
+ }
1022
+ interface Border {
1023
+ color: RgbWithId;
1024
+ id: number;
1025
+ media: KeyBase & {
1026
+ id: number;
1027
+ };
1028
+ }
1029
+ interface CategoryProgress {
1030
+ category: NameIdKey;
1031
+ points: number;
1032
+ quantity: number;
1033
+ }
1034
+ interface Crest {
1035
+ background: {
1036
+ color: RgbWithId;
1037
+ };
1038
+ border: Border;
1039
+ emblem: Border;
1040
+ }
1041
+ interface Criteria {
1042
+ amount?: number;
1043
+ child_criteria?: Array<Criteria>;
1044
+ id: number;
1045
+ is_completed: boolean;
1046
+ }
1047
+ interface Guild$1 extends NameIdKey {
1048
+ faction: Faction;
1049
+ realm: Realm$1;
1050
+ }
1051
+ interface RecentEvent {
1052
+ achievement: NameIdKey;
1053
+ timestamp: number;
1054
+ }
1055
+ interface RgbWithId {
1056
+ id: number;
1057
+ rgba: Color;
1058
+ }
1059
+
1060
+ interface GuildAchievementsClassicEraResponse extends ResponseBase {
1061
+ guild: Guild;
1062
+ }
1063
+ interface GuildActivityResponse extends ResponseBase {
1064
+ activities?: Array<ActivityElement>;
1065
+ guild: Guild;
1066
+ }
1067
+ type GuildResponse = Omit<GuildResponse$1, 'crest'> & {
1068
+ crest?: GuildResponse$1['crest'];
1069
+ };
1070
+ interface GuildRosterResponse extends ResponseBase {
1071
+ guild: Guild;
1072
+ members: Array<Member>;
1073
+ }
1074
+ interface ActivityElement {
1075
+ activity: {
1076
+ type: string;
1077
+ };
1078
+ character_achievement: CharacterAchievement;
1079
+ timestamp: number;
1080
+ }
1081
+ interface CharacterAchievement {
1082
+ achievement: NameIdKey;
1083
+ character: Character;
1084
+ }
1085
+ interface Guild extends NameIdKey {
1086
+ faction: Faction;
1087
+ realm: Realm$1;
1088
+ }
1089
+ interface Member {
1090
+ character: RosterMemberCharacter;
1091
+ rank: number;
1092
+ }
1093
+ interface Playable extends KeyBase {
1094
+ id: number;
1095
+ }
1096
+ interface RosterMemberCharacter extends Character {
1097
+ level: number;
1098
+ playable_class: Playable;
1099
+ playable_race: Playable;
1100
+ }
1101
+
1102
+ /**
1103
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
1104
+ * @param realmSlug The slug of the realm.
1105
+ * @param nameSlug The lowercase name of the guild.
1106
+ * @returns a single guild by its name and realm.
1107
+ */
1108
+ declare function guild(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, nameSlug: string): Resource<GuildResponse>;
1109
+ /**
1110
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
1111
+ * @param realmSlug The slug of the realm.
1112
+ * @param nameSlug The lowercase name of the guild.
1113
+ * @returns a single guild's achievements by name and realm.
1114
+ */
1115
+ declare function guildAchievements<T extends Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>>(namespace: T, realmSlug: string, nameSlug: string): Resource<T extends 'profile-classic1x' ? GuildAchievementsClassicEraResponse : GuildAchievementsResponse>;
1116
+ /**
1117
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
1118
+ * @param realmSlug The slug of the realm.
1119
+ * @param nameSlug The lowercase name of the guild.
1120
+ * @returns a single guild's activity by name and realm.
1121
+ */
1122
+ declare function guildActivity(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, nameSlug: string): Resource<GuildActivityResponse>;
1123
+ /**
1124
+ * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
1125
+ * @param realmSlug The slug of the realm.
1126
+ * @param nameSlug The lowercase name of the guild.
1127
+ * @returns a single guild's roster by its name and realm.
1128
+ */
1129
+ declare function guildRoster(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, nameSlug: string): Resource<GuildRosterResponse>;
1130
+
549
1131
  /**
550
1132
  * The response for an item class index.
551
1133
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -1099,6 +1681,15 @@ declare function regionIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-cla
1099
1681
  declare const classicWow: {
1100
1682
  auctionHouseIndex: typeof auctionHouseIndex;
1101
1683
  auctions: typeof auctions;
1684
+ characterAchievementsSummary: typeof characterAchievementsSummary;
1685
+ characterAchievementStatistics: typeof characterAchievementStatistics;
1686
+ characterEquipmentSummary: typeof characterEquipmentSummary;
1687
+ characterHunterPetsSummary: typeof characterHunterPetsSummary;
1688
+ characterMediaSummary: typeof characterMediaSummary;
1689
+ characterProfileStatus: typeof characterProfileStatus;
1690
+ characterProfileSummary: typeof characterProfileSummary;
1691
+ characterSpecializationsSummary: typeof characterSpecializationsSummary;
1692
+ characterStatisticsSummary: typeof characterStatisticsSummary;
1102
1693
  connectedRealm: typeof connectedRealm;
1103
1694
  connectedRealmIndex: typeof connectedRealmIndex;
1104
1695
  connectedRealmSearch: typeof connectedRealmSearch;
@@ -1110,6 +1701,10 @@ declare const classicWow: {
1110
1701
  creatureSearch: typeof creatureSearch;
1111
1702
  creatureType: typeof creatureType;
1112
1703
  creatureTypeIndex: typeof creatureTypeIndex;
1704
+ guild: typeof guild;
1705
+ guildAchievements: typeof guildAchievements;
1706
+ guildActivity: typeof guildActivity;
1707
+ guildRoster: typeof guildRoster;
1113
1708
  guildCrestBorder: typeof guildCrestBorder;
1114
1709
  guildCrestComponentsIndex: typeof guildCrestComponentsIndex;
1115
1710
  guildCrestEmblem: typeof guildCrestEmblem;
@@ -1142,4 +1737,4 @@ declare const classicWow: {
1142
1737
  regionIndex: typeof regionIndex;
1143
1738
  };
1144
1739
 
1145
- export { type AuctionHouseIndexResponse, type AuctionsResponse, type ConnectedRealmIndexResponse, type ConnectedRealmResponse, type ConnectedRealmSearchParameters, type ConnectedRealmSearchResponseItem, type CreatureDisplayMediaResponse, type CreatureFamilyIndexResponse, type CreatureFamilyMediaResponse, type CreatureFamilyResponse, type CreatureResponse, type CreatureSearchParameters, type CreatureSearchResponseItem, type CreatureTypeIndexResponse, type CreatureTypeResponse, type GuildCrestBorderEmblemResponse, type GuildCrestComponentsIndexResponse, type ItemClassIndexResponse, type ItemClassResponse, type ItemMediaResponse, type ItemResponse, type ItemSearchParameters, type ItemSearchResponseItem, type ItemSubClassResponse, type MediaSearchParameters, type MediaSearchResponseItem, type PlayableClassIndexResponse, type PlayableClassMediaResponse, type PlayableClassResponse, type PlayableRaceIndexResponse, type PlayableRaceResponse, type PowerTypeIndexResponse, type PowerTypeResponse, type PvpSeasonIndexResponse, type PvpSeasonResponse, type RealmCategory, type RealmIndexResponse, type RealmResponse, type RealmSearchParameters, type RealmSearchResponseItem, type RealmTimezone, type RealmType, type RealmTypeCapitalized, type RegionIndexResponse, type RegionResponse, type WithoutUnderscore, auctionHouseIndex, auctions, classicWow, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, classicWow as default, guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem, item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubClass, mediaSearch, playableClass, playableClassIndex, playableClassMedia, playableRace, playableRaceIndex, powerType, powerTypeIndex, pvpLeaderboard, pvpLeaderboardIndex, pvpRegionIndex, pvpRegionalSeason, pvpRegionalSeasonIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex, realm, realmIndex, realmSearch, region, regionIndex };
1740
+ export { type AuctionHouseIndexResponse, type AuctionsResponse, type CharacterAchievementStatisticsResponse, type CharacterAchievementsSummaryResponse, type CharacterEquipmentSummaryResponse, type CharacterHunterPetsSummaryResponse, type CharacterMediaSummaryResponse, type CharacterProfileStatusResponse, type CharacterProfileSummaryResponse, type CharacterSpecializationsSummaryResponse, type CharacterStatisticsSummaryResponse, type ConnectedRealmIndexResponse, type ConnectedRealmResponse, type ConnectedRealmSearchParameters, type ConnectedRealmSearchResponseItem, type CreatureDisplayMediaResponse, type CreatureFamilyIndexResponse, type CreatureFamilyMediaResponse, type CreatureFamilyResponse, type CreatureResponse, type CreatureSearchParameters, type CreatureSearchResponseItem, type CreatureTypeIndexResponse, type CreatureTypeResponse, type GuildAchievementsClassicEraResponse, type GuildAchievementsResponse, type GuildActivityResponse, type GuildCrestBorderEmblemResponse, type GuildCrestComponentsIndexResponse, type GuildResponse, type GuildRosterResponse, type ItemClassIndexResponse, type ItemClassResponse, type ItemMediaResponse, type ItemResponse, type ItemSearchParameters, type ItemSearchResponseItem, type ItemSubClassResponse, type MediaSearchParameters, type MediaSearchResponseItem, type PlayableClassIndexResponse, type PlayableClassMediaResponse, type PlayableClassResponse, type PlayableRaceIndexResponse, type PlayableRaceResponse, type PowerTypeIndexResponse, type PowerTypeResponse, type PvpSeasonIndexResponse, type PvpSeasonResponse, type RealmCategory, type RealmIndexResponse, type RealmResponse, type RealmSearchParameters, type RealmSearchResponseItem, type RealmTimezone, type RealmType, type RealmTypeCapitalized, type RegionIndexResponse, type RegionResponse, type WithoutUnderscore, auctionHouseIndex, auctions, characterAchievementStatistics, characterAchievementsSummary, characterEquipmentSummary, characterHunterPetsSummary, characterMediaSummary, characterProfileStatus, characterProfileSummary, characterSpecializationsSummary, characterStatisticsSummary, classicWow, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, classicWow as default, guild, guildAchievements, guildActivity, guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem, guildRoster, item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubClass, mediaSearch, playableClass, playableClassIndex, playableClassMedia, playableRace, playableRaceIndex, powerType, powerTypeIndex, pvpLeaderboard, pvpLeaderboardIndex, pvpRegionIndex, pvpRegionalSeason, pvpRegionalSeasonIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex, realm, realmIndex, realmSearch, region, regionIndex };
package/dist/index.js CHANGED
@@ -17,6 +17,77 @@ function auctions(namespace, connectedRealmId, auctionHouseId) {
17
17
  };
18
18
  }
19
19
 
20
+ // src/base.ts
21
+ var characterBase = "profile/wow/character";
22
+
23
+ // src/character-achievements/character-achievements.ts
24
+ function characterAchievementsSummary(namespace, realmSlug, characterName) {
25
+ return {
26
+ namespace,
27
+ path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}/achievements`
28
+ };
29
+ }
30
+ function characterAchievementStatistics(namespace, realmSlug, characterName) {
31
+ return {
32
+ namespace,
33
+ path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
34
+ };
35
+ }
36
+
37
+ // src/character-equipment/character-equipment.ts
38
+ function characterEquipmentSummary(namespace, realmSlug, characterName) {
39
+ return {
40
+ namespace,
41
+ path: `${characterBase}/${realmSlug}/${characterName}/equipment`
42
+ };
43
+ }
44
+
45
+ // src/character-hunter-pets/character-hunter-pets.ts
46
+ function characterHunterPetsSummary(namespace, realmSlug, characterName) {
47
+ return {
48
+ namespace,
49
+ path: `${characterBase}/${realmSlug}/${characterName}/hunter-pets`
50
+ };
51
+ }
52
+
53
+ // src/character-media/character-media.ts
54
+ function characterMediaSummary(namespace, realmSlug, characterName) {
55
+ return {
56
+ namespace,
57
+ path: `${characterBase}/${realmSlug}/${characterName}/character-media`
58
+ };
59
+ }
60
+
61
+ // src/character-profile/character-profile.ts
62
+ function characterProfileStatus(namespace, realmSlug, characterName) {
63
+ return {
64
+ namespace,
65
+ path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}/status`
66
+ };
67
+ }
68
+ function characterProfileSummary(namespace, realmSlug, characterName) {
69
+ return {
70
+ namespace,
71
+ path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}`
72
+ };
73
+ }
74
+
75
+ // src/character-specialization/character-specialization.ts
76
+ function characterSpecializationsSummary(namespace, realmSlug, characterName) {
77
+ return {
78
+ namespace,
79
+ path: `${characterBase}/${realmSlug}/${characterName}/specializations`
80
+ };
81
+ }
82
+
83
+ // src/character-statistics/character-statistics.ts
84
+ function characterStatisticsSummary(namespace, realmSlug, characterName) {
85
+ return {
86
+ namespace,
87
+ path: `${characterBase}/${realmSlug}/${characterName}/statistics`
88
+ };
89
+ }
90
+
20
91
  // src/connected-realm/connected-realm.ts
21
92
  function connectedRealm(namespace, connectedRealmId) {
22
93
  return {
@@ -118,6 +189,34 @@ function guildCrestEmblem(namespace, emblemId) {
118
189
  };
119
190
  }
120
191
 
192
+ // src/guild/guild.ts
193
+ var basePath = "/data/wow/guild";
194
+ function guild(namespace, realmSlug, nameSlug) {
195
+ return {
196
+ namespace,
197
+ path: `${basePath}/${realmSlug}/${nameSlug}`
198
+ };
199
+ }
200
+ function guildAchievements(namespace, realmSlug, nameSlug) {
201
+ console.log("typeof namespace", typeof namespace);
202
+ return {
203
+ namespace,
204
+ path: `${basePath}/${realmSlug}/${nameSlug}/achievements`
205
+ };
206
+ }
207
+ function guildActivity(namespace, realmSlug, nameSlug) {
208
+ return {
209
+ namespace,
210
+ path: `${basePath}/${realmSlug}/${nameSlug}/activity`
211
+ };
212
+ }
213
+ function guildRoster(namespace, realmSlug, nameSlug) {
214
+ return {
215
+ namespace,
216
+ path: `${basePath}/${realmSlug}/${nameSlug}/roster`
217
+ };
218
+ }
219
+
121
220
  // src/item/item.ts
122
221
  function item(namespace, itemId) {
123
222
  return {
@@ -316,6 +415,22 @@ var classicWow = {
316
415
  //Auction House
317
416
  auctionHouseIndex,
318
417
  auctions,
418
+ //Character Achievements
419
+ characterAchievementsSummary,
420
+ characterAchievementStatistics,
421
+ //Character Equipment
422
+ characterEquipmentSummary,
423
+ //Character Hunter Pets
424
+ characterHunterPetsSummary,
425
+ //Character Media
426
+ characterMediaSummary,
427
+ //Character Profile
428
+ characterProfileStatus,
429
+ characterProfileSummary,
430
+ //Character Specialization
431
+ characterSpecializationsSummary,
432
+ //Character Statistics
433
+ characterStatisticsSummary,
319
434
  //Connected Realm
320
435
  connectedRealm,
321
436
  connectedRealmIndex,
@@ -329,6 +444,11 @@ var classicWow = {
329
444
  creatureSearch,
330
445
  creatureType,
331
446
  creatureTypeIndex,
447
+ //Guild
448
+ guild,
449
+ guildAchievements,
450
+ guildActivity,
451
+ guildRoster,
332
452
  //Guild Crest
333
453
  guildCrestBorder,
334
454
  guildCrestComponentsIndex,
@@ -369,7 +489,8 @@ var classicWow = {
369
489
  region,
370
490
  regionIndex
371
491
  };
492
+ var src_default = classicWow;
372
493
 
373
- export { auctionHouseIndex, auctions, classicWow, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, classicWow as default, guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem, item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubClass, mediaSearch, playableClass, playableClassIndex, playableClassMedia, playableRace, playableRaceIndex, powerType, powerTypeIndex, pvpLeaderboard, pvpLeaderboardIndex, pvpRegionIndex, pvpRegionalSeason, pvpRegionalSeasonIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex, realm, realmIndex, realmSearch, region, regionIndex };
494
+ export { auctionHouseIndex, auctions, characterAchievementStatistics, characterAchievementsSummary, characterEquipmentSummary, characterHunterPetsSummary, characterMediaSummary, characterProfileStatus, characterProfileSummary, characterSpecializationsSummary, characterStatisticsSummary, classicWow, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, src_default as default, guild, guildAchievements, guildActivity, guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem, guildRoster, item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubClass, mediaSearch, playableClass, playableClassIndex, playableClassMedia, playableRace, playableRaceIndex, powerType, powerTypeIndex, pvpLeaderboard, pvpLeaderboardIndex, pvpRegionIndex, pvpRegionalSeason, pvpRegionalSeasonIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex, realm, realmIndex, realmSearch, region, regionIndex };
374
495
  //# sourceMappingURL=index.js.map
375
496
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
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,CAAA,eAAA,CAAA;AAAA,GACnD,CAAA;AACF,CAAA;AAYO,SAAS,QAAA,CACd,SACA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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.js","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\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 * 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\nexport interface Href {\r\n href: string;\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 * 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 * 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 * 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 * 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 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\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","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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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 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-classic1x' | 'dynamic-classic'>,\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 * 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-classic1x' | 'dynamic-classic'>,\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 * 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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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 * 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-classic1x' | 'static-classic'>,\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/**\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\r\n): Resource<CreatureTypeIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/creature-type/index`,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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/**\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-classic1x' | 'static-classic'>,\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","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 namespace The namespace to use. See {@link BlizzardNamespaces}.\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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 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 * @returns The PvP leaderboard.\r\n */\r\nexport function pvpLeaderboard(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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 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 * @returns The PvP leaderboard index.\r\n */\r\nexport function pvpLeaderboardIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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 * 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 * @returns The PvP season.\r\n */\r\nexport function pvpRegionalSeason(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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 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-classic1x' | 'dynamic-classic'>,\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 an index of PvP Regions.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The PvP region index.\r\n */\r\nexport function pvpRegionIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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 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 * @returns The PvP reward index.\r\n */\r\nexport function pvpRewardsIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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/**\r\n * Get a PvP season by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\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-classic1x' | 'dynamic-classic'>,\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 * 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-classic1x' | 'dynamic-classic'>,\r\n): Resource<PvpSeasonIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-season/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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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, classicWow as default };\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"]}
1
+ {"version":3,"sources":["../../wow/src/base.ts","../src/auction-house/auction-house.ts","../src/base.ts","../src/character-achievements/character-achievements.ts","../src/character-equipment/character-equipment.ts","../src/character-hunter-pets/character-hunter-pets.ts","../src/character-media/character-media.ts","../src/character-profile/character-profile.ts","../src/character-specialization/character-specialization.ts","../src/character-statistics/character-statistics.ts","../src/connected-realm/connected-realm.ts","../src/creature/creature.ts","../src/guild-crest/guild-crest.ts","../src/guild/guild.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;AAKb,IAAM,SAAA,GAAY,GAAG,IAAI,CAAA,MAAA,CAAA;AAKzB,IAAM,UAAA,GAAa,GAAG,IAAI,CAAA,OAAA,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,CAAA,eAAA;AAAA,GACnD;AACF;AAYO,SAAS,QAAA,CACd,SACA,EAAA,gBAAA,EACA,cAC4B,EAAA;AAC5B,EAAO,OAAA;AAAA,IACL,SAAA;AAAA,IACA,MAAM,CAAG,EAAA,IAAI,CAAoB,iBAAA,EAAA,gBAAgB,aAAa,cAAc,CAAA;AAAA,GAC9E;AACF;;;ACpCO,IAAM,aAAgB,GAAA,uBAAA;;;ACOtB,SAAS,4BAAA,CACd,SACA,EAAA,SAAA,EACA,aACgD,EAAA;AAChD,EAAO,OAAA;AAAA,IACL,SAAA;AAAA,IACA,IAAA,EAAM,GAAG,aAAa,CAAA,CAAA,EAAI,SAAS,CAAI,CAAA,EAAA,aAAA,CAAc,aAAa,CAAA,aAAA;AAAA,GACpE;AACF;AAQO,SAAS,8BAAA,CACd,SACA,EAAA,SAAA,EACA,aACkD,EAAA;AAClD,EAAO,OAAA;AAAA,IACL,SAAA;AAAA,IACA,IAAA,EAAM,GAAG,aAAa,CAAA,CAAA,EAAI,SAAS,CAAI,CAAA,EAAA,aAAA,CAAc,aAAa,CAAA,wBAAA;AAAA,GACpE;AACF;;;ACxBO,SAAS,yBAAA,CACd,SACA,EAAA,SAAA,EACA,aAC6C,EAAA;AAC7C,EAAO,OAAA;AAAA,IACL,SAAA;AAAA,IACA,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AA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA;AAAA,EAEA,KAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA;AAAA,EAEA,MAAA;AAAA,EACA;AACF;AACA,IAAO,WAAQ,GAAA","file":"index.js","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\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 * 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\nexport interface Href {\r\n href: string;\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 * 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 * 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 * 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 * 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 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\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","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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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","/**\n * The base request path for the character API for Classic World of Warcraft.\n */\nexport const characterBase = 'profile/wow/character';\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { characterBase } from '../base';\nimport type { CharacterAchievementsSummaryResponse, CharacterAchievementStatisticsResponse } from './types';\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}. Note: This API is not supported for classic era realms.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the achievements a character has completed.\n */\nexport function characterAchievementsSummary(\n namespace: Extract<BlizzardNamespaces, 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAchievementsSummaryResponse> {\n return {\n namespace,\n path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}/achievements`,\n };\n}\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}. Note: This API is not supported for classic era realms.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a character's statistics as they pertain to achievements.\n */\nexport function characterAchievementStatistics(\n namespace: Extract<BlizzardNamespaces, 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterAchievementStatisticsResponse> {\n return {\n namespace,\n path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`,\n };\n}\n","import type { Resource } from '@blizzard-api/core';\nimport type { BlizzardNamespaces } from '@blizzard-api/core';\nimport { characterBase } from '../base';\nimport type { CharacterEquipmentSummaryResponse } from './types';\n\n/**\n * Returns a summary of the items equipped by a character.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The realm slug.\n * @param characterName The character name.\n * @returns The character equipment summary.\n */\nexport function characterEquipmentSummary(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterEquipmentSummaryResponse> {\n return {\n namespace,\n path: `${characterBase}/${realmSlug}/${characterName}/equipment`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { characterBase } from '../base';\nimport type { CharacterHunterPetsSummaryResponse } from './types';\n\n/**\n * If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the character's hunter pets.\n */\nexport function characterHunterPetsSummary(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterHunterPetsSummaryResponse> {\n return {\n namespace,\n path: `${characterBase}/${realmSlug}/${characterName}/hunter-pets`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { characterBase } from '../base';\nimport type { CharacterMediaSummaryResponse } from './types';\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the media assets available for a character (such as an avatar render).\n */\nexport function characterMediaSummary(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterMediaSummaryResponse> {\n return {\n namespace,\n path: `${characterBase}/${realmSlug}/${characterName}/character-media`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { characterBase } from '../base';\nimport type { CharacterProfileStatusResponse, CharacterProfileSummaryResponse } from './types';\n\n/**\n * 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:\n * - an HTTP 404 Not Found error is returned\n * - the is_valid value is false\n * - the returned character ID doesn't match the previously recorded value for the character\n *\n * The following example illustrates how to use this endpoint:\n *\n * 1. A client requests and stores information about a character, including its unique character ID and the timestamp of the request.\n * 2. After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.\n * 3. If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.\n * 4. If the character is valid and the character IDs match, the client retains the data for another 30 days.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns the status of the character profile for a character.\n */\nexport function characterProfileStatus(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<typeof namespace extends 'profile-classic1x' ? CharacterProfileStatusResponse : never> {\n return {\n namespace,\n path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}/status`,\n };\n}\n\n/**\n * Returns a summary of the character profile for a character.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of the character profile for a character.\n */\nexport function characterProfileSummary(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterProfileSummaryResponse> {\n return {\n namespace,\n path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { characterBase } from '../base';\nimport type { CharacterSpecializationsSummaryResponse } from './types';\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of a character's specializations.\n */\nexport function characterSpecializationsSummary(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterSpecializationsSummaryResponse> {\n return {\n namespace,\n path: `${characterBase}/${realmSlug}/${characterName}/specializations`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { characterBase } from '../base';\nimport type { CharacterStatisticsSummaryResponse } from './types';\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a statistics summary for a character.\n */\nexport function characterStatisticsSummary(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterStatisticsSummaryResponse> {\n return {\n namespace,\n path: `${characterBase}/${realmSlug}/${characterName}/statistics`,\n };\n}\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 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-classic1x' | 'dynamic-classic'>,\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 * 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-classic1x' | 'dynamic-classic'>,\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 * 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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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 * 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-classic1x' | 'static-classic'>,\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/**\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\r\n): Resource<CreatureTypeIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/creature-type/index`,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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 } from '@blizzard-api/core';\nimport type {\n GuildAchievementsClassicEraResponse,\n GuildAchievementsResponse,\n GuildActivityResponse,\n GuildResponse,\n GuildRosterResponse,\n} from './types';\n\nconst basePath = '/data/wow/guild';\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param nameSlug The lowercase name of the guild.\n * @returns a single guild by its name and realm.\n */\nexport function guild(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n nameSlug: string,\n): Resource<GuildResponse> {\n return {\n namespace,\n path: `${basePath}/${realmSlug}/${nameSlug}`,\n };\n}\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param nameSlug The lowercase name of the guild.\n * @returns a single guild's achievements by name and realm.\n */\nexport function guildAchievements<T extends Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>>(\n namespace: T,\n realmSlug: string,\n nameSlug: string,\n): Resource<T extends 'profile-classic1x' ? GuildAchievementsClassicEraResponse : GuildAchievementsResponse> {\n console.log('typeof namespace', typeof namespace);\n return {\n namespace,\n path: `${basePath}/${realmSlug}/${nameSlug}/achievements`,\n };\n}\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param nameSlug The lowercase name of the guild.\n * @returns a single guild's activity by name and realm.\n */\nexport function guildActivity(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n nameSlug: string,\n): Resource<GuildActivityResponse> {\n return {\n namespace,\n path: `${basePath}/${realmSlug}/${nameSlug}/activity`,\n };\n}\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param nameSlug The lowercase name of the guild.\n * @returns a single guild's roster by its name and realm.\n */\nexport function guildRoster(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n nameSlug: string,\n): Resource<GuildRosterResponse> {\n return {\n namespace,\n path: `${basePath}/${realmSlug}/${nameSlug}/roster`,\n };\n}\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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 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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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/**\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-classic1x' | 'static-classic'>,\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","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 namespace The namespace to use. See {@link BlizzardNamespaces}.\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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-classic1x' | 'static-classic'>,\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 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 * @returns The PvP leaderboard.\r\n */\r\nexport function pvpLeaderboard(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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 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 * @returns The PvP leaderboard index.\r\n */\r\nexport function pvpLeaderboardIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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 * 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 * @returns The PvP season.\r\n */\r\nexport function pvpRegionalSeason(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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 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-classic1x' | 'dynamic-classic'>,\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 an index of PvP Regions.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The PvP region index.\r\n */\r\nexport function pvpRegionIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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 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 * @returns The PvP reward index.\r\n */\r\nexport function pvpRewardsIndex(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\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/**\r\n * Get a PvP season by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\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-classic1x' | 'dynamic-classic'>,\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 * 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-classic1x' | 'dynamic-classic'>,\r\n): Resource<PvpSeasonIndexResponse> {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-season/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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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-classic1x' | 'dynamic-classic'>,\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 {\r\n characterAchievementsSummary,\r\n characterAchievementStatistics,\r\n} from './character-achievements/character-achievements';\r\nimport { characterEquipmentSummary } from './character-equipment/character-equipment';\r\nimport { characterHunterPetsSummary } from './character-hunter-pets/character-hunter-pets';\r\nimport { characterMediaSummary } from './character-media/character-media';\r\nimport { characterProfileStatus, characterProfileSummary } from './character-profile/character-profile';\r\nimport { characterSpecializationsSummary } from './character-specialization/character-specialization';\r\nimport { characterStatisticsSummary } from './character-statistics/character-statistics';\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 { guild, guildAchievements, guildActivity, guildRoster } from './guild/guild';\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 //Character Achievements\r\n characterAchievementsSummary,\r\n characterAchievementStatistics,\r\n //Character Equipment\r\n characterEquipmentSummary,\r\n //Character Hunter Pets\r\n characterHunterPetsSummary,\r\n //Character Media\r\n characterMediaSummary,\r\n //Character Profile\r\n characterProfileStatus,\r\n characterProfileSummary,\r\n //Character Specialization\r\n characterSpecializationsSummary,\r\n //Character Statistics\r\n characterStatisticsSummary,\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\r\n guild,\r\n guildAchievements,\r\n guildActivity,\r\n guildRoster,\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 default classicWow;\r\nexport { classicWow };\r\n\r\n//Auction House\r\nexport * from './auction-house/auction-house';\r\nexport type * from './auction-house/types';\r\n//Character Achievements\r\nexport * from './character-achievements/character-achievements';\r\nexport type * from './character-achievements/types';\r\n//Character Equipment\r\nexport * from './character-equipment/character-equipment';\r\nexport type * from './character-equipment/types';\r\n//Character Hunter Pets\r\nexport * from './character-hunter-pets/character-hunter-pets';\r\nexport type * from './character-hunter-pets/types';\r\n//Character Media\r\nexport * from './character-media/character-media';\r\nexport type * from './character-media/types';\r\n//Character Profile\r\nexport * from './character-profile/character-profile';\r\nexport type * from './character-profile/types';\r\n//Character Specialization\r\nexport * from './character-specialization/character-specialization';\r\nexport type * from './character-specialization/types';\r\n//Character Statistics\r\nexport * from './character-statistics/character-statistics';\r\nexport type * from './character-statistics/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\r\nexport * from './guild/guild';\r\nexport type * from './guild/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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blizzard-api/classic-wow",
3
- "version": "2.0.2",
3
+ "version": "2.1.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",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "dependencies": {},
36
36
  "peerDependencies": {
37
- "@blizzard-api/core": "2.0.2"
37
+ "@blizzard-api/core": "2.1.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@blizzard-api/core": "2.0.2"
40
+ "@blizzard-api/core": "2.1.0"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsup",