diff options
author | mat <github@matdoes.dev> | 2022-05-16 00:09:44 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-05-16 00:09:44 -0500 |
commit | cd9748e59f1dd9ef31afb22195b8d5a1346ec5c3 (patch) | |
tree | d6f134b778a6a2b9ff9f00a4f4d24196191dba53 /src/lib/APITypes.d.ts | |
parent | 41dc70e3af49fc11383d0dff3bbe8f006272bed9 (diff) | |
download | skyblock-stats-cd9748e59f1dd9ef31afb22195b8d5a1346ec5c3.tar.gz skyblock-stats-cd9748e59f1dd9ef31afb22195b8d5a1346ec5c3.tar.bz2 skyblock-stats-cd9748e59f1dd9ef31afb22195b8d5a1346ec5c3.zip |
start adding auctionprices page
Diffstat (limited to 'src/lib/APITypes.d.ts')
-rw-r--r-- | src/lib/APITypes.d.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/APITypes.d.ts b/src/lib/APITypes.d.ts index 6402721..6429e8b 100644 --- a/src/lib/APITypes.d.ts +++ b/src/lib/APITypes.d.ts @@ -434,3 +434,22 @@ export interface AccessoryBagUpgrades { list: string[] } } + +export interface SimpleAuctionSchema { + /** The UUID of the auction so we can look it up later. */ + id: string + coins: number + /** + * The timestamp as **seconds** since epoch. It's in seconds instead of ms + * since we don't need to be super exact and so it's shorter. + */ + ts: number + /** Whether the auction was bought or simply expired. */ + success: boolean + bin: boolean +} +export interface ItemAuctionsSchema { + /** The id of the item */ + _id: string + auctions: SimpleAuctionSchema[] +} |