@scaleleap/amazon-marketplaces
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -6,2 +6,21 @@ # Changelog | ||
# [3.0.0](https://github.com/ScaleLeap/amazon-marketplaces/compare/v2.0.0...v3.0.0) (2020-03-09) | ||
### Bug Fixes | ||
* adds countryCode to AmazonMarketplaceAdvertising ([d953e3a](https://github.com/ScaleLeap/amazon-marketplaces/commit/d953e3a4140469fd7561ec0a7295d74021b22f6f)) | ||
### Code Refactoring | ||
* renames AmazonMarketplaceAdvertisingCountryCode ([85198cd](https://github.com/ScaleLeap/amazon-marketplaces/commit/85198cd93758046a6942f3604a83054ac82a3a64)) | ||
### BREAKING CHANGES | ||
* Adds countryCode to AmazonMarketplaceAdvertising that is different from AmazonMarketplaceCountryCode enum. | ||
Closes https://github.com/ScaleLeap/amazon-marketplaces/issues/122 | ||
* Renames AmazonMarketplaceAdvertisingCountryCode enum to AmazonMarketplaceCountryCode | ||
# [2.0.0](https://github.com/ScaleLeap/amazon-marketplaces/compare/v1.5.0...v2.0.0) (2020-02-27) | ||
@@ -8,0 +27,0 @@ |
/** | ||
* Country code enum. | ||
* Amazon Marketplace country code enum. | ||
*/ | ||
export declare enum AmazonMarketplaceAdvertisingCountryCode { | ||
export declare enum AmazonMarketplaceCountryCode { | ||
AE = "AE", | ||
@@ -42,2 +42,19 @@ AU = "AU", | ||
/** | ||
* Amazon Marketplace Advertising country code enum. | ||
* | ||
* The country code identifying the publisher(s) on which ads will run. | ||
*/ | ||
export declare enum AmazonMarketplaceAdvertisingCountryCode { | ||
AE = "AE", | ||
AU = "AU", | ||
CA = "CA", | ||
DE = "DE", | ||
ES = "ES", | ||
FR = "FR", | ||
IT = "IT", | ||
JP = "JP", | ||
UK = "UK", | ||
US = "US" | ||
} | ||
/** | ||
* Time Zone enum. | ||
@@ -67,2 +84,13 @@ */ | ||
/** | ||
* The country code identifying the publisher(s) on which ads will run. | ||
* | ||
* [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) with the exception of UK, which uses | ||
* `UK` instead of `GB`. | ||
* | ||
* @example | ||
* | ||
* AmazonMarketplaceAdvertisingCountryCode.CA | ||
*/ | ||
readonly countryCode: AmazonMarketplaceAdvertisingCountryCode; | ||
/** | ||
* Minimum and maximum bids for each advertising type. | ||
@@ -123,5 +151,5 @@ */ | ||
* | ||
* AmazonMarketplaceAdvertisingCountryCode.CA | ||
* AmazonMarketplaceCountryCode.CA | ||
*/ | ||
readonly countryCode: AmazonMarketplaceAdvertisingCountryCode; | ||
readonly countryCode: AmazonMarketplaceCountryCode; | ||
/** | ||
@@ -128,0 +156,0 @@ * Currency code for the given marketplace. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Country code enum. | ||
* Amazon Marketplace country code enum. | ||
*/ | ||
var AmazonMarketplaceAdvertisingCountryCode; | ||
(function (AmazonMarketplaceAdvertisingCountryCode) { | ||
AmazonMarketplaceAdvertisingCountryCode["AE"] = "AE"; | ||
AmazonMarketplaceAdvertisingCountryCode["AU"] = "AU"; | ||
AmazonMarketplaceAdvertisingCountryCode["BR"] = "BR"; | ||
AmazonMarketplaceAdvertisingCountryCode["CA"] = "CA"; | ||
AmazonMarketplaceAdvertisingCountryCode["CN"] = "CN"; | ||
AmazonMarketplaceAdvertisingCountryCode["DE"] = "DE"; | ||
AmazonMarketplaceAdvertisingCountryCode["ES"] = "ES"; | ||
AmazonMarketplaceAdvertisingCountryCode["FR"] = "FR"; | ||
AmazonMarketplaceAdvertisingCountryCode["GB"] = "GB"; | ||
AmazonMarketplaceAdvertisingCountryCode["IN"] = "IN"; | ||
AmazonMarketplaceAdvertisingCountryCode["IT"] = "IT"; | ||
AmazonMarketplaceAdvertisingCountryCode["JP"] = "JP"; | ||
AmazonMarketplaceAdvertisingCountryCode["MX"] = "MX"; | ||
AmazonMarketplaceAdvertisingCountryCode["NL"] = "NL"; | ||
AmazonMarketplaceAdvertisingCountryCode["SG"] = "SG"; | ||
AmazonMarketplaceAdvertisingCountryCode["TR"] = "TR"; | ||
AmazonMarketplaceAdvertisingCountryCode["US"] = "US"; | ||
})(AmazonMarketplaceAdvertisingCountryCode = exports.AmazonMarketplaceAdvertisingCountryCode || (exports.AmazonMarketplaceAdvertisingCountryCode = {})); | ||
var AmazonMarketplaceCountryCode; | ||
(function (AmazonMarketplaceCountryCode) { | ||
AmazonMarketplaceCountryCode["AE"] = "AE"; | ||
AmazonMarketplaceCountryCode["AU"] = "AU"; | ||
AmazonMarketplaceCountryCode["BR"] = "BR"; | ||
AmazonMarketplaceCountryCode["CA"] = "CA"; | ||
AmazonMarketplaceCountryCode["CN"] = "CN"; | ||
AmazonMarketplaceCountryCode["DE"] = "DE"; | ||
AmazonMarketplaceCountryCode["ES"] = "ES"; | ||
AmazonMarketplaceCountryCode["FR"] = "FR"; | ||
AmazonMarketplaceCountryCode["GB"] = "GB"; | ||
AmazonMarketplaceCountryCode["IN"] = "IN"; | ||
AmazonMarketplaceCountryCode["IT"] = "IT"; | ||
AmazonMarketplaceCountryCode["JP"] = "JP"; | ||
AmazonMarketplaceCountryCode["MX"] = "MX"; | ||
AmazonMarketplaceCountryCode["NL"] = "NL"; | ||
AmazonMarketplaceCountryCode["SG"] = "SG"; | ||
AmazonMarketplaceCountryCode["TR"] = "TR"; | ||
AmazonMarketplaceCountryCode["US"] = "US"; | ||
})(AmazonMarketplaceCountryCode = exports.AmazonMarketplaceCountryCode || (exports.AmazonMarketplaceCountryCode = {})); | ||
/** | ||
@@ -46,2 +46,20 @@ * Currency enum. | ||
/** | ||
* Amazon Marketplace Advertising country code enum. | ||
* | ||
* The country code identifying the publisher(s) on which ads will run. | ||
*/ | ||
var AmazonMarketplaceAdvertisingCountryCode; | ||
(function (AmazonMarketplaceAdvertisingCountryCode) { | ||
AmazonMarketplaceAdvertisingCountryCode["AE"] = "AE"; | ||
AmazonMarketplaceAdvertisingCountryCode["AU"] = "AU"; | ||
AmazonMarketplaceAdvertisingCountryCode["CA"] = "CA"; | ||
AmazonMarketplaceAdvertisingCountryCode["DE"] = "DE"; | ||
AmazonMarketplaceAdvertisingCountryCode["ES"] = "ES"; | ||
AmazonMarketplaceAdvertisingCountryCode["FR"] = "FR"; | ||
AmazonMarketplaceAdvertisingCountryCode["IT"] = "IT"; | ||
AmazonMarketplaceAdvertisingCountryCode["JP"] = "JP"; | ||
AmazonMarketplaceAdvertisingCountryCode["UK"] = "UK"; | ||
AmazonMarketplaceAdvertisingCountryCode["US"] = "US"; | ||
})(AmazonMarketplaceAdvertisingCountryCode = exports.AmazonMarketplaceAdvertisingCountryCode || (exports.AmazonMarketplaceAdvertisingCountryCode = {})); | ||
/** | ||
* Time Zone enum. | ||
@@ -48,0 +66,0 @@ */ |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.AE = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.AE, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.AE, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.AED, | ||
@@ -14,2 +14,3 @@ id: 'A2VIGQ35RCS4UG', | ||
uri: 'https://advertising-api-eu.amazon.com', | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.AE, | ||
bids: { | ||
@@ -16,0 +17,0 @@ sponsoredBrands: { |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.AU = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.AU, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.AU, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.AUD, | ||
@@ -14,2 +14,3 @@ id: 'A39IBJ37TRP1C6', | ||
uri: 'https://advertising-api-fe.amazon.com', | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.AU, | ||
bids: { | ||
@@ -16,0 +17,0 @@ sponsoredBrands: { |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.BR = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.BR, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.BR, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.BRL, | ||
@@ -8,0 +8,0 @@ id: 'A2Q3Y263D00KWC', |
@@ -9,3 +9,3 @@ "use strict"; | ||
exports.CA = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.CA, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.CA, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.CAD, | ||
@@ -12,0 +12,0 @@ id: 'A2EUQ1WTGCTBG2', |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.CN = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.CN, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.CN, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.CNY, | ||
@@ -8,0 +8,0 @@ id: 'AAHKV2X7AFYLW', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const amazon_marketplace_1 = require("../amazon-marketplace"); | ||
const european_advertising_factory_1 = require("../european-advertising-factory"); | ||
exports.DE = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.DE, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.DE, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -11,17 +12,4 @@ id: 'A1PA6795UKMFR9', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
advertising: { | ||
uri: 'https://advertising-api-eu.amazon.com', | ||
bids: { | ||
sponsoredBrands: { | ||
min: 10, | ||
max: 3900, | ||
}, | ||
sponsoredProducts: { | ||
min: 2, | ||
max: 100000, | ||
}, | ||
}, | ||
timeZone: amazon_marketplace_1.AmazonMarketplaceAdvertisingTimeZone.EUROPE_PARIS, | ||
}, | ||
advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.DE), | ||
}); | ||
//# sourceMappingURL=DE.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const amazon_marketplace_1 = require("../amazon-marketplace"); | ||
const DE_1 = require("./DE"); | ||
const european_advertising_factory_1 = require("../european-advertising-factory"); | ||
exports.ES = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.ES, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.ES, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -12,4 +12,4 @@ id: 'A1RKKUPIHCS9HS', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
advertising: Object.assign({}, DE_1.DE.advertising), | ||
advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.ES), | ||
}); | ||
//# sourceMappingURL=ES.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const amazon_marketplace_1 = require("../amazon-marketplace"); | ||
const DE_1 = require("./DE"); | ||
const european_advertising_factory_1 = require("../european-advertising-factory"); | ||
exports.FR = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.FR, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.FR, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -12,4 +12,4 @@ id: 'A13V1IB3VIYZZH', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
advertising: Object.assign({}, DE_1.DE.advertising), | ||
advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.FR), | ||
}); | ||
//# sourceMappingURL=FR.js.map |
@@ -9,3 +9,3 @@ "use strict"; | ||
exports.GB = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.GB, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.GB, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.GBP, | ||
@@ -18,2 +18,3 @@ id: 'A1F83G8C2ARO7P', | ||
uri: DE_1.DE.advertising.uri, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.UK, | ||
bids: { | ||
@@ -20,0 +21,0 @@ sponsoredBrands: { |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.IN = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.IN, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.IN, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.INR, | ||
@@ -8,0 +8,0 @@ id: 'A21TJRUUN4KGV', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const amazon_marketplace_1 = require("../amazon-marketplace"); | ||
const DE_1 = require("./DE"); | ||
const european_advertising_factory_1 = require("../european-advertising-factory"); | ||
exports.IT = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.IT, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.IT, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -12,4 +12,4 @@ id: 'APJ6JRA9NG5V4', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
advertising: Object.assign({}, DE_1.DE.advertising), | ||
advertising: european_advertising_factory_1.europeanAdvertisingFactory(amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.DE), | ||
}); | ||
//# sourceMappingURL=IT.js.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.JP = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.JP, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.JP, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.JPY, | ||
@@ -14,2 +14,3 @@ id: 'A1VC38T7YXB528', | ||
uri: 'https://advertising-api-fe.amazon.com', | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.JP, | ||
bids: { | ||
@@ -16,0 +17,0 @@ sponsoredBrands: { |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.MX = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.MX, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.MX, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.MXN, | ||
@@ -8,0 +8,0 @@ id: 'A1AM78C64UM0Y8', |
@@ -6,3 +6,3 @@ "use strict"; | ||
exports.NL = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.NL, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.NL, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -9,0 +9,0 @@ id: 'A1805IZSGTT6HS', |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.SG = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.SG, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.SG, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.SGD, | ||
@@ -8,0 +8,0 @@ id: 'A19VAU5U5O7RUS', |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.TR = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.TR, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.TR, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.TRY, | ||
@@ -8,0 +8,0 @@ id: 'A33AVAJ2PDY3EV', |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.US = new amazon_marketplace_1.AmazonMarketplace({ | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.US, | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.US, | ||
currency: amazon_marketplace_1.AmazonMarketplaceAdvertisingCurrency.USD, | ||
@@ -14,2 +14,3 @@ id: 'ATVPDKIKX0DER', | ||
uri: 'https://advertising-api.amazon.com', | ||
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.US, | ||
bids: { | ||
@@ -16,0 +17,0 @@ sponsoredBrands: { |
{ | ||
"name": "@scaleleap/amazon-marketplaces", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"publishConfig": { | ||
@@ -36,6 +36,6 @@ "access": "public" | ||
"@jedmao/semantic-release-npm-github-config": "1.0.9", | ||
"@types/jest": "25.1.3", | ||
"@types/node": "13.7.6", | ||
"@typescript-eslint/eslint-plugin": "2.21.0", | ||
"@typescript-eslint/parser": "2.21.0", | ||
"@types/jest": "25.1.4", | ||
"@types/node": "13.9.0", | ||
"@typescript-eslint/eslint-plugin": "2.22.0", | ||
"@typescript-eslint/parser": "2.22.0", | ||
"danger": "9.2.10", | ||
@@ -50,4 +50,4 @@ "eslint": "6.8.0", | ||
"tsconfigs": "4.0.2", | ||
"typedoc": "0.16.10", | ||
"typescript": "3.8.2" | ||
"typedoc": "0.16.11", | ||
"typescript": "3.8.3" | ||
}, | ||
@@ -54,0 +54,0 @@ "dependencies": { |
@@ -84,2 +84,3 @@ ![Amazon Marketplace Logo](https://raw.githubusercontent.com/ScaleLeap/amazon-marketplaces/master/amazon-marketplace.png) | ||
"uri": "https://advertising-api.amazon.com", | ||
"countryCode": "CA", | ||
"bids": { | ||
@@ -120,3 +121,4 @@ "sponsoredBrands": { | ||
* [Amazon Marketplace Web Service](https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html) | ||
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#X_currencies) | ||
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) | ||
* [ISO 3166](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) | ||
* [Regional profile time zone codes](https://advertising.amazon.com/API/docs/en-us/reference/2/profiles#regional-profile-time-zone-codes) | ||
@@ -123,0 +125,0 @@ * [List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) |
/** | ||
* Country code enum. | ||
* Amazon Marketplace country code enum. | ||
*/ | ||
export enum AmazonMarketplaceAdvertisingCountryCode { | ||
export enum AmazonMarketplaceCountryCode { | ||
AE = 'AE', | ||
@@ -44,2 +44,20 @@ AU = 'AU', | ||
/** | ||
* Amazon Marketplace Advertising country code enum. | ||
* | ||
* The country code identifying the publisher(s) on which ads will run. | ||
*/ | ||
export enum AmazonMarketplaceAdvertisingCountryCode { | ||
AE = 'AE', | ||
AU = 'AU', | ||
CA = 'CA', | ||
DE = 'DE', | ||
ES = 'ES', | ||
FR = 'FR', | ||
IT = 'IT', | ||
JP = 'JP', | ||
UK = 'UK', // Not a real country code, but such is life. See https://github.com/ScaleLeap/amazon-marketplaces/issues/122 | ||
US = 'US', | ||
} | ||
/** | ||
* Time Zone enum. | ||
@@ -72,2 +90,14 @@ */ | ||
/** | ||
* The country code identifying the publisher(s) on which ads will run. | ||
* | ||
* [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) with the exception of UK, which uses | ||
* `UK` instead of `GB`. | ||
* | ||
* @example | ||
* | ||
* AmazonMarketplaceAdvertisingCountryCode.CA | ||
*/ | ||
readonly countryCode: AmazonMarketplaceAdvertisingCountryCode | ||
/** | ||
* Minimum and maximum bids for each advertising type. | ||
@@ -134,5 +164,5 @@ */ | ||
* | ||
* AmazonMarketplaceAdvertisingCountryCode.CA | ||
* AmazonMarketplaceCountryCode.CA | ||
*/ | ||
readonly countryCode: AmazonMarketplaceAdvertisingCountryCode | ||
readonly countryCode: AmazonMarketplaceCountryCode | ||
@@ -139,0 +169,0 @@ /** |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingTimeZone, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
} from '../amazon-marketplace' | ||
export const AE = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.AE, | ||
countryCode: AmazonMarketplaceCountryCode.AE, | ||
currency: AmazonMarketplaceAdvertisingCurrency.AED, | ||
@@ -17,2 +18,3 @@ id: 'A2VIGQ35RCS4UG', | ||
uri: 'https://advertising-api-eu.amazon.com', | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.AE, | ||
bids: { | ||
@@ -19,0 +21,0 @@ sponsoredBrands: { |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingTimeZone, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
} from '../amazon-marketplace' | ||
export const AU = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.AU, | ||
countryCode: AmazonMarketplaceCountryCode.AU, | ||
currency: AmazonMarketplaceAdvertisingCurrency.AUD, | ||
@@ -17,2 +18,3 @@ id: 'A39IBJ37TRP1C6', | ||
uri: 'https://advertising-api-fe.amazon.com', | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.AU, | ||
bids: { | ||
@@ -19,0 +21,0 @@ sponsoredBrands: { |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
@@ -8,3 +8,3 @@ } from '../amazon-marketplace' | ||
export const BR = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.BR, | ||
countryCode: AmazonMarketplaceCountryCode.BR, | ||
currency: AmazonMarketplaceAdvertisingCurrency.BRL, | ||
@@ -11,0 +11,0 @@ id: 'A2Q3Y263D00KWC', |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
@@ -12,3 +12,3 @@ } from '../amazon-marketplace' | ||
export const CA = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.CA, | ||
countryCode: AmazonMarketplaceCountryCode.CA, | ||
currency: AmazonMarketplaceAdvertisingCurrency.CAD, | ||
@@ -15,0 +15,0 @@ id: 'A2EUQ1WTGCTBG2', |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
@@ -8,3 +8,3 @@ } from '../amazon-marketplace' | ||
export const CN = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.CN, | ||
countryCode: AmazonMarketplaceCountryCode.CN, | ||
currency: AmazonMarketplaceAdvertisingCurrency.CNY, | ||
@@ -11,0 +11,0 @@ id: 'AAHKV2X7AFYLW', |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingTimeZone, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
} from '../amazon-marketplace' | ||
import { europeanAdvertisingFactory } from '../european-advertising-factory' | ||
export const DE = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.DE, | ||
countryCode: AmazonMarketplaceCountryCode.DE, | ||
currency: AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -15,16 +16,3 @@ id: 'A1PA6795UKMFR9', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
advertising: { | ||
uri: 'https://advertising-api-eu.amazon.com', | ||
bids: { | ||
sponsoredBrands: { | ||
min: 10, | ||
max: 3900, | ||
}, | ||
sponsoredProducts: { | ||
min: 2, | ||
max: 100000, | ||
}, | ||
}, | ||
timeZone: AmazonMarketplaceAdvertisingTimeZone.EUROPE_PARIS, | ||
}, | ||
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.DE), | ||
}) |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
} from '../amazon-marketplace' | ||
import { DE } from './DE' | ||
import { europeanAdvertisingFactory } from '../european-advertising-factory' | ||
export const ES = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.ES, | ||
countryCode: AmazonMarketplaceCountryCode.ES, | ||
currency: AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -15,3 +16,3 @@ id: 'A1RKKUPIHCS9HS', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
advertising: Object.assign({}, DE.advertising), | ||
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.ES), | ||
}) |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
} from '../amazon-marketplace' | ||
import { DE } from './DE' | ||
import { europeanAdvertisingFactory } from '../european-advertising-factory' | ||
export const FR = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.FR, | ||
countryCode: AmazonMarketplaceCountryCode.FR, | ||
currency: AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -15,3 +16,3 @@ id: 'A13V1IB3VIYZZH', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
advertising: Object.assign({}, DE.advertising), | ||
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.FR), | ||
}) |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingTimeZone, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
} from '../amazon-marketplace' | ||
@@ -14,3 +15,3 @@ import { DE } from './DE' | ||
export const GB = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.GB, | ||
countryCode: AmazonMarketplaceCountryCode.GB, | ||
currency: AmazonMarketplaceAdvertisingCurrency.GBP, | ||
@@ -23,2 +24,3 @@ id: 'A1F83G8C2ARO7P', | ||
uri: DE.advertising.uri, | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.UK, | ||
bids: { | ||
@@ -25,0 +27,0 @@ sponsoredBrands: { |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
@@ -8,3 +8,3 @@ } from '../amazon-marketplace' | ||
export const IN = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.IN, | ||
countryCode: AmazonMarketplaceCountryCode.IN, | ||
currency: AmazonMarketplaceAdvertisingCurrency.INR, | ||
@@ -11,0 +11,0 @@ id: 'A21TJRUUN4KGV', |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
} from '../amazon-marketplace' | ||
import { DE } from './DE' | ||
import { europeanAdvertisingFactory } from '../european-advertising-factory' | ||
export const IT = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.IT, | ||
countryCode: AmazonMarketplaceCountryCode.IT, | ||
currency: AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -15,3 +16,3 @@ id: 'APJ6JRA9NG5V4', | ||
webServiceUri: 'https://mws-eu.amazonservices.com', | ||
advertising: Object.assign({}, DE.advertising), | ||
advertising: europeanAdvertisingFactory(AmazonMarketplaceAdvertisingCountryCode.DE), | ||
}) |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingTimeZone, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
} from '../amazon-marketplace' | ||
export const JP = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.JP, | ||
countryCode: AmazonMarketplaceCountryCode.JP, | ||
currency: AmazonMarketplaceAdvertisingCurrency.JPY, | ||
@@ -17,2 +18,3 @@ id: 'A1VC38T7YXB528', | ||
uri: 'https://advertising-api-fe.amazon.com', | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.JP, | ||
bids: { | ||
@@ -19,0 +21,0 @@ sponsoredBrands: { |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
@@ -8,3 +8,3 @@ } from '../amazon-marketplace' | ||
export const MX = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.MX, | ||
countryCode: AmazonMarketplaceCountryCode.MX, | ||
currency: AmazonMarketplaceAdvertisingCurrency.MXN, | ||
@@ -11,0 +11,0 @@ id: 'A1AM78C64UM0Y8', |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
@@ -9,3 +9,3 @@ } from '../amazon-marketplace' | ||
export const NL = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.NL, | ||
countryCode: AmazonMarketplaceCountryCode.NL, | ||
currency: AmazonMarketplaceAdvertisingCurrency.EUR, | ||
@@ -12,0 +12,0 @@ id: 'A1805IZSGTT6HS', |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
@@ -8,3 +8,3 @@ } from '../amazon-marketplace' | ||
export const SG = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.SG, | ||
countryCode: AmazonMarketplaceCountryCode.SG, | ||
currency: AmazonMarketplaceAdvertisingCurrency.SGD, | ||
@@ -11,0 +11,0 @@ id: 'A19VAU5U5O7RUS', |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
@@ -8,3 +8,3 @@ } from '../amazon-marketplace' | ||
export const TR = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.TR, | ||
countryCode: AmazonMarketplaceCountryCode.TR, | ||
currency: AmazonMarketplaceAdvertisingCurrency.TRY, | ||
@@ -11,0 +11,0 @@ id: 'A33AVAJ2PDY3EV', |
import { | ||
AmazonMarketplace, | ||
AmazonMarketplaceAdvertisingTimeZone, | ||
AmazonMarketplaceCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
AmazonMarketplaceAdvertisingCountryCode, | ||
AmazonMarketplaceAdvertisingCurrency, | ||
} from '../amazon-marketplace' | ||
export const US = new AmazonMarketplace({ | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.US, | ||
countryCode: AmazonMarketplaceCountryCode.US, | ||
currency: AmazonMarketplaceAdvertisingCurrency.USD, | ||
@@ -17,2 +18,3 @@ id: 'ATVPDKIKX0DER', | ||
uri: 'https://advertising-api.amazon.com', | ||
countryCode: AmazonMarketplaceAdvertisingCountryCode.US, | ||
bids: { | ||
@@ -19,0 +21,0 @@ sponsoredBrands: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
88013
106
1626
138