@blizzard-api/classic-wow 4.0.1 → 4.0.3
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/auction-house/index.d.ts +1 -1
- package/dist/auction-house/index.js.map +1 -1
- package/dist/character-achievements/index.d.ts +1 -1
- package/dist/character-achievements/index.js.map +1 -1
- package/dist/character-equipment/index.d.ts +1 -1
- package/dist/character-equipment/index.js.map +1 -1
- package/dist/character-hunter-pets/index.d.ts +1 -1
- package/dist/character-hunter-pets/index.js.map +1 -1
- package/dist/character-media/index.d.ts +1 -1
- package/dist/character-media/index.js.map +1 -1
- package/dist/character-profile/index.d.ts +1 -1
- package/dist/character-profile/index.js.map +1 -1
- package/dist/character-specialization/index.d.ts +1 -1
- package/dist/character-specialization/index.js.map +1 -1
- package/dist/character-statistics/index.d.ts +1 -1
- package/dist/character-statistics/index.js.map +1 -1
- package/dist/connected-realm/index.d.ts +1 -1
- package/dist/connected-realm/index.js.map +1 -1
- package/dist/creature/index.d.ts +1 -1
- package/dist/creature/index.js.map +1 -1
- package/dist/guild/index.d.ts +1 -1
- package/dist/guild/index.js.map +1 -1
- package/dist/guild-crest/index.d.ts +1 -1
- package/dist/guild-crest/index.js.map +1 -1
- package/dist/{index-BQ-NY0vY.d.ts → index-B-VqiR5M.d.ts} +2 -2
- package/dist/{index-DDSvssGG.d.ts → index-B6StSA9x.d.ts} +1 -1
- package/dist/{index-DmVmLB_p.d.ts → index-BasleWQV.d.ts} +1 -1
- package/dist/{index-i0vuifJx.d.ts → index-Bhbxn20V.d.ts} +1 -1
- package/dist/{index-y_6cJbJi.d.ts → index-CCwgy2wL.d.ts} +2 -1
- package/dist/{index-BHX6BR24.d.ts → index-CJiJZAWv.d.ts} +1 -1
- package/dist/{index-DajMx-uR.d.ts → index-CKDEzHkG.d.ts} +1 -1
- package/dist/{index--VDjAqSZ.d.ts → index-Cc7A_CAM.d.ts} +1 -1
- package/dist/{index-Djpr-_AW.d.ts → index-Cqy8Y_P6.d.ts} +1 -1
- package/dist/{index-B-LUShkQ.d.ts → index-D8__FnYd.d.ts} +1 -1
- package/dist/{index-BtfmrbYY.d.ts → index-DKAEJgTL.d.ts} +1 -1
- package/dist/{index-0TuKK7MU.d.ts → index-DNSNIrMa.d.ts} +1 -1
- package/dist/{index-Ce02MoQO.d.ts → index-DNjZhNTp.d.ts} +1 -1
- package/dist/{index-BrwXCy4D.d.ts → index-DnI9eRyo.d.ts} +1 -1
- package/dist/{index-u8N9Fa6T.d.ts → index-DpZoeKRC.d.ts} +5 -5
- package/dist/{index-DSc_fuNb.d.ts → index-EuBtcMpe.d.ts} +1 -1
- package/dist/{index-DUgdQv4k.d.ts → index-Sk4p8uj-.d.ts} +1 -1
- package/dist/{index-BZ8QSRSe.d.ts → index-o_aGwW_V.d.ts} +1 -1
- package/dist/{index-C7VwaWu6.d.ts → index-vj38PXa1.d.ts} +1 -1
- package/dist/index.d.ts +22 -22
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/item/index.d.ts +2 -2
- package/dist/item/index.js +3 -3
- package/dist/item/index.js.map +1 -1
- package/dist/media-search/index.d.ts +1 -1
- package/dist/media-search/index.js.map +1 -1
- package/dist/playable-class/index.d.ts +1 -1
- package/dist/playable-class/index.js.map +1 -1
- package/dist/playable-race/index.d.ts +1 -1
- package/dist/playable-race/index.js.map +1 -1
- package/dist/power-type/index.d.ts +1 -1
- package/dist/power-type/index.js.map +1 -1
- package/dist/pvp-season/index.d.ts +1 -1
- package/dist/pvp-season/index.js.map +1 -1
- package/dist/realm/index.d.ts +1 -1
- package/dist/realm/index.js.map +1 -1
- package/dist/region/index.d.ts +1 -1
- package/dist/region/index.js.map +1 -1
- package/dist/{types-gA98D5Xw.d.ts → types-D9Lx7rpR.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as auctions, t as auctionHouseIndex } from "../index-
|
|
1
|
+
import { n as auctions, t as auctionHouseIndex } from "../index-EuBtcMpe.js";
|
|
2
2
|
export { auctionHouseIndex, auctions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/auction-house/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { AuctionHouseIndexResponse, AuctionsResponse } from './types';\n\n/**\n * Returns an index of auction houses for a connected realm.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param connectedRealmId The ID of the connected realm.\n * @returns The auction house index. See {@link AuctionHouseIndexResponse}.\n */\nexport function auctionHouseIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n connectedRealmId: number,\n): Resource<AuctionHouseIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/index`,\n };\n}\n/**\n * Returns all active auctions for a specific auction house on a connected realm.\n *\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.\n *\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.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param connectedRealmId The ID of the connected realm.\n * @param auctionHouseId The ID of the auction house.\n * @returns The auction house data. See {@link AuctionsResponse}.\n */\nexport function auctions(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n connectedRealmId: number,\n auctionHouseId: number,\n): Resource<AuctionsResponse> {\n return {\n namespace,\n path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,kBACd,WACA,kBACqC;CACrC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB,iBAAiB;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/auction-house/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { AuctionHouseIndexResponse, AuctionsResponse } from './types';\n\n/**\n * Returns an index of auction houses for a connected realm.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param connectedRealmId The ID of the connected realm.\n * @returns The auction house index. See {@link AuctionHouseIndexResponse}.\n */\nexport function auctionHouseIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n connectedRealmId: number,\n): Resource<AuctionHouseIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/index`,\n };\n}\n/**\n * Returns all active auctions for a specific auction house on a connected realm.\n *\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.\n *\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.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param connectedRealmId The ID of the connected realm.\n * @param auctionHouseId The ID of the auction house.\n * @returns The auction house data. See {@link AuctionsResponse}.\n */\nexport function auctions(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n connectedRealmId: number,\n auctionHouseId: number,\n): Resource<AuctionsResponse> {\n return {\n namespace,\n path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,kBACd,WACA,kBACqC;CACrC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB,iBAAiB;CAC3D;AACF;;;;;;;;;;;;AAYA,SAAgB,SACd,WACA,kBACA,gBAC4B;CAC5B,OAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB,iBAAiB,YAAY;CACvE;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as characterAchievementsSummary, t as characterAchievementStatistics } from "../index-
|
|
1
|
+
import { n as characterAchievementsSummary, t as characterAchievementStatistics } from "../index-o_aGwW_V.js";
|
|
2
2
|
export { characterAchievementStatistics, characterAchievementsSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-achievements/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;AAUA,SAAgB,6BACd,WACA,WACA,eACgD;CAChD,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-achievements/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;AAUA,SAAgB,6BACd,WACA,WACA,eACgD;CAChD,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAC5E;AACF;;;;;;;AAQA,SAAgB,+BACd,WACA,WACA,eACkD;CAClD,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAC5E;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as characterEquipmentSummary } from "../index-
|
|
1
|
+
import { t as characterEquipmentSummary } from "../index-CJiJZAWv.js";
|
|
2
2
|
export { characterEquipmentSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-equipment/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;AAWA,SAAgB,0BACd,WACA,WACA,eAC6C;CAC7C,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-equipment/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;AAWA,SAAgB,0BACd,WACA,WACA,eAC6C;CAC7C,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as characterHunterPetsSummary } from "../index-
|
|
1
|
+
import { t as characterHunterPetsSummary } from "../index-DKAEJgTL.js";
|
|
2
2
|
export { characterHunterPetsSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-hunter-pets/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;AAWA,SAAgB,2BACd,WACA,WACA,eAC8C;CAC9C,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-hunter-pets/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;AAWA,SAAgB,2BACd,WACA,WACA,eAC8C;CAC9C,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as characterMediaSummary } from "../index
|
|
1
|
+
import { t as characterMediaSummary } from "../index-Cc7A_CAM.js";
|
|
2
2
|
export { characterMediaSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-media/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;AAUA,SAAgB,sBACd,WACA,WACA,eACyC;CACzC,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-media/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;AAUA,SAAgB,sBACd,WACA,WACA,eACyC;CACzC,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as characterProfileSummary, t as characterProfileStatus } from "../index-
|
|
1
|
+
import { n as characterProfileSummary, t as characterProfileStatus } from "../index-DNSNIrMa.js";
|
|
2
2
|
export { characterProfileStatus, characterProfileSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-profile/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,uBACd,WACA,WACA,eACiG;CACjG,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-profile/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,uBACd,WACA,WACA,eACiG;CACjG,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY,EAAE;CAC5E;AACF;;;;;;;;AASA,SAAgB,wBACd,WACA,WACA,eAC2C;CAC3C,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc,YAAY;CAC1E;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as characterSpecializationsSummary } from "../index-
|
|
1
|
+
import { t as characterSpecializationsSummary } from "../index-BasleWQV.js";
|
|
2
2
|
export { characterSpecializationsSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-specialization/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;AAUA,SAAgB,gCACd,WACA,WACA,eACmD;CACnD,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-specialization/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;AAUA,SAAgB,gCACd,WACA,WACA,eACmD;CACnD,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as characterStatisticsSummary } from "../index-
|
|
1
|
+
import { t as characterStatisticsSummary } from "../index-vj38PXa1.js";
|
|
2
2
|
export { characterStatisticsSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-statistics/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;AAUA,SAAgB,2BACd,WACA,WACA,eAC8C;CAC9C,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/character-statistics/index.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;AAUA,SAAgB,2BACd,WACA,WACA,eAC8C;CAC9C,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as connectedRealmIndex, r as connectedRealmSearch, t as connectedRealm } from "../index-
|
|
1
|
+
import { n as connectedRealmIndex, r as connectedRealmSearch, t as connectedRealm } from "../index-B-VqiR5M.js";
|
|
2
2
|
export { connectedRealm, connectedRealmIndex, connectedRealmSearch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/connected-realm/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type {\n ConnectedRealmIndexResponse,\n ConnectedRealmResponse,\n ConnectedRealmSearchParameters,\n ConnectedRealmSearchResponse,\n} from './types';\n\n/**\n * Returns a connected realm by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param connectedRealmId The connected realm ID.\n * @returns The connected realm. See {@link ConnectedRealmResponse}.\n */\nexport function connectedRealm(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n connectedRealmId: number,\n): Resource<ConnectedRealmResponse> {\n return {\n namespace,\n path: `${wowBasePath}/connected-realm/${connectedRealmId}`,\n };\n}\n/**\n * Returns an index of connected realms.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The connected realm index. See {@link ConnectedRealmIndexResponse}.\n */\nexport function connectedRealmIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<ConnectedRealmIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/connected-realm/index`,\n };\n}\n/**\n * Performs a search of connected realms.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param options The search parameters. See {@link ConnectedRealmSearchParameters}.\n * @returns The search results. See {@link ConnectedRealmSearchResponse}.\n */\nexport function connectedRealmSearch(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n options: ConnectedRealmSearchParameters,\n): Resource<ConnectedRealmSearchResponse, ConnectedRealmSearchParameters> {\n return {\n namespace,\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n 'realms.timezone': options['realms.timezone'],\n 'status.type': options['status.type'],\n },\n path: `${wowBasePath}/search/connected-realm`,\n };\n}\n"],"mappings":";;;;;;;;AAeA,SAAgB,eACd,WACA,kBACkC;CAClC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/connected-realm/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type {\n ConnectedRealmIndexResponse,\n ConnectedRealmResponse,\n ConnectedRealmSearchParameters,\n ConnectedRealmSearchResponse,\n} from './types';\n\n/**\n * Returns a connected realm by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param connectedRealmId The connected realm ID.\n * @returns The connected realm. See {@link ConnectedRealmResponse}.\n */\nexport function connectedRealm(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n connectedRealmId: number,\n): Resource<ConnectedRealmResponse> {\n return {\n namespace,\n path: `${wowBasePath}/connected-realm/${connectedRealmId}`,\n };\n}\n/**\n * Returns an index of connected realms.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The connected realm index. See {@link ConnectedRealmIndexResponse}.\n */\nexport function connectedRealmIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<ConnectedRealmIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/connected-realm/index`,\n };\n}\n/**\n * Performs a search of connected realms.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param options The search parameters. See {@link ConnectedRealmSearchParameters}.\n * @returns The search results. See {@link ConnectedRealmSearchResponse}.\n */\nexport function connectedRealmSearch(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n options: ConnectedRealmSearchParameters,\n): Resource<ConnectedRealmSearchResponse, ConnectedRealmSearchParameters> {\n return {\n namespace,\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n 'realms.timezone': options['realms.timezone'],\n 'status.type': options['status.type'],\n },\n path: `${wowBasePath}/search/connected-realm`,\n };\n}\n"],"mappings":";;;;;;;;AAeA,SAAgB,eACd,WACA,kBACkC;CAClC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB;CAC1C;AACF;;;;;;AAMA,SAAgB,oBACd,WACuC;CACvC,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;AAOA,SAAgB,qBACd,WACA,SACwE;CACxE,OAAO;EACL;EACA,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;GAC9E,mBAAmB,QAAQ;GAC3B,eAAe,QAAQ;EACzB;EACA,MAAM,GAAG,YAAY;CACvB;AACF"}
|
package/dist/creature/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as creatureFamilyMedia, c as creatureTypeIndex, i as creatureFamilyIndex, n as creatureDisplayMedia, o as creatureSearch, r as creatureFamily, s as creatureType, t as creature } from "../index-
|
|
1
|
+
import { a as creatureFamilyMedia, c as creatureTypeIndex, i as creatureFamilyIndex, n as creatureDisplayMedia, o as creatureSearch, r as creatureFamily, s as creatureType, t as creature } from "../index-D8__FnYd.js";
|
|
2
2
|
export { creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/creature/index.ts"],"sourcesContent":["import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type {\n CreatureDisplayMediaResponse,\n CreatureFamilyIndexResponse,\n CreatureFamilyMediaResponse,\n CreatureFamilyResponse,\n CreatureResponse,\n CreatureSearchParameters,\n CreatureSearchResponse,\n CreatureTypeIndexResponse,\n CreatureTypeResponse,\n} from './types';\n\n/**\n * Returns a creature by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureId The creature ID.\n * @returns The creature. See {@link CreatureResponse}.\n */\nexport function creature(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureId: number,\n): Resource<CreatureResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature/${creatureId}`,\n };\n}\n/**\n * Returns media for a creature display by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureDisplayId The creature display ID.\n * @returns The creature display media. See {@link CreatureDisplayMediaResponse}.\n */\nexport function creatureDisplayMedia(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureDisplayId: number,\n): Resource<CreatureDisplayMediaResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/creature-display/${creatureDisplayId}`,\n };\n}\n/**\n * Returns a creature family by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureFamilyId The creature family ID.\n * @returns The creature family. See {@link CreatureFamilyResponse}.\n */\nexport function creatureFamily(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureFamilyId: number,\n): Resource<CreatureFamilyResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature-family/${creatureFamilyId}`,\n };\n}\n/**\n * Returns an index of creature families.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The creature family index. See {@link CreatureFamilyIndexResponse}.\n */\nexport function creatureFamilyIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<CreatureFamilyIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature-family/index`,\n };\n}\n/**\n * Returns media for a creature family by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureFamilyId The creature family ID.\n * @returns The creature family media. See {@link CreatureFamilyMediaResponse}.\n */\nexport function creatureFamilyMedia(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureFamilyId: number,\n): Resource<CreatureFamilyMediaResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/creature-family/${creatureFamilyId}`,\n };\n}\n/**\n * Performs a search of creatures.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param options The creature search parameters. See {@link CreatureSearchParameters}.\n * @returns The creature search results. See {@link CreatureSearchResponse}.\n */\nexport function creatureSearch(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n options: CreatureSearchParameters,\n): Resource<CreatureSearchResponse, Omit<CreatureSearchParameters, 'locale' | 'name'>> {\n return {\n namespace,\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/creature`,\n };\n}\n/**\n * Returns a creature type by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureTypeId The creature type ID.\n * @returns The creature type. See {@link CreatureTypeResponse}.\n */\nexport function creatureType(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureTypeId: number,\n): Resource<CreatureTypeResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature-type/${creatureTypeId}`,\n };\n}\n/**\n * Returns an index of creature types.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The creature type index. See {@link CreatureTypeIndexResponse}.\n */\nexport function creatureTypeIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<CreatureTypeIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature-type/index`,\n };\n}\n"],"mappings":";;;;;;;;AAoBA,SAAgB,SACd,WACA,YAC4B;CAC5B,OAAO;EACL;EACA,MAAM,GAAG,YAAY,YAAY;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/creature/index.ts"],"sourcesContent":["import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type {\n CreatureDisplayMediaResponse,\n CreatureFamilyIndexResponse,\n CreatureFamilyMediaResponse,\n CreatureFamilyResponse,\n CreatureResponse,\n CreatureSearchParameters,\n CreatureSearchResponse,\n CreatureTypeIndexResponse,\n CreatureTypeResponse,\n} from './types';\n\n/**\n * Returns a creature by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureId The creature ID.\n * @returns The creature. See {@link CreatureResponse}.\n */\nexport function creature(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureId: number,\n): Resource<CreatureResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature/${creatureId}`,\n };\n}\n/**\n * Returns media for a creature display by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureDisplayId The creature display ID.\n * @returns The creature display media. See {@link CreatureDisplayMediaResponse}.\n */\nexport function creatureDisplayMedia(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureDisplayId: number,\n): Resource<CreatureDisplayMediaResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/creature-display/${creatureDisplayId}`,\n };\n}\n/**\n * Returns a creature family by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureFamilyId The creature family ID.\n * @returns The creature family. See {@link CreatureFamilyResponse}.\n */\nexport function creatureFamily(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureFamilyId: number,\n): Resource<CreatureFamilyResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature-family/${creatureFamilyId}`,\n };\n}\n/**\n * Returns an index of creature families.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The creature family index. See {@link CreatureFamilyIndexResponse}.\n */\nexport function creatureFamilyIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<CreatureFamilyIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature-family/index`,\n };\n}\n/**\n * Returns media for a creature family by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureFamilyId The creature family ID.\n * @returns The creature family media. See {@link CreatureFamilyMediaResponse}.\n */\nexport function creatureFamilyMedia(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureFamilyId: number,\n): Resource<CreatureFamilyMediaResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/creature-family/${creatureFamilyId}`,\n };\n}\n/**\n * Performs a search of creatures.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param options The creature search parameters. See {@link CreatureSearchParameters}.\n * @returns The creature search results. See {@link CreatureSearchResponse}.\n */\nexport function creatureSearch(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n options: CreatureSearchParameters,\n): Resource<CreatureSearchResponse, Omit<CreatureSearchParameters, 'locale' | 'name'>> {\n return {\n namespace,\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/creature`,\n };\n}\n/**\n * Returns a creature type by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param creatureTypeId The creature type ID.\n * @returns The creature type. See {@link CreatureTypeResponse}.\n */\nexport function creatureType(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n creatureTypeId: number,\n): Resource<CreatureTypeResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature-type/${creatureTypeId}`,\n };\n}\n/**\n * Returns an index of creature types.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The creature type index. See {@link CreatureTypeIndexResponse}.\n */\nexport function creatureTypeIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<CreatureTypeIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/creature-type/index`,\n };\n}\n"],"mappings":";;;;;;;;AAoBA,SAAgB,SACd,WACA,YAC4B;CAC5B,OAAO;EACL;EACA,MAAM,GAAG,YAAY,YAAY;CACnC;AACF;;;;;;;AAOA,SAAgB,qBACd,WACA,mBACwC;CACxC,OAAO;EACL;EACA,MAAM,GAAG,iBAAiB,oBAAoB;CAChD;AACF;;;;;;;AAOA,SAAgB,eACd,WACA,kBACkC;CAClC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,mBAAmB;CAC1C;AACF;;;;;;AAMA,SAAgB,oBACd,WACuC;CACvC,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;AAOA,SAAgB,oBACd,WACA,kBACuC;CACvC,OAAO;EACL;EACA,MAAM,GAAG,iBAAiB,mBAAmB;CAC/C;AACF;;;;;;;AAOA,SAAgB,eACd,WACA,SACqF;CACrF,OAAO;EACL;EACA,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF;;;;;;;AAOA,SAAgB,aACd,WACA,gBACgC;CAChC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,iBAAiB;CACxC;AACF;;;;;;AAMA,SAAgB,kBACd,WACqC;CACrC,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF"}
|
package/dist/guild/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as guildRoster, n as guildAchievements, r as guildActivity, t as guild } from "../index-
|
|
1
|
+
import { i as guildRoster, n as guildAchievements, r as guildActivity, t as guild } from "../index-CKDEzHkG.js";
|
|
2
2
|
export { guild, guildAchievements, guildActivity, guildRoster };
|
package/dist/guild/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/guild/index.ts"],"sourcesContent":["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"],"mappings":";AASA,MAAM,WAAW;;;;;;;AAQjB,SAAgB,MACd,WACA,WACA,UACyB;CACzB,OAAO;EACL;EACA,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/guild/index.ts"],"sourcesContent":["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"],"mappings":";AASA,MAAM,WAAW;;;;;;;AAQjB,SAAgB,MACd,WACA,WACA,UACyB;CACzB,OAAO;EACL;EACA,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG;CACpC;AACF;;;;;;;AAQA,SAAgB,kBACd,WACA,WACA,UAC2G;CAC3G,OAAO;EACL;EACA,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;CAC7C;AACF;;;;;;;AAQA,SAAgB,cACd,WACA,WACA,UACiC;CACjC,OAAO;EACL;EACA,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;CAC7C;AACF;;;;;;;AAQA,SAAgB,YACd,WACA,WACA,UAC+B;CAC/B,OAAO;EACL;EACA,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS;CAC7C;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as guildCrestComponentsIndex, r as guildCrestEmblem, t as guildCrestBorder } from "../index-
|
|
1
|
+
import { n as guildCrestComponentsIndex, r as guildCrestEmblem, t as guildCrestBorder } from "../index-Cqy8Y_P6.js";
|
|
2
2
|
export { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/guild-crest/index.ts"],"sourcesContent":["import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type { GuildCrestBorderEmblemResponse, GuildCrestComponentsIndexResponse } from './types';\n\n/**\n * Returns media for a guild crest border by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param borderId The guild crest border ID.\n * @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.\n */\nexport function guildCrestBorder(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n borderId: number,\n): Resource<GuildCrestBorderEmblemResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/guild-crest/border/${borderId}`,\n };\n}\n/**\n * Returns an index of guild crest media.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.\n */\nexport function guildCrestComponentsIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<GuildCrestComponentsIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/guild-crest/index`,\n };\n}\n/**\n * Returns media for a guild crest emblem by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param emblemId The guild crest emblem ID.\n * @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.\n */\nexport function guildCrestEmblem(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n emblemId: number,\n): Resource<GuildCrestBorderEmblemResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/guild-crest/emblem/${emblemId}`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,iBACd,WACA,UAC0C;CAC1C,OAAO;EACL;EACA,MAAM,GAAG,iBAAiB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/guild-crest/index.ts"],"sourcesContent":["import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type { GuildCrestBorderEmblemResponse, GuildCrestComponentsIndexResponse } from './types';\n\n/**\n * Returns media for a guild crest border by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param borderId The guild crest border ID.\n * @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.\n */\nexport function guildCrestBorder(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n borderId: number,\n): Resource<GuildCrestBorderEmblemResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/guild-crest/border/${borderId}`,\n };\n}\n/**\n * Returns an index of guild crest media.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.\n */\nexport function guildCrestComponentsIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<GuildCrestComponentsIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/guild-crest/index`,\n };\n}\n/**\n * Returns media for a guild crest emblem by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param emblemId The guild crest emblem ID.\n * @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.\n */\nexport function guildCrestEmblem(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n emblemId: number,\n): Resource<GuildCrestBorderEmblemResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/guild-crest/emblem/${emblemId}`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,iBACd,WACA,UAC0C;CAC1C,OAAO;EACL;EACA,MAAM,GAAG,iBAAiB,sBAAsB;CAClD;AACF;;;;;;AAMA,SAAgB,0BACd,WAC6C;CAC7C,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;AAOA,SAAgB,iBACd,WACA,UAC0C;CAC1C,OAAO;EACL;EACA,MAAM,GAAG,iBAAiB,sBAAsB;CAClD;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RealmTypeCapitalized, r as RealmLocales, s as RealmTimezone, t as RealmCategory } from "./types-
|
|
1
|
+
import { c as RealmTypeCapitalized, r as RealmLocales, s as RealmTimezone, t as RealmCategory } from "./types-D9Lx7rpR.js";
|
|
2
2
|
import { BaseSearchParameters, BlizzardNamespaces, Href, KeyBase, Locales, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
|
|
3
3
|
|
|
4
4
|
//#region src/connected-realm/types.d.ts
|
|
@@ -125,4 +125,4 @@ declare function connectedRealmIndex(namespace: Extract<BlizzardNamespaces, 'dyn
|
|
|
125
125
|
declare function connectedRealmSearch(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, options: ConnectedRealmSearchParameters): Resource<ConnectedRealmSearchResponse, ConnectedRealmSearchParameters>;
|
|
126
126
|
//#endregion
|
|
127
127
|
export { ConnectedRealmResponse as a, ConnectedRealmIndexResponse as i, connectedRealmIndex as n, ConnectedRealmSearchParameters as o, connectedRealmSearch as r, ConnectedRealmSearchResponse as s, connectedRealm as t };
|
|
128
|
-
//# sourceMappingURL=index-
|
|
128
|
+
//# sourceMappingURL=index-B-VqiR5M.d.ts.map
|
|
@@ -56,4 +56,4 @@ declare function playableClassIndex(namespace: Extract<BlizzardNamespaces, 'stat
|
|
|
56
56
|
declare function playableClassMedia(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, playableClassId: number): Resource<PlayableClassMediaResponse>;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { PlayableClassMediaResponse as a, PlayableClassIndexResponse as i, playableClassIndex as n, PlayableClassResponse as o, playableClassMedia as r, playableClass as t };
|
|
59
|
-
//# sourceMappingURL=index-
|
|
59
|
+
//# sourceMappingURL=index-B6StSA9x.d.ts.map
|
|
@@ -48,4 +48,4 @@ interface TalentElement {
|
|
|
48
48
|
declare function characterSpecializationsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterSpecializationsSummaryResponse>;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { CharacterSpecializationsSummaryResponse as n, characterSpecializationsSummary as t };
|
|
51
|
-
//# sourceMappingURL=index-
|
|
51
|
+
//# sourceMappingURL=index-BasleWQV.d.ts.map
|
|
@@ -30,4 +30,4 @@ declare function powerType(namespace: Extract<BlizzardNamespaces, 'static-classi
|
|
|
30
30
|
declare function powerTypeIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<PowerTypeIndexResponse>;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { PowerTypeResponse as i, powerTypeIndex as n, PowerTypeIndexResponse as r, powerType as t };
|
|
33
|
-
//# sourceMappingURL=index-
|
|
33
|
+
//# sourceMappingURL=index-Bhbxn20V.d.ts.map
|
|
@@ -17,6 +17,7 @@ interface PvpSeasonResponse extends ResponseBase {
|
|
|
17
17
|
id: number;
|
|
18
18
|
leaderboards: Href;
|
|
19
19
|
rewards: Href;
|
|
20
|
+
season_end_timestamp?: number;
|
|
20
21
|
season_name?: null | string;
|
|
21
22
|
season_start_timestamp: number;
|
|
22
23
|
}
|
|
@@ -86,4 +87,4 @@ declare function pvpSeason(namespace: Extract<BlizzardNamespaces, 'dynamic-class
|
|
|
86
87
|
declare function pvpSeasonIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>): Resource<PvpSeasonIndexResponse>;
|
|
87
88
|
//#endregion
|
|
88
89
|
export { pvpRegionalSeasonIndex as a, pvpSeasonIndex as c, pvpRegionalSeason as i, PvpSeasonIndexResponse as l, pvpLeaderboardIndex as n, pvpRewardsIndex as o, pvpRegionIndex as r, pvpSeason as s, pvpLeaderboard as t, PvpSeasonResponse as u };
|
|
89
|
-
//# sourceMappingURL=index-
|
|
90
|
+
//# sourceMappingURL=index-CCwgy2wL.d.ts.map
|
|
@@ -160,4 +160,4 @@ interface Weapon {
|
|
|
160
160
|
declare function characterEquipmentSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterEquipmentSummaryResponse>;
|
|
161
161
|
//#endregion
|
|
162
162
|
export { CharacterEquipmentSummaryResponse as n, characterEquipmentSummary as t };
|
|
163
|
-
//# sourceMappingURL=index-
|
|
163
|
+
//# sourceMappingURL=index-CJiJZAWv.d.ts.map
|
|
@@ -140,4 +140,4 @@ declare function guildActivity(namespace: Extract<BlizzardNamespaces, 'profile-c
|
|
|
140
140
|
declare function guildRoster(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, nameSlug: string): Resource<GuildRosterResponse>;
|
|
141
141
|
//#endregion
|
|
142
142
|
export { GuildAchievementsClassicEraResponse as a, GuildResponse as c, guildRoster as i, GuildRosterResponse as l, guildAchievements as n, GuildAchievementsResponse as o, guildActivity as r, GuildActivityResponse as s, guild as t };
|
|
143
|
-
//# sourceMappingURL=index-
|
|
143
|
+
//# sourceMappingURL=index-CKDEzHkG.d.ts.map
|
|
@@ -20,4 +20,4 @@ interface Asset {
|
|
|
20
20
|
declare function characterMediaSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterMediaSummaryResponse>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { CharacterMediaSummaryResponse as n, characterMediaSummary as t };
|
|
23
|
-
//# sourceMappingURL=index
|
|
23
|
+
//# sourceMappingURL=index-Cc7A_CAM.d.ts.map
|
|
@@ -62,4 +62,4 @@ declare function guildCrestComponentsIndex(namespace: Extract<BlizzardNamespaces
|
|
|
62
62
|
declare function guildCrestEmblem(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, emblemId: number): Resource<GuildCrestBorderEmblemResponse>;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { GuildCrestComponentsIndexResponse as a, GuildCrestBorderEmblemResponse as i, guildCrestComponentsIndex as n, guildCrestEmblem as r, guildCrestBorder as t };
|
|
65
|
-
//# sourceMappingURL=index-
|
|
65
|
+
//# sourceMappingURL=index-Cqy8Y_P6.d.ts.map
|
|
@@ -164,4 +164,4 @@ declare function creatureType(namespace: Extract<BlizzardNamespaces, 'static-cla
|
|
|
164
164
|
declare function creatureTypeIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<CreatureTypeIndexResponse>;
|
|
165
165
|
//#endregion
|
|
166
166
|
export { CreatureTypeResponse as _, creatureFamilyMedia as a, creatureTypeIndex as c, CreatureFamilyMediaResponse as d, CreatureFamilyResponse as f, CreatureTypeIndexResponse as g, CreatureSearchResponse as h, creatureFamilyIndex as i, CreatureDisplayMediaResponse as l, CreatureSearchParameters as m, creatureDisplayMedia as n, creatureSearch as o, CreatureResponse as p, creatureFamily as r, creatureType as s, creature as t, CreatureFamilyIndexResponse as u };
|
|
167
|
-
//# sourceMappingURL=index-
|
|
167
|
+
//# sourceMappingURL=index-D8__FnYd.d.ts.map
|
|
@@ -28,4 +28,4 @@ interface HunterPet {
|
|
|
28
28
|
declare function characterHunterPetsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterHunterPetsSummaryResponse>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { CharacterHunterPetsSummaryResponse as n, characterHunterPetsSummary as t };
|
|
31
|
-
//# sourceMappingURL=index-
|
|
31
|
+
//# sourceMappingURL=index-DKAEJgTL.d.ts.map
|
|
@@ -72,4 +72,4 @@ declare function characterProfileStatus(namespace: Extract<BlizzardNamespaces, '
|
|
|
72
72
|
declare function characterProfileSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterProfileSummaryResponse>;
|
|
73
73
|
//#endregion
|
|
74
74
|
export { CharacterProfileStatusResponse as i, characterProfileSummary as n, CharacterProfileSummaryResponse as r, characterProfileStatus as t };
|
|
75
|
-
//# sourceMappingURL=index-
|
|
75
|
+
//# sourceMappingURL=index-DNSNIrMa.d.ts.map
|
|
@@ -34,4 +34,4 @@ interface MediaSearchResponseItem extends KeyBase {
|
|
|
34
34
|
declare function mediaSearch(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, options: MediaSearchParameters): Resource<MediaSearchResponse, MediaSearchParameters>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { MediaSearchParameters as n, MediaSearchResponse as r, mediaSearch as t };
|
|
37
|
-
//# sourceMappingURL=index-
|
|
37
|
+
//# sourceMappingURL=index-DNjZhNTp.d.ts.map
|
|
@@ -37,4 +37,4 @@ declare function playableRace(namespace: Extract<BlizzardNamespaces, 'static-cla
|
|
|
37
37
|
declare function playableRaceIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<PlayableRaceIndexResponse>;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { PlayableRaceResponse as i, playableRaceIndex as n, PlayableRaceIndexResponse as r, playableRace as t };
|
|
40
|
-
//# sourceMappingURL=index-
|
|
40
|
+
//# sourceMappingURL=index-DnI9eRyo.d.ts.map
|
|
@@ -70,7 +70,7 @@ interface ItemSearchResponse extends SearchResponseWithoutResults {
|
|
|
70
70
|
* The response for an item subclass.
|
|
71
71
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
72
72
|
*/
|
|
73
|
-
interface
|
|
73
|
+
interface ItemSubclassResponse extends ResponseBase {
|
|
74
74
|
class_id: number;
|
|
75
75
|
display_name: string;
|
|
76
76
|
hide_subclass_in_tooltips?: boolean;
|
|
@@ -282,9 +282,9 @@ declare function itemSearch(namespace: Extract<BlizzardNamespaces, 'static-class
|
|
|
282
282
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
283
283
|
* @param itemClassId The item class ID.
|
|
284
284
|
* @param itemSubclassId The item subclass ID.
|
|
285
|
-
* @returns The item subclass. See {@link
|
|
285
|
+
* @returns The item subclass. See {@link ItemSubclassResponse}.
|
|
286
286
|
*/
|
|
287
|
-
declare function
|
|
287
|
+
declare function itemSubclass(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, itemClassId: number, itemSubclassId: number): Resource<ItemSubclassResponse>;
|
|
288
288
|
//#endregion
|
|
289
|
-
export { itemSearch as a, ItemClassResponse as c, ItemSearchParameters as d, ItemSearchResponse as f, itemMedia as i, ItemMediaResponse as l, itemClass as n,
|
|
290
|
-
//# sourceMappingURL=index-
|
|
289
|
+
export { itemSearch as a, ItemClassResponse as c, ItemSearchParameters as d, ItemSearchResponse as f, itemMedia as i, ItemMediaResponse as l, itemClass as n, itemSubclass as o, ItemSubclassResponse as p, itemClassIndex as r, ItemClassIndexResponse as s, item as t, ItemResponse as u };
|
|
290
|
+
//# sourceMappingURL=index-DpZoeKRC.d.ts.map
|
|
@@ -43,4 +43,4 @@ declare function auctionHouseIndex(namespace: Extract<BlizzardNamespaces, 'dynam
|
|
|
43
43
|
declare function auctions(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, connectedRealmId: number, auctionHouseId: number): Resource<AuctionsResponse>;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { AuctionsResponse as i, auctions as n, AuctionHouseIndexResponse as r, auctionHouseIndex as t };
|
|
46
|
-
//# sourceMappingURL=index-
|
|
46
|
+
//# sourceMappingURL=index-EuBtcMpe.d.ts.map
|
|
@@ -33,4 +33,4 @@ declare function region(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1
|
|
|
33
33
|
declare function regionIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>): Resource<RegionIndexResponse>;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { RegionResponse as i, regionIndex as n, RegionIndexResponse as r, region as t };
|
|
36
|
-
//# sourceMappingURL=index-
|
|
36
|
+
//# sourceMappingURL=index-Sk4p8uj-.d.ts.map
|
|
@@ -87,4 +87,4 @@ declare function characterAchievementsSummary(namespace: Extract<BlizzardNamespa
|
|
|
87
87
|
declare function characterAchievementStatistics(namespace: Extract<BlizzardNamespaces, 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterAchievementStatisticsResponse>;
|
|
88
88
|
//#endregion
|
|
89
89
|
export { CharacterAchievementsSummaryResponse as i, characterAchievementsSummary as n, CharacterAchievementStatisticsResponse as r, characterAchievementStatistics as t };
|
|
90
|
-
//# sourceMappingURL=index-
|
|
90
|
+
//# sourceMappingURL=index-o_aGwW_V.d.ts.map
|
|
@@ -63,4 +63,4 @@ interface RatingWithValue {
|
|
|
63
63
|
declare function characterStatisticsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterStatisticsSummaryResponse>;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { CharacterStatisticsSummaryResponse as n, characterStatisticsSummary as t };
|
|
66
|
-
//# sourceMappingURL=index-
|
|
66
|
+
//# sourceMappingURL=index-vj38PXa1.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { i as AuctionsResponse, n as auctions, r as AuctionHouseIndexResponse, t as auctionHouseIndex } from "./index-
|
|
2
|
-
import { i as CharacterAchievementsSummaryResponse, n as characterAchievementsSummary, r as CharacterAchievementStatisticsResponse, t as characterAchievementStatistics } from "./index-
|
|
3
|
-
import { n as CharacterEquipmentSummaryResponse, t as characterEquipmentSummary } from "./index-
|
|
4
|
-
import { n as CharacterHunterPetsSummaryResponse, t as characterHunterPetsSummary } from "./index-
|
|
5
|
-
import { n as CharacterMediaSummaryResponse, t as characterMediaSummary } from "./index
|
|
6
|
-
import { i as CharacterProfileStatusResponse, n as characterProfileSummary, r as CharacterProfileSummaryResponse, t as characterProfileStatus } from "./index-
|
|
7
|
-
import { n as CharacterSpecializationsSummaryResponse, t as characterSpecializationsSummary } from "./index-
|
|
8
|
-
import { n as CharacterStatisticsSummaryResponse, t as characterStatisticsSummary } from "./index-
|
|
9
|
-
import { a as RealmSearchParameters, c as RealmTypeCapitalized, i as RealmResponse, n as RealmIndexResponse, o as RealmSearchResponse, r as RealmLocales, s as RealmTimezone, t as RealmCategory } from "./types-
|
|
10
|
-
import { a as ConnectedRealmResponse, i as ConnectedRealmIndexResponse, n as connectedRealmIndex, o as ConnectedRealmSearchParameters, r as connectedRealmSearch, s as ConnectedRealmSearchResponse, t as connectedRealm } from "./index-
|
|
11
|
-
import { _ as CreatureTypeResponse, a as creatureFamilyMedia, c as creatureTypeIndex, d as CreatureFamilyMediaResponse, f as CreatureFamilyResponse, g as CreatureTypeIndexResponse, h as CreatureSearchResponse, i as creatureFamilyIndex, l as CreatureDisplayMediaResponse, m as CreatureSearchParameters, n as creatureDisplayMedia, o as creatureSearch, p as CreatureResponse, r as creatureFamily, s as creatureType, t as creature, u as CreatureFamilyIndexResponse } from "./index-
|
|
12
|
-
import { a as GuildCrestComponentsIndexResponse, i as GuildCrestBorderEmblemResponse, n as guildCrestComponentsIndex, r as guildCrestEmblem, t as guildCrestBorder } from "./index-
|
|
13
|
-
import { a as GuildAchievementsClassicEraResponse, c as GuildResponse, i as guildRoster, l as GuildRosterResponse, n as guildAchievements, o as GuildAchievementsResponse, r as guildActivity, s as GuildActivityResponse, t as guild } from "./index-
|
|
14
|
-
import { a as itemSearch, c as ItemClassResponse, d as ItemSearchParameters, f as ItemSearchResponse, i as itemMedia, l as ItemMediaResponse, n as itemClass, o as
|
|
15
|
-
import { n as MediaSearchParameters, r as MediaSearchResponse, t as mediaSearch } from "./index-
|
|
16
|
-
import { a as PlayableClassMediaResponse, i as PlayableClassIndexResponse, n as playableClassIndex, o as PlayableClassResponse, r as playableClassMedia, t as playableClass } from "./index-
|
|
17
|
-
import { i as PlayableRaceResponse, n as playableRaceIndex, r as PlayableRaceIndexResponse, t as playableRace } from "./index-
|
|
18
|
-
import { i as PowerTypeResponse, n as powerTypeIndex, r as PowerTypeIndexResponse, t as powerType } from "./index-
|
|
19
|
-
import { a as pvpRegionalSeasonIndex, c as pvpSeasonIndex, i as pvpRegionalSeason, l as PvpSeasonIndexResponse, n as pvpLeaderboardIndex, o as pvpRewardsIndex, r as pvpRegionIndex, s as pvpSeason, t as pvpLeaderboard, u as PvpSeasonResponse } from "./index-
|
|
1
|
+
import { i as AuctionsResponse, n as auctions, r as AuctionHouseIndexResponse, t as auctionHouseIndex } from "./index-EuBtcMpe.js";
|
|
2
|
+
import { i as CharacterAchievementsSummaryResponse, n as characterAchievementsSummary, r as CharacterAchievementStatisticsResponse, t as characterAchievementStatistics } from "./index-o_aGwW_V.js";
|
|
3
|
+
import { n as CharacterEquipmentSummaryResponse, t as characterEquipmentSummary } from "./index-CJiJZAWv.js";
|
|
4
|
+
import { n as CharacterHunterPetsSummaryResponse, t as characterHunterPetsSummary } from "./index-DKAEJgTL.js";
|
|
5
|
+
import { n as CharacterMediaSummaryResponse, t as characterMediaSummary } from "./index-Cc7A_CAM.js";
|
|
6
|
+
import { i as CharacterProfileStatusResponse, n as characterProfileSummary, r as CharacterProfileSummaryResponse, t as characterProfileStatus } from "./index-DNSNIrMa.js";
|
|
7
|
+
import { n as CharacterSpecializationsSummaryResponse, t as characterSpecializationsSummary } from "./index-BasleWQV.js";
|
|
8
|
+
import { n as CharacterStatisticsSummaryResponse, t as characterStatisticsSummary } from "./index-vj38PXa1.js";
|
|
9
|
+
import { a as RealmSearchParameters, c as RealmTypeCapitalized, i as RealmResponse, n as RealmIndexResponse, o as RealmSearchResponse, r as RealmLocales, s as RealmTimezone, t as RealmCategory } from "./types-D9Lx7rpR.js";
|
|
10
|
+
import { a as ConnectedRealmResponse, i as ConnectedRealmIndexResponse, n as connectedRealmIndex, o as ConnectedRealmSearchParameters, r as connectedRealmSearch, s as ConnectedRealmSearchResponse, t as connectedRealm } from "./index-B-VqiR5M.js";
|
|
11
|
+
import { _ as CreatureTypeResponse, a as creatureFamilyMedia, c as creatureTypeIndex, d as CreatureFamilyMediaResponse, f as CreatureFamilyResponse, g as CreatureTypeIndexResponse, h as CreatureSearchResponse, i as creatureFamilyIndex, l as CreatureDisplayMediaResponse, m as CreatureSearchParameters, n as creatureDisplayMedia, o as creatureSearch, p as CreatureResponse, r as creatureFamily, s as creatureType, t as creature, u as CreatureFamilyIndexResponse } from "./index-D8__FnYd.js";
|
|
12
|
+
import { a as GuildCrestComponentsIndexResponse, i as GuildCrestBorderEmblemResponse, n as guildCrestComponentsIndex, r as guildCrestEmblem, t as guildCrestBorder } from "./index-Cqy8Y_P6.js";
|
|
13
|
+
import { a as GuildAchievementsClassicEraResponse, c as GuildResponse, i as guildRoster, l as GuildRosterResponse, n as guildAchievements, o as GuildAchievementsResponse, r as guildActivity, s as GuildActivityResponse, t as guild } from "./index-CKDEzHkG.js";
|
|
14
|
+
import { a as itemSearch, c as ItemClassResponse, d as ItemSearchParameters, f as ItemSearchResponse, i as itemMedia, l as ItemMediaResponse, n as itemClass, o as itemSubclass, p as ItemSubclassResponse, r as itemClassIndex, s as ItemClassIndexResponse, t as item, u as ItemResponse } from "./index-DpZoeKRC.js";
|
|
15
|
+
import { n as MediaSearchParameters, r as MediaSearchResponse, t as mediaSearch } from "./index-DNjZhNTp.js";
|
|
16
|
+
import { a as PlayableClassMediaResponse, i as PlayableClassIndexResponse, n as playableClassIndex, o as PlayableClassResponse, r as playableClassMedia, t as playableClass } from "./index-B6StSA9x.js";
|
|
17
|
+
import { i as PlayableRaceResponse, n as playableRaceIndex, r as PlayableRaceIndexResponse, t as playableRace } from "./index-DnI9eRyo.js";
|
|
18
|
+
import { i as PowerTypeResponse, n as powerTypeIndex, r as PowerTypeIndexResponse, t as powerType } from "./index-Bhbxn20V.js";
|
|
19
|
+
import { a as pvpRegionalSeasonIndex, c as pvpSeasonIndex, i as pvpRegionalSeason, l as PvpSeasonIndexResponse, n as pvpLeaderboardIndex, o as pvpRewardsIndex, r as pvpRegionIndex, s as pvpSeason, t as pvpLeaderboard, u as PvpSeasonResponse } from "./index-CCwgy2wL.js";
|
|
20
20
|
import { realm, realmIndex, realmSearch } from "./realm/index.js";
|
|
21
|
-
import { i as RegionResponse, n as regionIndex, r as RegionIndexResponse, t as region } from "./index-
|
|
21
|
+
import { i as RegionResponse, n as regionIndex, r as RegionIndexResponse, t as region } from "./index-Sk4p8uj-.js";
|
|
22
22
|
|
|
23
23
|
//#region src/index.d.ts
|
|
24
24
|
declare const classicWow: {
|
|
@@ -56,7 +56,7 @@ declare const classicWow: {
|
|
|
56
56
|
itemClassIndex: typeof itemClassIndex;
|
|
57
57
|
itemMedia: typeof itemMedia;
|
|
58
58
|
itemSearch: typeof itemSearch;
|
|
59
|
-
|
|
59
|
+
itemSubclass: typeof itemSubclass;
|
|
60
60
|
mediaSearch: typeof mediaSearch;
|
|
61
61
|
playableClass: typeof playableClass;
|
|
62
62
|
playableClassIndex: typeof playableClassIndex;
|
|
@@ -80,5 +80,5 @@ declare const classicWow: {
|
|
|
80
80
|
regionIndex: typeof regionIndex;
|
|
81
81
|
};
|
|
82
82
|
//#endregion
|
|
83
|
-
export { AuctionHouseIndexResponse, AuctionsResponse, CharacterAchievementStatisticsResponse, CharacterAchievementsSummaryResponse, CharacterEquipmentSummaryResponse, CharacterHunterPetsSummaryResponse, CharacterMediaSummaryResponse, CharacterProfileStatusResponse, CharacterProfileSummaryResponse, CharacterSpecializationsSummaryResponse, CharacterStatisticsSummaryResponse, ConnectedRealmIndexResponse, ConnectedRealmResponse, ConnectedRealmSearchParameters, ConnectedRealmSearchResponse, CreatureDisplayMediaResponse, CreatureFamilyIndexResponse, CreatureFamilyMediaResponse, CreatureFamilyResponse, CreatureResponse, CreatureSearchParameters, CreatureSearchResponse, CreatureTypeIndexResponse, CreatureTypeResponse, GuildAchievementsClassicEraResponse, GuildAchievementsResponse, GuildActivityResponse, GuildCrestBorderEmblemResponse, GuildCrestComponentsIndexResponse, GuildResponse, GuildRosterResponse, ItemClassIndexResponse, ItemClassResponse, ItemMediaResponse, ItemResponse, ItemSearchParameters, ItemSearchResponse,
|
|
83
|
+
export { type AuctionHouseIndexResponse, type AuctionsResponse, type CharacterAchievementStatisticsResponse, type CharacterAchievementsSummaryResponse, type CharacterEquipmentSummaryResponse, type CharacterHunterPetsSummaryResponse, type CharacterMediaSummaryResponse, type CharacterProfileStatusResponse, type CharacterProfileSummaryResponse, type CharacterSpecializationsSummaryResponse, type CharacterStatisticsSummaryResponse, type ConnectedRealmIndexResponse, type ConnectedRealmResponse, type ConnectedRealmSearchParameters, type ConnectedRealmSearchResponse, type CreatureDisplayMediaResponse, type CreatureFamilyIndexResponse, type CreatureFamilyMediaResponse, type CreatureFamilyResponse, type CreatureResponse, type CreatureSearchParameters, type CreatureSearchResponse, type CreatureTypeIndexResponse, type CreatureTypeResponse, type GuildAchievementsClassicEraResponse, type GuildAchievementsResponse, type GuildActivityResponse, type GuildCrestBorderEmblemResponse, type GuildCrestComponentsIndexResponse, type GuildResponse, type GuildRosterResponse, type ItemClassIndexResponse, type ItemClassResponse, type ItemMediaResponse, type ItemResponse, type ItemSearchParameters, type ItemSearchResponse, type ItemSubclassResponse, type MediaSearchParameters, type MediaSearchResponse, type PlayableClassIndexResponse, type PlayableClassMediaResponse, type PlayableClassResponse, type PlayableRaceIndexResponse, type PlayableRaceResponse, type PowerTypeIndexResponse, type PowerTypeResponse, type PvpSeasonIndexResponse, type PvpSeasonResponse, type RealmCategory, type RealmIndexResponse, type RealmLocales, type RealmResponse, type RealmSearchParameters, type RealmSearchResponse, type RealmTimezone, type RealmTypeCapitalized, type RegionIndexResponse, type RegionResponse, 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 };
|
|
84
84
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { connectedRealm, connectedRealmIndex, connectedRealmSearch } from "./con
|
|
|
10
10
|
import { creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex } from "./creature/index.js";
|
|
11
11
|
import { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem } from "./guild-crest/index.js";
|
|
12
12
|
import { guild, guildAchievements, guildActivity, guildRoster } from "./guild/index.js";
|
|
13
|
-
import { item, itemClass, itemClassIndex, itemMedia, itemSearch,
|
|
13
|
+
import { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubclass } from "./item/index.js";
|
|
14
14
|
import { mediaSearch } from "./media-search/index.js";
|
|
15
15
|
import { playableClass, playableClassIndex, playableClassMedia } from "./playable-class/index.js";
|
|
16
16
|
import { playableRace, playableRaceIndex } from "./playable-race/index.js";
|
|
@@ -54,7 +54,7 @@ const classicWow = {
|
|
|
54
54
|
itemClassIndex,
|
|
55
55
|
itemMedia,
|
|
56
56
|
itemSearch,
|
|
57
|
-
|
|
57
|
+
itemSubclass,
|
|
58
58
|
mediaSearch,
|
|
59
59
|
playableClass,
|
|
60
60
|
playableClassIndex,
|
|
@@ -78,6 +78,6 @@ const classicWow = {
|
|
|
78
78
|
regionIndex
|
|
79
79
|
};
|
|
80
80
|
//#endregion
|
|
81
|
-
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,
|
|
81
|
+
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 };
|
|
82
82
|
|
|
83
83
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { auctionHouseIndex, auctions } from './auction-house/index';\r\nimport { characterAchievementsSummary, characterAchievementStatistics } from './character-achievements/index';\r\nimport { characterEquipmentSummary } from './character-equipment/index';\r\nimport { characterHunterPetsSummary } from './character-hunter-pets/index';\r\nimport { characterMediaSummary } from './character-media/index';\r\nimport { characterProfileStatus, characterProfileSummary } from './character-profile/index';\r\nimport { characterSpecializationsSummary } from './character-specialization/index';\r\nimport { characterStatisticsSummary } from './character-statistics/index';\r\nimport { connectedRealm, connectedRealmIndex, connectedRealmSearch } from './connected-realm/index';\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/index';\r\nimport { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem } from './guild-crest/index';\r\nimport { guild, guildAchievements, guildActivity, guildRoster } from './guild/index';\r\nimport { item, itemClass, itemClassIndex, itemMedia, itemSearch,
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { auctionHouseIndex, auctions } from './auction-house/index';\r\nimport { characterAchievementsSummary, characterAchievementStatistics } from './character-achievements/index';\r\nimport { characterEquipmentSummary } from './character-equipment/index';\r\nimport { characterHunterPetsSummary } from './character-hunter-pets/index';\r\nimport { characterMediaSummary } from './character-media/index';\r\nimport { characterProfileStatus, characterProfileSummary } from './character-profile/index';\r\nimport { characterSpecializationsSummary } from './character-specialization/index';\r\nimport { characterStatisticsSummary } from './character-statistics/index';\r\nimport { connectedRealm, connectedRealmIndex, connectedRealmSearch } from './connected-realm/index';\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/index';\r\nimport { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem } from './guild-crest/index';\r\nimport { guild, guildAchievements, guildActivity, guildRoster } from './guild/index';\r\nimport { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubclass } from './item/index';\r\nimport { mediaSearch } from './media-search/index';\r\nimport { playableClass, playableClassIndex, playableClassMedia } from './playable-class/index';\r\nimport { playableRace, playableRaceIndex } from './playable-race/index';\r\nimport { powerType, powerTypeIndex } from './power-type/index';\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/index';\r\nimport { realm, realmIndex, realmSearch } from './realm/index';\r\nimport { region, regionIndex } from './region/index';\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/index';\r\nexport type * from './auction-house/types';\r\n//Character Achievements\r\nexport * from './character-achievements/index';\r\nexport type * from './character-achievements/types';\r\n//Character Equipment\r\nexport * from './character-equipment/index';\r\nexport type * from './character-equipment/types';\r\n//Character Hunter Pets\r\nexport * from './character-hunter-pets/index';\r\nexport type * from './character-hunter-pets/types';\r\n//Character Media\r\nexport * from './character-media/index';\r\nexport type * from './character-media/types';\r\n//Character Profile\r\nexport * from './character-profile/index';\r\nexport type * from './character-profile/types';\r\n//Character Specialization\r\nexport * from './character-specialization/index';\r\nexport type * from './character-specialization/types';\r\n//Character Statistics\r\nexport * from './character-statistics/index';\r\nexport type * from './character-statistics/types';\r\n//Connected Realm\r\nexport * from './connected-realm/index';\r\nexport type * from './connected-realm/types';\r\n//Creature\r\nexport * from './creature/index';\r\nexport type * from './creature/types';\r\n//Guild\r\nexport * from './guild/index';\r\nexport type * from './guild/types';\r\n//Guild Crest\r\nexport * from './guild-crest/index';\r\nexport type * from './guild-crest/types';\r\n//Item\r\nexport * from './item/index';\r\nexport type * from './item/types';\r\n//Media Search\r\nexport * from './media-search/index';\r\nexport type * from './media-search/types';\r\n//Playable Class\r\nexport * from './playable-class/index';\r\nexport type * from './playable-class/types';\r\n//Playable Race\r\nexport * from './playable-race/index';\r\nexport type * from './playable-race/types';\r\n//Power Type\r\nexport * from './power-type/index';\r\nexport type * from './power-type/types';\r\n//Pvp Season\r\nexport * from './pvp-season/index';\r\nexport type * from './pvp-season/types';\r\n//Realm\r\nexport * from './realm/index';\r\nexport type * from './realm/types';\r\n//Region\r\nexport * from './region/index';\r\nexport type * from './region/types';\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAuCA,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;AACF"}
|
package/dist/item/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as itemSearch, i as itemMedia, n as itemClass, o as
|
|
2
|
-
export { item, itemClass, itemClassIndex, itemMedia, itemSearch,
|
|
1
|
+
import { a as itemSearch, i as itemMedia, n as itemClass, o as itemSubclass, r as itemClassIndex, t as item } from "../index-DpZoeKRC.js";
|
|
2
|
+
export { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubclass };
|
package/dist/item/index.js
CHANGED
|
@@ -69,15 +69,15 @@ function itemSearch(namespace, options) {
|
|
|
69
69
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
70
70
|
* @param itemClassId The item class ID.
|
|
71
71
|
* @param itemSubclassId The item subclass ID.
|
|
72
|
-
* @returns The item subclass. See {@link
|
|
72
|
+
* @returns The item subclass. See {@link ItemSubclassResponse}.
|
|
73
73
|
*/
|
|
74
|
-
function
|
|
74
|
+
function itemSubclass(namespace, itemClassId, itemSubclassId) {
|
|
75
75
|
return {
|
|
76
76
|
namespace,
|
|
77
77
|
path: `${wowBasePath}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
|
-
export { item, itemClass, itemClassIndex, itemMedia, itemSearch,
|
|
81
|
+
export { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubclass };
|
|
82
82
|
|
|
83
83
|
//# sourceMappingURL=index.js.map
|
package/dist/item/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/item/index.ts"],"sourcesContent":["import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type {\n ItemClassIndexResponse,\n ItemClassResponse,\n ItemMediaResponse,\n ItemResponse,\n ItemSearchParameters,\n ItemSearchResponse,\n
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/item/index.ts"],"sourcesContent":["import { wowBasePath, wowMediaBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type {\n ItemClassIndexResponse,\n ItemClassResponse,\n ItemMediaResponse,\n ItemResponse,\n ItemSearchParameters,\n ItemSearchResponse,\n ItemSubclassResponse,\n} from './types';\n\n/**\n * Get an item by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param itemId The item ID.\n * @returns The item. See {@link ItemResponse}.\n */\nexport function item(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n itemId: number,\n): Resource<ItemResponse> {\n return {\n namespace,\n path: `${wowBasePath}/item/${itemId}`,\n };\n}\n/**\n * Get an item class by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param itemClassId The item class ID.\n * @returns The item class. See {@link ItemClassResponse}.\n */\nexport function itemClass(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n itemClassId: number,\n): Resource<ItemClassResponse> {\n return {\n namespace,\n path: `${wowBasePath}/item-class/${itemClassId}`,\n };\n}\n/**\n * Get an item class index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The item class index. See {@link ItemClassIndexResponse}.\n */\nexport function itemClassIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<ItemClassIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/item-class/index`,\n };\n}\n/**\n * Get item media by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param itemId The item ID.\n * @returns The item media. See {@link ItemMediaResponse}.\n */\nexport function itemMedia(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n itemId: number,\n): Resource<ItemMediaResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/item/${itemId}`,\n };\n}\n/**\n * Search for items.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param options The search parameters. See {@link ItemSearchParameters}.\n * @returns The search results. See {@link ItemSearchResponse}.\n */\nexport function itemSearch(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n options: ItemSearchParameters,\n): Resource<ItemSearchResponse, Omit<ItemSearchParameters, 'locale' | 'name'>> {\n return {\n namespace,\n parameters: {\n _page: options._page,\n [`name.${options.locale}`]: options.name,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n },\n path: `${wowSearchBasePath}/item`,\n };\n}\n/**\n * Get an item subclass by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param itemClassId The item class ID.\n * @param itemSubclassId The item subclass ID.\n * @returns The item subclass. See {@link ItemSubclassResponse}.\n */\nexport function itemSubclass(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n itemClassId: number,\n itemSubclassId: number,\n): Resource<ItemSubclassResponse> {\n return {\n namespace,\n path: `${wowBasePath}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,\n };\n}\n"],"mappings":";;;;;;;;AAkBA,SAAgB,KACd,WACA,QACwB;CACxB,OAAO;EACL;EACA,MAAM,GAAG,YAAY,QAAQ;CAC/B;AACF;;;;;;;AAOA,SAAgB,UACd,WACA,aAC6B;CAC7B,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc;CACrC;AACF;;;;;;AAMA,SAAgB,eACd,WACkC;CAClC,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;AAOA,SAAgB,UACd,WACA,QAC6B;CAC7B,OAAO;EACL;EACA,MAAM,GAAG,iBAAiB,QAAQ;CACpC;AACF;;;;;;;AAOA,SAAgB,WACd,WACA,SAC6E;CAC7E,OAAO;EACL;EACA,YAAY;GACV,OAAO,QAAQ;IACd,QAAQ,QAAQ,WAAW,QAAQ;GACpC,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;EAChF;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF;;;;;;;;AAQA,SAAgB,aACd,WACA,aACA,gBACgC;CAChC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc,YAAY,iBAAiB;CAClE;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mediaSearch } from "../index-
|
|
1
|
+
import { t as mediaSearch } from "../index-DNjZhNTp.js";
|
|
2
2
|
export { mediaSearch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/media-search/index.ts"],"sourcesContent":["import { wowSearchBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { MediaSearchParameters, MediaSearchResponse } from './types';\n\n/**\n * Search for media.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param options The search parameters. See {@link MediaSearchParameters}.\n * @returns The search results. See {@link MediaSearchResponse}.\n */\nexport function mediaSearch(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n options: MediaSearchParameters,\n): Resource<MediaSearchResponse, MediaSearchParameters> {\n return {\n namespace,\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n tags: options.tags,\n },\n path: `${wowSearchBasePath}/media`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,YACd,WACA,SACsD;CACtD,OAAO;EACL;EACA,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/media-search/index.ts"],"sourcesContent":["import { wowSearchBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { MediaSearchParameters, MediaSearchResponse } from './types';\n\n/**\n * Search for media.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param options The search parameters. See {@link MediaSearchParameters}.\n * @returns The search results. See {@link MediaSearchResponse}.\n */\nexport function mediaSearch(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n options: MediaSearchParameters,\n): Resource<MediaSearchResponse, MediaSearchParameters> {\n return {\n namespace,\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n tags: options.tags,\n },\n path: `${wowSearchBasePath}/media`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,YACd,WACA,SACsD;CACtD,OAAO;EACL;EACA,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;GAC9E,MAAM,QAAQ;EAChB;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as playableClassIndex, r as playableClassMedia, t as playableClass } from "../index-
|
|
1
|
+
import { n as playableClassIndex, r as playableClassMedia, t as playableClass } from "../index-B6StSA9x.js";
|
|
2
2
|
export { playableClass, playableClassIndex, playableClassMedia };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/playable-class/index.ts"],"sourcesContent":["import { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { PlayableClassIndexResponse, PlayableClassMediaResponse, PlayableClassResponse } from './types';\n\n/**\n * Get a playable class by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param playableClassId The playable class ID.\n * @returns The playable class. See {@link PlayableClassResponse}.\n */\nexport function playableClass(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n playableClassId: number,\n): Resource<PlayableClassResponse> {\n return {\n namespace,\n path: `${wowBasePath}/playable-class/${playableClassId}`,\n };\n}\n/**\n * Get a playable class index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The playable class index. See {@link PlayableClassIndexResponse}.\n */\nexport function playableClassIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<PlayableClassIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/playable-class/index`,\n };\n}\n/**\n * Get playable class media by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param playableClassId The playable class ID.\n * @returns The playable class media. See {@link PlayableClassMediaResponse}.\n */\nexport function playableClassMedia(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n playableClassId: number,\n): Resource<PlayableClassMediaResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/playable-class/${playableClassId}`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,cACd,WACA,iBACiC;CACjC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,kBAAkB;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/playable-class/index.ts"],"sourcesContent":["import { wowBasePath, wowMediaBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { PlayableClassIndexResponse, PlayableClassMediaResponse, PlayableClassResponse } from './types';\n\n/**\n * Get a playable class by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param playableClassId The playable class ID.\n * @returns The playable class. See {@link PlayableClassResponse}.\n */\nexport function playableClass(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n playableClassId: number,\n): Resource<PlayableClassResponse> {\n return {\n namespace,\n path: `${wowBasePath}/playable-class/${playableClassId}`,\n };\n}\n/**\n * Get a playable class index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The playable class index. See {@link PlayableClassIndexResponse}.\n */\nexport function playableClassIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<PlayableClassIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/playable-class/index`,\n };\n}\n/**\n * Get playable class media by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param playableClassId The playable class ID.\n * @returns The playable class media. See {@link PlayableClassMediaResponse}.\n */\nexport function playableClassMedia(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n playableClassId: number,\n): Resource<PlayableClassMediaResponse> {\n return {\n namespace,\n path: `${wowMediaBasePath}/playable-class/${playableClassId}`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,cACd,WACA,iBACiC;CACjC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,kBAAkB;CACzC;AACF;;;;;;AAMA,SAAgB,mBACd,WACsC;CACtC,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;AAOA,SAAgB,mBACd,WACA,iBACsC;CACtC,OAAO;EACL;EACA,MAAM,GAAG,iBAAiB,kBAAkB;CAC9C;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as playableRaceIndex, t as playableRace } from "../index-
|
|
1
|
+
import { n as playableRaceIndex, t as playableRace } from "../index-DnI9eRyo.js";
|
|
2
2
|
export { playableRace, playableRaceIndex };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/playable-race/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { PlayableRaceIndexResponse, PlayableRaceResponse } from './types';\n\n/**\n * Get a playable race by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param playableRaceId The playable race ID.\n * @returns The playable race. See {@link PlayableRaceResponse}.\n */\nexport function playableRace(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n playableRaceId: number,\n): Resource<PlayableRaceResponse> {\n return {\n namespace,\n path: `${wowBasePath}/playable-race/${playableRaceId}`,\n };\n}\n/**\n * Get a playable race index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The playable race index. See {@link PlayableRaceIndexResponse}.\n */\nexport function playableRaceIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<PlayableRaceIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/playable-race/index`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,aACd,WACA,gBACgC;CAChC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,iBAAiB;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/playable-race/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { PlayableRaceIndexResponse, PlayableRaceResponse } from './types';\n\n/**\n * Get a playable race by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param playableRaceId The playable race ID.\n * @returns The playable race. See {@link PlayableRaceResponse}.\n */\nexport function playableRace(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n playableRaceId: number,\n): Resource<PlayableRaceResponse> {\n return {\n namespace,\n path: `${wowBasePath}/playable-race/${playableRaceId}`,\n };\n}\n/**\n * Get a playable race index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The playable race index. See {@link PlayableRaceIndexResponse}.\n */\nexport function playableRaceIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<PlayableRaceIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/playable-race/index`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,aACd,WACA,gBACgC;CAChC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,iBAAiB;CACxC;AACF;;;;;;AAMA,SAAgB,kBACd,WACqC;CACrC,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as powerTypeIndex, t as powerType } from "../index-
|
|
1
|
+
import { n as powerTypeIndex, t as powerType } from "../index-Bhbxn20V.js";
|
|
2
2
|
export { powerType, powerTypeIndex };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/power-type/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { PowerTypeIndexResponse, PowerTypeResponse } from './types';\n\n/**\n * Get a power type by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param powerTypeId The power type ID.\n * @returns The power type. See {@link PowerTypeResponse}.\n */\nexport function powerType(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n powerTypeId: number,\n): Resource<PowerTypeResponse> {\n return {\n namespace,\n path: `${wowBasePath}/power-type/${powerTypeId}`,\n };\n}\n/**\n * Get a power type index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The power type index. See {@link PowerTypeIndexResponse}.\n */\nexport function powerTypeIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<PowerTypeIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/power-type/index`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,UACd,WACA,aAC6B;CAC7B,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/power-type/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { PowerTypeIndexResponse, PowerTypeResponse } from './types';\n\n/**\n * Get a power type by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param powerTypeId The power type ID.\n * @returns The power type. See {@link PowerTypeResponse}.\n */\nexport function powerType(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n powerTypeId: number,\n): Resource<PowerTypeResponse> {\n return {\n namespace,\n path: `${wowBasePath}/power-type/${powerTypeId}`,\n };\n}\n/**\n * Get a power type index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The power type index. See {@link PowerTypeIndexResponse}.\n */\nexport function powerTypeIndex(\n namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>,\n): Resource<PowerTypeIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/power-type/index`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,UACd,WACA,aAC6B;CAC7B,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc;CACrC;AACF;;;;;;AAMA,SAAgB,eACd,WACkC;CAClC,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as pvpRegionalSeasonIndex, c as pvpSeasonIndex, i as pvpRegionalSeason, n as pvpLeaderboardIndex, o as pvpRewardsIndex, r as pvpRegionIndex, s as pvpSeason, t as pvpLeaderboard } from "../index-
|
|
1
|
+
import { a as pvpRegionalSeasonIndex, c as pvpSeasonIndex, i as pvpRegionalSeason, n as pvpLeaderboardIndex, o as pvpRewardsIndex, r as pvpRegionIndex, s as pvpSeason, t as pvpLeaderboard } from "../index-CCwgy2wL.js";
|
|
2
2
|
export { pvpLeaderboard, pvpLeaderboardIndex, pvpRegionIndex, pvpRegionalSeason, pvpRegionalSeasonIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/pvp-season/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { PvpSeasonIndexResponse, PvpSeasonResponse } from './types';\n\n/**\n * Get a PvP leaderboard by PvP season ID and bracket.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @param pvpSeasonId The PvP season ID.\n * @param pvpBracket The PvP bracket.\n * @returns The PvP leaderboard.\n */\nexport function pvpLeaderboard(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n pvpSeasonId: number,\n pvpBracket: string,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`,\n };\n}\n/**\n * Returns an index of PvP leaderboards for a PvP season in a given PvP region.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP leaderboard index.\n */\nexport function pvpLeaderboardIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n pvpSeasonId: number,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,\n };\n}\n/**\n * Returns a PvP season by region ID and season ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP season.\n */\nexport function pvpRegionalSeason(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n pvpSeasonId: number,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`,\n };\n}\n/**\n * Returns an index of PvP Seasons in a PvP region.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.\n */\nexport function pvpRegionalSeasonIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n): Resource<PvpSeasonIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/index`,\n };\n}\n/**\n * Returns an index of PvP Regions.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The PvP region index.\n */\nexport function pvpRegionIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/index`,\n };\n}\n/**\n * Returns an index of PvP rewards for a PvP season in a given PvP region.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP reward index.\n */\nexport function pvpRewardsIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n pvpSeasonId: number,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`,\n };\n}\n/**\n * Get a PvP season by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP season. See {@link PvpSeasonResponse}.\n */\nexport function pvpSeason(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpSeasonId: number,\n): Resource<PvpSeasonResponse> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-season/${pvpSeasonId}`,\n };\n}\n/**\n * Get a PvP season index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.\n */\nexport function pvpSeasonIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<PvpSeasonIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-season/index`,\n };\n}\n"],"mappings":";;;;;;;;;;AAYA,SAAgB,eACd,WACA,aACA,aACA,YACmB;CACnB,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc,YAAY,cAAc,YAAY,mBAAmB;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/pvp-season/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { PvpSeasonIndexResponse, PvpSeasonResponse } from './types';\n\n/**\n * Get a PvP leaderboard by PvP season ID and bracket.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @param pvpSeasonId The PvP season ID.\n * @param pvpBracket The PvP bracket.\n * @returns The PvP leaderboard.\n */\nexport function pvpLeaderboard(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n pvpSeasonId: number,\n pvpBracket: string,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`,\n };\n}\n/**\n * Returns an index of PvP leaderboards for a PvP season in a given PvP region.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP leaderboard index.\n */\nexport function pvpLeaderboardIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n pvpSeasonId: number,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,\n };\n}\n/**\n * Returns a PvP season by region ID and season ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP season.\n */\nexport function pvpRegionalSeason(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n pvpSeasonId: number,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`,\n };\n}\n/**\n * Returns an index of PvP Seasons in a PvP region.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.\n */\nexport function pvpRegionalSeasonIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n): Resource<PvpSeasonIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/index`,\n };\n}\n/**\n * Returns an index of PvP Regions.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The PvP region index.\n */\nexport function pvpRegionIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/index`,\n };\n}\n/**\n * Returns an index of PvP rewards for a PvP season in a given PvP region.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpRegionId The PvP region ID.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP reward index.\n */\nexport function pvpRewardsIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpRegionId: number,\n pvpSeasonId: number,\n): Resource<unknown> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`,\n };\n}\n/**\n * Get a PvP season by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param pvpSeasonId The PvP season ID.\n * @returns The PvP season. See {@link PvpSeasonResponse}.\n */\nexport function pvpSeason(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n pvpSeasonId: number,\n): Resource<PvpSeasonResponse> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-season/${pvpSeasonId}`,\n };\n}\n/**\n * Get a PvP season index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.\n */\nexport function pvpSeasonIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<PvpSeasonIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/pvp-season/index`,\n };\n}\n"],"mappings":";;;;;;;;;;AAYA,SAAgB,eACd,WACA,aACA,aACA,YACmB;CACnB,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc,YAAY,cAAc,YAAY,mBAAmB;CAC9F;AACF;;;;;;;;AAQA,SAAgB,oBACd,WACA,aACA,aACmB;CACnB,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc,YAAY,cAAc,YAAY;CAC3E;AACF;;;;;;;;AAQA,SAAgB,kBACd,WACA,aACA,aACmB;CACnB,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc,YAAY,cAAc;CAC/D;AACF;;;;;;;AAOA,SAAgB,uBACd,WACA,aACkC;CAClC,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc,YAAY;CACjD;AACF;;;;;;AAMA,SAAgB,eACd,WACmB;CACnB,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;;AAQA,SAAgB,gBACd,WACA,aACA,aACmB;CACnB,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc,YAAY,cAAc,YAAY;CAC3E;AACF;;;;;;;AAOA,SAAgB,UACd,WACA,aAC6B;CAC7B,OAAO;EACL;EACA,MAAM,GAAG,YAAY,cAAc;CACrC;AACF;;;;;;AAMA,SAAgB,eACd,WACkC;CAClC,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF"}
|
package/dist/realm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as RealmSearchParameters, i as RealmResponse, n as RealmIndexResponse, o as RealmSearchResponse } from "../types-
|
|
1
|
+
import { a as RealmSearchParameters, i as RealmResponse, n as RealmIndexResponse, o as RealmSearchResponse } from "../types-D9Lx7rpR.js";
|
|
2
2
|
import { BlizzardNamespaces, Resource } from "@blizzard-api/core";
|
|
3
3
|
|
|
4
4
|
//#region src/realm/index.d.ts
|
package/dist/realm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/realm/index.ts"],"sourcesContent":["import { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponse } from './types';\n\n/**\n * Get a realm by slug.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The realm slug.\n * @returns The realm. See {@link RealmResponse}.\n */\nexport function realm(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n realmSlug: string,\n): Resource<RealmResponse> {\n return {\n namespace,\n path: `${wowBasePath}/realm/${realmSlug}`,\n };\n}\n/**\n * Get a realm index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The realm index. See {@link RealmIndexResponse}.\n */\nexport function realmIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<RealmIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/realm/index`,\n };\n}\n/**\n * Search for realms.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param options The search parameters. See {@link RealmSearchParameters}.\n * @returns The search results. See {@link RealmSearchResponse}.\n */\nexport function realmSearch(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n options: RealmSearchParameters,\n): Resource<RealmSearchResponse, RealmSearchParameters> {\n return {\n namespace,\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n timezone: options.timezone,\n },\n path: `${wowSearchBasePath}/realm`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,MACd,WACA,WACyB;CACzB,OAAO;EACL;EACA,MAAM,GAAG,YAAY,SAAS;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/realm/index.ts"],"sourcesContent":["import { wowBasePath, wowSearchBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponse } from './types';\n\n/**\n * Get a realm by slug.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The realm slug.\n * @returns The realm. See {@link RealmResponse}.\n */\nexport function realm(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n realmSlug: string,\n): Resource<RealmResponse> {\n return {\n namespace,\n path: `${wowBasePath}/realm/${realmSlug}`,\n };\n}\n/**\n * Get a realm index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The realm index. See {@link RealmIndexResponse}.\n */\nexport function realmIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<RealmIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/realm/index`,\n };\n}\n/**\n * Search for realms.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param options The search parameters. See {@link RealmSearchParameters}.\n * @returns The search results. See {@link RealmSearchResponse}.\n */\nexport function realmSearch(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n options: RealmSearchParameters,\n): Resource<RealmSearchResponse, RealmSearchParameters> {\n return {\n namespace,\n parameters: {\n _page: options._page,\n orderby: Array.isArray(options.orderby) ? options.orderby.join(',') : options.orderby,\n timezone: options.timezone,\n },\n path: `${wowSearchBasePath}/realm`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,MACd,WACA,WACyB;CACzB,OAAO;EACL;EACA,MAAM,GAAG,YAAY,SAAS;CAChC;AACF;;;;;;AAMA,SAAgB,WACd,WAC8B;CAC9B,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF;;;;;;;AAOA,SAAgB,YACd,WACA,SACsD;CACtD,OAAO;EACL;EACA,YAAY;GACV,OAAO,QAAQ;GACf,SAAS,MAAM,QAAQ,QAAQ,OAAO,IAAI,QAAQ,QAAQ,KAAK,GAAG,IAAI,QAAQ;GAC9E,UAAU,QAAQ;EACpB;EACA,MAAM,GAAG,kBAAkB;CAC7B;AACF"}
|
package/dist/region/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as regionIndex, t as region } from "../index-
|
|
1
|
+
import { n as regionIndex, t as region } from "../index-Sk4p8uj-.js";
|
|
2
2
|
export { region, regionIndex };
|
package/dist/region/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/region/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { RegionIndexResponse, RegionResponse } from './types';\n\n/**\n * Get a region by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param regionId The region ID.\n * @returns The region. See {@link RegionResponse}.\n */\nexport function region(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n regionId: number,\n): Resource<RegionResponse> {\n return {\n namespace,\n path: `${wowBasePath}/region/${regionId}`,\n };\n}\n/**\n * Get a region index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The region index. See {@link RegionIndexResponse}.\n */\nexport function regionIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<RegionIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/region/index`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,OACd,WACA,UAC0B;CAC1B,OAAO;EACL;EACA,MAAM,GAAG,YAAY,UAAU;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/region/index.ts"],"sourcesContent":["import { wowBasePath } from '@blizzard-api/core';\nimport type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport type { RegionIndexResponse, RegionResponse } from './types';\n\n/**\n * Get a region by ID.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param regionId The region ID.\n * @returns The region. See {@link RegionResponse}.\n */\nexport function region(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n regionId: number,\n): Resource<RegionResponse> {\n return {\n namespace,\n path: `${wowBasePath}/region/${regionId}`,\n };\n}\n/**\n * Get a region index.\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @returns The region index. See {@link RegionIndexResponse}.\n */\nexport function regionIndex(\n namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>,\n): Resource<RegionIndexResponse> {\n return {\n namespace,\n path: `${wowBasePath}/region/index`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,OACd,WACA,UAC0B;CAC1B,OAAO;EACL;EACA,MAAM,GAAG,YAAY,UAAU;CACjC;AACF;;;;;;AAMA,SAAgB,YACd,WAC+B;CAC/B,OAAO;EACL;EACA,MAAM,GAAG,YAAY;CACvB;AACF"}
|
|
@@ -76,4 +76,4 @@ interface RealmSearchResponseItem extends KeyBase {
|
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
export { RealmSearchParameters as a, RealmTypeCapitalized as c, RealmResponse as i, RealmIndexResponse as n, RealmSearchResponse as o, RealmLocales as r, RealmTimezone as s, RealmCategory as t };
|
|
79
|
-
//# sourceMappingURL=types-
|
|
79
|
+
//# sourceMappingURL=types-D9Lx7rpR.d.ts.map
|