/** * Import types from Nadal. */ import type { GameSlotJackpotResponseData } from '@kira-dancer/nadal' import type { UserStore } from './app' import type { PromotionUser } from './promotion' export interface UserBalance { balance: number user_id: number } export interface DataMessageSocket { balance?: UserBalance code?: number | string } export interface MessageSocketResponse { data?: DataMessageSocket | DataMessageSocket[] error?: string username?: string currentUser?: UserStore gpWalletData?: UserBalance[] code?: number | string } export interface JackpotSocketResponse { data: GameSlotJackpotResponseData | null } export interface PromotionUserSocketResponse { data: PromotionUser | null } export interface JackpotBannerSocketResponse { data?: JackpotBanner[] | null } export interface JackpotBanner { id: string name: string configValue: number currentValue: number on: boolean }