@sp-api-sdk/merchant-fulfillment-api-v0 3.1.11 → 3.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/merchant-fulfillment-api.js +2 -2
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/carrier-will-pick-up-option.js +1 -1
- package/dist/cjs/api-model/models/dangerous-goods-details.js +2 -2
- package/dist/cjs/api-model/models/delivery-experience-option.js +1 -1
- package/dist/cjs/api-model/models/delivery-experience-type.js +1 -1
- package/dist/cjs/api-model/models/file-type.js +1 -1
- package/dist/cjs/api-model/models/hazmat-type.js +1 -1
- package/dist/cjs/api-model/models/input-target-type.js +1 -1
- package/dist/cjs/api-model/models/label-format.js +1 -1
- package/dist/cjs/api-model/models/liquid-volume.js +1 -1
- package/dist/cjs/api-model/models/predefined-package-dimensions.js +1 -1
- package/dist/cjs/api-model/models/rate-item-id.js +1 -1
- package/dist/cjs/api-model/models/rate-item-type.js +1 -1
- package/dist/cjs/api-model/models/shipment-status.js +1 -1
- package/dist/cjs/api-model/models/standard-id-for-label.js +1 -1
- package/dist/cjs/api-model/models/unit-of-length.js +1 -1
- package/dist/cjs/api-model/models/unit-of-weight.js +1 -1
- package/dist/es/api-model/api/merchant-fulfillment-api.js +2 -2
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/carrier-will-pick-up-option.js +1 -1
- package/dist/es/api-model/models/dangerous-goods-details.js +2 -2
- package/dist/es/api-model/models/delivery-experience-option.js +1 -1
- package/dist/es/api-model/models/delivery-experience-type.js +1 -1
- package/dist/es/api-model/models/file-type.js +1 -1
- package/dist/es/api-model/models/hazmat-type.js +1 -1
- package/dist/es/api-model/models/input-target-type.js +1 -1
- package/dist/es/api-model/models/label-format.js +1 -1
- package/dist/es/api-model/models/liquid-volume.js +1 -1
- package/dist/es/api-model/models/predefined-package-dimensions.js +1 -1
- package/dist/es/api-model/models/rate-item-id.js +1 -1
- package/dist/es/api-model/models/rate-item-type.js +1 -1
- package/dist/es/api-model/models/shipment-status.js +1 -1
- package/dist/es/api-model/models/standard-id-for-label.js +1 -1
- package/dist/es/api-model/models/unit-of-length.js +1 -1
- package/dist/es/api-model/models/unit-of-weight.js +1 -1
- package/package.json +4 -4
|
@@ -38,7 +38,7 @@ const MerchantFulfillmentApiAxiosParamCreator = function (configuration) {
|
|
|
38
38
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
39
39
|
(0, common_1.assertParamExists)('cancelShipment', 'shipmentId', shipmentId);
|
|
40
40
|
const localVarPath = `/mfn/v0/shipments/{shipmentId}`
|
|
41
|
-
.replace(
|
|
41
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
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;
|
|
@@ -157,7 +157,7 @@ const MerchantFulfillmentApiAxiosParamCreator = function (configuration) {
|
|
|
157
157
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
158
158
|
(0, common_1.assertParamExists)('getShipment', 'shipmentId', shipmentId);
|
|
159
159
|
const localVarPath = `/mfn/v0/shipments/{shipmentId}`
|
|
160
|
-
.replace(
|
|
160
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
161
161
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
162
162
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
163
|
let baseOptions;
|
|
@@ -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;
|
|
@@ -17,7 +17,7 @@ exports.DangerousGoodsDetailsPackingInstructionEnum = exports.DangerousGoodsDeta
|
|
|
17
17
|
exports.DangerousGoodsDetailsPackingGroupEnum = {
|
|
18
18
|
I: 'I',
|
|
19
19
|
Ii: 'II',
|
|
20
|
-
Iii: 'III'
|
|
20
|
+
Iii: 'III',
|
|
21
21
|
};
|
|
22
22
|
exports.DangerousGoodsDetailsPackingInstructionEnum = {
|
|
23
23
|
Pi965SectionIa: 'PI965_SECTION_IA',
|
|
@@ -32,5 +32,5 @@ exports.DangerousGoodsDetailsPackingInstructionEnum = {
|
|
|
32
32
|
Pi969SectionI: 'PI969_SECTION_I',
|
|
33
33
|
Pi969SectionIi: 'PI969_SECTION_II',
|
|
34
34
|
Pi970SectionI: 'PI970_SECTION_I',
|
|
35
|
-
Pi970SectionIi: 'PI970_SECTION_II'
|
|
35
|
+
Pi970SectionIi: 'PI970_SECTION_II',
|
|
36
36
|
};
|
|
@@ -22,5 +22,5 @@ exports.DeliveryExperienceOption = {
|
|
|
22
22
|
DeliveryConfirmationWithSignature: 'DeliveryConfirmationWithSignature',
|
|
23
23
|
DeliveryConfirmationWithoutSignature: 'DeliveryConfirmationWithoutSignature',
|
|
24
24
|
NoTracking: 'NoTracking',
|
|
25
|
-
NoPreference: 'NoPreference'
|
|
25
|
+
NoPreference: 'NoPreference',
|
|
26
26
|
};
|
|
@@ -21,5 +21,5 @@ exports.DeliveryExperienceType = {
|
|
|
21
21
|
DeliveryConfirmationWithAdultSignature: 'DeliveryConfirmationWithAdultSignature',
|
|
22
22
|
DeliveryConfirmationWithSignature: 'DeliveryConfirmationWithSignature',
|
|
23
23
|
DeliveryConfirmationWithoutSignature: 'DeliveryConfirmationWithoutSignature',
|
|
24
|
-
NoTracking: 'NoTracking'
|
|
24
|
+
NoTracking: 'NoTracking',
|
|
25
25
|
};
|
|
@@ -67,5 +67,5 @@ exports.PredefinedPackageDimensions = {
|
|
|
67
67
|
UspsRegionalRateBoxB2: 'USPS_RegionalRateBoxB2',
|
|
68
68
|
UspsRegionalRateBoxC: 'USPS_RegionalRateBoxC',
|
|
69
69
|
UspsSmallFlatRateBox: 'USPS_SmallFlatRateBox',
|
|
70
|
-
UspsSmallFlatRateEnvelope: 'USPS_SmallFlatRateEnvelope'
|
|
70
|
+
UspsSmallFlatRateEnvelope: 'USPS_SmallFlatRateEnvelope',
|
|
71
71
|
};
|
|
@@ -32,7 +32,7 @@ export const MerchantFulfillmentApiAxiosParamCreator = function (configuration)
|
|
|
32
32
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
33
33
|
assertParamExists('cancelShipment', 'shipmentId', shipmentId);
|
|
34
34
|
const localVarPath = `/mfn/v0/shipments/{shipmentId}`
|
|
35
|
-
.replace(
|
|
35
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
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;
|
|
@@ -151,7 +151,7 @@ export const MerchantFulfillmentApiAxiosParamCreator = function (configuration)
|
|
|
151
151
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
152
152
|
assertParamExists('getShipment', 'shipmentId', shipmentId);
|
|
153
153
|
const localVarPath = `/mfn/v0/shipments/{shipmentId}`
|
|
154
|
-
.replace(
|
|
154
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
155
155
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
156
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
157
157
|
let baseOptions;
|
|
@@ -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
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
export const DangerousGoodsDetailsPackingGroupEnum = {
|
|
15
15
|
I: 'I',
|
|
16
16
|
Ii: 'II',
|
|
17
|
-
Iii: 'III'
|
|
17
|
+
Iii: 'III',
|
|
18
18
|
};
|
|
19
19
|
export const DangerousGoodsDetailsPackingInstructionEnum = {
|
|
20
20
|
Pi965SectionIa: 'PI965_SECTION_IA',
|
|
@@ -29,5 +29,5 @@ export const DangerousGoodsDetailsPackingInstructionEnum = {
|
|
|
29
29
|
Pi969SectionI: 'PI969_SECTION_I',
|
|
30
30
|
Pi969SectionIi: 'PI969_SECTION_II',
|
|
31
31
|
Pi970SectionI: 'PI970_SECTION_I',
|
|
32
|
-
Pi970SectionIi: 'PI970_SECTION_II'
|
|
32
|
+
Pi970SectionIi: 'PI970_SECTION_II',
|
|
33
33
|
};
|
|
@@ -19,5 +19,5 @@ export const DeliveryExperienceOption = {
|
|
|
19
19
|
DeliveryConfirmationWithSignature: 'DeliveryConfirmationWithSignature',
|
|
20
20
|
DeliveryConfirmationWithoutSignature: 'DeliveryConfirmationWithoutSignature',
|
|
21
21
|
NoTracking: 'NoTracking',
|
|
22
|
-
NoPreference: 'NoPreference'
|
|
22
|
+
NoPreference: 'NoPreference',
|
|
23
23
|
};
|
|
@@ -18,5 +18,5 @@ export const DeliveryExperienceType = {
|
|
|
18
18
|
DeliveryConfirmationWithAdultSignature: 'DeliveryConfirmationWithAdultSignature',
|
|
19
19
|
DeliveryConfirmationWithSignature: 'DeliveryConfirmationWithSignature',
|
|
20
20
|
DeliveryConfirmationWithoutSignature: 'DeliveryConfirmationWithoutSignature',
|
|
21
|
-
NoTracking: 'NoTracking'
|
|
21
|
+
NoTracking: 'NoTracking',
|
|
22
22
|
};
|
|
@@ -64,5 +64,5 @@ export const PredefinedPackageDimensions = {
|
|
|
64
64
|
UspsRegionalRateBoxB2: 'USPS_RegionalRateBoxB2',
|
|
65
65
|
UspsRegionalRateBoxC: 'USPS_RegionalRateBoxC',
|
|
66
66
|
UspsSmallFlatRateBox: 'USPS_SmallFlatRateBox',
|
|
67
|
-
UspsSmallFlatRateEnvelope: 'USPS_SmallFlatRateEnvelope'
|
|
67
|
+
UspsSmallFlatRateEnvelope: 'USPS_SmallFlatRateEnvelope',
|
|
68
68
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/merchant-fulfillment-api-v0",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon's Buy Shipping Services.",
|
|
5
|
-
"version": "3.1.
|
|
5
|
+
"version": "3.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
|
"merchant fulfillment api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|