@sp-api-sdk/fba-inventory-api-v1 3.0.21 → 3.0.22

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.
@@ -107,7 +107,7 @@ const FbaInventoryApiAxiosParamCreator = function (configuration) {
107
107
  // verify required parameter 'marketplaceId' is not null or undefined
108
108
  (0, common_1.assertParamExists)('deleteInventoryItem', 'marketplaceId', marketplaceId);
109
109
  const localVarPath = `/fba/inventory/v1/items/{sellerSku}`
110
- .replace(`{${"sellerSku"}}`, encodeURIComponent(String(sellerSku)));
110
+ .replace('{sellerSku}', encodeURIComponent(String(sellerSku)));
111
111
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
112
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
113
  let baseOptions;
@@ -351,5 +351,5 @@ class FbaInventoryApi extends base_1.BaseAPI {
351
351
  }
352
352
  exports.FbaInventoryApi = FbaInventoryApi;
353
353
  exports.GetInventorySummariesGranularityTypeEnum = {
354
- Marketplace: 'Marketplace'
354
+ Marketplace: 'Marketplace',
355
355
  };
@@ -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;
@@ -17,5 +17,5 @@ exports.ResearchingQuantityEntryNameEnum = void 0;
17
17
  exports.ResearchingQuantityEntryNameEnum = {
18
18
  ResearchingQuantityInShortTerm: 'researchingQuantityInShortTerm',
19
19
  ResearchingQuantityInMidTerm: 'researchingQuantityInMidTerm',
20
- ResearchingQuantityInLongTerm: 'researchingQuantityInLongTerm'
20
+ ResearchingQuantityInLongTerm: 'researchingQuantityInLongTerm',
21
21
  };
@@ -101,7 +101,7 @@ export const FbaInventoryApiAxiosParamCreator = function (configuration) {
101
101
  // verify required parameter 'marketplaceId' is not null or undefined
102
102
  assertParamExists('deleteInventoryItem', 'marketplaceId', marketplaceId);
103
103
  const localVarPath = `/fba/inventory/v1/items/{sellerSku}`
104
- .replace(`{${"sellerSku"}}`, encodeURIComponent(String(sellerSku)));
104
+ .replace('{sellerSku}', encodeURIComponent(String(sellerSku)));
105
105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
106
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
107
  let baseOptions;
@@ -341,5 +341,5 @@ export class FbaInventoryApi extends BaseAPI {
341
341
  }
342
342
  }
343
343
  export const GetInventorySummariesGranularityTypeEnum = {
344
- Marketplace: 'Marketplace'
344
+ Marketplace: 'Marketplace',
345
345
  };
@@ -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
  }
@@ -14,5 +14,5 @@
14
14
  export const ResearchingQuantityEntryNameEnum = {
15
15
  ResearchingQuantityInShortTerm: 'researchingQuantityInShortTerm',
16
16
  ResearchingQuantityInMidTerm: 'researchingQuantityInMidTerm',
17
- ResearchingQuantityInLongTerm: 'researchingQuantityInLongTerm'
17
+ ResearchingQuantityInLongTerm: 'researchingQuantityInLongTerm',
18
18
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/fba-inventory-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.",
5
- "version": "3.0.21",
5
+ "version": "3.0.22",
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
  "fba inventory api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }