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

@scaleleap/amazon-mws-api-sdk

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scaleleap/amazon-mws-api-sdk - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

27

CHANGELOG.md

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

# [1.1.0](https://github.com/ScaleLeap/amazon-mws-api-sdk/compare/v1.0.0...v1.1.0) (2020-06-30)
### Bug Fixes
* affected unit test ([e2ded78](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/e2ded78aaaef1da1bd966784620ef1b0cc45e094))
* api extractor fix for feeds ([5174ff5](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/5174ff553e1efcbc0015a170686842a8f7bdb50c))
* cleaning up placeholder text, add Properties to 'Types used ...' ([13c4086](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/13c4086b834da1920d32995675ea9a513d9ad555))
* fix which parameter is required ([530118d](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/530118d62d8a905b56c1152f1431e68807601037))
* make CurrencyCode optional ([6081b3f](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/6081b3f6b5e882f628587a89bf339aa671d1b685))
* minor nomenclature change ([bcb1767](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/bcb176745f1bbc7d5e588ec280dba5c06306b36d))
* missed an enum ([e56109d](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/e56109d5c682f19362342456ab29428aa8acb5e5))
* prob with incorrect type from codec, add sample args for test ([dcffdec](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/dcffdec4deb099436c0c96bea8680694fa5d8219))
### Features
* add docs for feeds ([de6b822](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/de6b822322400c90181f10017f0f5cb7c23c1e85))
* finish docs for finances and products ([ef10709](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/ef10709a8ba26567b5bc86be0e35c8d4c3f0c75c))
* initial pass at documentation. Sellers, Orders, Reports ([dc86860](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/dc86860cc66b3a4743fdce07674e085fa3e73c81))
* table of contents update ([04b7d5c](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/04b7d5c7c20c8ce670c4e6f8d103df3761a45aea))
* table of contents update and headers update ([6c851c4](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/6c851c49a16d74e29e45f73cedfc5fb1972ef022))
* update docs for reports api ([505de0a](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/505de0a43e87c291e5129e5f10c620806b471337))
* update docs for subscriptions ([07847e1](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/07847e1f1196ab0655a7c994decaef6f22acdece))
* update examples with links ([a4bd3ec](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/a4bd3ec32dd3817a782479ee89504af929572ca9))
* update TOC ([b8ffaa9](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/b8ffaa912395ede17487e8eff693b0e6620bf07f))
# 1.0.0 (2020-06-30)

@@ -8,0 +35,0 @@

27

lib/sections/feeds.d.ts

@@ -7,7 +7,16 @@ import { Codec, GetInterface } from 'purify-ts';

MaxCount?: number;
FeedTypeList?: string[];
FeedProcessingStatusList?: string[];
FeedTypeList?: FeedType[];
FeedProcessingStatusList?: FeedProcessingStatus[];
SubmittedFromDate?: Date;
SubmittedToDate?: Date;
}
export declare enum FeedProcessingStatusEnum {
_AWAITING_ASYNCHRONOUS_REPLY_ = "_AWAITING_ASYNCHRONOUS_REPLY_",
_CANCELLED_ = "_CANCELLED_",
_DONE_ = "_DONE_",
_IN_PROGRESS_ = "_IN_PROGRESS_",
_IN_SAFETY_NET_ = "_IN_SAFETY_NET_",
_SUBMITTED_ = "_SUBMITTED_",
_UNCONFIRMED_ = "_UNCONFIRMED_"
}
export declare const GetFeedSubmissionList: Codec<{

@@ -20,3 +29,3 @@ HasToken: boolean | undefined;

SubmittedDate: Date;
FeedProcessingStatus: string;
FeedProcessingStatus: FeedProcessingStatusEnum;
StartedProcessingDate: Date | undefined;

@@ -28,3 +37,3 @@ CompletedProcessingDate: Date | undefined;

SubmittedDate: Date;
FeedProcessingStatus: string;
FeedProcessingStatus: FeedProcessingStatusEnum;
StartedProcessingDate: Date | undefined;

@@ -49,3 +58,3 @@ CompletedProcessingDate: Date | undefined;

FeedSubmissionIdList?: string[];
FeedTypeList?: string[];
FeedTypeList?: FeedType[];
SubmittedFromDate?: Date;

@@ -60,3 +69,3 @@ SubmittedToDate?: Date;

SubmittedDate: Date;
FeedProcessingStatus: string;
FeedProcessingStatus: FeedProcessingStatusEnum;
StartedProcessingDate: Date | undefined;

@@ -68,3 +77,3 @@ CompletedProcessingDate: Date | undefined;

SubmittedDate: Date;
FeedProcessingStatus: string;
FeedProcessingStatus: FeedProcessingStatusEnum;
StartedProcessingDate: Date | undefined;

@@ -93,3 +102,3 @@ CompletedProcessingDate: Date | undefined;

SubmittedDate: Date;
FeedProcessingStatus: string;
FeedProcessingStatus: FeedProcessingStatusEnum;
StartedProcessingDate: Date | undefined;

@@ -101,3 +110,3 @@ CompletedProcessingDate: Date | undefined;

SubmittedDate: Date;
FeedProcessingStatus: string;
FeedProcessingStatus: FeedProcessingStatusEnum;
StartedProcessingDate: Date | undefined;

@@ -104,0 +113,0 @@ CompletedProcessingDate: Date | undefined;

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Feeds = exports.SubmitFeed = exports.FeedSubmission = exports.CancelFeedSubmissions = exports.GetFeedSubmissionCount = exports.GetFeedSubmissionList = void 0;
exports.Feeds = exports.SubmitFeed = exports.FeedSubmission = exports.CancelFeedSubmissions = exports.GetFeedSubmissionCount = exports.GetFeedSubmissionList = exports.FeedProcessingStatusEnum = void 0;
const crypto_1 = __importDefault(require("crypto"));

@@ -14,2 +14,13 @@ const purify_ts_1 = require("purify-ts");

const FEEDS_API_VERSION = '2009-01-01';
var FeedProcessingStatusEnum;
(function (FeedProcessingStatusEnum) {
FeedProcessingStatusEnum["_AWAITING_ASYNCHRONOUS_REPLY_"] = "_AWAITING_ASYNCHRONOUS_REPLY_";
FeedProcessingStatusEnum["_CANCELLED_"] = "_CANCELLED_";
FeedProcessingStatusEnum["_DONE_"] = "_DONE_";
FeedProcessingStatusEnum["_IN_PROGRESS_"] = "_IN_PROGRESS_";
FeedProcessingStatusEnum["_IN_SAFETY_NET_"] = "_IN_SAFETY_NET_";
FeedProcessingStatusEnum["_SUBMITTED_"] = "_SUBMITTED_";
FeedProcessingStatusEnum["_UNCONFIRMED_"] = "_UNCONFIRMED_";
})(FeedProcessingStatusEnum = exports.FeedProcessingStatusEnum || (exports.FeedProcessingStatusEnum = {}));
const FeedProcessingStatusCodec = purify_ts_1.enumeration(FeedProcessingStatusEnum);
const FeedSubmissionInfo = purify_ts_1.Codec.interface({

@@ -19,3 +30,3 @@ FeedSubmissionId: parsing_1.ensureString,

SubmittedDate: parsing_1.mwsDate,
FeedProcessingStatus: purify_ts_1.string,
FeedProcessingStatus: FeedProcessingStatusCodec,
StartedProcessingDate: purify_ts_1.optional(parsing_1.mwsDate),

@@ -22,0 +33,0 @@ CompletedProcessingDate: purify_ts_1.optional(parsing_1.mwsDate),

@@ -93,7 +93,7 @@ import { Codec, GetInterface } from 'purify-ts';

export declare type ListInventorySupplyRequestParameters = RequireOnlyOne<{
SellerSku?: string[];
SellerSkus?: string[];
QueryStartDateTime?: Date;
ResponseGroup?: ResponseGroup;
MarketplaceId?: string;
}, 'MarketplaceId' | 'QueryStartDateTime'>;
}, 'SellerSkus' | 'QueryStartDateTime'>;
export declare type InventorySupplyList = GetInterface<typeof InventorySupplyList>;

@@ -100,0 +100,0 @@ export declare type InventorySupplyListByNextToken = GetInterface<typeof InventorySupplyListByNextToken>;

@@ -87,3 +87,3 @@ "use strict";

return {
'SellersSkus.member': parameters.SellerSku,
'SellersSkus.member': parameters.SellerSkus,
QueryStartDateTime: (_a = parameters.QueryStartDateTime) === null || _a === void 0 ? void 0 : _a.toISOString(),

@@ -90,0 +90,0 @@ ResponseGroup: parameters.ResponseGroup,

import { Codec, GetInterface } from 'purify-ts';
import { CurrencyCodeEnum, FeeDetail as FeeDetailInterface, ProductCategory as ProductCategoryInterface } from './type';
import { FeeDetail as FeeDetailInterface, ProductCategory as ProductCategoryInterface } from './type';
/**

@@ -27,3 +27,3 @@ * Collection of codecs for the products api

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -40,7 +40,7 @@ }>;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;

@@ -51,3 +51,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -63,3 +63,3 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -87,7 +87,7 @@ FeeDetailList: FeeDetailInterface[];

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;

@@ -98,3 +98,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -110,3 +110,3 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -216,11 +216,11 @@ FeeDetailList: FeeDetailInterface[];

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
ListingPrice: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -231,3 +231,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -239,11 +239,11 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
ListingPrice: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -254,3 +254,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -261,7 +261,7 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;
SuggestedLowerPricePlusShipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;

@@ -282,3 +282,3 @@ BuyBoxEligibleOffers: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -289,3 +289,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -295,3 +295,3 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -325,11 +325,11 @@ ShipsFrom: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
ListingPrice: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -340,3 +340,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -348,11 +348,11 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
ListingPrice: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -363,3 +363,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -370,7 +370,7 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;
SuggestedLowerPricePlusShipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;

@@ -391,3 +391,3 @@ BuyBoxEligibleOffers: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -398,3 +398,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -404,3 +404,3 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -434,11 +434,11 @@ ShipsFrom: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
ListingPrice: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -449,3 +449,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -457,11 +457,11 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
ListingPrice: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -472,3 +472,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -479,7 +479,7 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;
SuggestedLowerPricePlusShipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;

@@ -500,3 +500,3 @@ BuyBoxEligibleOffers: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -507,3 +507,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -513,3 +513,3 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -542,11 +542,11 @@ ShipsFrom: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
ListingPrice: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -557,3 +557,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -565,11 +565,11 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
ListingPrice: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};
Shipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -580,3 +580,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -587,7 +587,7 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;
SuggestedLowerPricePlusShipping: {
Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
} | undefined;

@@ -608,3 +608,3 @@ BuyBoxEligibleOffers: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -615,3 +615,3 @@ Points: {

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -621,3 +621,3 @@ } | undefined;

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: "USD" | "EUR" | "GBP" | "RMB" | "INR" | "JPY" | "CAD" | "MXN" | undefined;
};

@@ -624,0 +624,0 @@ ShipsFrom: {

@@ -37,3 +37,3 @@ "use strict";

Amount: purify_ts_1.optional(purify_ts_1.number),
CurrencyCode,
CurrencyCode: purify_ts_1.optional(CurrencyCode),
});

@@ -40,0 +40,0 @@ exports.PointsCodec = purify_ts_1.Codec.interface({

@@ -19,3 +19,3 @@ /**

Amount: number | undefined;
CurrencyCode: CurrencyCodeEnum;
CurrencyCode: keyof typeof CurrencyCodeEnum | undefined;
}

@@ -39,3 +39,3 @@ export interface FeeDetail {

}
export interface FeeEstimateRequest {
export interface FeesEstimateRequest {
MarketplaceId: string;

@@ -49,4 +49,4 @@ IdType: FeeEstimateIdType;

export interface GetMyFeesEstimateParameters {
FeesEstimateRequestList: FeeEstimateRequest[];
[key: string]: FeeEstimateRequest[];
FeesEstimateRequestList: FeesEstimateRequest[];
[key: string]: FeesEstimateRequest[];
}

@@ -53,0 +53,0 @@ export interface ListMatchingProductsRequestParameters {

@@ -10,4 +10,15 @@ {

},
"contributors": [
{
"name": "Justin Emmanuel Mercado",
"email": "ej@ejmercado.com",
"url": "https://github.com/justinemmanuelmercado"
},
{
"name": "Stanislav Iliev",
"url": "https://github.com/gigobyte"
}
],
"homepage": "https://github.com/ScaleLeap/amazon-mws-api-sdk/#readme",
"version": "1.0.0",
"version": "1.1.0",
"main": "lib/index.js",

@@ -14,0 +25,0 @@ "files": [

![](https://raw.githubusercontent.com/ScaleLeap/amazon-mws-api-sdk/master/docs/assets/header.png)
[![NPM](https://img.shields.io/npm/v/@scaleleap/amazon-mws-api-sdk)](https://npm.im/@scaleleap/amazon-mws-api-sdk)
[![License](https://img.shields.io/npm/l/@scaleleap/amazon-mws-api-sdk)](./LICENSE)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ScaleLeap/amazon-mws-api-sdk/Release)](https://github.com/ScaleLeap/amazon-mws-api-sdk/actions)
[![Codecov](https://img.shields.io/codecov/c/github/scaleleap/amazon-mws-api-sdk)](https://codecov.io/gh/ScaleLeap/amazon-mws-api-sdk)
[![Snyk](https://img.shields.io/snyk/vulnerabilities/github/scaleleap/amazon-mws-api-sdk)](https://snyk.io/test/github/scaleleap/amazon-mws-api-sdk)
[![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
📦 @scaleleap/amazon-mws-api-sdk
===================================
A template for creating TypeScript applications.
A fully typed TypeScript SDK library for Amazon MWS API
---
This package does one, two and three.
## Download & Installation

@@ -18,13 +21,50 @@

## Contributing
## Documentation (WIP)
This repository uses [Conventional Commit](https://www.conventionalcommits.org/) style commit messages.
[Click me!](docs)
Testing uses [global-agent](https://github.com/gajus/global-agent) to allow for request proxying/interception
for debugging.
## Example
---
1. Use [Charles.app](https://www.charlesproxy.com), or a similar MiM tool to proxy the requests.
2. Set the proxy server via `export GLOBAL_AGENT_HTTP_PROXY=http://127.0.0.1:8080`
3. Run tests `npm t` and you'll be able to inspect traffic going through.
```TypeScript
import {
amazonMarketplaces,
HttpClient,
MWSOptions,
Sellers,
Orders
} from 'amazon-mws-api-sdk'
const mwsOptions: MWSOptions = {
marketplace: amazonMarketplaces.US,
awsAccessKeyId: '',
mwsAuthToken: '',
sellerId: '',
secretKey: '',
}
const main = async () => {
const http = new HttpClient(mwsOptions)
// Get status for Sellers API
const sellers = new Sellers(http)
const [serviceStatus] = await sellers.getServiceStatus()
if (serviceStatus.Status === 'GREEN') {
console.log(`Sellers API is up on ${serviceStatus.Timestamp}!`)
}
// List Orders
const orders = new Orders(http)
const [ordersList, requestMeta] = await orders.listOrders({
MarketplaceId: [amazonMarketplaces.US.id],
CreatedAfter: new Date(Date.now() - 100 * 24 * 60 * 60 * 1000)
})
ordersList.Orders.forEach((order) => {
console.log(`Order ID is ${order.AmazonOrderId}`)
})
}
```
More examples in the `/examples` folder!
## Authors or Acknowledgments

@@ -34,2 +74,3 @@

* Stanislav Iliev ([gigobyte](https://github.com/gigobyte))
* Justin Emmanuel Mercado ([Justin Emmanuel Mercado](https://github.com/justinemmanuelmercado))

@@ -39,8 +80,1 @@ ## License

This project is licensed under the MIT License.
## Badges
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ScaleLeap/amazon-mws-api-sdk/CI)](https://github.com/ScaleLeap/amazon-mws-api-sdk/actions)
[![NPM](https://img.shields.io/npm/v/@scaleleap/amazon-mws-api-sdk)](https://npm.im/@scaleleap/amazon-mws-api-sdk)
[![License](https://img.shields.io/npm/l/@scaleleap/amazon-mws-api-sdk)](./LICENSE)
[![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

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