@sp-api-sdk/fulfillment-inbound-api-v0 4.1.15 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +881 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/{types/api-model/api/fulfillment-inbound-api.d.ts → index.d.cts} +965 -35
  5. package/dist/index.d.ts +1358 -0
  6. package/dist/index.js +825 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/fulfillment-inbound-api.js +0 -574
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/address.js +0 -15
  16. package/dist/cjs/api-model/models/amazon-prep-fees-details.js +0 -15
  17. package/dist/cjs/api-model/models/amount.js +0 -15
  18. package/dist/cjs/api-model/models/asinprep-instructions.js +0 -15
  19. package/dist/cjs/api-model/models/barcode-instruction.js +0 -24
  20. package/dist/cjs/api-model/models/bill-of-lading-download-url.js +0 -15
  21. package/dist/cjs/api-model/models/box-contents-fee-details.js +0 -15
  22. package/dist/cjs/api-model/models/box-contents-source.js +0 -25
  23. package/dist/cjs/api-model/models/currency-code.js +0 -23
  24. package/dist/cjs/api-model/models/error-reason.js +0 -23
  25. package/dist/cjs/api-model/models/get-bill-of-lading-response.js +0 -15
  26. package/dist/cjs/api-model/models/get-labels-response.js +0 -15
  27. package/dist/cjs/api-model/models/get-prep-instructions-response.js +0 -15
  28. package/dist/cjs/api-model/models/get-prep-instructions-result.js +0 -15
  29. package/dist/cjs/api-model/models/get-shipment-items-response.js +0 -15
  30. package/dist/cjs/api-model/models/get-shipment-items-result.js +0 -15
  31. package/dist/cjs/api-model/models/get-shipments-response.js +0 -15
  32. package/dist/cjs/api-model/models/get-shipments-result.js +0 -15
  33. package/dist/cjs/api-model/models/inbound-shipment-info.js +0 -15
  34. package/dist/cjs/api-model/models/inbound-shipment-item.js +0 -15
  35. package/dist/cjs/api-model/models/index.js +0 -47
  36. package/dist/cjs/api-model/models/invalid-asin.js +0 -15
  37. package/dist/cjs/api-model/models/invalid-sku.js +0 -15
  38. package/dist/cjs/api-model/models/label-download-url.js +0 -15
  39. package/dist/cjs/api-model/models/label-prep-type.js +0 -24
  40. package/dist/cjs/api-model/models/model-error.js +0 -15
  41. package/dist/cjs/api-model/models/prep-details.js +0 -15
  42. package/dist/cjs/api-model/models/prep-guidance.js +0 -24
  43. package/dist/cjs/api-model/models/prep-instruction.js +0 -37
  44. package/dist/cjs/api-model/models/prep-owner.js +0 -23
  45. package/dist/cjs/api-model/models/shipment-status.js +0 -31
  46. package/dist/cjs/api-model/models/skuprep-instructions.js +0 -15
  47. package/dist/cjs/client.js +0 -56
  48. package/dist/cjs/index.js +0 -19
  49. package/dist/es/api-model/api/fulfillment-inbound-api.js +0 -564
  50. package/dist/es/api-model/api.js +0 -14
  51. package/dist/es/api-model/base.js +0 -44
  52. package/dist/es/api-model/common.js +0 -110
  53. package/dist/es/api-model/configuration.js +0 -94
  54. package/dist/es/api-model/index.js +0 -16
  55. package/dist/es/api-model/models/address.js +0 -14
  56. package/dist/es/api-model/models/amazon-prep-fees-details.js +0 -14
  57. package/dist/es/api-model/models/amount.js +0 -14
  58. package/dist/es/api-model/models/asinprep-instructions.js +0 -14
  59. package/dist/es/api-model/models/barcode-instruction.js +0 -21
  60. package/dist/es/api-model/models/bill-of-lading-download-url.js +0 -14
  61. package/dist/es/api-model/models/box-contents-fee-details.js +0 -14
  62. package/dist/es/api-model/models/box-contents-source.js +0 -22
  63. package/dist/es/api-model/models/currency-code.js +0 -20
  64. package/dist/es/api-model/models/error-reason.js +0 -20
  65. package/dist/es/api-model/models/get-bill-of-lading-response.js +0 -14
  66. package/dist/es/api-model/models/get-labels-response.js +0 -14
  67. package/dist/es/api-model/models/get-prep-instructions-response.js +0 -14
  68. package/dist/es/api-model/models/get-prep-instructions-result.js +0 -14
  69. package/dist/es/api-model/models/get-shipment-items-response.js +0 -14
  70. package/dist/es/api-model/models/get-shipment-items-result.js +0 -14
  71. package/dist/es/api-model/models/get-shipments-response.js +0 -14
  72. package/dist/es/api-model/models/get-shipments-result.js +0 -14
  73. package/dist/es/api-model/models/inbound-shipment-info.js +0 -14
  74. package/dist/es/api-model/models/inbound-shipment-item.js +0 -14
  75. package/dist/es/api-model/models/index.js +0 -31
  76. package/dist/es/api-model/models/invalid-asin.js +0 -14
  77. package/dist/es/api-model/models/invalid-sku.js +0 -14
  78. package/dist/es/api-model/models/label-download-url.js +0 -14
  79. package/dist/es/api-model/models/label-prep-type.js +0 -21
  80. package/dist/es/api-model/models/model-error.js +0 -14
  81. package/dist/es/api-model/models/prep-details.js +0 -14
  82. package/dist/es/api-model/models/prep-guidance.js +0 -21
  83. package/dist/es/api-model/models/prep-instruction.js +0 -34
  84. package/dist/es/api-model/models/prep-owner.js +0 -20
  85. package/dist/es/api-model/models/shipment-status.js +0 -28
  86. package/dist/es/api-model/models/skuprep-instructions.js +0 -14
  87. package/dist/es/client.js +0 -52
  88. package/dist/es/index.js +0 -3
  89. package/dist/types/api-model/api.d.ts +0 -12
  90. package/dist/types/api-model/base.d.ts +0 -42
  91. package/dist/types/api-model/common.d.ts +0 -34
  92. package/dist/types/api-model/configuration.d.ts +0 -98
  93. package/dist/types/api-model/index.d.ts +0 -14
  94. package/dist/types/api-model/models/address.d.ts +0 -48
  95. package/dist/types/api-model/models/amazon-prep-fees-details.d.ts +0 -20
  96. package/dist/types/api-model/models/amount.d.ts +0 -22
  97. package/dist/types/api-model/models/asinprep-instructions.d.ts +0 -29
  98. package/dist/types/api-model/models/barcode-instruction.d.ts +0 -20
  99. package/dist/types/api-model/models/bill-of-lading-download-url.d.ts +0 -20
  100. package/dist/types/api-model/models/box-contents-fee-details.d.ts +0 -23
  101. package/dist/types/api-model/models/box-contents-source.d.ts +0 -21
  102. package/dist/types/api-model/models/currency-code.d.ts +0 -19
  103. package/dist/types/api-model/models/error-reason.d.ts +0 -19
  104. package/dist/types/api-model/models/get-bill-of-lading-response.d.ts +0 -22
  105. package/dist/types/api-model/models/get-labels-response.d.ts +0 -22
  106. package/dist/types/api-model/models/get-prep-instructions-response.d.ts +0 -22
  107. package/dist/types/api-model/models/get-prep-instructions-result.d.ts +0 -36
  108. package/dist/types/api-model/models/get-shipment-items-response.d.ts +0 -22
  109. package/dist/types/api-model/models/get-shipment-items-result.d.ts +0 -25
  110. package/dist/types/api-model/models/get-shipments-response.d.ts +0 -22
  111. package/dist/types/api-model/models/get-shipments-result.d.ts +0 -25
  112. package/dist/types/api-model/models/inbound-shipment-info.d.ts +0 -46
  113. package/dist/types/api-model/models/inbound-shipment-item.d.ts +0 -49
  114. package/dist/types/api-model/models/index.d.ts +0 -31
  115. package/dist/types/api-model/models/invalid-asin.d.ts +0 -22
  116. package/dist/types/api-model/models/invalid-sku.d.ts +0 -22
  117. package/dist/types/api-model/models/label-download-url.d.ts +0 -20
  118. package/dist/types/api-model/models/label-prep-type.d.ts +0 -20
  119. package/dist/types/api-model/models/model-error.d.ts +0 -28
  120. package/dist/types/api-model/models/prep-details.d.ts +0 -20
  121. package/dist/types/api-model/models/prep-guidance.d.ts +0 -20
  122. package/dist/types/api-model/models/prep-instruction.d.ts +0 -33
  123. package/dist/types/api-model/models/prep-owner.d.ts +0 -19
  124. package/dist/types/api-model/models/shipment-status.d.ts +0 -27
  125. package/dist/types/api-model/models/skuprep-instructions.d.ts +0 -38
  126. package/dist/types/client.d.ts +0 -6
  127. package/dist/types/index.d.ts +0 -3
package/dist/index.js ADDED
@@ -0,0 +1,825 @@
1
+ // src/client.ts
2
+ import { createAxiosInstance } from "@sp-api-sdk/common";
3
+
4
+ // src/api-model/api/fulfillment-inbound-api.ts
5
+ import globalAxios2 from "axios";
6
+
7
+ // src/api-model/base.ts
8
+ import globalAxios from "axios";
9
+ var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
10
+ var COLLECTION_FORMATS = {
11
+ csv: ",",
12
+ ssv: " ",
13
+ tsv: " ",
14
+ pipes: "|"
15
+ };
16
+ var BaseAPI = class {
17
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
18
+ this.basePath = basePath;
19
+ this.axios = axios;
20
+ if (configuration) {
21
+ this.configuration = configuration;
22
+ this.basePath = configuration.basePath ?? basePath;
23
+ }
24
+ }
25
+ basePath;
26
+ axios;
27
+ configuration;
28
+ };
29
+ var RequiredError = class extends Error {
30
+ constructor(field, msg) {
31
+ super(msg);
32
+ this.field = field;
33
+ this.name = "RequiredError";
34
+ }
35
+ field;
36
+ };
37
+ var operationServerMap = {};
38
+
39
+ // src/api-model/common.ts
40
+ var DUMMY_BASE_URL = "https://example.com";
41
+ var assertParamExists = function(functionName, paramName, paramValue) {
42
+ if (paramValue === null || paramValue === void 0) {
43
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
44
+ }
45
+ };
46
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
47
+ if (parameter == null) return;
48
+ if (typeof parameter === "object") {
49
+ if (Array.isArray(parameter) || parameter instanceof Set) {
50
+ parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
51
+ } else {
52
+ Object.keys(parameter).forEach(
53
+ (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
54
+ );
55
+ }
56
+ } else {
57
+ if (urlSearchParams.has(key)) {
58
+ urlSearchParams.append(key, parameter);
59
+ } else {
60
+ urlSearchParams.set(key, parameter);
61
+ }
62
+ }
63
+ }
64
+ var setSearchParams = function(url, ...objects) {
65
+ const searchParams = new URLSearchParams(url.search);
66
+ setFlattenedQueryParams(searchParams, objects);
67
+ url.search = searchParams.toString();
68
+ };
69
+ var toPathString = function(url) {
70
+ return url.pathname + url.search + url.hash;
71
+ };
72
+ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
73
+ return (axios = globalAxios3, basePath = BASE_PATH2) => {
74
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
75
+ return axios.request(axiosRequestArgs);
76
+ };
77
+ };
78
+
79
+ // src/api-model/api/fulfillment-inbound-api.ts
80
+ var FulfillmentInboundApiAxiosParamCreator = function(configuration) {
81
+ return {
82
+ /**
83
+ * Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
84
+ * @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ getBillOfLading: async (shipmentId, options = {}) => {
89
+ assertParamExists("getBillOfLading", "shipmentId", shipmentId);
90
+ const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/billOfLading`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
91
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
92
+ let baseOptions;
93
+ if (configuration) {
94
+ baseOptions = configuration.baseOptions;
95
+ }
96
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
97
+ const localVarHeaderParameter = {};
98
+ const localVarQueryParameter = {};
99
+ localVarHeaderParameter["Accept"] = "application/json";
100
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
101
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
102
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
103
+ return {
104
+ url: toPathString(localVarUrlObj),
105
+ options: localVarRequestOptions
106
+ };
107
+ },
108
+ /**
109
+ * Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
110
+ * @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
111
+ * @param {GetLabelsPageTypeEnum} pageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.
112
+ * @param {GetLabelsLabelTypeEnum} labelType The type of labels requested.
113
+ * @param {number} [numberOfPackages] The number of packages in the shipment.
114
+ * @param {Array<string>} [packageLabelsToPrint] A list of identifiers that specify packages for which you want package labels printed. If you provide box content information with the [FBA Inbound Shipment Carton Information Feed](https://developer-docs.amazon.com/sp-api/docs/fulfillment-by-amazon-feed-type-values#fba-inbound-shipment-carton-information-feed), then &#x60;PackageLabelsToPrint&#x60; must match the &#x60;CartonId&#x60; values you provide through that feed. If you provide box content information with the Fulfillment Inbound API v2024-03-20, then &#x60;PackageLabelsToPrint&#x60; must match the &#x60;boxID&#x60; values from the [&#x60;listShipmentBoxes&#x60;](https://developer-docs.amazon.com/sp-api/reference/listshipmentboxes) response. If these values do not match as required, the operation returns the &#x60;IncorrectPackageIdentifier&#x60; error code.
115
+ * @param {number} [numberOfPallets] The number of pallets in the shipment. This returns four identical labels for each pallet.
116
+ * @param {number} [pageSize] The page size for paginating through the total packages\&#39; labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000.
117
+ * @param {number} [pageStartIndex] The page start index for paginating through the total packages\&#39; labels. This is a required parameter for Non-Partnered LTL Shipments.
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ getLabels: async (shipmentId, pageType, labelType, numberOfPackages, packageLabelsToPrint, numberOfPallets, pageSize, pageStartIndex, options = {}) => {
122
+ assertParamExists("getLabels", "shipmentId", shipmentId);
123
+ assertParamExists("getLabels", "pageType", pageType);
124
+ assertParamExists("getLabels", "labelType", labelType);
125
+ const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/labels`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
126
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
127
+ let baseOptions;
128
+ if (configuration) {
129
+ baseOptions = configuration.baseOptions;
130
+ }
131
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
132
+ const localVarHeaderParameter = {};
133
+ const localVarQueryParameter = {};
134
+ if (pageType !== void 0) {
135
+ localVarQueryParameter["PageType"] = pageType;
136
+ }
137
+ if (labelType !== void 0) {
138
+ localVarQueryParameter["LabelType"] = labelType;
139
+ }
140
+ if (numberOfPackages !== void 0) {
141
+ localVarQueryParameter["NumberOfPackages"] = numberOfPackages;
142
+ }
143
+ if (packageLabelsToPrint) {
144
+ localVarQueryParameter["PackageLabelsToPrint"] = packageLabelsToPrint.join(COLLECTION_FORMATS.csv);
145
+ }
146
+ if (numberOfPallets !== void 0) {
147
+ localVarQueryParameter["NumberOfPallets"] = numberOfPallets;
148
+ }
149
+ if (pageSize !== void 0) {
150
+ localVarQueryParameter["PageSize"] = pageSize;
151
+ }
152
+ if (pageStartIndex !== void 0) {
153
+ localVarQueryParameter["PageStartIndex"] = pageStartIndex;
154
+ }
155
+ localVarHeaderParameter["Accept"] = "application/json";
156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
159
+ return {
160
+ url: toPathString(localVarUrlObj),
161
+ options: localVarRequestOptions
162
+ };
163
+ },
164
+ /**
165
+ * Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon\'s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
166
+ * @param {string} shipToCountryCode The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country.
167
+ * @param {Array<string>} [sellerSKUList] A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon\&#39;s fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon\&#39;s retail website. If you include a seller SKU that you have never used to list an item on Amazon\&#39;s retail website, the seller SKU is returned in the InvalidSKUList property in the response.
168
+ * @param {Array<string>} [aSINList] A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers.
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ getPrepInstructions: async (shipToCountryCode, sellerSKUList, aSINList, options = {}) => {
173
+ assertParamExists("getPrepInstructions", "shipToCountryCode", shipToCountryCode);
174
+ const localVarPath = `/fba/inbound/v0/prepInstructions`;
175
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
176
+ let baseOptions;
177
+ if (configuration) {
178
+ baseOptions = configuration.baseOptions;
179
+ }
180
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
181
+ const localVarHeaderParameter = {};
182
+ const localVarQueryParameter = {};
183
+ if (shipToCountryCode !== void 0) {
184
+ localVarQueryParameter["ShipToCountryCode"] = shipToCountryCode;
185
+ }
186
+ if (sellerSKUList) {
187
+ localVarQueryParameter["SellerSKUList"] = sellerSKUList.join(COLLECTION_FORMATS.csv);
188
+ }
189
+ if (aSINList) {
190
+ localVarQueryParameter["ASINList"] = aSINList.join(COLLECTION_FORMATS.csv);
191
+ }
192
+ localVarHeaderParameter["Accept"] = "application/json";
193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
196
+ return {
197
+ url: toPathString(localVarUrlObj),
198
+ options: localVarRequestOptions
199
+ };
200
+ },
201
+ /**
202
+ * Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
203
+ * @param {GetShipmentItemsQueryTypeEnum} queryType Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request.
204
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
205
+ * @param {string} [lastUpdatedAfter] A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
206
+ * @param {string} [lastUpdatedBefore] A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
207
+ * @param {string} [nextToken] A string token returned in the response to your previous request.
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ getShipmentItems: async (queryType, marketplaceId, lastUpdatedAfter, lastUpdatedBefore, nextToken, options = {}) => {
212
+ assertParamExists("getShipmentItems", "queryType", queryType);
213
+ assertParamExists("getShipmentItems", "marketplaceId", marketplaceId);
214
+ const localVarPath = `/fba/inbound/v0/shipmentItems`;
215
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
216
+ let baseOptions;
217
+ if (configuration) {
218
+ baseOptions = configuration.baseOptions;
219
+ }
220
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
221
+ const localVarHeaderParameter = {};
222
+ const localVarQueryParameter = {};
223
+ if (lastUpdatedAfter !== void 0) {
224
+ localVarQueryParameter["LastUpdatedAfter"] = lastUpdatedAfter instanceof Date ? lastUpdatedAfter.toISOString() : lastUpdatedAfter;
225
+ }
226
+ if (lastUpdatedBefore !== void 0) {
227
+ localVarQueryParameter["LastUpdatedBefore"] = lastUpdatedBefore instanceof Date ? lastUpdatedBefore.toISOString() : lastUpdatedBefore;
228
+ }
229
+ if (queryType !== void 0) {
230
+ localVarQueryParameter["QueryType"] = queryType;
231
+ }
232
+ if (nextToken !== void 0) {
233
+ localVarQueryParameter["NextToken"] = nextToken;
234
+ }
235
+ if (marketplaceId !== void 0) {
236
+ localVarQueryParameter["MarketplaceId"] = marketplaceId;
237
+ }
238
+ localVarHeaderParameter["Accept"] = "application/json";
239
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
242
+ return {
243
+ url: toPathString(localVarUrlObj),
244
+ options: localVarRequestOptions
245
+ };
246
+ },
247
+ /**
248
+ * Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
249
+ * @param {string} shipmentId A shipment identifier used for selecting items in a specific inbound shipment.
250
+ * @param {string} [marketplaceId] Deprecated. Do not use.
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ getShipmentItemsByShipmentId: async (shipmentId, marketplaceId, options = {}) => {
255
+ assertParamExists("getShipmentItemsByShipmentId", "shipmentId", shipmentId);
256
+ const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/items`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
257
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
258
+ let baseOptions;
259
+ if (configuration) {
260
+ baseOptions = configuration.baseOptions;
261
+ }
262
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
263
+ const localVarHeaderParameter = {};
264
+ const localVarQueryParameter = {};
265
+ if (marketplaceId !== void 0) {
266
+ localVarQueryParameter["MarketplaceId"] = marketplaceId;
267
+ }
268
+ localVarHeaderParameter["Accept"] = "application/json";
269
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
270
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
271
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
272
+ return {
273
+ url: toPathString(localVarUrlObj),
274
+ options: localVarRequestOptions
275
+ };
276
+ },
277
+ /**
278
+ * Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
279
+ * @param {GetShipmentsQueryTypeEnum} queryType Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request.
280
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
281
+ * @param {Array<GetShipmentsShipmentStatusListEnum>} [shipmentStatusList] A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.
282
+ * @param {Array<string>} [shipmentIdList] A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned.
283
+ * @param {string} [lastUpdatedAfter] A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
284
+ * @param {string} [lastUpdatedBefore] A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
285
+ * @param {string} [nextToken] A string token returned in the response to your previous request.
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ getShipments: async (queryType, marketplaceId, shipmentStatusList, shipmentIdList, lastUpdatedAfter, lastUpdatedBefore, nextToken, options = {}) => {
290
+ assertParamExists("getShipments", "queryType", queryType);
291
+ assertParamExists("getShipments", "marketplaceId", marketplaceId);
292
+ const localVarPath = `/fba/inbound/v0/shipments`;
293
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
294
+ let baseOptions;
295
+ if (configuration) {
296
+ baseOptions = configuration.baseOptions;
297
+ }
298
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
299
+ const localVarHeaderParameter = {};
300
+ const localVarQueryParameter = {};
301
+ if (shipmentStatusList) {
302
+ localVarQueryParameter["ShipmentStatusList"] = shipmentStatusList.join(COLLECTION_FORMATS.csv);
303
+ }
304
+ if (shipmentIdList) {
305
+ localVarQueryParameter["ShipmentIdList"] = shipmentIdList.join(COLLECTION_FORMATS.csv);
306
+ }
307
+ if (lastUpdatedAfter !== void 0) {
308
+ localVarQueryParameter["LastUpdatedAfter"] = lastUpdatedAfter instanceof Date ? lastUpdatedAfter.toISOString() : lastUpdatedAfter;
309
+ }
310
+ if (lastUpdatedBefore !== void 0) {
311
+ localVarQueryParameter["LastUpdatedBefore"] = lastUpdatedBefore instanceof Date ? lastUpdatedBefore.toISOString() : lastUpdatedBefore;
312
+ }
313
+ if (queryType !== void 0) {
314
+ localVarQueryParameter["QueryType"] = queryType;
315
+ }
316
+ if (nextToken !== void 0) {
317
+ localVarQueryParameter["NextToken"] = nextToken;
318
+ }
319
+ if (marketplaceId !== void 0) {
320
+ localVarQueryParameter["MarketplaceId"] = marketplaceId;
321
+ }
322
+ localVarHeaderParameter["Accept"] = "application/json";
323
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
324
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
325
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
326
+ return {
327
+ url: toPathString(localVarUrlObj),
328
+ options: localVarRequestOptions
329
+ };
330
+ }
331
+ };
332
+ };
333
+ var FulfillmentInboundApiFp = function(configuration) {
334
+ const localVarAxiosParamCreator = FulfillmentInboundApiAxiosParamCreator(configuration);
335
+ return {
336
+ /**
337
+ * Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
338
+ * @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ async getBillOfLading(shipmentId, options) {
343
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBillOfLading(shipmentId, options);
344
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
345
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getBillOfLading"]?.[localVarOperationServerIndex]?.url;
346
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
347
+ },
348
+ /**
349
+ * Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
350
+ * @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
351
+ * @param {GetLabelsPageTypeEnum} pageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.
352
+ * @param {GetLabelsLabelTypeEnum} labelType The type of labels requested.
353
+ * @param {number} [numberOfPackages] The number of packages in the shipment.
354
+ * @param {Array<string>} [packageLabelsToPrint] A list of identifiers that specify packages for which you want package labels printed. If you provide box content information with the [FBA Inbound Shipment Carton Information Feed](https://developer-docs.amazon.com/sp-api/docs/fulfillment-by-amazon-feed-type-values#fba-inbound-shipment-carton-information-feed), then &#x60;PackageLabelsToPrint&#x60; must match the &#x60;CartonId&#x60; values you provide through that feed. If you provide box content information with the Fulfillment Inbound API v2024-03-20, then &#x60;PackageLabelsToPrint&#x60; must match the &#x60;boxID&#x60; values from the [&#x60;listShipmentBoxes&#x60;](https://developer-docs.amazon.com/sp-api/reference/listshipmentboxes) response. If these values do not match as required, the operation returns the &#x60;IncorrectPackageIdentifier&#x60; error code.
355
+ * @param {number} [numberOfPallets] The number of pallets in the shipment. This returns four identical labels for each pallet.
356
+ * @param {number} [pageSize] The page size for paginating through the total packages\&#39; labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000.
357
+ * @param {number} [pageStartIndex] The page start index for paginating through the total packages\&#39; labels. This is a required parameter for Non-Partnered LTL Shipments.
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ async getLabels(shipmentId, pageType, labelType, numberOfPackages, packageLabelsToPrint, numberOfPallets, pageSize, pageStartIndex, options) {
362
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLabels(shipmentId, pageType, labelType, numberOfPackages, packageLabelsToPrint, numberOfPallets, pageSize, pageStartIndex, options);
363
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
364
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getLabels"]?.[localVarOperationServerIndex]?.url;
365
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
366
+ },
367
+ /**
368
+ * Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon\'s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
369
+ * @param {string} shipToCountryCode The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country.
370
+ * @param {Array<string>} [sellerSKUList] A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon\&#39;s fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon\&#39;s retail website. If you include a seller SKU that you have never used to list an item on Amazon\&#39;s retail website, the seller SKU is returned in the InvalidSKUList property in the response.
371
+ * @param {Array<string>} [aSINList] A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers.
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ async getPrepInstructions(shipToCountryCode, sellerSKUList, aSINList, options) {
376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPrepInstructions(shipToCountryCode, sellerSKUList, aSINList, options);
377
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
378
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getPrepInstructions"]?.[localVarOperationServerIndex]?.url;
379
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
380
+ },
381
+ /**
382
+ * Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
383
+ * @param {GetShipmentItemsQueryTypeEnum} queryType Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request.
384
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
385
+ * @param {string} [lastUpdatedAfter] A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
386
+ * @param {string} [lastUpdatedBefore] A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
387
+ * @param {string} [nextToken] A string token returned in the response to your previous request.
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ async getShipmentItems(queryType, marketplaceId, lastUpdatedAfter, lastUpdatedBefore, nextToken, options) {
392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentItems(queryType, marketplaceId, lastUpdatedAfter, lastUpdatedBefore, nextToken, options);
393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
394
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getShipmentItems"]?.[localVarOperationServerIndex]?.url;
395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
396
+ },
397
+ /**
398
+ * Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
399
+ * @param {string} shipmentId A shipment identifier used for selecting items in a specific inbound shipment.
400
+ * @param {string} [marketplaceId] Deprecated. Do not use.
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ async getShipmentItemsByShipmentId(shipmentId, marketplaceId, options) {
405
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentItemsByShipmentId(shipmentId, marketplaceId, options);
406
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
407
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getShipmentItemsByShipmentId"]?.[localVarOperationServerIndex]?.url;
408
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
409
+ },
410
+ /**
411
+ * Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
412
+ * @param {GetShipmentsQueryTypeEnum} queryType Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request.
413
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
414
+ * @param {Array<GetShipmentsShipmentStatusListEnum>} [shipmentStatusList] A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.
415
+ * @param {Array<string>} [shipmentIdList] A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned.
416
+ * @param {string} [lastUpdatedAfter] A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
417
+ * @param {string} [lastUpdatedBefore] A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
418
+ * @param {string} [nextToken] A string token returned in the response to your previous request.
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ async getShipments(queryType, marketplaceId, shipmentStatusList, shipmentIdList, lastUpdatedAfter, lastUpdatedBefore, nextToken, options) {
423
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShipments(queryType, marketplaceId, shipmentStatusList, shipmentIdList, lastUpdatedAfter, lastUpdatedBefore, nextToken, options);
424
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
425
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getShipments"]?.[localVarOperationServerIndex]?.url;
426
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
427
+ }
428
+ };
429
+ };
430
+ var FulfillmentInboundApiFactory = function(configuration, basePath, axios) {
431
+ const localVarFp = FulfillmentInboundApiFp(configuration);
432
+ return {
433
+ /**
434
+ * Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
435
+ * @param {FulfillmentInboundApiGetBillOfLadingRequest} requestParameters Request parameters.
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ getBillOfLading(requestParameters, options) {
440
+ return localVarFp.getBillOfLading(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
441
+ },
442
+ /**
443
+ * Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
444
+ * @param {FulfillmentInboundApiGetLabelsRequest} requestParameters Request parameters.
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ getLabels(requestParameters, options) {
449
+ return localVarFp.getLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.labelType, requestParameters.numberOfPackages, requestParameters.packageLabelsToPrint, requestParameters.numberOfPallets, requestParameters.pageSize, requestParameters.pageStartIndex, options).then((request) => request(axios, basePath));
450
+ },
451
+ /**
452
+ * Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon\'s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
453
+ * @param {FulfillmentInboundApiGetPrepInstructionsRequest} requestParameters Request parameters.
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ */
457
+ getPrepInstructions(requestParameters, options) {
458
+ return localVarFp.getPrepInstructions(requestParameters.shipToCountryCode, requestParameters.sellerSKUList, requestParameters.aSINList, options).then((request) => request(axios, basePath));
459
+ },
460
+ /**
461
+ * Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
462
+ * @param {FulfillmentInboundApiGetShipmentItemsRequest} requestParameters Request parameters.
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ */
466
+ getShipmentItems(requestParameters, options) {
467
+ return localVarFp.getShipmentItems(requestParameters.queryType, requestParameters.marketplaceId, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.nextToken, options).then((request) => request(axios, basePath));
468
+ },
469
+ /**
470
+ * Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
471
+ * @param {FulfillmentInboundApiGetShipmentItemsByShipmentIdRequest} requestParameters Request parameters.
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ getShipmentItemsByShipmentId(requestParameters, options) {
476
+ return localVarFp.getShipmentItemsByShipmentId(requestParameters.shipmentId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
477
+ },
478
+ /**
479
+ * Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
480
+ * @param {FulfillmentInboundApiGetShipmentsRequest} requestParameters Request parameters.
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ getShipments(requestParameters, options) {
485
+ return localVarFp.getShipments(requestParameters.queryType, requestParameters.marketplaceId, requestParameters.shipmentStatusList, requestParameters.shipmentIdList, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.nextToken, options).then((request) => request(axios, basePath));
486
+ }
487
+ };
488
+ };
489
+ var FulfillmentInboundApi = class extends BaseAPI {
490
+ /**
491
+ * Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
492
+ * @param {FulfillmentInboundApiGetBillOfLadingRequest} requestParameters Request parameters.
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ getBillOfLading(requestParameters, options) {
497
+ return FulfillmentInboundApiFp(this.configuration).getBillOfLading(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
498
+ }
499
+ /**
500
+ * Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
501
+ * @param {FulfillmentInboundApiGetLabelsRequest} requestParameters Request parameters.
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ getLabels(requestParameters, options) {
506
+ return FulfillmentInboundApiFp(this.configuration).getLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.labelType, requestParameters.numberOfPackages, requestParameters.packageLabelsToPrint, requestParameters.numberOfPallets, requestParameters.pageSize, requestParameters.pageStartIndex, options).then((request) => request(this.axios, this.basePath));
507
+ }
508
+ /**
509
+ * Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon\'s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
510
+ * @param {FulfillmentInboundApiGetPrepInstructionsRequest} requestParameters Request parameters.
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ getPrepInstructions(requestParameters, options) {
515
+ return FulfillmentInboundApiFp(this.configuration).getPrepInstructions(requestParameters.shipToCountryCode, requestParameters.sellerSKUList, requestParameters.aSINList, options).then((request) => request(this.axios, this.basePath));
516
+ }
517
+ /**
518
+ * Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
519
+ * @param {FulfillmentInboundApiGetShipmentItemsRequest} requestParameters Request parameters.
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ */
523
+ getShipmentItems(requestParameters, options) {
524
+ return FulfillmentInboundApiFp(this.configuration).getShipmentItems(requestParameters.queryType, requestParameters.marketplaceId, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
525
+ }
526
+ /**
527
+ * Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
528
+ * @param {FulfillmentInboundApiGetShipmentItemsByShipmentIdRequest} requestParameters Request parameters.
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ getShipmentItemsByShipmentId(requestParameters, options) {
533
+ return FulfillmentInboundApiFp(this.configuration).getShipmentItemsByShipmentId(requestParameters.shipmentId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
534
+ }
535
+ /**
536
+ * Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | 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).
537
+ * @param {FulfillmentInboundApiGetShipmentsRequest} requestParameters Request parameters.
538
+ * @param {*} [options] Override http request option.
539
+ * @throws {RequiredError}
540
+ */
541
+ getShipments(requestParameters, options) {
542
+ return FulfillmentInboundApiFp(this.configuration).getShipments(requestParameters.queryType, requestParameters.marketplaceId, requestParameters.shipmentStatusList, requestParameters.shipmentIdList, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
543
+ }
544
+ };
545
+ var GetLabelsPageTypeEnum = {
546
+ PackageLabelLetter2: "PackageLabel_Letter_2",
547
+ PackageLabelLetter4: "PackageLabel_Letter_4",
548
+ PackageLabelLetter6: "PackageLabel_Letter_6",
549
+ PackageLabelLetter6CarrierLeft: "PackageLabel_Letter_6_CarrierLeft",
550
+ PackageLabelA42: "PackageLabel_A4_2",
551
+ PackageLabelA44: "PackageLabel_A4_4",
552
+ PackageLabelPlainPaper: "PackageLabel_Plain_Paper",
553
+ PackageLabelPlainPaperCarrierBottom: "PackageLabel_Plain_Paper_CarrierBottom",
554
+ PackageLabelThermal: "PackageLabel_Thermal",
555
+ PackageLabelThermalUnified: "PackageLabel_Thermal_Unified",
556
+ PackageLabelThermalNonPcp: "PackageLabel_Thermal_NonPCP",
557
+ PackageLabelThermalNoCarrierRotation: "PackageLabel_Thermal_No_Carrier_Rotation"
558
+ };
559
+ var GetLabelsLabelTypeEnum = {
560
+ Barcode2D: "BARCODE_2D",
561
+ Unique: "UNIQUE",
562
+ Pallet: "PALLET"
563
+ };
564
+ var GetShipmentItemsQueryTypeEnum = {
565
+ DateRange: "DATE_RANGE",
566
+ NextToken: "NEXT_TOKEN"
567
+ };
568
+ var GetShipmentsQueryTypeEnum = {
569
+ Shipment: "SHIPMENT",
570
+ DateRange: "DATE_RANGE",
571
+ NextToken: "NEXT_TOKEN"
572
+ };
573
+ var GetShipmentsShipmentStatusListEnum = {
574
+ Working: "WORKING",
575
+ ReadyToShip: "READY_TO_SHIP",
576
+ Shipped: "SHIPPED",
577
+ Receiving: "RECEIVING",
578
+ Cancelled: "CANCELLED",
579
+ Deleted: "DELETED",
580
+ Closed: "CLOSED",
581
+ Error: "ERROR",
582
+ InTransit: "IN_TRANSIT",
583
+ Delivered: "DELIVERED",
584
+ CheckedIn: "CHECKED_IN"
585
+ };
586
+
587
+ // src/api-model/configuration.ts
588
+ var Configuration = class {
589
+ /**
590
+ * parameter for apiKey security
591
+ * @param name security name
592
+ */
593
+ apiKey;
594
+ /**
595
+ * parameter for basic security
596
+ */
597
+ username;
598
+ /**
599
+ * parameter for basic security
600
+ */
601
+ password;
602
+ /**
603
+ * parameter for oauth2 security
604
+ * @param name security name
605
+ * @param scopes oauth2 scope
606
+ */
607
+ accessToken;
608
+ /**
609
+ * parameter for aws4 signature security
610
+ * @param {Object} AWS4Signature - AWS4 Signature security
611
+ * @param {string} options.region - aws region
612
+ * @param {string} options.service - name of the service.
613
+ * @param {string} credentials.accessKeyId - aws access key id
614
+ * @param {string} credentials.secretAccessKey - aws access key
615
+ * @param {string} credentials.sessionToken - aws session token
616
+ * @memberof Configuration
617
+ */
618
+ awsv4;
619
+ /**
620
+ * override base path
621
+ */
622
+ basePath;
623
+ /**
624
+ * override server index
625
+ */
626
+ serverIndex;
627
+ /**
628
+ * base options for axios calls
629
+ */
630
+ baseOptions;
631
+ /**
632
+ * The FormData constructor that will be used to create multipart form data
633
+ * requests. You can inject this here so that execution environments that
634
+ * do not support the FormData class can still run the generated client.
635
+ *
636
+ * @type {new () => FormData}
637
+ */
638
+ formDataCtor;
639
+ constructor(param = {}) {
640
+ this.apiKey = param.apiKey;
641
+ this.username = param.username;
642
+ this.password = param.password;
643
+ this.accessToken = param.accessToken;
644
+ this.awsv4 = param.awsv4;
645
+ this.basePath = param.basePath;
646
+ this.serverIndex = param.serverIndex;
647
+ this.baseOptions = {
648
+ ...param.baseOptions,
649
+ headers: {
650
+ ...param.baseOptions?.headers
651
+ }
652
+ };
653
+ this.formDataCtor = param.formDataCtor;
654
+ }
655
+ /**
656
+ * Check if the given MIME is a JSON MIME.
657
+ * JSON MIME examples:
658
+ * application/json
659
+ * application/json; charset=UTF8
660
+ * APPLICATION/JSON
661
+ * application/vnd.company+json
662
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
663
+ * @return True if the given MIME is JSON, false otherwise.
664
+ */
665
+ isJsonMime(mime) {
666
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
667
+ return mime !== null && jsonMime.test(mime);
668
+ }
669
+ };
670
+
671
+ // src/api-model/models/barcode-instruction.ts
672
+ var BarcodeInstruction = {
673
+ RequiresFnskuLabel: "RequiresFNSKULabel",
674
+ CanUseOriginalBarcode: "CanUseOriginalBarcode",
675
+ MustProvideSellerSku: "MustProvideSellerSKU"
676
+ };
677
+
678
+ // src/api-model/models/box-contents-source.ts
679
+ var BoxContentsSource = {
680
+ None: "NONE",
681
+ Feed: "FEED",
682
+ _2DBarcode: "2D_BARCODE",
683
+ Interactive: "INTERACTIVE"
684
+ };
685
+
686
+ // src/api-model/models/currency-code.ts
687
+ var CurrencyCode = {
688
+ Usd: "USD",
689
+ Gbp: "GBP"
690
+ };
691
+
692
+ // src/api-model/models/error-reason.ts
693
+ var ErrorReason = {
694
+ DoesNotExist: "DoesNotExist",
695
+ InvalidAsin: "InvalidASIN"
696
+ };
697
+
698
+ // src/api-model/models/label-prep-type.ts
699
+ var LabelPrepType = {
700
+ NoLabel: "NO_LABEL",
701
+ SellerLabel: "SELLER_LABEL",
702
+ AmazonLabel: "AMAZON_LABEL"
703
+ };
704
+
705
+ // src/api-model/models/prep-guidance.ts
706
+ var PrepGuidance = {
707
+ ConsultHelpDocuments: "ConsultHelpDocuments",
708
+ NoAdditionalPrepRequired: "NoAdditionalPrepRequired",
709
+ SeePrepInstructionsList: "SeePrepInstructionsList"
710
+ };
711
+
712
+ // src/api-model/models/prep-instruction.ts
713
+ var PrepInstruction = {
714
+ Polybagging: "Polybagging",
715
+ BubbleWrapping: "BubbleWrapping",
716
+ Taping: "Taping",
717
+ BlackShrinkWrapping: "BlackShrinkWrapping",
718
+ Labeling: "Labeling",
719
+ HangGarment: "HangGarment",
720
+ SetCreation: "SetCreation",
721
+ Boxing: "Boxing",
722
+ RemoveFromHanger: "RemoveFromHanger",
723
+ Debundle: "Debundle",
724
+ SuffocationStickering: "SuffocationStickering",
725
+ CapSealing: "CapSealing",
726
+ SetStickering: "SetStickering",
727
+ BlankStickering: "BlankStickering",
728
+ ShipsInProductPackaging: "ShipsInProductPackaging",
729
+ NoPrep: "NoPrep"
730
+ };
731
+
732
+ // src/api-model/models/prep-owner.ts
733
+ var PrepOwner = {
734
+ Amazon: "AMAZON",
735
+ Seller: "SELLER"
736
+ };
737
+
738
+ // src/api-model/models/shipment-status.ts
739
+ var ShipmentStatus = {
740
+ Working: "WORKING",
741
+ Shipped: "SHIPPED",
742
+ Receiving: "RECEIVING",
743
+ Cancelled: "CANCELLED",
744
+ Deleted: "DELETED",
745
+ Closed: "CLOSED",
746
+ Error: "ERROR",
747
+ InTransit: "IN_TRANSIT",
748
+ Delivered: "DELIVERED",
749
+ CheckedIn: "CHECKED_IN"
750
+ };
751
+
752
+ // src/client.ts
753
+ var clientRateLimits = [
754
+ {
755
+ method: "get",
756
+ // eslint-disable-next-line prefer-regex-literals
757
+ urlRegex: new RegExp("^/fba/inbound/v0/prepInstructions$"),
758
+ rate: 2,
759
+ burst: 30
760
+ },
761
+ {
762
+ method: "get",
763
+ // eslint-disable-next-line prefer-regex-literals
764
+ urlRegex: new RegExp("^/fba/inbound/v0/shipments/[^/]*/labels$"),
765
+ rate: 2,
766
+ burst: 30
767
+ },
768
+ {
769
+ method: "get",
770
+ // eslint-disable-next-line prefer-regex-literals
771
+ urlRegex: new RegExp("^/fba/inbound/v0/shipments/[^/]*/billOfLading$"),
772
+ rate: 2,
773
+ burst: 30
774
+ },
775
+ {
776
+ method: "get",
777
+ // eslint-disable-next-line prefer-regex-literals
778
+ urlRegex: new RegExp("^/fba/inbound/v0/shipments$"),
779
+ rate: 2,
780
+ burst: 30
781
+ },
782
+ {
783
+ method: "get",
784
+ // eslint-disable-next-line prefer-regex-literals
785
+ urlRegex: new RegExp("^/fba/inbound/v0/shipments/[^/]*/items$"),
786
+ rate: 2,
787
+ burst: 30
788
+ },
789
+ {
790
+ method: "get",
791
+ // eslint-disable-next-line prefer-regex-literals
792
+ urlRegex: new RegExp("^/fba/inbound/v0/shipmentItems$"),
793
+ rate: 2,
794
+ burst: 30
795
+ }
796
+ ];
797
+ var FulfillmentInboundApiClient = class extends FulfillmentInboundApi {
798
+ constructor(configuration) {
799
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
800
+ super(new Configuration(), endpoint, axios);
801
+ }
802
+ };
803
+ export {
804
+ BarcodeInstruction,
805
+ BoxContentsSource,
806
+ CurrencyCode,
807
+ ErrorReason,
808
+ FulfillmentInboundApi,
809
+ FulfillmentInboundApiAxiosParamCreator,
810
+ FulfillmentInboundApiClient,
811
+ FulfillmentInboundApiFactory,
812
+ FulfillmentInboundApiFp,
813
+ GetLabelsLabelTypeEnum,
814
+ GetLabelsPageTypeEnum,
815
+ GetShipmentItemsQueryTypeEnum,
816
+ GetShipmentsQueryTypeEnum,
817
+ GetShipmentsShipmentStatusListEnum,
818
+ LabelPrepType,
819
+ PrepGuidance,
820
+ PrepInstruction,
821
+ PrepOwner,
822
+ ShipmentStatus,
823
+ clientRateLimits
824
+ };
825
+ //# sourceMappingURL=index.js.map