@scaleleap/amazon-marketplaces
Advanced tools
Comparing version 10.3.0 to 11.0.0
@@ -6,2 +6,19 @@ # Changelog | ||
# [11.0.0](https://github.com/ScaleLeap/amazon-marketplaces/compare/v10.3.0...v11.0.0) (2021-03-29) | ||
### Bug Fixes | ||
* uses marketplace specific Seller Central URI ([d9b701f](https://github.com/ScaleLeap/amazon-marketplaces/commit/d9b701fed8ecb00ab40817c6e96d931577fdebc3)) | ||
### Features | ||
* adds sellerCentralUri property ([f0c765e](https://github.com/ScaleLeap/amazon-marketplaces/commit/f0c765e8ee1f57fb02bd36b02f82dd10442b3802)) | ||
### BREAKING CHANGES | ||
* `sellingPartner.sellerCentralAuthUri`. | ||
# [10.3.0](https://github.com/ScaleLeap/amazon-marketplaces/compare/v10.2.0...v10.3.0) (2021-03-19) | ||
@@ -8,0 +25,0 @@ |
@@ -193,6 +193,14 @@ import { AmazonMarketplaceAdvertisingRegion } from './amazon-marketplace-advertising-region'; | ||
* | ||
* 'https://www.amazon.ca/' | ||
* 'https://www.amazon.ca' | ||
*/ | ||
readonly uri: string; | ||
/** | ||
* Amazon Seller Central URI. | ||
* | ||
* @example | ||
* | ||
* 'https://sellercentral.amazon.ca' | ||
*/ | ||
readonly sellerCentralUri?: string; | ||
/** | ||
* [Amazon Marketplace Web Service](https://developer.amazonservices.com/gp/mws/docs.html) (Amazon MWS) Endpoint URI. | ||
@@ -199,0 +207,0 @@ * |
@@ -90,3 +90,13 @@ "use strict"; | ||
constructor(amazonMarketplace) { | ||
var _a; | ||
Object.assign(this, amazonMarketplace); | ||
/** | ||
* https://github.com/amzn/selling-partner-api-docs/blob/main/guides/developer-guide/SellingPartnerApiDeveloperGuide.md#oauth-authorization-uris | ||
*/ | ||
if (amazonMarketplace.sellerCentralUri && | ||
((_a = amazonMarketplace.sellingPartner) === null || _a === void 0 ? void 0 : _a.sellerCentralAuthUri)) { | ||
Object.assign(amazonMarketplace.sellingPartner, { | ||
sellerCentralAuthUri: `${amazonMarketplace.sellerCentralUri}/apps/authorize/consent`, | ||
}); | ||
} | ||
Object.freeze(this); | ||
@@ -93,0 +103,0 @@ } |
@@ -13,2 +13,3 @@ "use strict"; | ||
uri: 'https://www.amazon.ae', | ||
sellerCentralUri: 'https://sellercentral.amazon.ae', | ||
webServiceUri: 'https://mws.amazonservices.ae', | ||
@@ -15,0 +16,0 @@ advertising: { |
@@ -13,2 +13,3 @@ "use strict"; | ||
uri: 'https://www.amazon.com.au', | ||
sellerCentralUri: 'https://sellercentral.amazon.com.au', | ||
webServiceUri: 'https://mws.amazonservices.com.au', | ||
@@ -15,0 +16,0 @@ advertising: { |
@@ -13,2 +13,3 @@ "use strict"; | ||
uri: 'https://www.amazon.com.br', | ||
sellerCentralUri: 'https://sellercentral.amazon.com.br', | ||
webServiceUri: 'https://mws.amazonservices.com', | ||
@@ -15,0 +16,0 @@ advertising: { |
@@ -17,2 +17,3 @@ "use strict"; | ||
webServiceUri: 'https://mws.amazonservices.ca', | ||
sellerCentralUri: 'https://sellercentral.amazon.ca', | ||
advertising: { | ||
@@ -19,0 +20,0 @@ countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.CA, |
@@ -13,2 +13,3 @@ "use strict"; | ||
uri: 'https://www.amazon.de', | ||
sellerCentralUri: 'https://sellercentral.amazon.de', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -15,0 +16,0 @@ advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.DE), |
@@ -14,2 +14,3 @@ "use strict"; | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
sellerCentralUri: 'https://sellercentral.amazon.es', | ||
advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.ES), | ||
@@ -16,0 +17,0 @@ sellingPartner: { |
@@ -14,2 +14,3 @@ "use strict"; | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
sellerCentralUri: 'https://sellercentral.amazon.fr', | ||
advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.FR), | ||
@@ -16,0 +17,0 @@ sellingPartner: { |
@@ -17,2 +17,3 @@ "use strict"; | ||
uri: 'https://www.amazon.co.uk', | ||
sellerCentralUri: 'https://sellercentral.amazon.co.uk', | ||
webServiceUri: de_1.DE.webServiceUri, | ||
@@ -19,0 +20,0 @@ advertising: { |
@@ -12,2 +12,3 @@ "use strict"; | ||
uri: 'https://www.amazon.in', | ||
sellerCentralUri: 'https://sellercentral.amazon.in', | ||
webServiceUri: 'https://mws.amazonservices.in', | ||
@@ -14,0 +15,0 @@ sellingPartner: { |
@@ -13,2 +13,3 @@ "use strict"; | ||
uri: 'https://www.amazon.it', | ||
sellerCentralUri: 'https://sellercentral.amazon.it', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -15,0 +16,0 @@ advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.DE), |
@@ -13,2 +13,3 @@ "use strict"; | ||
uri: 'https://www.amazon.co.jp', | ||
sellerCentralUri: 'https://sellercentral.amazon.co.jp', | ||
webServiceUri: 'https://mws.amazonservices.jp', | ||
@@ -15,0 +16,0 @@ advertising: { |
@@ -13,2 +13,3 @@ "use strict"; | ||
uri: 'https://www.amazon.com.mx', | ||
sellerCentralUri: 'https://sellercentral.amazon.com.mx', | ||
webServiceUri: 'https://mws.amazonservices.com.mx', | ||
@@ -15,0 +16,0 @@ advertising: { |
@@ -14,2 +14,3 @@ "use strict"; | ||
uri: 'https://www.amazon.nl', | ||
sellerCentralUri: 'https://sellercentral.amazon.nl', | ||
webServiceUri: de_1.DE.webServiceUri, | ||
@@ -16,0 +17,0 @@ advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.NL), |
@@ -12,2 +12,3 @@ "use strict"; | ||
uri: 'https://www.amazon.pl', | ||
sellerCentralUri: 'https://sellercentral.amazon.pl', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -14,0 +15,0 @@ sellingPartner: { |
@@ -11,4 +11,5 @@ "use strict"; | ||
uri: 'https://www.amazon.sa', | ||
sellerCentralUri: 'https://sellercentral.amazon.sa', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
}); | ||
//# sourceMappingURL=sa.js.map |
@@ -12,2 +12,3 @@ "use strict"; | ||
uri: 'https://www.amazon.se', | ||
sellerCentralUri: 'https://sellercentral.amazon.se', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -14,0 +15,0 @@ sellingPartner: { |
@@ -12,2 +12,3 @@ "use strict"; | ||
uri: 'https://www.amazon.sg', | ||
sellerCentralUri: 'https://sellercentral.amazon.sg', | ||
webServiceUri: 'https://mws-fe.amazonservices.com', | ||
@@ -14,0 +15,0 @@ sellingPartner: { |
@@ -12,2 +12,3 @@ "use strict"; | ||
uri: 'https://www.amazon.com.tr', | ||
sellerCentralUri: 'https://sellercentral.amazon.com.tr', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -14,0 +15,0 @@ sellingPartner: { |
@@ -13,2 +13,3 @@ "use strict"; | ||
uri: 'https://www.amazon.com', | ||
sellerCentralUri: 'https://sellercentral.amazon.com', | ||
webServiceUri: 'https://mws.amazonservices.com', | ||
@@ -15,0 +16,0 @@ advertising: { |
@@ -18,3 +18,3 @@ { | ||
}, | ||
"version": "10.3.0", | ||
"version": "11.0.0", | ||
"main": "lib/index.js", | ||
@@ -39,3 +39,3 @@ "scripts": { | ||
"@types/node": "13.13.45", | ||
"danger": "10.6.3", | ||
"danger": "10.6.4", | ||
"jest": "26.6.3", | ||
@@ -45,3 +45,3 @@ "rimraf": "3.0.2", | ||
"tsconfigs": "4.0.2", | ||
"typedoc": "0.20.32", | ||
"typedoc": "0.20.34", | ||
"typescript": "4.2.3" | ||
@@ -48,0 +48,0 @@ }, |
@@ -211,3 +211,3 @@ import { AmazonMarketplaceAdvertisingRegion } from './amazon-marketplace-advertising-region' | ||
* | ||
* 'https://www.amazon.ca/' | ||
* 'https://www.amazon.ca' | ||
*/ | ||
@@ -217,2 +217,11 @@ readonly uri: string | ||
/** | ||
* Amazon Seller Central URI. | ||
* | ||
* @example | ||
* | ||
* 'https://sellercentral.amazon.ca' | ||
*/ | ||
readonly sellerCentralUri?: string | ||
/** | ||
* [Amazon Marketplace Web Service](https://developer.amazonservices.com/gp/mws/docs.html) (Amazon MWS) Endpoint URI. | ||
@@ -240,4 +249,17 @@ * | ||
Object.assign(this, amazonMarketplace) | ||
/** | ||
* https://github.com/amzn/selling-partner-api-docs/blob/main/guides/developer-guide/SellingPartnerApiDeveloperGuide.md#oauth-authorization-uris | ||
*/ | ||
if ( | ||
amazonMarketplace.sellerCentralUri && | ||
amazonMarketplace.sellingPartner?.sellerCentralAuthUri | ||
) { | ||
Object.assign(amazonMarketplace.sellingPartner, { | ||
sellerCentralAuthUri: `${amazonMarketplace.sellerCentralUri}/apps/authorize/consent`, | ||
}) | ||
} | ||
Object.freeze(this) | ||
} | ||
} |
@@ -17,2 +17,3 @@ import { | ||
uri: 'https://www.amazon.ae', | ||
sellerCentralUri: 'https://sellercentral.amazon.ae', | ||
webServiceUri: 'https://mws.amazonservices.ae', | ||
@@ -19,0 +20,0 @@ advertising: { |
@@ -17,2 +17,3 @@ import { | ||
uri: 'https://www.amazon.com.au', | ||
sellerCentralUri: 'https://sellercentral.amazon.com.au', | ||
webServiceUri: 'https://mws.amazonservices.com.au', | ||
@@ -19,0 +20,0 @@ advertising: { |
@@ -17,2 +17,3 @@ import { | ||
uri: 'https://www.amazon.com.br', | ||
sellerCentralUri: 'https://sellercentral.amazon.com.br', | ||
webServiceUri: 'https://mws.amazonservices.com', | ||
@@ -19,0 +20,0 @@ advertising: { |
@@ -21,2 +21,3 @@ import { | ||
webServiceUri: 'https://mws.amazonservices.ca', | ||
sellerCentralUri: 'https://sellercentral.amazon.ca', | ||
advertising: { | ||
@@ -23,0 +24,0 @@ countryCode: AmazonMarketplaceAdvertisingCountryCode.CA, |
@@ -16,2 +16,3 @@ import { | ||
uri: 'https://www.amazon.de', | ||
sellerCentralUri: 'https://sellercentral.amazon.de', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -18,0 +19,0 @@ advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.DE), |
@@ -17,2 +17,3 @@ import { | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
sellerCentralUri: 'https://sellercentral.amazon.es', | ||
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.ES), | ||
@@ -19,0 +20,0 @@ sellingPartner: { |
@@ -17,2 +17,3 @@ import { | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
sellerCentralUri: 'https://sellercentral.amazon.fr', | ||
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.FR), | ||
@@ -19,0 +20,0 @@ sellingPartner: { |
@@ -22,2 +22,3 @@ import { | ||
uri: 'https://www.amazon.co.uk', | ||
sellerCentralUri: 'https://sellercentral.amazon.co.uk', | ||
webServiceUri: DE.webServiceUri, | ||
@@ -24,0 +25,0 @@ advertising: { |
@@ -14,2 +14,3 @@ import { | ||
uri: 'https://www.amazon.in', | ||
sellerCentralUri: 'https://sellercentral.amazon.in', | ||
webServiceUri: 'https://mws.amazonservices.in', | ||
@@ -16,0 +17,0 @@ sellingPartner: { |
@@ -16,2 +16,3 @@ import { | ||
uri: 'https://www.amazon.it', | ||
sellerCentralUri: 'https://sellercentral.amazon.it', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -18,0 +19,0 @@ advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.DE), |
@@ -17,2 +17,3 @@ import { | ||
uri: 'https://www.amazon.co.jp', | ||
sellerCentralUri: 'https://sellercentral.amazon.co.jp', | ||
webServiceUri: 'https://mws.amazonservices.jp', | ||
@@ -19,0 +20,0 @@ advertising: { |
@@ -17,2 +17,3 @@ import { | ||
uri: 'https://www.amazon.com.mx', | ||
sellerCentralUri: 'https://sellercentral.amazon.com.mx', | ||
webServiceUri: 'https://mws.amazonservices.com.mx', | ||
@@ -19,0 +20,0 @@ advertising: { |
@@ -17,2 +17,3 @@ import { | ||
uri: 'https://www.amazon.nl', | ||
sellerCentralUri: 'https://sellercentral.amazon.nl', | ||
webServiceUri: DE.webServiceUri, | ||
@@ -19,0 +20,0 @@ advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.NL), |
@@ -14,2 +14,3 @@ import { | ||
uri: 'https://www.amazon.pl', | ||
sellerCentralUri: 'https://sellercentral.amazon.pl', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -16,0 +17,0 @@ sellingPartner: { |
@@ -13,3 +13,4 @@ import { | ||
uri: 'https://www.amazon.sa', | ||
sellerCentralUri: 'https://sellercentral.amazon.sa', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
}) |
@@ -14,2 +14,3 @@ import { | ||
uri: 'https://www.amazon.se', | ||
sellerCentralUri: 'https://sellercentral.amazon.se', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -16,0 +17,0 @@ sellingPartner: { |
@@ -14,2 +14,3 @@ import { | ||
uri: 'https://www.amazon.sg', | ||
sellerCentralUri: 'https://sellercentral.amazon.sg', | ||
webServiceUri: 'https://mws-fe.amazonservices.com', | ||
@@ -16,0 +17,0 @@ sellingPartner: { |
@@ -14,2 +14,3 @@ import { | ||
uri: 'https://www.amazon.com.tr', | ||
sellerCentralUri: 'https://sellercentral.amazon.com.tr', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
@@ -16,0 +17,0 @@ sellingPartner: { |
@@ -17,2 +17,3 @@ import { | ||
uri: 'https://www.amazon.com', | ||
sellerCentralUri: 'https://sellercentral.amazon.com', | ||
webServiceUri: 'https://mws.amazonservices.com', | ||
@@ -19,0 +20,0 @@ advertising: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
164651
2648