0.0.37 • Published 6 months ago

@types/amazon-product-api v0.0.37

Weekly downloads
30
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/amazon-product-api

Summary

This package contains type definitions for amazon-product-api (https://github.com/t3chnoboy/amazon-product-api).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/amazon-product-api.

index.d.ts

// Type definitions for amazon-product-api
// Project: https://github.com/t3chnoboy/amazon-product-api
// Definitions by: Matti Lehtinen <https://github.com/MattiLehtinen>, Alex Leon <https://github.com/alien35>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped



interface ICredentials {
    awsId: string,
    awsSecret: string,
    awsTag: string
}

interface IAmazonProductQueryCallback {
    (err: string, results: Object[]): void;
}

interface IItemSearchOptions {
    condition?: string | undefined;
    keywords?: string | undefined;
    responseGroup?: string | undefined;
    searchIndex?: string | undefined;
    itemPage?: number | undefined;
    sort?: string | undefined;
}

interface IItemLookupOptions {
    condition?: string | undefined;
    idType?: string | undefined;
    includeReviewsSummary?: boolean | undefined;
    itemId?: string | string[] | undefined;
    responseGroup?: string | undefined;
    searchIndex?: string | undefined;
    truncateReviewsAt?: number | undefined;
    variationPage?: string | undefined;
    domain?: string | undefined;
    request?: Function | undefined;
}

interface IBrowseNodeLookupOptions {
    browseNodeId?: string | undefined;
    responseGroup?: string | undefined;
}

interface IAmazonProductClient {
    itemSearch(query: IItemSearchOptions, callback?: IAmazonProductQueryCallback): Promise<Object[]>;
    itemLookup(query: IItemLookupOptions, callback?: IAmazonProductQueryCallback): Promise<Object[]>;
    browseNodeLookup(query: IBrowseNodeLookupOptions, callback?: IAmazonProductQueryCallback): Promise<Object[]>;
}

export declare function createClient(credentials: ICredentials): IAmazonProductClient;

Additional Details

  • Last updated: Wed, 07 Jul 2021 21:44:12 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Matti Lehtinen, and Alex Leon.

0.0.35

8 months ago

0.0.36

7 months ago

0.0.37

6 months ago

0.0.34

3 years ago

0.0.33

6 years ago

0.0.32

7 years ago

0.0.31

7 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28-alpha

8 years ago

0.0.27-alpha

8 years ago

0.0.26-alpha

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.17-alpha

8 years ago

0.0.16-alpha

8 years ago