initial commit

This commit is contained in:
Jo Blo
2026-03-04 17:01:08 -05:00
commit 39d61d797d
51 changed files with 7864 additions and 0 deletions

30
src/types/api.ts Normal file
View 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