amazon-sp-api
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -11,3 +11,3 @@ export interface Errors { | ||
interface RoleCredentials { | ||
export interface RoleCredentials { | ||
id?: string; | ||
@@ -18,2 +18,9 @@ secret?: string; | ||
interface Credentials { | ||
SELLING_PARTNER_APP_CLIENT_ID?: string; | ||
SELLING_PARTNER_APP_CLIENT_SECRET?: string; | ||
AWS_ACCESS_KEY_ID?: string; | ||
AWS_SECRET_ACCESS_KEY?: string; | ||
AWS_SELLING_PARTNER_ROLE?: string; | ||
} | ||
interface Options { | ||
@@ -23,2 +30,3 @@ credentials_path?: string; | ||
auto_request_throttled?: boolean; | ||
only_grantless_operations?: boolean; | ||
} | ||
@@ -28,5 +36,6 @@ | ||
region: "eu" | "na" | "fe"; | ||
refresh_token: string; | ||
refresh_token?: string; | ||
access_token?: string; | ||
role_credentials?: RoleCredentials; | ||
credentials?: Credentials; | ||
options?: Options; | ||
@@ -33,0 +42,0 @@ } |
@@ -21,3 +21,3 @@ import { | ||
CancelFeedResponse, | ||
CreateFeedBody, | ||
CreateFeedSpecificationBody, | ||
CreateFeedDocumentBody, | ||
@@ -33,3 +33,3 @@ CreateFeedDocumentResponse, | ||
} from "./operations/feeds"; | ||
import { Config, DownloadOptions } from "./baseTypes"; | ||
import { Config, DownloadOptions, RoleCredentials } from "./baseTypes"; | ||
import { | ||
@@ -39,3 +39,2 @@ ConfirmPreorderPath, | ||
ConfirmPreorderResponse, | ||
CreateInboundShipmentBody, | ||
CreateInboundShipmentPath, | ||
@@ -52,8 +51,8 @@ CreateInboundShipmentPlanBody, | ||
GetPrepInstructionsResponse, | ||
UpdateInboundShipmentBody, | ||
UpdateInboundShipmentPath, | ||
UpdateInboundShipmentResponse, | ||
CreateInboundShipmentRequestBody, | ||
} from "./operations/fulfillmentInbound"; | ||
import { | ||
CreateReportBody, | ||
CreateReportSpecificationBody, | ||
CreateReportResponse, | ||
@@ -125,2 +124,8 @@ GetReportDocumentPath, | ||
exchange(auth_code:string): Promise<any>; | ||
get access_token(): string; | ||
get role_credentials(): RoleCredentials; | ||
callAPI<TOperation extends Operation>( | ||
@@ -127,0 +132,0 @@ req_params: ReqParams<TOperation> |
@@ -31,6 +31,2 @@ import { BaseResponse } from "../baseTypes"; | ||
export interface UpdateInboundShipmentBody { | ||
body: InboundShipmentRequest; | ||
} | ||
export interface UpdateInboundShipmentPath extends BasePath {} | ||
@@ -44,6 +40,2 @@ | ||
export interface CreateInboundShipmentBody { | ||
body: InboundShipmentRequest; | ||
} | ||
export interface CreateInboundShipmentPath extends BasePath {} | ||
@@ -283,3 +275,3 @@ | ||
interface InboundShipmentRequest { | ||
export interface CreateInboundShipmentBody { | ||
InboundShipmentHeader: InboundShipmentHeader; | ||
@@ -290,2 +282,8 @@ InboundShipmentItems: InboundShipmentItem[]; | ||
export interface UpdateInboundShipmentBody { | ||
InboundShipmentHeader: InboundShipmentHeader; | ||
InboundShipmentItems: InboundShipmentItem[]; | ||
MarketplaceId: string; | ||
} | ||
interface InboundShipmentHeader { | ||
@@ -292,0 +290,0 @@ ShipmentName: string; |
import { BaseResponse, ProcessingStatus } from "../baseTypes"; | ||
export interface CreateReportBody { | ||
body: CreateReportSpecification; | ||
} | ||
export interface CreateReportResponse extends BaseResponse { | ||
@@ -29,3 +25,3 @@ payload?: { | ||
interface CreateReportSpecification { | ||
export interface CreateReportBody { | ||
reportOptions?: ReportOptions; | ||
@@ -32,0 +28,0 @@ reportType: string; |
{ | ||
"name": "amazon-sp-api", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "Amazon Selling Partner API client", | ||
@@ -26,10 +26,10 @@ "main": "index.js", | ||
"dependencies": { | ||
"crypto-js": "^4.0.0", | ||
"crypto-js": "^4.1.1", | ||
"csvtojson": "^2.0.10", | ||
"fast-xml-parser": "^3.19.0", | ||
"iconv-lite": "^0.6.2", | ||
"fast-xml-parser": "^3.20.3", | ||
"iconv-lite": "^0.6.3", | ||
"qs": "^6.10.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^14.14.45", | ||
"@types/node": "^14.17.29", | ||
"chai": "^4.3.4", | ||
@@ -36,0 +36,0 @@ "dotenv": "^8.6.0", |
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
205082
5627
Updatedcrypto-js@^4.1.1
Updatedfast-xml-parser@^3.20.3
Updatediconv-lite@^0.6.3