@sp-api-sdk/catalog-items-api-2022-04-01 4.2.10 → 4.2.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.
@@ -43,7 +43,7 @@ const CatalogItemsApiAxiosParamCreator = function (configuration) {
43
43
  // verify required parameter 'marketplaceIds' is not null or undefined
44
44
  (0, common_1.assertParamExists)('getCatalogItem', 'marketplaceIds', marketplaceIds);
45
45
  const localVarPath = `/catalog/2022-04-01/items/{asin}`
46
- .replace(`{${"asin"}}`, encodeURIComponent(String(asin)));
46
+ .replace('{asin}', encodeURIComponent(String(asin)));
47
47
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
48
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
49
49
  let baseOptions;
@@ -257,7 +257,7 @@ exports.GetCatalogItemIncludedDataEnum = {
257
257
  Relationships: 'relationships',
258
258
  SalesRanks: 'salesRanks',
259
259
  Summaries: 'summaries',
260
- VendorDetails: 'vendorDetails'
260
+ VendorDetails: 'vendorDetails',
261
261
  };
262
262
  exports.SearchCatalogItemsIdentifiersTypeEnum = {
263
263
  Asin: 'ASIN',
@@ -267,7 +267,7 @@ exports.SearchCatalogItemsIdentifiersTypeEnum = {
267
267
  Jan: 'JAN',
268
268
  Minsan: 'MINSAN',
269
269
  Sku: 'SKU',
270
- Upc: 'UPC'
270
+ Upc: 'UPC',
271
271
  };
272
272
  exports.SearchCatalogItemsIncludedDataEnum = {
273
273
  Attributes: 'attributes',
@@ -279,5 +279,5 @@ exports.SearchCatalogItemsIncludedDataEnum = {
279
279
  Relationships: 'relationships',
280
280
  SalesRanks: 'salesRanks',
281
281
  Summaries: 'summaries',
282
- VendorDetails: 'vendorDetails'
282
+ VendorDetails: 'vendorDetails',
283
283
  };
@@ -90,6 +90,7 @@ exports.setSearchParams = setSearchParams;
90
90
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
91
91
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
92
92
  */
93
+ // @ts-ignore
93
94
  const replaceWithSerializableTypeIfNeeded = function (key, value) {
94
95
  if (value instanceof Set) {
95
96
  return Array.from(value);
@@ -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;
@@ -24,5 +24,5 @@ exports.ItemImageVariantEnum = {
24
24
  Pt06: 'PT06',
25
25
  Pt07: 'PT07',
26
26
  Pt08: 'PT08',
27
- Swch: 'SWCH'
27
+ Swch: 'SWCH',
28
28
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ItemRelationshipTypeEnum = void 0;
17
17
  exports.ItemRelationshipTypeEnum = {
18
18
  Variation: 'VARIATION',
19
- PackageHierarchy: 'PACKAGE_HIERARCHY'
19
+ PackageHierarchy: 'PACKAGE_HIERARCHY',
20
20
  };
@@ -18,5 +18,5 @@ exports.ItemSummaryByMarketplaceItemClassificationEnum = {
18
18
  BaseProduct: 'BASE_PRODUCT',
19
19
  Other: 'OTHER',
20
20
  ProductBundle: 'PRODUCT_BUNDLE',
21
- VariationParent: 'VARIATION_PARENT'
21
+ VariationParent: 'VARIATION_PARENT',
22
22
  };
@@ -24,5 +24,5 @@ exports.ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = {
24
24
  NonReplenishable: 'NON_REPLENISHABLE',
25
25
  NonStockupable: 'NON_STOCKUPABLE',
26
26
  Obsolete: 'OBSOLETE',
27
- PlannedReplenishment: 'PLANNED_REPLENISHMENT'
27
+ PlannedReplenishment: 'PLANNED_REPLENISHMENT',
28
28
  };
@@ -37,7 +37,7 @@ export const CatalogItemsApiAxiosParamCreator = function (configuration) {
37
37
  // verify required parameter 'marketplaceIds' is not null or undefined
38
38
  assertParamExists('getCatalogItem', 'marketplaceIds', marketplaceIds);
39
39
  const localVarPath = `/catalog/2022-04-01/items/{asin}`
40
- .replace(`{${"asin"}}`, encodeURIComponent(String(asin)));
40
+ .replace('{asin}', encodeURIComponent(String(asin)));
41
41
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
42
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43
43
  let baseOptions;
@@ -247,7 +247,7 @@ export const GetCatalogItemIncludedDataEnum = {
247
247
  Relationships: 'relationships',
248
248
  SalesRanks: 'salesRanks',
249
249
  Summaries: 'summaries',
250
- VendorDetails: 'vendorDetails'
250
+ VendorDetails: 'vendorDetails',
251
251
  };
252
252
  export const SearchCatalogItemsIdentifiersTypeEnum = {
253
253
  Asin: 'ASIN',
@@ -257,7 +257,7 @@ export const SearchCatalogItemsIdentifiersTypeEnum = {
257
257
  Jan: 'JAN',
258
258
  Minsan: 'MINSAN',
259
259
  Sku: 'SKU',
260
- Upc: 'UPC'
260
+ Upc: 'UPC',
261
261
  };
262
262
  export const SearchCatalogItemsIncludedDataEnum = {
263
263
  Attributes: 'attributes',
@@ -269,5 +269,5 @@ export const SearchCatalogItemsIncludedDataEnum = {
269
269
  Relationships: 'relationships',
270
270
  SalesRanks: 'salesRanks',
271
271
  Summaries: 'summaries',
272
- VendorDetails: 'vendorDetails'
272
+ VendorDetails: 'vendorDetails',
273
273
  };
@@ -81,6 +81,7 @@ export const setSearchParams = function (url, ...objects) {
81
81
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
82
82
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
83
83
  */
84
+ // @ts-ignore
84
85
  export const replaceWithSerializableTypeIfNeeded = function (key, value) {
85
86
  if (value instanceof Set) {
86
87
  return Array.from(value);
@@ -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
  }
@@ -21,5 +21,5 @@ export const ItemImageVariantEnum = {
21
21
  Pt06: 'PT06',
22
22
  Pt07: 'PT07',
23
23
  Pt08: 'PT08',
24
- Swch: 'SWCH'
24
+ Swch: 'SWCH',
25
25
  };
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const ItemRelationshipTypeEnum = {
15
15
  Variation: 'VARIATION',
16
- PackageHierarchy: 'PACKAGE_HIERARCHY'
16
+ PackageHierarchy: 'PACKAGE_HIERARCHY',
17
17
  };
@@ -15,5 +15,5 @@ export const ItemSummaryByMarketplaceItemClassificationEnum = {
15
15
  BaseProduct: 'BASE_PRODUCT',
16
16
  Other: 'OTHER',
17
17
  ProductBundle: 'PRODUCT_BUNDLE',
18
- VariationParent: 'VARIATION_PARENT'
18
+ VariationParent: 'VARIATION_PARENT',
19
19
  };
@@ -21,5 +21,5 @@ export const ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = {
21
21
  NonReplenishable: 'NON_REPLENISHABLE',
22
22
  NonStockupable: 'NON_STOCKUPABLE',
23
23
  Obsolete: 'OBSOLETE',
24
- PlannedReplenishment: 'PLANNED_REPLENISHMENT'
24
+ PlannedReplenishment: 'PLANNED_REPLENISHMENT',
25
25
  };
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
28
28
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
29
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
30
  */
31
- export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
33
  export declare const toPathString: (url: URL) => string;
34
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/catalog-items-api-2022-04-01",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "Use the Selling Partner API for Catalog Items to retrieve information about items in the Amazon catalog. For more information, refer to the Catalog Items API Use Case Guide.",
5
- "version": "4.2.10",
5
+ "version": "4.2.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.29",
22
- "axios": "^1.13.5"
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
  "catalog items api"
42
42
  ],
43
- "gitHead": "2c1fe783fb7c2204e7e19d4f85fa2bdf822e4593"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }