Skip to content

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.

1.2 KB
Raw Blame
interface CatalogPrice {
  final: string
  base: string
  discount: string
  finalMoney?: { amount: string; currency: string }
  baseMoney?: { amount: string; currency: string }
}

export interface CatalogGenre {
  name: string
  slug: string
}

export interface CatalogFeature {
  name: string
  slug: string
}

export interface CatalogTag {
  name: string
  slug: string
}

export interface CatalogRating {
  name: string
  ageRating: string
}

export type DiscountStore = 'gog' | 'gmg' | 'humble'

export interface CatalogProduct {
  id: string
  title: string
  // Absent on GOG catalog responses; the frontend treats undefined as 'gog'
  store?: DiscountStore
  coverHorizontal?: string
  coverVertical?: string
  price: CatalogPrice
  productType: string
  storeLink: string
  releaseDate?: string
  developers?: string[]
  publishers?: string[]
  operatingSystems?: string[]
  genres?: CatalogGenre[]
  features?: CatalogFeature[]
  tags?: CatalogTag[]
  reviewsRating?: number
  ratings?: CatalogRating[]
}

export interface CatalogLocaleSettings {
  countryCode: string
  locale: string
  currencyCode: string
}

export interface GogDealsRegion {
  countryCode: string
  currencyCode: string
}