Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sp-api-sdk/catalog-items-api-v0

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sp-api-sdk/catalog-items-api-v0 - npm Package Compare versions

Comparing version 2.0.7 to 2.1.0

12

dist/cjs/src/api-model/api/catalog-api.js

@@ -181,3 +181,5 @@ "use strict";

const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItem(marketplaceId, asin, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['CatalogApi.getCatalogItem']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -194,3 +196,5 @@ /**

const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogCategories(marketplaceId, aSIN, sellerSKU, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['CatalogApi.listCatalogCategories']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -212,3 +216,5 @@ /**

const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogItems(marketplaceId, query, queryContextId, sellerSKU, uPC, eAN, iSBN, jAN, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['CatalogApi.listCatalogItems']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -215,0 +221,0 @@ };

@@ -19,3 +19,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
const axios_1 = __importDefault(require("axios"));

@@ -47,3 +47,3 @@ exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");

this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
this.basePath = configuration.basePath ?? basePath;
}

@@ -69,1 +69,6 @@ }

exports.RequiredError = RequiredError;
/**
*
* @export
*/
exports.operationServerMap = {};

@@ -141,3 +141,3 @@ "use strict";

return (axios = globalAxios, basePath = BASE_PATH) => {
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
return axios.request(axiosRequestArgs);

@@ -144,0 +144,0 @@ };

@@ -53,2 +53,9 @@ "use strict";

/**
* override server index
*
* @type {number}
* @memberof Configuration
*/
serverIndex;
/**
* base options for axios calls

@@ -74,2 +81,3 @@ *

this.basePath = param.basePath;
this.serverIndex = param.serverIndex;
this.baseOptions = param.baseOptions;

@@ -76,0 +84,0 @@ this.formDataCtor = param.formDataCtor;

@@ -19,3 +19,3 @@ /* tslint:disable */

// @ts-ignore
import { BASE_PATH, BaseAPI } from '../base';
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
/**

@@ -175,3 +175,5 @@ * CatalogApi - axios parameter creator

const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItem(marketplaceId, asin, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['CatalogApi.getCatalogItem']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -188,3 +190,5 @@ /**

const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogCategories(marketplaceId, aSIN, sellerSKU, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['CatalogApi.listCatalogCategories']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -206,3 +210,5 @@ /**

const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogItems(marketplaceId, query, queryContextId, sellerSKU, uPC, eAN, iSBN, jAN, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['CatalogApi.listCatalogItems']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -209,0 +215,0 @@ };

@@ -40,3 +40,3 @@ /* tslint:disable */

this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
this.basePath = configuration.basePath ?? basePath;
}

@@ -60,1 +60,6 @@ }

}
/**
*
* @export
*/
export const operationServerMap = {};

@@ -130,5 +130,5 @@ /* tslint:disable */

return (axios = globalAxios, basePath = BASE_PATH) => {
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
return axios.request(axiosRequestArgs);
};
};

@@ -50,2 +50,9 @@ /* tslint:disable */

/**
* override server index
*
* @type {number}
* @memberof Configuration
*/
serverIndex;
/**
* base options for axios calls

@@ -71,2 +78,3 @@ *

this.basePath = param.basePath;
this.serverIndex = param.serverIndex;
this.baseOptions = param.baseOptions;

@@ -73,0 +81,0 @@ this.formDataCtor = param.formDataCtor;

@@ -13,8 +13,8 @@ /**

import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import globalAxios from 'axios';
import { RequestArgs, BaseAPI } from '../base';
import { GetCatalogItemResponse } from '../models';
import { ListCatalogCategoriesResponse } from '../models';
import { ListCatalogItemsResponse } from '../models';
import { type RequestArgs, BaseAPI } from '../base';
import type { GetCatalogItemResponse } from '../models';
import type { ListCatalogCategoriesResponse } from '../models';
import type { ListCatalogItemsResponse } from '../models';
/**

@@ -32,3 +32,3 @@ * CatalogApi - axios parameter creator

*/
getCatalogItem: (marketplaceId: string, asin: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
getCatalogItem: (marketplaceId: string, asin: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**

@@ -42,3 +42,3 @@ * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
listCatalogCategories: (marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
listCatalogCategories: (marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**

@@ -57,3 +57,3 @@ * Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.

*/
listCatalogItems: (marketplaceId: string, query?: string, queryContextId?: string, sellerSKU?: string, uPC?: string, eAN?: string, iSBN?: string, jAN?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
listCatalogItems: (marketplaceId: string, query?: string, queryContextId?: string, sellerSKU?: string, uPC?: string, eAN?: string, iSBN?: string, jAN?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
};

@@ -72,3 +72,3 @@ /**

*/
getCatalogItem(marketplaceId: string, asin: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCatalogItemResponse>>;
getCatalogItem(marketplaceId: string, asin: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCatalogItemResponse>>;
/**

@@ -82,3 +82,3 @@ * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
listCatalogCategories(marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogCategoriesResponse>>;
listCatalogCategories(marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogCategoriesResponse>>;
/**

@@ -97,3 +97,3 @@ * Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.

*/
listCatalogItems(marketplaceId: string, query?: string, queryContextId?: string, sellerSKU?: string, uPC?: string, eAN?: string, iSBN?: string, jAN?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogItemsResponse>>;
listCatalogItems(marketplaceId: string, query?: string, queryContextId?: string, sellerSKU?: string, uPC?: string, eAN?: string, iSBN?: string, jAN?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogItemsResponse>>;
};

@@ -111,3 +111,3 @@ /**

*/
getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: AxiosRequestConfig): AxiosPromise<GetCatalogItemResponse>;
getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetCatalogItemResponse>;
/**

@@ -119,3 +119,3 @@ * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: AxiosRequestConfig): AxiosPromise<ListCatalogCategoriesResponse>;
listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListCatalogCategoriesResponse>;
/**

@@ -127,3 +127,3 @@ * Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.

*/
listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: AxiosRequestConfig): AxiosPromise<ListCatalogItemsResponse>;
listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListCatalogItemsResponse>;
};

@@ -243,3 +243,3 @@ /**

*/
getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetCatalogItemResponse, any>>;
getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetCatalogItemResponse, any>>;
/**

@@ -252,3 +252,3 @@ * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListCatalogCategoriesResponse, any>>;
listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListCatalogCategoriesResponse, any>>;
/**

@@ -261,3 +261,3 @@ * Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.

*/
listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListCatalogItemsResponse, any>>;
listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListCatalogItemsResponse, any>>;
}

@@ -13,3 +13,3 @@ /**

import type { Configuration } from './configuration';
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
export declare const BASE_PATH: string;

@@ -33,3 +33,3 @@ /**

url: string;
options: AxiosRequestConfig;
options: RawAxiosRequestConfig;
}

@@ -57,1 +57,13 @@ /**

}
interface ServerMap {
[key: string]: {
url: string;
description: string;
}[];
}
/**
*
* @export
*/
export declare const operationServerMap: ServerMap;
export {};

@@ -18,2 +18,3 @@ /**

basePath?: string;
serverIndex?: number;
baseOptions?: any;

@@ -58,2 +59,9 @@ formDataCtor?: new () => any;

/**
* override server index
*
* @type {number}
* @memberof Configuration
*/
serverIndex?: number;
/**
* base options for axios calls

@@ -60,0 +68,0 @@ *

@@ -12,8 +12,8 @@ /**

*/
import { CreatorType } from './creator-type';
import { DecimalWithUnits } from './decimal-with-units';
import { DimensionType } from './dimension-type';
import { Image } from './image';
import { LanguageType } from './language-type';
import { Price } from './price';
import type { CreatorType } from './creator-type';
import type { DecimalWithUnits } from './decimal-with-units';
import type { DimensionType } from './dimension-type';
import type { Image } from './image';
import type { LanguageType } from './language-type';
import type { Price } from './price';
/**

@@ -20,0 +20,0 @@ * The attributes of the item.

@@ -12,3 +12,3 @@ /**

*/
import { DecimalWithUnits } from './decimal-with-units';
import type { DecimalWithUnits } from './decimal-with-units';
/**

@@ -15,0 +15,0 @@ * The dimension type attribute of an item.

@@ -12,3 +12,3 @@ /**

*/
import { Item } from './item';
import type { Item } from './item';
/**

@@ -15,0 +15,0 @@ *

@@ -12,4 +12,4 @@ /**

*/
import { ASINIdentifier } from './asinidentifier';
import { SellerSKUIdentifier } from './seller-skuidentifier';
import type { ASINIdentifier } from './asinidentifier';
import type { SellerSKUIdentifier } from './seller-skuidentifier';
/**

@@ -16,0 +16,0 @@ *

@@ -12,3 +12,3 @@ /**

*/
import { DecimalWithUnits } from './decimal-with-units';
import type { DecimalWithUnits } from './decimal-with-units';
/**

@@ -15,0 +15,0 @@ * The image attribute of the item.

@@ -12,6 +12,6 @@ /**

*/
import { AttributeSetListType } from './attribute-set-list-type';
import { IdentifierType } from './identifier-type';
import { RelationshipType } from './relationship-type';
import { SalesRankType } from './sales-rank-type';
import type { AttributeSetListType } from './attribute-set-list-type';
import type { IdentifierType } from './identifier-type';
import type { RelationshipType } from './relationship-type';
import type { SalesRankType } from './sales-rank-type';
/**

@@ -18,0 +18,0 @@ * An item in the Amazon catalog.

@@ -12,3 +12,3 @@ /**

*/
import { Categories } from './categories';
import type { Categories } from './categories';
/**

@@ -15,0 +15,0 @@ *

@@ -12,3 +12,3 @@ /**

*/
import { ListMatchingItemsResponse } from './list-matching-items-response';
import type { ListMatchingItemsResponse } from './list-matching-items-response';
/**

@@ -15,0 +15,0 @@ *

@@ -12,3 +12,3 @@ /**

*/
import { Item } from './item';
import type { Item } from './item';
/**

@@ -15,0 +15,0 @@ *

@@ -12,5 +12,5 @@ /**

*/
import { DecimalWithUnits } from './decimal-with-units';
import { DimensionType } from './dimension-type';
import { IdentifierType } from './identifier-type';
import type { DecimalWithUnits } from './decimal-with-units';
import type { DimensionType } from './dimension-type';
import type { IdentifierType } from './identifier-type';
/**

@@ -17,0 +17,0 @@ * Specific variations of the item.

@@ -5,3 +5,3 @@ {

"description": "The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.",
"version": "2.0.7",
"version": "2.1.0",
"main": "dist/cjs/index.js",

@@ -22,4 +22,4 @@ "module": "dist/es/index.js",

"dependencies": {
"@sp-api-sdk/common": "2.0.7",
"axios": "^1.6.8"
"@sp-api-sdk/common": "2.0.8",
"axios": "^1.7.0"
},

@@ -45,3 +45,3 @@ "repository": {

],
"gitHead": "556cf5234c43b36ddaffa12f795a925b1c7fc63b"
"gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc