initial commit
This commit is contained in:
30
src/types/api.ts
Normal file
30
src/types/api.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export interface AlbionPriceEntry {
|
||||
item_id: string
|
||||
city: string
|
||||
quality: number
|
||||
sell_price_min: number
|
||||
sell_price_min_date: string
|
||||
sell_price_max: number
|
||||
buy_price_min: number
|
||||
buy_price_max: number
|
||||
}
|
||||
|
||||
export type PriceCache = Map<string, AlbionPriceEntry>
|
||||
|
||||
export interface ManualPriceEntry {
|
||||
sell_price_min: number
|
||||
editedAt: string // ISO date string
|
||||
}
|
||||
|
||||
export type ManualPriceCache = Map<string, ManualPriceEntry>
|
||||
|
||||
export type AlbionCity =
|
||||
| 'Thetford'
|
||||
| 'Caerleon'
|
||||
| 'Bridgewatch'
|
||||
| 'Fort Sterling'
|
||||
| 'Lymhurst'
|
||||
| 'Martlock'
|
||||
| 'Black Market'
|
||||
|
||||
export type AlbionQuality = 1 | 2 | 3 | 4 | 5
|
||||
Reference in New Issue
Block a user