@bizon/amazon-ids
Advanced tools
Comparing version 2.14.0 to 3.0.0
@@ -1,2 +0,2 @@ | ||
function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=/*#__PURE__*/e(require("mem")),n={na:"mws.amazonservices.com",eu:"mws-eu.amazonservices.com",fe:"mws-fe.amazonservices.com",ca:"mws.amazonservices.ca",mx:"mws.amazonservices.com.mx",ae:"mws.amazonservices.ae",in:"mws.amazonservices.in",jp:"mws.amazonservices.jp",au:"mws.amazonservices.com.au"},o=[{code:"be",currencyCode:"EUR",domain:"amazon.com.be",id:"AMEN7PMS3EDWL",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Belgium",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.be",vendorCentralDomain:"vendorcentral.amazon.com.be",vendorId:"A3Q3FYJVX702M2"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"de",currencyCode:"EUR",domain:"amazon.de",id:"A1PA6795UKMFR9",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Germany",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.de",vendorId:"A3JWKAKR8XB7XF"},{code:"de-non-amazon",currencyCode:"EUR",id:"A38D8NSA03LJTC",name:"Germany - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"es",currencyCode:"EUR",domain:"amazon.es",id:"A1RKKUPIHCS9HS",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Spain",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.es",vendorId:"A1AT7YVPFBWXBL"},{code:"es-non-amazon",currencyCode:"EUR",id:"AFQLKURYRPEL8",name:"Spain - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"fr",currencyCode:"EUR",domain:"amazon.fr",id:"A13V1IB3VIYZZH",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"France",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.fr",vendorId:"A1X6FK5RDHNB96"},{code:"fr-non-amazon",currencyCode:"EUR",id:"A1ZFFQZ3HTUKT9",name:"France - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"it",currencyCode:"EUR",domain:"amazon.it",id:"APJ6JRA9NG5V4",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Italy",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.it",vendorId:"A11IL2PNWYJU7H"},{code:"it-non-amazon",currencyCode:"EUR",id:"A62U237T8HV6N",name:"Italy - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"uk",currencyCode:"GBP",domain:"amazon.co.uk",id:"A1F83G8C2ARO7P",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"United Kingdom",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.co.uk",vendorId:"A3P5ROKL5A1OLE"},{code:"uk-non-amazon",currencyCode:"GBP",id:"AZMDEXL2RVFNN",name:"United Kingdom - Non-Amazon",region:"eu"},{code:"tr",currencyCode:"TRY",domain:"amazon.com.tr",id:"A33AVAJ2PDY3EV",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Turkey",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.tr",vendorCentralDomain:"vendorcentral.amazon.com.tr",vendorId:"A1UNQM1SR2CHM"},{code:"eg",currencyCode:"EGP",domain:"amazon.eg",id:"ARBP9OOSHTCHU",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Egypt",region:"eu",sellerCentralDomain:"sellercentral.amazon.eg",vendorCentralDomain:"vendorcentral.amazon.me",vendorId:"A1ZVRGNO5AYLOV"},{code:"sa",currencyCode:"SAR",domain:"amazon.sa",id:"A17E79C6D8DWNP",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Saudi Arabia",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.sa",vendorId:"A2XPWB6MYN7ZDK"},{code:"nl",currencyCode:"EUR",domain:"amazon.nl",id:"A1805IZSGTT6HS",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Netherlands",region:"eu",sellerCentralDomain:"sellercentral.amazon.nl",vendorCentralDomain:"vendorcentral.amazon.nl",vendorId:"A17D2BRD4YMT0X"},{code:"se",currencyCode:"SEK",domain:"amazon.se",id:"A2NODRKZP88ZB9",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Sweden",region:"eu",sellerCentralDomain:"sellercentral.amazon.se",vendorCentralDomain:"vendorcentral.amazon.se",vendorId:"ANU9KP01APNAG"},{code:"pl",currencyCode:"PLN",domain:"amazon.pl",id:"A1C3SOZRARQ6R3",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Poland",region:"eu",sellerCentralDomain:"sellercentral.amazon.pl",vendorCentralDomain:"vendorcentral.amazon.pl",vendorId:"A2R2221NX79QZP"},{advertisingApiDomain:"advertising-api.amazon.com",code:"ca",currencyCode:"CAD",domain:"amazon.ca",id:"A2EUQ1WTGCTBG2",imagesDomain:"images-na.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.ca",name:"Canada",region:"na",sellerCentralDomain:"sellercentral.amazon.ca",vendorCentralDomain:"vendorcentral.amazon.ca",vendorId:"A3DWYIK6Y9EEQB"},{code:"ca-non-amazon",currencyCode:"CAD",id:"A1MQXOICRS2Z7M",name:"Canada - Non-Amazon",region:"na"},{code:"mx",currencyCode:"MXN",domain:"amazon.com.mx",id:"A1AM78C64UM0Y8",imagesDomain:"images-na.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.com.mx",name:"Mexico",region:"na",sellerCentralDomain:"sellercentral.amazon.com.mx",vendorCentralDomain:"vendorcentral.amazon.com.mx",vendorId:"AVDBXBAVVSXLQ"},{code:"mx-non-amazon",currencyCode:"MXN",id:"A3H6HPSLHAK3XG",name:"Mexico - Non-Amazon",region:"na"},{advertisingApiDomain:"advertising-api.amazon.com",code:"us",currencyCode:"USD",domain:"amazon.com",id:"ATVPDKIKX0DER",imagesDomain:"images-na.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.com",name:"United States",region:"na",sellerCentralDomain:"sellercentral.amazon.com",vendorCentralDomain:"vendorcentral.amazon.com",vendorId:"ATVPDKIKX0DER"},{code:"us-non-amazon",currencyCode:"USD",id:"A2ZV50J4W1RKNI",name:"United States - Non-Amazon",region:"na"},{code:"us-invoicing-shadow",currencyCode:"USD",id:"AHRY1CZE9ZY4H",name:"United States - Invoicing Shadow Marketplace",region:"na"},{code:"br",currencyCode:"BRL",domain:"amazon.com.br",id:"A2Q3Y263D00KWC",imagesDomain:"images-na.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.com",name:"Brazil",region:"na",sellerCentralDomain:"sellercentral.amazon.com.br",vendorCentralDomain:"vendorcentral.amazon.com.br",vendorId:"A1ZZFT5FULY4LN"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"ae",currencyCode:"AED",domain:"amazon.ae",id:"A2VIGQ35RCS4UG",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.ae",name:"United Arab Emirates",region:"eu",sellerCentralDomain:"sellercentral.amazon.ae",vendorCentralDomain:"vendorcentral.amazon.me",vendorId:"A2KKU8J8O8784X"},{code:"in",currencyCode:"INR",domain:"amazon.in",id:"A21TJRUUN4KGV",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.in",name:"India",region:"eu",sellerCentralDomain:"sellercentral.amazon.in",vendorCentralDomain:"vendorcentral.amazon.in"},{advertisingApiDomain:"advertising-api-fe.amazon.com",code:"au",currencyCode:"AUD",domain:"amazon.com.au",id:"A39IBJ37TRP1C6",imagesDomain:"images-fe.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.com.au",name:"Australia",region:"fe",sellerCentralDomain:"sellercentral.amazon.com.au",vendorCentralDomain:"vendorcentral.amazon.com.au",vendorId:"ANEGB3WVEVKZB"},{advertisingApiDomain:"advertising-api-fe.amazon.com",code:"jp",currencyCode:"JPY",domain:"amazon.co.jp",id:"A1VC38T7YXB528",imagesDomain:"images-fe.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.jp",name:"Japan",region:"fe",sellerCentralDomain:"sellercentral.amazon.co.jp",vendorCentralDomain:"vendorcentral.amazon.co.jp",vendorId:"AN1VRQENFRJN5"},{code:"sg",currencyCode:"SGD",domain:"amazon.sg",id:"A19VAU5U5O7RUS",imagesDomain:"images-fe.ssl-images-amazon.com",mwsDomain:"mws-fe.amazonservices.com",name:"Singapore",region:"fe",sellerCentralDomain:"sellercentral.amazon.sg",vendorCentralDomain:"vendorcentral.amazon.com.sg"}],m=a.default(function(e){return o.find(function(a){return a.id===e})}),r=a.default(function(e){return e=e.toLowerCase(),o.find(function(a){return a.code===e})}),i=a.default(function(e){return(e=e.toLowerCase()).startsWith("www.")&&(e=e.slice(4)),o.find(function(a){return a.domain===e})}),s=a.default(function(e){return o.filter(function(a){return a.mwsDomain===e})}),c=a.default(function(e){var a=n[e];return a?s(a):[]});exports.getMarketplaceByCode=r,exports.getMarketplaceByDomain=i,exports.getMarketplaceById=m,exports.getMarketplacesByMwsDomain=s,exports.getMarketplacesByMwsRegion=c,exports.marketplaces=o; | ||
function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=/*#__PURE__*/e(require("mem")),n=[{code:"be",currencyCode:"EUR",domain:"amazon.com.be",id:"AMEN7PMS3EDWL",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Belgium",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.be",vendorCentralDomain:"vendorcentral.amazon.com.be",vendorId:"A3Q3FYJVX702M2"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"de",currencyCode:"EUR",domain:"amazon.de",id:"A1PA6795UKMFR9",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Germany",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.de",vendorId:"A3JWKAKR8XB7XF"},{code:"de-non-amazon",currencyCode:"EUR",id:"A38D8NSA03LJTC",name:"Germany - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"es",currencyCode:"EUR",domain:"amazon.es",id:"A1RKKUPIHCS9HS",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Spain",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.es",vendorId:"A1AT7YVPFBWXBL"},{code:"es-non-amazon",currencyCode:"EUR",id:"AFQLKURYRPEL8",name:"Spain - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"fr",currencyCode:"EUR",domain:"amazon.fr",id:"A13V1IB3VIYZZH",imagesDomain:"images-eu.ssl-images-amazon.com",name:"France",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.fr",vendorId:"A1X6FK5RDHNB96"},{code:"fr-non-amazon",currencyCode:"EUR",id:"A1ZFFQZ3HTUKT9",name:"France - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"it",currencyCode:"EUR",domain:"amazon.it",id:"APJ6JRA9NG5V4",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Italy",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.it",vendorId:"A11IL2PNWYJU7H"},{code:"it-non-amazon",currencyCode:"EUR",id:"A62U237T8HV6N",name:"Italy - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"uk",currencyCode:"GBP",domain:"amazon.co.uk",id:"A1F83G8C2ARO7P",imagesDomain:"images-eu.ssl-images-amazon.com",name:"United Kingdom",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.co.uk",vendorId:"A3P5ROKL5A1OLE"},{code:"uk-non-amazon",currencyCode:"GBP",id:"AZMDEXL2RVFNN",name:"United Kingdom - Non-Amazon",region:"eu"},{code:"tr",currencyCode:"TRY",domain:"amazon.com.tr",id:"A33AVAJ2PDY3EV",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Turkey",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.tr",vendorCentralDomain:"vendorcentral.amazon.com.tr",vendorId:"A1UNQM1SR2CHM"},{code:"eg",currencyCode:"EGP",domain:"amazon.eg",id:"ARBP9OOSHTCHU",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Egypt",region:"eu",sellerCentralDomain:"sellercentral.amazon.eg",vendorCentralDomain:"vendorcentral.amazon.me",vendorId:"A1ZVRGNO5AYLOV"},{code:"sa",currencyCode:"SAR",domain:"amazon.sa",id:"A17E79C6D8DWNP",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Saudi Arabia",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.sa",vendorId:"A2XPWB6MYN7ZDK"},{code:"nl",currencyCode:"EUR",domain:"amazon.nl",id:"A1805IZSGTT6HS",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Netherlands",region:"eu",sellerCentralDomain:"sellercentral.amazon.nl",vendorCentralDomain:"vendorcentral.amazon.nl",vendorId:"A17D2BRD4YMT0X"},{code:"se",currencyCode:"SEK",domain:"amazon.se",id:"A2NODRKZP88ZB9",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Sweden",region:"eu",sellerCentralDomain:"sellercentral.amazon.se",vendorCentralDomain:"vendorcentral.amazon.se",vendorId:"ANU9KP01APNAG"},{code:"pl",currencyCode:"PLN",domain:"amazon.pl",id:"A1C3SOZRARQ6R3",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Poland",region:"eu",sellerCentralDomain:"sellercentral.amazon.pl",vendorCentralDomain:"vendorcentral.amazon.pl",vendorId:"A2R2221NX79QZP"},{advertisingApiDomain:"advertising-api.amazon.com",code:"ca",currencyCode:"CAD",domain:"amazon.ca",id:"A2EUQ1WTGCTBG2",imagesDomain:"images-na.ssl-images-amazon.com",name:"Canada",region:"na",sellerCentralDomain:"sellercentral.amazon.ca",vendorCentralDomain:"vendorcentral.amazon.ca",vendorId:"A3DWYIK6Y9EEQB"},{code:"ca-non-amazon",currencyCode:"CAD",id:"A1MQXOICRS2Z7M",name:"Canada - Non-Amazon",region:"na"},{code:"mx",currencyCode:"MXN",domain:"amazon.com.mx",id:"A1AM78C64UM0Y8",imagesDomain:"images-na.ssl-images-amazon.com",name:"Mexico",region:"na",sellerCentralDomain:"sellercentral.amazon.com.mx",vendorCentralDomain:"vendorcentral.amazon.com.mx",vendorId:"AVDBXBAVVSXLQ"},{code:"mx-non-amazon",currencyCode:"MXN",id:"A3H6HPSLHAK3XG",name:"Mexico - Non-Amazon",region:"na"},{advertisingApiDomain:"advertising-api.amazon.com",code:"us",currencyCode:"USD",domain:"amazon.com",id:"ATVPDKIKX0DER",imagesDomain:"images-na.ssl-images-amazon.com",name:"United States",region:"na",sellerCentralDomain:"sellercentral.amazon.com",vendorCentralDomain:"vendorcentral.amazon.com",vendorId:"ATVPDKIKX0DER"},{code:"us-non-amazon",currencyCode:"USD",id:"A2ZV50J4W1RKNI",name:"United States - Non-Amazon",region:"na"},{code:"us-invoicing-shadow",currencyCode:"USD",id:"AHRY1CZE9ZY4H",name:"United States - Invoicing Shadow Marketplace",region:"na"},{code:"br",currencyCode:"BRL",domain:"amazon.com.br",id:"A2Q3Y263D00KWC",imagesDomain:"images-na.ssl-images-amazon.com",name:"Brazil",region:"na",sellerCentralDomain:"sellercentral.amazon.com.br",vendorCentralDomain:"vendorcentral.amazon.com.br",vendorId:"A1ZZFT5FULY4LN"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"ae",currencyCode:"AED",domain:"amazon.ae",id:"A2VIGQ35RCS4UG",imagesDomain:"images-eu.ssl-images-amazon.com",name:"United Arab Emirates",region:"eu",sellerCentralDomain:"sellercentral.amazon.ae",vendorCentralDomain:"vendorcentral.amazon.me",vendorId:"A2KKU8J8O8784X"},{code:"in",currencyCode:"INR",domain:"amazon.in",id:"A21TJRUUN4KGV",imagesDomain:"images-eu.ssl-images-amazon.com",name:"India",region:"eu",sellerCentralDomain:"sellercentral.amazon.in",vendorCentralDomain:"vendorcentral.amazon.in"},{advertisingApiDomain:"advertising-api-fe.amazon.com",code:"au",currencyCode:"AUD",domain:"amazon.com.au",id:"A39IBJ37TRP1C6",imagesDomain:"images-fe.ssl-images-amazon.com",name:"Australia",region:"fe",sellerCentralDomain:"sellercentral.amazon.com.au",vendorCentralDomain:"vendorcentral.amazon.com.au",vendorId:"ANEGB3WVEVKZB"},{advertisingApiDomain:"advertising-api-fe.amazon.com",code:"jp",currencyCode:"JPY",domain:"amazon.co.jp",id:"A1VC38T7YXB528",imagesDomain:"images-fe.ssl-images-amazon.com",name:"Japan",region:"fe",sellerCentralDomain:"sellercentral.amazon.co.jp",vendorCentralDomain:"vendorcentral.amazon.co.jp",vendorId:"AN1VRQENFRJN5"},{code:"sg",currencyCode:"SGD",domain:"amazon.sg",id:"A19VAU5U5O7RUS",imagesDomain:"images-fe.ssl-images-amazon.com",name:"Singapore",region:"fe",sellerCentralDomain:"sellercentral.amazon.sg",vendorCentralDomain:"vendorcentral.amazon.com.sg"},{code:"za",currencyCode:"ZAR",domain:"amazon.co.za",id:"AE08WJ6YKNBMC",imagesDomain:"images-eu.ssl-images-amazon.com",name:"South Africa",region:"eu",sellerCentralDomain:"sellercentral.amazon.co.za",vendorCentralDomain:"vendorcentral.amazon.co.za"}],o=a.default(function(e){return n.find(function(a){return a.id===e})}),m=a.default(function(e){return e=e.toLowerCase(),n.find(function(a){return a.code===e})}),r=a.default(function(e){return(e=e.toLowerCase()).startsWith("www.")&&(e=e.slice(4)),n.find(function(a){return a.domain===e})});exports.getMarketplaceByCode=m,exports.getMarketplaceByDomain=r,exports.getMarketplaceById=o,exports.marketplaces=n; | ||
//# sourceMappingURL=amazon-ids.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("mem")):"function"==typeof define&&define.amd?define(["exports","mem"],a):a((e||self).amazonIds={},e.mem)}(this,function(e,a){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=/*#__PURE__*/n(a),m={na:"mws.amazonservices.com",eu:"mws-eu.amazonservices.com",fe:"mws-fe.amazonservices.com",ca:"mws.amazonservices.ca",mx:"mws.amazonservices.com.mx",ae:"mws.amazonservices.ae",in:"mws.amazonservices.in",jp:"mws.amazonservices.jp",au:"mws.amazonservices.com.au"},i=[{code:"be",currencyCode:"EUR",domain:"amazon.com.be",id:"AMEN7PMS3EDWL",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Belgium",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.be",vendorCentralDomain:"vendorcentral.amazon.com.be",vendorId:"A3Q3FYJVX702M2"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"de",currencyCode:"EUR",domain:"amazon.de",id:"A1PA6795UKMFR9",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Germany",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.de",vendorId:"A3JWKAKR8XB7XF"},{code:"de-non-amazon",currencyCode:"EUR",id:"A38D8NSA03LJTC",name:"Germany - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"es",currencyCode:"EUR",domain:"amazon.es",id:"A1RKKUPIHCS9HS",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Spain",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.es",vendorId:"A1AT7YVPFBWXBL"},{code:"es-non-amazon",currencyCode:"EUR",id:"AFQLKURYRPEL8",name:"Spain - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"fr",currencyCode:"EUR",domain:"amazon.fr",id:"A13V1IB3VIYZZH",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"France",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.fr",vendorId:"A1X6FK5RDHNB96"},{code:"fr-non-amazon",currencyCode:"EUR",id:"A1ZFFQZ3HTUKT9",name:"France - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"it",currencyCode:"EUR",domain:"amazon.it",id:"APJ6JRA9NG5V4",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Italy",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.it",vendorId:"A11IL2PNWYJU7H"},{code:"it-non-amazon",currencyCode:"EUR",id:"A62U237T8HV6N",name:"Italy - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"uk",currencyCode:"GBP",domain:"amazon.co.uk",id:"A1F83G8C2ARO7P",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"United Kingdom",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.co.uk",vendorId:"A3P5ROKL5A1OLE"},{code:"uk-non-amazon",currencyCode:"GBP",id:"AZMDEXL2RVFNN",name:"United Kingdom - Non-Amazon",region:"eu"},{code:"tr",currencyCode:"TRY",domain:"amazon.com.tr",id:"A33AVAJ2PDY3EV",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Turkey",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.tr",vendorCentralDomain:"vendorcentral.amazon.com.tr",vendorId:"A1UNQM1SR2CHM"},{code:"eg",currencyCode:"EGP",domain:"amazon.eg",id:"ARBP9OOSHTCHU",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Egypt",region:"eu",sellerCentralDomain:"sellercentral.amazon.eg",vendorCentralDomain:"vendorcentral.amazon.me",vendorId:"A1ZVRGNO5AYLOV"},{code:"sa",currencyCode:"SAR",domain:"amazon.sa",id:"A17E79C6D8DWNP",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Saudi Arabia",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.sa",vendorId:"A2XPWB6MYN7ZDK"},{code:"nl",currencyCode:"EUR",domain:"amazon.nl",id:"A1805IZSGTT6HS",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Netherlands",region:"eu",sellerCentralDomain:"sellercentral.amazon.nl",vendorCentralDomain:"vendorcentral.amazon.nl",vendorId:"A17D2BRD4YMT0X"},{code:"se",currencyCode:"SEK",domain:"amazon.se",id:"A2NODRKZP88ZB9",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Sweden",region:"eu",sellerCentralDomain:"sellercentral.amazon.se",vendorCentralDomain:"vendorcentral.amazon.se",vendorId:"ANU9KP01APNAG"},{code:"pl",currencyCode:"PLN",domain:"amazon.pl",id:"A1C3SOZRARQ6R3",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws-eu.amazonservices.com",name:"Poland",region:"eu",sellerCentralDomain:"sellercentral.amazon.pl",vendorCentralDomain:"vendorcentral.amazon.pl",vendorId:"A2R2221NX79QZP"},{advertisingApiDomain:"advertising-api.amazon.com",code:"ca",currencyCode:"CAD",domain:"amazon.ca",id:"A2EUQ1WTGCTBG2",imagesDomain:"images-na.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.ca",name:"Canada",region:"na",sellerCentralDomain:"sellercentral.amazon.ca",vendorCentralDomain:"vendorcentral.amazon.ca",vendorId:"A3DWYIK6Y9EEQB"},{code:"ca-non-amazon",currencyCode:"CAD",id:"A1MQXOICRS2Z7M",name:"Canada - Non-Amazon",region:"na"},{code:"mx",currencyCode:"MXN",domain:"amazon.com.mx",id:"A1AM78C64UM0Y8",imagesDomain:"images-na.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.com.mx",name:"Mexico",region:"na",sellerCentralDomain:"sellercentral.amazon.com.mx",vendorCentralDomain:"vendorcentral.amazon.com.mx",vendorId:"AVDBXBAVVSXLQ"},{code:"mx-non-amazon",currencyCode:"MXN",id:"A3H6HPSLHAK3XG",name:"Mexico - Non-Amazon",region:"na"},{advertisingApiDomain:"advertising-api.amazon.com",code:"us",currencyCode:"USD",domain:"amazon.com",id:"ATVPDKIKX0DER",imagesDomain:"images-na.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.com",name:"United States",region:"na",sellerCentralDomain:"sellercentral.amazon.com",vendorCentralDomain:"vendorcentral.amazon.com",vendorId:"ATVPDKIKX0DER"},{code:"us-non-amazon",currencyCode:"USD",id:"A2ZV50J4W1RKNI",name:"United States - Non-Amazon",region:"na"},{code:"us-invoicing-shadow",currencyCode:"USD",id:"AHRY1CZE9ZY4H",name:"United States - Invoicing Shadow Marketplace",region:"na"},{code:"br",currencyCode:"BRL",domain:"amazon.com.br",id:"A2Q3Y263D00KWC",imagesDomain:"images-na.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.com",name:"Brazil",region:"na",sellerCentralDomain:"sellercentral.amazon.com.br",vendorCentralDomain:"vendorcentral.amazon.com.br",vendorId:"A1ZZFT5FULY4LN"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"ae",currencyCode:"AED",domain:"amazon.ae",id:"A2VIGQ35RCS4UG",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.ae",name:"United Arab Emirates",region:"eu",sellerCentralDomain:"sellercentral.amazon.ae",vendorCentralDomain:"vendorcentral.amazon.me",vendorId:"A2KKU8J8O8784X"},{code:"in",currencyCode:"INR",domain:"amazon.in",id:"A21TJRUUN4KGV",imagesDomain:"images-eu.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.in",name:"India",region:"eu",sellerCentralDomain:"sellercentral.amazon.in",vendorCentralDomain:"vendorcentral.amazon.in"},{advertisingApiDomain:"advertising-api-fe.amazon.com",code:"au",currencyCode:"AUD",domain:"amazon.com.au",id:"A39IBJ37TRP1C6",imagesDomain:"images-fe.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.com.au",name:"Australia",region:"fe",sellerCentralDomain:"sellercentral.amazon.com.au",vendorCentralDomain:"vendorcentral.amazon.com.au",vendorId:"ANEGB3WVEVKZB"},{advertisingApiDomain:"advertising-api-fe.amazon.com",code:"jp",currencyCode:"JPY",domain:"amazon.co.jp",id:"A1VC38T7YXB528",imagesDomain:"images-fe.ssl-images-amazon.com",mwsDomain:"mws.amazonservices.jp",name:"Japan",region:"fe",sellerCentralDomain:"sellercentral.amazon.co.jp",vendorCentralDomain:"vendorcentral.amazon.co.jp",vendorId:"AN1VRQENFRJN5"},{code:"sg",currencyCode:"SGD",domain:"amazon.sg",id:"A19VAU5U5O7RUS",imagesDomain:"images-fe.ssl-images-amazon.com",mwsDomain:"mws-fe.amazonservices.com",name:"Singapore",region:"fe",sellerCentralDomain:"sellercentral.amazon.sg",vendorCentralDomain:"vendorcentral.amazon.com.sg"}],r=o.default(function(e){return i.find(function(a){return a.id===e})}),s=o.default(function(e){return e=e.toLowerCase(),i.find(function(a){return a.code===e})}),c=o.default(function(e){return(e=e.toLowerCase()).startsWith("www.")&&(e=e.slice(4)),i.find(function(a){return a.domain===e})}),d=o.default(function(e){return i.filter(function(a){return a.mwsDomain===e})}),l=o.default(function(e){var a=m[e];return a?d(a):[]});e.getMarketplaceByCode=s,e.getMarketplaceByDomain=c,e.getMarketplaceById=r,e.getMarketplacesByMwsDomain=d,e.getMarketplacesByMwsRegion=l,e.marketplaces=i}); | ||
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("mem")):"function"==typeof define&&define.amd?define(["exports","mem"],a):a((e||self).amazonIds={},e.mem)}(this,function(e,a){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=/*#__PURE__*/n(a),m=[{code:"be",currencyCode:"EUR",domain:"amazon.com.be",id:"AMEN7PMS3EDWL",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Belgium",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.be",vendorCentralDomain:"vendorcentral.amazon.com.be",vendorId:"A3Q3FYJVX702M2"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"de",currencyCode:"EUR",domain:"amazon.de",id:"A1PA6795UKMFR9",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Germany",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.de",vendorId:"A3JWKAKR8XB7XF"},{code:"de-non-amazon",currencyCode:"EUR",id:"A38D8NSA03LJTC",name:"Germany - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"es",currencyCode:"EUR",domain:"amazon.es",id:"A1RKKUPIHCS9HS",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Spain",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.es",vendorId:"A1AT7YVPFBWXBL"},{code:"es-non-amazon",currencyCode:"EUR",id:"AFQLKURYRPEL8",name:"Spain - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"fr",currencyCode:"EUR",domain:"amazon.fr",id:"A13V1IB3VIYZZH",imagesDomain:"images-eu.ssl-images-amazon.com",name:"France",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.fr",vendorId:"A1X6FK5RDHNB96"},{code:"fr-non-amazon",currencyCode:"EUR",id:"A1ZFFQZ3HTUKT9",name:"France - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"it",currencyCode:"EUR",domain:"amazon.it",id:"APJ6JRA9NG5V4",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Italy",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.it",vendorId:"A11IL2PNWYJU7H"},{code:"it-non-amazon",currencyCode:"EUR",id:"A62U237T8HV6N",name:"Italy - Non-Amazon",region:"eu"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"uk",currencyCode:"GBP",domain:"amazon.co.uk",id:"A1F83G8C2ARO7P",imagesDomain:"images-eu.ssl-images-amazon.com",name:"United Kingdom",region:"eu",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.co.uk",vendorId:"A3P5ROKL5A1OLE"},{code:"uk-non-amazon",currencyCode:"GBP",id:"AZMDEXL2RVFNN",name:"United Kingdom - Non-Amazon",region:"eu"},{code:"tr",currencyCode:"TRY",domain:"amazon.com.tr",id:"A33AVAJ2PDY3EV",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Turkey",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.tr",vendorCentralDomain:"vendorcentral.amazon.com.tr",vendorId:"A1UNQM1SR2CHM"},{code:"eg",currencyCode:"EGP",domain:"amazon.eg",id:"ARBP9OOSHTCHU",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Egypt",region:"eu",sellerCentralDomain:"sellercentral.amazon.eg",vendorCentralDomain:"vendorcentral.amazon.me",vendorId:"A1ZVRGNO5AYLOV"},{code:"sa",currencyCode:"SAR",domain:"amazon.sa",id:"A17E79C6D8DWNP",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Saudi Arabia",region:"eu",sellerCentralDomain:"sellercentral.amazon.com.sa",vendorId:"A2XPWB6MYN7ZDK"},{code:"nl",currencyCode:"EUR",domain:"amazon.nl",id:"A1805IZSGTT6HS",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Netherlands",region:"eu",sellerCentralDomain:"sellercentral.amazon.nl",vendorCentralDomain:"vendorcentral.amazon.nl",vendorId:"A17D2BRD4YMT0X"},{code:"se",currencyCode:"SEK",domain:"amazon.se",id:"A2NODRKZP88ZB9",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Sweden",region:"eu",sellerCentralDomain:"sellercentral.amazon.se",vendorCentralDomain:"vendorcentral.amazon.se",vendorId:"ANU9KP01APNAG"},{code:"pl",currencyCode:"PLN",domain:"amazon.pl",id:"A1C3SOZRARQ6R3",imagesDomain:"images-eu.ssl-images-amazon.com",name:"Poland",region:"eu",sellerCentralDomain:"sellercentral.amazon.pl",vendorCentralDomain:"vendorcentral.amazon.pl",vendorId:"A2R2221NX79QZP"},{advertisingApiDomain:"advertising-api.amazon.com",code:"ca",currencyCode:"CAD",domain:"amazon.ca",id:"A2EUQ1WTGCTBG2",imagesDomain:"images-na.ssl-images-amazon.com",name:"Canada",region:"na",sellerCentralDomain:"sellercentral.amazon.ca",vendorCentralDomain:"vendorcentral.amazon.ca",vendorId:"A3DWYIK6Y9EEQB"},{code:"ca-non-amazon",currencyCode:"CAD",id:"A1MQXOICRS2Z7M",name:"Canada - Non-Amazon",region:"na"},{code:"mx",currencyCode:"MXN",domain:"amazon.com.mx",id:"A1AM78C64UM0Y8",imagesDomain:"images-na.ssl-images-amazon.com",name:"Mexico",region:"na",sellerCentralDomain:"sellercentral.amazon.com.mx",vendorCentralDomain:"vendorcentral.amazon.com.mx",vendorId:"AVDBXBAVVSXLQ"},{code:"mx-non-amazon",currencyCode:"MXN",id:"A3H6HPSLHAK3XG",name:"Mexico - Non-Amazon",region:"na"},{advertisingApiDomain:"advertising-api.amazon.com",code:"us",currencyCode:"USD",domain:"amazon.com",id:"ATVPDKIKX0DER",imagesDomain:"images-na.ssl-images-amazon.com",name:"United States",region:"na",sellerCentralDomain:"sellercentral.amazon.com",vendorCentralDomain:"vendorcentral.amazon.com",vendorId:"ATVPDKIKX0DER"},{code:"us-non-amazon",currencyCode:"USD",id:"A2ZV50J4W1RKNI",name:"United States - Non-Amazon",region:"na"},{code:"us-invoicing-shadow",currencyCode:"USD",id:"AHRY1CZE9ZY4H",name:"United States - Invoicing Shadow Marketplace",region:"na"},{code:"br",currencyCode:"BRL",domain:"amazon.com.br",id:"A2Q3Y263D00KWC",imagesDomain:"images-na.ssl-images-amazon.com",name:"Brazil",region:"na",sellerCentralDomain:"sellercentral.amazon.com.br",vendorCentralDomain:"vendorcentral.amazon.com.br",vendorId:"A1ZZFT5FULY4LN"},{advertisingApiDomain:"advertising-api-eu.amazon.com",code:"ae",currencyCode:"AED",domain:"amazon.ae",id:"A2VIGQ35RCS4UG",imagesDomain:"images-eu.ssl-images-amazon.com",name:"United Arab Emirates",region:"eu",sellerCentralDomain:"sellercentral.amazon.ae",vendorCentralDomain:"vendorcentral.amazon.me",vendorId:"A2KKU8J8O8784X"},{code:"in",currencyCode:"INR",domain:"amazon.in",id:"A21TJRUUN4KGV",imagesDomain:"images-eu.ssl-images-amazon.com",name:"India",region:"eu",sellerCentralDomain:"sellercentral.amazon.in",vendorCentralDomain:"vendorcentral.amazon.in"},{advertisingApiDomain:"advertising-api-fe.amazon.com",code:"au",currencyCode:"AUD",domain:"amazon.com.au",id:"A39IBJ37TRP1C6",imagesDomain:"images-fe.ssl-images-amazon.com",name:"Australia",region:"fe",sellerCentralDomain:"sellercentral.amazon.com.au",vendorCentralDomain:"vendorcentral.amazon.com.au",vendorId:"ANEGB3WVEVKZB"},{advertisingApiDomain:"advertising-api-fe.amazon.com",code:"jp",currencyCode:"JPY",domain:"amazon.co.jp",id:"A1VC38T7YXB528",imagesDomain:"images-fe.ssl-images-amazon.com",name:"Japan",region:"fe",sellerCentralDomain:"sellercentral.amazon.co.jp",vendorCentralDomain:"vendorcentral.amazon.co.jp",vendorId:"AN1VRQENFRJN5"},{code:"sg",currencyCode:"SGD",domain:"amazon.sg",id:"A19VAU5U5O7RUS",imagesDomain:"images-fe.ssl-images-amazon.com",name:"Singapore",region:"fe",sellerCentralDomain:"sellercentral.amazon.sg",vendorCentralDomain:"vendorcentral.amazon.com.sg"},{code:"za",currencyCode:"ZAR",domain:"amazon.co.za",id:"AE08WJ6YKNBMC",imagesDomain:"images-eu.ssl-images-amazon.com",name:"South Africa",region:"eu",sellerCentralDomain:"sellercentral.amazon.co.za",vendorCentralDomain:"vendorcentral.amazon.co.za"}],r=o.default(function(e){return m.find(function(a){return a.id===e})}),i=o.default(function(e){return e=e.toLowerCase(),m.find(function(a){return a.code===e})}),d=o.default(function(e){return(e=e.toLowerCase()).startsWith("www.")&&(e=e.slice(4)),m.find(function(a){return a.domain===e})});e.getMarketplaceByCode=i,e.getMarketplaceByDomain=d,e.getMarketplaceById=r,e.marketplaces=m}); | ||
//# sourceMappingURL=amazon-ids.umd.js.map |
@@ -7,3 +7,2 @@ export interface Marketplace { | ||
domain?: string; | ||
mwsDomain?: string; | ||
advertisingApiDomain?: string; | ||
@@ -16,14 +15,2 @@ imagesDomain?: string; | ||
} | ||
declare const mwsRegionDomains: { | ||
na: string; | ||
eu: string; | ||
fe: string; | ||
ca: string; | ||
mx: string; | ||
ae: string; | ||
in: string; | ||
jp: string; | ||
au: string; | ||
}; | ||
declare type MwsRegion = keyof typeof mwsRegionDomains; | ||
/** | ||
@@ -51,14 +38,1 @@ * All the available marketplaces | ||
export declare const getMarketplaceByDomain: (domain: string) => Marketplace | undefined; | ||
/** | ||
* Get marketplaces by an MWS domain | ||
* @param domain The MWS domain | ||
* @returns The marketplaces | ||
*/ | ||
export declare const getMarketplacesByMwsDomain: (domain: string) => Marketplace[]; | ||
/** | ||
* Get marketplaces by an MWS region | ||
* @param mwsRegion The MWS region | ||
* @returns The marketplaces | ||
*/ | ||
export declare const getMarketplacesByMwsRegion: (mwsRegion: MwsRegion) => Marketplace[]; | ||
export {}; |
{ | ||
"name": "@bizon/amazon-ids", | ||
"version": "2.14.0", | ||
"version": "3.0.0", | ||
"description": "Collection of Amazon identifiers", | ||
@@ -31,13 +31,14 @@ "repository": "https://github.com/bizon/amazon-ids", | ||
"devDependencies": { | ||
"@bizon/semantic-release-config": "^1.2.0", | ||
"@bizon/semantic-release-config": "^2.0.0", | ||
"@jest/types": "^29.5.0", | ||
"@tsconfig/node16": "^1.0.3", | ||
"@types/jest": "^29.2.0", | ||
"eslint-config-xo-bizon": "^1.1.1", | ||
"jest": "^29.2.0", | ||
"@types/jest": "^29.5.1", | ||
"eslint-config-xo-bizon": "^1.2.0", | ||
"jest": "^29.5.0", | ||
"microbundle": "^0.15.1", | ||
"semantic-release": "^19.0.5", | ||
"ts-jest": "^29.0.3", | ||
"semantic-release": "^21.0.2", | ||
"ts-jest": "^29.1.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.8.4", | ||
"xo": "^0.52.4" | ||
"typescript": "^5.0.4", | ||
"xo": "^0.54.2" | ||
}, | ||
@@ -44,0 +45,0 @@ "keywords": [ |
@@ -26,3 +26,3 @@ # amazon-ids | ||
```js | ||
const {marketplaces} = require('@bizon/amazon-ids') | ||
const { marketplaces } = require("@bizon/amazon-ids"); | ||
@@ -37,5 +37,5 @@ for (const marketplace of marketplaces) { | ||
```js | ||
const {getMarketplaceById} = require('@bizon/amazon-ids') | ||
const { getMarketplaceById } = require("@bizon/amazon-ids"); | ||
getMarketplaceById('ATVPDKIKX0DER') | ||
getMarketplaceById("ATVPDKIKX0DER"); | ||
@@ -49,3 +49,2 @@ /* | ||
domain: 'amazon.com', | ||
mwsDomain: 'mws.amazonservices.com', | ||
advertisingApiDomain: 'advertising-api.amazon.com', | ||
@@ -64,3 +63,3 @@ imagesDomain: 'images-na.ssl-images-amazon.com', | ||
```js | ||
getMarketplaceById('A2ZV50J4W1RKNI') | ||
getMarketplaceById("A2ZV50J4W1RKNI"); | ||
@@ -81,5 +80,5 @@ /* | ||
```js | ||
const {getMarketplaceByCode} = require('@bizon/amazon-ids') | ||
const { getMarketplaceByCode } = require("@bizon/amazon-ids"); | ||
getMarketplaceByCode('DE') | ||
getMarketplaceByCode("DE"); | ||
@@ -93,3 +92,2 @@ /* | ||
domain: 'amazon.de', | ||
mwsDomain: 'mws-eu.amazonservices.com', | ||
advertisingApiDomain: 'advertising-api-eu.amazon.com', | ||
@@ -108,5 +106,5 @@ imagesDomain: 'images-eu.ssl-images-amazon.com', | ||
```js | ||
const {getMarketplaceByDomain} = require('@bizon/amazon-ids') | ||
const { getMarketplaceByDomain } = require("@bizon/amazon-ids"); | ||
getMarketplaceByDomain('Amazon.com.mx') | ||
getMarketplaceByDomain("Amazon.com.mx"); | ||
@@ -120,3 +118,2 @@ /* | ||
domain: 'amazon.com.mx', | ||
mwsDomain: 'mws.amazonservices.com.mx', | ||
imagesDomain: 'images-na.ssl-images-amazon.com', | ||
@@ -131,62 +128,2 @@ vendorId: 'AVDBXBAVVSXLQ', | ||
### `getMarketplacesByMwsDomain(domain)` | ||
```js | ||
const {getMarketplacesByMwsDomain} = require('@bizon/amazon-ids') | ||
getMarketplacesByMwsDomain('mws.amazonservices.com') | ||
/* | ||
[ | ||
{ | ||
code: 'us', | ||
id: 'ATVPDKIKX0DER', | ||
name: 'United States', | ||
region: 'na', | ||
domain: 'amazon.com', | ||
… | ||
}, | ||
{ | ||
code: 'br', | ||
id: 'A2Q3Y263D00KWC', | ||
name: 'Brazil', | ||
region: 'na', | ||
domain: 'amazon.com.br', | ||
… | ||
} | ||
] | ||
*/ | ||
``` | ||
### `getMarketplacesByMwsRegion(mwsRegion)` | ||
MWS Regions is a concept introduced in [@bizon/mws-sdk](https://github.com/bizon/mws-sdk) – see [its readme](https://github.com/bizon/mws-sdk#region-and-marketplaces) to learn more about it. | ||
```js | ||
const {getMarketplacesByMwsRegion} = require('@bizon/amazon-ids') | ||
getMarketplacesByMwsRegion('na') | ||
/* | ||
[ | ||
{ | ||
code: 'us', | ||
id: 'ATVPDKIKX0DER', | ||
name: 'United States', | ||
region: 'na', | ||
domain: 'amazon.com', | ||
… | ||
}, | ||
{ | ||
code: 'br', | ||
id: 'A2Q3Y263D00KWC', | ||
name: 'Brazil', | ||
region: 'na', | ||
domain: 'amazon.com.br', | ||
… | ||
} | ||
] | ||
*/ | ||
``` | ||
## License | ||
@@ -193,0 +130,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44306
12
161
135