Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
fill out GetMatchingProductReturn more
Browse files Browse the repository at this point in the history
  • Loading branch information
ericblade committed Jul 8, 2020
1 parent 4abba99 commit a309bf2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,14 @@ export type ListMatchingProductsReturn = Array<ProductInfo>;
export type GetMatchingProductReturn = Array<{
results: Array<ProductInfo>,
asin?: string,
upc?: string, // any other identifier types that might come up?
gcid?: string,
sellersku?: string,
upc?: string,
ean?: string,
isbn?: string,
jan?: string,
id: string,
idType: IdTypes,
idType: AdvIdTypes,
Error?: Error,
}>;

Expand Down Expand Up @@ -499,6 +504,15 @@ export type IdTypes =
| 'ISBN'
| 'JAN';

export type AdvIdTypes =
| 'asin'
| 'gcid'
| 'sellersku'
| 'upc'
| 'ean'
| 'isbn'
| 'jan';

export default class MwsAdvanced {
static constants: {
MWS_MARKETPLACES: MWS_MARKETPLACES,
Expand Down

0 comments on commit a309bf2

Please sign in to comment.