@bizon/amazon-ids 2.7.1 → 2.9.2

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/README.md CHANGED
@@ -40,7 +40,9 @@ getMarketplaceById('ATVPDKIKX0DER')
40
40
  mwsDomain: 'mws.amazonservices.com',
41
41
  advertisingApiDomain: 'advertising-api.amazon.com',
42
42
  imagesDomain: 'images-na.ssl-images-amazon.com',
43
- vendorId: 'ATVPDKIKX0DER'
43
+ vendorId: 'ATVPDKIKX0DER',
44
+ sellerCentralDomain: 'sellercentral.amazon.com',
45
+ vendorCentralDomain: 'vendorcentral.amazon.com'
44
46
  }
45
47
  */
46
48
  ```
@@ -77,7 +79,9 @@ getMarketplaceByCode('DE')
77
79
  mwsDomain: 'mws-eu.amazonservices.com',
78
80
  advertisingApiDomain: 'advertising-api-eu.amazon.com',
79
81
  imagesDomain: 'images-eu.ssl-images-amazon.com',
80
- vendorId: 'A3JWKAKR8XB7XF'
82
+ vendorId: 'A3JWKAKR8XB7XF',
83
+ sellerCentralDomain: 'sellercentral-europe.amazon.com',
84
+ vendorCentralDomain: 'vendorcentral.amazon.de'
81
85
  }
82
86
  */
83
87
  ```
@@ -98,7 +102,9 @@ getMarketplaceByDomain('Amazon.com.mx')
98
102
  domain: 'amazon.com.mx',
99
103
  mwsDomain: 'mws.amazonservices.com.mx',
100
104
  imagesDomain: 'images-na.ssl-images-amazon.com',
101
- vendorId: 'AVDBXBAVVSXLQ'
105
+ vendorId: 'AVDBXBAVVSXLQ',
106
+ sellerCentralDomain: 'sellercentral.amazon.com.mx',
107
+ vendorCentralDomain: 'vendorcentral.amazon.com.mx'
102
108
  }
103
109
  */
104
110
  ```
@@ -118,10 +124,7 @@ getMarketplacesByMwsDomain('mws.amazonservices.com')
118
124
  name: 'United States',
119
125
  region: 'na',
120
126
  domain: 'amazon.com',
121
- mwsDomain: 'mws.amazonservices.com',
122
- advertisingApiDomain: 'advertising-api.amazon.com',
123
- imagesDomain: 'images-na.ssl-images-amazon.com',
124
- vendorId: 'ATVPDKIKX0DER'
127
+
125
128
  },
126
129
  {
127
130
  code: 'br',
@@ -129,9 +132,7 @@ getMarketplacesByMwsDomain('mws.amazonservices.com')
129
132
  name: 'Brazil',
130
133
  region: 'na',
131
134
  domain: 'amazon.com.br',
132
- mwsDomain: 'mws.amazonservices.com',
133
- imagesDomain: 'images-na.ssl-images-amazon.com',
134
- vendorId: 'A1ZZFT5FULY4LN'
135
+
135
136
  }
136
137
  ]
137
138
  */
@@ -154,10 +155,7 @@ getMarketplacesByMwsRegion('na')
154
155
  name: 'United States',
155
156
  region: 'na',
156
157
  domain: 'amazon.com',
157
- mwsDomain: 'mws.amazonservices.com',
158
- advertisingApiDomain: 'advertising-api.amazon.com',
159
- imagesDomain: 'images-na.ssl-images-amazon.com',
160
- vendorId: 'ATVPDKIKX0DER'
158
+
161
159
  },
162
160
  {
163
161
  code: 'br',
@@ -165,9 +163,7 @@ getMarketplacesByMwsRegion('na')
165
163
  name: 'Brazil',
166
164
  region: 'na',
167
165
  domain: 'amazon.com.br',
168
- mwsDomain: 'mws.amazonservices.com',
169
- imagesDomain: 'images-na.ssl-images-amazon.com',
170
- vendorId: 'A1ZZFT5FULY4LN'
166
+
171
167
  }
172
168
  ]
173
169
  */
@@ -0,0 +1,2 @@
1
+ import a from"mem";var e={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"},n=[{code:"de",id:"A1PA6795UKMFR9",name:"Germany",region:"eu",domain:"amazon.de",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A3JWKAKR8XB7XF",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.de"},{code:"de-non-amazon",id:"A38D8NSA03LJTC",name:"Germany - Non-Amazon",region:"eu"},{code:"es",id:"A1RKKUPIHCS9HS",name:"Spain",region:"eu",domain:"amazon.es",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1AT7YVPFBWXBL",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.es"},{code:"es-non-amazon",id:"AFQLKURYRPEL8",name:"Spain - Non-Amazon",region:"eu"},{code:"fr",id:"A13V1IB3VIYZZH",name:"France",region:"eu",domain:"amazon.fr",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1X6FK5RDHNB96",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.fr"},{code:"fr-non-amazon",id:"A1ZFFQZ3HTUKT9",name:"France - Non-Amazon",region:"eu"},{code:"it",id:"APJ6JRA9NG5V4",name:"Italy",region:"eu",domain:"amazon.it",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A11IL2PNWYJU7H",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.it"},{code:"it-non-amazon",id:"A62U237T8HV6N",name:"Italy - Non-Amazon",region:"eu"},{code:"uk",id:"A1F83G8C2ARO7P",name:"United Kingdom",region:"eu",domain:"amazon.co.uk",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A3P5ROKL5A1OLE",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.co.uk"},{code:"uk-non-amazon",id:"AZMDEXL2RVFNN",name:"United Kingdom - Non-Amazon",region:"eu"},{code:"tr",id:"A33AVAJ2PDY3EV",name:"Turkey",region:"eu",domain:"amazon.com.tr",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1UNQM1SR2CHM",sellerCentralDomain:"sellercentral.amazon.com.tr",vendorCentralDomain:"vendorcentral.amazon.com.tr"},{code:"eg",id:"ARBP9OOSHTCHU",name:"Egypt",region:"eu",domain:"amazon.eg",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1ZVRGNO5AYLOV",sellerCentralDomain:"sellercentral.amazon.eg",vendorCentralDomain:"vendorcentral.amazon.me"},{code:"sa",id:"A17E79C6D8DWNP",name:"Saudi Arabia",region:"eu",domain:"amazon.sa",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2XPWB6MYN7ZDK"},{code:"nl",id:"A1805IZSGTT6HS",name:"Netherlands",region:"eu",domain:"amazon.nl",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A17D2BRD4YMT0X",sellerCentralDomain:"sellercentral.amazon.nl",vendorCentralDomain:"vendorcentral.amazon.nl"},{code:"se",id:"A2NODRKZP88ZB9",name:"Sweden",region:"eu",domain:"amazon.se",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"ANU9KP01APNAG",sellerCentralDomain:"sellercentral.amazon.se",vendorCentralDomain:"vendorcentral.amazon.se"},{code:"pl",id:"A1C3SOZRARQ6R3",name:"Poland",region:"eu",domain:"amazon.pl",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2R2221NX79QZP",sellerCentralDomain:"sellercentral.amazon.pl",vendorCentralDomain:"vendorcentral.amazon.pl"},{code:"ca",id:"A2EUQ1WTGCTBG2",name:"Canada",region:"na",domain:"amazon.ca",mwsDomain:"mws.amazonservices.ca",advertisingApiDomain:"advertising-api.amazon.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"A3DWYIK6Y9EEQB",sellerCentralDomain:"sellercentral.amazon.ca",vendorCentralDomain:"vendorcentral.amazon.ca"},{code:"ca-non-amazon",id:"A1MQXOICRS2Z7M",name:"Canada - Non-Amazon",region:"na"},{code:"mx",id:"A1AM78C64UM0Y8",name:"Mexico",region:"na",domain:"amazon.com.mx",mwsDomain:"mws.amazonservices.com.mx",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"AVDBXBAVVSXLQ",sellerCentralDomain:"sellercentral.amazon.com.mx",vendorCentralDomain:"vendorcentral.amazon.com.mx"},{code:"mx-non-amazon",id:"A3H6HPSLHAK3XG",name:"Mexico - Non-Amazon",region:"na"},{code:"us",id:"ATVPDKIKX0DER",name:"United States",region:"na",domain:"amazon.com",mwsDomain:"mws.amazonservices.com",advertisingApiDomain:"advertising-api.amazon.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"ATVPDKIKX0DER",sellerCentralDomain:"sellercentral.amazon.com",vendorCentralDomain:"vendorcentral.amazon.com"},{code:"us-non-amazon",id:"A2ZV50J4W1RKNI",name:"United States - Non-Amazon",region:"na"},{code:"br",id:"A2Q3Y263D00KWC",name:"Brazil",region:"na",domain:"amazon.com.br",mwsDomain:"mws.amazonservices.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"A1ZZFT5FULY4LN",sellerCentralDomain:"sellercentral.amazon.com.br",vendorCentralDomain:"vendorcentral.amazon.com.br"},{code:"ae",id:"A2VIGQ35RCS4UG",name:"United Arab Emirates",region:"eu",domain:"amazon.ae",mwsDomain:"mws.amazonservices.ae",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2KKU8J8O8784X",sellerCentralDomain:"sellercentral.amazon.ae",vendorCentralDomain:"vendorcentral.amazon.me"},{code:"in",id:"A21TJRUUN4KGV",name:"India",region:"eu",domain:"amazon.in",mwsDomain:"mws.amazonservices.in",imagesDomain:"images-eu.ssl-images-amazon.com",sellerCentralDomain:"sellercentral.amazon.in",vendorCentralDomain:"vendorcentral.amazon.in"},{code:"au",id:"A39IBJ37TRP1C6",name:"Australia",region:"fe",domain:"amazon.com.au",mwsDomain:"mws.amazonservices.com.au",advertisingApiDomain:"advertising-api-fe.amazon.com",imagesDomain:"images-fe.ssl-images-amazon.com",vendorId:"ANEGB3WVEVKZB",sellerCentralDomain:"sellercentral.amazon.com.au",vendorCentralDomain:"vendorcentral.amazon.com.au"},{code:"jp",id:"A1VC38T7YXB528",name:"Japan",region:"fe",domain:"amazon.co.jp",mwsDomain:"mws.amazonservices.jp",advertisingApiDomain:"advertising-api-fe.amazon.com",imagesDomain:"images-fe.ssl-images-amazon.com",vendorId:"AN1VRQENFRJN5",sellerCentralDomain:"sellercentral.amazon.co.jp",vendorCentralDomain:"vendorcentral.amazon.co.jp"},{code:"sg",id:"A19VAU5U5O7RUS",name:"Singapore",region:"fe",domain:"amazon.sg",mwsDomain:"mws-fe.amazonservices.com",imagesDomain:"images-fe.ssl-images-amazon.com",sellerCentralDomain:"sellercentral.amazon.sg",vendorCentralDomain:"vendorcentral.amazon.com.sg"}],o=a(function(a){return n.find(function(e){return e.id===a})}),m=a(function(a){return a=a.toLowerCase(),n.find(function(e){return e.code===a})}),i=a(function(a){return(a=a.toLowerCase()).startsWith("www.")&&(a=a.slice(4)),n.find(function(e){return e.domain===a})}),r=a(function(a){return n.filter(function(e){return e.mwsDomain===a})}),s=a(function(a){var n=e[a];return n?r(n):[]});export{m as getMarketplaceByCode,i as getMarketplaceByDomain,o as getMarketplaceById,r as getMarketplacesByMwsDomain,s as getMarketplacesByMwsRegion,n as marketplaces};
2
+ //# sourceMappingURL=amazon-ids.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amazon-ids.esm.js","sources":["../src/index.ts"],"sourcesContent":["import mem from 'mem'\n\nimport _marketplaces from './marketplaces.json'\n\nexport interface Marketplace {\n code: string\n id: string\n name: string\n region: string\n domain?: string\n mwsDomain?: string\n advertisingApiDomain?: string\n imagesDomain?: string\n vendorId?: string\n sellerCentralDomain?: string\n vendorCentralDomain?: string\n}\n\nconst mwsRegionDomains = {\n // Generic MWS regions:\n na: 'mws.amazonservices.com',\n eu: 'mws-eu.amazonservices.com',\n fe: 'mws-fe.amazonservices.com',\n\n // Country specific MWS regions:\n ca: 'mws.amazonservices.ca',\n mx: 'mws.amazonservices.com.mx',\n ae: 'mws.amazonservices.ae',\n in: 'mws.amazonservices.in',\n jp: 'mws.amazonservices.jp',\n au: 'mws.amazonservices.com.au',\n}\n\ntype MwsRegion = keyof typeof mwsRegionDomains\n\n/**\n * All the available marketplaces\n */\nexport const marketplaces: Marketplace[] = _marketplaces\n\n/**\n * Get a marketplace by its id\n * @param id The marketplace's id\n * @returns The marketplace\n */\nexport const getMarketplaceById = mem((id: string) =>\n marketplaces.find((marketplace) => marketplace.id === id),\n)\n\n/**\n * Get a marketplace by its code\n * @param code The marketplace's code\n * @returns The markerplace\n */\nexport const getMarketplaceByCode = mem((code: string) => {\n code = code.toLowerCase()\n\n return marketplaces.find((marketplace) => marketplace.code === code)\n})\n\n/**\n * Get a marketplace by its domain\n * @param domain The marketplace's domain\n * @returns The marketplace\n */\nexport const getMarketplaceByDomain = mem((domain: string) => {\n domain = domain.toLowerCase()\n\n if (domain.startsWith('www.')) {\n domain = domain.slice(4)\n }\n\n return marketplaces.find((marketplace) => marketplace.domain === domain)\n})\n\n/**\n * Get marketplaces by an MWS domain\n * @param domain The MWS domain\n * @returns The marketplaces\n */\nexport const getMarketplacesByMwsDomain = mem((domain: string) =>\n marketplaces.filter((marketplace) => marketplace.mwsDomain === domain),\n)\n\n/**\n * Get marketplaces by an MWS region\n * @param mwsRegion The MWS region\n * @returns The marketplaces\n */\nexport const getMarketplacesByMwsRegion = mem((mwsRegion: MwsRegion) => {\n const mwsDomain = mwsRegionDomains[mwsRegion]\n\n if (!mwsDomain) {\n return []\n }\n\n return getMarketplacesByMwsDomain(mwsDomain)\n})\n"],"names":["mwsRegionDomains","na","eu","fe","ca","mx","ae","in","jp","au","marketplaces","getMarketplaceById","mem","id","find","marketplace","getMarketplaceByCode","code","toLowerCase","getMarketplaceByDomain","domain","startsWith","slice","getMarketplacesByMwsDomain","filter","mwsDomain","getMarketplacesByMwsRegion","mwsRegion"],"mappings":"uBAkBMA,EAAmB,CAEvBC,GAAI,yBACJC,GAAI,4BACJC,GAAI,4BAGJC,GAAI,wBACJC,GAAI,4BACJC,GAAI,wBACJC,GAAI,wBACJC,GAAI,wBACJC,GAAI,6BAQOC,mnNAOAC,EAAqBC,EAAI,SAACC,UACrCH,EAAaI,KAAK,SAACC,UAAgBA,EAAYF,KAAOA,MAQ3CG,EAAuBJ,EAAI,SAACK,GAGvC,OAFAA,EAAOA,EAAKC,cAELR,EAAaI,KAAK,SAACC,UAAgBA,EAAYE,OAASA,MAQpDE,EAAyBP,EAAI,SAACQ,GAOzC,OANAA,EAASA,EAAOF,eAELG,WAAW,UACpBD,EAASA,EAAOE,MAAM,IAGjBZ,EAAaI,KAAK,SAACC,UAAgBA,EAAYK,SAAWA,MAQtDG,EAA6BX,EAAI,SAACQ,UAC7CV,EAAac,OAAO,SAACT,UAAgBA,EAAYU,YAAcL,MAQpDM,EAA6Bd,EAAI,SAACe,GAC7C,IAAMF,EAAYzB,EAAiB2B,GAEnC,OAAKF,EAIEF,EAA2BE,GAHzB"}
@@ -0,0 +1,2 @@
1
+ function a(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var e=/*#__PURE__*/a(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:"de",id:"A1PA6795UKMFR9",name:"Germany",region:"eu",domain:"amazon.de",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A3JWKAKR8XB7XF",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.de"},{code:"de-non-amazon",id:"A38D8NSA03LJTC",name:"Germany - Non-Amazon",region:"eu"},{code:"es",id:"A1RKKUPIHCS9HS",name:"Spain",region:"eu",domain:"amazon.es",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1AT7YVPFBWXBL",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.es"},{code:"es-non-amazon",id:"AFQLKURYRPEL8",name:"Spain - Non-Amazon",region:"eu"},{code:"fr",id:"A13V1IB3VIYZZH",name:"France",region:"eu",domain:"amazon.fr",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1X6FK5RDHNB96",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.fr"},{code:"fr-non-amazon",id:"A1ZFFQZ3HTUKT9",name:"France - Non-Amazon",region:"eu"},{code:"it",id:"APJ6JRA9NG5V4",name:"Italy",region:"eu",domain:"amazon.it",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A11IL2PNWYJU7H",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.it"},{code:"it-non-amazon",id:"A62U237T8HV6N",name:"Italy - Non-Amazon",region:"eu"},{code:"uk",id:"A1F83G8C2ARO7P",name:"United Kingdom",region:"eu",domain:"amazon.co.uk",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A3P5ROKL5A1OLE",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.co.uk"},{code:"uk-non-amazon",id:"AZMDEXL2RVFNN",name:"United Kingdom - Non-Amazon",region:"eu"},{code:"tr",id:"A33AVAJ2PDY3EV",name:"Turkey",region:"eu",domain:"amazon.com.tr",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1UNQM1SR2CHM",sellerCentralDomain:"sellercentral.amazon.com.tr",vendorCentralDomain:"vendorcentral.amazon.com.tr"},{code:"eg",id:"ARBP9OOSHTCHU",name:"Egypt",region:"eu",domain:"amazon.eg",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1ZVRGNO5AYLOV",sellerCentralDomain:"sellercentral.amazon.eg",vendorCentralDomain:"vendorcentral.amazon.me"},{code:"sa",id:"A17E79C6D8DWNP",name:"Saudi Arabia",region:"eu",domain:"amazon.sa",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2XPWB6MYN7ZDK"},{code:"nl",id:"A1805IZSGTT6HS",name:"Netherlands",region:"eu",domain:"amazon.nl",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A17D2BRD4YMT0X",sellerCentralDomain:"sellercentral.amazon.nl",vendorCentralDomain:"vendorcentral.amazon.nl"},{code:"se",id:"A2NODRKZP88ZB9",name:"Sweden",region:"eu",domain:"amazon.se",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"ANU9KP01APNAG",sellerCentralDomain:"sellercentral.amazon.se",vendorCentralDomain:"vendorcentral.amazon.se"},{code:"pl",id:"A1C3SOZRARQ6R3",name:"Poland",region:"eu",domain:"amazon.pl",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2R2221NX79QZP",sellerCentralDomain:"sellercentral.amazon.pl",vendorCentralDomain:"vendorcentral.amazon.pl"},{code:"ca",id:"A2EUQ1WTGCTBG2",name:"Canada",region:"na",domain:"amazon.ca",mwsDomain:"mws.amazonservices.ca",advertisingApiDomain:"advertising-api.amazon.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"A3DWYIK6Y9EEQB",sellerCentralDomain:"sellercentral.amazon.ca",vendorCentralDomain:"vendorcentral.amazon.ca"},{code:"ca-non-amazon",id:"A1MQXOICRS2Z7M",name:"Canada - Non-Amazon",region:"na"},{code:"mx",id:"A1AM78C64UM0Y8",name:"Mexico",region:"na",domain:"amazon.com.mx",mwsDomain:"mws.amazonservices.com.mx",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"AVDBXBAVVSXLQ",sellerCentralDomain:"sellercentral.amazon.com.mx",vendorCentralDomain:"vendorcentral.amazon.com.mx"},{code:"mx-non-amazon",id:"A3H6HPSLHAK3XG",name:"Mexico - Non-Amazon",region:"na"},{code:"us",id:"ATVPDKIKX0DER",name:"United States",region:"na",domain:"amazon.com",mwsDomain:"mws.amazonservices.com",advertisingApiDomain:"advertising-api.amazon.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"ATVPDKIKX0DER",sellerCentralDomain:"sellercentral.amazon.com",vendorCentralDomain:"vendorcentral.amazon.com"},{code:"us-non-amazon",id:"A2ZV50J4W1RKNI",name:"United States - Non-Amazon",region:"na"},{code:"br",id:"A2Q3Y263D00KWC",name:"Brazil",region:"na",domain:"amazon.com.br",mwsDomain:"mws.amazonservices.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"A1ZZFT5FULY4LN",sellerCentralDomain:"sellercentral.amazon.com.br",vendorCentralDomain:"vendorcentral.amazon.com.br"},{code:"ae",id:"A2VIGQ35RCS4UG",name:"United Arab Emirates",region:"eu",domain:"amazon.ae",mwsDomain:"mws.amazonservices.ae",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2KKU8J8O8784X",sellerCentralDomain:"sellercentral.amazon.ae",vendorCentralDomain:"vendorcentral.amazon.me"},{code:"in",id:"A21TJRUUN4KGV",name:"India",region:"eu",domain:"amazon.in",mwsDomain:"mws.amazonservices.in",imagesDomain:"images-eu.ssl-images-amazon.com",sellerCentralDomain:"sellercentral.amazon.in",vendorCentralDomain:"vendorcentral.amazon.in"},{code:"au",id:"A39IBJ37TRP1C6",name:"Australia",region:"fe",domain:"amazon.com.au",mwsDomain:"mws.amazonservices.com.au",advertisingApiDomain:"advertising-api-fe.amazon.com",imagesDomain:"images-fe.ssl-images-amazon.com",vendorId:"ANEGB3WVEVKZB",sellerCentralDomain:"sellercentral.amazon.com.au",vendorCentralDomain:"vendorcentral.amazon.com.au"},{code:"jp",id:"A1VC38T7YXB528",name:"Japan",region:"fe",domain:"amazon.co.jp",mwsDomain:"mws.amazonservices.jp",advertisingApiDomain:"advertising-api-fe.amazon.com",imagesDomain:"images-fe.ssl-images-amazon.com",vendorId:"AN1VRQENFRJN5",sellerCentralDomain:"sellercentral.amazon.co.jp",vendorCentralDomain:"vendorcentral.amazon.co.jp"},{code:"sg",id:"A19VAU5U5O7RUS",name:"Singapore",region:"fe",domain:"amazon.sg",mwsDomain:"mws-fe.amazonservices.com",imagesDomain:"images-fe.ssl-images-amazon.com",sellerCentralDomain:"sellercentral.amazon.sg",vendorCentralDomain:"vendorcentral.amazon.com.sg"}],m=e.default(function(a){return o.find(function(e){return e.id===a})}),i=e.default(function(a){return a=a.toLowerCase(),o.find(function(e){return e.code===a})}),r=e.default(function(a){return(a=a.toLowerCase()).startsWith("www.")&&(a=a.slice(4)),o.find(function(e){return e.domain===a})}),s=e.default(function(a){return o.filter(function(e){return e.mwsDomain===a})}),c=e.default(function(a){var e=n[a];return e?s(e):[]});exports.getMarketplaceByCode=i,exports.getMarketplaceByDomain=r,exports.getMarketplaceById=m,exports.getMarketplacesByMwsDomain=s,exports.getMarketplacesByMwsRegion=c,exports.marketplaces=o;
2
+ //# sourceMappingURL=amazon-ids.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amazon-ids.js","sources":["../src/index.ts"],"sourcesContent":["import mem from 'mem'\n\nimport _marketplaces from './marketplaces.json'\n\nexport interface Marketplace {\n code: string\n id: string\n name: string\n region: string\n domain?: string\n mwsDomain?: string\n advertisingApiDomain?: string\n imagesDomain?: string\n vendorId?: string\n sellerCentralDomain?: string\n vendorCentralDomain?: string\n}\n\nconst mwsRegionDomains = {\n // Generic MWS regions:\n na: 'mws.amazonservices.com',\n eu: 'mws-eu.amazonservices.com',\n fe: 'mws-fe.amazonservices.com',\n\n // Country specific MWS regions:\n ca: 'mws.amazonservices.ca',\n mx: 'mws.amazonservices.com.mx',\n ae: 'mws.amazonservices.ae',\n in: 'mws.amazonservices.in',\n jp: 'mws.amazonservices.jp',\n au: 'mws.amazonservices.com.au',\n}\n\ntype MwsRegion = keyof typeof mwsRegionDomains\n\n/**\n * All the available marketplaces\n */\nexport const marketplaces: Marketplace[] = _marketplaces\n\n/**\n * Get a marketplace by its id\n * @param id The marketplace's id\n * @returns The marketplace\n */\nexport const getMarketplaceById = mem((id: string) =>\n marketplaces.find((marketplace) => marketplace.id === id),\n)\n\n/**\n * Get a marketplace by its code\n * @param code The marketplace's code\n * @returns The markerplace\n */\nexport const getMarketplaceByCode = mem((code: string) => {\n code = code.toLowerCase()\n\n return marketplaces.find((marketplace) => marketplace.code === code)\n})\n\n/**\n * Get a marketplace by its domain\n * @param domain The marketplace's domain\n * @returns The marketplace\n */\nexport const getMarketplaceByDomain = mem((domain: string) => {\n domain = domain.toLowerCase()\n\n if (domain.startsWith('www.')) {\n domain = domain.slice(4)\n }\n\n return marketplaces.find((marketplace) => marketplace.domain === domain)\n})\n\n/**\n * Get marketplaces by an MWS domain\n * @param domain The MWS domain\n * @returns The marketplaces\n */\nexport const getMarketplacesByMwsDomain = mem((domain: string) =>\n marketplaces.filter((marketplace) => marketplace.mwsDomain === domain),\n)\n\n/**\n * Get marketplaces by an MWS region\n * @param mwsRegion The MWS region\n * @returns The marketplaces\n */\nexport const getMarketplacesByMwsRegion = mem((mwsRegion: MwsRegion) => {\n const mwsDomain = mwsRegionDomains[mwsRegion]\n\n if (!mwsDomain) {\n return []\n }\n\n return getMarketplacesByMwsDomain(mwsDomain)\n})\n"],"names":["mwsRegionDomains","na","eu","fe","ca","mx","ae","in","jp","au","marketplaces","getMarketplaceById","mem","id","find","marketplace","getMarketplaceByCode","code","toLowerCase","getMarketplaceByDomain","domain","startsWith","slice","getMarketplacesByMwsDomain","filter","mwsDomain","getMarketplacesByMwsRegion","mwsRegion"],"mappings":"6GAkBMA,EAAmB,CAEvBC,GAAI,yBACJC,GAAI,4BACJC,GAAI,4BAGJC,GAAI,wBACJC,GAAI,4BACJC,GAAI,wBACJC,GAAI,wBACJC,GAAI,wBACJC,GAAI,6BAQOC,mnNAOAC,EAAqBC,UAAI,SAACC,UACrCH,EAAaI,KAAK,SAACC,UAAgBA,EAAYF,KAAOA,MAQ3CG,EAAuBJ,UAAI,SAACK,GAGvC,OAFAA,EAAOA,EAAKC,cAELR,EAAaI,KAAK,SAACC,UAAgBA,EAAYE,OAASA,MAQpDE,EAAyBP,UAAI,SAACQ,GAOzC,OANAA,EAASA,EAAOF,eAELG,WAAW,UACpBD,EAASA,EAAOE,MAAM,IAGjBZ,EAAaI,KAAK,SAACC,UAAgBA,EAAYK,SAAWA,MAQtDG,EAA6BX,UAAI,SAACQ,UAC7CV,EAAac,OAAO,SAACT,UAAgBA,EAAYU,YAAcL,MAQpDM,EAA6Bd,UAAI,SAACe,GAC7C,IAAMF,EAAYzB,EAAiB2B,GAEnC,OAAKF,EAIEF,EAA2BE,GAHzB"}
@@ -0,0 +1,2 @@
1
+ import a from"mem";const e={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"},n=[{code:"de",id:"A1PA6795UKMFR9",name:"Germany",region:"eu",domain:"amazon.de",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A3JWKAKR8XB7XF",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.de"},{code:"de-non-amazon",id:"A38D8NSA03LJTC",name:"Germany - Non-Amazon",region:"eu"},{code:"es",id:"A1RKKUPIHCS9HS",name:"Spain",region:"eu",domain:"amazon.es",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1AT7YVPFBWXBL",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.es"},{code:"es-non-amazon",id:"AFQLKURYRPEL8",name:"Spain - Non-Amazon",region:"eu"},{code:"fr",id:"A13V1IB3VIYZZH",name:"France",region:"eu",domain:"amazon.fr",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1X6FK5RDHNB96",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.fr"},{code:"fr-non-amazon",id:"A1ZFFQZ3HTUKT9",name:"France - Non-Amazon",region:"eu"},{code:"it",id:"APJ6JRA9NG5V4",name:"Italy",region:"eu",domain:"amazon.it",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A11IL2PNWYJU7H",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.it"},{code:"it-non-amazon",id:"A62U237T8HV6N",name:"Italy - Non-Amazon",region:"eu"},{code:"uk",id:"A1F83G8C2ARO7P",name:"United Kingdom",region:"eu",domain:"amazon.co.uk",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A3P5ROKL5A1OLE",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.co.uk"},{code:"uk-non-amazon",id:"AZMDEXL2RVFNN",name:"United Kingdom - Non-Amazon",region:"eu"},{code:"tr",id:"A33AVAJ2PDY3EV",name:"Turkey",region:"eu",domain:"amazon.com.tr",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1UNQM1SR2CHM",sellerCentralDomain:"sellercentral.amazon.com.tr",vendorCentralDomain:"vendorcentral.amazon.com.tr"},{code:"eg",id:"ARBP9OOSHTCHU",name:"Egypt",region:"eu",domain:"amazon.eg",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1ZVRGNO5AYLOV",sellerCentralDomain:"sellercentral.amazon.eg",vendorCentralDomain:"vendorcentral.amazon.me"},{code:"sa",id:"A17E79C6D8DWNP",name:"Saudi Arabia",region:"eu",domain:"amazon.sa",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2XPWB6MYN7ZDK"},{code:"nl",id:"A1805IZSGTT6HS",name:"Netherlands",region:"eu",domain:"amazon.nl",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A17D2BRD4YMT0X",sellerCentralDomain:"sellercentral.amazon.nl",vendorCentralDomain:"vendorcentral.amazon.nl"},{code:"se",id:"A2NODRKZP88ZB9",name:"Sweden",region:"eu",domain:"amazon.se",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"ANU9KP01APNAG",sellerCentralDomain:"sellercentral.amazon.se",vendorCentralDomain:"vendorcentral.amazon.se"},{code:"pl",id:"A1C3SOZRARQ6R3",name:"Poland",region:"eu",domain:"amazon.pl",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2R2221NX79QZP",sellerCentralDomain:"sellercentral.amazon.pl",vendorCentralDomain:"vendorcentral.amazon.pl"},{code:"ca",id:"A2EUQ1WTGCTBG2",name:"Canada",region:"na",domain:"amazon.ca",mwsDomain:"mws.amazonservices.ca",advertisingApiDomain:"advertising-api.amazon.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"A3DWYIK6Y9EEQB",sellerCentralDomain:"sellercentral.amazon.ca",vendorCentralDomain:"vendorcentral.amazon.ca"},{code:"ca-non-amazon",id:"A1MQXOICRS2Z7M",name:"Canada - Non-Amazon",region:"na"},{code:"mx",id:"A1AM78C64UM0Y8",name:"Mexico",region:"na",domain:"amazon.com.mx",mwsDomain:"mws.amazonservices.com.mx",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"AVDBXBAVVSXLQ",sellerCentralDomain:"sellercentral.amazon.com.mx",vendorCentralDomain:"vendorcentral.amazon.com.mx"},{code:"mx-non-amazon",id:"A3H6HPSLHAK3XG",name:"Mexico - Non-Amazon",region:"na"},{code:"us",id:"ATVPDKIKX0DER",name:"United States",region:"na",domain:"amazon.com",mwsDomain:"mws.amazonservices.com",advertisingApiDomain:"advertising-api.amazon.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"ATVPDKIKX0DER",sellerCentralDomain:"sellercentral.amazon.com",vendorCentralDomain:"vendorcentral.amazon.com"},{code:"us-non-amazon",id:"A2ZV50J4W1RKNI",name:"United States - Non-Amazon",region:"na"},{code:"br",id:"A2Q3Y263D00KWC",name:"Brazil",region:"na",domain:"amazon.com.br",mwsDomain:"mws.amazonservices.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"A1ZZFT5FULY4LN",sellerCentralDomain:"sellercentral.amazon.com.br",vendorCentralDomain:"vendorcentral.amazon.com.br"},{code:"ae",id:"A2VIGQ35RCS4UG",name:"United Arab Emirates",region:"eu",domain:"amazon.ae",mwsDomain:"mws.amazonservices.ae",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2KKU8J8O8784X",sellerCentralDomain:"sellercentral.amazon.ae",vendorCentralDomain:"vendorcentral.amazon.me"},{code:"in",id:"A21TJRUUN4KGV",name:"India",region:"eu",domain:"amazon.in",mwsDomain:"mws.amazonservices.in",imagesDomain:"images-eu.ssl-images-amazon.com",sellerCentralDomain:"sellercentral.amazon.in",vendorCentralDomain:"vendorcentral.amazon.in"},{code:"au",id:"A39IBJ37TRP1C6",name:"Australia",region:"fe",domain:"amazon.com.au",mwsDomain:"mws.amazonservices.com.au",advertisingApiDomain:"advertising-api-fe.amazon.com",imagesDomain:"images-fe.ssl-images-amazon.com",vendorId:"ANEGB3WVEVKZB",sellerCentralDomain:"sellercentral.amazon.com.au",vendorCentralDomain:"vendorcentral.amazon.com.au"},{code:"jp",id:"A1VC38T7YXB528",name:"Japan",region:"fe",domain:"amazon.co.jp",mwsDomain:"mws.amazonservices.jp",advertisingApiDomain:"advertising-api-fe.amazon.com",imagesDomain:"images-fe.ssl-images-amazon.com",vendorId:"AN1VRQENFRJN5",sellerCentralDomain:"sellercentral.amazon.co.jp",vendorCentralDomain:"vendorcentral.amazon.co.jp"},{code:"sg",id:"A19VAU5U5O7RUS",name:"Singapore",region:"fe",domain:"amazon.sg",mwsDomain:"mws-fe.amazonservices.com",imagesDomain:"images-fe.ssl-images-amazon.com",sellerCentralDomain:"sellercentral.amazon.sg",vendorCentralDomain:"vendorcentral.amazon.com.sg"}],m=a(a=>n.find(e=>e.id===a)),o=a(a=>(a=a.toLowerCase(),n.find(e=>e.code===a))),i=a(a=>((a=a.toLowerCase()).startsWith("www.")&&(a=a.slice(4)),n.find(e=>e.domain===a))),s=a(a=>n.filter(e=>e.mwsDomain===a)),r=a(a=>{const n=e[a];return n?s(n):[]});export{o as getMarketplaceByCode,i as getMarketplaceByDomain,m as getMarketplaceById,s as getMarketplacesByMwsDomain,r as getMarketplacesByMwsRegion,n as marketplaces};
2
+ //# sourceMappingURL=amazon-ids.modern.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amazon-ids.modern.js","sources":["../src/index.ts"],"sourcesContent":["import mem from 'mem'\n\nimport _marketplaces from './marketplaces.json'\n\nexport interface Marketplace {\n code: string\n id: string\n name: string\n region: string\n domain?: string\n mwsDomain?: string\n advertisingApiDomain?: string\n imagesDomain?: string\n vendorId?: string\n sellerCentralDomain?: string\n vendorCentralDomain?: string\n}\n\nconst mwsRegionDomains = {\n // Generic MWS regions:\n na: 'mws.amazonservices.com',\n eu: 'mws-eu.amazonservices.com',\n fe: 'mws-fe.amazonservices.com',\n\n // Country specific MWS regions:\n ca: 'mws.amazonservices.ca',\n mx: 'mws.amazonservices.com.mx',\n ae: 'mws.amazonservices.ae',\n in: 'mws.amazonservices.in',\n jp: 'mws.amazonservices.jp',\n au: 'mws.amazonservices.com.au',\n}\n\ntype MwsRegion = keyof typeof mwsRegionDomains\n\n/**\n * All the available marketplaces\n */\nexport const marketplaces: Marketplace[] = _marketplaces\n\n/**\n * Get a marketplace by its id\n * @param id The marketplace's id\n * @returns The marketplace\n */\nexport const getMarketplaceById = mem((id: string) =>\n marketplaces.find((marketplace) => marketplace.id === id),\n)\n\n/**\n * Get a marketplace by its code\n * @param code The marketplace's code\n * @returns The markerplace\n */\nexport const getMarketplaceByCode = mem((code: string) => {\n code = code.toLowerCase()\n\n return marketplaces.find((marketplace) => marketplace.code === code)\n})\n\n/**\n * Get a marketplace by its domain\n * @param domain The marketplace's domain\n * @returns The marketplace\n */\nexport const getMarketplaceByDomain = mem((domain: string) => {\n domain = domain.toLowerCase()\n\n if (domain.startsWith('www.')) {\n domain = domain.slice(4)\n }\n\n return marketplaces.find((marketplace) => marketplace.domain === domain)\n})\n\n/**\n * Get marketplaces by an MWS domain\n * @param domain The MWS domain\n * @returns The marketplaces\n */\nexport const getMarketplacesByMwsDomain = mem((domain: string) =>\n marketplaces.filter((marketplace) => marketplace.mwsDomain === domain),\n)\n\n/**\n * Get marketplaces by an MWS region\n * @param mwsRegion The MWS region\n * @returns The marketplaces\n */\nexport const getMarketplacesByMwsRegion = mem((mwsRegion: MwsRegion) => {\n const mwsDomain = mwsRegionDomains[mwsRegion]\n\n if (!mwsDomain) {\n return []\n }\n\n return getMarketplacesByMwsDomain(mwsDomain)\n})\n"],"names":["mwsRegionDomains","na","eu","fe","ca","mx","ae","in","jp","au","marketplaces","getMarketplaceById","mem","id","find","marketplace","getMarketplaceByCode","code","toLowerCase","getMarketplaceByDomain","domain","startsWith","slice","getMarketplacesByMwsDomain","filter","mwsDomain","getMarketplacesByMwsRegion","mwsRegion"],"mappings":"mBAkBA,MAAMA,EAAmB,CAEvBC,GAAI,yBACJC,GAAI,4BACJC,GAAI,4BAGJC,GAAI,wBACJC,GAAI,4BACJC,GAAI,wBACJC,GAAI,wBACJC,GAAI,wBACJC,GAAI,6BAQOC,mnNAOAC,EAAqBC,EAAKC,GACrCH,EAAaI,KAAMC,GAAgBA,EAAYF,KAAOA,IAQ3CG,EAAuBJ,EAAKK,IACvCA,EAAOA,EAAKC,cAELR,EAAaI,KAAMC,GAAgBA,EAAYE,OAASA,KAQpDE,EAAyBP,EAAKQ,KACzCA,EAASA,EAAOF,eAELG,WAAW,UACpBD,EAASA,EAAOE,MAAM,IAGjBZ,EAAaI,KAAMC,GAAgBA,EAAYK,SAAWA,KAQtDG,EAA6BX,EAAKQ,GAC7CV,EAAac,OAAQT,GAAgBA,EAAYU,YAAcL,IAQpDM,EAA6Bd,EAAKe,IAC7C,MAAMF,EAAYzB,EAAiB2B,GAEnC,OAAKF,EAIEF,EAA2BE,GAHzB"}
@@ -0,0 +1,2 @@
1
+ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("mem")):"function"==typeof define&&define.amd?define(["exports","mem"],e):e((a||self).amazonIds={},a.mem)}(this,function(a,e){function n(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var o=/*#__PURE__*/n(e),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:"de",id:"A1PA6795UKMFR9",name:"Germany",region:"eu",domain:"amazon.de",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A3JWKAKR8XB7XF",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.de"},{code:"de-non-amazon",id:"A38D8NSA03LJTC",name:"Germany - Non-Amazon",region:"eu"},{code:"es",id:"A1RKKUPIHCS9HS",name:"Spain",region:"eu",domain:"amazon.es",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1AT7YVPFBWXBL",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.es"},{code:"es-non-amazon",id:"AFQLKURYRPEL8",name:"Spain - Non-Amazon",region:"eu"},{code:"fr",id:"A13V1IB3VIYZZH",name:"France",region:"eu",domain:"amazon.fr",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1X6FK5RDHNB96",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.fr"},{code:"fr-non-amazon",id:"A1ZFFQZ3HTUKT9",name:"France - Non-Amazon",region:"eu"},{code:"it",id:"APJ6JRA9NG5V4",name:"Italy",region:"eu",domain:"amazon.it",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A11IL2PNWYJU7H",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.it"},{code:"it-non-amazon",id:"A62U237T8HV6N",name:"Italy - Non-Amazon",region:"eu"},{code:"uk",id:"A1F83G8C2ARO7P",name:"United Kingdom",region:"eu",domain:"amazon.co.uk",mwsDomain:"mws-eu.amazonservices.com",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A3P5ROKL5A1OLE",sellerCentralDomain:"sellercentral-europe.amazon.com",vendorCentralDomain:"vendorcentral.amazon.co.uk"},{code:"uk-non-amazon",id:"AZMDEXL2RVFNN",name:"United Kingdom - Non-Amazon",region:"eu"},{code:"tr",id:"A33AVAJ2PDY3EV",name:"Turkey",region:"eu",domain:"amazon.com.tr",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1UNQM1SR2CHM",sellerCentralDomain:"sellercentral.amazon.com.tr",vendorCentralDomain:"vendorcentral.amazon.com.tr"},{code:"eg",id:"ARBP9OOSHTCHU",name:"Egypt",region:"eu",domain:"amazon.eg",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A1ZVRGNO5AYLOV",sellerCentralDomain:"sellercentral.amazon.eg",vendorCentralDomain:"vendorcentral.amazon.me"},{code:"sa",id:"A17E79C6D8DWNP",name:"Saudi Arabia",region:"eu",domain:"amazon.sa",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2XPWB6MYN7ZDK"},{code:"nl",id:"A1805IZSGTT6HS",name:"Netherlands",region:"eu",domain:"amazon.nl",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A17D2BRD4YMT0X",sellerCentralDomain:"sellercentral.amazon.nl",vendorCentralDomain:"vendorcentral.amazon.nl"},{code:"se",id:"A2NODRKZP88ZB9",name:"Sweden",region:"eu",domain:"amazon.se",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"ANU9KP01APNAG",sellerCentralDomain:"sellercentral.amazon.se",vendorCentralDomain:"vendorcentral.amazon.se"},{code:"pl",id:"A1C3SOZRARQ6R3",name:"Poland",region:"eu",domain:"amazon.pl",mwsDomain:"mws-eu.amazonservices.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2R2221NX79QZP",sellerCentralDomain:"sellercentral.amazon.pl",vendorCentralDomain:"vendorcentral.amazon.pl"},{code:"ca",id:"A2EUQ1WTGCTBG2",name:"Canada",region:"na",domain:"amazon.ca",mwsDomain:"mws.amazonservices.ca",advertisingApiDomain:"advertising-api.amazon.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"A3DWYIK6Y9EEQB",sellerCentralDomain:"sellercentral.amazon.ca",vendorCentralDomain:"vendorcentral.amazon.ca"},{code:"ca-non-amazon",id:"A1MQXOICRS2Z7M",name:"Canada - Non-Amazon",region:"na"},{code:"mx",id:"A1AM78C64UM0Y8",name:"Mexico",region:"na",domain:"amazon.com.mx",mwsDomain:"mws.amazonservices.com.mx",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"AVDBXBAVVSXLQ",sellerCentralDomain:"sellercentral.amazon.com.mx",vendorCentralDomain:"vendorcentral.amazon.com.mx"},{code:"mx-non-amazon",id:"A3H6HPSLHAK3XG",name:"Mexico - Non-Amazon",region:"na"},{code:"us",id:"ATVPDKIKX0DER",name:"United States",region:"na",domain:"amazon.com",mwsDomain:"mws.amazonservices.com",advertisingApiDomain:"advertising-api.amazon.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"ATVPDKIKX0DER",sellerCentralDomain:"sellercentral.amazon.com",vendorCentralDomain:"vendorcentral.amazon.com"},{code:"us-non-amazon",id:"A2ZV50J4W1RKNI",name:"United States - Non-Amazon",region:"na"},{code:"br",id:"A2Q3Y263D00KWC",name:"Brazil",region:"na",domain:"amazon.com.br",mwsDomain:"mws.amazonservices.com",imagesDomain:"images-na.ssl-images-amazon.com",vendorId:"A1ZZFT5FULY4LN",sellerCentralDomain:"sellercentral.amazon.com.br",vendorCentralDomain:"vendorcentral.amazon.com.br"},{code:"ae",id:"A2VIGQ35RCS4UG",name:"United Arab Emirates",region:"eu",domain:"amazon.ae",mwsDomain:"mws.amazonservices.ae",advertisingApiDomain:"advertising-api-eu.amazon.com",imagesDomain:"images-eu.ssl-images-amazon.com",vendorId:"A2KKU8J8O8784X",sellerCentralDomain:"sellercentral.amazon.ae",vendorCentralDomain:"vendorcentral.amazon.me"},{code:"in",id:"A21TJRUUN4KGV",name:"India",region:"eu",domain:"amazon.in",mwsDomain:"mws.amazonservices.in",imagesDomain:"images-eu.ssl-images-amazon.com",sellerCentralDomain:"sellercentral.amazon.in",vendorCentralDomain:"vendorcentral.amazon.in"},{code:"au",id:"A39IBJ37TRP1C6",name:"Australia",region:"fe",domain:"amazon.com.au",mwsDomain:"mws.amazonservices.com.au",advertisingApiDomain:"advertising-api-fe.amazon.com",imagesDomain:"images-fe.ssl-images-amazon.com",vendorId:"ANEGB3WVEVKZB",sellerCentralDomain:"sellercentral.amazon.com.au",vendorCentralDomain:"vendorcentral.amazon.com.au"},{code:"jp",id:"A1VC38T7YXB528",name:"Japan",region:"fe",domain:"amazon.co.jp",mwsDomain:"mws.amazonservices.jp",advertisingApiDomain:"advertising-api-fe.amazon.com",imagesDomain:"images-fe.ssl-images-amazon.com",vendorId:"AN1VRQENFRJN5",sellerCentralDomain:"sellercentral.amazon.co.jp",vendorCentralDomain:"vendorcentral.amazon.co.jp"},{code:"sg",id:"A19VAU5U5O7RUS",name:"Singapore",region:"fe",domain:"amazon.sg",mwsDomain:"mws-fe.amazonservices.com",imagesDomain:"images-fe.ssl-images-amazon.com",sellerCentralDomain:"sellercentral.amazon.sg",vendorCentralDomain:"vendorcentral.amazon.com.sg"}],r=o.default(function(a){return i.find(function(e){return e.id===a})}),s=o.default(function(a){return a=a.toLowerCase(),i.find(function(e){return e.code===a})}),d=o.default(function(a){return(a=a.toLowerCase()).startsWith("www.")&&(a=a.slice(4)),i.find(function(e){return e.domain===a})}),c=o.default(function(a){return i.filter(function(e){return e.mwsDomain===a})}),l=o.default(function(a){var e=m[a];return e?c(e):[]});a.getMarketplaceByCode=s,a.getMarketplaceByDomain=d,a.getMarketplaceById=r,a.getMarketplacesByMwsDomain=c,a.getMarketplacesByMwsRegion=l,a.marketplaces=i});
2
+ //# sourceMappingURL=amazon-ids.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amazon-ids.umd.js","sources":["../src/index.ts"],"sourcesContent":["import mem from 'mem'\n\nimport _marketplaces from './marketplaces.json'\n\nexport interface Marketplace {\n code: string\n id: string\n name: string\n region: string\n domain?: string\n mwsDomain?: string\n advertisingApiDomain?: string\n imagesDomain?: string\n vendorId?: string\n sellerCentralDomain?: string\n vendorCentralDomain?: string\n}\n\nconst mwsRegionDomains = {\n // Generic MWS regions:\n na: 'mws.amazonservices.com',\n eu: 'mws-eu.amazonservices.com',\n fe: 'mws-fe.amazonservices.com',\n\n // Country specific MWS regions:\n ca: 'mws.amazonservices.ca',\n mx: 'mws.amazonservices.com.mx',\n ae: 'mws.amazonservices.ae',\n in: 'mws.amazonservices.in',\n jp: 'mws.amazonservices.jp',\n au: 'mws.amazonservices.com.au',\n}\n\ntype MwsRegion = keyof typeof mwsRegionDomains\n\n/**\n * All the available marketplaces\n */\nexport const marketplaces: Marketplace[] = _marketplaces\n\n/**\n * Get a marketplace by its id\n * @param id The marketplace's id\n * @returns The marketplace\n */\nexport const getMarketplaceById = mem((id: string) =>\n marketplaces.find((marketplace) => marketplace.id === id),\n)\n\n/**\n * Get a marketplace by its code\n * @param code The marketplace's code\n * @returns The markerplace\n */\nexport const getMarketplaceByCode = mem((code: string) => {\n code = code.toLowerCase()\n\n return marketplaces.find((marketplace) => marketplace.code === code)\n})\n\n/**\n * Get a marketplace by its domain\n * @param domain The marketplace's domain\n * @returns The marketplace\n */\nexport const getMarketplaceByDomain = mem((domain: string) => {\n domain = domain.toLowerCase()\n\n if (domain.startsWith('www.')) {\n domain = domain.slice(4)\n }\n\n return marketplaces.find((marketplace) => marketplace.domain === domain)\n})\n\n/**\n * Get marketplaces by an MWS domain\n * @param domain The MWS domain\n * @returns The marketplaces\n */\nexport const getMarketplacesByMwsDomain = mem((domain: string) =>\n marketplaces.filter((marketplace) => marketplace.mwsDomain === domain),\n)\n\n/**\n * Get marketplaces by an MWS region\n * @param mwsRegion The MWS region\n * @returns The marketplaces\n */\nexport const getMarketplacesByMwsRegion = mem((mwsRegion: MwsRegion) => {\n const mwsDomain = mwsRegionDomains[mwsRegion]\n\n if (!mwsDomain) {\n return []\n }\n\n return getMarketplacesByMwsDomain(mwsDomain)\n})\n"],"names":["mwsRegionDomains","na","eu","fe","ca","mx","ae","in","jp","au","marketplaces","getMarketplaceById","mem","id","find","marketplace","getMarketplaceByCode","code","toLowerCase","getMarketplaceByDomain","domain","startsWith","slice","getMarketplacesByMwsDomain","filter","mwsDomain","getMarketplacesByMwsRegion","mwsRegion"],"mappings":"gWAkBMA,EAAmB,CAEvBC,GAAI,yBACJC,GAAI,4BACJC,GAAI,4BAGJC,GAAI,wBACJC,GAAI,4BACJC,GAAI,wBACJC,GAAI,wBACJC,GAAI,wBACJC,GAAI,6BAQOC,mnNAOAC,EAAqBC,UAAI,SAACC,UACrCH,EAAaI,KAAK,SAACC,UAAgBA,EAAYF,KAAOA,MAQ3CG,EAAuBJ,UAAI,SAACK,GAGvC,OAFAA,EAAOA,EAAKC,cAELR,EAAaI,KAAK,SAACC,UAAgBA,EAAYE,OAASA,MAQpDE,EAAyBP,UAAI,SAACQ,GAOzC,OANAA,EAASA,EAAOF,eAELG,WAAW,UACpBD,EAASA,EAAOE,MAAM,IAGjBZ,EAAaI,KAAK,SAACC,UAAgBA,EAAYK,SAAWA,MAQtDG,EAA6BX,UAAI,SAACQ,UAC7CV,EAAac,OAAO,SAACT,UAAgBA,EAAYU,YAAcL,MAQpDM,EAA6Bd,UAAI,SAACe,GAC7C,IAAMF,EAAYzB,EAAiB2B,GAEnC,OAAKF,EAIEF,EAA2BE,GAHzB"}
@@ -0,0 +1,60 @@
1
+ export interface Marketplace {
2
+ code: string;
3
+ id: string;
4
+ name: string;
5
+ region: string;
6
+ domain?: string;
7
+ mwsDomain?: string;
8
+ advertisingApiDomain?: string;
9
+ imagesDomain?: string;
10
+ vendorId?: string;
11
+ sellerCentralDomain?: string;
12
+ vendorCentralDomain?: string;
13
+ }
14
+ declare const mwsRegionDomains: {
15
+ na: string;
16
+ eu: string;
17
+ fe: string;
18
+ ca: string;
19
+ mx: string;
20
+ ae: string;
21
+ in: string;
22
+ jp: string;
23
+ au: string;
24
+ };
25
+ declare type MwsRegion = keyof typeof mwsRegionDomains;
26
+ /**
27
+ * All the available marketplaces
28
+ */
29
+ export declare const marketplaces: Marketplace[];
30
+ /**
31
+ * Get a marketplace by its id
32
+ * @param id The marketplace's id
33
+ * @returns The marketplace
34
+ */
35
+ export declare const getMarketplaceById: (id: string) => Marketplace | undefined;
36
+ /**
37
+ * Get a marketplace by its code
38
+ * @param code The marketplace's code
39
+ * @returns The markerplace
40
+ */
41
+ export declare const getMarketplaceByCode: (code: string) => Marketplace | undefined;
42
+ /**
43
+ * Get a marketplace by its domain
44
+ * @param domain The marketplace's domain
45
+ * @returns The marketplace
46
+ */
47
+ export declare const getMarketplaceByDomain: (domain: string) => Marketplace | undefined;
48
+ /**
49
+ * Get marketplaces by an MWS domain
50
+ * @param domain The MWS domain
51
+ * @returns The marketplaces
52
+ */
53
+ export declare const getMarketplacesByMwsDomain: (domain: string) => Marketplace[];
54
+ /**
55
+ * Get marketplaces by an MWS region
56
+ * @param mwsRegion The MWS region
57
+ * @returns The marketplaces
58
+ */
59
+ export declare const getMarketplacesByMwsRegion: (mwsRegion: MwsRegion) => Marketplace[];
60
+ export {};
package/package.json CHANGED
@@ -1,29 +1,43 @@
1
1
  {
2
2
  "name": "@bizon/amazon-ids",
3
- "version": "2.7.1",
3
+ "version": "2.9.2",
4
4
  "description": "Collection of Amazon identifiers",
5
- "main": "index.js",
6
5
  "repository": "https://github.com/bizon/amazon-ids",
7
6
  "author": "Bertrand Marron <bertrand.marron@gmail.com>",
8
7
  "license": "MIT",
9
- "scripts": {
10
- "test": "jest"
11
- },
8
+ "sideEffects": false,
12
9
  "files": [
13
- "index.js",
14
- "index.d.ts",
15
- "marketplaces.json"
10
+ "dist"
16
11
  ],
17
- "types": "index.d.ts",
12
+ "source": "./src/index.ts",
13
+ "exports": {
14
+ "require": "./dist/amazon-ids.js",
15
+ "default": "./dist/amazon-ids.modern.js"
16
+ },
17
+ "main": "./dist/amazon-ids.js",
18
+ "module": "./dist/amazon-ids.esm.js",
19
+ "types": "./dist/index.d.ts",
20
+ "unpkg": "./dist/amazon-ids.umd.js",
21
+ "scripts": {
22
+ "test": "jest",
23
+ "check:ts": "tsc --noEmit",
24
+ "build": "microbundle",
25
+ "dev": "microbundle watch"
26
+ },
18
27
  "dependencies": {
19
28
  "mem": "^8.1.1"
20
29
  },
21
30
  "devDependencies": {
22
- "@bizon/semantic-release-config": "^1.0.1",
23
- "jest": "^27.2.0",
24
- "jest-junit": "^12.2.0",
25
- "semantic-release": "^17.4.7",
26
- "xo": "^0.44.0"
31
+ "@bizon/semantic-release-config": "^1.1.0",
32
+ "@tsconfig/node14": "^1.0.1",
33
+ "@types/jest": "^27.4.0",
34
+ "jest": "^27.4.7",
35
+ "jest-junit": "^13.0.0",
36
+ "microbundle": "^0.14.2",
37
+ "semantic-release": "^18.0.1",
38
+ "ts-jest": "^27.1.2",
39
+ "typescript": "^4.5.4",
40
+ "xo": "^0.47.0"
27
41
  },
28
42
  "keywords": [
29
43
  "amazon",
@@ -32,13 +46,11 @@
32
46
  "marketplaces"
33
47
  ],
34
48
  "jest": {
49
+ "preset": "ts-jest",
35
50
  "testEnvironment": "node",
36
- "testMatch": [
37
- "<rootDir>/__tests__/**/*.js"
38
- ],
39
51
  "collectCoverage": true,
40
52
  "collectCoverageFrom": [
41
- "index.js"
53
+ "src/**/*.ts"
42
54
  ],
43
55
  "coverageReporters": [
44
56
  "lcov",
@@ -48,17 +60,14 @@
48
60
  "xo": {
49
61
  "semicolon": false,
50
62
  "space": 2,
63
+ "prettier": true,
51
64
  "rules": {
65
+ "import/extensions": "off",
52
66
  "unicorn/prefer-module": "off"
53
- },
54
- "overrides": [
55
- {
56
- "files": "__tests__/**/*.js",
57
- "envs": [
58
- "jest"
59
- ]
60
- }
61
- ]
67
+ }
68
+ },
69
+ "prettier": {
70
+ "printWidth": 100
62
71
  },
63
72
  "release": {
64
73
  "extends": "@bizon/semantic-release-config"
package/index.d.ts DELETED
@@ -1,51 +0,0 @@
1
- export declare interface Marketplace {
2
- code: string;
3
- id: string;
4
- name: string;
5
- region: string;
6
- domain?: string;
7
- mwsDomain?: string;
8
- advertisingApiDomain?: string;
9
- imagesDomain?: string;
10
- vendorId?: string;
11
- }
12
-
13
- /**
14
- * All the available marketplaces
15
- */
16
- export declare const marketplaces: Marketplace[]
17
-
18
- /**
19
- * Get a marketplace by its id
20
- * @param id The marketplace's id
21
- * @returns The marketplace
22
- */
23
- export declare function getMarketplaceById(id: string): Marketplace | undefined
24
-
25
- /**
26
- * Get a marketplace by its code
27
- * @param code The marketplace's code
28
- * @returns The markerplace
29
- */
30
- export declare function getMarketplaceByCode(code: string): Marketplace | undefined
31
-
32
- /**
33
- * Get a marketplace by its domain
34
- * @param domain The marketplace's domain
35
- * @returns The marketplace
36
- */
37
- export declare function getMarketplaceByDomain(domain: string): Marketplace | undefined
38
-
39
- /**
40
- * Get several marketplaces by a MWS domain
41
- * @param domain The MWS domain
42
- * @returns The marketplaces
43
- */
44
- export declare function getMarketplacesByMwsDomain(domain: string): Marketplace[]
45
-
46
- /**
47
- * Get several marketplaces by a MWS region
48
- * @param mwsRegion The MWS region
49
- * @returns The marketplaces
50
- */
51
- export declare function getMarketplacesByMwsRegion(mwsRegion: string): Marketplace[]
package/index.js DELETED
@@ -1,50 +0,0 @@
1
- const mem = require('mem')
2
-
3
- const marketplaces = require('./marketplaces.json')
4
-
5
- const mwsRegionDomains = {
6
- // Generic MWS regions:
7
- na: 'mws.amazonservices.com',
8
- eu: 'mws-eu.amazonservices.com',
9
- fe: 'mws-fe.amazonservices.com',
10
-
11
- // Country specific MWS regions:
12
- ca: 'mws.amazonservices.ca',
13
- mx: 'mws.amazonservices.com.mx',
14
- ae: 'mws.amazonservices.ae',
15
- in: 'mws.amazonservices.in',
16
- jp: 'mws.amazonservices.jp',
17
- au: 'mws.amazonservices.com.au',
18
- }
19
-
20
- exports.marketplaces = marketplaces
21
-
22
- exports.getMarketplaceById = mem(id => marketplaces.find(marketplace => marketplace.id === id))
23
-
24
- exports.getMarketplaceByCode = mem(code => {
25
- code = code.toLowerCase()
26
-
27
- return marketplaces.find(marketplace => marketplace.code === code)
28
- })
29
-
30
- exports.getMarketplaceByDomain = mem(domain => {
31
- domain = domain.toLowerCase()
32
-
33
- if (domain.startsWith('www.')) {
34
- domain = domain.slice(4)
35
- }
36
-
37
- return marketplaces.find(marketplace => marketplace.domain === domain)
38
- })
39
-
40
- exports.getMarketplacesByMwsDomain = mem(domain => marketplaces.filter(marketplace => marketplace.mwsDomain === domain))
41
-
42
- exports.getMarketplacesByMwsRegion = mem(mwsRegion => {
43
- const mwsDomain = mwsRegionDomains[String(mwsRegion).toLowerCase()]
44
-
45
- if (!mwsDomain) {
46
- return []
47
- }
48
-
49
- return this.getMarketplacesByMwsDomain(mwsDomain)
50
- })
package/marketplaces.json DELETED
@@ -1,258 +0,0 @@
1
- [
2
- {
3
- "code": "de",
4
- "id": "A1PA6795UKMFR9",
5
- "name": "Germany",
6
- "region": "eu",
7
- "domain": "amazon.de",
8
- "mwsDomain": "mws-eu.amazonservices.com",
9
- "advertisingApiDomain": "advertising-api-eu.amazon.com",
10
- "imagesDomain": "images-eu.ssl-images-amazon.com",
11
- "vendorId": "A3JWKAKR8XB7XF"
12
- },
13
- {
14
- "code": "de-non-amazon",
15
- "id": "A38D8NSA03LJTC",
16
- "name": "Germany - Non-Amazon",
17
- "region": "eu"
18
- },
19
- {
20
- "code": "es",
21
- "id": "A1RKKUPIHCS9HS",
22
- "name": "Spain",
23
- "region": "eu",
24
- "domain": "amazon.es",
25
- "mwsDomain": "mws-eu.amazonservices.com",
26
- "advertisingApiDomain": "advertising-api-eu.amazon.com",
27
- "imagesDomain": "images-eu.ssl-images-amazon.com",
28
- "vendorId": "A1AT7YVPFBWXBL"
29
- },
30
- {
31
- "code": "es-non-amazon",
32
- "id": "AFQLKURYRPEL8",
33
- "name": "Spain - Non-Amazon",
34
- "region": "eu"
35
- },
36
- {
37
- "code": "fr",
38
- "id": "A13V1IB3VIYZZH",
39
- "name": "France",
40
- "region": "eu",
41
- "domain": "amazon.fr",
42
- "mwsDomain": "mws-eu.amazonservices.com",
43
- "advertisingApiDomain": "advertising-api-eu.amazon.com",
44
- "imagesDomain": "images-eu.ssl-images-amazon.com",
45
- "vendorId": "A1X6FK5RDHNB96"
46
- },
47
- {
48
- "code": "fr-non-amazon",
49
- "id": "A1ZFFQZ3HTUKT9",
50
- "name": "France - Non-Amazon",
51
- "region": "eu"
52
- },
53
- {
54
- "code": "it",
55
- "id": "APJ6JRA9NG5V4",
56
- "name": "Italy",
57
- "region": "eu",
58
- "domain": "amazon.it",
59
- "mwsDomain": "mws-eu.amazonservices.com",
60
- "advertisingApiDomain": "advertising-api-eu.amazon.com",
61
- "imagesDomain": "images-eu.ssl-images-amazon.com",
62
- "vendorId": "A11IL2PNWYJU7H"
63
- },
64
- {
65
- "code": "it-non-amazon",
66
- "id": "A62U237T8HV6N",
67
- "name": "Italy - Non-Amazon",
68
- "region": "eu"
69
- },
70
- {
71
- "code": "uk",
72
- "id": "A1F83G8C2ARO7P",
73
- "name": "United Kingdom",
74
- "region": "eu",
75
- "domain": "amazon.co.uk",
76
- "mwsDomain": "mws-eu.amazonservices.com",
77
- "advertisingApiDomain": "advertising-api-eu.amazon.com",
78
- "imagesDomain": "images-eu.ssl-images-amazon.com",
79
- "vendorId": "A3P5ROKL5A1OLE"
80
- },
81
- {
82
- "code": "uk-non-amazon",
83
- "id": "AZMDEXL2RVFNN",
84
- "name": "United Kingdom - Non-Amazon",
85
- "region": "eu"
86
- },
87
- {
88
- "code": "tr",
89
- "id": "A33AVAJ2PDY3EV",
90
- "name": "Turkey",
91
- "region": "eu",
92
- "domain": "amazon.com.tr",
93
- "mwsDomain": "mws-eu.amazonservices.com",
94
- "imagesDomain": "images-eu.ssl-images-amazon.com",
95
- "vendorId": "A1UNQM1SR2CHM"
96
- },
97
- {
98
- "code": "eg",
99
- "id": "ARBP9OOSHTCHU",
100
- "name": "Egypt",
101
- "region": "eu",
102
- "domain": "amazon.eg",
103
- "mwsDomain": "mws-eu.amazonservices.com",
104
- "imagesDomain": "images-eu.ssl-images-amazon.com",
105
- "vendorId": "A1ZVRGNO5AYLOV"
106
- },
107
- {
108
- "code": "sa",
109
- "id": "A17E79C6D8DWNP",
110
- "name": "Saudi Arabia",
111
- "region": "eu",
112
- "domain": "amazon.sa",
113
- "mwsDomain": "mws-eu.amazonservices.com",
114
- "imagesDomain": "images-eu.ssl-images-amazon.com",
115
- "vendorId": "A2XPWB6MYN7ZDK"
116
- },
117
- {
118
- "code": "nl",
119
- "id": "A1805IZSGTT6HS",
120
- "name": "Netherlands",
121
- "region": "eu",
122
- "domain": "amazon.nl",
123
- "mwsDomain": "mws-eu.amazonservices.com",
124
- "imagesDomain": "images-eu.ssl-images-amazon.com",
125
- "vendorId": "A17D2BRD4YMT0X"
126
- },
127
- {
128
- "code": "se",
129
- "id": "A2NODRKZP88ZB9",
130
- "name": "Sweden",
131
- "region": "eu",
132
- "domain": "amazon.se",
133
- "mwsDomain": "mws-eu.amazonservices.com",
134
- "imagesDomain": "images-eu.ssl-images-amazon.com",
135
- "vendorId": "ANU9KP01APNAG"
136
- },
137
- {
138
- "code": "pl",
139
- "id": "A1C3SOZRARQ6R3",
140
- "name": "Poland",
141
- "region": "eu",
142
- "domain": "amazon.pl",
143
- "mwsDomain": "mws-eu.amazonservices.com",
144
- "imagesDomain": "images-eu.ssl-images-amazon.com",
145
- "vendorId": "A2R2221NX79QZP"
146
- },
147
- {
148
- "code": "ca",
149
- "id": "A2EUQ1WTGCTBG2",
150
- "name": "Canada",
151
- "region": "na",
152
- "domain": "amazon.ca",
153
- "mwsDomain": "mws.amazonservices.ca",
154
- "advertisingApiDomain": "advertising-api.amazon.com",
155
- "imagesDomain": "images-na.ssl-images-amazon.com",
156
- "vendorId": "A3DWYIK6Y9EEQB"
157
- },
158
- {
159
- "code": "ca-non-amazon",
160
- "id": "A1MQXOICRS2Z7M",
161
- "name": "Canada - Non-Amazon",
162
- "region": "na"
163
- },
164
- {
165
- "code": "mx",
166
- "id": "A1AM78C64UM0Y8",
167
- "name": "Mexico",
168
- "region": "na",
169
- "domain": "amazon.com.mx",
170
- "mwsDomain": "mws.amazonservices.com.mx",
171
- "imagesDomain": "images-na.ssl-images-amazon.com",
172
- "vendorId": "AVDBXBAVVSXLQ"
173
- },
174
- {
175
- "code": "mx-non-amazon",
176
- "id": "A3H6HPSLHAK3XG",
177
- "name": "Mexico - Non-Amazon",
178
- "region": "na"
179
- },
180
- {
181
- "code": "us",
182
- "id": "ATVPDKIKX0DER",
183
- "name": "United States",
184
- "region": "na",
185
- "domain": "amazon.com",
186
- "mwsDomain": "mws.amazonservices.com",
187
- "advertisingApiDomain": "advertising-api.amazon.com",
188
- "imagesDomain": "images-na.ssl-images-amazon.com",
189
- "vendorId": "ATVPDKIKX0DER"
190
- },
191
- {
192
- "code": "us-non-amazon",
193
- "id": "A2ZV50J4W1RKNI",
194
- "name": "United States - Non-Amazon",
195
- "region": "na"
196
- },
197
- {
198
- "code": "br",
199
- "id": "A2Q3Y263D00KWC",
200
- "name": "Brazil",
201
- "region": "na",
202
- "domain": "amazon.com.br",
203
- "mwsDomain": "mws.amazonservices.com",
204
- "imagesDomain": "images-na.ssl-images-amazon.com",
205
- "vendorId": "A1ZZFT5FULY4LN"
206
- },
207
- {
208
- "code": "ae",
209
- "id": "A2VIGQ35RCS4UG",
210
- "name": "United Arab Emirates",
211
- "region": "eu",
212
- "domain": "amazon.ae",
213
- "mwsDomain": "mws.amazonservices.ae",
214
- "advertisingApiDomain": "advertising-api-eu.amazon.com",
215
- "imagesDomain": "images-eu.ssl-images-amazon.com",
216
- "vendorId": "A2KKU8J8O8784X"
217
- },
218
- {
219
- "code": "in",
220
- "id": "A21TJRUUN4KGV",
221
- "name": "India",
222
- "region": "eu",
223
- "domain": "amazon.in",
224
- "mwsDomain": "mws.amazonservices.in",
225
- "imagesDomain": "images-eu.ssl-images-amazon.com"
226
- },
227
- {
228
- "code": "au",
229
- "id": "A39IBJ37TRP1C6",
230
- "name": "Australia",
231
- "region": "fe",
232
- "domain": "amazon.com.au",
233
- "mwsDomain": "mws.amazonservices.com.au",
234
- "advertisingApiDomain": "advertising-api-fe.amazon.com",
235
- "imagesDomain": "images-fe.ssl-images-amazon.com",
236
- "vendorId": "ANEGB3WVEVKZB"
237
- },
238
- {
239
- "code": "jp",
240
- "id": "A1VC38T7YXB528",
241
- "name": "Japan",
242
- "region": "fe",
243
- "domain": "amazon.co.jp",
244
- "mwsDomain": "mws.amazonservices.jp",
245
- "advertisingApiDomain": "advertising-api-fe.amazon.com",
246
- "imagesDomain": "images-fe.ssl-images-amazon.com",
247
- "vendorId": "AN1VRQENFRJN5"
248
- },
249
- {
250
- "code": "sg",
251
- "id": "A19VAU5U5O7RUS",
252
- "name": "Singapore",
253
- "region": "fe",
254
- "domain": "amazon.sg",
255
- "mwsDomain": "mws-fe.amazonservices.com",
256
- "imagesDomain": "images-fe.ssl-images-amazon.com"
257
- }
258
- ]