Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@scaleleap/amazon-marketplaces

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scaleleap/amazon-marketplaces - npm Package Compare versions

Comparing version 3.1.2 to 4.0.0

lib/amazon-marketplace-advertising-region.d.ts

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Changelog

# [4.0.0](https://github.com/ScaleLeap/amazon-marketplaces/compare/v3.1.2...v4.0.0) (2020-03-10)
### Features
* adds AmazonMarketplaceAdvertisingRegion object ([87c27c9](https://github.com/ScaleLeap/amazon-marketplaces/commit/87c27c9ac6ba056f7c8d6499fa8f3c33f8ef5a68))
### BREAKING CHANGES
* Adds AmazonMarketplaceAdvertisingRegion object suppot.
## [3.1.2](https://github.com/ScaleLeap/amazon-marketplaces/compare/v3.1.1...v3.1.2) (2020-03-09)

@@ -8,0 +20,0 @@

13

lib/amazon-marketplace.d.ts

@@ -0,1 +1,2 @@

import { AmazonMarketplaceAdvertisingRegion } from './amazon-marketplace-advertising-region';
/**

@@ -69,16 +70,4 @@ * Amazon Marketplace country code enum.

}
/**
* Amazon Advertising API Regions
*/
export declare enum AmazonMarketplaceAdvertisingRegion {
NORTH_AMERICA = "NA",
EUROPE = "EU",
FAR_EAST = "FE"
}
export interface AmazonMarketplaceAdvertising {
/**
* Amazon Advertising API endpoint URI.
*/
readonly uri: string;
/**
* Amazon Advertising account time zone.

@@ -85,0 +74,0 @@ *

@@ -75,11 +75,2 @@ "use strict";

})(AmazonMarketplaceAdvertisingTimeZone = exports.AmazonMarketplaceAdvertisingTimeZone || (exports.AmazonMarketplaceAdvertisingTimeZone = {}));
/**
* Amazon Advertising API Regions
*/
var AmazonMarketplaceAdvertisingRegion;
(function (AmazonMarketplaceAdvertisingRegion) {
AmazonMarketplaceAdvertisingRegion["NORTH_AMERICA"] = "NA";
AmazonMarketplaceAdvertisingRegion["EUROPE"] = "EU";
AmazonMarketplaceAdvertisingRegion["FAR_EAST"] = "FE";
})(AmazonMarketplaceAdvertisingRegion = exports.AmazonMarketplaceAdvertisingRegion || (exports.AmazonMarketplaceAdvertisingRegion = {}));
class AmazonMarketplace {

@@ -86,0 +77,0 @@ constructor(amazonMarketplace) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const amazon_marketplace_1 = require("./amazon-marketplace");
const marketplace_advertising_regions_1 = require("./marketplace-advertising-regions");
function europeanAdvertisingFactory(countryCode) {
return {
uri: 'https://advertising-api-eu.amazon.com',
countryCode,
region: amazon_marketplace_1.AmazonMarketplaceAdvertisingRegion.EUROPE,
region: marketplace_advertising_regions_1.marketplaceAdvertisingRegions.EU,
bids: {

@@ -10,0 +10,0 @@ sponsoredBrands: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const amazon_marketplace_1 = require("../amazon-marketplace");
const marketplace_advertising_regions_1 = require("../marketplace-advertising-regions");
exports.AE = new amazon_marketplace_1.AmazonMarketplace({

@@ -12,5 +13,4 @@ countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.AE,

advertising: {
uri: 'https://advertising-api-eu.amazon.com',
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.AE,
region: amazon_marketplace_1.AmazonMarketplaceAdvertisingRegion.EUROPE,
region: marketplace_advertising_regions_1.marketplaceAdvertisingRegions.EU,
bids: {

@@ -17,0 +17,0 @@ sponsoredBrands: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const amazon_marketplace_1 = require("../amazon-marketplace");
const marketplace_advertising_regions_1 = require("../marketplace-advertising-regions");
exports.AU = new amazon_marketplace_1.AmazonMarketplace({

@@ -12,5 +13,4 @@ countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.AU,

advertising: {
uri: 'https://advertising-api-fe.amazon.com',
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.AU,
region: amazon_marketplace_1.AmazonMarketplaceAdvertisingRegion.FAR_EAST,
region: marketplace_advertising_regions_1.marketplaceAdvertisingRegions.FE,
bids: {

@@ -17,0 +17,0 @@ sponsoredBrands: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const amazon_marketplace_1 = require("../amazon-marketplace");
const marketplace_advertising_regions_1 = require("../marketplace-advertising-regions");
/**

@@ -15,5 +16,4 @@ * Canada

advertising: {
uri: 'https://advertising-api.amazon.com',
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.CA,
region: amazon_marketplace_1.AmazonMarketplaceAdvertisingRegion.NORTH_AMERICA,
region: marketplace_advertising_regions_1.marketplaceAdvertisingRegions.NA,
bids: {

@@ -20,0 +20,0 @@ sponsoredBrands: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const amazon_marketplace_1 = require("../amazon-marketplace");
const marketplace_advertising_regions_1 = require("../marketplace-advertising-regions");
const DE_1 = require("./DE");

@@ -16,5 +17,4 @@ if (!DE_1.DE.advertising) {

advertising: {
uri: DE_1.DE.advertising.uri,
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.UK,
region: amazon_marketplace_1.AmazonMarketplaceAdvertisingRegion.EUROPE,
region: marketplace_advertising_regions_1.marketplaceAdvertisingRegions.EU,
bids: {

@@ -21,0 +21,0 @@ sponsoredBrands: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const amazon_marketplace_1 = require("../amazon-marketplace");
const marketplace_advertising_regions_1 = require("../marketplace-advertising-regions");
exports.JP = new amazon_marketplace_1.AmazonMarketplace({

@@ -12,5 +13,4 @@ countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.JP,

advertising: {
uri: 'https://advertising-api-fe.amazon.com',
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.JP,
region: amazon_marketplace_1.AmazonMarketplaceAdvertisingRegion.FAR_EAST,
region: marketplace_advertising_regions_1.marketplaceAdvertisingRegions.FE,
bids: {

@@ -17,0 +17,0 @@ sponsoredBrands: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const amazon_marketplace_1 = require("../amazon-marketplace");
const marketplace_advertising_regions_1 = require("../marketplace-advertising-regions");
exports.US = new amazon_marketplace_1.AmazonMarketplace({

@@ -12,5 +13,4 @@ countryCode: amazon_marketplace_1.AmazonMarketplaceCountryCode.US,

advertising: {
uri: 'https://advertising-api.amazon.com',
countryCode: amazon_marketplace_1.AmazonMarketplaceAdvertisingCountryCode.US,
region: amazon_marketplace_1.AmazonMarketplaceAdvertisingRegion.NORTH_AMERICA,
region: marketplace_advertising_regions_1.marketplaceAdvertisingRegions.NA,
bids: {

@@ -17,0 +17,0 @@ sponsoredBrands: {

{
"name": "@scaleleap/amazon-marketplaces",
"version": "3.1.2",
"version": "4.0.0",
"publishConfig": {

@@ -38,4 +38,4 @@ "access": "public"

"@types/node": "13.9.0",
"@typescript-eslint/eslint-plugin": "2.22.0",
"@typescript-eslint/parser": "2.22.0",
"@typescript-eslint/eslint-plugin": "2.23.0",
"@typescript-eslint/parser": "2.23.0",
"danger": "9.2.10",

@@ -42,0 +42,0 @@ "eslint": "6.8.0",

@@ -84,5 +84,11 @@ ![Amazon Marketplace Logo](https://raw.githubusercontent.com/ScaleLeap/amazon-marketplaces/master/amazon-marketplace.png)

"advertising": {
"uri": "https://advertising-api.amazon.com",
"countryCode": "CA",
"region": "NA",
"timeZone": "America/Los_Angeles",
"region": {
"accessTokenUri": "https://api.amazon.com/auth/o2/token",
"authorizationUri": "https://www.amazon.com/ap/oa",
"code": "NA",
"endpoint": "https://advertising-api.amazon.com",
"name": "North America",
},
"bids": {

@@ -98,3 +104,2 @@ "sponsoredBrands": {

},
"timeZone": "America/Los_Angeles"
}

@@ -101,0 +106,0 @@ }

@@ -0,1 +1,3 @@

import { AmazonMarketplaceAdvertisingRegion } from './amazon-marketplace-advertising-region'
/**

@@ -73,18 +75,4 @@ * Amazon Marketplace country code enum.

/**
* Amazon Advertising API Regions
*/
export enum AmazonMarketplaceAdvertisingRegion {
NORTH_AMERICA = 'NA',
EUROPE = 'EU',
FAR_EAST = 'FE',
}
export interface AmazonMarketplaceAdvertising {
/**
* Amazon Advertising API endpoint URI.
*/
readonly uri: string
/**
* Amazon Advertising account time zone.

@@ -91,0 +79,0 @@ *

@@ -5,4 +5,4 @@ import {

AmazonMarketplaceAdvertising,
AmazonMarketplaceAdvertisingRegion,
} from './amazon-marketplace'
import { marketplaceAdvertisingRegions } from './marketplace-advertising-regions'

@@ -13,5 +13,4 @@ export function europeanAdvertisingFactory(

return {
uri: 'https://advertising-api-eu.amazon.com',
countryCode,
region: AmazonMarketplaceAdvertisingRegion.EUROPE,
region: marketplaceAdvertisingRegions.EU,
bids: {

@@ -18,0 +17,0 @@ sponsoredBrands: {

@@ -7,4 +7,4 @@ import {

AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceAdvertisingRegion,
} from '../amazon-marketplace'
import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions'

@@ -19,5 +19,4 @@ export const AE = new AmazonMarketplace({

advertising: {
uri: 'https://advertising-api-eu.amazon.com',
countryCode: AmazonMarketplaceAdvertisingCountryCode.AE,
region: AmazonMarketplaceAdvertisingRegion.EUROPE,
region: marketplaceAdvertisingRegions.EU,
bids: {

@@ -24,0 +23,0 @@ sponsoredBrands: {

@@ -7,4 +7,4 @@ import {

AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceAdvertisingRegion,
} from '../amazon-marketplace'
import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions'

@@ -19,5 +19,4 @@ export const AU = new AmazonMarketplace({

advertising: {
uri: 'https://advertising-api-fe.amazon.com',
countryCode: AmazonMarketplaceAdvertisingCountryCode.AU,
region: AmazonMarketplaceAdvertisingRegion.FAR_EAST,
region: marketplaceAdvertisingRegions.FE,
bids: {

@@ -24,0 +23,0 @@ sponsoredBrands: {

@@ -7,4 +7,4 @@ import {

AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceAdvertisingRegion,
} from '../amazon-marketplace'
import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions'

@@ -22,5 +22,4 @@ /**

advertising: {
uri: 'https://advertising-api.amazon.com',
countryCode: AmazonMarketplaceAdvertisingCountryCode.CA,
region: AmazonMarketplaceAdvertisingRegion.NORTH_AMERICA,
region: marketplaceAdvertisingRegions.NA,
bids: {

@@ -27,0 +26,0 @@ sponsoredBrands: {

@@ -7,4 +7,4 @@ import {

AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceAdvertisingRegion,
} from '../amazon-marketplace'
import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions'
import { DE } from './DE'

@@ -24,5 +24,4 @@

advertising: {
uri: DE.advertising.uri,
countryCode: AmazonMarketplaceAdvertisingCountryCode.UK,
region: AmazonMarketplaceAdvertisingRegion.EUROPE,
region: marketplaceAdvertisingRegions.EU,
bids: {

@@ -29,0 +28,0 @@ sponsoredBrands: {

@@ -7,4 +7,4 @@ import {

AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceAdvertisingRegion,
} from '../amazon-marketplace'
import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions'

@@ -19,5 +19,4 @@ export const JP = new AmazonMarketplace({

advertising: {
uri: 'https://advertising-api-fe.amazon.com',
countryCode: AmazonMarketplaceAdvertisingCountryCode.JP,
region: AmazonMarketplaceAdvertisingRegion.FAR_EAST,
region: marketplaceAdvertisingRegions.FE,
bids: {

@@ -24,0 +23,0 @@ sponsoredBrands: {

@@ -7,4 +7,4 @@ import {

AmazonMarketplaceAdvertisingCountryCode,
AmazonMarketplaceAdvertisingRegion,
} from '../amazon-marketplace'
import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions'

@@ -19,5 +19,4 @@ export const US = new AmazonMarketplace({

advertising: {
uri: 'https://advertising-api.amazon.com',
countryCode: AmazonMarketplaceAdvertisingCountryCode.US,
region: AmazonMarketplaceAdvertisingRegion.NORTH_AMERICA,
region: marketplaceAdvertisingRegions.NA,
bids: {

@@ -24,0 +23,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc