@sp-api-sdk/external-fulfillment-returns-api-2024-09-11 1.1.11 → 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 (71) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +461 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +707 -0
  5. package/dist/index.d.ts +707 -0
  6. package/dist/index.js +414 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/external-fulfillment-returns-api.js +0 -259
  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/error-list.js +0 -15
  16. package/dist/cjs/api-model/models/index.js +0 -28
  17. package/dist/cjs/api-model/models/invoice-information.js +0 -15
  18. package/dist/cjs/api-model/models/marketplace-channel-details.js +0 -15
  19. package/dist/cjs/api-model/models/marketplace-channel.js +0 -15
  20. package/dist/cjs/api-model/models/model-error.js +0 -15
  21. package/dist/cjs/api-model/models/otp-details.js +0 -15
  22. package/dist/cjs/api-model/models/replanning-details.js +0 -15
  23. package/dist/cjs/api-model/models/return-metadata.js +0 -15
  24. package/dist/cjs/api-model/models/return-shipping-info.js +0 -15
  25. package/dist/cjs/api-model/models/return.js +0 -46
  26. package/dist/cjs/api-model/models/returns-response.js +0 -15
  27. package/dist/cjs/api-model/models/tracking-info.js +0 -15
  28. package/dist/cjs/client.js +0 -13
  29. package/dist/cjs/index.js +0 -19
  30. package/dist/es/api-model/api/external-fulfillment-returns-api.js +0 -249
  31. package/dist/es/api-model/api.js +0 -14
  32. package/dist/es/api-model/base.js +0 -44
  33. package/dist/es/api-model/common.js +0 -110
  34. package/dist/es/api-model/configuration.js +0 -94
  35. package/dist/es/api-model/index.js +0 -16
  36. package/dist/es/api-model/models/error-list.js +0 -14
  37. package/dist/es/api-model/models/index.js +0 -12
  38. package/dist/es/api-model/models/invoice-information.js +0 -14
  39. package/dist/es/api-model/models/marketplace-channel-details.js +0 -14
  40. package/dist/es/api-model/models/marketplace-channel.js +0 -14
  41. package/dist/es/api-model/models/model-error.js +0 -14
  42. package/dist/es/api-model/models/otp-details.js +0 -14
  43. package/dist/es/api-model/models/replanning-details.js +0 -14
  44. package/dist/es/api-model/models/return-metadata.js +0 -14
  45. package/dist/es/api-model/models/return-shipping-info.js +0 -14
  46. package/dist/es/api-model/models/return.js +0 -43
  47. package/dist/es/api-model/models/returns-response.js +0 -14
  48. package/dist/es/api-model/models/tracking-info.js +0 -14
  49. package/dist/es/client.js +0 -9
  50. package/dist/es/index.js +0 -3
  51. package/dist/types/api-model/api/external-fulfillment-returns-api.d.ts +0 -195
  52. package/dist/types/api-model/api.d.ts +0 -12
  53. package/dist/types/api-model/base.d.ts +0 -42
  54. package/dist/types/api-model/common.d.ts +0 -34
  55. package/dist/types/api-model/configuration.d.ts +0 -98
  56. package/dist/types/api-model/index.d.ts +0 -14
  57. package/dist/types/api-model/models/error-list.d.ts +0 -20
  58. package/dist/types/api-model/models/index.d.ts +0 -12
  59. package/dist/types/api-model/models/invoice-information.d.ts +0 -20
  60. package/dist/types/api-model/models/marketplace-channel-details.d.ts +0 -42
  61. package/dist/types/api-model/models/marketplace-channel.d.ts +0 -24
  62. package/dist/types/api-model/models/model-error.d.ts +0 -28
  63. package/dist/types/api-model/models/otp-details.d.ts +0 -24
  64. package/dist/types/api-model/models/replanning-details.d.ts +0 -21
  65. package/dist/types/api-model/models/return-metadata.d.ts +0 -30
  66. package/dist/types/api-model/models/return-shipping-info.d.ts +0 -27
  67. package/dist/types/api-model/models/return.d.ts +0 -104
  68. package/dist/types/api-model/models/returns-response.d.ts +0 -25
  69. package/dist/types/api-model/models/tracking-info.d.ts +0 -24
  70. package/dist/types/client.d.ts +0 -6
  71. package/dist/types/index.d.ts +0 -3
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # `external-fulfillment-returns-api-2024-09-11`
1
+ # `@sp-api-sdk/external-fulfillment-returns-api-2024-09-11`
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@sp-api-sdk/external-fulfillment-returns-api-2024-09-11)](https://www.npmjs.com/package/@sp-api-sdk/external-fulfillment-returns-api-2024-09-11)
4
4
  [![XO code style](https://img.shields.io/badge/code_style-xo-cyan)](https://github.com/xojs/xo)
@@ -25,10 +25,10 @@ npm install @sp-api-sdk/external-fulfillment-returns-api-2024-09-11
25
25
  import {SellingPartnerApiAuth} from '@sp-api-sdk/auth'
26
26
  import {ExternalFulfillmentReturnsApiClient} from '@sp-api-sdk/external-fulfillment-returns-api-2024-09-11'
27
27
 
28
+ // `clientId` and `clientSecret` default to the `LWA_CLIENT_ID` and
29
+ // `LWA_CLIENT_SECRET` environment variables.
28
30
  const auth = new SellingPartnerApiAuth({
29
- clientId: process.env.LWA_CLIENT_ID,
30
- clientSecret: process.env.LWA_CLIENT_SECRET,
31
- refreshToken: 'Atzr|…',
31
+ refreshToken: await getRefreshTokenForSeller(sellerId),
32
32
  })
33
33
 
34
34
  const client = new ExternalFulfillmentReturnsApiClient({
package/dist/index.cjs ADDED
@@ -0,0 +1,461 @@
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
+ ExternalFulfillmentReturnsApi: () => ExternalFulfillmentReturnsApi,
34
+ ExternalFulfillmentReturnsApiAxiosParamCreator: () => ExternalFulfillmentReturnsApiAxiosParamCreator,
35
+ ExternalFulfillmentReturnsApiClient: () => ExternalFulfillmentReturnsApiClient,
36
+ ExternalFulfillmentReturnsApiFactory: () => ExternalFulfillmentReturnsApiFactory,
37
+ ExternalFulfillmentReturnsApiFp: () => ExternalFulfillmentReturnsApiFp,
38
+ ListReturnsStatusEnum: () => ListReturnsStatusEnum,
39
+ ReturnPackageDeliveryModeEnum: () => ReturnPackageDeliveryModeEnum,
40
+ ReturnReturnSubTypeEnum: () => ReturnReturnSubTypeEnum,
41
+ ReturnReturnTypeEnum: () => ReturnReturnTypeEnum,
42
+ ReturnStatusEnum: () => ReturnStatusEnum,
43
+ clientRateLimits: () => clientRateLimits
44
+ });
45
+ module.exports = __toCommonJS(index_exports);
46
+
47
+ // src/client.ts
48
+ var import_common2 = require("@sp-api-sdk/common");
49
+
50
+ // src/api-model/api/external-fulfillment-returns-api.ts
51
+ var import_axios2 = __toESM(require("axios"), 1);
52
+
53
+ // src/api-model/base.ts
54
+ var import_axios = __toESM(require("axios"), 1);
55
+ var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
56
+ var BaseAPI = class {
57
+ constructor(configuration, basePath = BASE_PATH, axios = import_axios.default) {
58
+ this.basePath = basePath;
59
+ this.axios = axios;
60
+ if (configuration) {
61
+ this.configuration = configuration;
62
+ this.basePath = configuration.basePath ?? basePath;
63
+ }
64
+ }
65
+ basePath;
66
+ axios;
67
+ configuration;
68
+ };
69
+ var RequiredError = class extends Error {
70
+ constructor(field, msg) {
71
+ super(msg);
72
+ this.field = field;
73
+ this.name = "RequiredError";
74
+ }
75
+ field;
76
+ };
77
+ var operationServerMap = {};
78
+
79
+ // src/api-model/common.ts
80
+ var DUMMY_BASE_URL = "https://example.com";
81
+ var assertParamExists = function(functionName, paramName, paramValue) {
82
+ if (paramValue === null || paramValue === void 0) {
83
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
84
+ }
85
+ };
86
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
87
+ if (parameter == null) return;
88
+ if (typeof parameter === "object") {
89
+ if (Array.isArray(parameter) || parameter instanceof Set) {
90
+ parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
91
+ } else {
92
+ Object.keys(parameter).forEach(
93
+ (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
94
+ );
95
+ }
96
+ } else {
97
+ if (urlSearchParams.has(key)) {
98
+ urlSearchParams.append(key, parameter);
99
+ } else {
100
+ urlSearchParams.set(key, parameter);
101
+ }
102
+ }
103
+ }
104
+ var setSearchParams = function(url, ...objects) {
105
+ const searchParams = new URLSearchParams(url.search);
106
+ setFlattenedQueryParams(searchParams, objects);
107
+ url.search = searchParams.toString();
108
+ };
109
+ var toPathString = function(url) {
110
+ return url.pathname + url.search + url.hash;
111
+ };
112
+ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
113
+ return (axios = globalAxios3, basePath = BASE_PATH2) => {
114
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
115
+ return axios.request(axiosRequestArgs);
116
+ };
117
+ };
118
+
119
+ // src/api-model/api/external-fulfillment-returns-api.ts
120
+ var ExternalFulfillmentReturnsApiAxiosParamCreator = function(configuration) {
121
+ return {
122
+ /**
123
+ * Retrieve the return item with the specified ID.
124
+ * @param {string} returnId The ID of the return item you want.
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ getReturn: async (returnId, options = {}) => {
129
+ assertParamExists("getReturn", "returnId", returnId);
130
+ const localVarPath = `/externalFulfillment/2024-09-11/returns/{returnId}`.replace("{returnId}", encodeURIComponent(String(returnId)));
131
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
132
+ let baseOptions;
133
+ if (configuration) {
134
+ baseOptions = configuration.baseOptions;
135
+ }
136
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
137
+ const localVarHeaderParameter = {};
138
+ const localVarQueryParameter = {};
139
+ localVarHeaderParameter["Accept"] = "application/json";
140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
143
+ return {
144
+ url: toPathString(localVarUrlObj),
145
+ options: localVarRequestOptions
146
+ };
147
+ },
148
+ /**
149
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
150
+ * @param {string} [returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
151
+ * @param {string} [rmaId] The RMA ID of the return items you want to list.
152
+ * @param {ListReturnsStatusEnum} [status] The status of return items you want to list. You can retrieve all new return items with the `CREATED` status.
153
+ * @param {string} [reverseTrackingId] The reverse tracking ID of the return items you want to list.
154
+ * @param {string} [createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
155
+ * @param {string} [createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
156
+ * @param {string} [lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply `returnLocationId` and `status`.
157
+ * @param {string} [lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply `returnLocationId` and `status`.
158
+ * @param {string} [lastUpdatedAfter] DEPRECATED. Use the `createdSince` parameter.
159
+ * @param {string} [lastUpdatedBefore] DEPRECATED. Use the `createdUntil` parameter.
160
+ * @param {number} [maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
161
+ * @param {string} [nextToken] 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.
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ listReturns: async (returnLocationId, rmaId, status, reverseTrackingId, createdSince, createdUntil, lastUpdatedSince, lastUpdatedUntil, lastUpdatedAfter, lastUpdatedBefore, maxResults, nextToken, options = {}) => {
166
+ const localVarPath = `/externalFulfillment/2024-09-11/returns`;
167
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
168
+ let baseOptions;
169
+ if (configuration) {
170
+ baseOptions = configuration.baseOptions;
171
+ }
172
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
173
+ const localVarHeaderParameter = {};
174
+ const localVarQueryParameter = {};
175
+ if (returnLocationId !== void 0) {
176
+ localVarQueryParameter["returnLocationId"] = returnLocationId;
177
+ }
178
+ if (rmaId !== void 0) {
179
+ localVarQueryParameter["rmaId"] = rmaId;
180
+ }
181
+ if (status !== void 0) {
182
+ localVarQueryParameter["status"] = status;
183
+ }
184
+ if (reverseTrackingId !== void 0) {
185
+ localVarQueryParameter["reverseTrackingId"] = reverseTrackingId;
186
+ }
187
+ if (createdSince !== void 0) {
188
+ localVarQueryParameter["createdSince"] = createdSince instanceof Date ? createdSince.toISOString() : createdSince;
189
+ }
190
+ if (createdUntil !== void 0) {
191
+ localVarQueryParameter["createdUntil"] = createdUntil instanceof Date ? createdUntil.toISOString() : createdUntil;
192
+ }
193
+ if (lastUpdatedSince !== void 0) {
194
+ localVarQueryParameter["lastUpdatedSince"] = lastUpdatedSince instanceof Date ? lastUpdatedSince.toISOString() : lastUpdatedSince;
195
+ }
196
+ if (lastUpdatedUntil !== void 0) {
197
+ localVarQueryParameter["lastUpdatedUntil"] = lastUpdatedUntil instanceof Date ? lastUpdatedUntil.toISOString() : lastUpdatedUntil;
198
+ }
199
+ if (lastUpdatedAfter !== void 0) {
200
+ localVarQueryParameter["lastUpdatedAfter"] = lastUpdatedAfter instanceof Date ? lastUpdatedAfter.toISOString() : lastUpdatedAfter;
201
+ }
202
+ if (lastUpdatedBefore !== void 0) {
203
+ localVarQueryParameter["lastUpdatedBefore"] = lastUpdatedBefore instanceof Date ? lastUpdatedBefore.toISOString() : lastUpdatedBefore;
204
+ }
205
+ if (maxResults !== void 0) {
206
+ localVarQueryParameter["maxResults"] = maxResults;
207
+ }
208
+ if (nextToken !== void 0) {
209
+ localVarQueryParameter["nextToken"] = nextToken;
210
+ }
211
+ localVarHeaderParameter["Accept"] = "application/json";
212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
215
+ return {
216
+ url: toPathString(localVarUrlObj),
217
+ options: localVarRequestOptions
218
+ };
219
+ }
220
+ };
221
+ };
222
+ var ExternalFulfillmentReturnsApiFp = function(configuration) {
223
+ const localVarAxiosParamCreator = ExternalFulfillmentReturnsApiAxiosParamCreator(configuration);
224
+ return {
225
+ /**
226
+ * Retrieve the return item with the specified ID.
227
+ * @param {string} returnId The ID of the return item you want.
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ async getReturn(returnId, options) {
232
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReturn(returnId, options);
233
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
234
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentReturnsApi.getReturn"]?.[localVarOperationServerIndex]?.url;
235
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
236
+ },
237
+ /**
238
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
239
+ * @param {string} [returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
240
+ * @param {string} [rmaId] The RMA ID of the return items you want to list.
241
+ * @param {ListReturnsStatusEnum} [status] The status of return items you want to list. You can retrieve all new return items with the `CREATED` status.
242
+ * @param {string} [reverseTrackingId] The reverse tracking ID of the return items you want to list.
243
+ * @param {string} [createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
244
+ * @param {string} [createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
245
+ * @param {string} [lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply `returnLocationId` and `status`.
246
+ * @param {string} [lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply `returnLocationId` and `status`.
247
+ * @param {string} [lastUpdatedAfter] DEPRECATED. Use the `createdSince` parameter.
248
+ * @param {string} [lastUpdatedBefore] DEPRECATED. Use the `createdUntil` parameter.
249
+ * @param {number} [maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
250
+ * @param {string} [nextToken] 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.
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ async listReturns(returnLocationId, rmaId, status, reverseTrackingId, createdSince, createdUntil, lastUpdatedSince, lastUpdatedUntil, lastUpdatedAfter, lastUpdatedBefore, maxResults, nextToken, options) {
255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReturns(returnLocationId, rmaId, status, reverseTrackingId, createdSince, createdUntil, lastUpdatedSince, lastUpdatedUntil, lastUpdatedAfter, lastUpdatedBefore, maxResults, nextToken, options);
256
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
257
+ const localVarOperationServerBasePath = operationServerMap["ExternalFulfillmentReturnsApi.listReturns"]?.[localVarOperationServerIndex]?.url;
258
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
259
+ }
260
+ };
261
+ };
262
+ var ExternalFulfillmentReturnsApiFactory = function(configuration, basePath, axios) {
263
+ const localVarFp = ExternalFulfillmentReturnsApiFp(configuration);
264
+ return {
265
+ /**
266
+ * Retrieve the return item with the specified ID.
267
+ * @param {ExternalFulfillmentReturnsApiGetReturnRequest} requestParameters Request parameters.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ getReturn(requestParameters, options) {
272
+ return localVarFp.getReturn(requestParameters.returnId, options).then((request) => request(axios, basePath));
273
+ },
274
+ /**
275
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
276
+ * @param {ExternalFulfillmentReturnsApiListReturnsRequest} requestParameters Request parameters.
277
+ * @param {*} [options] Override http request option.
278
+ * @throws {RequiredError}
279
+ */
280
+ listReturns(requestParameters = {}, options) {
281
+ return localVarFp.listReturns(requestParameters.returnLocationId, requestParameters.rmaId, requestParameters.status, requestParameters.reverseTrackingId, requestParameters.createdSince, requestParameters.createdUntil, requestParameters.lastUpdatedSince, requestParameters.lastUpdatedUntil, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
282
+ }
283
+ };
284
+ };
285
+ var ExternalFulfillmentReturnsApi = class extends BaseAPI {
286
+ /**
287
+ * Retrieve the return item with the specified ID.
288
+ * @param {ExternalFulfillmentReturnsApiGetReturnRequest} requestParameters Request parameters.
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ getReturn(requestParameters, options) {
293
+ return ExternalFulfillmentReturnsApiFp(this.configuration).getReturn(requestParameters.returnId, options).then((request) => request(this.axios, this.basePath));
294
+ }
295
+ /**
296
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
297
+ * @param {ExternalFulfillmentReturnsApiListReturnsRequest} requestParameters Request parameters.
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ listReturns(requestParameters = {}, options) {
302
+ return ExternalFulfillmentReturnsApiFp(this.configuration).listReturns(requestParameters.returnLocationId, requestParameters.rmaId, requestParameters.status, requestParameters.reverseTrackingId, requestParameters.createdSince, requestParameters.createdUntil, requestParameters.lastUpdatedSince, requestParameters.lastUpdatedUntil, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
303
+ }
304
+ };
305
+ var ListReturnsStatusEnum = {
306
+ Created: "CREATED",
307
+ CarrierNotifiedToPickUpFromCustomer: "CARRIER_NOTIFIED_TO_PICK_UP_FROM_CUSTOMER",
308
+ CarrierOutForPickUpFromCustomer: "CARRIER_OUT_FOR_PICK_UP_FROM_CUSTOMER",
309
+ CustomerCancelledPickUp: "CUSTOMER_CANCELLED_PICK_UP",
310
+ CustomerRescheduledPickUp: "CUSTOMER_RESCHEDULED_PICK_UP",
311
+ PickedFromCustomer: "PICKED_FROM_CUSTOMER",
312
+ InTransit: "IN_TRANSIT",
313
+ OutForDelivery: "OUT_FOR_DELIVERY",
314
+ Delivered: "DELIVERED",
315
+ Replanned: "REPLANNED",
316
+ CustomerDroppedOff: "CUSTOMER_DROPPED_OFF",
317
+ PartiallyProcessed: "PARTIALLY_PROCESSED",
318
+ Processed: "PROCESSED",
319
+ Rejected: "REJECTED",
320
+ Cancelled: "CANCELLED"
321
+ };
322
+
323
+ // src/api-model/configuration.ts
324
+ var Configuration = class {
325
+ /**
326
+ * parameter for apiKey security
327
+ * @param name security name
328
+ */
329
+ apiKey;
330
+ /**
331
+ * parameter for basic security
332
+ */
333
+ username;
334
+ /**
335
+ * parameter for basic security
336
+ */
337
+ password;
338
+ /**
339
+ * parameter for oauth2 security
340
+ * @param name security name
341
+ * @param scopes oauth2 scope
342
+ */
343
+ accessToken;
344
+ /**
345
+ * parameter for aws4 signature security
346
+ * @param {Object} AWS4Signature - AWS4 Signature security
347
+ * @param {string} options.region - aws region
348
+ * @param {string} options.service - name of the service.
349
+ * @param {string} credentials.accessKeyId - aws access key id
350
+ * @param {string} credentials.secretAccessKey - aws access key
351
+ * @param {string} credentials.sessionToken - aws session token
352
+ * @memberof Configuration
353
+ */
354
+ awsv4;
355
+ /**
356
+ * override base path
357
+ */
358
+ basePath;
359
+ /**
360
+ * override server index
361
+ */
362
+ serverIndex;
363
+ /**
364
+ * base options for axios calls
365
+ */
366
+ baseOptions;
367
+ /**
368
+ * The FormData constructor that will be used to create multipart form data
369
+ * requests. You can inject this here so that execution environments that
370
+ * do not support the FormData class can still run the generated client.
371
+ *
372
+ * @type {new () => FormData}
373
+ */
374
+ formDataCtor;
375
+ constructor(param = {}) {
376
+ this.apiKey = param.apiKey;
377
+ this.username = param.username;
378
+ this.password = param.password;
379
+ this.accessToken = param.accessToken;
380
+ this.awsv4 = param.awsv4;
381
+ this.basePath = param.basePath;
382
+ this.serverIndex = param.serverIndex;
383
+ this.baseOptions = {
384
+ ...param.baseOptions,
385
+ headers: {
386
+ ...param.baseOptions?.headers
387
+ }
388
+ };
389
+ this.formDataCtor = param.formDataCtor;
390
+ }
391
+ /**
392
+ * Check if the given MIME is a JSON MIME.
393
+ * JSON MIME examples:
394
+ * application/json
395
+ * application/json; charset=UTF8
396
+ * APPLICATION/JSON
397
+ * application/vnd.company+json
398
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
399
+ * @return True if the given MIME is JSON, false otherwise.
400
+ */
401
+ isJsonMime(mime) {
402
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
403
+ return mime !== null && jsonMime.test(mime);
404
+ }
405
+ };
406
+
407
+ // src/api-model/models/return.ts
408
+ var ReturnReturnTypeEnum = {
409
+ Customer: "CUSTOMER",
410
+ Reject: "REJECT"
411
+ };
412
+ var ReturnReturnSubTypeEnum = {
413
+ Normal: "NORMAL",
414
+ Replacement: "REPLACEMENT",
415
+ Exchange: "EXCHANGE"
416
+ };
417
+ var ReturnStatusEnum = {
418
+ Created: "CREATED",
419
+ CarrierNotifiedToPickUpFromCustomer: "CARRIER_NOTIFIED_TO_PICK_UP_FROM_CUSTOMER",
420
+ CarrierOutForPickUpFromCustomer: "CARRIER_OUT_FOR_PICK_UP_FROM_CUSTOMER",
421
+ CustomerCancelledPickUp: "CUSTOMER_CANCELLED_PICK_UP",
422
+ CustomerRescheduledPickUp: "CUSTOMER_RESCHEDULED_PICK_UP",
423
+ PickedFromCustomer: "PICKED_FROM_CUSTOMER",
424
+ InTransit: "IN_TRANSIT",
425
+ OutForDelivery: "OUT_FOR_DELIVERY",
426
+ Delivered: "DELIVERED",
427
+ Replanned: "REPLANNED",
428
+ CustomerDroppedOff: "CUSTOMER_DROPPED_OFF",
429
+ PartiallyProcessed: "PARTIALLY_PROCESSED",
430
+ Processed: "PROCESSED",
431
+ Rejected: "REJECTED",
432
+ Cancelled: "CANCELLED"
433
+ };
434
+ var ReturnPackageDeliveryModeEnum = {
435
+ WithOtp: "WITH_OTP",
436
+ WithoutOtp: "WITHOUT_OTP"
437
+ };
438
+
439
+ // src/client.ts
440
+ var clientRateLimits = [];
441
+ var ExternalFulfillmentReturnsApiClient = class extends ExternalFulfillmentReturnsApi {
442
+ constructor(configuration) {
443
+ const { axios, endpoint } = (0, import_common2.createAxiosInstance)(configuration, clientRateLimits);
444
+ super(new Configuration(), endpoint, axios);
445
+ }
446
+ };
447
+ // Annotate the CommonJS export names for ESM import in node:
448
+ 0 && (module.exports = {
449
+ ExternalFulfillmentReturnsApi,
450
+ ExternalFulfillmentReturnsApiAxiosParamCreator,
451
+ ExternalFulfillmentReturnsApiClient,
452
+ ExternalFulfillmentReturnsApiFactory,
453
+ ExternalFulfillmentReturnsApiFp,
454
+ ListReturnsStatusEnum,
455
+ ReturnPackageDeliveryModeEnum,
456
+ ReturnReturnSubTypeEnum,
457
+ ReturnReturnTypeEnum,
458
+ ReturnStatusEnum,
459
+ clientRateLimits
460
+ });
461
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/client.ts","../src/api-model/api/external-fulfillment-returns-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts","../src/api-model/models/return.ts"],"sourcesContent":["export * from './client.js'\nexport * from './api-model/api.js'\nexport * from './api-model/models/index.js'\n","import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, ExternalFulfillmentReturnsApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = []\n\nexport class ExternalFulfillmentReturnsApiClient extends ExternalFulfillmentReturnsApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Amazon External Fulfillment Return Item Processing\n * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\\'s External Fulfillment returns management system.\n *\n * The version of the OpenAPI document: 2024-09-11\n * Contact: marketplaceapitest@amazon.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { Return } from '../models/index.js';\n// @ts-ignore\nimport type { ReturnsResponse } from '../models/index.js';\n/**\n * ExternalFulfillmentReturnsApi - axios parameter creator\n */\nexport const ExternalFulfillmentReturnsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Retrieve the return item with the specified ID.\n * @param {string} returnId The ID of the return item you want.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getReturn: async (returnId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'returnId' is not null or undefined\n assertParamExists('getReturn', 'returnId', returnId)\n const localVarPath = `/externalFulfillment/2024-09-11/returns/{returnId}`\n .replace('{returnId}', encodeURIComponent(String(returnId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.\n * @param {string} [returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.\n * @param {string} [rmaId] The RMA ID of the return items you want to list.\n * @param {ListReturnsStatusEnum} [status] The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.\n * @param {string} [reverseTrackingId] The reverse tracking ID of the return items you want to list.\n * @param {string} [createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.\n * @param {string} [createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.\n * @param {string} [lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.\n * @param {string} [lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.\n * @param {string} [lastUpdatedAfter] DEPRECATED. Use the &#x60;createdSince&#x60; parameter.\n * @param {string} [lastUpdatedBefore] DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.\n * @param {number} [maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100\n * @param {string} [nextToken] A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; 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 &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listReturns: async (returnLocationId?: string, rmaId?: string, status?: ListReturnsStatusEnum, reverseTrackingId?: string, createdSince?: string, createdUntil?: string, lastUpdatedSince?: string, lastUpdatedUntil?: string, lastUpdatedAfter?: string, lastUpdatedBefore?: string, maxResults?: number, nextToken?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/externalFulfillment/2024-09-11/returns`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (returnLocationId !== undefined) {\n localVarQueryParameter['returnLocationId'] = returnLocationId;\n }\n\n if (rmaId !== undefined) {\n localVarQueryParameter['rmaId'] = rmaId;\n }\n\n if (status !== undefined) {\n localVarQueryParameter['status'] = status;\n }\n\n if (reverseTrackingId !== undefined) {\n localVarQueryParameter['reverseTrackingId'] = reverseTrackingId;\n }\n\n if (createdSince !== undefined) {\n localVarQueryParameter['createdSince'] = (createdSince as any instanceof Date) ?\n (createdSince as any).toISOString() :\n createdSince;\n }\n\n if (createdUntil !== undefined) {\n localVarQueryParameter['createdUntil'] = (createdUntil as any instanceof Date) ?\n (createdUntil as any).toISOString() :\n createdUntil;\n }\n\n if (lastUpdatedSince !== undefined) {\n localVarQueryParameter['lastUpdatedSince'] = (lastUpdatedSince as any instanceof Date) ?\n (lastUpdatedSince as any).toISOString() :\n lastUpdatedSince;\n }\n\n if (lastUpdatedUntil !== undefined) {\n localVarQueryParameter['lastUpdatedUntil'] = (lastUpdatedUntil as any instanceof Date) ?\n (lastUpdatedUntil as any).toISOString() :\n lastUpdatedUntil;\n }\n\n if (lastUpdatedAfter !== undefined) {\n localVarQueryParameter['lastUpdatedAfter'] = (lastUpdatedAfter as any instanceof Date) ?\n (lastUpdatedAfter as any).toISOString() :\n lastUpdatedAfter;\n }\n\n if (lastUpdatedBefore !== undefined) {\n localVarQueryParameter['lastUpdatedBefore'] = (lastUpdatedBefore as any instanceof Date) ?\n (lastUpdatedBefore as any).toISOString() :\n lastUpdatedBefore;\n }\n\n if (maxResults !== undefined) {\n localVarQueryParameter['maxResults'] = maxResults;\n }\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ExternalFulfillmentReturnsApi - functional programming interface\n */\nexport const ExternalFulfillmentReturnsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ExternalFulfillmentReturnsApiAxiosParamCreator(configuration)\n return {\n /**\n * Retrieve the return item with the specified ID.\n * @param {string} returnId The ID of the return item you want.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getReturn(returnId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Return>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getReturn(returnId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ExternalFulfillmentReturnsApi.getReturn']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.\n * @param {string} [returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.\n * @param {string} [rmaId] The RMA ID of the return items you want to list.\n * @param {ListReturnsStatusEnum} [status] The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.\n * @param {string} [reverseTrackingId] The reverse tracking ID of the return items you want to list.\n * @param {string} [createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.\n * @param {string} [createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.\n * @param {string} [lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.\n * @param {string} [lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.\n * @param {string} [lastUpdatedAfter] DEPRECATED. Use the &#x60;createdSince&#x60; parameter.\n * @param {string} [lastUpdatedBefore] DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.\n * @param {number} [maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100\n * @param {string} [nextToken] A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; 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 &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listReturns(returnLocationId?: string, rmaId?: string, status?: ListReturnsStatusEnum, reverseTrackingId?: string, createdSince?: string, createdUntil?: string, lastUpdatedSince?: string, lastUpdatedUntil?: string, lastUpdatedAfter?: string, lastUpdatedBefore?: string, maxResults?: number, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReturnsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listReturns(returnLocationId, rmaId, status, reverseTrackingId, createdSince, createdUntil, lastUpdatedSince, lastUpdatedUntil, lastUpdatedAfter, lastUpdatedBefore, maxResults, nextToken, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ExternalFulfillmentReturnsApi.listReturns']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ExternalFulfillmentReturnsApi - factory interface\n */\nexport const ExternalFulfillmentReturnsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ExternalFulfillmentReturnsApiFp(configuration)\n return {\n /**\n * Retrieve the return item with the specified ID.\n * @param {ExternalFulfillmentReturnsApiGetReturnRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getReturn(requestParameters: ExternalFulfillmentReturnsApiGetReturnRequest, options?: RawAxiosRequestConfig): AxiosPromise<Return> {\n return localVarFp.getReturn(requestParameters.returnId, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.\n * @param {ExternalFulfillmentReturnsApiListReturnsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listReturns(requestParameters: ExternalFulfillmentReturnsApiListReturnsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ReturnsResponse> {\n return localVarFp.listReturns(requestParameters.returnLocationId, requestParameters.rmaId, requestParameters.status, requestParameters.reverseTrackingId, requestParameters.createdSince, requestParameters.createdUntil, requestParameters.lastUpdatedSince, requestParameters.lastUpdatedUntil, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for getReturn operation in ExternalFulfillmentReturnsApi.\n */\nexport interface ExternalFulfillmentReturnsApiGetReturnRequest {\n /**\n * The ID of the return item you want.\n */\n readonly returnId: string\n}\n\n/**\n * Request parameters for listReturns operation in ExternalFulfillmentReturnsApi.\n */\nexport interface ExternalFulfillmentReturnsApiListReturnsRequest {\n /**\n * The SmartConnect location ID of the location from which you want to retrieve return items.\n */\n readonly returnLocationId?: string\n\n /**\n * The RMA ID of the return items you want to list.\n */\n readonly rmaId?: string\n\n /**\n * The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.\n */\n readonly status?: ListReturnsStatusEnum\n\n /**\n * The reverse tracking ID of the return items you want to list.\n */\n readonly reverseTrackingId?: string\n\n /**\n * Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.\n */\n readonly createdSince?: string\n\n /**\n * Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.\n */\n readonly createdUntil?: string\n\n /**\n * Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.\n */\n readonly lastUpdatedSince?: string\n\n /**\n * Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.\n */\n readonly lastUpdatedUntil?: string\n\n /**\n * DEPRECATED. Use the &#x60;createdSince&#x60; parameter.\n */\n readonly lastUpdatedAfter?: string\n\n /**\n * DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.\n */\n readonly lastUpdatedBefore?: string\n\n /**\n * The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100\n */\n readonly maxResults?: number\n\n /**\n * A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; 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 &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.\n */\n readonly nextToken?: string\n}\n\n/**\n * ExternalFulfillmentReturnsApi - object-oriented interface\n */\nexport class ExternalFulfillmentReturnsApi extends BaseAPI {\n /**\n * Retrieve the return item with the specified ID.\n * @param {ExternalFulfillmentReturnsApiGetReturnRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getReturn(requestParameters: ExternalFulfillmentReturnsApiGetReturnRequest, options?: RawAxiosRequestConfig) {\n return ExternalFulfillmentReturnsApiFp(this.configuration).getReturn(requestParameters.returnId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.\n * @param {ExternalFulfillmentReturnsApiListReturnsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public listReturns(requestParameters: ExternalFulfillmentReturnsApiListReturnsRequest = {}, options?: RawAxiosRequestConfig) {\n return ExternalFulfillmentReturnsApiFp(this.configuration).listReturns(requestParameters.returnLocationId, requestParameters.rmaId, requestParameters.status, requestParameters.reverseTrackingId, requestParameters.createdSince, requestParameters.createdUntil, requestParameters.lastUpdatedSince, requestParameters.lastUpdatedUntil, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\nexport const ListReturnsStatusEnum = {\n Created: 'CREATED',\n CarrierNotifiedToPickUpFromCustomer: 'CARRIER_NOTIFIED_TO_PICK_UP_FROM_CUSTOMER',\n CarrierOutForPickUpFromCustomer: 'CARRIER_OUT_FOR_PICK_UP_FROM_CUSTOMER',\n CustomerCancelledPickUp: 'CUSTOMER_CANCELLED_PICK_UP',\n CustomerRescheduledPickUp: 'CUSTOMER_RESCHEDULED_PICK_UP',\n PickedFromCustomer: 'PICKED_FROM_CUSTOMER',\n InTransit: 'IN_TRANSIT',\n OutForDelivery: 'OUT_FOR_DELIVERY',\n Delivered: 'DELIVERED',\n Replanned: 'REPLANNED',\n CustomerDroppedOff: 'CUSTOMER_DROPPED_OFF',\n PartiallyProcessed: 'PARTIALLY_PROCESSED',\n Processed: 'PROCESSED',\n Rejected: 'REJECTED',\n Cancelled: 'CANCELLED',\n} as const;\nexport type ListReturnsStatusEnum = typeof ListReturnsStatusEnum[keyof typeof ListReturnsStatusEnum];\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Amazon External Fulfillment Return Item Processing\n * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\\'s External Fulfillment returns management system.\n *\n * The version of the OpenAPI document: 2024-09-11\n * Contact: marketplaceapitest@amazon.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Amazon External Fulfillment Return Item Processing\n * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\\'s External Fulfillment returns management system.\n *\n * The version of the OpenAPI document: 2024-09-11\n * Contact: marketplaceapitest@amazon.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * The Selling Partner API for Amazon External Fulfillment Return Item Processing\n * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\\'s External Fulfillment returns management system.\n *\n * The version of the OpenAPI document: 2024-09-11\n * Contact: marketplaceapitest@amazon.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Amazon External Fulfillment Return Item Processing\n * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\\'s External Fulfillment returns management system.\n *\n * The version of the OpenAPI document: 2024-09-11\n * Contact: marketplaceapitest@amazon.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { MarketplaceChannelDetails } from './marketplace-channel-details.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { OtpDetails } from './otp-details.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { ReplanningDetails } from './replanning-details.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { ReturnMetadata } from './return-metadata.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { ReturnShippingInfo } from './return-shipping-info.js';\n\n/**\n * Information about the return item.\n */\nexport interface Return {\n /**\n * The return item\\'s ID.\n */\n 'id': string;\n /**\n * The SmartConnect identifier for where the return item was dropped for delivery.\n */\n 'returnLocationId'?: string;\n /**\n * The seller\\'s identifier for the SKU.\n */\n 'merchantSku'?: string;\n /**\n * The type of return.\n */\n 'returnType': ReturnReturnTypeEnum;\n /**\n * The sub-type of return.\n */\n 'returnSubType'?: ReturnReturnSubTypeEnum;\n /**\n * The total number of units in the return.\n */\n 'numberOfUnits'?: number;\n /**\n * The current status of the return.\n */\n 'status': ReturnStatusEnum;\n /**\n * The ID of the location that fulfilled the order.\n */\n 'fulfillmentLocationId': string;\n /**\n * A date and time in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.\n */\n 'creationDateTime'?: string;\n /**\n * A date and time in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.\n */\n 'lastUpdatedDateTime': string;\n 'returnMetadata': ReturnMetadata;\n 'returnShippingInfo': ReturnShippingInfo;\n 'marketplaceChannelDetails': MarketplaceChannelDetails;\n 'otpDetails'?: OtpDetails;\n /**\n * The package delivery mode. This indicates whether the return was delivered to the seller with or without a one-time password (OTP).\n */\n 'packageDeliveryMode'?: ReturnPackageDeliveryModeEnum;\n 'replanningDetails'?: ReplanningDetails;\n}\n\nexport const ReturnReturnTypeEnum = {\n Customer: 'CUSTOMER',\n Reject: 'REJECT',\n} as const;\n\nexport type ReturnReturnTypeEnum = typeof ReturnReturnTypeEnum[keyof typeof ReturnReturnTypeEnum];\nexport const ReturnReturnSubTypeEnum = {\n Normal: 'NORMAL',\n Replacement: 'REPLACEMENT',\n Exchange: 'EXCHANGE',\n} as const;\n\nexport type ReturnReturnSubTypeEnum = typeof ReturnReturnSubTypeEnum[keyof typeof ReturnReturnSubTypeEnum];\nexport const ReturnStatusEnum = {\n Created: 'CREATED',\n CarrierNotifiedToPickUpFromCustomer: 'CARRIER_NOTIFIED_TO_PICK_UP_FROM_CUSTOMER',\n CarrierOutForPickUpFromCustomer: 'CARRIER_OUT_FOR_PICK_UP_FROM_CUSTOMER',\n CustomerCancelledPickUp: 'CUSTOMER_CANCELLED_PICK_UP',\n CustomerRescheduledPickUp: 'CUSTOMER_RESCHEDULED_PICK_UP',\n PickedFromCustomer: 'PICKED_FROM_CUSTOMER',\n InTransit: 'IN_TRANSIT',\n OutForDelivery: 'OUT_FOR_DELIVERY',\n Delivered: 'DELIVERED',\n Replanned: 'REPLANNED',\n CustomerDroppedOff: 'CUSTOMER_DROPPED_OFF',\n PartiallyProcessed: 'PARTIALLY_PROCESSED',\n Processed: 'PROCESSED',\n Rejected: 'REJECTED',\n Cancelled: 'CANCELLED',\n} as const;\n\nexport type ReturnStatusEnum = typeof ReturnStatusEnum[keyof typeof ReturnStatusEnum];\nexport const ReturnPackageDeliveryModeEnum = {\n WithOtp: 'WITH_OTP',\n WithoutOtp: 'WITHOUT_OTP',\n} as const;\n\nexport type ReturnPackageDeliveryModeEnum = typeof ReturnPackageDeliveryModeEnum[keyof typeof ReturnPackageDeliveryModeEnum];\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,iBAA4E;;;ACiB5E,IAAAC,gBAAwB;;;ACExB,mBAAwB;AAEjB,IAAM,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAc9E,IAAM,UAAN,MAAc;AAAA,EAGjB,YAAY,eAAyC,WAAmB,WAAqB,QAAuB,aAAAC,SAAa;AAA5E;AAAwC;AACzF,QAAI,eAAe;AACf,WAAK,gBAAgB;AACrB,WAAK,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