From 574e10560ee4044c8c64cb45ef8d13258662efd5 Mon Sep 17 00:00:00 2001 From: Pinta365 Date: Sat, 17 Aug 2024 00:04:41 +0200 Subject: [PATCH] split up type imports --- README.md | 1 + deno.jsonc | 2 +- src/diablo3/game_data/d3.ts | 3 ++- src/hearthstone/game_data/card_backs.ts | 6 ++++-- src/hearthstone/game_data/cards.ts | 6 ++++-- src/hearthstone/game_data/decks.ts | 3 ++- src/hearthstone/game_data/metadata.ts | 3 ++- src/overwatch/community/owl_summary_data.ts | 3 ++- src/overwatch/community/segments.ts | 3 ++- src/starcraft2/game_data/league.ts | 3 ++- src/wow/game_data/achievement.ts | 3 ++- src/wow/game_data/auction_house.ts | 3 ++- src/wow/game_data/azerite_essence.ts | 6 ++++-- src/wow/game_data/connected_realm.ts | 6 ++++-- src/wow/game_data/covenant.ts | 3 ++- src/wow/game_data/creature.ts | 6 ++++-- src/wow/game_data/guild_crest.ts | 3 ++- src/wow/game_data/heirloom.ts | 3 ++- src/wow/game_data/item.ts | 6 ++++-- src/wow/game_data/journal.ts | 15 ++++----------- src/wow/game_data/keystone_affix.ts | 3 ++- src/wow/game_data/media_search.ts | 3 ++- src/wow/game_data/modified_crafting.ts | 3 ++- src/wow/game_data/mount.ts | 3 ++- src/wow/game_data/mythic_keystone_dungeon.ts | 3 ++- src/wow/game_data/mythic_keystone_leaderboard.ts | 3 ++- src/wow/game_data/mythic_raid_leaderboard.ts | 3 ++- src/wow/game_data/pet.ts | 3 ++- src/wow/game_data/playable_class.ts | 3 ++- src/wow/game_data/playable_race.ts | 3 ++- src/wow/game_data/playable_specialization.ts | 12 ++---------- src/wow/game_data/power_type.ts | 3 ++- src/wow/game_data/profession.ts | 3 ++- src/wow/game_data/pvp_season.ts | 3 ++- src/wow/game_data/pvp_tier.ts | 3 ++- src/wow/game_data/quest.ts | 3 ++- src/wow/game_data/realm.ts | 6 ++++-- src/wow/game_data/region.ts | 3 ++- src/wow/game_data/reputations.ts | 3 ++- src/wow/game_data/spell.ts | 6 ++++-- src/wow/game_data/talent.ts | 3 ++- src/wow/game_data/tech_talent.ts | 3 ++- src/wow/game_data/title.ts | 3 ++- src/wow/game_data/token.ts | 3 ++- src/wow/game_data/toy.ts | 3 ++- src/wow/profile/character_achievements.ts | 3 ++- src/wow/profile/character_appearance.ts | 3 ++- src/wow/profile/character_collections.ts | 3 ++- src/wow/profile/character_encounters.ts | 3 ++- src/wow/profile/character_equipment.ts | 3 ++- src/wow/profile/character_hunter_pets.ts | 3 ++- src/wow/profile/character_media.ts | 3 ++- .../profile/character_mythic_keystone_profile.ts | 3 ++- src/wow/profile/character_professions.ts | 3 ++- src/wow/profile/character_profile.ts | 1 + src/wow/profile/character_pvp.ts | 3 ++- src/wow/profile/character_quests.ts | 3 ++- src/wow/profile/character_reputations.ts | 3 ++- src/wow/profile/character_soulbinds.ts | 3 ++- src/wow/profile/character_specializations.ts | 3 ++- src/wow/profile/character_statistics.ts | 3 ++- src/wow/profile/character_titles.ts | 3 ++- src/wow/profile/guild.ts | 1 + src/wow/search.ts | 3 ++- 64 files changed, 142 insertions(+), 88 deletions(-) diff --git a/README.md b/README.md index 3031f28..6d212a4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # BLIZZARD_API + [![JSR Version](https://jsr.io/badges/@pinta365/blizzard-api)](https://jsr.io/@pinta365/blizzard-api) Start of what will cover the whole Blizzard Battle.net API when its done. diff --git a/deno.jsonc b/deno.jsonc index fb0ff62..cc72d5a 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,6 +1,6 @@ { "name": "@pinta365/blizzard-api", - "version": "0.3.3", + "version": "0.3.4", "exports": "./mod.ts", "tasks": { diff --git a/src/diablo3/game_data/d3.ts b/src/diablo3/game_data/d3.ts index 8cc42ba..1151c5e 100644 --- a/src/diablo3/game_data/d3.ts +++ b/src/diablo3/game_data/d3.ts @@ -1,4 +1,5 @@ -import { LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface Seasons extends LinkSelfHref { season: { diff --git a/src/hearthstone/game_data/card_backs.ts b/src/hearthstone/game_data/card_backs.ts index c6f49e2..c5a53d5 100644 --- a/src/hearthstone/game_data/card_backs.ts +++ b/src/hearthstone/game_data/card_backs.ts @@ -1,5 +1,7 @@ -import { LocalizedString, request } from "../../shared/index.ts"; -import { Search, search, SearchParameters } from "../search.ts"; +import { request } from "../../shared/index.ts"; +import { search } from "../search.ts"; +import type { LocalizedString } from "../../shared/index.ts"; +import type { Search, SearchParameters } from "../search.ts"; export interface Cardback { id: number; diff --git a/src/hearthstone/game_data/cards.ts b/src/hearthstone/game_data/cards.ts index 28b5c4b..2a1a07c 100644 --- a/src/hearthstone/game_data/cards.ts +++ b/src/hearthstone/game_data/cards.ts @@ -1,5 +1,7 @@ -import { LocalizedString, request, RequestOptions } from "../../shared/index.ts"; -import { Search, search, SearchParameters } from "../search.ts"; +import { request } from "../../shared/index.ts"; +import { search } from "../search.ts"; +import type { LocalizedString, RequestOptions } from "../../shared/index.ts"; +import type { Search, SearchParameters } from "../search.ts"; export interface Card { id: number; diff --git a/src/hearthstone/game_data/decks.ts b/src/hearthstone/game_data/decks.ts index 77aba22..c4fbad5 100644 --- a/src/hearthstone/game_data/decks.ts +++ b/src/hearthstone/game_data/decks.ts @@ -1,4 +1,5 @@ -import { LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { LocalizedString } from "../../shared/index.ts"; export interface Options { code?: string; diff --git a/src/hearthstone/game_data/metadata.ts b/src/hearthstone/game_data/metadata.ts index 1fdd245..d3e61d2 100644 --- a/src/hearthstone/game_data/metadata.ts +++ b/src/hearthstone/game_data/metadata.ts @@ -1,4 +1,5 @@ -import { LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { LocalizedString } from "../../shared/index.ts"; export interface Metadata { sets: { diff --git a/src/overwatch/community/owl_summary_data.ts b/src/overwatch/community/owl_summary_data.ts index 2504acc..d4416cf 100644 --- a/src/overwatch/community/owl_summary_data.ts +++ b/src/overwatch/community/owl_summary_data.ts @@ -1,4 +1,5 @@ -import { LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { LocalizedString } from "../../shared/index.ts"; export interface Segment { id: string; diff --git a/src/overwatch/community/segments.ts b/src/overwatch/community/segments.ts index 5aa9312..8fc8a9a 100644 --- a/src/overwatch/community/segments.ts +++ b/src/overwatch/community/segments.ts @@ -1,4 +1,5 @@ -import { LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { LocalizedString } from "../../shared/index.ts"; export interface Segment { id: string; diff --git a/src/starcraft2/game_data/league.ts b/src/starcraft2/game_data/league.ts index 70816bc..601ef07 100644 --- a/src/starcraft2/game_data/league.ts +++ b/src/starcraft2/game_data/league.ts @@ -1,4 +1,5 @@ -import { LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { LinkSelfHref } from "../../shared/index.ts"; export interface League extends LinkSelfHref { key: { diff --git a/src/wow/game_data/achievement.ts b/src/wow/game_data/achievement.ts index 8f8939e..a8db250 100644 --- a/src/wow/game_data/achievement.ts +++ b/src/wow/game_data/achievement.ts @@ -4,7 +4,8 @@ * @author Pinta */ -import { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface AchievementCategories extends LinkSelfHref { categories: KeyNameId[]; diff --git a/src/wow/game_data/auction_house.ts b/src/wow/game_data/auction_house.ts index 22ab730..81c9666 100644 --- a/src/wow/game_data/auction_house.ts +++ b/src/wow/game_data/auction_house.ts @@ -1,4 +1,5 @@ -import { LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { LinkSelfHref } from "../../shared/index.ts"; export interface AuctionItem { id: number; diff --git a/src/wow/game_data/azerite_essence.ts b/src/wow/game_data/azerite_essence.ts index 9751499..246e2d0 100644 --- a/src/wow/game_data/azerite_essence.ts +++ b/src/wow/game_data/azerite_essence.ts @@ -1,5 +1,7 @@ -import { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; -import { Search, search, SearchParameters } from "../search.ts"; +import { request } from "../../shared/index.ts"; +import { search } from "../search.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; +import type { Search, SearchParameters } from "../search.ts"; export interface AzeriteEssences extends LinkSelfHref { azerite_essences: KeyNameId[]; diff --git a/src/wow/game_data/connected_realm.ts b/src/wow/game_data/connected_realm.ts index fe9b7a7..1d48b6d 100644 --- a/src/wow/game_data/connected_realm.ts +++ b/src/wow/game_data/connected_realm.ts @@ -1,5 +1,7 @@ -import { KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; -import { Search, search, SearchParameters } from "../search.ts"; +import { request } from "../../shared/index.ts"; +import { search } from "../search.ts"; +import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; +import type { Search, SearchParameters } from "../search.ts"; export interface ConnectedRealms extends LinkSelfHref { connected_realms: { href: string }[]; diff --git a/src/wow/game_data/covenant.ts b/src/wow/game_data/covenant.ts index 50848e1..fadeb25 100644 --- a/src/wow/game_data/covenant.ts +++ b/src/wow/game_data/covenant.ts @@ -1,4 +1,5 @@ -import { Asset, KeyNameId, LinkSelfHref, LocalizedString, NameId, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyNameId, LinkSelfHref, LocalizedString, NameId, TypeName } from "../../shared/index.ts"; export interface Covenants extends LinkSelfHref { covenants: KeyNameId[]; diff --git a/src/wow/game_data/creature.ts b/src/wow/game_data/creature.ts index 4d38265..71ee09e 100644 --- a/src/wow/game_data/creature.ts +++ b/src/wow/game_data/creature.ts @@ -1,5 +1,7 @@ -import { KeyId, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; -import { Search, search, SearchParameters } from "../search.ts"; +import { request } from "../../shared/index.ts"; +import { search } from "../search.ts"; +import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; +import type { Search, SearchParameters } from "../search.ts"; export interface CreatureFamilies extends LinkSelfHref { creature_families: KeyNameId[]; diff --git a/src/wow/game_data/guild_crest.ts b/src/wow/game_data/guild_crest.ts index aaf5728..41bc606 100644 --- a/src/wow/game_data/guild_crest.ts +++ b/src/wow/game_data/guild_crest.ts @@ -1,4 +1,5 @@ -import { Asset, KeyId, LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyId, LinkSelfHref } from "../../shared/index.ts"; export interface Emblem { id: number; diff --git a/src/wow/game_data/heirloom.ts b/src/wow/game_data/heirloom.ts index ef42bd3..1d7e675 100644 --- a/src/wow/game_data/heirloom.ts +++ b/src/wow/game_data/heirloom.ts @@ -1,4 +1,5 @@ -import { KeyId, KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface Heirlooms extends LinkSelfHref { heirlooms: KeyNameId[]; diff --git a/src/wow/game_data/item.ts b/src/wow/game_data/item.ts index c31f242..7febce7 100644 --- a/src/wow/game_data/item.ts +++ b/src/wow/game_data/item.ts @@ -1,5 +1,7 @@ -import { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; -import { Search, search, SearchParameters } from "../search.ts"; +import { request } from "../../shared/index.ts"; +import { search } from "../search.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; +import type { Search, SearchParameters } from "../search.ts"; export interface ItemClasses extends LinkSelfHref { item_classes: KeyNameId[]; diff --git a/src/wow/game_data/journal.ts b/src/wow/game_data/journal.ts index 81ddf18..90b17c7 100644 --- a/src/wow/game_data/journal.ts +++ b/src/wow/game_data/journal.ts @@ -1,14 +1,7 @@ -import { - Asset, - KeyId, - KeyNameId, - LinkSelfHref, - LocalizedString, - NameId, - request, - TypeName, -} from "../../shared/index.ts"; -import { Search, search, SearchParameters } from "../search.ts"; +import { request } from "../../shared/index.ts"; +import { search } from "../search.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId, TypeName } from "../../shared/index.ts"; +import type { Search, SearchParameters } from "../search.ts"; export interface JournalExpansions extends LinkSelfHref { tiers: KeyNameId[]; diff --git a/src/wow/game_data/keystone_affix.ts b/src/wow/game_data/keystone_affix.ts index ce23ebe..b8e9a15 100644 --- a/src/wow/game_data/keystone_affix.ts +++ b/src/wow/game_data/keystone_affix.ts @@ -1,4 +1,5 @@ -import { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface KeystoneAffixes extends LinkSelfHref { affixes: KeyNameId[]; diff --git a/src/wow/game_data/media_search.ts b/src/wow/game_data/media_search.ts index d2a8b61..a818a0c 100644 --- a/src/wow/game_data/media_search.ts +++ b/src/wow/game_data/media_search.ts @@ -1,4 +1,5 @@ -import { Search, search, SearchParameters } from "../search.ts"; +import { search } from "../search.ts"; +import type { Search, SearchParameters } from "../search.ts"; /** * Performs a search of media. diff --git a/src/wow/game_data/modified_crafting.ts b/src/wow/game_data/modified_crafting.ts index 817bad5..373dc62 100644 --- a/src/wow/game_data/modified_crafting.ts +++ b/src/wow/game_data/modified_crafting.ts @@ -1,4 +1,5 @@ -import { KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface ModifiedCraftingParents extends LinkSelfHref { categories: { diff --git a/src/wow/game_data/mount.ts b/src/wow/game_data/mount.ts index bb802c4..fb98687 100644 --- a/src/wow/game_data/mount.ts +++ b/src/wow/game_data/mount.ts @@ -1,4 +1,5 @@ -import { KeyId, KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface Mounts extends LinkSelfHref { mounts: KeyNameId[]; diff --git a/src/wow/game_data/mythic_keystone_dungeon.ts b/src/wow/game_data/mythic_keystone_dungeon.ts index b385e19..3cc56e0 100644 --- a/src/wow/game_data/mythic_keystone_dungeon.ts +++ b/src/wow/game_data/mythic_keystone_dungeon.ts @@ -1,4 +1,5 @@ -import { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId } from "../../shared/index.ts"; export interface MythicKeystoneDungeons extends LinkSelfHref { dungeons: KeyNameId[]; diff --git a/src/wow/game_data/mythic_keystone_leaderboard.ts b/src/wow/game_data/mythic_keystone_leaderboard.ts index bdcdae5..ad9f95b 100644 --- a/src/wow/game_data/mythic_keystone_leaderboard.ts +++ b/src/wow/game_data/mythic_keystone_leaderboard.ts @@ -1,4 +1,5 @@ -import { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId } from "../../shared/index.ts"; export interface MythicKeystoneLeaderboards extends LinkSelfHref { current_leaderboards: KeyNameId[]; diff --git a/src/wow/game_data/mythic_raid_leaderboard.ts b/src/wow/game_data/mythic_raid_leaderboard.ts index 68c22e6..21dc9c8 100644 --- a/src/wow/game_data/mythic_raid_leaderboard.ts +++ b/src/wow/game_data/mythic_raid_leaderboard.ts @@ -1,4 +1,5 @@ -import { KeyNameId, LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyNameId, LinkSelfHref } from "../../shared/index.ts"; export interface MythicRaidLeaderboard extends LinkSelfHref { slug: string; diff --git a/src/wow/game_data/pet.ts b/src/wow/game_data/pet.ts index b5ff971..bfbe15d 100644 --- a/src/wow/game_data/pet.ts +++ b/src/wow/game_data/pet.ts @@ -1,4 +1,5 @@ -import { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface Pets extends LinkSelfHref { pets: KeyNameId[]; diff --git a/src/wow/game_data/playable_class.ts b/src/wow/game_data/playable_class.ts index 04887f9..f58e628 100644 --- a/src/wow/game_data/playable_class.ts +++ b/src/wow/game_data/playable_class.ts @@ -1,4 +1,5 @@ -import { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface PlayableClasses extends LinkSelfHref { classes: KeyNameId[]; diff --git a/src/wow/game_data/playable_race.ts b/src/wow/game_data/playable_race.ts index 9ddf3b8..606c611 100644 --- a/src/wow/game_data/playable_race.ts +++ b/src/wow/game_data/playable_race.ts @@ -1,4 +1,5 @@ -import { KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface PlayableRaces extends LinkSelfHref { races: KeyNameId[]; diff --git a/src/wow/game_data/playable_specialization.ts b/src/wow/game_data/playable_specialization.ts index b846596..87acf96 100644 --- a/src/wow/game_data/playable_specialization.ts +++ b/src/wow/game_data/playable_specialization.ts @@ -1,13 +1,5 @@ -import { - Asset, - KeyId, - KeyName, - KeyNameId, - LinkSelfHref, - LocalizedString, - request, - TypeName, -} from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyId, KeyName, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface PlayableSpecializations extends LinkSelfHref { character_specializations: KeyNameId; diff --git a/src/wow/game_data/power_type.ts b/src/wow/game_data/power_type.ts index d7a7eac..c50ab0e 100644 --- a/src/wow/game_data/power_type.ts +++ b/src/wow/game_data/power_type.ts @@ -1,4 +1,5 @@ -import { KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface PowerTypes extends LinkSelfHref { power_types: KeyNameId[]; diff --git a/src/wow/game_data/profession.ts b/src/wow/game_data/profession.ts index 3a3158c..d207075 100644 --- a/src/wow/game_data/profession.ts +++ b/src/wow/game_data/profession.ts @@ -1,4 +1,5 @@ -import { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface Professions extends LinkSelfHref { professions: KeyNameId[]; diff --git a/src/wow/game_data/pvp_season.ts b/src/wow/game_data/pvp_season.ts index 229ad5b..209ab92 100644 --- a/src/wow/game_data/pvp_season.ts +++ b/src/wow/game_data/pvp_season.ts @@ -1,4 +1,5 @@ -import { KeyId, KeyNameId, LinkSelfHref, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyId, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.ts"; export interface PvpSeasons extends LinkSelfHref { seasons: KeyId[]; diff --git a/src/wow/game_data/pvp_tier.ts b/src/wow/game_data/pvp_tier.ts index 84981e9..ea548db 100644 --- a/src/wow/game_data/pvp_tier.ts +++ b/src/wow/game_data/pvp_tier.ts @@ -1,4 +1,5 @@ -import { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface PvpTierMedia extends LinkSelfHref { assets: Asset[]; diff --git a/src/wow/game_data/quest.ts b/src/wow/game_data/quest.ts index 82b19e5..b82a4ec 100644 --- a/src/wow/game_data/quest.ts +++ b/src/wow/game_data/quest.ts @@ -1,4 +1,5 @@ -import { KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface Quests extends LinkSelfHref { categories: { diff --git a/src/wow/game_data/realm.ts b/src/wow/game_data/realm.ts index db4f323..391dab7 100644 --- a/src/wow/game_data/realm.ts +++ b/src/wow/game_data/realm.ts @@ -1,5 +1,7 @@ -import { KeyName, KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; -import { Search, search, SearchParameters } from "../search.ts"; +import { request } from "../../shared/index.ts"; +import { search } from "../search.ts"; +import type { KeyName, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; +import type { Search, SearchParameters } from "../search.ts"; export interface RealmList extends KeyNameId { slug: string; diff --git a/src/wow/game_data/region.ts b/src/wow/game_data/region.ts index 3026f82..552966e 100644 --- a/src/wow/game_data/region.ts +++ b/src/wow/game_data/region.ts @@ -1,4 +1,5 @@ -import { LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface Regions extends LinkSelfHref { regions: { diff --git a/src/wow/game_data/reputations.ts b/src/wow/game_data/reputations.ts index 367d7f5..bd722f2 100644 --- a/src/wow/game_data/reputations.ts +++ b/src/wow/game_data/reputations.ts @@ -1,4 +1,5 @@ -import { KeyId, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface ReputationFactions extends LinkSelfHref { factions: KeyNameId[]; diff --git a/src/wow/game_data/spell.ts b/src/wow/game_data/spell.ts index 573c312..285ad8e 100644 --- a/src/wow/game_data/spell.ts +++ b/src/wow/game_data/spell.ts @@ -1,5 +1,7 @@ -import { Asset, KeyId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; -import { Search, search, SearchParameters } from "../search.ts"; +import { request } from "../../shared/index.ts"; +import { search } from "../search.ts"; +import type { Asset, KeyId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; +import type { Search, SearchParameters } from "../search.ts"; export interface Spell extends LinkSelfHref { id: number; diff --git a/src/wow/game_data/talent.ts b/src/wow/game_data/talent.ts index 747bd37..1dbe882 100644 --- a/src/wow/game_data/talent.ts +++ b/src/wow/game_data/talent.ts @@ -1,4 +1,5 @@ -import { KeyName, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyName, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface TalentTrees extends LinkSelfHref { spec_talent_trees: KeyNameId; diff --git a/src/wow/game_data/tech_talent.ts b/src/wow/game_data/tech_talent.ts index 60ed6ca..f751f49 100644 --- a/src/wow/game_data/tech_talent.ts +++ b/src/wow/game_data/tech_talent.ts @@ -1,4 +1,5 @@ -import { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface TalentTree { key: { diff --git a/src/wow/game_data/title.ts b/src/wow/game_data/title.ts index 4bf6f3c..079c606 100644 --- a/src/wow/game_data/title.ts +++ b/src/wow/game_data/title.ts @@ -1,4 +1,5 @@ -import { KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface Titles extends LinkSelfHref { titles: KeyNameId[]; diff --git a/src/wow/game_data/token.ts b/src/wow/game_data/token.ts index 947b4b7..6bce5bb 100644 --- a/src/wow/game_data/token.ts +++ b/src/wow/game_data/token.ts @@ -4,7 +4,8 @@ * @author Pinta */ -import { LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { LinkSelfHref } from "../../shared/index.ts"; export interface WowToken extends LinkSelfHref { last_updated_timestamp: number; diff --git a/src/wow/game_data/toy.ts b/src/wow/game_data/toy.ts index d725481..2c42f27 100644 --- a/src/wow/game_data/toy.ts +++ b/src/wow/game_data/toy.ts @@ -1,4 +1,5 @@ -import { KeyId, KeyNameId, LinkSelfHref, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { KeyId, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.ts"; export interface Toys extends LinkSelfHref { toys: KeyNameId[]; diff --git a/src/wow/profile/character_achievements.ts b/src/wow/profile/character_achievements.ts index 99a31c6..49593ff 100644 --- a/src/wow/profile/character_achievements.ts +++ b/src/wow/profile/character_achievements.ts @@ -1,4 +1,5 @@ -import { Character, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface AchievementCriteria { id: number; diff --git a/src/wow/profile/character_appearance.ts b/src/wow/profile/character_appearance.ts index ffc2997..cfe09be 100644 --- a/src/wow/profile/character_appearance.ts +++ b/src/wow/profile/character_appearance.ts @@ -1,4 +1,5 @@ -import { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface CharacterAppearanceSummary extends LinkSelfHref { character: Character; diff --git a/src/wow/profile/character_collections.ts b/src/wow/profile/character_collections.ts index ffc5c73..e988399 100644 --- a/src/wow/profile/character_collections.ts +++ b/src/wow/profile/character_collections.ts @@ -1,4 +1,5 @@ -import { Character, KeyId, KeyNameId, LinkSelfHref, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyId, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.ts"; export interface Href { href: string; diff --git a/src/wow/profile/character_encounters.ts b/src/wow/profile/character_encounters.ts index e0e2ab8..130ee74 100644 --- a/src/wow/profile/character_encounters.ts +++ b/src/wow/profile/character_encounters.ts @@ -1,4 +1,5 @@ -import { Character, KeyNameId, LinkSelfHref, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.ts"; export interface CharacterEncounters extends LinkSelfHref { character: Character; diff --git a/src/wow/profile/character_equipment.ts b/src/wow/profile/character_equipment.ts index cf724e6..ea101d4 100644 --- a/src/wow/profile/character_equipment.ts +++ b/src/wow/profile/character_equipment.ts @@ -1,4 +1,5 @@ -import { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface Rgba { r: number; diff --git a/src/wow/profile/character_hunter_pets.ts b/src/wow/profile/character_hunter_pets.ts index 3436658..efc83ea 100644 --- a/src/wow/profile/character_hunter_pets.ts +++ b/src/wow/profile/character_hunter_pets.ts @@ -1,4 +1,5 @@ -import { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface CharacterHunterPets extends LinkSelfHref { character: Character; diff --git a/src/wow/profile/character_media.ts b/src/wow/profile/character_media.ts index f76680a..cb81fb9 100644 --- a/src/wow/profile/character_media.ts +++ b/src/wow/profile/character_media.ts @@ -1,4 +1,5 @@ -import { Asset, Character, LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Asset, Character, LinkSelfHref } from "../../shared/index.ts"; export interface CharacterMedia extends LinkSelfHref { character: Character; diff --git a/src/wow/profile/character_mythic_keystone_profile.ts b/src/wow/profile/character_mythic_keystone_profile.ts index 1733fd9..fb422f2 100644 --- a/src/wow/profile/character_mythic_keystone_profile.ts +++ b/src/wow/profile/character_mythic_keystone_profile.ts @@ -1,4 +1,5 @@ -import { Character, KeyId, KeyNameId, LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyId, KeyNameId, LinkSelfHref } from "../../shared/index.ts"; export interface MythicRating { color: { diff --git a/src/wow/profile/character_professions.ts b/src/wow/profile/character_professions.ts index 5b12a2a..0f0b40b 100644 --- a/src/wow/profile/character_professions.ts +++ b/src/wow/profile/character_professions.ts @@ -1,4 +1,5 @@ -import { Character, KeyNameId, LinkSelfHref, NameId, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyNameId, LinkSelfHref, NameId } from "../../shared/index.ts"; export interface Tier { skill_points: number; diff --git a/src/wow/profile/character_profile.ts b/src/wow/profile/character_profile.ts index f753869..8fdee4d 100644 --- a/src/wow/profile/character_profile.ts +++ b/src/wow/profile/character_profile.ts @@ -50,6 +50,7 @@ export interface CharacterProfile extends LinkSelfHref { renown_level: number; soulbinds: Href; }; + name_search: string; } export interface CharacterProfileStatus extends LinkSelfHref { diff --git a/src/wow/profile/character_pvp.ts b/src/wow/profile/character_pvp.ts index 0913c1f..8558fd4 100644 --- a/src/wow/profile/character_pvp.ts +++ b/src/wow/profile/character_pvp.ts @@ -1,4 +1,5 @@ -import { Character, KeyId, LinkSelfHref, LocalizedString, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.ts"; export interface MatchStatistic { played: number; diff --git a/src/wow/profile/character_quests.ts b/src/wow/profile/character_quests.ts index 44a6f92..6192e69 100644 --- a/src/wow/profile/character_quests.ts +++ b/src/wow/profile/character_quests.ts @@ -1,4 +1,5 @@ -import { Character, KeyNameId, LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.ts"; export interface CharacterQuests extends LinkSelfHref { character: Character; diff --git a/src/wow/profile/character_reputations.ts b/src/wow/profile/character_reputations.ts index 657d7dd..549d30a 100644 --- a/src/wow/profile/character_reputations.ts +++ b/src/wow/profile/character_reputations.ts @@ -1,4 +1,5 @@ -import { Character, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface CharacterReputations extends LinkSelfHref { character: Character; diff --git a/src/wow/profile/character_soulbinds.ts b/src/wow/profile/character_soulbinds.ts index 6eedfcd..c438ce1 100644 --- a/src/wow/profile/character_soulbinds.ts +++ b/src/wow/profile/character_soulbinds.ts @@ -1,4 +1,5 @@ -import { Character, KeyNameId, LinkSelfHref, request, TypeName } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.ts"; export interface CharacterSoulbinds extends LinkSelfHref { character: Character; diff --git a/src/wow/profile/character_specializations.ts b/src/wow/profile/character_specializations.ts index c4a04e9..328afe0 100644 --- a/src/wow/profile/character_specializations.ts +++ b/src/wow/profile/character_specializations.ts @@ -1,4 +1,5 @@ -import { Character, KeyNameId, LinkSelfHref, LocalizedString, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.ts"; export interface Detail { talent: KeyNameId; diff --git a/src/wow/profile/character_statistics.ts b/src/wow/profile/character_statistics.ts index 9760a07..7dbf108 100644 --- a/src/wow/profile/character_statistics.ts +++ b/src/wow/profile/character_statistics.ts @@ -1,4 +1,5 @@ -import { Character, KeyNameId, LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.ts"; export interface CharacterStatistics extends LinkSelfHref { health: number; diff --git a/src/wow/profile/character_titles.ts b/src/wow/profile/character_titles.ts index a47d661..91d9164 100644 --- a/src/wow/profile/character_titles.ts +++ b/src/wow/profile/character_titles.ts @@ -1,4 +1,5 @@ -import { Character, KeyNameId, LinkSelfHref, request } from "../../shared/index.ts"; +import { request } from "../../shared/index.ts"; +import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.ts"; export interface CharacterTitles extends LinkSelfHref { character: Character; diff --git a/src/wow/profile/guild.ts b/src/wow/profile/guild.ts index a73a6ea..b528663 100644 --- a/src/wow/profile/guild.ts +++ b/src/wow/profile/guild.ts @@ -46,6 +46,7 @@ export interface Guild extends LinkSelfHref { achievements?: Href; created_timestamp?: number; activity?: Href; + name_search: string; } export interface GuildActivity extends LinkSelfHref { diff --git a/src/wow/search.ts b/src/wow/search.ts index 1937e9c..2270a8e 100644 --- a/src/wow/search.ts +++ b/src/wow/search.ts @@ -1,4 +1,5 @@ -import { Namespaces, request } from "../shared/index.ts"; +import { request } from "../shared/index.ts"; +import type { Namespaces } from "../shared/index.ts"; export interface SearchParameters { searchFields?: Record;