feat: get image assets from api

This commit is contained in:
Zamitto
2025-05-08 08:51:31 -03:00
parent 30584492af
commit 00c589a138
24 changed files with 199 additions and 139 deletions

View File

@@ -36,10 +36,24 @@ export interface DownloadSource {
updatedAt: Date;
}
export interface ShopAssets {
objectId: string;
shop: GameShop;
title: string;
coverImageUrl: string;
libraryHeroImageUrl: string;
libraryImageUrl: string;
logoImageUrl: string;
iconUrl: string | null;
logoPosition: string | null;
}
export type ShopDetails = SteamAppDetails & {
objectId: string;
};
export type ShopDetailsWithAssets = ShopDetails & Partial<ShopAssets>;
export interface TorrentFile {
path: string;
length: number;
@@ -228,14 +242,8 @@ export interface GameStats {
playerCount: number;
}
export interface TrendingGame {
objectId: string;
shop: GameShop;
title: string;
export interface TrendingGame extends ShopAssets {
description: string | null;
background: string;
logo: string;
logoPosition: string | null;
uri: string;
}
@@ -329,17 +337,19 @@ export interface CatalogueSearchResult {
installCount: number;
achievementCount: number;
iconUrl: string;
coverImageUrl: string;
libraryHeroImageUrl: string;
libraryImageUrl: string;
logoImageUrl: string;
coverImageUrl: string;
logoPosition: string | null;
shopData: string;
}
export interface LibraryGame extends Game {
id: string;
download: Download | null;
}
export type LibraryGame = Game &
Partial<ShopAssets> & {
id: string;
download: Download | null;
};
export * from "./game.types";
export * from "./steam.types";