@sp-api-sdk/external-fulfillment-returns-api-2024-09-11 1.1.11 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-model/api/external-fulfillment-returns-api.js +2 -2
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/return.js +4 -4
- package/dist/es/api-model/api/external-fulfillment-returns-api.js +2 -2
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/return.js +4 -4
- package/package.json +4 -4
|
@@ -38,7 +38,7 @@ const ExternalFulfillmentReturnsApiAxiosParamCreator = function (configuration)
|
|
|
38
38
|
// verify required parameter 'returnId' is not null or undefined
|
|
39
39
|
(0, common_1.assertParamExists)('getReturn', 'returnId', returnId);
|
|
40
40
|
const localVarPath = `/externalFulfillment/2024-09-11/returns/{returnId}`
|
|
41
|
-
.replace(
|
|
41
|
+
.replace('{returnId}', encodeURIComponent(String(returnId)));
|
|
42
42
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
43
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
44
44
|
let baseOptions;
|
|
@@ -255,5 +255,5 @@ exports.ListReturnsStatusEnum = {
|
|
|
255
255
|
PartiallyProcessed: 'PARTIALLY_PROCESSED',
|
|
256
256
|
Processed: 'PROCESSED',
|
|
257
257
|
Rejected: 'REJECTED',
|
|
258
|
-
Cancelled: 'CANCELLED'
|
|
258
|
+
Cancelled: 'CANCELLED',
|
|
259
259
|
};
|
|
@@ -91,8 +91,8 @@ class Configuration {
|
|
|
91
91
|
* @return True if the given MIME is JSON, false otherwise.
|
|
92
92
|
*/
|
|
93
93
|
isJsonMime(mime) {
|
|
94
|
-
const jsonMime =
|
|
95
|
-
return mime !== null &&
|
|
94
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
95
|
+
return mime !== null && jsonMime.test(mime);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
exports.Configuration = Configuration;
|
|
@@ -16,12 +16,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ReturnPackageDeliveryModeEnum = exports.ReturnStatusEnum = exports.ReturnReturnSubTypeEnum = exports.ReturnReturnTypeEnum = void 0;
|
|
17
17
|
exports.ReturnReturnTypeEnum = {
|
|
18
18
|
Customer: 'CUSTOMER',
|
|
19
|
-
Reject: 'REJECT'
|
|
19
|
+
Reject: 'REJECT',
|
|
20
20
|
};
|
|
21
21
|
exports.ReturnReturnSubTypeEnum = {
|
|
22
22
|
Normal: 'NORMAL',
|
|
23
23
|
Replacement: 'REPLACEMENT',
|
|
24
|
-
Exchange: 'EXCHANGE'
|
|
24
|
+
Exchange: 'EXCHANGE',
|
|
25
25
|
};
|
|
26
26
|
exports.ReturnStatusEnum = {
|
|
27
27
|
Created: 'CREATED',
|
|
@@ -38,9 +38,9 @@ exports.ReturnStatusEnum = {
|
|
|
38
38
|
PartiallyProcessed: 'PARTIALLY_PROCESSED',
|
|
39
39
|
Processed: 'PROCESSED',
|
|
40
40
|
Rejected: 'REJECTED',
|
|
41
|
-
Cancelled: 'CANCELLED'
|
|
41
|
+
Cancelled: 'CANCELLED',
|
|
42
42
|
};
|
|
43
43
|
exports.ReturnPackageDeliveryModeEnum = {
|
|
44
44
|
WithOtp: 'WITH_OTP',
|
|
45
|
-
WithoutOtp: 'WITHOUT_OTP'
|
|
45
|
+
WithoutOtp: 'WITHOUT_OTP',
|
|
46
46
|
};
|
|
@@ -32,7 +32,7 @@ export const ExternalFulfillmentReturnsApiAxiosParamCreator = function (configur
|
|
|
32
32
|
// verify required parameter 'returnId' is not null or undefined
|
|
33
33
|
assertParamExists('getReturn', 'returnId', returnId);
|
|
34
34
|
const localVarPath = `/externalFulfillment/2024-09-11/returns/{returnId}`
|
|
35
|
-
.replace(
|
|
35
|
+
.replace('{returnId}', encodeURIComponent(String(returnId)));
|
|
36
36
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37
37
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38
38
|
let baseOptions;
|
|
@@ -245,5 +245,5 @@ export const ListReturnsStatusEnum = {
|
|
|
245
245
|
PartiallyProcessed: 'PARTIALLY_PROCESSED',
|
|
246
246
|
Processed: 'PROCESSED',
|
|
247
247
|
Rejected: 'REJECTED',
|
|
248
|
-
Cancelled: 'CANCELLED'
|
|
248
|
+
Cancelled: 'CANCELLED',
|
|
249
249
|
};
|
|
@@ -88,7 +88,7 @@ export class Configuration {
|
|
|
88
88
|
* @return True if the given MIME is JSON, false otherwise.
|
|
89
89
|
*/
|
|
90
90
|
isJsonMime(mime) {
|
|
91
|
-
const jsonMime =
|
|
92
|
-
return mime !== null &&
|
|
91
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
92
|
+
return mime !== null && jsonMime.test(mime);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
export const ReturnReturnTypeEnum = {
|
|
15
15
|
Customer: 'CUSTOMER',
|
|
16
|
-
Reject: 'REJECT'
|
|
16
|
+
Reject: 'REJECT',
|
|
17
17
|
};
|
|
18
18
|
export const ReturnReturnSubTypeEnum = {
|
|
19
19
|
Normal: 'NORMAL',
|
|
20
20
|
Replacement: 'REPLACEMENT',
|
|
21
|
-
Exchange: 'EXCHANGE'
|
|
21
|
+
Exchange: 'EXCHANGE',
|
|
22
22
|
};
|
|
23
23
|
export const ReturnStatusEnum = {
|
|
24
24
|
Created: 'CREATED',
|
|
@@ -35,9 +35,9 @@ export const ReturnStatusEnum = {
|
|
|
35
35
|
PartiallyProcessed: 'PARTIALLY_PROCESSED',
|
|
36
36
|
Processed: 'PROCESSED',
|
|
37
37
|
Rejected: 'REJECTED',
|
|
38
|
-
Cancelled: 'CANCELLED'
|
|
38
|
+
Cancelled: 'CANCELLED',
|
|
39
39
|
};
|
|
40
40
|
export const ReturnPackageDeliveryModeEnum = {
|
|
41
41
|
WithOtp: 'WITH_OTP',
|
|
42
|
-
WithoutOtp: 'WITHOUT_OTP'
|
|
42
|
+
WithoutOtp: 'WITHOUT_OTP',
|
|
43
43
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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": "1.1.
|
|
5
|
+
"version": "1.1.12",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.31",
|
|
22
|
+
"axios": "^1.15.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"external fulfillment returns api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|