@sp-api-sdk/fulfillment-inbound-api-2024-03-20
Version:
The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user inte
330 lines (329 loc) • 10.5 kB
JavaScript
"use strict";
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('^/inbound/fba/2024-03-20/inboundPlans$'),
rate: 2,
burst: 6,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans$'),
rate: 2,
burst: 2,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*$'),
rate: 2,
burst: 6,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/boxes$'),
rate: 2,
burst: 6,
},
{
method: 'put',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/cancellation$'),
rate: 2,
burst: 2,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/items$'),
rate: 2,
burst: 6,
},
{
method: 'put',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/name$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/boxes$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/items$'),
rate: 2,
burst: 30,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/packingInformation$'),
rate: 2,
burst: 2,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/packingOptions$'),
rate: 2,
burst: 6,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/packingOptions$'),
rate: 2,
burst: 2,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/confirmation$'),
rate: 2,
burst: 2,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/pallets$'),
rate: 2,
burst: 6,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/placementOptions$'),
rate: 2,
burst: 6,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/placementOptions$'),
rate: 2,
burst: 2,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/confirmation$'),
rate: 2,
burst: 2,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*$'),
rate: 2,
burst: 6,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/boxes$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/contentUpdatePreviews$'),
rate: 2,
burst: 30,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/contentUpdatePreviews$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*$'),
rate: 2,
burst: 30,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/confirmation$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/deliveryChallanDocument$'),
rate: 2,
burst: 6,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/deliveryWindowOptions$'),
rate: 2,
burst: 30,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/deliveryWindowOptions$'),
rate: 2,
burst: 30,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/confirmation$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/items$'),
rate: 2,
burst: 30,
},
{
method: 'put',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/name$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/pallets$'),
rate: 2,
burst: 30,
},
{
method: 'put',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/selfShipAppointmentCancellation$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/selfShipAppointmentSlots$'),
rate: 2,
burst: 6,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/selfShipAppointmentSlots$'),
rate: 2,
burst: 2,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/schedule$'),
rate: 2,
burst: 2,
},
{
method: 'put',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/sourceAddress$'),
rate: 2,
burst: 30,
},
{
method: 'put',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/trackingDetails$'),
rate: 2,
burst: 2,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/transportationOptions$'),
rate: 2,
burst: 6,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/transportationOptions$'),
rate: 2,
burst: 2,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/inboundPlans/[^/]*/transportationOptions/confirmation$'),
rate: 2,
burst: 2,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/items/compliance$'),
rate: 2,
burst: 6,
},
{
method: 'put',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/items/compliance$'),
rate: 2,
burst: 6,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/items/labels$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/items/prepDetails$'),
rate: 2,
burst: 30,
},
{
method: 'post',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/items/prepDetails$'),
rate: 2,
burst: 30,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/inbound/fba/2024-03-20/operations/[^/]*$'),
rate: 2,
burst: 6,
},
];
class FulfillmentInboundApiClient extends api_model_1.FulfillmentInboundApi {
constructor(configuration) {
const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
super(new api_model_1.Configuration(), endpoint, axios);
}
}
exports.FulfillmentInboundApiClient = FulfillmentInboundApiClient;