@sp-api-sdk/fba-inbound-eligibility-api-v1 4.1.10 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-model/api/fba-inbound-eligibility-api.js +1 -1
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/item-eligibility-preview.js +3 -2
- package/dist/es/api-model/api/fba-inbound-eligibility-api.js +1 -1
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/item-eligibility-preview.js +3 -2
- package/dist/types/api-model/models/item-eligibility-preview.d.ts +1 -0
- package/package.json +4 -4
|
@@ -130,5 +130,5 @@ class FbaInboundEligibilityApi extends base_1.BaseAPI {
|
|
|
130
130
|
exports.FbaInboundEligibilityApi = FbaInboundEligibilityApi;
|
|
131
131
|
exports.GetItemEligibilityPreviewProgramEnum = {
|
|
132
132
|
Inbound: 'INBOUND',
|
|
133
|
-
Commingling: 'COMMINGLING'
|
|
133
|
+
Commingling: 'COMMINGLING',
|
|
134
134
|
};
|
|
@@ -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,7 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ItemEligibilityPreviewIneligibilityReasonListEnum = exports.ItemEligibilityPreviewProgramEnum = void 0;
|
|
17
17
|
exports.ItemEligibilityPreviewProgramEnum = {
|
|
18
18
|
Inbound: 'INBOUND',
|
|
19
|
-
Commingling: 'COMMINGLING'
|
|
19
|
+
Commingling: 'COMMINGLING',
|
|
20
20
|
};
|
|
21
21
|
exports.ItemEligibilityPreviewIneligibilityReasonListEnum = {
|
|
22
22
|
FbaInb0004: 'FBA_INB_0004',
|
|
@@ -58,5 +58,6 @@ exports.ItemEligibilityPreviewIneligibilityReasonListEnum = {
|
|
|
58
58
|
FbaInb0104: 'FBA_INB_0104',
|
|
59
59
|
FbaInb0197: 'FBA_INB_0197',
|
|
60
60
|
FbaInb0342: 'FBA_INB_0342',
|
|
61
|
-
|
|
61
|
+
FbaInb0465: 'FBA_INB_0465',
|
|
62
|
+
UnknownInbErrorCode: 'UNKNOWN_INB_ERROR_CODE',
|
|
62
63
|
};
|
|
@@ -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,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
export const ItemEligibilityPreviewProgramEnum = {
|
|
15
15
|
Inbound: 'INBOUND',
|
|
16
|
-
Commingling: 'COMMINGLING'
|
|
16
|
+
Commingling: 'COMMINGLING',
|
|
17
17
|
};
|
|
18
18
|
export const ItemEligibilityPreviewIneligibilityReasonListEnum = {
|
|
19
19
|
FbaInb0004: 'FBA_INB_0004',
|
|
@@ -55,5 +55,6 @@ export const ItemEligibilityPreviewIneligibilityReasonListEnum = {
|
|
|
55
55
|
FbaInb0104: 'FBA_INB_0104',
|
|
56
56
|
FbaInb0197: 'FBA_INB_0197',
|
|
57
57
|
FbaInb0342: 'FBA_INB_0342',
|
|
58
|
-
|
|
58
|
+
FbaInb0465: 'FBA_INB_0465',
|
|
59
|
+
UnknownInbErrorCode: 'UNKNOWN_INB_ERROR_CODE',
|
|
59
60
|
};
|
|
@@ -79,6 +79,7 @@ export declare const ItemEligibilityPreviewIneligibilityReasonListEnum: {
|
|
|
79
79
|
readonly FbaInb0104: "FBA_INB_0104";
|
|
80
80
|
readonly FbaInb0197: "FBA_INB_0197";
|
|
81
81
|
readonly FbaInb0342: "FBA_INB_0342";
|
|
82
|
+
readonly FbaInb0465: "FBA_INB_0465";
|
|
82
83
|
readonly UnknownInbErrorCode: "UNKNOWN_INB_ERROR_CODE";
|
|
83
84
|
};
|
|
84
85
|
export type ItemEligibilityPreviewIneligibilityReasonListEnum = typeof ItemEligibilityPreviewIneligibilityReasonListEnum[keyof typeof ItemEligibilityPreviewIneligibilityReasonListEnum];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/fba-inbound-eligibility-api-v1",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for items before shipping them to Amazon's fulfillment centers. With this API you can find out if an item is eligible for inbound shipment to Amazon's fulfillment centers in a specific marketplace. You can also find out if an item is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to inform their decisions about which items to ship Amazon's fulfillment centers.",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.2.0",
|
|
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
|
"fba inbound eligibility api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|