@sp-api-sdk/fulfillment-inbound-api-v0
Version:
The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
57 lines (56 loc) • 1.83 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FulfillmentInboundApiClient = 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('^/fba/inbound/v0/prepInstructions$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/fba/inbound/v0/shipments/[^/]*/labels$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/fba/inbound/v0/shipments/[^/]*/billOfLading$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/fba/inbound/v0/shipments$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/fba/inbound/v0/shipments/[^/]*/items$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/fba/inbound/v0/shipmentItems$'),
rate: 2,
burst: 30,
},
];
class FulfillmentInboundApiClient extends api_model_1.FbaInboundApi {
constructor(configuration) {
const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
super(new api_model_1.Configuration(), endpoint, axios);
}
}
exports.FulfillmentInboundApiClient = FulfillmentInboundApiClient;