@sp-api-sdk/catalog-items-api-2022-04-01 4.2.11 → 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.
- package/dist/cjs/api-model/api/catalog-items-api.js +4 -4
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/item-image.js +1 -1
- package/dist/cjs/api-model/models/item-relationship.js +1 -1
- package/dist/cjs/api-model/models/item-summary-by-marketplace.js +1 -1
- package/dist/cjs/api-model/models/item-vendor-details-by-marketplace.js +1 -1
- package/dist/es/api-model/api/catalog-items-api.js +4 -4
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/item-image.js +1 -1
- package/dist/es/api-model/models/item-relationship.js +1 -1
- package/dist/es/api-model/models/item-summary-by-marketplace.js +1 -1
- package/dist/es/api-model/models/item-vendor-details-by-marketplace.js +1 -1
- package/package.json +4 -4
|
@@ -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(
|
|
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
|
};
|
|
@@ -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;
|
|
@@ -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(
|
|
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
|
};
|
|
@@ -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
|
}
|
|
@@ -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
|
};
|
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.
|
|
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.
|
|
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
|
"catalog items api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|