@sp-api-sdk/fulfillment-inbound-api-v0 4.1.14 → 4.1.15

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.
@@ -38,7 +38,7 @@ const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
38
38
  // verify required parameter 'shipmentId' is not null or undefined
39
39
  (0, common_1.assertParamExists)('getBillOfLading', 'shipmentId', shipmentId);
40
40
  const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/billOfLading`
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;
@@ -78,7 +78,7 @@ const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
78
78
  // verify required parameter 'labelType' is not null or undefined
79
79
  (0, common_1.assertParamExists)('getLabels', 'labelType', labelType);
80
80
  const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/labels`
81
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
81
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
82
82
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
83
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
84
84
  let baseOptions;
@@ -221,7 +221,7 @@ const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
221
221
  // verify required parameter 'shipmentId' is not null or undefined
222
222
  (0, common_1.assertParamExists)('getShipmentItemsByShipmentId', 'shipmentId', shipmentId);
223
223
  const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/items`
224
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
224
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
225
225
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
226
226
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
227
227
  let baseOptions;
@@ -543,21 +543,21 @@ exports.GetLabelsPageTypeEnum = {
543
543
  PackageLabelThermal: 'PackageLabel_Thermal',
544
544
  PackageLabelThermalUnified: 'PackageLabel_Thermal_Unified',
545
545
  PackageLabelThermalNonPcp: 'PackageLabel_Thermal_NonPCP',
546
- PackageLabelThermalNoCarrierRotation: 'PackageLabel_Thermal_No_Carrier_Rotation'
546
+ PackageLabelThermalNoCarrierRotation: 'PackageLabel_Thermal_No_Carrier_Rotation',
547
547
  };
548
548
  exports.GetLabelsLabelTypeEnum = {
549
549
  Barcode2D: 'BARCODE_2D',
550
550
  Unique: 'UNIQUE',
551
- Pallet: 'PALLET'
551
+ Pallet: 'PALLET',
552
552
  };
553
553
  exports.GetShipmentItemsQueryTypeEnum = {
554
554
  DateRange: 'DATE_RANGE',
555
- NextToken: 'NEXT_TOKEN'
555
+ NextToken: 'NEXT_TOKEN',
556
556
  };
557
557
  exports.GetShipmentsQueryTypeEnum = {
558
558
  Shipment: 'SHIPMENT',
559
559
  DateRange: 'DATE_RANGE',
560
- NextToken: 'NEXT_TOKEN'
560
+ NextToken: 'NEXT_TOKEN',
561
561
  };
562
562
  exports.GetShipmentsShipmentStatusListEnum = {
563
563
  Working: 'WORKING',
@@ -570,5 +570,5 @@ exports.GetShipmentsShipmentStatusListEnum = {
570
570
  Error: 'ERROR',
571
571
  InTransit: 'IN_TRANSIT',
572
572
  Delivered: 'DELIVERED',
573
- CheckedIn: 'CHECKED_IN'
573
+ CheckedIn: 'CHECKED_IN',
574
574
  };
@@ -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.BarcodeInstruction = void 0;
20
20
  exports.BarcodeInstruction = {
21
21
  RequiresFnskuLabel: 'RequiresFNSKULabel',
22
22
  CanUseOriginalBarcode: 'CanUseOriginalBarcode',
23
- MustProvideSellerSku: 'MustProvideSellerSKU'
23
+ MustProvideSellerSku: 'MustProvideSellerSKU',
24
24
  };
@@ -21,5 +21,5 @@ exports.BoxContentsSource = {
21
21
  None: 'NONE',
22
22
  Feed: 'FEED',
23
23
  _2DBarcode: '2D_BARCODE',
24
- Interactive: 'INTERACTIVE'
24
+ Interactive: 'INTERACTIVE',
25
25
  };
@@ -19,5 +19,5 @@ exports.CurrencyCode = void 0;
19
19
  */
20
20
  exports.CurrencyCode = {
21
21
  Usd: 'USD',
22
- Gbp: 'GBP'
22
+ Gbp: 'GBP',
23
23
  };
@@ -19,5 +19,5 @@ exports.ErrorReason = void 0;
19
19
  */
20
20
  exports.ErrorReason = {
21
21
  DoesNotExist: 'DoesNotExist',
22
- InvalidAsin: 'InvalidASIN'
22
+ InvalidAsin: 'InvalidASIN',
23
23
  };
@@ -20,5 +20,5 @@ exports.LabelPrepType = void 0;
20
20
  exports.LabelPrepType = {
21
21
  NoLabel: 'NO_LABEL',
22
22
  SellerLabel: 'SELLER_LABEL',
23
- AmazonLabel: 'AMAZON_LABEL'
23
+ AmazonLabel: 'AMAZON_LABEL',
24
24
  };
@@ -20,5 +20,5 @@ exports.PrepGuidance = void 0;
20
20
  exports.PrepGuidance = {
21
21
  ConsultHelpDocuments: 'ConsultHelpDocuments',
22
22
  NoAdditionalPrepRequired: 'NoAdditionalPrepRequired',
23
- SeePrepInstructionsList: 'SeePrepInstructionsList'
23
+ SeePrepInstructionsList: 'SeePrepInstructionsList',
24
24
  };
@@ -33,5 +33,5 @@ exports.PrepInstruction = {
33
33
  SetStickering: 'SetStickering',
34
34
  BlankStickering: 'BlankStickering',
35
35
  ShipsInProductPackaging: 'ShipsInProductPackaging',
36
- NoPrep: 'NoPrep'
36
+ NoPrep: 'NoPrep',
37
37
  };
@@ -19,5 +19,5 @@ exports.PrepOwner = void 0;
19
19
  */
20
20
  exports.PrepOwner = {
21
21
  Amazon: 'AMAZON',
22
- Seller: 'SELLER'
22
+ Seller: 'SELLER',
23
23
  };
@@ -27,5 +27,5 @@ exports.ShipmentStatus = {
27
27
  Error: 'ERROR',
28
28
  InTransit: 'IN_TRANSIT',
29
29
  Delivered: 'DELIVERED',
30
- CheckedIn: 'CHECKED_IN'
30
+ CheckedIn: 'CHECKED_IN',
31
31
  };
@@ -32,7 +32,7 @@ export const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
32
32
  // verify required parameter 'shipmentId' is not null or undefined
33
33
  assertParamExists('getBillOfLading', 'shipmentId', shipmentId);
34
34
  const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/billOfLading`
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;
@@ -72,7 +72,7 @@ export const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
72
72
  // verify required parameter 'labelType' is not null or undefined
73
73
  assertParamExists('getLabels', 'labelType', labelType);
74
74
  const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/labels`
75
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
75
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
76
76
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
77
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
78
78
  let baseOptions;
@@ -215,7 +215,7 @@ export const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
215
215
  // verify required parameter 'shipmentId' is not null or undefined
216
216
  assertParamExists('getShipmentItemsByShipmentId', 'shipmentId', shipmentId);
217
217
  const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/items`
218
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
218
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
219
219
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
220
220
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
221
221
  let baseOptions;
@@ -533,21 +533,21 @@ export const GetLabelsPageTypeEnum = {
533
533
  PackageLabelThermal: 'PackageLabel_Thermal',
534
534
  PackageLabelThermalUnified: 'PackageLabel_Thermal_Unified',
535
535
  PackageLabelThermalNonPcp: 'PackageLabel_Thermal_NonPCP',
536
- PackageLabelThermalNoCarrierRotation: 'PackageLabel_Thermal_No_Carrier_Rotation'
536
+ PackageLabelThermalNoCarrierRotation: 'PackageLabel_Thermal_No_Carrier_Rotation',
537
537
  };
538
538
  export const GetLabelsLabelTypeEnum = {
539
539
  Barcode2D: 'BARCODE_2D',
540
540
  Unique: 'UNIQUE',
541
- Pallet: 'PALLET'
541
+ Pallet: 'PALLET',
542
542
  };
543
543
  export const GetShipmentItemsQueryTypeEnum = {
544
544
  DateRange: 'DATE_RANGE',
545
- NextToken: 'NEXT_TOKEN'
545
+ NextToken: 'NEXT_TOKEN',
546
546
  };
547
547
  export const GetShipmentsQueryTypeEnum = {
548
548
  Shipment: 'SHIPMENT',
549
549
  DateRange: 'DATE_RANGE',
550
- NextToken: 'NEXT_TOKEN'
550
+ NextToken: 'NEXT_TOKEN',
551
551
  };
552
552
  export const GetShipmentsShipmentStatusListEnum = {
553
553
  Working: 'WORKING',
@@ -560,5 +560,5 @@ export const GetShipmentsShipmentStatusListEnum = {
560
560
  Error: 'ERROR',
561
561
  InTransit: 'IN_TRANSIT',
562
562
  Delivered: 'DELIVERED',
563
- CheckedIn: 'CHECKED_IN'
563
+ CheckedIn: 'CHECKED_IN',
564
564
  };
@@ -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 BarcodeInstruction = {
18
18
  RequiresFnskuLabel: 'RequiresFNSKULabel',
19
19
  CanUseOriginalBarcode: 'CanUseOriginalBarcode',
20
- MustProvideSellerSku: 'MustProvideSellerSKU'
20
+ MustProvideSellerSku: 'MustProvideSellerSKU',
21
21
  };
@@ -18,5 +18,5 @@ export const BoxContentsSource = {
18
18
  None: 'NONE',
19
19
  Feed: 'FEED',
20
20
  _2DBarcode: '2D_BARCODE',
21
- Interactive: 'INTERACTIVE'
21
+ Interactive: 'INTERACTIVE',
22
22
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const CurrencyCode = {
18
18
  Usd: 'USD',
19
- Gbp: 'GBP'
19
+ Gbp: 'GBP',
20
20
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const ErrorReason = {
18
18
  DoesNotExist: 'DoesNotExist',
19
- InvalidAsin: 'InvalidASIN'
19
+ InvalidAsin: 'InvalidASIN',
20
20
  };
@@ -17,5 +17,5 @@
17
17
  export const LabelPrepType = {
18
18
  NoLabel: 'NO_LABEL',
19
19
  SellerLabel: 'SELLER_LABEL',
20
- AmazonLabel: 'AMAZON_LABEL'
20
+ AmazonLabel: 'AMAZON_LABEL',
21
21
  };
@@ -17,5 +17,5 @@
17
17
  export const PrepGuidance = {
18
18
  ConsultHelpDocuments: 'ConsultHelpDocuments',
19
19
  NoAdditionalPrepRequired: 'NoAdditionalPrepRequired',
20
- SeePrepInstructionsList: 'SeePrepInstructionsList'
20
+ SeePrepInstructionsList: 'SeePrepInstructionsList',
21
21
  };
@@ -30,5 +30,5 @@ export const PrepInstruction = {
30
30
  SetStickering: 'SetStickering',
31
31
  BlankStickering: 'BlankStickering',
32
32
  ShipsInProductPackaging: 'ShipsInProductPackaging',
33
- NoPrep: 'NoPrep'
33
+ NoPrep: 'NoPrep',
34
34
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const PrepOwner = {
18
18
  Amazon: 'AMAZON',
19
- Seller: 'SELLER'
19
+ Seller: 'SELLER',
20
20
  };
@@ -24,5 +24,5 @@ export const ShipmentStatus = {
24
24
  Error: 'ERROR',
25
25
  InTransit: 'IN_TRANSIT',
26
26
  Delivered: 'DELIVERED',
27
- CheckedIn: 'CHECKED_IN'
27
+ CheckedIn: 'CHECKED_IN',
28
28
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/fulfillment-inbound-api-v0",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.",
5
- "version": "4.1.14",
5
+ "version": "4.1.15",
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
  "fulfillment inbound api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }