/** * Import types from Nadal. */ import type { TransactionBetHistoriesResponseData } from '@kira-dancer/nadal' export interface BetHistoryState { betHistory: BettingItemDisplay[] currentPage: number totalRecords: number limit: number selectedStatus: string } export interface BetHistoryPaginatedData { totalRecords?: number currentPage?: number limit?: number } export interface BettingItemDisplay { sportType: { sportName: string product: string note: string eventTypeName?: string teams?: string leagueName?: string } id: number transId: string stake: string timeArr: string bonus: number status: { statusText: string statusClass: string } winLostText: string note?: string } export interface AEIBettingItemDisplay { id: number commission: string sport_name: string product: string ticket_id: string stake: number winlost: number ticket_status: string type: string created_time: string } export interface BettingItem extends TransactionBetHistoriesResponseData { trans_id?: string sport_type?: string bet_type_name?: string event_type_name?: string home_name?: string away_name?: string league_name?: string winLostText?: string winlost_amount?: number ticket_status: string status?: { statusText: string statusClass: string } }