/** * Import types from Nadal. */ import type { GameCasinoLiveCasinoResponseData } from '@kira-dancer/nadal' import type { Dayjs } from 'dayjs' import type { PlayGameSchemeEnum } from '#lib/enums' export interface CasinoGameItem extends GameCasinoLiveCasinoResponseData { subType?: string game_id?: string openTable?: string partner_game_id?: string gameType?: string gameName: string application?: string url?: string apiUrl?: string label?: string favorite?: boolean isMaintenance?: boolean isMaintain?: boolean ID?: number } export interface CasinoResponseItem { count: number name: string order: string slug: string } export interface GameOptions { ID?: number apiUrl?: string gameId?: string loginRequired?: boolean newTab?: boolean promotionPrevent?: boolean gameUrl?: string gameType?: string provider?: string gameCode?: string promotionPrevent100K?: boolean moneyRequired?: boolean isCommingSoon?: boolean withoutIframe?: boolean isCasino?: boolean category?: string[] urlLocation?: string partnerGameId?: string title?: string subTitle?: string imgSrc?: string imgSrcMB?: string providerUrl?: string link?: string isMaintenance?: boolean } export interface GamesRequestPayload { prov?: string groups?: string search?: string limit?: number cats?: string paged?: number offset?: number } export interface GameItem { ID?: number title?: string img?: { mobile?: { url: string } thumbnail: { url: string } cover?: { url: string } banner?: { url: string } } group?: string[] category?: string[] provider?: string gameId?: string gameType?: string promotionPrevent?: boolean loginRequired?: boolean jackpot?: boolean newTab?: boolean tag?: string gameUrl?: string apiUrl?: string gameCode?: string textSearch?: string promotionPrevent100K?: boolean wallet?: string feature?: boolean order?: number gameName?: string link?: string maintenance?: boolean maintain?: boolean imgSrc?: string partner_game_id?: string partnerGameId?: string cats?: string icon?: string label?: string url?: string favorite?: boolean range?: string tableId?: string tableCode?: string } export interface ProviderGameItem { name: string slug: string icon?: string count?: number order?: string } export type Period = 'monthly' | 'weekly' | 'daily' export interface GameTopWinningRequest { gameType: string period: string } export interface PGSoftRequest { url_type: string path: string extra_args: { btt: number l: string } } export interface LotteryCity { created_at?: string date?: string feature?: number id?: number name?: string region?: string code?: number label?: string value?: string | number status?: number time_release?: string updated_at?: string url_minhngoc?: string url_rss?: string url_source?: string } export interface lotteryHeader { region: LotteryCity | null date: Dayjs | Date } export type LotteryPrize = Record export interface Lottery { result: LotteryPrize title: string } export interface LotteryTable { lottery: Lottery originalResult: LotteryPrize } export interface LotteryResultItem { key: string name: string value: string } export interface PlayGameApiReponse { content: string type: PlayGameSchemeEnum }