@types/amazon-product-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.37 • Public • Published

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

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: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

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

Readme

Keywords

none

Package Sidebar

Install

npm i @types/amazon-product-api

Weekly Downloads

20

Version

0.0.37

License

MIT

Unpacked Size

5.65 kB

Total Files

5

Last publish

Collaborators

  • types