Socket
Socket
Sign inDemoInstall

@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1

Package Overview
Dependencies
60
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.1 to 2.3.0

38

dist/cjs/src/api-model/api/vendor-orders-api.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.VendorOrdersApi = exports.VendorOrdersApiFactory = exports.VendorOrdersApiFp = exports.VendorOrdersApiAxiosParamCreator = void 0;
exports.GetOrdersSortOrderEnum = exports.GetOrdersStatusEnum = exports.VendorOrdersApi = exports.VendorOrdersApiFactory = exports.VendorOrdersApiFp = exports.VendorOrdersApiAxiosParamCreator = void 0;
const axios_1 = __importDefault(require("axios"));

@@ -66,5 +66,5 @@ // Some imports not used depending on template conditions

* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
* @param {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {number} [limit] The limit to the number of purchase orders returned.
* @param {'ASC' | 'DESC'} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.

@@ -173,3 +173,5 @@ * @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.

const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(purchaseOrderNumber, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['VendorOrdersApi.getOrder']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -181,5 +183,5 @@ /**

* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
* @param {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {number} [limit] The limit to the number of purchase orders returned.
* @param {'ASC' | 'DESC'} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.

@@ -192,3 +194,5 @@ * @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.

const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['VendorOrdersApi.getOrders']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -203,3 +207,5 @@ /**

const localVarAxiosArgs = await localVarAxiosParamCreator.submitAcknowledgement(body, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = base_1.operationServerMap['VendorOrdersApi.submitAcknowledgement']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -285,1 +291,17 @@ };

exports.VendorOrdersApi = VendorOrdersApi;
/**
* @export
*/
exports.GetOrdersStatusEnum = {
New: 'NEW',
Shipped: 'SHIPPED',
Accepted: 'ACCEPTED',
Cancelled: 'CANCELLED'
};
/**
* @export
*/
exports.GetOrdersSortOrderEnum = {
Asc: 'ASC',
Desc: 'DESC'
};

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
const axios_1 = __importDefault(require("axios"));

@@ -47,3 +47,3 @@ exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");

this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
this.basePath = configuration.basePath ?? basePath;
}

@@ -69,1 +69,6 @@ }

exports.RequiredError = RequiredError;
/**
*
* @export
*/
exports.operationServerMap = {};

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

return (axios = globalAxios, basePath = BASE_PATH) => {
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
return axios.request(axiosRequestArgs);

@@ -144,0 +144,0 @@ };

@@ -53,2 +53,9 @@ "use strict";

/**
* override server index
*
* @type {number}
* @memberof Configuration
*/
serverIndex;
/**
* base options for axios calls

@@ -74,2 +81,3 @@ *

this.basePath = param.basePath;
this.serverIndex = param.serverIndex;
this.baseOptions = param.baseOptions;

@@ -76,0 +84,0 @@ this.formDataCtor = param.formDataCtor;

@@ -19,3 +19,3 @@ /* tslint:disable */

// @ts-ignore
import { BASE_PATH, BaseAPI } from '../base';
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
/**

@@ -60,5 +60,5 @@ * VendorOrdersApi - axios parameter creator

* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
* @param {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {number} [limit] The limit to the number of purchase orders returned.
* @param {'ASC' | 'DESC'} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.

@@ -166,3 +166,5 @@ * @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.

const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(purchaseOrderNumber, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['VendorOrdersApi.getOrder']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -174,5 +176,5 @@ /**

* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
* @param {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {number} [limit] The limit to the number of purchase orders returned.
* @param {'ASC' | 'DESC'} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.

@@ -185,3 +187,5 @@ * @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.

const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['VendorOrdersApi.getOrders']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -196,3 +200,5 @@ /**

const localVarAxiosArgs = await localVarAxiosParamCreator.submitAcknowledgement(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['VendorOrdersApi.submitAcknowledgement']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},

@@ -275,1 +281,17 @@ };

}
/**
* @export
*/
export const GetOrdersStatusEnum = {
New: 'NEW',
Shipped: 'SHIPPED',
Accepted: 'ACCEPTED',
Cancelled: 'CANCELLED'
};
/**
* @export
*/
export const GetOrdersSortOrderEnum = {
Asc: 'ASC',
Desc: 'DESC'
};

@@ -40,3 +40,3 @@ /* tslint:disable */

this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
this.basePath = configuration.basePath ?? basePath;
}

@@ -60,1 +60,6 @@ }

}
/**
*
* @export
*/
export const operationServerMap = {};

@@ -130,5 +130,5 @@ /* tslint:disable */

return (axios = globalAxios, basePath = BASE_PATH) => {
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
return axios.request(axiosRequestArgs);
};
};

@@ -50,2 +50,9 @@ /* tslint:disable */

/**
* override server index
*
* @type {number}
* @memberof Configuration
*/
serverIndex;
/**
* base options for axios calls

@@ -71,2 +78,3 @@ *

this.basePath = param.basePath;
this.serverIndex = param.serverIndex;
this.baseOptions = param.baseOptions;

@@ -73,0 +81,0 @@ this.formDataCtor = param.formDataCtor;

@@ -13,9 +13,9 @@ /**

import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import globalAxios from 'axios';
import { RequestArgs, BaseAPI } from '../base';
import { GetOrderResponse } from '../models';
import { GetOrdersResponse } from '../models';
import { SubmitAcknowledgementRequest } from '../models';
import { SubmitAcknowledgementResponse } from '../models';
import { type RequestArgs, BaseAPI } from '../base';
import type { GetOrderResponse } from '../models';
import type { GetOrdersResponse } from '../models';
import type { SubmitAcknowledgementRequest } from '../models';
import type { SubmitAcknowledgementResponse } from '../models';
/**

@@ -32,3 +32,3 @@ * VendorOrdersApi - axios parameter creator

*/
getOrder: (purchaseOrderNumber: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
getOrder: (purchaseOrderNumber: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**

@@ -39,5 +39,5 @@ * Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
* @param {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {number} [limit] The limit to the number of purchase orders returned.
* @param {'ASC' | 'DESC'} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.

@@ -48,3 +48,3 @@ * @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.

*/
getOrders: (createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?: 'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED', limit?: number, sortOrder?: 'ASC' | 'DESC', nextToken?: string, includeDetails?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
getOrders: (createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?: GetOrdersStatusEnum, limit?: number, sortOrder?: GetOrdersSortOrderEnum, nextToken?: string, includeDetails?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**

@@ -56,3 +56,3 @@ * Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
submitAcknowledgement: (body: SubmitAcknowledgementRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
submitAcknowledgement: (body: SubmitAcknowledgementRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
};

@@ -70,3 +70,3 @@ /**

*/
getOrder(purchaseOrderNumber: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrderResponse>>;
getOrder(purchaseOrderNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrderResponse>>;
/**

@@ -77,5 +77,5 @@ * Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
* @param {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
* @param {number} [limit] The limit to the number of purchase orders returned.
* @param {'ASC' | 'DESC'} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.

@@ -86,3 +86,3 @@ * @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.

*/
getOrders(createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?: 'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED', limit?: number, sortOrder?: 'ASC' | 'DESC', nextToken?: string, includeDetails?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrdersResponse>>;
getOrders(createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?: GetOrdersStatusEnum, limit?: number, sortOrder?: GetOrdersSortOrderEnum, nextToken?: string, includeDetails?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrdersResponse>>;
/**

@@ -94,3 +94,3 @@ * Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
submitAcknowledgement(body: SubmitAcknowledgementRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAcknowledgementResponse>>;
submitAcknowledgement(body: SubmitAcknowledgementRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAcknowledgementResponse>>;
};

@@ -108,3 +108,3 @@ /**

*/
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?: AxiosRequestConfig): AxiosPromise<GetOrderResponse>;
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOrderResponse>;
/**

@@ -116,3 +116,3 @@ * Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?: AxiosRequestConfig): AxiosPromise<GetOrdersResponse>;
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOrdersResponse>;
/**

@@ -124,3 +124,3 @@ * Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitAcknowledgementResponse>;
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitAcknowledgementResponse>;
};

@@ -169,3 +169,3 @@ /**

*/
readonly status?: 'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED';
readonly status?: GetOrdersStatusEnum;
/**

@@ -182,3 +182,3 @@ * The limit to the number of purchase orders returned.

*/
readonly sortOrder?: 'ASC' | 'DESC';
readonly sortOrder?: GetOrdersSortOrderEnum;
/**

@@ -224,3 +224,3 @@ * Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.

*/
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOrderResponse, any>>;
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOrderResponse, any>>;
/**

@@ -233,3 +233,3 @@ * Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOrdersResponse, any>>;
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOrdersResponse, any>>;
/**

@@ -242,3 +242,21 @@ * Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

*/
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitAcknowledgementResponse, any>>;
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitAcknowledgementResponse, any>>;
}
/**
* @export
*/
export declare const GetOrdersStatusEnum: {
readonly New: "NEW";
readonly Shipped: "SHIPPED";
readonly Accepted: "ACCEPTED";
readonly Cancelled: "CANCELLED";
};
export type GetOrdersStatusEnum = typeof GetOrdersStatusEnum[keyof typeof GetOrdersStatusEnum];
/**
* @export
*/
export declare const GetOrdersSortOrderEnum: {
readonly Asc: "ASC";
readonly Desc: "DESC";
};
export type GetOrdersSortOrderEnum = typeof GetOrdersSortOrderEnum[keyof typeof GetOrdersSortOrderEnum];

@@ -13,3 +13,3 @@ /**

import type { Configuration } from './configuration';
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
export declare const BASE_PATH: string;

@@ -33,3 +33,3 @@ /**

url: string;
options: AxiosRequestConfig;
options: RawAxiosRequestConfig;
}

@@ -57,1 +57,13 @@ /**

}
interface ServerMap {
[key: string]: {
url: string;
description: string;
}[];
}
/**
*
* @export
*/
export declare const operationServerMap: ServerMap;
export {};

@@ -18,2 +18,3 @@ /**

basePath?: string;
serverIndex?: number;
baseOptions?: any;

@@ -58,2 +59,9 @@ formDataCtor?: new () => any;

/**
* override server index
*
* @type {number}
* @memberof Configuration
*/
serverIndex?: number;
/**
* base options for axios calls

@@ -60,0 +68,0 @@ *

@@ -12,3 +12,3 @@ /**

*/
import { Order } from './order';
import type { Order } from './order';
/**

@@ -15,0 +15,0 @@ * The response schema for the getOrder operation.

@@ -12,3 +12,3 @@ /**

*/
import { OrderList } from './order-list';
import type { OrderList } from './order-list';
/**

@@ -15,0 +15,0 @@ * The response schema for the getOrders operation.

@@ -12,5 +12,5 @@ /**

*/
import { AcknowledgementStatus } from './acknowledgement-status';
import { OrderItemAcknowledgement } from './order-item-acknowledgement';
import { PartyIdentification } from './party-identification';
import type { AcknowledgementStatus } from './acknowledgement-status';
import type { OrderItemAcknowledgement } from './order-item-acknowledgement';
import type { PartyIdentification } from './party-identification';
/**

@@ -17,0 +17,0 @@ * Details of an individual order being acknowledged.

@@ -12,3 +12,3 @@ /**

*/
import { TaxDetails } from './tax-details';
import type { TaxDetails } from './tax-details';
/**

@@ -15,0 +15,0 @@ *

@@ -12,7 +12,7 @@ /**

*/
import { Address } from './address';
import { OrderDetailsTaxTotal } from './order-details-tax-total';
import { OrderItem } from './order-item';
import { PartyIdentification } from './party-identification';
import { ShipmentDetails } from './shipment-details';
import type { Address } from './address';
import type { OrderDetailsTaxTotal } from './order-details-tax-total';
import type { OrderItem } from './order-item';
import type { PartyIdentification } from './party-identification';
import type { ShipmentDetails } from './shipment-details';
/**

@@ -19,0 +19,0 @@ * Details of an order.

@@ -12,3 +12,3 @@ /**

*/
import { ItemQuantity } from './item-quantity';
import type { ItemQuantity } from './item-quantity';
/**

@@ -15,0 +15,0 @@ *

@@ -12,3 +12,3 @@ /**

*/
import { TaxDetails } from './tax-details';
import type { TaxDetails } from './tax-details';
/**

@@ -15,0 +15,0 @@ * Total tax details for the line item.

@@ -12,7 +12,7 @@ /**

*/
import { GiftDetails } from './gift-details';
import { ItemQuantity } from './item-quantity';
import { Money } from './money';
import { OrderItemTaxDetails } from './order-item-tax-details';
import { ScheduledDeliveryShipment } from './scheduled-delivery-shipment';
import type { GiftDetails } from './gift-details';
import type { ItemQuantity } from './item-quantity';
import type { Money } from './money';
import type { OrderItemTaxDetails } from './order-item-tax-details';
import type { ScheduledDeliveryShipment } from './scheduled-delivery-shipment';
/**

@@ -19,0 +19,0 @@ *

@@ -12,4 +12,4 @@ /**

*/
import { Order } from './order';
import { Pagination } from './pagination';
import type { Order } from './order';
import type { Pagination } from './pagination';
/**

@@ -16,0 +16,0 @@ *

@@ -12,3 +12,3 @@ /**

*/
import { OrderDetails } from './order-details';
import type { OrderDetails } from './order-details';
/**

@@ -15,0 +15,0 @@ *

@@ -12,4 +12,4 @@ /**

*/
import { Address } from './address';
import { TaxRegistrationDetails } from './tax-registration-details';
import type { Address } from './address';
import type { TaxRegistrationDetails } from './tax-registration-details';
/**

@@ -16,0 +16,0 @@ *

@@ -12,3 +12,3 @@ /**

*/
import { ShipmentDates } from './shipment-dates';
import type { ShipmentDates } from './shipment-dates';
/**

@@ -15,0 +15,0 @@ * Shipment details required for the shipment.

@@ -12,3 +12,3 @@ /**

*/
import { OrderAcknowledgementItem } from './order-acknowledgement-item';
import type { OrderAcknowledgementItem } from './order-acknowledgement-item';
/**

@@ -15,0 +15,0 @@ * The request schema for the submitAcknowledgement operation.

@@ -12,3 +12,3 @@ /**

*/
import { TransactionId } from './transaction-id';
import type { TransactionId } from './transaction-id';
/**

@@ -15,0 +15,0 @@ * The response schema for the submitAcknowledgement operation.

@@ -12,3 +12,3 @@ /**

*/
import { Money } from './money';
import type { Money } from './money';
/**

@@ -15,0 +15,0 @@ *

@@ -12,3 +12,3 @@ /**

*/
import { Address } from './address';
import type { Address } from './address';
/**

@@ -15,0 +15,0 @@ * Tax registration details of the entity.

@@ -5,3 +5,3 @@ {

"description": "The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.",
"version": "2.2.1",
"version": "2.3.0",
"main": "dist/cjs/index.js",

@@ -22,4 +22,4 @@ "module": "dist/es/index.js",

"dependencies": {
"@sp-api-sdk/common": "2.0.7",
"axios": "^1.6.8"
"@sp-api-sdk/common": "2.0.8",
"axios": "^1.7.0"
},

@@ -45,3 +45,3 @@ "repository": {

],
"gitHead": "556cf5234c43b36ddaffa12f795a925b1c7fc63b"
"gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc