Methods
canMakeRequest() → {boolean}
Check if we can make a request (rate limiting)
- Source:
Returns:
True if request is allowed
- Type
- boolean
(async) getMarketValue(catalogId) → {Promise.<number>}
Get current market value for item - MUST be implemented by providers
Parameters:
| Name | Type | Description |
|---|---|---|
catalogId |
string | Catalog identifier |
- Source:
Returns:
Current market value in USD
- Type
- Promise.<number>
(async) lookupItem(catalogId) → {Promise.<Object>}
Lookup item by catalog ID - MUST be implemented by providers
Parameters:
| Name | Type | Description |
|---|---|---|
catalogId |
string | Catalog identifier |
- Source:
Returns:
Standardized item data
- Type
- Promise.<Object>
(async) request(url, options) → {Promise}
Make rate-limited HTTP request
Parameters:
| Name | Type | Description |
|---|---|---|
url |
string | Request URL |
options |
Object | Fetch options |
- Source:
Returns:
Fetch response
- Type
- Promise
(async) searchItems(query, filters) → {Promise.<Array>}
Search for items by query - MUST be implemented by providers
Parameters:
| Name | Type | Description |
|---|---|---|
query |
string | Search term |
filters |
Object | Search filters |
- Source:
Returns:
Array of standardized item data
- Type
- Promise.<Array>