UNPKG

chimi-scraper

Version:

A TypeScript library for scraping game data from itch.io with a clean, scalable architecture

92 lines 2 kB
export interface ITitle { romaji?: string; english?: string; native?: string; userPreferred?: string; } export interface IImage { extraLarge?: string; large?: string; medium?: string; color?: string; } export interface IPrice { amount: number; currency: string; formatted: string; } export interface IGameInfo { id: string; title: string; url: string; image?: string; cover?: string; description?: string; genres?: string[]; tags?: string[]; price?: IPrice; isFree: boolean; isOnSale?: boolean; originalPrice?: IPrice; platforms?: string[]; releaseDate?: string; rating?: number; ratingCount?: number; developer?: string; publisher?: string; screenshots?: string[]; videos?: string[]; } export interface IGameResult { id: string; title: string; url: string; image?: string; price?: IPrice; isFree: boolean; platforms?: string[]; developer?: string; } export interface ISearch<T> { currentPage?: number; hasNextPage?: boolean; totalPages?: number; totalResults?: number; results: T[]; } export interface IGameScreenshots { url: string; thumbnail?: string; } export interface IGameVideo { url: string; thumbnail?: string; title?: string; type?: 'trailer' | 'gameplay' | 'other'; } export declare enum GamePlatform { WINDOWS = "Windows", MAC = "macOS", LINUX = "Linux", ANDROID = "Android", WEB = "Web", IOS = "iOS" } export declare enum GameGenre { ACTION = "Action", ADVENTURE = "Adventure", PUZZLE = "Puzzle", STRATEGY = "Strategy", SIMULATION = "Simulation", RPG = "RPG", PLATFORMER = "Platformer", FIGHTING = "Fighting", RACING = "Racing", SPORTS = "Sports", HORROR = "Horror", VISUAL_NOVEL = "Visual Novel", EDUCATIONAL = "Educational", MUSIC = "Music", ARCADE = "Arcade" } //# sourceMappingURL=types.d.ts.map