@sp-api-sdk/amazon-warehousing-and-distribution-api-2024-05-09 5.0.0 → 5.1.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.
package/dist/index.cjs CHANGED
@@ -39,12 +39,14 @@ __export(index_exports, {
39
39
  ConfirmationMode: () => ConfirmationMode,
40
40
  DimensionUnitOfMeasurement: () => DimensionUnitOfMeasurement,
41
41
  DistributionPackageType: () => DistributionPackageType,
42
+ FormatType: () => FormatType,
42
43
  GetInboundShipmentLabelsFormatTypeEnum: () => GetInboundShipmentLabelsFormatTypeEnum,
43
44
  GetInboundShipmentLabelsPageTypeEnum: () => GetInboundShipmentLabelsPageTypeEnum,
44
45
  GetInboundShipmentSkuQuantitiesEnum: () => GetInboundShipmentSkuQuantitiesEnum,
45
46
  InboundEligibilityStatus: () => InboundEligibilityStatus,
46
47
  InboundShipmentStatus: () => InboundShipmentStatus,
47
48
  InboundStatus: () => InboundStatus,
49
+ InventoryDetailsVisibility: () => InventoryDetailsVisibility,
48
50
  InventoryUnitOfMeasurement: () => InventoryUnitOfMeasurement,
49
51
  LabelOwner: () => LabelOwner,
50
52
  LabelStatus: () => LabelStatus,
@@ -53,11 +55,19 @@ __export(index_exports, {
53
55
  ListInboundShipmentsSortOrderEnum: () => ListInboundShipmentsSortOrderEnum,
54
56
  ListInventoryDetailsEnum: () => ListInventoryDetailsEnum,
55
57
  ListInventorySortOrderEnum: () => ListInventorySortOrderEnum,
58
+ ListOutboundsSortOrderEnum: () => ListOutboundsSortOrderEnum,
56
59
  ListReplenishmentOrdersSortOrderEnum: () => ListReplenishmentOrdersSortOrderEnum,
60
+ OrderPreference: () => OrderPreference,
61
+ OrderPreferenceValue: () => OrderPreferenceValue,
57
62
  OutboundShipmentStatus: () => OutboundShipmentStatus,
63
+ OutboundStatus: () => OutboundStatus,
64
+ PageType: () => PageType,
58
65
  PrepCategory: () => PrepCategory,
59
66
  PrepOwner: () => PrepOwner,
60
67
  ReplenishmentOrderStatus: () => ReplenishmentOrderStatus,
68
+ ShipmentSortableField: () => ShipmentSortableField,
69
+ SkuQuantitiesVisibility: () => SkuQuantitiesVisibility,
70
+ SortOrder: () => SortOrder,
61
71
  VolumeUnitOfMeasurement: () => VolumeUnitOfMeasurement,
62
72
  WeightUnitOfMeasurement: () => WeightUnitOfMeasurement,
63
73
  clientRateLimits: () => clientRateLimits
@@ -231,6 +241,32 @@ var AmazonWarehousingAndDistributionApiAxiosParamCreator = function(configuratio
231
241
  options: localVarRequestOptions
232
242
  };
233
243
  },
244
+ /**
245
+ * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
246
+ * @param {string} orderId ID for the outbound order you want to confirm.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ confirmOutbound: async (orderId, options = {}) => {
251
+ assertParamExists("confirmOutbound", "orderId", orderId);
252
+ const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
253
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
254
+ let baseOptions;
255
+ if (configuration) {
256
+ baseOptions = configuration.baseOptions;
257
+ }
258
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
259
+ const localVarHeaderParameter = {};
260
+ const localVarQueryParameter = {};
261
+ localVarHeaderParameter["Accept"] = "application/json";
262
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
265
+ return {
266
+ url: toPathString(localVarUrlObj),
267
+ options: localVarRequestOptions
268
+ };
269
+ },
234
270
  /**
235
271
  * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
236
272
  * @param {string} orderId ID of the replenishment order to be confirmed.
@@ -285,6 +321,34 @@ var AmazonWarehousingAndDistributionApiAxiosParamCreator = function(configuratio
285
321
  options: localVarRequestOptions
286
322
  };
287
323
  },
324
+ /**
325
+ * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
326
+ * @param {OutboundOrderCreationData} body Payload for creating an outbound order.
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ createOutbound: async (body, options = {}) => {
331
+ assertParamExists("createOutbound", "body", body);
332
+ const localVarPath = `/awd/2024-05-09/outboundOrders`;
333
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
334
+ let baseOptions;
335
+ if (configuration) {
336
+ baseOptions = configuration.baseOptions;
337
+ }
338
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
339
+ const localVarHeaderParameter = {};
340
+ const localVarQueryParameter = {};
341
+ localVarHeaderParameter["Content-Type"] = "application/json";
342
+ localVarHeaderParameter["Accept"] = "application/json";
343
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
345
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
346
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
347
+ return {
348
+ url: toPathString(localVarUrlObj),
349
+ options: localVarRequestOptions
350
+ };
351
+ },
288
352
  /**
289
353
  * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
290
354
  * @param {ReplenishmentOrderCreationData} body Payload for creating a replenishment order.
@@ -403,6 +467,58 @@ var AmazonWarehousingAndDistributionApiAxiosParamCreator = function(configuratio
403
467
  options: localVarRequestOptions
404
468
  };
405
469
  },
470
+ /**
471
+ * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **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 preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
472
+ * @param {string} shipmentId ID for the shipment.
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ getLabelPageTypes: async (shipmentId, options = {}) => {
477
+ assertParamExists("getLabelPageTypes", "shipmentId", shipmentId);
478
+ const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/labelPageTypes`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
479
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
480
+ let baseOptions;
481
+ if (configuration) {
482
+ baseOptions = configuration.baseOptions;
483
+ }
484
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
485
+ const localVarHeaderParameter = {};
486
+ const localVarQueryParameter = {};
487
+ localVarHeaderParameter["Accept"] = "application/json";
488
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
489
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
490
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
491
+ return {
492
+ url: toPathString(localVarUrlObj),
493
+ options: localVarRequestOptions
494
+ };
495
+ },
496
+ /**
497
+ * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
498
+ * @param {string} orderId ID for the outbound order to be retrieved.
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ getOutbound: async (orderId, options = {}) => {
503
+ assertParamExists("getOutbound", "orderId", orderId);
504
+ const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
505
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
506
+ let baseOptions;
507
+ if (configuration) {
508
+ baseOptions = configuration.baseOptions;
509
+ }
510
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
511
+ const localVarHeaderParameter = {};
512
+ const localVarQueryParameter = {};
513
+ localVarHeaderParameter["Accept"] = "application/json";
514
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
515
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
516
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
517
+ return {
518
+ url: toPathString(localVarUrlObj),
519
+ options: localVarRequestOptions
520
+ };
521
+ },
406
522
  /**
407
523
  * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
408
524
  * @param {string} orderId ID of the replenishment order to be retrieved.
@@ -525,6 +641,50 @@ var AmazonWarehousingAndDistributionApiAxiosParamCreator = function(configuratio
525
641
  options: localVarRequestOptions
526
642
  };
527
643
  },
644
+ /**
645
+ * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
646
+ * @param {string} [updatedAfter] Get the outbound orders updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
647
+ * @param {string} [updatedBefore] Get the outbound orders updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
648
+ * @param {ListOutboundsSortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
649
+ * @param {number} [maxResults] Maximum number of results to return.
650
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ listOutbounds: async (updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options = {}) => {
655
+ const localVarPath = `/awd/2024-05-09/outboundOrders`;
656
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
657
+ let baseOptions;
658
+ if (configuration) {
659
+ baseOptions = configuration.baseOptions;
660
+ }
661
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
662
+ const localVarHeaderParameter = {};
663
+ const localVarQueryParameter = {};
664
+ if (updatedAfter !== void 0) {
665
+ localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
666
+ }
667
+ if (updatedBefore !== void 0) {
668
+ localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
669
+ }
670
+ if (sortOrder !== void 0) {
671
+ localVarQueryParameter["sortOrder"] = sortOrder;
672
+ }
673
+ if (maxResults !== void 0) {
674
+ localVarQueryParameter["maxResults"] = maxResults;
675
+ }
676
+ if (nextToken !== void 0) {
677
+ localVarQueryParameter["nextToken"] = nextToken;
678
+ }
679
+ localVarHeaderParameter["Accept"] = "application/json";
680
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
681
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
682
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
683
+ return {
684
+ url: toPathString(localVarUrlObj),
685
+ options: localVarRequestOptions
686
+ };
687
+ },
528
688
  /**
529
689
  * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
530
690
  * @param {string} [updatedAfter] Get the replenishment orders updated after certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
@@ -628,6 +788,36 @@ var AmazonWarehousingAndDistributionApiAxiosParamCreator = function(configuratio
628
788
  url: toPathString(localVarUrlObj),
629
789
  options: localVarRequestOptions
630
790
  };
791
+ },
792
+ /**
793
+ * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
794
+ * @param {string} orderId ID for the outbound order to be updated.
795
+ * @param {OutboundOrder} body Represents an AWD outbound order.
796
+ * @param {*} [options] Override http request option.
797
+ * @throws {RequiredError}
798
+ */
799
+ updateOutbound: async (orderId, body, options = {}) => {
800
+ assertParamExists("updateOutbound", "orderId", orderId);
801
+ assertParamExists("updateOutbound", "body", body);
802
+ const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
803
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
804
+ let baseOptions;
805
+ if (configuration) {
806
+ baseOptions = configuration.baseOptions;
807
+ }
808
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
809
+ const localVarHeaderParameter = {};
810
+ const localVarQueryParameter = {};
811
+ localVarHeaderParameter["Content-Type"] = "application/json";
812
+ localVarHeaderParameter["Accept"] = "application/json";
813
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
814
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
815
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
816
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
817
+ return {
818
+ url: toPathString(localVarUrlObj),
819
+ options: localVarRequestOptions
820
+ };
631
821
  }
632
822
  };
633
823
  };
@@ -670,6 +860,18 @@ var AmazonWarehousingAndDistributionApiFp = function(configuration) {
670
860
  const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmInbound"]?.[localVarOperationServerIndex]?.url;
671
861
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
672
862
  },
863
+ /**
864
+ * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
865
+ * @param {string} orderId ID for the outbound order you want to confirm.
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ */
869
+ async confirmOutbound(orderId, options) {
870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmOutbound(orderId, options);
871
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
872
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmOutbound"]?.[localVarOperationServerIndex]?.url;
873
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
874
+ },
673
875
  /**
674
876
  * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
675
877
  * @param {string} orderId ID of the replenishment order to be confirmed.
@@ -694,6 +896,18 @@ var AmazonWarehousingAndDistributionApiFp = function(configuration) {
694
896
  const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createInbound"]?.[localVarOperationServerIndex]?.url;
695
897
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
696
898
  },
899
+ /**
900
+ * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
901
+ * @param {OutboundOrderCreationData} body Payload for creating an outbound order.
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ */
905
+ async createOutbound(body, options) {
906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOutbound(body, options);
907
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
908
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createOutbound"]?.[localVarOperationServerIndex]?.url;
909
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
910
+ },
697
911
  /**
698
912
  * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
699
913
  * @param {ReplenishmentOrderCreationData} body Payload for creating a replenishment order.
@@ -745,6 +959,30 @@ var AmazonWarehousingAndDistributionApiFp = function(configuration) {
745
959
  const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInboundShipmentLabels"]?.[localVarOperationServerIndex]?.url;
746
960
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
747
961
  },
962
+ /**
963
+ * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **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 preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
964
+ * @param {string} shipmentId ID for the shipment.
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ async getLabelPageTypes(shipmentId, options) {
969
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLabelPageTypes(shipmentId, options);
970
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
971
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getLabelPageTypes"]?.[localVarOperationServerIndex]?.url;
972
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
973
+ },
974
+ /**
975
+ * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
976
+ * @param {string} orderId ID for the outbound order to be retrieved.
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ */
980
+ async getOutbound(orderId, options) {
981
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOutbound(orderId, options);
982
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
983
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getOutbound"]?.[localVarOperationServerIndex]?.url;
984
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
985
+ },
748
986
  /**
749
987
  * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
750
988
  * @param {string} orderId ID of the replenishment order to be retrieved.
@@ -791,6 +1029,22 @@ var AmazonWarehousingAndDistributionApiFp = function(configuration) {
791
1029
  const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listInventory"]?.[localVarOperationServerIndex]?.url;
792
1030
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
793
1031
  },
1032
+ /**
1033
+ * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1034
+ * @param {string} [updatedAfter] Get the outbound orders updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
1035
+ * @param {string} [updatedBefore] Get the outbound orders updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
1036
+ * @param {ListOutboundsSortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
1037
+ * @param {number} [maxResults] Maximum number of results to return.
1038
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
1039
+ * @param {*} [options] Override http request option.
1040
+ * @throws {RequiredError}
1041
+ */
1042
+ async listOutbounds(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options) {
1043
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOutbounds(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options);
1044
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1045
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listOutbounds"]?.[localVarOperationServerIndex]?.url;
1046
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1047
+ },
794
1048
  /**
795
1049
  * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
796
1050
  * @param {string} [updatedAfter] Get the replenishment orders updated after certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
@@ -832,6 +1086,19 @@ var AmazonWarehousingAndDistributionApiFp = function(configuration) {
832
1086
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
833
1087
  const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateInboundShipmentTransportDetails"]?.[localVarOperationServerIndex]?.url;
834
1088
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1089
+ },
1090
+ /**
1091
+ * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1092
+ * @param {string} orderId ID for the outbound order to be updated.
1093
+ * @param {OutboundOrder} body Represents an AWD outbound order.
1094
+ * @param {*} [options] Override http request option.
1095
+ * @throws {RequiredError}
1096
+ */
1097
+ async updateOutbound(orderId, body, options) {
1098
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOutbound(orderId, body, options);
1099
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1100
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateOutbound"]?.[localVarOperationServerIndex]?.url;
1101
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
835
1102
  }
836
1103
  };
837
1104
  };
@@ -865,6 +1132,15 @@ var AmazonWarehousingAndDistributionApiFactory = function(configuration, basePat
865
1132
  confirmInbound(requestParameters, options) {
866
1133
  return localVarFp.confirmInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
867
1134
  },
1135
+ /**
1136
+ * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1137
+ * @param {AmazonWarehousingAndDistributionApiConfirmOutboundRequest} requestParameters Request parameters.
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ */
1141
+ confirmOutbound(requestParameters, options) {
1142
+ return localVarFp.confirmOutbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1143
+ },
868
1144
  /**
869
1145
  * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
870
1146
  * @param {AmazonWarehousingAndDistributionApiConfirmReplenishmentOrderRequest} requestParameters Request parameters.
@@ -883,6 +1159,15 @@ var AmazonWarehousingAndDistributionApiFactory = function(configuration, basePat
883
1159
  createInbound(requestParameters, options) {
884
1160
  return localVarFp.createInbound(requestParameters.body, options).then((request) => request(axios, basePath));
885
1161
  },
1162
+ /**
1163
+ * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1164
+ * @param {AmazonWarehousingAndDistributionApiCreateOutboundRequest} requestParameters Request parameters.
1165
+ * @param {*} [options] Override http request option.
1166
+ * @throws {RequiredError}
1167
+ */
1168
+ createOutbound(requestParameters, options) {
1169
+ return localVarFp.createOutbound(requestParameters.body, options).then((request) => request(axios, basePath));
1170
+ },
886
1171
  /**
887
1172
  * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
888
1173
  * @param {AmazonWarehousingAndDistributionApiCreateReplenishmentOrderRequest} requestParameters Request parameters.
@@ -919,6 +1204,24 @@ var AmazonWarehousingAndDistributionApiFactory = function(configuration, basePat
919
1204
  getInboundShipmentLabels(requestParameters, options) {
920
1205
  return localVarFp.getInboundShipmentLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.formatType, options).then((request) => request(axios, basePath));
921
1206
  },
1207
+ /**
1208
+ * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **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 preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1209
+ * @param {AmazonWarehousingAndDistributionApiGetLabelPageTypesRequest} requestParameters Request parameters.
1210
+ * @param {*} [options] Override http request option.
1211
+ * @throws {RequiredError}
1212
+ */
1213
+ getLabelPageTypes(requestParameters, options) {
1214
+ return localVarFp.getLabelPageTypes(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
1215
+ },
1216
+ /**
1217
+ * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1218
+ * @param {AmazonWarehousingAndDistributionApiGetOutboundRequest} requestParameters Request parameters.
1219
+ * @param {*} [options] Override http request option.
1220
+ * @throws {RequiredError}
1221
+ */
1222
+ getOutbound(requestParameters, options) {
1223
+ return localVarFp.getOutbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1224
+ },
922
1225
  /**
923
1226
  * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
924
1227
  * @param {AmazonWarehousingAndDistributionApiGetReplenishmentOrderRequest} requestParameters Request parameters.
@@ -946,6 +1249,15 @@ var AmazonWarehousingAndDistributionApiFactory = function(configuration, basePat
946
1249
  listInventory(requestParameters = {}, options) {
947
1250
  return localVarFp.listInventory(requestParameters.sku, requestParameters.sortOrder, requestParameters.details, requestParameters.nextToken, requestParameters.maxResults, options).then((request) => request(axios, basePath));
948
1251
  },
1252
+ /**
1253
+ * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1254
+ * @param {AmazonWarehousingAndDistributionApiListOutboundsRequest} requestParameters Request parameters.
1255
+ * @param {*} [options] Override http request option.
1256
+ * @throws {RequiredError}
1257
+ */
1258
+ listOutbounds(requestParameters = {}, options) {
1259
+ return localVarFp.listOutbounds(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
1260
+ },
949
1261
  /**
950
1262
  * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
951
1263
  * @param {AmazonWarehousingAndDistributionApiListReplenishmentOrdersRequest} requestParameters Request parameters.
@@ -972,6 +1284,15 @@ var AmazonWarehousingAndDistributionApiFactory = function(configuration, basePat
972
1284
  */
973
1285
  updateInboundShipmentTransportDetails(requestParameters, options) {
974
1286
  return localVarFp.updateInboundShipmentTransportDetails(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
1287
+ },
1288
+ /**
1289
+ * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1290
+ * @param {AmazonWarehousingAndDistributionApiUpdateOutboundRequest} requestParameters Request parameters.
1291
+ * @param {*} [options] Override http request option.
1292
+ * @throws {RequiredError}
1293
+ */
1294
+ updateOutbound(requestParameters, options) {
1295
+ return localVarFp.updateOutbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(axios, basePath));
975
1296
  }
976
1297
  };
977
1298
  };
@@ -1003,6 +1324,15 @@ var AmazonWarehousingAndDistributionApi = class extends BaseAPI {
1003
1324
  confirmInbound(requestParameters, options) {
1004
1325
  return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1005
1326
  }
1327
+ /**
1328
+ * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1329
+ * @param {AmazonWarehousingAndDistributionApiConfirmOutboundRequest} requestParameters Request parameters.
1330
+ * @param {*} [options] Override http request option.
1331
+ * @throws {RequiredError}
1332
+ */
1333
+ confirmOutbound(requestParameters, options) {
1334
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmOutbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1335
+ }
1006
1336
  /**
1007
1337
  * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
1008
1338
  * @param {AmazonWarehousingAndDistributionApiConfirmReplenishmentOrderRequest} requestParameters Request parameters.
@@ -1021,6 +1351,15 @@ var AmazonWarehousingAndDistributionApi = class extends BaseAPI {
1021
1351
  createInbound(requestParameters, options) {
1022
1352
  return AmazonWarehousingAndDistributionApiFp(this.configuration).createInbound(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1023
1353
  }
1354
+ /**
1355
+ * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1356
+ * @param {AmazonWarehousingAndDistributionApiCreateOutboundRequest} requestParameters Request parameters.
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ createOutbound(requestParameters, options) {
1361
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).createOutbound(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1362
+ }
1024
1363
  /**
1025
1364
  * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
1026
1365
  * @param {AmazonWarehousingAndDistributionApiCreateReplenishmentOrderRequest} requestParameters Request parameters.
@@ -1057,6 +1396,24 @@ var AmazonWarehousingAndDistributionApi = class extends BaseAPI {
1057
1396
  getInboundShipmentLabels(requestParameters, options) {
1058
1397
  return AmazonWarehousingAndDistributionApiFp(this.configuration).getInboundShipmentLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.formatType, options).then((request) => request(this.axios, this.basePath));
1059
1398
  }
1399
+ /**
1400
+ * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **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 preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1401
+ * @param {AmazonWarehousingAndDistributionApiGetLabelPageTypesRequest} requestParameters Request parameters.
1402
+ * @param {*} [options] Override http request option.
1403
+ * @throws {RequiredError}
1404
+ */
1405
+ getLabelPageTypes(requestParameters, options) {
1406
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).getLabelPageTypes(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
1407
+ }
1408
+ /**
1409
+ * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1410
+ * @param {AmazonWarehousingAndDistributionApiGetOutboundRequest} requestParameters Request parameters.
1411
+ * @param {*} [options] Override http request option.
1412
+ * @throws {RequiredError}
1413
+ */
1414
+ getOutbound(requestParameters, options) {
1415
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).getOutbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1416
+ }
1060
1417
  /**
1061
1418
  * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
1062
1419
  * @param {AmazonWarehousingAndDistributionApiGetReplenishmentOrderRequest} requestParameters Request parameters.
@@ -1084,6 +1441,15 @@ var AmazonWarehousingAndDistributionApi = class extends BaseAPI {
1084
1441
  listInventory(requestParameters = {}, options) {
1085
1442
  return AmazonWarehousingAndDistributionApiFp(this.configuration).listInventory(requestParameters.sku, requestParameters.sortOrder, requestParameters.details, requestParameters.nextToken, requestParameters.maxResults, options).then((request) => request(this.axios, this.basePath));
1086
1443
  }
1444
+ /**
1445
+ * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1446
+ * @param {AmazonWarehousingAndDistributionApiListOutboundsRequest} requestParameters Request parameters.
1447
+ * @param {*} [options] Override http request option.
1448
+ * @throws {RequiredError}
1449
+ */
1450
+ listOutbounds(requestParameters = {}, options) {
1451
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).listOutbounds(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
1452
+ }
1087
1453
  /**
1088
1454
  * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
1089
1455
  * @param {AmazonWarehousingAndDistributionApiListReplenishmentOrdersRequest} requestParameters Request parameters.
@@ -1111,15 +1477,22 @@ var AmazonWarehousingAndDistributionApi = class extends BaseAPI {
1111
1477
  updateInboundShipmentTransportDetails(requestParameters, options) {
1112
1478
  return AmazonWarehousingAndDistributionApiFp(this.configuration).updateInboundShipmentTransportDetails(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1113
1479
  }
1480
+ /**
1481
+ * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1482
+ * @param {AmazonWarehousingAndDistributionApiUpdateOutboundRequest} requestParameters Request parameters.
1483
+ * @param {*} [options] Override http request option.
1484
+ * @throws {RequiredError}
1485
+ */
1486
+ updateOutbound(requestParameters, options) {
1487
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).updateOutbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1488
+ }
1114
1489
  };
1115
1490
  var GetInboundShipmentSkuQuantitiesEnum = {
1116
1491
  Show: "SHOW",
1117
1492
  Hide: "HIDE"
1118
1493
  };
1119
1494
  var GetInboundShipmentLabelsPageTypeEnum = {
1120
- ThermalNonpcp: "THERMAL_NONPCP",
1121
- PlainPaper: "PLAIN_PAPER",
1122
- Letter6: "LETTER_6"
1495
+ PlainPaper: "PLAIN_PAPER"
1123
1496
  };
1124
1497
  var GetInboundShipmentLabelsFormatTypeEnum = {
1125
1498
  Pdf: "PDF"
@@ -1149,6 +1522,10 @@ var ListInventoryDetailsEnum = {
1149
1522
  Show: "SHOW",
1150
1523
  Hide: "HIDE"
1151
1524
  };
1525
+ var ListOutboundsSortOrderEnum = {
1526
+ Ascending: "ASCENDING",
1527
+ Descending: "DESCENDING"
1528
+ };
1152
1529
  var ListReplenishmentOrdersSortOrderEnum = {
1153
1530
  Ascending: "ASCENDING",
1154
1531
  Descending: "DESCENDING"
@@ -1261,6 +1638,11 @@ var DistributionPackageType = {
1261
1638
  Pallet: "PALLET"
1262
1639
  };
1263
1640
 
1641
+ // src/api-model/models/format-type.ts
1642
+ var FormatType = {
1643
+ Pdf: "PDF"
1644
+ };
1645
+
1264
1646
  // src/api-model/models/inbound-eligibility-status.ts
1265
1647
  var InboundEligibilityStatus = {
1266
1648
  Eligible: "ELIGIBLE",
@@ -1288,6 +1670,12 @@ var InboundStatus = {
1288
1670
  Cancelled: "CANCELLED"
1289
1671
  };
1290
1672
 
1673
+ // src/api-model/models/inventory-details-visibility.ts
1674
+ var InventoryDetailsVisibility = {
1675
+ Show: "SHOW",
1676
+ Hide: "HIDE"
1677
+ };
1678
+
1291
1679
  // src/api-model/models/inventory-unit-of-measurement.ts
1292
1680
  var InventoryUnitOfMeasurement = {
1293
1681
  ProductUnits: "PRODUCT_UNITS",
@@ -1309,6 +1697,17 @@ var LabelStatus = {
1309
1697
  NotReady: "NOT_READY"
1310
1698
  };
1311
1699
 
1700
+ // src/api-model/models/order-preference.ts
1701
+ var OrderPreference = {
1702
+ PartialOrder: "PARTIAL_ORDER"
1703
+ };
1704
+
1705
+ // src/api-model/models/order-preference-value.ts
1706
+ var OrderPreferenceValue = {
1707
+ Set: "SET",
1708
+ Unset: "UNSET"
1709
+ };
1710
+
1312
1711
  // src/api-model/models/outbound-shipment-status.ts
1313
1712
  var OutboundShipmentStatus = {
1314
1713
  Created: "CREATED",
@@ -1321,6 +1720,32 @@ var OutboundShipmentStatus = {
1321
1720
  Failed: "FAILED"
1322
1721
  };
1323
1722
 
1723
+ // src/api-model/models/outbound-status.ts
1724
+ var OutboundStatus = {
1725
+ Confirmed: "CONFIRMED",
1726
+ Draft: "DRAFT",
1727
+ Eligible: "ELIGIBLE",
1728
+ Executing: "EXECUTING",
1729
+ Failure: "FAILURE",
1730
+ Ineligible: "INELIGIBLE",
1731
+ InventoryOutbound: "INVENTORY_OUTBOUND",
1732
+ Success: "SUCCESS",
1733
+ Validating: "VALIDATING"
1734
+ };
1735
+
1736
+ // src/api-model/models/page-type.ts
1737
+ var PageType = {
1738
+ PlainPaper: "PLAIN_PAPER",
1739
+ LetterPcpFulfillmentlabel: "LETTER_PCP_FULFILLMENTLABEL",
1740
+ Letter2Horizontal: "LETTER_2_HORIZONTAL",
1741
+ Letter2: "LETTER_2",
1742
+ ThermalNoCarrierRotation: "THERMAL_NO_CARRIER_ROTATION",
1743
+ Thermal: "THERMAL",
1744
+ A4Paper: "A4_PAPER",
1745
+ A42Horizontal: "A4_2_HORIZONTAL",
1746
+ ThermalSquare10Cm: "THERMAL_SQUARE_10CM"
1747
+ };
1748
+
1324
1749
  // src/api-model/models/prep-category.ts
1325
1750
  var PrepCategory = {
1326
1751
  Adult: "ADULT",
@@ -1358,6 +1783,24 @@ var ReplenishmentOrderStatus = {
1358
1783
  Validating: "VALIDATING"
1359
1784
  };
1360
1785
 
1786
+ // src/api-model/models/shipment-sortable-field.ts
1787
+ var ShipmentSortableField = {
1788
+ UpdatedAt: "UPDATED_AT",
1789
+ CreatedAt: "CREATED_AT"
1790
+ };
1791
+
1792
+ // src/api-model/models/sku-quantities-visibility.ts
1793
+ var SkuQuantitiesVisibility = {
1794
+ Show: "SHOW",
1795
+ Hide: "HIDE"
1796
+ };
1797
+
1798
+ // src/api-model/models/sort-order.ts
1799
+ var SortOrder = {
1800
+ Ascending: "ASCENDING",
1801
+ Descending: "DESCENDING"
1802
+ };
1803
+
1361
1804
  // src/api-model/models/volume-unit-of-measurement.ts
1362
1805
  var VolumeUnitOfMeasurement = {
1363
1806
  CuIn: "CU_IN",
@@ -1422,6 +1865,13 @@ var clientRateLimits = [
1422
1865
  rate: 1,
1423
1866
  burst: 2
1424
1867
  },
1868
+ {
1869
+ method: "get",
1870
+ // eslint-disable-next-line prefer-regex-literals
1871
+ urlRegex: new RegExp("^/awd/2024-05-09/inboundShipments/[^/]*/labelPageTypes$"),
1872
+ rate: 1,
1873
+ burst: 2
1874
+ },
1425
1875
  {
1426
1876
  method: "put",
1427
1877
  // eslint-disable-next-line prefer-regex-literals
@@ -1449,6 +1899,41 @@ var clientRateLimits = [
1449
1899
  urlRegex: new RegExp("^/awd/2024-05-09/inventory$"),
1450
1900
  rate: 2,
1451
1901
  burst: 2
1902
+ },
1903
+ {
1904
+ method: "get",
1905
+ // eslint-disable-next-line prefer-regex-literals
1906
+ urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders$"),
1907
+ rate: 1,
1908
+ burst: 1
1909
+ },
1910
+ {
1911
+ method: "post",
1912
+ // eslint-disable-next-line prefer-regex-literals
1913
+ urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders$"),
1914
+ rate: 1,
1915
+ burst: 1
1916
+ },
1917
+ {
1918
+ method: "get",
1919
+ // eslint-disable-next-line prefer-regex-literals
1920
+ urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders/[^/]*$"),
1921
+ rate: 1,
1922
+ burst: 1
1923
+ },
1924
+ {
1925
+ method: "put",
1926
+ // eslint-disable-next-line prefer-regex-literals
1927
+ urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders/[^/]*$"),
1928
+ rate: 1,
1929
+ burst: 1
1930
+ },
1931
+ {
1932
+ method: "post",
1933
+ // eslint-disable-next-line prefer-regex-literals
1934
+ urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders/[^/]*/confirmation$"),
1935
+ rate: 1,
1936
+ burst: 1
1452
1937
  }
1453
1938
  ];
1454
1939
  var AmazonWarehousingAndDistributionApiClient = class extends AmazonWarehousingAndDistributionApi {
@@ -1468,12 +1953,14 @@ var AmazonWarehousingAndDistributionApiClient = class extends AmazonWarehousingA
1468
1953
  ConfirmationMode,
1469
1954
  DimensionUnitOfMeasurement,
1470
1955
  DistributionPackageType,
1956
+ FormatType,
1471
1957
  GetInboundShipmentLabelsFormatTypeEnum,
1472
1958
  GetInboundShipmentLabelsPageTypeEnum,
1473
1959
  GetInboundShipmentSkuQuantitiesEnum,
1474
1960
  InboundEligibilityStatus,
1475
1961
  InboundShipmentStatus,
1476
1962
  InboundStatus,
1963
+ InventoryDetailsVisibility,
1477
1964
  InventoryUnitOfMeasurement,
1478
1965
  LabelOwner,
1479
1966
  LabelStatus,
@@ -1482,11 +1969,19 @@ var AmazonWarehousingAndDistributionApiClient = class extends AmazonWarehousingA
1482
1969
  ListInboundShipmentsSortOrderEnum,
1483
1970
  ListInventoryDetailsEnum,
1484
1971
  ListInventorySortOrderEnum,
1972
+ ListOutboundsSortOrderEnum,
1485
1973
  ListReplenishmentOrdersSortOrderEnum,
1974
+ OrderPreference,
1975
+ OrderPreferenceValue,
1486
1976
  OutboundShipmentStatus,
1977
+ OutboundStatus,
1978
+ PageType,
1487
1979
  PrepCategory,
1488
1980
  PrepOwner,
1489
1981
  ReplenishmentOrderStatus,
1982
+ ShipmentSortableField,
1983
+ SkuQuantitiesVisibility,
1984
+ SortOrder,
1490
1985
  VolumeUnitOfMeasurement,
1491
1986
  WeightUnitOfMeasurement,
1492
1987
  clientRateLimits