fetch item prices - throttle end points with promise queue
This commit is contained in:
@@ -1 +1,6 @@
|
||||
export * from './frame-type';
|
||||
export * from './item';
|
||||
export * from './item-price';
|
||||
export * from './league';
|
||||
export * from './rarity-color';
|
||||
export * from './stash-tab';
|
||||
|
||||
14
app/model/item-price.ts
Normal file
14
app/model/item-price.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface IItemPrice {
|
||||
currency_rec: string;
|
||||
data: any;
|
||||
error: number;
|
||||
item_base: string;
|
||||
max_price: string;
|
||||
median_price: string;
|
||||
min_price: string;
|
||||
name: string;
|
||||
pred_explanation: any[];
|
||||
recommendedPrice: string;
|
||||
resultsCounted: number;
|
||||
status: number;
|
||||
}
|
||||
@@ -1,6 +1,10 @@
|
||||
import { IItemPrice } from './item-price';
|
||||
|
||||
export interface IItem {
|
||||
category: any[];
|
||||
corrupted: boolean;
|
||||
descrText: string;
|
||||
elder: boolean;
|
||||
explicitMods: string[];
|
||||
frameType: number;
|
||||
h: number;
|
||||
@@ -8,10 +12,15 @@ export interface IItem {
|
||||
id: string;
|
||||
identified: boolean;
|
||||
ilvl: number;
|
||||
implicitMods: string[];
|
||||
inventoryId: string;
|
||||
itemPrice?: IItemPrice;
|
||||
league: string;
|
||||
name: string;
|
||||
properties: any[];
|
||||
requirements: any[];
|
||||
shaper: boolean;
|
||||
sockets: any[];
|
||||
stackSize?: number;
|
||||
typeLine: string;
|
||||
verified: boolean;
|
||||
|
||||
Reference in New Issue
Block a user