@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.
Files changed (37) hide show
  1. package/dist/cjs/api-model/api/merchant-fulfillment-api.js +2 -2
  2. package/dist/cjs/api-model/configuration.js +2 -2
  3. package/dist/cjs/api-model/models/carrier-will-pick-up-option.js +1 -1
  4. package/dist/cjs/api-model/models/dangerous-goods-details.js +2 -2
  5. package/dist/cjs/api-model/models/delivery-experience-option.js +1 -1
  6. package/dist/cjs/api-model/models/delivery-experience-type.js +1 -1
  7. package/dist/cjs/api-model/models/file-type.js +1 -1
  8. package/dist/cjs/api-model/models/hazmat-type.js +1 -1
  9. package/dist/cjs/api-model/models/input-target-type.js +1 -1
  10. package/dist/cjs/api-model/models/label-format.js +1 -1
  11. package/dist/cjs/api-model/models/liquid-volume.js +1 -1
  12. package/dist/cjs/api-model/models/predefined-package-dimensions.js +1 -1
  13. package/dist/cjs/api-model/models/rate-item-id.js +1 -1
  14. package/dist/cjs/api-model/models/rate-item-type.js +1 -1
  15. package/dist/cjs/api-model/models/shipment-status.js +1 -1
  16. package/dist/cjs/api-model/models/standard-id-for-label.js +1 -1
  17. package/dist/cjs/api-model/models/unit-of-length.js +1 -1
  18. package/dist/cjs/api-model/models/unit-of-weight.js +1 -1
  19. package/dist/es/api-model/api/merchant-fulfillment-api.js +2 -2
  20. package/dist/es/api-model/configuration.js +2 -2
  21. package/dist/es/api-model/models/carrier-will-pick-up-option.js +1 -1
  22. package/dist/es/api-model/models/dangerous-goods-details.js +2 -2
  23. package/dist/es/api-model/models/delivery-experience-option.js +1 -1
  24. package/dist/es/api-model/models/delivery-experience-type.js +1 -1
  25. package/dist/es/api-model/models/file-type.js +1 -1
  26. package/dist/es/api-model/models/hazmat-type.js +1 -1
  27. package/dist/es/api-model/models/input-target-type.js +1 -1
  28. package/dist/es/api-model/models/label-format.js +1 -1
  29. package/dist/es/api-model/models/liquid-volume.js +1 -1
  30. package/dist/es/api-model/models/predefined-package-dimensions.js +1 -1
  31. package/dist/es/api-model/models/rate-item-id.js +1 -1
  32. package/dist/es/api-model/models/rate-item-type.js +1 -1
  33. package/dist/es/api-model/models/shipment-status.js +1 -1
  34. package/dist/es/api-model/models/standard-id-for-label.js +1 -1
  35. package/dist/es/api-model/models/unit-of-length.js +1 -1
  36. package/dist/es/api-model/models/unit-of-weight.js +1 -1
  37. 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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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 = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
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;
@@ -20,5 +20,5 @@ exports.CarrierWillPickUpOption = void 0;
20
20
  exports.CarrierWillPickUpOption = {
21
21
  CarrierWillPickUp: 'CarrierWillPickUp',
22
22
  ShipperWillDropOff: 'ShipperWillDropOff',
23
- NoPreference: 'NoPreference'
23
+ NoPreference: 'NoPreference',
24
24
  };
@@ -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
  };
@@ -20,5 +20,5 @@ exports.FileType = void 0;
20
20
  exports.FileType = {
21
21
  ApplicationPdf: 'application/pdf',
22
22
  ApplicationZpl: 'application/zpl',
23
- ImagePng: 'image/png'
23
+ ImagePng: 'image/png',
24
24
  };
@@ -19,5 +19,5 @@ exports.HazmatType = void 0;
19
19
  */
20
20
  exports.HazmatType = {
21
21
  None: 'None',
22
- LqHazmat: 'LQHazmat'
22
+ LqHazmat: 'LQHazmat',
23
23
  };
@@ -19,5 +19,5 @@ exports.InputTargetType = void 0;
19
19
  */
20
20
  exports.InputTargetType = {
21
21
  ShipmentLevel: 'SHIPMENT_LEVEL',
22
- ItemLevel: 'ITEM_LEVEL'
22
+ ItemLevel: 'ITEM_LEVEL',
23
23
  };
@@ -22,5 +22,5 @@ exports.LabelFormat = {
22
22
  Png: 'PNG',
23
23
  Zpl203: 'ZPL203',
24
24
  Zpl300: 'ZPL300',
25
- ShippingServiceDefault: 'ShippingServiceDefault'
25
+ ShippingServiceDefault: 'ShippingServiceDefault',
26
26
  };
@@ -21,5 +21,5 @@ exports.LiquidVolumeUnitEnum = {
21
21
  Gal: 'GAL',
22
22
  Pt: 'PT',
23
23
  Qt: 'QT',
24
- C: 'C'
24
+ C: 'C',
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
  };
@@ -18,5 +18,5 @@ exports.RateItemID = void 0;
18
18
  * Unique identifier for the RateItem.
19
19
  */
20
20
  exports.RateItemID = {
21
- FbmShipPlusCredit: 'FBM_SHIP_PLUS_CREDIT'
21
+ FbmShipPlusCredit: 'FBM_SHIP_PLUS_CREDIT',
22
22
  };
@@ -18,5 +18,5 @@ exports.RateItemType = void 0;
18
18
  * Type for the RateItem.
19
19
  */
20
20
  exports.RateItemType = {
21
- Included: 'INCLUDED'
21
+ Included: 'INCLUDED',
22
22
  };
@@ -21,5 +21,5 @@ exports.ShipmentStatus = {
21
21
  Purchased: 'Purchased',
22
22
  RefundPending: 'RefundPending',
23
23
  RefundRejected: 'RefundRejected',
24
- RefundApplied: 'RefundApplied'
24
+ RefundApplied: 'RefundApplied',
25
25
  };
@@ -18,5 +18,5 @@ exports.StandardIdForLabel = void 0;
18
18
  * The type of standard identifier to print on the label.
19
19
  */
20
20
  exports.StandardIdForLabel = {
21
- AmazonOrderId: 'AmazonOrderId'
21
+ AmazonOrderId: 'AmazonOrderId',
22
22
  };
@@ -19,5 +19,5 @@ exports.UnitOfLength = void 0;
19
19
  */
20
20
  exports.UnitOfLength = {
21
21
  Inches: 'inches',
22
- Centimeters: 'centimeters'
22
+ Centimeters: 'centimeters',
23
23
  };
@@ -19,5 +19,5 @@ exports.UnitOfWeight = void 0;
19
19
  */
20
20
  exports.UnitOfWeight = {
21
21
  Oz: 'oz',
22
- G: 'g'
22
+ G: 'g',
23
23
  };
@@ -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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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 = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
@@ -17,5 +17,5 @@
17
17
  export const CarrierWillPickUpOption = {
18
18
  CarrierWillPickUp: 'CarrierWillPickUp',
19
19
  ShipperWillDropOff: 'ShipperWillDropOff',
20
- NoPreference: 'NoPreference'
20
+ NoPreference: 'NoPreference',
21
21
  };
@@ -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
  };
@@ -17,5 +17,5 @@
17
17
  export const FileType = {
18
18
  ApplicationPdf: 'application/pdf',
19
19
  ApplicationZpl: 'application/zpl',
20
- ImagePng: 'image/png'
20
+ ImagePng: 'image/png',
21
21
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const HazmatType = {
18
18
  None: 'None',
19
- LqHazmat: 'LQHazmat'
19
+ LqHazmat: 'LQHazmat',
20
20
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const InputTargetType = {
18
18
  ShipmentLevel: 'SHIPMENT_LEVEL',
19
- ItemLevel: 'ITEM_LEVEL'
19
+ ItemLevel: 'ITEM_LEVEL',
20
20
  };
@@ -19,5 +19,5 @@ export const LabelFormat = {
19
19
  Png: 'PNG',
20
20
  Zpl203: 'ZPL203',
21
21
  Zpl300: 'ZPL300',
22
- ShippingServiceDefault: 'ShippingServiceDefault'
22
+ ShippingServiceDefault: 'ShippingServiceDefault',
23
23
  };
@@ -18,5 +18,5 @@ export const LiquidVolumeUnitEnum = {
18
18
  Gal: 'GAL',
19
19
  Pt: 'PT',
20
20
  Qt: 'QT',
21
- C: 'C'
21
+ C: 'C',
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
  };
@@ -15,5 +15,5 @@
15
15
  * Unique identifier for the RateItem.
16
16
  */
17
17
  export const RateItemID = {
18
- FbmShipPlusCredit: 'FBM_SHIP_PLUS_CREDIT'
18
+ FbmShipPlusCredit: 'FBM_SHIP_PLUS_CREDIT',
19
19
  };
@@ -15,5 +15,5 @@
15
15
  * Type for the RateItem.
16
16
  */
17
17
  export const RateItemType = {
18
- Included: 'INCLUDED'
18
+ Included: 'INCLUDED',
19
19
  };
@@ -18,5 +18,5 @@ export const ShipmentStatus = {
18
18
  Purchased: 'Purchased',
19
19
  RefundPending: 'RefundPending',
20
20
  RefundRejected: 'RefundRejected',
21
- RefundApplied: 'RefundApplied'
21
+ RefundApplied: 'RefundApplied',
22
22
  };
@@ -15,5 +15,5 @@
15
15
  * The type of standard identifier to print on the label.
16
16
  */
17
17
  export const StandardIdForLabel = {
18
- AmazonOrderId: 'AmazonOrderId'
18
+ AmazonOrderId: 'AmazonOrderId',
19
19
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const UnitOfLength = {
18
18
  Inches: 'inches',
19
- Centimeters: 'centimeters'
19
+ Centimeters: 'centimeters',
20
20
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const UnitOfWeight = {
18
18
  Oz: 'oz',
19
- G: 'g'
19
+ G: 'g',
20
20
  };
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.11",
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.30",
22
- "axios": "^1.13.6"
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": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }