@sp-api-sdk/external-fulfillment-returns-api-2024-09-11 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/index.cjs +390 -428
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +443 -512
- package/dist/index.d.ts +443 -512
- package/dist/index.js +362 -387
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../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":["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 `CREATED` 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 `returnLocationId` and `status`.\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 `returnLocationId` and `status`.\n * @param {string} [lastUpdatedAfter] DEPRECATED. Use the `createdSince` parameter.\n * @param {string} [lastUpdatedBefore] DEPRECATED. Use the `createdUntil` 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 `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.\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 `CREATED` 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 `returnLocationId` and `status`.\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 `returnLocationId` and `status`.\n * @param {string} [lastUpdatedAfter] DEPRECATED. Use the `createdSince` parameter.\n * @param {string} [lastUpdatedBefore] DEPRECATED. Use the `createdUntil` 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 `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.\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 `CREATED` 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 `returnLocationId` and `status`.\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 `returnLocationId` and `status`.\n */\n readonly lastUpdatedUntil?: string\n\n /**\n * DEPRECATED. Use the `createdSince` parameter.\n */\n readonly lastUpdatedAfter?: string\n\n /**\n * DEPRECATED. Use the `createdUntil` 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 `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.\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 ReturnPackageDeliveryModeE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ios","globalAxios","BASE_PATH","globalAxios"]}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/api/external-fulfillment-returns-api.ts","../src/api-model/configuration.ts","../src/api-model/models/return.ts","../src/client.ts"],"sourcesContent":["/* 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/* 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 `CREATED` 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 `returnLocationId` and `status`.\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 `returnLocationId` and `status`.\n * @param {string} [lastUpdatedAfter] DEPRECATED. Use the `createdSince` parameter.\n * @param {string} [lastUpdatedBefore] DEPRECATED. Use the `createdUntil` 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 `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.\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 `CREATED` 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 `returnLocationId` and `status`.\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 `returnLocationId` and `status`.\n * @param {string} [lastUpdatedAfter] DEPRECATED. Use the `createdSince` parameter.\n * @param {string} [lastUpdatedBefore] DEPRECATED. Use the `createdUntil` 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 `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.\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 `CREATED` 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 `returnLocationId` and `status`.\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 `returnLocationId` and `status`.\n */\n readonly lastUpdatedUntil?: string\n\n /**\n * DEPRECATED. Use the `createdSince` parameter.\n */\n readonly lastUpdatedAfter?: string\n\n /**\n * DEPRECATED. Use the `createdUntil` 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 `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.\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/**\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","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"],"mappings":";;;AAqBA,MAAa,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAcrF,IAAa,UAAb,MAAqB;CAGoC;CAAwC;CAF7F;CAEA,YAAY,eAA+B,WAA6B,WAAW,QAAiC,aAAa;EAA5E,KAAA,WAAA;EAAwC,KAAA,QAAA;EACzF,IAAI,eAAe;GACf,KAAK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;;AClCA,MAAa,uBAAuB;CAChC,UAAU;CACV,QAAQ;AACZ;AAGA,MAAa,0BAA0B;CACnC,QAAQ;CACR,aAAa;CACb,UAAU;AACd;AAGA,MAAa,mBAAmB;CAC5B,SAAS;CACT,qCAAqC;CACrC,iCAAiC;CACjC,yBAAyB;CACzB,2BAA2B;CAC3B,oBAAoB;CACpB,WAAW;CACX,gBAAgB;CAChB,WAAW;CACX,WAAW;CACX,oBAAoB;CACpB,oBAAoB;CACpB,WAAW;CACX,UAAU;CACV,WAAW;AACf;AAGA,MAAa,gCAAgC;CACzC,SAAS;CACT,YAAY;AAChB;;;ACrHA,MAAa,mBAAgC,CAAC;AAE9C,IAAa,sCAAb,cAAyD,8BAA8B;CACrF,YAAY,eAAoC;EAC9C,MAAM,EAAC,OAAO,aAAY,oBAAoB,eAAe,gBAAgB;EAE7E,MAAM,IAAI,cAAc,GAAG,UAAU,KAAK;CAC5C;AACF"}
|
package/package.json
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/external-fulfillment-returns-api-2024-09-11",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "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.",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.1.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=20"
|
|
10
|
+
},
|
|
8
11
|
"sideEffects": false,
|
|
9
12
|
"source": "./src/index.ts",
|
|
10
13
|
"main": "./dist/index.cjs",
|
|
@@ -29,8 +32,8 @@
|
|
|
29
32
|
"dist"
|
|
30
33
|
],
|
|
31
34
|
"dependencies": {
|
|
32
|
-
"@sp-api-sdk/common": "
|
|
33
|
-
"axios": "^1.
|
|
35
|
+
"@sp-api-sdk/common": "4.0.0",
|
|
36
|
+
"axios": "^1.18.1"
|
|
34
37
|
},
|
|
35
38
|
"repository": {
|
|
36
39
|
"type": "git",
|
|
@@ -51,5 +54,5 @@
|
|
|
51
54
|
"sp sdk",
|
|
52
55
|
"external fulfillment returns api"
|
|
53
56
|
],
|
|
54
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "809167ef3a2d3db5eaad161be1cf4f414073ecec"
|
|
55
58
|
}
|