@sp-api-sdk/external-fulfillment-shipments-api-2024-09-11 1.3.0 → 2.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 (215) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +1238 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +2526 -0
  5. package/dist/index.d.ts +2526 -0
  6. package/dist/index.js +1159 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/external-fulfillment-shipments-api.js +0 -776
  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/amount.js +0 -15
  17. package/dist/cjs/api-model/models/cancellation.js +0 -21
  18. package/dist/cjs/api-model/models/charge-breakup.js +0 -15
  19. package/dist/cjs/api-model/models/charge.js +0 -23
  20. package/dist/cjs/api-model/models/compliance-attributes.js +0 -15
  21. package/dist/cjs/api-model/models/courier-supported-attributes.js +0 -15
  22. package/dist/cjs/api-model/models/custom-attribute-type.js +0 -26
  23. package/dist/cjs/api-model/models/custom-attribute.js +0 -15
  24. package/dist/cjs/api-model/models/dimension.js +0 -21
  25. package/dist/cjs/api-model/models/distance.js +0 -20
  26. package/dist/cjs/api-model/models/document-v2.js +0 -15
  27. package/dist/cjs/api-model/models/document.js +0 -22
  28. package/dist/cjs/api-model/models/error-list.js +0 -15
  29. package/dist/cjs/api-model/models/geocodes.js +0 -15
  30. package/dist/cjs/api-model/models/gift-attributes.js +0 -15
  31. package/dist/cjs/api-model/models/handover-location.js +0 -15
  32. package/dist/cjs/api-model/models/index.js +0 -76
  33. package/dist/cjs/api-model/models/invoice-info.js +0 -15
  34. package/dist/cjs/api-model/models/invoice-requirement.js +0 -25
  35. package/dist/cjs/api-model/models/invoice-response.js +0 -15
  36. package/dist/cjs/api-model/models/line-item-with-reason.js +0 -20
  37. package/dist/cjs/api-model/models/line-item.js +0 -15
  38. package/dist/cjs/api-model/models/marketplace-attributes.js +0 -20
  39. package/dist/cjs/api-model/models/model-error.js +0 -15
  40. package/dist/cjs/api-model/models/original-line-item.js +0 -15
  41. package/dist/cjs/api-model/models/package-delivery-status.js +0 -15
  42. package/dist/cjs/api-model/models/package-dimensions.js +0 -15
  43. package/dist/cjs/api-model/models/package-line-item.js +0 -15
  44. package/dist/cjs/api-model/models/package-ship-label.js +0 -15
  45. package/dist/cjs/api-model/models/package-status.js +0 -27
  46. package/dist/cjs/api-model/models/package-sub-status.js +0 -25
  47. package/dist/cjs/api-model/models/package.js +0 -29
  48. package/dist/cjs/api-model/models/packages.js +0 -15
  49. package/dist/cjs/api-model/models/packing-slip-requirement.js +0 -24
  50. package/dist/cjs/api-model/models/pagination.js +0 -15
  51. package/dist/cjs/api-model/models/party-identification-info.js +0 -22
  52. package/dist/cjs/api-model/models/piece-type.js +0 -23
  53. package/dist/cjs/api-model/models/presence-status.js +0 -23
  54. package/dist/cjs/api-model/models/priority.js +0 -23
  55. package/dist/cjs/api-model/models/recommended-package-line-item.js +0 -15
  56. package/dist/cjs/api-model/models/recommended-package.js +0 -15
  57. package/dist/cjs/api-model/models/replaced-shipment-info.js +0 -15
  58. package/dist/cjs/api-model/models/requirement-level.js +0 -23
  59. package/dist/cjs/api-model/models/ship-label-metadata.js +0 -15
  60. package/dist/cjs/api-model/models/ship-labels-input.js +0 -15
  61. package/dist/cjs/api-model/models/ship-labels-response.js +0 -15
  62. package/dist/cjs/api-model/models/shipment-acknowledgement-request.js +0 -15
  63. package/dist/cjs/api-model/models/shipment-info.js +0 -29
  64. package/dist/cjs/api-model/models/shipment-line-item.js +0 -15
  65. package/dist/cjs/api-model/models/shipment-requirements.js +0 -15
  66. package/dist/cjs/api-model/models/shipment.js +0 -44
  67. package/dist/cjs/api-model/models/shipments-response.js +0 -15
  68. package/dist/cjs/api-model/models/shipping-info.js +0 -20
  69. package/dist/cjs/api-model/models/shipping-options-response.js +0 -15
  70. package/dist/cjs/api-model/models/shipping-options.js +0 -22
  71. package/dist/cjs/api-model/models/status.js +0 -23
  72. package/dist/cjs/api-model/models/tax-registration-info.js +0 -20
  73. package/dist/cjs/api-model/models/tax.js +0 -27
  74. package/dist/cjs/api-model/models/time-window.js +0 -20
  75. package/dist/cjs/api-model/models/weight.js +0 -22
  76. package/dist/cjs/client.js +0 -13
  77. package/dist/cjs/index.js +0 -19
  78. package/dist/es/api-model/api/external-fulfillment-shipments-api.js +0 -766
  79. package/dist/es/api-model/api.js +0 -14
  80. package/dist/es/api-model/base.js +0 -44
  81. package/dist/es/api-model/common.js +0 -110
  82. package/dist/es/api-model/configuration.js +0 -94
  83. package/dist/es/api-model/index.js +0 -16
  84. package/dist/es/api-model/models/address.js +0 -14
  85. package/dist/es/api-model/models/amount.js +0 -14
  86. package/dist/es/api-model/models/cancellation.js +0 -18
  87. package/dist/es/api-model/models/charge-breakup.js +0 -14
  88. package/dist/es/api-model/models/charge.js +0 -20
  89. package/dist/es/api-model/models/compliance-attributes.js +0 -14
  90. package/dist/es/api-model/models/courier-supported-attributes.js +0 -14
  91. package/dist/es/api-model/models/custom-attribute-type.js +0 -23
  92. package/dist/es/api-model/models/custom-attribute.js +0 -14
  93. package/dist/es/api-model/models/dimension.js +0 -18
  94. package/dist/es/api-model/models/distance.js +0 -17
  95. package/dist/es/api-model/models/document-v2.js +0 -14
  96. package/dist/es/api-model/models/document.js +0 -19
  97. package/dist/es/api-model/models/error-list.js +0 -14
  98. package/dist/es/api-model/models/geocodes.js +0 -14
  99. package/dist/es/api-model/models/gift-attributes.js +0 -14
  100. package/dist/es/api-model/models/handover-location.js +0 -14
  101. package/dist/es/api-model/models/index.js +0 -60
  102. package/dist/es/api-model/models/invoice-info.js +0 -14
  103. package/dist/es/api-model/models/invoice-requirement.js +0 -22
  104. package/dist/es/api-model/models/invoice-response.js +0 -14
  105. package/dist/es/api-model/models/line-item-with-reason.js +0 -17
  106. package/dist/es/api-model/models/line-item.js +0 -14
  107. package/dist/es/api-model/models/marketplace-attributes.js +0 -17
  108. package/dist/es/api-model/models/model-error.js +0 -14
  109. package/dist/es/api-model/models/original-line-item.js +0 -14
  110. package/dist/es/api-model/models/package-delivery-status.js +0 -14
  111. package/dist/es/api-model/models/package-dimensions.js +0 -14
  112. package/dist/es/api-model/models/package-line-item.js +0 -14
  113. package/dist/es/api-model/models/package-ship-label.js +0 -14
  114. package/dist/es/api-model/models/package-status.js +0 -24
  115. package/dist/es/api-model/models/package-sub-status.js +0 -22
  116. package/dist/es/api-model/models/package.js +0 -26
  117. package/dist/es/api-model/models/packages.js +0 -14
  118. package/dist/es/api-model/models/packing-slip-requirement.js +0 -21
  119. package/dist/es/api-model/models/pagination.js +0 -14
  120. package/dist/es/api-model/models/party-identification-info.js +0 -19
  121. package/dist/es/api-model/models/piece-type.js +0 -20
  122. package/dist/es/api-model/models/presence-status.js +0 -20
  123. package/dist/es/api-model/models/priority.js +0 -20
  124. package/dist/es/api-model/models/recommended-package-line-item.js +0 -14
  125. package/dist/es/api-model/models/recommended-package.js +0 -14
  126. package/dist/es/api-model/models/replaced-shipment-info.js +0 -14
  127. package/dist/es/api-model/models/requirement-level.js +0 -20
  128. package/dist/es/api-model/models/ship-label-metadata.js +0 -14
  129. package/dist/es/api-model/models/ship-labels-input.js +0 -14
  130. package/dist/es/api-model/models/ship-labels-response.js +0 -14
  131. package/dist/es/api-model/models/shipment-acknowledgement-request.js +0 -14
  132. package/dist/es/api-model/models/shipment-info.js +0 -26
  133. package/dist/es/api-model/models/shipment-line-item.js +0 -14
  134. package/dist/es/api-model/models/shipment-requirements.js +0 -14
  135. package/dist/es/api-model/models/shipment.js +0 -41
  136. package/dist/es/api-model/models/shipments-response.js +0 -14
  137. package/dist/es/api-model/models/shipping-info.js +0 -17
  138. package/dist/es/api-model/models/shipping-options-response.js +0 -14
  139. package/dist/es/api-model/models/shipping-options.js +0 -19
  140. package/dist/es/api-model/models/status.js +0 -20
  141. package/dist/es/api-model/models/tax-registration-info.js +0 -17
  142. package/dist/es/api-model/models/tax.js +0 -24
  143. package/dist/es/api-model/models/time-window.js +0 -17
  144. package/dist/es/api-model/models/weight.js +0 -19
  145. package/dist/es/client.js +0 -9
  146. package/dist/es/index.js +0 -3
  147. package/dist/types/api-model/api/external-fulfillment-shipments-api.d.ts +0 -556
  148. package/dist/types/api-model/api.d.ts +0 -12
  149. package/dist/types/api-model/base.d.ts +0 -42
  150. package/dist/types/api-model/common.d.ts +0 -34
  151. package/dist/types/api-model/configuration.d.ts +0 -98
  152. package/dist/types/api-model/index.d.ts +0 -14
  153. package/dist/types/api-model/models/address.d.ts +0 -74
  154. package/dist/types/api-model/models/amount.d.ts +0 -24
  155. package/dist/types/api-model/models/cancellation.d.ts +0 -38
  156. package/dist/types/api-model/models/charge-breakup.d.ts +0 -20
  157. package/dist/types/api-model/models/charge.d.ts +0 -37
  158. package/dist/types/api-model/models/compliance-attributes.d.ts +0 -21
  159. package/dist/types/api-model/models/courier-supported-attributes.d.ts +0 -24
  160. package/dist/types/api-model/models/custom-attribute-type.d.ts +0 -22
  161. package/dist/types/api-model/models/custom-attribute.d.ts +0 -26
  162. package/dist/types/api-model/models/dimension.d.ts +0 -30
  163. package/dist/types/api-model/models/distance.d.ts +0 -29
  164. package/dist/types/api-model/models/document-v2.d.ts +0 -20
  165. package/dist/types/api-model/models/document.d.ts +0 -31
  166. package/dist/types/api-model/models/error-list.d.ts +0 -20
  167. package/dist/types/api-model/models/geocodes.d.ts +0 -28
  168. package/dist/types/api-model/models/gift-attributes.d.ts +0 -26
  169. package/dist/types/api-model/models/handover-location.d.ts +0 -24
  170. package/dist/types/api-model/models/index.d.ts +0 -60
  171. package/dist/types/api-model/models/invoice-info.d.ts +0 -24
  172. package/dist/types/api-model/models/invoice-requirement.d.ts +0 -35
  173. package/dist/types/api-model/models/invoice-response.d.ts +0 -18
  174. package/dist/types/api-model/models/line-item-with-reason.d.ts +0 -27
  175. package/dist/types/api-model/models/line-item.d.ts +0 -24
  176. package/dist/types/api-model/models/marketplace-attributes.d.ts +0 -37
  177. package/dist/types/api-model/models/model-error.d.ts +0 -28
  178. package/dist/types/api-model/models/original-line-item.d.ts +0 -29
  179. package/dist/types/api-model/models/package-delivery-status.d.ts +0 -24
  180. package/dist/types/api-model/models/package-dimensions.d.ts +0 -20
  181. package/dist/types/api-model/models/package-line-item.d.ts +0 -38
  182. package/dist/types/api-model/models/package-ship-label.d.ts +0 -27
  183. package/dist/types/api-model/models/package-status.d.ts +0 -23
  184. package/dist/types/api-model/models/package-sub-status.d.ts +0 -21
  185. package/dist/types/api-model/models/package.d.ts +0 -56
  186. package/dist/types/api-model/models/packages.d.ts +0 -21
  187. package/dist/types/api-model/models/packing-slip-requirement.d.ts +0 -34
  188. package/dist/types/api-model/models/pagination.d.ts +0 -20
  189. package/dist/types/api-model/models/party-identification-info.d.ts +0 -35
  190. package/dist/types/api-model/models/piece-type.d.ts +0 -19
  191. package/dist/types/api-model/models/presence-status.d.ts +0 -19
  192. package/dist/types/api-model/models/priority.d.ts +0 -19
  193. package/dist/types/api-model/models/recommended-package-line-item.d.ts +0 -20
  194. package/dist/types/api-model/models/recommended-package.d.ts +0 -25
  195. package/dist/types/api-model/models/replaced-shipment-info.d.ts +0 -31
  196. package/dist/types/api-model/models/requirement-level.d.ts +0 -19
  197. package/dist/types/api-model/models/ship-label-metadata.d.ts +0 -33
  198. package/dist/types/api-model/models/ship-labels-input.d.ts +0 -22
  199. package/dist/types/api-model/models/ship-labels-response.d.ts +0 -21
  200. package/dist/types/api-model/models/shipment-acknowledgement-request.d.ts +0 -25
  201. package/dist/types/api-model/models/shipment-info.d.ts +0 -64
  202. package/dist/types/api-model/models/shipment-line-item.d.ts +0 -75
  203. package/dist/types/api-model/models/shipment-requirements.d.ts +0 -20
  204. package/dist/types/api-model/models/shipment.d.ts +0 -108
  205. package/dist/types/api-model/models/shipments-response.d.ts +0 -23
  206. package/dist/types/api-model/models/shipping-info.d.ts +0 -40
  207. package/dist/types/api-model/models/shipping-options-response.d.ts +0 -22
  208. package/dist/types/api-model/models/shipping-options.d.ts +0 -40
  209. package/dist/types/api-model/models/status.d.ts +0 -19
  210. package/dist/types/api-model/models/tax-registration-info.d.ts +0 -35
  211. package/dist/types/api-model/models/tax.d.ts +0 -38
  212. package/dist/types/api-model/models/time-window.d.ts +0 -33
  213. package/dist/types/api-model/models/weight.d.ts +0 -31
  214. package/dist/types/client.d.ts +0 -6
  215. package/dist/types/index.d.ts +0 -3
package/dist/index.cjs ADDED
@@ -0,0 +1,1238 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ CancellationCancellationTypeEnum: () => CancellationCancellationTypeEnum,
34
+ ChargeChargeTypeEnum: () => ChargeChargeTypeEnum,
35
+ CustomAttributeType: () => CustomAttributeType,
36
+ DimensionDimensionUnitEnum: () => DimensionDimensionUnitEnum,
37
+ DistanceDistanceUnitEnum: () => DistanceDistanceUnitEnum,
38
+ DocumentFormatEnum: () => DocumentFormatEnum,
39
+ ExternalFulfillmentShipmentsApi: () => ExternalFulfillmentShipmentsApi,
40
+ ExternalFulfillmentShipmentsApiAxiosParamCreator: () => ExternalFulfillmentShipmentsApiAxiosParamCreator,
41
+ ExternalFulfillmentShipmentsApiClient: () => ExternalFulfillmentShipmentsApiClient,
42
+ ExternalFulfillmentShipmentsApiFactory: () => ExternalFulfillmentShipmentsApiFactory,
43
+ ExternalFulfillmentShipmentsApiFp: () => ExternalFulfillmentShipmentsApiFp,
44
+ GenerateShipLabelsOperationEnum: () => GenerateShipLabelsOperationEnum,
45
+ GetShipmentsStatusEnum: () => GetShipmentsStatusEnum,
46
+ InvoiceRequirementRequirementEnum: () => InvoiceRequirementRequirementEnum,
47
+ InvoiceRequirementStatusEnum: () => InvoiceRequirementStatusEnum,
48
+ LineItemWithReasonReasonEnum: () => LineItemWithReasonReasonEnum,
49
+ MarketplaceAttributesCustomAttributesEnum: () => MarketplaceAttributesCustomAttributesEnum,
50
+ PackagePackageHandlingRequirementsEnum: () => PackagePackageHandlingRequirementsEnum,
51
+ PackageStatus: () => PackageStatus,
52
+ PackageStatusEnum: () => PackageStatusEnum,
53
+ PackageSubStatus: () => PackageSubStatus,
54
+ PackingSlipRequirementRequirementEnum: () => PackingSlipRequirementRequirementEnum,
55
+ PackingSlipRequirementStatusEnum: () => PackingSlipRequirementStatusEnum,
56
+ PartyIdentificationInfoPartyTypeEnum: () => PartyIdentificationInfoPartyTypeEnum,
57
+ PieceType: () => PieceType,
58
+ PresenceStatus: () => PresenceStatus,
59
+ Priority: () => Priority,
60
+ ProcessShipmentOperationEnum: () => ProcessShipmentOperationEnum,
61
+ RequirementLevel: () => RequirementLevel,
62
+ ShipmentInfoPaymentMethodEnum: () => ShipmentInfoPaymentMethodEnum,
63
+ ShipmentInfoProcessingSourceEnum: () => ShipmentInfoProcessingSourceEnum,
64
+ ShipmentInfoShipmentTypeEnum: () => ShipmentInfoShipmentTypeEnum,
65
+ ShipmentStatusEnum: () => ShipmentStatusEnum,
66
+ ShipmentSubStatusEnum: () => ShipmentSubStatusEnum,
67
+ ShippingInfoShippingTypeEnum: () => ShippingInfoShippingTypeEnum,
68
+ ShippingOptionsShipByEnum: () => ShippingOptionsShipByEnum,
69
+ Status: () => Status,
70
+ TaxRegistrationInfoTypeEnum: () => TaxRegistrationInfoTypeEnum,
71
+ TaxTypeEnum: () => TaxTypeEnum,
72
+ TimeWindowHandoverMethodEnum: () => TimeWindowHandoverMethodEnum,
73
+ UpdatePackageStatusStatusEnum: () => UpdatePackageStatusStatusEnum,
74
+ WeightWeightUnitEnum: () => WeightWeightUnitEnum,
75
+ clientRateLimits: () => clientRateLimits
76
+ });
77
+ module.exports = __toCommonJS(index_exports);
78
+
79
+ // src/client.ts
80
+ var import_common2 = require("@sp-api-sdk/common");
81
+
82
+ // src/api-model/api/external-fulfillment-shipments-api.ts
83
+ var import_axios2 = __toESM(require("axios"), 1);
84
+
85
+ // src/api-model/base.ts
86
+ var import_axios = __toESM(require("axios"), 1);
87
+ var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
88
+ var BaseAPI = class {
89
+ constructor(configuration, basePath = BASE_PATH, axios = import_axios.default) {
90
+ this.basePath = basePath;
91
+ this.axios = axios;
92
+ if (configuration) {
93
+ this.configuration = configuration;
94
+ this.basePath = configuration.basePath ?? basePath;
95
+ }
96
+ }
97
+ basePath;
98
+ axios;
99
+ configuration;
100
+ };
101
+ var RequiredError = class extends Error {
102
+ constructor(field, msg) {
103
+ super(msg);
104
+ this.field = field;
105
+ this.name = "RequiredError";
106
+ }
107
+ field;
108
+ };
109
+ var operationServerMap = {};
110
+
111
+ // src/api-model/common.ts
112
+ var DUMMY_BASE_URL = "https://example.com";
113
+ var assertParamExists = function(functionName, paramName, paramValue) {
114
+ if (paramValue === null || paramValue === void 0) {
115
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
116
+ }
117
+ };
118
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
119
+ if (parameter == null) return;
120
+ if (typeof parameter === "object") {
121
+ if (Array.isArray(parameter) || parameter instanceof Set) {
122
+ parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
123
+ } else {
124
+ Object.keys(parameter).forEach(
125
+ (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
126
+ );
127
+ }
128
+ } else {
129
+ if (urlSearchParams.has(key)) {
130
+ urlSearchParams.append(key, parameter);
131
+ } else {
132
+ urlSearchParams.set(key, parameter);
133
+ }
134
+ }
135
+ }
136
+ var setSearchParams = function(url, ...objects) {
137
+ const searchParams = new URLSearchParams(url.search);
138
+ setFlattenedQueryParams(searchParams, objects);
139
+ url.search = searchParams.toString();
140
+ };
141
+ var replaceWithSerializableTypeIfNeeded = function(key, value) {
142
+ if (value instanceof Set) {
143
+ return Array.from(value);
144
+ } else {
145
+ return value;
146
+ }
147
+ };
148
+ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
149
+ const nonString = typeof value !== "string";
150
+ const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
151
+ return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
152
+ };
153
+ var toPathString = function(url) {
154
+ return url.pathname + url.search + url.hash;
155
+ };
156
+ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
157
+ return (axios = globalAxios3, basePath = BASE_PATH2) => {
158
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
159
+ return axios.request(axiosRequestArgs);
160
+ };
161
+ };
162
+
163
+ // src/api-model/api/external-fulfillment-shipments-api.ts
164
+ var ExternalFulfillmentShipmentsApiAxiosParamCreator = function(configuration) {
165
+ return {
166
+ /**
167
+ * Provide details about the packages in the specified shipment.
168
+ * @param {string} shipmentId The ID of the shipment.
169
+ * @param {Packages} body A list of packages in the shipment.
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ createPackages: async (shipmentId, body, options = {}) => {
174
+ assertParamExists("createPackages", "shipmentId", shipmentId);
175
+ assertParamExists("createPackages", "body", body);
176
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
177
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
178
+ let baseOptions;
179
+ if (configuration) {
180
+ baseOptions = configuration.baseOptions;
181
+ }
182
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
183
+ const localVarHeaderParameter = {};
184
+ const localVarQueryParameter = {};
185
+ localVarHeaderParameter["Content-Type"] = "application/json";
186
+ localVarHeaderParameter["Accept"] = "application/json";
187
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
190
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
191
+ return {
192
+ url: toPathString(localVarUrlObj),
193
+ options: localVarRequestOptions
194
+ };
195
+ },
196
+ /**
197
+ * Get invoices for the shipment you specify.
198
+ * @param {string} shipmentId The ID of the shipment whose invoice you want.
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ generateInvoice: async (shipmentId, options = {}) => {
203
+ assertParamExists("generateInvoice", "shipmentId", shipmentId);
204
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/invoice`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
205
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
206
+ let baseOptions;
207
+ if (configuration) {
208
+ baseOptions = configuration.baseOptions;
209
+ }
210
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
211
+ const localVarHeaderParameter = {};
212
+ const localVarQueryParameter = {};
213
+ localVarHeaderParameter["Accept"] = "application/json";
214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
217
+ return {
218
+ url: toPathString(localVarUrlObj),
219
+ options: localVarRequestOptions
220
+ };
221
+ },
222
+ /**
223
+ * Generate and retrieve all shipping labels for one or more packages in the shipment you specify.
224
+ * @param {string} shipmentId The ID of the shipment whose shipping labels you want to generate and retrieve.
225
+ * @param {GenerateShipLabelsOperationEnum} operation Specify whether you want to generate or regenerate a label.
226
+ * @param {string} [shippingOptionId] The ID of the shipping option whose shipping labels you want.
227
+ * @param {ShipLabelsInput} [body] Shipping details for when shipping is not done by the marketplace channel.
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ generateShipLabels: async (shipmentId, operation, shippingOptionId, body, options = {}) => {
232
+ assertParamExists("generateShipLabels", "shipmentId", shipmentId);
233
+ assertParamExists("generateShipLabels", "operation", operation);
234
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/shipLabels`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
235
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
236
+ let baseOptions;
237
+ if (configuration) {
238
+ baseOptions = configuration.baseOptions;
239
+ }
240
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
241
+ const localVarHeaderParameter = {};
242
+ const localVarQueryParameter = {};
243
+ if (shippingOptionId !== void 0) {
244
+ localVarQueryParameter["shippingOptionId"] = shippingOptionId;
245
+ }
246
+ if (operation !== void 0) {
247
+ localVarQueryParameter["operation"] = operation;
248
+ }
249
+ localVarHeaderParameter["Content-Type"] = "application/json";
250
+ localVarHeaderParameter["Accept"] = "application/json";
251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
254
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
255
+ return {
256
+ url: toPathString(localVarUrlObj),
257
+ options: localVarRequestOptions
258
+ };
259
+ },
260
+ /**
261
+ * Get a single shipment with the ID you specify.
262
+ * @param {string} shipmentId The ID of the shipment you want to retrieve.
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ getShipment: async (shipmentId, options = {}) => {
267
+ assertParamExists("getShipment", "shipmentId", shipmentId);
268
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
269
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
270
+ let baseOptions;
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ }
274
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
275
+ const localVarHeaderParameter = {};
276
+ const localVarQueryParameter = {};
277
+ localVarHeaderParameter["Accept"] = "application/json";
278
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
281
+ return {
282
+ url: toPathString(localVarUrlObj),
283
+ options: localVarRequestOptions
284
+ };
285
+ },
286
+ /**
287
+ * Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments\' last update.
288
+ * @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `CREATED` or `ACCEPTED`.
289
+ * @param {string} [locationId] The Amazon channel location identifier for the shipments you want to retrieve.
290
+ * @param {string} [marketplaceId] The marketplace ID associated with the location. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
291
+ * @param {string} [channelName] The channel name associated with the location.
292
+ * @param {string} [lastUpdatedAfter] The response includes shipments whose latest update is after the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
293
+ * @param {string} [lastUpdatedBefore] The response includes shipments whose latest update is before the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
294
+ * @param {number} [maxResults] The maximum number of shipments to include in the response.
295
+ * @param {string} [paginationToken] A token that you use to retrieve the next page of results. The response includes `nextToken` when there are multiple pages of results. 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.
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ */
299
+ getShipments: async (status, locationId, marketplaceId, channelName, lastUpdatedAfter, lastUpdatedBefore, maxResults, paginationToken, options = {}) => {
300
+ assertParamExists("getShipments", "status", status);
301
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments`;
302
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
303
+ let baseOptions;
304
+ if (configuration) {
305
+ baseOptions = configuration.baseOptions;
306
+ }
307
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
308
+ const localVarHeaderParameter = {};
309
+ const localVarQueryParameter = {};
310
+ if (locationId !== void 0) {
311
+ localVarQueryParameter["locationId"] = locationId;
312
+ }
313
+ if (marketplaceId !== void 0) {
314
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
315
+ }
316
+ if (channelName !== void 0) {
317
+ localVarQueryParameter["channelName"] = channelName;
318
+ }
319
+ if (status !== void 0) {
320
+ localVarQueryParameter["status"] = status;
321
+ }
322
+ if (lastUpdatedAfter !== void 0) {
323
+ localVarQueryParameter["lastUpdatedAfter"] = lastUpdatedAfter instanceof Date ? lastUpdatedAfter.toISOString() : lastUpdatedAfter;
324
+ }
325
+ if (lastUpdatedBefore !== void 0) {
326
+ localVarQueryParameter["lastUpdatedBefore"] = lastUpdatedBefore instanceof Date ? lastUpdatedBefore.toISOString() : lastUpdatedBefore;
327
+ }
328
+ if (maxResults !== void 0) {
329
+ localVarQueryParameter["maxResults"] = maxResults;
330
+ }
331
+ if (paginationToken !== void 0) {
332
+ localVarQueryParameter["paginationToken"] = paginationToken;
333
+ }
334
+ localVarHeaderParameter["Accept"] = "application/json";
335
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
338
+ return {
339
+ url: toPathString(localVarUrlObj),
340
+ options: localVarRequestOptions
341
+ };
342
+ },
343
+ /**
344
+ * Confirm or reject the specified shipment.
345
+ * @param {string} shipmentId The ID of the shipment you want to confirm or reject.
346
+ * @param {ProcessShipmentOperationEnum} operation The status of the shipment.
347
+ * @param {ShipmentAcknowledgementRequest} [body] Information about the shipment and its line items.
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ processShipment: async (shipmentId, operation, body, options = {}) => {
352
+ assertParamExists("processShipment", "shipmentId", shipmentId);
353
+ assertParamExists("processShipment", "operation", operation);
354
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
355
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
356
+ let baseOptions;
357
+ if (configuration) {
358
+ baseOptions = configuration.baseOptions;
359
+ }
360
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
361
+ const localVarHeaderParameter = {};
362
+ const localVarQueryParameter = {};
363
+ if (operation !== void 0) {
364
+ localVarQueryParameter["operation"] = operation;
365
+ }
366
+ localVarHeaderParameter["Content-Type"] = "application/json";
367
+ localVarHeaderParameter["Accept"] = "application/json";
368
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
369
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
370
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
371
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
372
+ return {
373
+ url: toPathString(localVarUrlObj),
374
+ options: localVarRequestOptions
375
+ };
376
+ },
377
+ /**
378
+ * Retrieve invoices for the shipment you specify.
379
+ * @param {string} shipmentId The ID of the shipment whose invoice you want to retrieve.
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ retrieveInvoice: async (shipmentId, options = {}) => {
384
+ assertParamExists("retrieveInvoice", "shipmentId", shipmentId);
385
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/invoice`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
386
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
387
+ let baseOptions;
388
+ if (configuration) {
389
+ baseOptions = configuration.baseOptions;
390
+ }
391
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
392
+ const localVarHeaderParameter = {};
393
+ const localVarQueryParameter = {};
394
+ localVarHeaderParameter["Accept"] = "application/json";
395
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
397
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
398
+ return {
399
+ url: toPathString(localVarUrlObj),
400
+ options: localVarRequestOptions
401
+ };
402
+ },
403
+ /**
404
+ * Get a list of shipping options for a package in a shipment given the shipment\'s marketplace and channel. If the marketplace and channel have a pre-determined shipping option, then this operation returns an empty response.
405
+ * @param {string} shipmentId The ID of the shipment to which the package belongs.
406
+ * @param {string} packageId The ID of the package for which you want to retrieve shipping options.
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ retrieveShippingOptions: async (shipmentId, packageId, options = {}) => {
411
+ assertParamExists("retrieveShippingOptions", "shipmentId", shipmentId);
412
+ assertParamExists("retrieveShippingOptions", "packageId", packageId);
413
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/shippingOptions`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
414
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
415
+ let baseOptions;
416
+ if (configuration) {
417
+ baseOptions = configuration.baseOptions;
418
+ }
419
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
420
+ const localVarHeaderParameter = {};
421
+ const localVarQueryParameter = {};
422
+ if (packageId !== void 0) {
423
+ localVarQueryParameter["packageId"] = packageId;
424
+ }
425
+ localVarHeaderParameter["Accept"] = "application/json";
426
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
428
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
429
+ return {
430
+ url: toPathString(localVarUrlObj),
431
+ options: localVarRequestOptions
432
+ };
433
+ },
434
+ /**
435
+ * Updates the details about the packages that will be used to fulfill the specified shipment.
436
+ * @param {string} shipmentId The ID of the shipment to which the package belongs.
437
+ * @param {string} packageId The ID of the package whose information you want to update.
438
+ * @param {Package} body The body of the request.
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ */
442
+ updatePackage: async (shipmentId, packageId, body, options = {}) => {
443
+ assertParamExists("updatePackage", "shipmentId", shipmentId);
444
+ assertParamExists("updatePackage", "packageId", packageId);
445
+ assertParamExists("updatePackage", "body", body);
446
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages/{packageId}`.replace("{shipmentId}", encodeURIComponent(String(shipmentId))).replace("{packageId}", encodeURIComponent(String(packageId)));
447
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
448
+ let baseOptions;
449
+ if (configuration) {
450
+ baseOptions = configuration.baseOptions;
451
+ }
452
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
453
+ const localVarHeaderParameter = {};
454
+ const localVarQueryParameter = {};
455
+ localVarHeaderParameter["Content-Type"] = "application/json";
456
+ localVarHeaderParameter["Accept"] = "application/json";
457
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
458
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
459
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
460
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
461
+ return {
462
+ url: toPathString(localVarUrlObj),
463
+ options: localVarRequestOptions
464
+ };
465
+ },
466
+ /**
467
+ * Updates the status of the packages.
468
+ * @param {string} shipmentId The ID of the shipment to which the package belongs.
469
+ * @param {string} packageId The ID of the package whose status you want to update.
470
+ * @param {UpdatePackageStatusStatusEnum} [status] **DEPRECATED**. Do not use. Package status is defined in the body parameter.
471
+ * @param {PackageDeliveryStatus} [body] The body of the request.
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ updatePackageStatus: async (shipmentId, packageId, status, body, options = {}) => {
476
+ assertParamExists("updatePackageStatus", "shipmentId", shipmentId);
477
+ assertParamExists("updatePackageStatus", "packageId", packageId);
478
+ const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages/{packageId}`.replace("{shipmentId}", encodeURIComponent(String(shipmentId))).replace("{packageId}", encodeURIComponent(String(packageId)));
479
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
480
+ let baseOptions;
481
+ if (configuration) {
482
+ baseOptions = configuration.baseOptions;
483
+ }
484
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
485
+ const localVarHeaderParameter = {};
486
+ const localVarQueryParameter = {};
487
+ if (status !== void 0) {
488
+ localVarQueryParameter["status"] = status;
489
+ }
490
+ localVarHeaderParameter["Content-Type"] = "application/json";
491
+ localVarHeaderParameter["Accept"] = "application/json";
492
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
493
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
494
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
495
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
496
+ return {
497
+ url: toPathString(localVarUrlObj),
498
+ options: localVarRequestOptions
499
+ };
500
+ }
501
+ };
502
+ };
503
+ var ExternalFulfillmentShipmentsApiFp = function(configuration) {
504
+ const localVarAxiosParamCreator = ExternalFulfillmentShipmentsApiAxiosParamCreator(configuration);
505
+ return {
506
+ /**
507
+ * Provide details about the packages in the specified shipment.
508
+ * @param {string} shipmentId The ID of the shipment.
509
+ * @param {Packages} body A list of packages in the shipment.
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ async createPackages(shipmentId, body, options) {
514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPackages(shipmentId, body, options);
515
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
516
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.createPackages"]?.[localVarOperationServerIndex]?.url;
517
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
518
+ },
519
+ /**
520
+ * Get invoices for the shipment you specify.
521
+ * @param {string} shipmentId The ID of the shipment whose invoice you want.
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ async generateInvoice(shipmentId, options) {
526
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateInvoice(shipmentId, options);
527
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
528
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.generateInvoice"]?.[localVarOperationServerIndex]?.url;
529
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
530
+ },
531
+ /**
532
+ * Generate and retrieve all shipping labels for one or more packages in the shipment you specify.
533
+ * @param {string} shipmentId The ID of the shipment whose shipping labels you want to generate and retrieve.
534
+ * @param {GenerateShipLabelsOperationEnum} operation Specify whether you want to generate or regenerate a label.
535
+ * @param {string} [shippingOptionId] The ID of the shipping option whose shipping labels you want.
536
+ * @param {ShipLabelsInput} [body] Shipping details for when shipping is not done by the marketplace channel.
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ async generateShipLabels(shipmentId, operation, shippingOptionId, body, options) {
541
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateShipLabels(shipmentId, operation, shippingOptionId, body, options);
542
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
543
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.generateShipLabels"]?.[localVarOperationServerIndex]?.url;
544
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
545
+ },
546
+ /**
547
+ * Get a single shipment with the ID you specify.
548
+ * @param {string} shipmentId The ID of the shipment you want to retrieve.
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ async getShipment(shipmentId, options) {
553
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(shipmentId, options);
554
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
555
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.getShipment"]?.[localVarOperationServerIndex]?.url;
556
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
557
+ },
558
+ /**
559
+ * Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments\' last update.
560
+ * @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `CREATED` or `ACCEPTED`.
561
+ * @param {string} [locationId] The Amazon channel location identifier for the shipments you want to retrieve.
562
+ * @param {string} [marketplaceId] The marketplace ID associated with the location. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
563
+ * @param {string} [channelName] The channel name associated with the location.
564
+ * @param {string} [lastUpdatedAfter] The response includes shipments whose latest update is after the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
565
+ * @param {string} [lastUpdatedBefore] The response includes shipments whose latest update is before the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
566
+ * @param {number} [maxResults] The maximum number of shipments to include in the response.
567
+ * @param {string} [paginationToken] A token that you use to retrieve the next page of results. The response includes `nextToken` when there are multiple pages of results. 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.
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ async getShipments(status, locationId, marketplaceId, channelName, lastUpdatedAfter, lastUpdatedBefore, maxResults, paginationToken, options) {
572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShipments(status, locationId, marketplaceId, channelName, lastUpdatedAfter, lastUpdatedBefore, maxResults, paginationToken, options);
573
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
574
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.getShipments"]?.[localVarOperationServerIndex]?.url;
575
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
576
+ },
577
+ /**
578
+ * Confirm or reject the specified shipment.
579
+ * @param {string} shipmentId The ID of the shipment you want to confirm or reject.
580
+ * @param {ProcessShipmentOperationEnum} operation The status of the shipment.
581
+ * @param {ShipmentAcknowledgementRequest} [body] Information about the shipment and its line items.
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ async processShipment(shipmentId, operation, body, options) {
586
+ const localVarAxiosArgs = await localVarAxiosParamCreator.processShipment(shipmentId, operation, body, options);
587
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
588
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.processShipment"]?.[localVarOperationServerIndex]?.url;
589
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
590
+ },
591
+ /**
592
+ * Retrieve invoices for the shipment you specify.
593
+ * @param {string} shipmentId The ID of the shipment whose invoice you want to retrieve.
594
+ * @param {*} [options] Override http request option.
595
+ * @throws {RequiredError}
596
+ */
597
+ async retrieveInvoice(shipmentId, options) {
598
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveInvoice(shipmentId, options);
599
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
600
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.retrieveInvoice"]?.[localVarOperationServerIndex]?.url;
601
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
602
+ },
603
+ /**
604
+ * Get a list of shipping options for a package in a shipment given the shipment\'s marketplace and channel. If the marketplace and channel have a pre-determined shipping option, then this operation returns an empty response.
605
+ * @param {string} shipmentId The ID of the shipment to which the package belongs.
606
+ * @param {string} packageId The ID of the package for which you want to retrieve shipping options.
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ async retrieveShippingOptions(shipmentId, packageId, options) {
611
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShippingOptions(shipmentId, packageId, options);
612
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
613
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.retrieveShippingOptions"]?.[localVarOperationServerIndex]?.url;
614
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
615
+ },
616
+ /**
617
+ * Updates the details about the packages that will be used to fulfill the specified shipment.
618
+ * @param {string} shipmentId The ID of the shipment to which the package belongs.
619
+ * @param {string} packageId The ID of the package whose information you want to update.
620
+ * @param {Package} body The body of the request.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ async updatePackage(shipmentId, packageId, body, options) {
625
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePackage(shipmentId, packageId, body, options);
626
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
627
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.updatePackage"]?.[localVarOperationServerIndex]?.url;
628
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
629
+ },
630
+ /**
631
+ * Updates the status of the packages.
632
+ * @param {string} shipmentId The ID of the shipment to which the package belongs.
633
+ * @param {string} packageId The ID of the package whose status you want to update.
634
+ * @param {UpdatePackageStatusStatusEnum} [status] **DEPRECATED**. Do not use. Package status is defined in the body parameter.
635
+ * @param {PackageDeliveryStatus} [body] The body of the request.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ */
639
+ async updatePackageStatus(shipmentId, packageId, status, body, options) {
640
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePackageStatus(shipmentId, packageId, status, body, options);
641
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
642
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentShipmentsApi.updatePackageStatus"]?.[localVarOperationServerIndex]?.url;
643
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
644
+ }
645
+ };
646
+ };
647
+ var ExternalFulfillmentShipmentsApiFactory = function(configuration, basePath, axios) {
648
+ const localVarFp = ExternalFulfillmentShipmentsApiFp(configuration);
649
+ return {
650
+ /**
651
+ * Provide details about the packages in the specified shipment.
652
+ * @param {ExternalFulfillmentShipmentsApiCreatePackagesRequest} requestParameters Request parameters.
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ createPackages(requestParameters, options) {
657
+ return localVarFp.createPackages(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
658
+ },
659
+ /**
660
+ * Get invoices for the shipment you specify.
661
+ * @param {ExternalFulfillmentShipmentsApiGenerateInvoiceRequest} requestParameters Request parameters.
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ */
665
+ generateInvoice(requestParameters, options) {
666
+ return localVarFp.generateInvoice(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
667
+ },
668
+ /**
669
+ * Generate and retrieve all shipping labels for one or more packages in the shipment you specify.
670
+ * @param {ExternalFulfillmentShipmentsApiGenerateShipLabelsRequest} requestParameters Request parameters.
671
+ * @param {*} [options] Override http request option.
672
+ * @throws {RequiredError}
673
+ */
674
+ generateShipLabels(requestParameters, options) {
675
+ return localVarFp.generateShipLabels(requestParameters.shipmentId, requestParameters.operation, requestParameters.shippingOptionId, requestParameters.body, options).then((request) => request(axios, basePath));
676
+ },
677
+ /**
678
+ * Get a single shipment with the ID you specify.
679
+ * @param {ExternalFulfillmentShipmentsApiGetShipmentRequest} requestParameters Request parameters.
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ getShipment(requestParameters, options) {
684
+ return localVarFp.getShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
685
+ },
686
+ /**
687
+ * Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments\' last update.
688
+ * @param {ExternalFulfillmentShipmentsApiGetShipmentsRequest} requestParameters Request parameters.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ */
692
+ getShipments(requestParameters, options) {
693
+ return localVarFp.getShipments(requestParameters.status, requestParameters.locationId, requestParameters.marketplaceId, requestParameters.channelName, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.maxResults, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
694
+ },
695
+ /**
696
+ * Confirm or reject the specified shipment.
697
+ * @param {ExternalFulfillmentShipmentsApiProcessShipmentRequest} requestParameters Request parameters.
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ processShipment(requestParameters, options) {
702
+ return localVarFp.processShipment(requestParameters.shipmentId, requestParameters.operation, requestParameters.body, options).then((request) => request(axios, basePath));
703
+ },
704
+ /**
705
+ * Retrieve invoices for the shipment you specify.
706
+ * @param {ExternalFulfillmentShipmentsApiRetrieveInvoiceRequest} requestParameters Request parameters.
707
+ * @param {*} [options] Override http request option.
708
+ * @throws {RequiredError}
709
+ */
710
+ retrieveInvoice(requestParameters, options) {
711
+ return localVarFp.retrieveInvoice(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
712
+ },
713
+ /**
714
+ * Get a list of shipping options for a package in a shipment given the shipment\'s marketplace and channel. If the marketplace and channel have a pre-determined shipping option, then this operation returns an empty response.
715
+ * @param {ExternalFulfillmentShipmentsApiRetrieveShippingOptionsRequest} requestParameters Request parameters.
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ */
719
+ retrieveShippingOptions(requestParameters, options) {
720
+ return localVarFp.retrieveShippingOptions(requestParameters.shipmentId, requestParameters.packageId, options).then((request) => request(axios, basePath));
721
+ },
722
+ /**
723
+ * Updates the details about the packages that will be used to fulfill the specified shipment.
724
+ * @param {ExternalFulfillmentShipmentsApiUpdatePackageRequest} requestParameters Request parameters.
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ updatePackage(requestParameters, options) {
729
+ return localVarFp.updatePackage(requestParameters.shipmentId, requestParameters.packageId, requestParameters.body, options).then((request) => request(axios, basePath));
730
+ },
731
+ /**
732
+ * Updates the status of the packages.
733
+ * @param {ExternalFulfillmentShipmentsApiUpdatePackageStatusRequest} requestParameters Request parameters.
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ */
737
+ updatePackageStatus(requestParameters, options) {
738
+ return localVarFp.updatePackageStatus(requestParameters.shipmentId, requestParameters.packageId, requestParameters.status, requestParameters.body, options).then((request) => request(axios, basePath));
739
+ }
740
+ };
741
+ };
742
+ var ExternalFulfillmentShipmentsApi = class extends BaseAPI {
743
+ /**
744
+ * Provide details about the packages in the specified shipment.
745
+ * @param {ExternalFulfillmentShipmentsApiCreatePackagesRequest} requestParameters Request parameters.
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ createPackages(requestParameters, options) {
750
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).createPackages(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
751
+ }
752
+ /**
753
+ * Get invoices for the shipment you specify.
754
+ * @param {ExternalFulfillmentShipmentsApiGenerateInvoiceRequest} requestParameters Request parameters.
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ generateInvoice(requestParameters, options) {
759
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).generateInvoice(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
760
+ }
761
+ /**
762
+ * Generate and retrieve all shipping labels for one or more packages in the shipment you specify.
763
+ * @param {ExternalFulfillmentShipmentsApiGenerateShipLabelsRequest} requestParameters Request parameters.
764
+ * @param {*} [options] Override http request option.
765
+ * @throws {RequiredError}
766
+ */
767
+ generateShipLabels(requestParameters, options) {
768
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).generateShipLabels(requestParameters.shipmentId, requestParameters.operation, requestParameters.shippingOptionId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
769
+ }
770
+ /**
771
+ * Get a single shipment with the ID you specify.
772
+ * @param {ExternalFulfillmentShipmentsApiGetShipmentRequest} requestParameters Request parameters.
773
+ * @param {*} [options] Override http request option.
774
+ * @throws {RequiredError}
775
+ */
776
+ getShipment(requestParameters, options) {
777
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).getShipment(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
778
+ }
779
+ /**
780
+ * Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments\' last update.
781
+ * @param {ExternalFulfillmentShipmentsApiGetShipmentsRequest} requestParameters Request parameters.
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ */
785
+ getShipments(requestParameters, options) {
786
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).getShipments(requestParameters.status, requestParameters.locationId, requestParameters.marketplaceId, requestParameters.channelName, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.maxResults, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
787
+ }
788
+ /**
789
+ * Confirm or reject the specified shipment.
790
+ * @param {ExternalFulfillmentShipmentsApiProcessShipmentRequest} requestParameters Request parameters.
791
+ * @param {*} [options] Override http request option.
792
+ * @throws {RequiredError}
793
+ */
794
+ processShipment(requestParameters, options) {
795
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).processShipment(requestParameters.shipmentId, requestParameters.operation, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
796
+ }
797
+ /**
798
+ * Retrieve invoices for the shipment you specify.
799
+ * @param {ExternalFulfillmentShipmentsApiRetrieveInvoiceRequest} requestParameters Request parameters.
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ */
803
+ retrieveInvoice(requestParameters, options) {
804
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).retrieveInvoice(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
805
+ }
806
+ /**
807
+ * Get a list of shipping options for a package in a shipment given the shipment\'s marketplace and channel. If the marketplace and channel have a pre-determined shipping option, then this operation returns an empty response.
808
+ * @param {ExternalFulfillmentShipmentsApiRetrieveShippingOptionsRequest} requestParameters Request parameters.
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ */
812
+ retrieveShippingOptions(requestParameters, options) {
813
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).retrieveShippingOptions(requestParameters.shipmentId, requestParameters.packageId, options).then((request) => request(this.axios, this.basePath));
814
+ }
815
+ /**
816
+ * Updates the details about the packages that will be used to fulfill the specified shipment.
817
+ * @param {ExternalFulfillmentShipmentsApiUpdatePackageRequest} requestParameters Request parameters.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ */
821
+ updatePackage(requestParameters, options) {
822
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).updatePackage(requestParameters.shipmentId, requestParameters.packageId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
823
+ }
824
+ /**
825
+ * Updates the status of the packages.
826
+ * @param {ExternalFulfillmentShipmentsApiUpdatePackageStatusRequest} requestParameters Request parameters.
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ */
830
+ updatePackageStatus(requestParameters, options) {
831
+ return ExternalFulfillmentShipmentsApiFp(this.configuration).updatePackageStatus(requestParameters.shipmentId, requestParameters.packageId, requestParameters.status, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
832
+ }
833
+ };
834
+ var GenerateShipLabelsOperationEnum = {
835
+ Generate: "GENERATE",
836
+ Regenerate: "REGENERATE"
837
+ };
838
+ var GetShipmentsStatusEnum = {
839
+ Created: "CREATED",
840
+ Accepted: "ACCEPTED",
841
+ Confirmed: "CONFIRMED",
842
+ PackageCreated: "PACKAGE_CREATED",
843
+ PickupSlotRetrieved: "PICKUP_SLOT_RETRIEVED",
844
+ InvoiceGenerated: "INVOICE_GENERATED",
845
+ ShiplabelGenerated: "SHIPLABEL_GENERATED",
846
+ Cancelled: "CANCELLED",
847
+ Shipped: "SHIPPED",
848
+ Delivered: "DELIVERED"
849
+ };
850
+ var ProcessShipmentOperationEnum = {
851
+ Confirm: "CONFIRM",
852
+ Reject: "REJECT"
853
+ };
854
+ var UpdatePackageStatusStatusEnum = {
855
+ Shipped: "SHIPPED"
856
+ };
857
+
858
+ // src/api-model/configuration.ts
859
+ var Configuration = class {
860
+ /**
861
+ * parameter for apiKey security
862
+ * @param name security name
863
+ */
864
+ apiKey;
865
+ /**
866
+ * parameter for basic security
867
+ */
868
+ username;
869
+ /**
870
+ * parameter for basic security
871
+ */
872
+ password;
873
+ /**
874
+ * parameter for oauth2 security
875
+ * @param name security name
876
+ * @param scopes oauth2 scope
877
+ */
878
+ accessToken;
879
+ /**
880
+ * parameter for aws4 signature security
881
+ * @param {Object} AWS4Signature - AWS4 Signature security
882
+ * @param {string} options.region - aws region
883
+ * @param {string} options.service - name of the service.
884
+ * @param {string} credentials.accessKeyId - aws access key id
885
+ * @param {string} credentials.secretAccessKey - aws access key
886
+ * @param {string} credentials.sessionToken - aws session token
887
+ * @memberof Configuration
888
+ */
889
+ awsv4;
890
+ /**
891
+ * override base path
892
+ */
893
+ basePath;
894
+ /**
895
+ * override server index
896
+ */
897
+ serverIndex;
898
+ /**
899
+ * base options for axios calls
900
+ */
901
+ baseOptions;
902
+ /**
903
+ * The FormData constructor that will be used to create multipart form data
904
+ * requests. You can inject this here so that execution environments that
905
+ * do not support the FormData class can still run the generated client.
906
+ *
907
+ * @type {new () => FormData}
908
+ */
909
+ formDataCtor;
910
+ constructor(param = {}) {
911
+ this.apiKey = param.apiKey;
912
+ this.username = param.username;
913
+ this.password = param.password;
914
+ this.accessToken = param.accessToken;
915
+ this.awsv4 = param.awsv4;
916
+ this.basePath = param.basePath;
917
+ this.serverIndex = param.serverIndex;
918
+ this.baseOptions = {
919
+ ...param.baseOptions,
920
+ headers: {
921
+ ...param.baseOptions?.headers
922
+ }
923
+ };
924
+ this.formDataCtor = param.formDataCtor;
925
+ }
926
+ /**
927
+ * Check if the given MIME is a JSON MIME.
928
+ * JSON MIME examples:
929
+ * application/json
930
+ * application/json; charset=UTF8
931
+ * APPLICATION/JSON
932
+ * application/vnd.company+json
933
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
934
+ * @return True if the given MIME is JSON, false otherwise.
935
+ */
936
+ isJsonMime(mime) {
937
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
938
+ return mime !== null && jsonMime.test(mime);
939
+ }
940
+ };
941
+
942
+ // src/api-model/models/cancellation.ts
943
+ var CancellationCancellationTypeEnum = {
944
+ SellerRejected: "SELLER_REJECTED",
945
+ MarketplaceCancelled: "MARKETPLACE_CANCELLED",
946
+ SystemCancelled: "SYSTEM_CANCELLED"
947
+ };
948
+
949
+ // src/api-model/models/charge.ts
950
+ var ChargeChargeTypeEnum = {
951
+ Product: "PRODUCT",
952
+ Shipping: "SHIPPING",
953
+ GiftWrap: "GIFT_WRAP",
954
+ Total: "TOTAL",
955
+ Other: "OTHER"
956
+ };
957
+
958
+ // src/api-model/models/custom-attribute-type.ts
959
+ var CustomAttributeType = {
960
+ String: "STRING",
961
+ Boolean: "BOOLEAN",
962
+ Integer: "INTEGER",
963
+ Double: "DOUBLE",
964
+ JsonString: "JSON_STRING"
965
+ };
966
+
967
+ // src/api-model/models/dimension.ts
968
+ var DimensionDimensionUnitEnum = {
969
+ Cm: "CM",
970
+ M: "M",
971
+ In: "IN"
972
+ };
973
+
974
+ // src/api-model/models/distance.ts
975
+ var DistanceDistanceUnitEnum = {
976
+ Mi: "MI",
977
+ Km: "KM"
978
+ };
979
+
980
+ // src/api-model/models/document.ts
981
+ var DocumentFormatEnum = {
982
+ Zpl: "ZPL",
983
+ Pdf: "PDF",
984
+ Png: "PNG",
985
+ PlainText: "PLAIN_TEXT"
986
+ };
987
+
988
+ // src/api-model/models/invoice-requirement.ts
989
+ var InvoiceRequirementRequirementEnum = {
990
+ Required: "REQUIRED",
991
+ NotRequired: "NOT_REQUIRED"
992
+ };
993
+ var InvoiceRequirementStatusEnum = {
994
+ Pending: "PENDING",
995
+ Available: "AVAILABLE",
996
+ NotAvailable: "NOT_AVAILABLE"
997
+ };
998
+
999
+ // src/api-model/models/line-item-with-reason.ts
1000
+ var LineItemWithReasonReasonEnum = {
1001
+ OutOfStock: "OUT_OF_STOCK",
1002
+ CustomerRequested: "CUSTOMER_REQUESTED"
1003
+ };
1004
+
1005
+ // src/api-model/models/marketplace-attributes.ts
1006
+ var MarketplaceAttributesCustomAttributesEnum = {
1007
+ Prime: "PRIME",
1008
+ Fasttrack: "FASTTRACK"
1009
+ };
1010
+
1011
+ // src/api-model/models/package.ts
1012
+ var PackageStatusEnum = {
1013
+ Created: "CREATED",
1014
+ PickupSlotRetrieved: "PICKUP_SLOT_RETRIEVED",
1015
+ InvoiceGenerated: "INVOICE_GENERATED",
1016
+ ShiplabelGenerated: "SHIPLABEL_GENERATED",
1017
+ Shipped: "SHIPPED",
1018
+ Delivered: "DELIVERED",
1019
+ Cancelled: "CANCELLED"
1020
+ };
1021
+ var PackagePackageHandlingRequirementsEnum = {
1022
+ Normal: "NORMAL",
1023
+ Fragile: "FRAGILE"
1024
+ };
1025
+
1026
+ // src/api-model/models/package-status.ts
1027
+ var PackageStatus = {
1028
+ Created: "CREATED",
1029
+ PickupSlotRetrieved: "PICKUP_SLOT_RETRIEVED",
1030
+ InvoiceGenerated: "INVOICE_GENERATED",
1031
+ ShiplabelGenerated: "SHIPLABEL_GENERATED",
1032
+ Shipped: "SHIPPED",
1033
+ Delivered: "DELIVERED"
1034
+ };
1035
+
1036
+ // src/api-model/models/package-sub-status.ts
1037
+ var PackageSubStatus = {
1038
+ OutForDelivery: "OUT_FOR_DELIVERY",
1039
+ Delivered: "DELIVERED",
1040
+ NotDelivered: "NOT_DELIVERED",
1041
+ Undeliverable: "UNDELIVERABLE"
1042
+ };
1043
+
1044
+ // src/api-model/models/packing-slip-requirement.ts
1045
+ var PackingSlipRequirementRequirementEnum = {
1046
+ Required: "REQUIRED",
1047
+ NotRequired: "NOT_REQUIRED"
1048
+ };
1049
+ var PackingSlipRequirementStatusEnum = {
1050
+ Generated: "GENERATED",
1051
+ NotGenerated: "NOT_GENERATED"
1052
+ };
1053
+
1054
+ // src/api-model/models/party-identification-info.ts
1055
+ var PartyIdentificationInfoPartyTypeEnum = {
1056
+ BillToParty: "BILL_TO_PARTY",
1057
+ ShipToParty: "SHIP_TO_PARTY",
1058
+ ShipFromParty: "SHIP_FROM_PARTY",
1059
+ SellingParty: "SELLING_PARTY"
1060
+ };
1061
+
1062
+ // src/api-model/models/piece-type.ts
1063
+ var PieceType = {
1064
+ Single: "SINGLE",
1065
+ Multiple: "MULTIPLE"
1066
+ };
1067
+
1068
+ // src/api-model/models/presence-status.ts
1069
+ var PresenceStatus = {
1070
+ Absent: "ABSENT",
1071
+ Present: "PRESENT"
1072
+ };
1073
+
1074
+ // src/api-model/models/priority.ts
1075
+ var Priority = {
1076
+ High: "HIGH",
1077
+ Low: "LOW"
1078
+ };
1079
+
1080
+ // src/api-model/models/requirement-level.ts
1081
+ var RequirementLevel = {
1082
+ Required: "REQUIRED",
1083
+ Disallowed: "DISALLOWED"
1084
+ };
1085
+
1086
+ // src/api-model/models/shipment.ts
1087
+ var ShipmentStatusEnum = {
1088
+ Created: "CREATED",
1089
+ Accepted: "ACCEPTED",
1090
+ Confirmed: "CONFIRMED",
1091
+ PackageCreated: "PACKAGE_CREATED",
1092
+ PickupSlotRetrieved: "PICKUP_SLOT_RETRIEVED",
1093
+ InvoiceGenerated: "INVOICE_GENERATED",
1094
+ ShiplabelGenerated: "SHIPLABEL_GENERATED",
1095
+ Cancelled: "CANCELLED",
1096
+ Shipped: "SHIPPED",
1097
+ Delivered: "DELIVERED"
1098
+ };
1099
+ var ShipmentSubStatusEnum = {
1100
+ PendingSchedule: "PENDING_SCHEDULE",
1101
+ PendingPickup: "PENDING_PICKUP",
1102
+ PendingDropOff: "PENDING_DROP_OFF",
1103
+ LabelCanceled: "LABEL_CANCELED",
1104
+ PickedUp: "PICKED_UP",
1105
+ DroppedOff: "DROPPED_OFF",
1106
+ AtOriginFc: "AT_ORIGIN_FC",
1107
+ AtDestinationFc: "AT_DESTINATION_FC",
1108
+ Delivered: "DELIVERED",
1109
+ NotDelivered: "NOT_DELIVERED",
1110
+ Undeliverable: "UNDELIVERABLE",
1111
+ Lost: "LOST",
1112
+ OutForDelivery: "OUT_FOR_DELIVERY",
1113
+ Damaged: "DAMAGED"
1114
+ };
1115
+
1116
+ // src/api-model/models/shipment-info.ts
1117
+ var ShipmentInfoShipmentTypeEnum = {
1118
+ New: "NEW",
1119
+ Exchange: "EXCHANGE",
1120
+ Replacement: "REPLACEMENT"
1121
+ };
1122
+ var ShipmentInfoProcessingSourceEnum = {
1123
+ ExternalPlatform: "EXTERNAL_PLATFORM",
1124
+ InternalPlatform: "INTERNAL_PLATFORM"
1125
+ };
1126
+ var ShipmentInfoPaymentMethodEnum = {
1127
+ CashOnDelivery: "CASH_ON_DELIVERY",
1128
+ Prepaid: "PREPAID"
1129
+ };
1130
+
1131
+ // src/api-model/models/shipping-info.ts
1132
+ var ShippingInfoShippingTypeEnum = {
1133
+ Marketplace: "MARKETPLACE",
1134
+ Self: "SELF"
1135
+ };
1136
+
1137
+ // src/api-model/models/shipping-options.ts
1138
+ var ShippingOptionsShipByEnum = {
1139
+ Marketplace: "MARKETPLACE",
1140
+ Seller: "SELLER",
1141
+ ThirdPartyCarrier: "THIRD_PARTY_CARRIER",
1142
+ Other: "OTHER"
1143
+ };
1144
+
1145
+ // src/api-model/models/status.ts
1146
+ var Status = {
1147
+ Success: "SUCCESS",
1148
+ Failure: "FAILURE"
1149
+ };
1150
+
1151
+ // src/api-model/models/tax.ts
1152
+ var TaxTypeEnum = {
1153
+ Vat: "VAT",
1154
+ Cst: "CST",
1155
+ Igst: "IGST",
1156
+ Sgst: "SGST",
1157
+ Cgst: "CGST",
1158
+ Utgst: "UTGST",
1159
+ Cess: "CESS",
1160
+ Other: "OTHER",
1161
+ Total: "TOTAL"
1162
+ };
1163
+
1164
+ // src/api-model/models/tax-registration-info.ts
1165
+ var TaxRegistrationInfoTypeEnum = {
1166
+ Vat: "VAT",
1167
+ Gst: "GST"
1168
+ };
1169
+
1170
+ // src/api-model/models/time-window.ts
1171
+ var TimeWindowHandoverMethodEnum = {
1172
+ Pickup: "PICKUP",
1173
+ Dropoff: "DROPOFF"
1174
+ };
1175
+
1176
+ // src/api-model/models/weight.ts
1177
+ var WeightWeightUnitEnum = {
1178
+ G: "G",
1179
+ Kg: "KG",
1180
+ Lb: "LB",
1181
+ Oz: "OZ"
1182
+ };
1183
+
1184
+ // src/client.ts
1185
+ var clientRateLimits = [];
1186
+ var ExternalFulfillmentShipmentsApiClient = class extends ExternalFulfillmentShipmentsApi {
1187
+ constructor(configuration) {
1188
+ const { axios, endpoint } = (0, import_common2.createAxiosInstance)(configuration, clientRateLimits);
1189
+ super(new Configuration(), endpoint, axios);
1190
+ }
1191
+ };
1192
+ // Annotate the CommonJS export names for ESM import in node:
1193
+ 0 && (module.exports = {
1194
+ CancellationCancellationTypeEnum,
1195
+ ChargeChargeTypeEnum,
1196
+ CustomAttributeType,
1197
+ DimensionDimensionUnitEnum,
1198
+ DistanceDistanceUnitEnum,
1199
+ DocumentFormatEnum,
1200
+ ExternalFulfillmentShipmentsApi,
1201
+ ExternalFulfillmentShipmentsApiAxiosParamCreator,
1202
+ ExternalFulfillmentShipmentsApiClient,
1203
+ ExternalFulfillmentShipmentsApiFactory,
1204
+ ExternalFulfillmentShipmentsApiFp,
1205
+ GenerateShipLabelsOperationEnum,
1206
+ GetShipmentsStatusEnum,
1207
+ InvoiceRequirementRequirementEnum,
1208
+ InvoiceRequirementStatusEnum,
1209
+ LineItemWithReasonReasonEnum,
1210
+ MarketplaceAttributesCustomAttributesEnum,
1211
+ PackagePackageHandlingRequirementsEnum,
1212
+ PackageStatus,
1213
+ PackageStatusEnum,
1214
+ PackageSubStatus,
1215
+ PackingSlipRequirementRequirementEnum,
1216
+ PackingSlipRequirementStatusEnum,
1217
+ PartyIdentificationInfoPartyTypeEnum,
1218
+ PieceType,
1219
+ PresenceStatus,
1220
+ Priority,
1221
+ ProcessShipmentOperationEnum,
1222
+ RequirementLevel,
1223
+ ShipmentInfoPaymentMethodEnum,
1224
+ ShipmentInfoProcessingSourceEnum,
1225
+ ShipmentInfoShipmentTypeEnum,
1226
+ ShipmentStatusEnum,
1227
+ ShipmentSubStatusEnum,
1228
+ ShippingInfoShippingTypeEnum,
1229
+ ShippingOptionsShipByEnum,
1230
+ Status,
1231
+ TaxRegistrationInfoTypeEnum,
1232
+ TaxTypeEnum,
1233
+ TimeWindowHandoverMethodEnum,
1234
+ UpdatePackageStatusStatusEnum,
1235
+ WeightWeightUnitEnum,
1236
+ clientRateLimits
1237
+ });
1238
+ //# sourceMappingURL=index.cjs.map