hypixel-auction-notifier/app/src/auctionType.ts

39 lines
686 B
TypeScript
Raw Normal View History

2024-12-27 22:58:39 +01:00
export type AuctionResponse = {
success: boolean
page: number
totalPages: number
totalAuctions: number
lastUpdated: number
auctions: Auction[]
}
export type Auction = {
uuid: string
auctioneer: string
profile_id: string
coop: string[]
start: number
end: number
item_name: string
item_lore: string
extra: string
category: string
tier: string
starting_bid: number
item_bytes: string
claimed: boolean
claimed_bidders: any[]
highest_bid_amount: number
last_updated: number
bin: boolean
bids: Bid[]
item_uuid?: string
}
export type Bid = {
auction_id: string
bidder: string
profile_id: string
amount: number
timestamp: number
}