diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2022-05-19 02:34:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 02:34:18 +0000 |
commit | 9b714fe39c83794538e0b38a63afd2bf39664c2f (patch) | |
tree | e0b638cad2b38c17f84fe5270f360a21756f6728 /src/lib/APITypes.d.ts | |
parent | 41dc70e3af49fc11383d0dff3bbe8f006272bed9 (diff) | |
parent | 97688e22c8335642b72d200ce0a865353bef5207 (diff) | |
download | skyblock-stats-9b714fe39c83794538e0b38a63afd2bf39664c2f.tar.gz skyblock-stats-9b714fe39c83794538e0b38a63afd2bf39664c2f.tar.bz2 skyblock-stats-9b714fe39c83794538e0b38a63afd2bf39664c2f.zip |
Merge pull request #3 from skyblockstats/auctions
Auction Prices
Diffstat (limited to 'src/lib/APITypes.d.ts')
-rw-r--r-- | src/lib/APITypes.d.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/APITypes.d.ts b/src/lib/APITypes.d.ts index 6402721..e01a950 100644 --- a/src/lib/APITypes.d.ts +++ b/src/lib/APITypes.d.ts @@ -434,3 +434,23 @@ 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 + sbId: string + auctions: SimpleAuctionSchema[] +} |