@blizzard-api/classic-wow 3.0.2 → 3.0.4

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/dist/index.d.ts CHANGED
@@ -256,6 +256,7 @@ interface Socket {
256
256
  }
257
257
  interface Spell$1 {
258
258
  description: string;
259
+ display_color?: Color;
259
260
  spell: NameIdKey;
260
261
  }
261
262
  interface Stat$1 {
@@ -426,7 +427,7 @@ interface SpecializationGroupItem {
426
427
  talents: Array<TalentElement>;
427
428
  }
428
429
  interface SpellTooltip {
429
- cast_time: 'Channeled' | 'Instant' | 'Instant cast' | 'Passive';
430
+ cast_time: string;
430
431
  cooldown?: string;
431
432
  description: string;
432
433
  power_cost?: null | string;
@@ -611,7 +612,7 @@ interface ConnectedRealmResponse extends ResponseBase {
611
612
  realm_locked_status?: RealmLockedStatus;
612
613
  realms: Array<Realm$1>;
613
614
  status: {
614
- name: RealmStatus;
615
+ name: string;
615
616
  type: RealmStatusCapitalized;
616
617
  };
617
618
  }
@@ -661,7 +662,6 @@ interface RealmLockedStatus {
661
662
  is_locked_for_pct: boolean;
662
663
  }
663
664
  type RealmPopulationCapitalized = 'FULL' | 'HIGH' | 'LOCKED' | 'LOW' | 'MEDIUM' | 'RECOMMENDED';
664
- type RealmStatus = 'Down' | 'Up';
665
665
  type RealmStatusCapitalized = 'DOWN' | 'UP';
666
666
  interface SearchRealm {
667
667
  category: Record<Locales, string>;
@@ -1357,8 +1357,8 @@ interface MediaSearchResponse extends SearchResponseWithoutResults {
1357
1357
  }
1358
1358
  interface MediaSearchResponseItem extends KeyBase {
1359
1359
  data: {
1360
- assets: Array<MediaAsset>;
1361
- id: number;
1360
+ assets?: Array<MediaAsset>;
1361
+ id?: number;
1362
1362
  };
1363
1363
  }
1364
1364
  //#endregion
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { wowBasePath, wowCharacterBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/core";
2
-
3
2
  //#region src/auction-house/auction-house.ts
4
3
  /**
5
4
  * Returns an index of auction houses for a connected realm.
@@ -30,7 +29,6 @@ function auctions(namespace, connectedRealmId, auctionHouseId) {
30
29
  path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`
31
30
  };
32
31
  }
33
-
34
32
  //#endregion
35
33
  //#region src/character-achievements/character-achievements.ts
36
34
  /**
@@ -57,7 +55,6 @@ function characterAchievementStatistics(namespace, realmSlug, characterName) {
57
55
  path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
58
56
  };
59
57
  }
60
-
61
58
  //#endregion
62
59
  //#region src/character-equipment/character-equipment.ts
63
60
  /**
@@ -73,7 +70,6 @@ function characterEquipmentSummary(namespace, realmSlug, characterName) {
73
70
  path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/equipment`
74
71
  };
75
72
  }
76
-
77
73
  //#endregion
78
74
  //#region src/character-hunter-pets/character-hunter-pets.ts
79
75
  /**
@@ -89,7 +85,6 @@ function characterHunterPetsSummary(namespace, realmSlug, characterName) {
89
85
  path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/hunter-pets`
90
86
  };
91
87
  }
92
-
93
88
  //#endregion
94
89
  //#region src/character-media/character-media.ts
95
90
  /**
@@ -104,7 +99,6 @@ function characterMediaSummary(namespace, realmSlug, characterName) {
104
99
  path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/character-media`
105
100
  };
106
101
  }
107
-
108
102
  //#endregion
109
103
  //#region src/character-profile/character-profile.ts
110
104
  /**
@@ -143,7 +137,6 @@ function characterProfileSummary(namespace, realmSlug, characterName) {
143
137
  path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}`
144
138
  };
145
139
  }
146
-
147
140
  //#endregion
148
141
  //#region src/character-specialization/character-specialization.ts
149
142
  /**
@@ -158,7 +151,6 @@ function characterSpecializationsSummary(namespace, realmSlug, characterName) {
158
151
  path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/specializations`
159
152
  };
160
153
  }
161
-
162
154
  //#endregion
163
155
  //#region src/character-statistics/character-statistics.ts
164
156
  /**
@@ -173,7 +165,6 @@ function characterStatisticsSummary(namespace, realmSlug, characterName) {
173
165
  path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/statistics`
174
166
  };
175
167
  }
176
-
177
168
  //#endregion
178
169
  //#region src/connected-realm/connected-realm.ts
179
170
  /**
@@ -217,7 +208,6 @@ function connectedRealmSearch(namespace, options) {
217
208
  path: `${wowBasePath}/search/connected-realm`
218
209
  };
219
210
  }
220
-
221
211
  //#endregion
222
212
  //#region src/creature/creature.ts
223
213
  /**
@@ -319,7 +309,6 @@ function creatureTypeIndex(namespace) {
319
309
  path: `${wowBasePath}/creature-type/index`
320
310
  };
321
311
  }
322
-
323
312
  //#endregion
324
313
  //#region src/guild-crest/guild-crest.ts
325
314
  /**
@@ -357,7 +346,6 @@ function guildCrestEmblem(namespace, emblemId) {
357
346
  path: `${wowMediaBasePath}/guild-crest/emblem/${emblemId}`
358
347
  };
359
348
  }
360
-
361
349
  //#endregion
362
350
  //#region src/guild/guild.ts
363
351
  const basePath = "/data/wow/guild";
@@ -409,7 +397,6 @@ function guildRoster(namespace, realmSlug, nameSlug) {
409
397
  path: `${basePath}/${realmSlug}/${nameSlug}/roster`
410
398
  };
411
399
  }
412
-
413
400
  //#endregion
414
401
  //#region src/item/item.ts
415
402
  /**
@@ -489,7 +476,6 @@ function itemSubClass(namespace, itemClassId, itemSubclassId) {
489
476
  path: `${wowBasePath}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`
490
477
  };
491
478
  }
492
-
493
479
  //#endregion
494
480
  //#region src/media-search/media-search.ts
495
481
  /**
@@ -509,7 +495,6 @@ function mediaSearch(namespace, options) {
509
495
  path: `${wowSearchBasePath}/media`
510
496
  };
511
497
  }
512
-
513
498
  //#endregion
514
499
  //#region src/playable-class/playable-class.ts
515
500
  /**
@@ -547,7 +532,6 @@ function playableClassMedia(namespace, playableClassId) {
547
532
  path: `${wowMediaBasePath}/playable-class/${playableClassId}`
548
533
  };
549
534
  }
550
-
551
535
  //#endregion
552
536
  //#region src/playable-race/playable-race.ts
553
537
  /**
@@ -573,7 +557,6 @@ function playableRaceIndex(namespace) {
573
557
  path: `${wowBasePath}/playable-race/index`
574
558
  };
575
559
  }
576
-
577
560
  //#endregion
578
561
  //#region src/power-type/power-type.ts
579
562
  /**
@@ -599,7 +582,6 @@ function powerTypeIndex(namespace) {
599
582
  path: `${wowBasePath}/power-type/index`
600
583
  };
601
584
  }
602
-
603
585
  //#endregion
604
586
  //#region src/pvp-season/pvp-season.ts
605
587
  /**
@@ -701,7 +683,6 @@ function pvpSeasonIndex(namespace) {
701
683
  path: `${wowBasePath}/pvp-season/index`
702
684
  };
703
685
  }
704
-
705
686
  //#endregion
706
687
  //#region src/realm/realm.ts
707
688
  /**
@@ -744,7 +725,6 @@ function realmSearch(namespace, options) {
744
725
  path: `${wowSearchBasePath}/realm`
745
726
  };
746
727
  }
747
-
748
728
  //#endregion
749
729
  //#region src/region/region.ts
750
730
  /**
@@ -770,7 +750,6 @@ function regionIndex(namespace) {
770
750
  path: `${wowBasePath}/region/index`
771
751
  };
772
752
  }
773
-
774
753
  //#endregion
775
754
  //#region src/index.ts
776
755
  const classicWow = {
@@ -831,7 +810,7 @@ const classicWow = {
831
810
  region,
832
811
  regionIndex
833
812
  };
834
-
835
813
  //#endregion
836
814
  export { auctionHouseIndex, auctions, characterAchievementStatistics, characterAchievementsSummary, characterEquipmentSummary, characterHunterPetsSummary, characterMediaSummary, characterProfileStatus, characterProfileSummary, characterSpecializationsSummary, characterStatisticsSummary, classicWow, classicWow as default, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, 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 };
815
+
837
816
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/auction-house/auction-house.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"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${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: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/equipment`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/hunter-pets`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/character-media`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${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: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/specializations`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/statistics`,\n };\n}\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type {\r\n ConnectedRealmIndexResponse,\r\n ConnectedRealmResponse,\r\n ConnectedRealmSearchParameters,\r\n ConnectedRealmSearchResponse,\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: `${wowBasePath}/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: `${wowBasePath}/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 ConnectedRealmSearchResponse}.\r\n */\r\nexport function connectedRealmSearch(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\r\n options: ConnectedRealmSearchParameters,\r\n): Resource<ConnectedRealmSearchResponse, 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: `${wowBasePath}/search/connected-realm`,\r\n };\r\n}\r\n","import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type {\r\n CreatureDisplayMediaResponse,\r\n CreatureFamilyIndexResponse,\r\n CreatureFamilyMediaResponse,\r\n CreatureFamilyResponse,\r\n CreatureResponse,\r\n CreatureSearchParameters,\r\n CreatureSearchResponse,\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: `${wowBasePath}/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: `${wowMediaBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowMediaBasePath}/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 CreatureSearchResponse}.\r\n */\r\nexport function creatureSearch(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\r\n options: CreatureSearchParameters,\r\n): Resource<CreatureSearchResponse, 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: `${wowSearchBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/creature-type/index`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\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: `${wowMediaBasePath}/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: `${wowBasePath}/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: `${wowMediaBasePath}/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 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 { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type {\r\n ItemClassIndexResponse,\r\n ItemClassResponse,\r\n ItemMediaResponse,\r\n ItemResponse,\r\n ItemSearchParameters,\r\n ItemSearchResponse,\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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowMediaBasePath}/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 ItemSearchResponse}.\r\n */\r\nexport function itemSearch(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\r\n options: ItemSearchParameters,\r\n): Resource<ItemSearchResponse, 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: `${wowSearchBasePath}/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: `${wowBasePath}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,\r\n };\r\n}\r\n","import { wowSearchBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type { MediaSearchParameters, MediaSearchResponse } 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 MediaSearchResponse}.\r\n */\r\nexport function mediaSearch(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\r\n options: MediaSearchParameters,\r\n): Resource<MediaSearchResponse, 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: `${wowSearchBasePath}/media`,\r\n };\r\n}\r\n","import { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowMediaBasePath}/playable-class/${playableClassId}`,\r\n };\r\n}\r\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/playable-race/index`,\r\n };\r\n}\r\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/power-type/index`,\r\n };\r\n}\r\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/pvp-season/index`,\r\n };\r\n}\r\n","import { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type { RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponse } 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: `${wowBasePath}/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: `${wowBasePath}/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 RealmSearchResponse}.\r\n */\r\nexport function realmSearch(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\r\n options: RealmSearchParameters,\r\n): Resource<RealmSearchResponse, 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: `${wowSearchBasePath}/realm`,\r\n };\r\n}\r\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/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"],"mappings":";;;;;;;;;AAUA,SAAgB,kBACd,WACA,kBACqC;AACrC,QAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB,iBAAiB;EAC1D;;;;;;;;;;;;;AAaH,SAAgB,SACd,WACA,kBACA,gBAC4B;AAC5B,QAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB,iBAAiB,YAAY;EACtE;;;;;;;;;;;AC5BH,SAAgB,6BACd,WACA,WACA,eACgD;AAChD,QAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,aAAa,CAAC;EAC3E;;;;;;;;AASH,SAAgB,+BACd,WACA,WACA,eACkD;AAClD,QAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,aAAa,CAAC;EAC3E;;;;;;;;;;;;ACxBH,SAAgB,0BACd,WACA,WACA,eAC6C;AAC7C,QAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;EAC7D;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A,aACA,aACmB;AACnB,QAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc,YAAY,cAAc,YAAY;EAC1E;;;;;;;;AAQH,SAAgB,UACd,WACA,aAC6B;AAC7B,QAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc;EACpC;;;;;;;AAOH,SAAgB,eACd,WACkC;AAClC,QAAO;EACL;EACA,MAAM,GAAG,YAAY;EACtB;;;;;;;;;;;ACtHH,SAAgB,MACd,WACA,WACyB;AACzB,QAAO;EACL;EACA,MAAM,GAAG,YAAY,SAAS;EAC/B;;;;;;;AAOH,SAAgB,WACd,WAC8B;AAC9B,QAAO;EACL;EACA,MAAM,GAAG,YAAY;EACtB;;;;;;;;AAQH,SAAgB,YACd,WACA,SACsD;AACtD,QAAO;EACL;EACA,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC9E,UAAU,QAAQ;GACnB;EACD,MAAM,GAAG,kBAAkB;EAC5B;;;;;;;;;;;ACxCH,SAAgB,OACd,WACA,UAC0B;AAC1B,QAAO;EACL;EACA,MAAM,GAAG,YAAY,UAAU;EAChC;;;;;;;AAOH,SAAgB,YACd,WAC+B;AAC/B,QAAO;EACL;EACA,MAAM,GAAG,YAAY;EACtB;;;;;ACYH,MAAM,aAAa;CAEjB;CACA;CAEA;CACA;CAEA;CAEA;CAEA;CAEA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACD"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/auction-house/auction-house.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"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${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: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/equipment`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/hunter-pets`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/character-media`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${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: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/specializations`,\n };\n}\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\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: `${wowCharacterBasePath}/${realmSlug}/${characterName}/statistics`,\n };\n}\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type {\r\n ConnectedRealmIndexResponse,\r\n ConnectedRealmResponse,\r\n ConnectedRealmSearchParameters,\r\n ConnectedRealmSearchResponse,\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: `${wowBasePath}/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: `${wowBasePath}/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 ConnectedRealmSearchResponse}.\r\n */\r\nexport function connectedRealmSearch(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\r\n options: ConnectedRealmSearchParameters,\r\n): Resource<ConnectedRealmSearchResponse, 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: `${wowBasePath}/search/connected-realm`,\r\n };\r\n}\r\n","import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type {\r\n CreatureDisplayMediaResponse,\r\n CreatureFamilyIndexResponse,\r\n CreatureFamilyMediaResponse,\r\n CreatureFamilyResponse,\r\n CreatureResponse,\r\n CreatureSearchParameters,\r\n CreatureSearchResponse,\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: `${wowBasePath}/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: `${wowMediaBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowMediaBasePath}/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 CreatureSearchResponse}.\r\n */\r\nexport function creatureSearch(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\r\n options: CreatureSearchParameters,\r\n): Resource<CreatureSearchResponse, 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: `${wowSearchBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/creature-type/index`,\r\n };\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\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: `${wowMediaBasePath}/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: `${wowBasePath}/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: `${wowMediaBasePath}/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 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 { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type {\r\n ItemClassIndexResponse,\r\n ItemClassResponse,\r\n ItemMediaResponse,\r\n ItemResponse,\r\n ItemSearchParameters,\r\n ItemSearchResponse,\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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowMediaBasePath}/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 ItemSearchResponse}.\r\n */\r\nexport function itemSearch(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\r\n options: ItemSearchParameters,\r\n): Resource<ItemSearchResponse, 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: `${wowSearchBasePath}/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: `${wowBasePath}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,\r\n };\r\n}\r\n","import { wowSearchBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type { MediaSearchParameters, MediaSearchResponse } 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 MediaSearchResponse}.\r\n */\r\nexport function mediaSearch(\r\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\r\n options: MediaSearchParameters,\r\n): Resource<MediaSearchResponse, 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: `${wowSearchBasePath}/media`,\r\n };\r\n}\r\n","import { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowMediaBasePath}/playable-class/${playableClassId}`,\r\n };\r\n}\r\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/playable-race/index`,\r\n };\r\n}\r\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/power-type/index`,\r\n };\r\n}\r\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/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: `${wowBasePath}/pvp-season/index`,\r\n };\r\n}\r\n","import { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport type { RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponse } 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: `${wowBasePath}/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: `${wowBasePath}/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 RealmSearchResponse}.\r\n */\r\nexport function realmSearch(\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\r\n options: RealmSearchParameters,\r\n): Resource<RealmSearchResponse, 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: `${wowSearchBasePath}/realm`,\r\n };\r\n}\r\n","import { wowBasePath } from '@blizzard-api/core';\r\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\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: `${wowBasePath}/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: `${wowBasePath}/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"],"mappings":";;;;;;;;AAUA,SAAgB,kBACd,WACA,kBACqC;AACrC,QAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB,iBAAiB;EAC1D;;;;;;;;;;;;;AAaH,SAAgB,SACd,WACA,kBACA,gBAC4B;AAC5B,QAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB,iBAAiB,YAAY;EACtE;;;;;;;;;;AC5BH,SAAgB,6BACd,WACA,WACA,eACgD;AAChD,QAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,aAAa,CAAC;EAC3E;;;;;;;;AASH,SAAgB,+BACd,WACA,WACA,eACkD;AAClD,QAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,aAAa,CAAC;EAC3E;;;;;;;;;;;ACxBH,SAAgB,0BACd,WACA,WACA,eAC6C;AAC7C,QAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;EAC7D;;;;;;;;;;;ACRH,SAAgB,2BACd,WACA,WACA,eAC8C;AAC9C,QAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;EAC7D;;;;;;;;;;ACTH,SAAgB,sBACd,WACA,WACA,eACyC;AACzC,QAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;EAC7D;;;;;;;;;;;;;;;;;;;;;ACGH,SAAgB,uBACd,WACA,WACA,eACiG;AACjG,QAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,aA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AAO;EACL;EACA,MAAM,GAAG,YAAY;EACtB;;;;;;;;AAQH,SAAgB,YACd,WACA,SACsD;AACtD,QAAO;EACL;EACA,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,QAAQ,GAAG,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ;GAC9E,UAAU,QAAQ;GACnB;EACD,MAAM,GAAG,kBAAkB;EAC5B;;;;;;;;;;ACxCH,SAAgB,OACd,WACA,UAC0B;AAC1B,QAAO;EACL;EACA,MAAM,GAAG,YAAY,UAAU;EAChC;;;;;;;AAOH,SAAgB,YACd,WAC+B;AAC/B,QAAO;EACL;EACA,MAAM,GAAG,YAAY;EACtB;;;;ACYH,MAAM,aAAa;CAEjB;CACA;CAEA;CACA;CAEA;CAEA;CAEA;CAEA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blizzard-api/classic-wow",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
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": "3.0.1"
37
+ "@blizzard-api/core": "3.0.2"
38
38
  },
39
39
  "devDependencies": {
40
- "@blizzard-api/core": "3.0.1"
40
+ "@blizzard-api/core": "3.0.2"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsdown",