@sp-api-sdk/sellers-api-v1
Version:
The Selling Partner API for Sellers (Sellers API) provides essential information about seller accounts, such as: The marketplaces a seller can list in The default language and currency of a marketplace Whether the seller has suspended listings Refer to th
29 lines (28 loc) • 978 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SellersApiClient = exports.clientRateLimits = void 0;
const common_1 = require("@sp-api-sdk/common");
const api_model_1 = require("./api-model");
exports.clientRateLimits = [
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/sellers/v1/marketplaceParticipations$'),
rate: 0.016,
burst: 15,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/sellers/v1/account$'),
rate: 0.016,
burst: 15,
},
];
class SellersApiClient extends api_model_1.SellersApi {
constructor(configuration) {
const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
super(new api_model_1.Configuration(), endpoint, axios);
}
}
exports.SellersApiClient = SellersApiClient;