@blizzard-api/classic-wow 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/dist/index.cjs +633 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1044 -0
- package/dist/index.d.ts +1044 -0
- package/dist/index.js +606 -0
- package/dist/index.js.map +1 -0
- package/package.json +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../wow/src/base.ts","../src/auction-house/auction-house.ts","../src/connected-realm/connected-realm.ts","../src/creature/creature.ts","../src/guild-crest/guild-crest.ts","../src/item/item.ts","../src/media-search/media-search.ts","../src/playable-class/playable-class.ts","../src/playable-race/playable-race.ts","../src/power-type/power-type.ts","../src/pvp-season/pvp-season.ts","../src/realm/realm.ts","../src/region/region.ts","../src/index.ts"],"sourcesContent":["/**\r\n * @file base.ts\r\n * @module base\r\n * @description Contains base constants and interfaces for the Blizzard API.\r\n */\r\n\r\n/**\r\n * The base request path for the Blizzard API for world of warcraft.\r\n */\r\nexport const base = '/data/wow';\r\n\r\n/**\r\n * The base request path for media in the Blizzard API for world of warcraft.\r\n */\r\nexport const mediaBase = `${base}/media` as const;\r\n\r\n/**\r\n * The base request path for search in the Blizzard API for world of warcraft.\r\n */\r\nexport const searchBase = `${base}/search` as const;\r\n\r\n/**\r\n * Base interface for Blizzard API responses.\r\n */\r\nexport interface ResponseBase {\r\n _links: {\r\n self: {\r\n href: string;\r\n };\r\n };\r\n}\r\n\r\n/**\r\n * Base record interface containing key.href property that often appear in Blizzard API responses.\r\n */\r\nexport interface KeyBase {\r\n key: {\r\n href: string;\r\n };\r\n}\r\n\r\n/**\r\n * Base record interface containing name and id properties that often appear together in Blizzard API responses.\r\n */\r\nexport interface NameId {\r\n name: string;\r\n id: number;\r\n}\r\n\r\n/**\r\n * Base record containing both {@link KeyBase} and {@link NameId} interfaces.\r\n */\r\nexport interface NameIdKey extends KeyBase, NameId {}\r\n\r\n/**\r\n * A record containing the RGBA values of a color.\r\n */\r\nexport interface Color {\r\n r: number;\r\n g: number;\r\n b: number;\r\n a: number;\r\n}\r\n\r\n/**\r\n * The media asset associated with a character or entity in World of Warcraft.\r\n */\r\nexport interface MediaAsset {\r\n key: string;\r\n value: string;\r\n file_data_id: number;\r\n}\r\n\r\n/**\r\n * The playable genders in World of Warcraft.\r\n */\r\nexport interface Gender {\r\n male: string;\r\n female: string;\r\n}\r\n\r\n/**\r\n * The playable factions in World of Warcraft.\r\n */\r\nexport const Factions = {\r\n ALLIANCE: 'ALLIANCE',\r\n HORDE: 'HORDE',\r\n} as const;\r\n\r\n/**\r\n * The faction associated with a character or entity in World of Warcraft.\r\n */\r\nexport interface Faction {\r\n type: keyof typeof Factions;\r\n name: Capitalize<Lowercase<keyof typeof Factions>>;\r\n}\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { AuctionHouseIndexResponse, AuctionsResponse } from './types';\r\n\r\nexport const classicAuctionHouseApi = {\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\n auctionHouseIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n connectedRealmId: number,\r\n ): Resource<AuctionHouseIndexResponse> => {\r\n return {\r\n path: `${base}/connected-realm/${connectedRealmId}/auctions/index`,\r\n namespace,\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\n auctions: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n connectedRealmId: number,\r\n auctionHouseId: number,\r\n ): Resource<AuctionsResponse> => {\r\n return {\r\n path: `${base}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`,\r\n namespace,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type {\r\n ConnectedRealmIndexResponse,\r\n ConnectedRealmResponse,\r\n ConnectedRealmSearchParameters,\r\n ConnectedRealmSearchResponseItem,\r\n} from './types';\r\n\r\nexport const classicConnectedRealmApi = {\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\n connectedRealmIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n ): Resource<ConnectedRealmIndexResponse> => {\r\n return {\r\n path: `${base}/connected-realm/index`,\r\n namespace,\r\n };\r\n },\r\n /**\r\n * Returns a connected realm by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param connectedRealmId The connected realm ID.\r\n * @returns The connected realm. See {@link ConnectedRealmResponse}.\r\n */\r\n connectedRealm: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n connectedRealmId: number,\r\n ): Resource<ConnectedRealmResponse> => {\r\n return {\r\n path: `${base}/connected-realm/${connectedRealmId}`,\r\n namespace,\r\n };\r\n },\r\n /**\r\n * Performs a search of connected realms.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param options The search parameters. See {@link ConnectedRealmSearchParameters}.\r\n * @returns The search results. See {@link SearchResponse} & {@link ConnectedRealmSearchResponseItem}.\r\n */\r\n connectedRealmSearch: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n options: ConnectedRealmSearchParameters,\r\n ): Resource<SearchResponse<ConnectedRealmSearchResponseItem>, ConnectedRealmSearchParameters> => {\r\n return {\r\n namespace,\r\n parameters: {\r\n _page: options._page,\r\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\r\n 'status.type': options['status.type'],\r\n 'realms.timezone': options['realms.timezone'],\r\n },\r\n path: `${base}/search/connected-realm`,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { base, mediaBase, searchBase } from '../../../wow/src/base';\r\nimport type {\r\n CreatureDisplayMediaResponse,\r\n CreatureFamilyIndexResponse,\r\n CreatureFamilyMediaResponse,\r\n CreatureFamilyResponse,\r\n CreatureResponse,\r\n CreatureSearchParameters,\r\n CreatureSearchResponseItem,\r\n CreatureTypeIndexResponse,\r\n CreatureTypeResponse,\r\n} from './types';\r\n\r\nexport const classicCreatureApi = {\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\n creature: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureId: number,\r\n ): Resource<CreatureResponse> => {\r\n return {\r\n path: `${base}/creature/${creatureId}`,\r\n namespace,\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\n creatureDisplayMedia: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureDisplayId: number,\r\n ): Resource<CreatureDisplayMediaResponse> => {\r\n return {\r\n path: `${mediaBase}/creature-display/${creatureDisplayId}`,\r\n namespace,\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\n creatureFamily: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureFamilyId: number,\r\n ): Resource<CreatureFamilyResponse> => {\r\n return {\r\n path: `${base}/creature-family/${creatureFamilyId}`,\r\n namespace,\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\n creatureFamilyIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n ): Resource<CreatureFamilyIndexResponse> => {\r\n return {\r\n path: `${base}/creature-family/index`,\r\n namespace,\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\n creatureFamilyMedia: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureFamilyId: number,\r\n ): Resource<CreatureFamilyMediaResponse> => {\r\n return {\r\n path: `${mediaBase}/creature-family/${creatureFamilyId}`,\r\n namespace,\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\n creatureType: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n creatureTypeId: number,\r\n ): Resource<CreatureTypeResponse> => {\r\n return {\r\n path: `${base}/creature-type/${creatureTypeId}`,\r\n namespace,\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\n creatureTypeIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n ): Resource<CreatureTypeIndexResponse> => {\r\n return {\r\n path: `${base}/creature-type/index`,\r\n namespace,\r\n };\r\n },\r\n /**\r\n * Performs a search of creatures.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param options The creature search parameters. See {@link CreatureSearchParameters}.\r\n * @returns The creature search results. See {@link SearchResponse} & {@link CreatureSearchResponseItem}.\r\n */\r\n creatureSearch: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n options: CreatureSearchParameters,\r\n ): Resource<SearchResponse<CreatureSearchResponseItem>, Omit<CreatureSearchParameters, 'name' | 'locale'>> => {\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 [`name.${options.locale}`]: options.name,\r\n },\r\n path: `${searchBase}/creature`,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base, mediaBase } from '../../../wow/src/base';\r\nimport type { GuildCrestBorderEmblemResponse, GuildCrestComponentsIndexResponse } from './types';\r\n\r\nexport const classicGuildCrestApi = {\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\n guildCrestComponentsIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n ): Resource<GuildCrestComponentsIndexResponse> => {\r\n return {\r\n path: `${base}/guild-crest/index`,\r\n namespace,\r\n };\r\n },\r\n /**\r\n * Returns media for a guild crest border by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param borderId The guild crest border ID.\r\n * @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.\r\n */\r\n guildCrestBorder: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n borderId: number,\r\n ): Resource<GuildCrestBorderEmblemResponse> => {\r\n return {\r\n path: `${mediaBase}/guild-crest/border/${borderId}`,\r\n namespace,\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\n guildCrestEmblem: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n emblemId: number,\r\n ): Resource<GuildCrestBorderEmblemResponse> => {\r\n return {\r\n path: `${mediaBase}/guild-crest/emblem/${emblemId}`,\r\n namespace,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { base, mediaBase, searchBase } from '../../../wow/src/base';\r\nimport type {\r\n ItemClassIndexResponse,\r\n ItemClassResponse,\r\n ItemMediaResponse,\r\n ItemResponse,\r\n ItemSearchParameters,\r\n ItemSearchResponseItem,\r\n ItemSubClassResponse,\r\n} from './types';\r\n\r\nexport const classicItemApi = {\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\n itemClassIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n ): Resource<ItemClassIndexResponse> => {\r\n return {\r\n path: `${base}/item-class/index`,\r\n namespace,\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\n itemClass: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n itemClassId: number,\r\n ): Resource<ItemClassResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/item-class/${itemClassId}`,\r\n };\r\n },\r\n /**\r\n * Get an item subclass by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param itemClassId The item class ID.\r\n * @param itemSubclassId The item subclass ID.\r\n * @returns The item subclass. See {@link ItemSubClassResponse}.\r\n */\r\n itemSubClass: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n itemClassId: number,\r\n itemSubclassId: number,\r\n ): Resource<ItemSubClassResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,\r\n };\r\n },\r\n /**\r\n * Get an item by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param itemId The item ID.\r\n * @returns The item. See {@link ItemResponse}.\r\n */\r\n item: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n itemId: number,\r\n ): Resource<ItemResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/item/${itemId}`,\r\n };\r\n },\r\n /**\r\n * Get item media by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param itemId The item ID.\r\n * @returns The item media. See {@link ItemMediaResponse}.\r\n */\r\n itemMedia: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n itemId: number,\r\n ): Resource<ItemMediaResponse> => {\r\n return {\r\n namespace,\r\n path: `${mediaBase}/item/${itemId}`,\r\n };\r\n },\r\n /**\r\n * Search for items.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param options The search parameters. See {@link ItemSearchParameters}.\r\n * @returns The search results. See {@link SearchResponse}.\r\n */\r\n itemSearch: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n options: ItemSearchParameters,\r\n ): Resource<SearchResponse<ItemSearchResponseItem>, Omit<ItemSearchParameters, 'name' | 'locale'>> => {\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 [`name.${options.locale}`]: options.name,\r\n },\r\n path: `${searchBase}/item`,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { searchBase } from '../../../wow/src/base';\r\nimport type { MediaSearchParameters, MediaSearchResponseItem } from './types';\r\n\r\nexport const classicMediaSearchApi = {\r\n /**\r\n * Search for media.\r\n * @param options The search parameters. See {@link MediaSearchParameters}.\r\n * @returns The search results. See {@link SearchResponse}.\r\n */\r\n mediaSearch: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n options: MediaSearchParameters,\r\n ): Resource<SearchResponse<MediaSearchResponseItem>, MediaSearchParameters> => {\r\n return {\r\n namespace,\r\n parameters: {\r\n _page: options._page,\r\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\r\n tags: options.tags,\r\n },\r\n path: `${searchBase}/media`,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base, mediaBase } from '../../../wow/src/base';\r\nimport type { PlayableClassIndexResponse, PlayableClassMediaResponse, PlayableClassResponse } from './types';\r\n\r\nexport const classicPlayableClassApi = {\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\n playableClass: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n playableClassId: number,\r\n ): Resource<PlayableClassResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/playable-class/${playableClassId}`,\r\n };\r\n },\r\n /**\r\n * Get a playable class index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The playable class index. See {@link PlayableClassIndexResponse}.\r\n */\r\n playableClassIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n ): Resource<PlayableClassIndexResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/playable-class/index`,\r\n };\r\n },\r\n /**\r\n * Get playable class media by ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param playableClassId The playable class ID.\r\n * @returns The playable class media. See {@link PlayableClassMediaResponse}.\r\n */\r\n playableClassMedia: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n playableClassId: number,\r\n ): Resource<PlayableClassMediaResponse> => {\r\n return {\r\n namespace,\r\n path: `${mediaBase}/playable-class/${playableClassId}`,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { PlayableRaceIndexResponse, PlayableRaceResponse } from './types';\r\n\r\nexport const classicPlayableRaceApi = {\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\n playableRace: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n playableRaceId: number,\r\n ): Resource<PlayableRaceResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/playable-race/${playableRaceId}`,\r\n };\r\n },\r\n /**\r\n * Get a playable race index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The playable race index. See {@link PlayableRaceIndexResponse}.\r\n */\r\n playableRaceIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n ): Resource<PlayableRaceIndexResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/playable-race/index`,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { PowerTypeIndexResponse, PowerTypeResponse } from './types';\r\n\r\nexport const classicPowerTypeApi = {\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\n powerType: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n powerTypeId: number,\r\n ): Resource<PowerTypeResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/power-type/${powerTypeId}`,\r\n };\r\n },\r\n /**\r\n * Get a power type index.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @returns The power type index. See {@link PowerTypeIndexResponse}.\r\n */\r\n powerTypeIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'static-classic' | 'static-classic1x'>,\r\n ): Resource<PowerTypeIndexResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/power-type/index`,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { PvpSeasonIndexResponse, PvpSeasonResponse } from './types';\r\n\r\nexport const classicPvpSeasonApi = {\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\n pvpSeasonIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n ): Resource<PvpSeasonIndexResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-season/index`,\r\n };\r\n },\r\n /**\r\n * Get a PvP season by ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n * @returns The PvP season. See {@link PvpSeasonResponse}.\r\n */\r\n pvpSeason: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpSeasonId: number,\r\n ): Resource<PvpSeasonResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-season/${pvpSeasonId}`,\r\n };\r\n },\r\n /**\r\n * Returns an index of PvP Regions.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n */\r\n pvpRegionIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n ): Resource<unknown> => {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/index`,\r\n };\r\n },\r\n /**\r\n * Returns an index of PvP Seasons in a PvP region.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.\r\n */\r\n pvpRegionalSeasonIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n ): Resource<PvpSeasonIndexResponse> => {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/index`,\r\n };\r\n },\r\n /**\r\n * Returns a PvP season by region ID and season ID.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n */\r\n pvpRegionalSeason: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n pvpSeasonId: number,\r\n ): Resource<unknown> => {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`,\r\n };\r\n },\r\n /**\r\n * Returns an index of PvP leaderboards for a PvP season in a given PvP region.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n */\r\n pvpLeaderboardIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n pvpSeasonId: number,\r\n ): Resource<unknown> => {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,\r\n };\r\n },\r\n /**\r\n * Get a PvP leaderboard by PvP season ID and bracket.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n * @param pvpBracket The PvP bracket.\r\n */\r\n pvpLeaderboard: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n pvpSeasonId: number,\r\n pvpBracket: string,\r\n ): Resource<unknown> => {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`,\r\n };\r\n },\r\n /**\r\n * Returns an index of PvP rewards for a PvP season in a given PvP region.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param pvpRegionId The PvP region ID.\r\n * @param pvpSeasonId The PvP season ID.\r\n */\r\n pvpRewardsIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n pvpRegionId: number,\r\n pvpSeasonId: number,\r\n ): Resource<unknown> => {\r\n return {\r\n namespace,\r\n path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource, SearchResponse } from '@blizzard-api/core';\r\nimport { base, searchBase } from '../../../wow/src/base';\r\nimport type { RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponseItem } from './types';\r\n\r\nexport const classicRealmApi = {\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\n realm: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n realmSlug: string,\r\n ): Resource<RealmResponse> => {\r\n return {\r\n path: `${base}/realm/${realmSlug}`,\r\n namespace,\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\n realmIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n ): Resource<RealmIndexResponse> => {\r\n return {\r\n path: `${base}/realm/index`,\r\n namespace,\r\n };\r\n },\r\n /**\r\n * Search for realms.\r\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\r\n * @param options The search parameters. See {@link RealmSearchParameters}.\r\n * @returns The search results. See {@link SearchResponse}.\r\n */\r\n realmSearch: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n options: RealmSearchParameters,\r\n ): Resource<SearchResponse<RealmSearchResponseItem>, RealmSearchParameters> => {\r\n return {\r\n namespace,\r\n parameters: {\r\n _page: options._page,\r\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\r\n timezone: options.timezone,\r\n },\r\n path: `${searchBase}/realm`,\r\n };\r\n },\r\n};\r\n","import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\r\nimport { base } from '../../../wow/src/base';\r\nimport type { RegionIndexResponse, RegionResponse } from './types';\r\n\r\nexport const classicRegionApi = {\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\n region: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n regionId: number,\r\n ): Resource<RegionResponse> => {\r\n return {\r\n path: `${base}/region/${regionId}`,\r\n namespace,\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\n regionIndex: (\r\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic' | 'dynamic-classic1x'>,\r\n ): Resource<RegionIndexResponse> => {\r\n return {\r\n path: `${base}/region/index`,\r\n namespace,\r\n };\r\n },\r\n};\r\n","import { classicAuctionHouseApi } from './auction-house/auction-house';\r\nimport { classicConnectedRealmApi } from './connected-realm/connected-realm';\r\nimport { classicCreatureApi } from './creature/creature';\r\nimport { classicGuildCrestApi } from './guild-crest/guild-crest';\r\nimport { classicItemApi } from './item/item';\r\nimport { classicMediaSearchApi } from './media-search/media-search';\r\nimport { classicPlayableClassApi } from './playable-class/playable-class';\r\nimport { classicPlayableRaceApi } from './playable-race/playable-race';\r\nimport { classicPowerTypeApi } from './power-type/power-type';\r\nimport { classicPvpSeasonApi } from './pvp-season/pvp-season';\r\nimport { classicRealmApi } from './realm/realm';\r\nimport { classicRegionApi } from './region/region';\r\n\r\nexport const classicWow = {\r\n ...classicAuctionHouseApi,\r\n ...classicConnectedRealmApi,\r\n ...classicCreatureApi,\r\n ...classicGuildCrestApi,\r\n ...classicItemApi,\r\n ...classicMediaSearchApi,\r\n ...classicPlayableClassApi,\r\n ...classicPlayableRaceApi,\r\n ...classicPowerTypeApi,\r\n ...classicPvpSeasonApi,\r\n ...classicRealmApi,\r\n ...classicRegionApi,\r\n};\r\n\r\n//Auction House\r\nexport type * from './auction-house/types';\r\n//Connected Realm\r\nexport type * from './connected-realm/types';\r\n//Creature\r\nexport type * from './creature/types';\r\n//Guild Crest\r\nexport type * from './guild-crest/types';\r\n//Item\r\nexport type * from './item/types.js';\r\n//Media Search\r\nexport type * from './media-search/types';\r\n//Playable Class\r\nexport type * from './playable-class/types';\r\n//Playable Race\r\nexport type * from './playable-race/types.js';\r\n//Power Type\r\nexport type * from './power-type/types';\r\n//Pvp Season\r\nexport type * from './pvp-season/types';\r\n//Realm\r\nexport type * from './realm/types';\r\n//Region\r\nexport type * from './region/types';\r\n"],"mappings":";AASO,IAAM,OAAO;AAKb,IAAM,YAAY,GAAG,IAAI;AAKzB,IAAM,aAAa,GAAG,IAAI;;;ACf1B,IAAM,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOpC,mBAAmB,CACjB,WACA,qBACwC;AACxC,WAAO;AAAA,MACL,MAAM,GAAG,IAAI,oBAAoB,gBAAgB;AAAA,MACjD;AAAA,IACF;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,UAAU,CACR,WACA,kBACA,mBAC+B;AAC/B,WAAO;AAAA,MACL,MAAM,GAAG,IAAI,oBAAoB,gBAAgB,aAAa,cAAc;AAAA,MAC5E;AAAA,IACF;AAAA,EACF;AACF;;;AChCO,IAAM,2BAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMtC,qBAAqB,CACnB,cAC0C;AAC1C,WAAO;AAAA,MACL,MAAM,GAAG,IAAI;AAAA,MACb;AAAA,IACF;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,gBAAgB,CACd,WACA,qBACqC;AACrC,WAAO;AAAA,MACL,MAAM,GAAG,IAAI,oBAAoB,gBAAgB;AAAA,MACjD;AAAA,IACF;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,sBAAsB,CACpB,WACA,YAC+F;AAC/F,WAAO;AAAA,MACL;AAAA,MACA,YAAY;AAAA,QACV,OAAO,QAAQ;AAAA,QACf,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,K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name": "@blizzard-api/classic-wow",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "Putro",
|
|
6
|
+
"description": "A series of helpers to interact with the World of Warcraft Classic Blizzard API",
|
|
7
|
+
"repository": "https://github.com/Pewtro/blizzard/tree/main/packages/classic-wow",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": "^18.18 || ^20.9 || ^21.1 || ^22"
|
|
11
|
+
},
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.cts",
|
|
20
|
+
"default": "./dist/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"blizzard",
|
|
28
|
+
"battlenet",
|
|
29
|
+
"battle.net",
|
|
30
|
+
"bnet",
|
|
31
|
+
"api",
|
|
32
|
+
"world of warcraft",
|
|
33
|
+
"warcraft",
|
|
34
|
+
"wow",
|
|
35
|
+
"classic"
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@blizzard-api/core": "0.1.2"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@blizzard-api/core": "0.1.2"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsup",
|
|
46
|
+
"dev": "tsup --watch",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"test:coverage": "pnpm test -- --coverage",
|
|
49
|
+
"test:watch": "vitest watch"
|
|
50
|
+
}
|
|
51
|
+
}
|