@scaleleap/amazon-mws-api-sdk
Advanced tools
Comparing version 1.9.22 to 1.9.23
@@ -6,2 +6,9 @@ # Changelog | ||
## [1.9.23](https://github.com/ScaleLeap/amazon-mws-api-sdk/compare/v1.9.22...v1.9.23) (2020-12-23) | ||
### Bug Fixes | ||
* all SKUs are strings ([4f0b242](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/4f0b2428a3408f879491fffdc12029acd37616c6)) | ||
## [1.9.22](https://github.com/ScaleLeap/amazon-mws-api-sdk/compare/v1.9.21...v1.9.22) (2020-12-22) | ||
@@ -8,0 +15,0 @@ |
@@ -7,3 +7,3 @@ "use strict"; | ||
*/ | ||
exports.USER_AGENT = '@scaleleap/amazon-mws-api-sdk/1.9.22'; | ||
exports.USER_AGENT = '@scaleleap/amazon-mws-api-sdk/1.9.23'; | ||
//# sourceMappingURL=constants.js.map |
@@ -20,1 +20,6 @@ /** A collection of parsing codecs */ | ||
export declare const nextToken: <T extends string>(action: T) => Codec<NextToken<T>>; | ||
/** | ||
* A shorthand for all SKUs, which are always strings, but when they consist of just numbers, | ||
* XML parser will parse them to a number. | ||
*/ | ||
export declare const SKU: Codec<string>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.nextToken = exports.NextToken = exports.serviceStatus = exports.ServiceStatus = exports.mwsDate = exports.mwsBoolean = exports.ensureString = exports.ensureArray = void 0; | ||
exports.SKU = exports.nextToken = exports.NextToken = exports.serviceStatus = exports.ServiceStatus = exports.mwsDate = exports.mwsBoolean = exports.ensureString = exports.ensureArray = void 0; | ||
/** A collection of parsing codecs */ | ||
@@ -100,2 +100,7 @@ const Codec_1 = require("purify-ts/Codec"); | ||
}); | ||
/** | ||
* A shorthand for all SKUs, which are always strings, but when they consist of just numbers, | ||
* XML parser will parse them to a number. | ||
*/ | ||
exports.SKU = exports.ensureString; | ||
//# sourceMappingURL=parsing.js.map |
@@ -120,3 +120,3 @@ "use strict"; | ||
const ShipmentItem = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.optional(purify_ts_1.string), | ||
SellerSKU: purify_ts_1.optional(parsing_1.SKU), | ||
OrderItemId: purify_ts_1.optional(parsing_1.ensureString), | ||
@@ -250,4 +250,4 @@ OrderAdjustmentItemId: purify_ts_1.optional(parsing_1.ensureString), | ||
FeeList: purify_ts_1.optional(parsing_1.ensureArray('FeeComponent', FeeComponent)), | ||
SellerSKU: purify_ts_1.optional(purify_ts_1.string), | ||
FnSKU: purify_ts_1.optional(purify_ts_1.string), | ||
SellerSKU: purify_ts_1.optional(parsing_1.SKU), | ||
FnSKU: purify_ts_1.optional(parsing_1.SKU), | ||
FeeDesription: purify_ts_1.optional(purify_ts_1.string), | ||
@@ -313,4 +313,4 @@ ASIN: purify_ts_1.optional(parsing_1.ensureString), | ||
TotalAmount: purify_ts_1.optional(codec_1.CurrencyAmount), | ||
SellerSKU: purify_ts_1.optional(purify_ts_1.string), | ||
FnSKU: purify_ts_1.optional(purify_ts_1.string), | ||
SellerSKU: purify_ts_1.optional(parsing_1.SKU), | ||
FnSKU: purify_ts_1.optional(parsing_1.SKU), | ||
ProductDescription: purify_ts_1.optional(purify_ts_1.string), | ||
@@ -317,0 +317,0 @@ ASIN: purify_ts_1.optional(parsing_1.ensureString), |
@@ -21,3 +21,3 @@ "use strict"; | ||
exports.SKUInboundGuidance = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.string, | ||
SellerSKU: parsing_1.SKU, | ||
ASIN: parsing_1.ensureString, | ||
@@ -28,3 +28,3 @@ InboundGuidance: exports.InboundGuidance, | ||
exports.InvalidSKU = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.string, | ||
SellerSKU: parsing_1.SKU, | ||
ErrorReason: purify_ts_1.string, | ||
@@ -90,4 +90,4 @@ }); | ||
exports.InboundShipmentPlanItem = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.string, | ||
FulfillmentNetworkSKU: purify_ts_1.string, | ||
SellerSKU: parsing_1.SKU, | ||
FulfillmentNetworkSKU: parsing_1.SKU, | ||
Quantity: purify_ts_1.number, | ||
@@ -160,3 +160,3 @@ PrepDetailsList: purify_ts_1.optional(parsing_1.ensureArray('PrepDetails', PrepDetails)), | ||
exports.SKUPrepInstructions = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.string, | ||
SellerSKU: parsing_1.SKU, | ||
ASIN: parsing_1.ensureString, | ||
@@ -435,4 +435,4 @@ BarcodeInstruction: exports.BarcodeInstruction, | ||
ShipmentId: purify_ts_1.optional(parsing_1.ensureString), | ||
SellerSKU: purify_ts_1.string, | ||
FulfillmentNetworkSKU: purify_ts_1.optional(purify_ts_1.string), | ||
SellerSKU: parsing_1.SKU, | ||
FulfillmentNetworkSKU: purify_ts_1.optional(parsing_1.SKU), | ||
QuantityShipped: purify_ts_1.number, | ||
@@ -439,0 +439,0 @@ QuantityReceived: purify_ts_1.optional(purify_ts_1.number), |
@@ -56,4 +56,4 @@ "use strict"; | ||
const InventorySupply = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.optional(purify_ts_1.string), | ||
FNSKU: purify_ts_1.string, | ||
SellerSKU: purify_ts_1.optional(parsing_1.SKU), | ||
FNSKU: parsing_1.SKU, | ||
ASIN: purify_ts_1.optional(parsing_1.ensureString), | ||
@@ -60,0 +60,0 @@ Condition: purify_ts_1.optional(purify_ts_1.enumeration(InventoryCondition)), |
@@ -23,3 +23,3 @@ "use strict"; | ||
const FulfillmentPreviewItem = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.string, | ||
SellerSKU: parsing_1.SKU, | ||
SellerFulfillmentOrderItemId: parsing_1.ensureString, | ||
@@ -38,3 +38,3 @@ Quantity: purify_ts_1.number, | ||
const UnfulfillablePreviewItem = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.string, | ||
SellerSKU: parsing_1.SKU, | ||
SellerFulfillmentOrderItemId: purify_ts_1.string, | ||
@@ -147,3 +147,3 @@ Quantity: purify_ts_1.number, | ||
const FulfillmentOrderItem = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.string, | ||
SellerSKU: parsing_1.SKU, | ||
SellerFulfillmentOrderItemId: purify_ts_1.string, | ||
@@ -153,3 +153,3 @@ Quantity: purify_ts_1.number, | ||
DisplayableComment: purify_ts_1.optional(purify_ts_1.string), | ||
FulfillmentNetworkSKU: purify_ts_1.optional(purify_ts_1.string), | ||
FulfillmentNetworkSKU: purify_ts_1.optional(parsing_1.SKU), | ||
CancelledQuantity: purify_ts_1.number, | ||
@@ -156,0 +156,0 @@ UnfulfillableQuantity: purify_ts_1.number, |
@@ -178,3 +178,3 @@ "use strict"; | ||
OrderItemId: parsing_1.ensureString, | ||
SellerSKU: Codec_1.optional(Codec_1.string), | ||
SellerSKU: Codec_1.optional(parsing_1.SKU), | ||
BuyerCustomizedInfo: Codec_1.optional(Codec_1.Codec.interface({ | ||
@@ -181,0 +181,0 @@ CustomizedURL: Codec_1.string, |
@@ -32,2 +32,3 @@ "use strict"; | ||
IdTypeEnum["ASIN"] = "ASIN"; | ||
// eslint-disable-next-line no-shadow | ||
IdTypeEnum["SKU"] = "SKU"; | ||
@@ -99,3 +100,3 @@ })(IdTypeEnum = exports.IdTypeEnum || (exports.IdTypeEnum = {})); | ||
SellerId: parsing_1.ensureString, | ||
SellerSKU: parsing_1.ensureString, | ||
SellerSKU: parsing_1.SKU, | ||
}); | ||
@@ -166,3 +167,3 @@ const IdentifierType = purify_ts_1.Codec.interface({ | ||
SellerId: purify_ts_1.optional(purify_ts_1.string), | ||
SellerSKU: purify_ts_1.optional(purify_ts_1.string), | ||
SellerSKU: purify_ts_1.optional(parsing_1.SKU), | ||
}); | ||
@@ -272,3 +273,3 @@ const OffersList = parsing_1.ensureArray('Offer', OfferType); | ||
const SkuIdentifier = purify_ts_1.Codec.interface({ | ||
SellerSKU: purify_ts_1.string, | ||
SellerSKU: parsing_1.SKU, | ||
...Identifier, | ||
@@ -275,0 +276,0 @@ }); |
@@ -28,3 +28,3 @@ "use strict"; | ||
Asin: parsing_1.ensureString, | ||
Sku: purify_ts_1.string, | ||
Sku: parsing_1.SKU, | ||
Upc: purify_ts_1.string, | ||
@@ -31,0 +31,0 @@ }); |
@@ -44,3 +44,3 @@ "use strict"; | ||
ASIN: parsing_1.ensureString, | ||
SellerSKU: purify_ts_1.optional(purify_ts_1.string), | ||
SellerSKU: purify_ts_1.optional(parsing_1.SKU), | ||
OrderItemId: parsing_1.ensureString, | ||
@@ -47,0 +47,0 @@ Title: purify_ts_1.optional(purify_ts_1.string), |
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "1.9.22", | ||
"version": "1.9.23", | ||
"main": "lib/index.js", | ||
@@ -29,0 +29,0 @@ "files": [ |
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
1107701
19275