@scaleleap/amazon-mws-api-sdk
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -6,2 +6,9 @@ # Changelog | ||
## [1.5.1](https://github.com/ScaleLeap/amazon-mws-api-sdk/compare/v1.5.0...v1.5.1) (2020-07-21) | ||
### Bug Fixes | ||
* **deps:** update dependency purify-ts to v0.16.0-beta.5 ([617b172](https://github.com/ScaleLeap/amazon-mws-api-sdk/commit/617b172844df410cd0d65bf9beca7b59da6eb144)) | ||
# [1.5.0](https://github.com/ScaleLeap/amazon-mws-api-sdk/compare/v1.4.2...v1.5.0) (2020-07-16) | ||
@@ -8,0 +15,0 @@ |
@@ -339,3 +339,3 @@ "use strict"; | ||
action: 'CreateInboundShipmentPlan', | ||
parameters: type_1.canonicalizeParametersCreateInboUpdateundShipmentPlan(parameters), | ||
parameters: type_1.canonicalizeParametersCreateUpdateInboundShipmentPlan(parameters), | ||
}); | ||
@@ -342,0 +342,0 @@ return codec_1.CreateInboundShipmentPlanResponse.decode(response).caseOf({ |
@@ -12,3 +12,3 @@ import { Parameters } from '../../http'; | ||
}; | ||
export declare const canonicalizeParametersCreateInboUpdateundShipmentPlan: (parameters: CreateInboundShipmentPlanParameters) => { | ||
export declare const canonicalizeParametersCreateUpdateInboundShipmentPlan: (parameters: CreateInboundShipmentPlanParameters) => { | ||
ShipToCountryCode: string | undefined; | ||
@@ -27,2 +27,3 @@ ShipFromAddress: AddressFIS; | ||
}; | ||
export declare const canonicalizeDate: (date: Date | undefined) => string | undefined; | ||
export declare const canonicalizeInboundShipmentItem: (item: InboundShipmentItem) => { | ||
@@ -234,2 +235,5 @@ ShipmentId: string | undefined; | ||
} | ||
/** | ||
* Maybe define the exact return more deeply if needed? | ||
*/ | ||
export declare const canonicalizePutTransportContentParameters: (parameters: PutTransportContentParameters) => Parameters; | ||
@@ -236,0 +240,0 @@ export interface SingleShipmentIdParameters { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PageTypeEnum = exports.canonicalizePutTransportContentParameters = exports.PackageStatusEnum = exports.WeightUnitEnum = exports.PrepOwnerEnum = exports.PrepInstructionEnum = exports.canonicalizeParametersCreateUpdateInboundShipment = exports.canonicalizeInboundShipmentItem = exports.canonicalizeParametersCreateInboUpdateundShipmentPlan = exports.canonicalizeInboundShipmentPlanRequestItems = void 0; | ||
exports.PageTypeEnum = exports.canonicalizePutTransportContentParameters = exports.PackageStatusEnum = exports.WeightUnitEnum = exports.PrepOwnerEnum = exports.PrepInstructionEnum = exports.canonicalizeParametersCreateUpdateInboundShipment = exports.canonicalizeInboundShipmentItem = exports.canonicalizeDate = exports.canonicalizeParametersCreateUpdateInboundShipmentPlan = exports.canonicalizeInboundShipmentPlanRequestItems = void 0; | ||
exports.canonicalizeInboundShipmentPlanRequestItems = (requestItem) => { | ||
@@ -14,3 +14,3 @@ return { | ||
}; | ||
exports.canonicalizeParametersCreateInboUpdateundShipmentPlan = (parameters) => { | ||
exports.canonicalizeParametersCreateUpdateInboundShipmentPlan = (parameters) => { | ||
const fixedInboundShipmentPlanRequestItems = parameters.InboundShipmentPlanRequestItems.map((requestItem) => exports.canonicalizeInboundShipmentPlanRequestItems(requestItem)); | ||
@@ -25,5 +25,5 @@ return { | ||
}; | ||
const canonicalizeDate = (date) => { | ||
exports.canonicalizeDate = (date) => { | ||
if (date) { | ||
// convert releaseDate to YYYY-MM-DD | ||
// convert date to YYYY-MM-DD | ||
const offset = date.getTimezoneOffset(); | ||
@@ -36,3 +36,3 @@ const releaseDate = new Date(date.getTime() + offset * 60 * 1000); | ||
exports.canonicalizeInboundShipmentItem = (item) => { | ||
const releaseDateString = canonicalizeDate(item.ReleaseDate); | ||
const releaseDateString = exports.canonicalizeDate(item.ReleaseDate); | ||
return { | ||
@@ -90,2 +90,5 @@ ShipmentId: item.ShipmentId, | ||
})(PackageStatusEnum = exports.PackageStatusEnum || (exports.PackageStatusEnum = {})); | ||
/** | ||
* Maybe define the exact return more deeply if needed? | ||
*/ | ||
exports.canonicalizePutTransportContentParameters = (parameters) => { | ||
@@ -112,3 +115,3 @@ const { TransportDetails } = parameters; | ||
SellerFreightClass: PartneredLtlData.SellerFreightClass, | ||
FreightReadyDate: canonicalizeDate(PartneredLtlData.FreightReadyDate), | ||
FreightReadyDate: exports.canonicalizeDate(PartneredLtlData.FreightReadyDate), | ||
'PalletList.member': PartneredLtlData.PalletList, | ||
@@ -115,0 +118,0 @@ TotalWeight: PartneredLtlData.TotalWeight, |
@@ -22,3 +22,3 @@ { | ||
"homepage": "https://github.com/ScaleLeap/amazon-mws-api-sdk/#readme", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"main": "lib/index.js", | ||
@@ -48,3 +48,3 @@ "files": [ | ||
"fast-xml-parser": "3.17.4", | ||
"purify-ts": "0.16.0-beta.3", | ||
"purify-ts": "0.16.0-beta.5", | ||
"ts-error": "1.0.6" | ||
@@ -70,3 +70,3 @@ }, | ||
"tsconfigs": "4.0.2", | ||
"typescript": "3.9.6" | ||
"typescript": "3.9.7" | ||
}, | ||
@@ -73,0 +73,0 @@ "keywords": [], |
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
856469
14527
+ Addedpurify-ts@0.16.0-beta.5(transitive)
- Removedpurify-ts@0.16.0-beta.3(transitive)
Updatedpurify-ts@0.16.0-beta.5