@sp-api-sdk/vendor-shipments-api-v1 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/api-model/api/vendor-shipping-api.js +19 -6
- package/dist/cjs/src/api-model/base.js +7 -2
- package/dist/cjs/src/api-model/common.js +1 -1
- package/dist/cjs/src/api-model/configuration.js +8 -0
- package/dist/es/src/api-model/api/vendor-shipping-api.js +19 -6
- package/dist/es/src/api-model/base.js +6 -1
- package/dist/es/src/api-model/common.js +1 -1
- package/dist/es/src/api-model/configuration.js +8 -0
- package/dist/types/src/api-model/api/vendor-shipping-api.d.ts +29 -21
- package/dist/types/src/api-model/base.d.ts +14 -2
- package/dist/types/src/api-model/configuration.d.ts +8 -0
- package/dist/types/src/api-model/models/carton.d.ts +4 -4
- package/dist/types/src/api-model/models/container-item.d.ts +2 -2
- package/dist/types/src/api-model/models/containers.d.ts +5 -5
- package/dist/types/src/api-model/models/expiry.d.ts +1 -1
- package/dist/types/src/api-model/models/get-shipment-details-response.d.ts +1 -1
- package/dist/types/src/api-model/models/import-details.d.ts +2 -2
- package/dist/types/src/api-model/models/inner-containers-details.d.ts +1 -1
- package/dist/types/src/api-model/models/item-details.d.ts +2 -2
- package/dist/types/src/api-model/models/item.d.ts +2 -2
- package/dist/types/src/api-model/models/package-item-details.d.ts +1 -1
- package/dist/types/src/api-model/models/packed-items.d.ts +2 -2
- package/dist/types/src/api-model/models/pallet.d.ts +5 -5
- package/dist/types/src/api-model/models/party-identification.d.ts +2 -2
- package/dist/types/src/api-model/models/purchase-order-items.d.ts +2 -2
- package/dist/types/src/api-model/models/purchase-orders.d.ts +1 -1
- package/dist/types/src/api-model/models/route.d.ts +1 -1
- package/dist/types/src/api-model/models/shipment-confirmation.d.ts +7 -7
- package/dist/types/src/api-model/models/shipment-details.d.ts +2 -2
- package/dist/types/src/api-model/models/shipment-measurements.d.ts +2 -2
- package/dist/types/src/api-model/models/shipment.d.ts +8 -8
- package/dist/types/src/api-model/models/stop.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-shipment-confirmations-request.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-shipment-confirmations-response.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-shipments.d.ts +1 -1
- package/dist/types/src/api-model/models/transport-shipment-measurements.d.ts +2 -2
- package/dist/types/src/api-model/models/transportation-details.d.ts +1 -1
- package/package.json +5 -5
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.VendorShippingApi = exports.VendorShippingApiFactory = exports.VendorShippingApiFp = exports.VendorShippingApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.GetShipmentDetailsSortOrderEnum = exports.VendorShippingApi = exports.VendorShippingApiFactory = exports.VendorShippingApiFp = exports.VendorShippingApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -32,7 +32,7 @@ const VendorShippingApiAxiosParamCreator = function (configuration) {
|
|
|
32
32
|
/**
|
|
33
33
|
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **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).
|
|
34
34
|
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
35
|
-
* @param {
|
|
35
|
+
* @param {GetShipmentDetailsSortOrderEnum} [sortOrder] Sort in ascending or descending order by purchase order creation date.
|
|
36
36
|
* @param {string} [nextToken] Used for pagination when there are more shipments than the specified result size limit.
|
|
37
37
|
* @param {string} [createdAfter] Get Shipment Details that became available after this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
38
38
|
* @param {string} [createdBefore] Get Shipment Details that became available before this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -252,7 +252,7 @@ const VendorShippingApiFp = function (configuration) {
|
|
|
252
252
|
/**
|
|
253
253
|
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **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).
|
|
254
254
|
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
255
|
-
* @param {
|
|
255
|
+
* @param {GetShipmentDetailsSortOrderEnum} [sortOrder] Sort in ascending or descending order by purchase order creation date.
|
|
256
256
|
* @param {string} [nextToken] Used for pagination when there are more shipments than the specified result size limit.
|
|
257
257
|
* @param {string} [createdAfter] Get Shipment Details that became available after this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
258
258
|
* @param {string} [createdBefore] Get Shipment Details that became available before this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -280,7 +280,9 @@ const VendorShippingApiFp = function (configuration) {
|
|
|
280
280
|
*/
|
|
281
281
|
async getShipmentDetails(limit, sortOrder, nextToken, createdAfter, createdBefore, shipmentConfirmedBefore, shipmentConfirmedAfter, packageLabelCreatedBefore, packageLabelCreatedAfter, shippedBefore, shippedAfter, estimatedDeliveryBefore, estimatedDeliveryAfter, shipmentDeliveryBefore, shipmentDeliveryAfter, requestedPickUpBefore, requestedPickUpAfter, scheduledPickUpBefore, scheduledPickUpAfter, currentShipmentStatus, vendorShipmentIdentifier, buyerReferenceNumber, buyerWarehouseCode, sellerWarehouseCode, options) {
|
|
282
282
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentDetails(limit, sortOrder, nextToken, createdAfter, createdBefore, shipmentConfirmedBefore, shipmentConfirmedAfter, packageLabelCreatedBefore, packageLabelCreatedAfter, shippedBefore, shippedAfter, estimatedDeliveryBefore, estimatedDeliveryAfter, shipmentDeliveryBefore, shipmentDeliveryAfter, requestedPickUpBefore, requestedPickUpAfter, scheduledPickUpBefore, scheduledPickUpAfter, currentShipmentStatus, vendorShipmentIdentifier, buyerReferenceNumber, buyerWarehouseCode, sellerWarehouseCode, options);
|
|
283
|
-
|
|
283
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
284
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VendorShippingApi.getShipmentDetails']?.[localVarOperationServerIndex]?.url;
|
|
285
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
284
286
|
},
|
|
285
287
|
/**
|
|
286
288
|
* Submits one or more shipment confirmations for vendor 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).
|
|
@@ -290,7 +292,9 @@ const VendorShippingApiFp = function (configuration) {
|
|
|
290
292
|
*/
|
|
291
293
|
async submitShipmentConfirmations(body, options) {
|
|
292
294
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipmentConfirmations(body, options);
|
|
293
|
-
|
|
295
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
296
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VendorShippingApi.submitShipmentConfirmations']?.[localVarOperationServerIndex]?.url;
|
|
297
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
294
298
|
},
|
|
295
299
|
/**
|
|
296
300
|
* Submits one or more shipment request for vendor 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).
|
|
@@ -300,7 +304,9 @@ const VendorShippingApiFp = function (configuration) {
|
|
|
300
304
|
*/
|
|
301
305
|
async submitShipments(body, options) {
|
|
302
306
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipments(body, options);
|
|
303
|
-
|
|
307
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
308
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VendorShippingApi.submitShipments']?.[localVarOperationServerIndex]?.url;
|
|
309
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
304
310
|
},
|
|
305
311
|
};
|
|
306
312
|
};
|
|
@@ -381,3 +387,10 @@ class VendorShippingApi extends base_1.BaseAPI {
|
|
|
381
387
|
}
|
|
382
388
|
}
|
|
383
389
|
exports.VendorShippingApi = VendorShippingApi;
|
|
390
|
+
/**
|
|
391
|
+
* @export
|
|
392
|
+
*/
|
|
393
|
+
exports.GetShipmentDetailsSortOrderEnum = {
|
|
394
|
+
Asc: 'ASC',
|
|
395
|
+
Desc: 'DESC'
|
|
396
|
+
};
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
19
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
22
22
|
/**
|
|
@@ -43,7 +43,7 @@ class BaseAPI {
|
|
|
43
43
|
this.axios = axios;
|
|
44
44
|
if (configuration) {
|
|
45
45
|
this.configuration = configuration;
|
|
46
|
-
this.basePath = configuration.basePath
|
|
46
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -64,3 +64,8 @@ class RequiredError extends Error {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.RequiredError = RequiredError;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
exports.operationServerMap = {};
|
|
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
|
|
|
138
138
|
*/
|
|
139
139
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
140
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
141
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
142
142
|
return axios.request(axiosRequestArgs);
|
|
143
143
|
};
|
|
144
144
|
};
|
|
@@ -49,6 +49,13 @@ class Configuration {
|
|
|
49
49
|
* @memberof Configuration
|
|
50
50
|
*/
|
|
51
51
|
basePath;
|
|
52
|
+
/**
|
|
53
|
+
* override server index
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof Configuration
|
|
57
|
+
*/
|
|
58
|
+
serverIndex;
|
|
52
59
|
/**
|
|
53
60
|
* base options for axios calls
|
|
54
61
|
*
|
|
@@ -70,6 +77,7 @@ class Configuration {
|
|
|
70
77
|
this.password = param.password;
|
|
71
78
|
this.accessToken = param.accessToken;
|
|
72
79
|
this.basePath = param.basePath;
|
|
80
|
+
this.serverIndex = param.serverIndex;
|
|
73
81
|
this.baseOptions = param.baseOptions;
|
|
74
82
|
this.formDataCtor = param.formDataCtor;
|
|
75
83
|
}
|
|
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
|
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, BaseAPI } from '../base';
|
|
19
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* VendorShippingApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -26,7 +26,7 @@ export const VendorShippingApiAxiosParamCreator = function (configuration) {
|
|
|
26
26
|
/**
|
|
27
27
|
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **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).
|
|
28
28
|
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
29
|
-
* @param {
|
|
29
|
+
* @param {GetShipmentDetailsSortOrderEnum} [sortOrder] Sort in ascending or descending order by purchase order creation date.
|
|
30
30
|
* @param {string} [nextToken] Used for pagination when there are more shipments than the specified result size limit.
|
|
31
31
|
* @param {string} [createdAfter] Get Shipment Details that became available after this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
32
32
|
* @param {string} [createdBefore] Get Shipment Details that became available before this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -245,7 +245,7 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
245
245
|
/**
|
|
246
246
|
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **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).
|
|
247
247
|
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
248
|
-
* @param {
|
|
248
|
+
* @param {GetShipmentDetailsSortOrderEnum} [sortOrder] Sort in ascending or descending order by purchase order creation date.
|
|
249
249
|
* @param {string} [nextToken] Used for pagination when there are more shipments than the specified result size limit.
|
|
250
250
|
* @param {string} [createdAfter] Get Shipment Details that became available after this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
251
251
|
* @param {string} [createdBefore] Get Shipment Details that became available before this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -273,7 +273,9 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
273
273
|
*/
|
|
274
274
|
async getShipmentDetails(limit, sortOrder, nextToken, createdAfter, createdBefore, shipmentConfirmedBefore, shipmentConfirmedAfter, packageLabelCreatedBefore, packageLabelCreatedAfter, shippedBefore, shippedAfter, estimatedDeliveryBefore, estimatedDeliveryAfter, shipmentDeliveryBefore, shipmentDeliveryAfter, requestedPickUpBefore, requestedPickUpAfter, scheduledPickUpBefore, scheduledPickUpAfter, currentShipmentStatus, vendorShipmentIdentifier, buyerReferenceNumber, buyerWarehouseCode, sellerWarehouseCode, options) {
|
|
275
275
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentDetails(limit, sortOrder, nextToken, createdAfter, createdBefore, shipmentConfirmedBefore, shipmentConfirmedAfter, packageLabelCreatedBefore, packageLabelCreatedAfter, shippedBefore, shippedAfter, estimatedDeliveryBefore, estimatedDeliveryAfter, shipmentDeliveryBefore, shipmentDeliveryAfter, requestedPickUpBefore, requestedPickUpAfter, scheduledPickUpBefore, scheduledPickUpAfter, currentShipmentStatus, vendorShipmentIdentifier, buyerReferenceNumber, buyerWarehouseCode, sellerWarehouseCode, options);
|
|
276
|
-
|
|
276
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
277
|
+
const localVarOperationServerBasePath = operationServerMap['VendorShippingApi.getShipmentDetails']?.[localVarOperationServerIndex]?.url;
|
|
278
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
277
279
|
},
|
|
278
280
|
/**
|
|
279
281
|
* Submits one or more shipment confirmations for vendor 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).
|
|
@@ -283,7 +285,9 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
283
285
|
*/
|
|
284
286
|
async submitShipmentConfirmations(body, options) {
|
|
285
287
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipmentConfirmations(body, options);
|
|
286
|
-
|
|
288
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
289
|
+
const localVarOperationServerBasePath = operationServerMap['VendorShippingApi.submitShipmentConfirmations']?.[localVarOperationServerIndex]?.url;
|
|
290
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
287
291
|
},
|
|
288
292
|
/**
|
|
289
293
|
* Submits one or more shipment request for vendor 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).
|
|
@@ -293,7 +297,9 @@ export const VendorShippingApiFp = function (configuration) {
|
|
|
293
297
|
*/
|
|
294
298
|
async submitShipments(body, options) {
|
|
295
299
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipments(body, options);
|
|
296
|
-
|
|
300
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
301
|
+
const localVarOperationServerBasePath = operationServerMap['VendorShippingApi.submitShipments']?.[localVarOperationServerIndex]?.url;
|
|
302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
297
303
|
},
|
|
298
304
|
};
|
|
299
305
|
};
|
|
@@ -371,3 +377,10 @@ export class VendorShippingApi extends BaseAPI {
|
|
|
371
377
|
return VendorShippingApiFp(this.configuration).submitShipments(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
372
378
|
}
|
|
373
379
|
}
|
|
380
|
+
/**
|
|
381
|
+
* @export
|
|
382
|
+
*/
|
|
383
|
+
export const GetShipmentDetailsSortOrderEnum = {
|
|
384
|
+
Asc: 'ASC',
|
|
385
|
+
Desc: 'DESC'
|
|
386
|
+
};
|
|
@@ -37,7 +37,7 @@ export class BaseAPI {
|
|
|
37
37
|
this.axios = axios;
|
|
38
38
|
if (configuration) {
|
|
39
39
|
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath
|
|
40
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
|
|
|
56
56
|
this.name = "RequiredError";
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export const operationServerMap = {};
|
|
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
|
|
|
127
127
|
*/
|
|
128
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
131
131
|
return axios.request(axiosRequestArgs);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -46,6 +46,13 @@ export class Configuration {
|
|
|
46
46
|
* @memberof Configuration
|
|
47
47
|
*/
|
|
48
48
|
basePath;
|
|
49
|
+
/**
|
|
50
|
+
* override server index
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
serverIndex;
|
|
49
56
|
/**
|
|
50
57
|
* base options for axios calls
|
|
51
58
|
*
|
|
@@ -67,6 +74,7 @@ export class Configuration {
|
|
|
67
74
|
this.password = param.password;
|
|
68
75
|
this.accessToken = param.accessToken;
|
|
69
76
|
this.basePath = param.basePath;
|
|
77
|
+
this.serverIndex = param.serverIndex;
|
|
70
78
|
this.baseOptions = param.baseOptions;
|
|
71
79
|
this.formDataCtor = param.formDataCtor;
|
|
72
80
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
|
-
import type { AxiosPromise, AxiosInstance,
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
16
|
-
import { GetShipmentDetailsResponse } from '../models';
|
|
17
|
-
import { SubmitShipmentConfirmationsRequest } from '../models';
|
|
18
|
-
import { SubmitShipmentConfirmationsResponse } from '../models';
|
|
19
|
-
import { SubmitShipments } from '../models';
|
|
15
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
|
+
import type { GetShipmentDetailsResponse } from '../models';
|
|
17
|
+
import type { SubmitShipmentConfirmationsRequest } from '../models';
|
|
18
|
+
import type { SubmitShipmentConfirmationsResponse } from '../models';
|
|
19
|
+
import type { SubmitShipments } from '../models';
|
|
20
20
|
/**
|
|
21
21
|
* VendorShippingApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -25,7 +25,7 @@ export declare const VendorShippingApiAxiosParamCreator: (configuration?: Config
|
|
|
25
25
|
/**
|
|
26
26
|
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **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).
|
|
27
27
|
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
28
|
-
* @param {
|
|
28
|
+
* @param {GetShipmentDetailsSortOrderEnum} [sortOrder] Sort in ascending or descending order by purchase order creation date.
|
|
29
29
|
* @param {string} [nextToken] Used for pagination when there are more shipments than the specified result size limit.
|
|
30
30
|
* @param {string} [createdAfter] Get Shipment Details that became available after this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
31
31
|
* @param {string} [createdBefore] Get Shipment Details that became available before this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -51,21 +51,21 @@ export declare const VendorShippingApiAxiosParamCreator: (configuration?: Config
|
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
52
52
|
* @throws {RequiredError}
|
|
53
53
|
*/
|
|
54
|
-
getShipmentDetails: (limit?: number, sortOrder?:
|
|
54
|
+
getShipmentDetails: (limit?: number, sortOrder?: GetShipmentDetailsSortOrderEnum, nextToken?: string, createdAfter?: string, createdBefore?: string, shipmentConfirmedBefore?: string, shipmentConfirmedAfter?: string, packageLabelCreatedBefore?: string, packageLabelCreatedAfter?: string, shippedBefore?: string, shippedAfter?: string, estimatedDeliveryBefore?: string, estimatedDeliveryAfter?: string, shipmentDeliveryBefore?: string, shipmentDeliveryAfter?: string, requestedPickUpBefore?: string, requestedPickUpAfter?: string, scheduledPickUpBefore?: string, scheduledPickUpAfter?: string, currentShipmentStatus?: string, vendorShipmentIdentifier?: string, buyerReferenceNumber?: string, buyerWarehouseCode?: string, sellerWarehouseCode?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
55
|
/**
|
|
56
56
|
* Submits one or more shipment confirmations for vendor 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).
|
|
57
57
|
* @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
|
|
58
58
|
* @param {*} [options] Override http request option.
|
|
59
59
|
* @throws {RequiredError}
|
|
60
60
|
*/
|
|
61
|
-
submitShipmentConfirmations: (body: SubmitShipmentConfirmationsRequest, options?:
|
|
61
|
+
submitShipmentConfirmations: (body: SubmitShipmentConfirmationsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
62
|
/**
|
|
63
63
|
* Submits one or more shipment request for vendor 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).
|
|
64
64
|
* @param {SubmitShipments} body A request to submit shipment request.
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
*/
|
|
68
|
-
submitShipments: (body: SubmitShipments, options?:
|
|
68
|
+
submitShipments: (body: SubmitShipments, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* VendorShippingApi - functional programming interface
|
|
@@ -75,7 +75,7 @@ export declare const VendorShippingApiFp: (configuration?: Configuration) => {
|
|
|
75
75
|
/**
|
|
76
76
|
* Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **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).
|
|
77
77
|
* @param {number} [limit] The limit to the number of records returned. Default value is 50 records.
|
|
78
|
-
* @param {
|
|
78
|
+
* @param {GetShipmentDetailsSortOrderEnum} [sortOrder] Sort in ascending or descending order by purchase order creation date.
|
|
79
79
|
* @param {string} [nextToken] Used for pagination when there are more shipments than the specified result size limit.
|
|
80
80
|
* @param {string} [createdAfter] Get Shipment Details that became available after this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
81
81
|
* @param {string} [createdBefore] Get Shipment Details that became available before this timestamp will be included in the result. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -101,21 +101,21 @@ export declare const VendorShippingApiFp: (configuration?: Configuration) => {
|
|
|
101
101
|
* @param {*} [options] Override http request option.
|
|
102
102
|
* @throws {RequiredError}
|
|
103
103
|
*/
|
|
104
|
-
getShipmentDetails(limit?: number, sortOrder?:
|
|
104
|
+
getShipmentDetails(limit?: number, sortOrder?: GetShipmentDetailsSortOrderEnum, nextToken?: string, createdAfter?: string, createdBefore?: string, shipmentConfirmedBefore?: string, shipmentConfirmedAfter?: string, packageLabelCreatedBefore?: string, packageLabelCreatedAfter?: string, shippedBefore?: string, shippedAfter?: string, estimatedDeliveryBefore?: string, estimatedDeliveryAfter?: string, shipmentDeliveryBefore?: string, shipmentDeliveryAfter?: string, requestedPickUpBefore?: string, requestedPickUpAfter?: string, scheduledPickUpBefore?: string, scheduledPickUpAfter?: string, currentShipmentStatus?: string, vendorShipmentIdentifier?: string, buyerReferenceNumber?: string, buyerWarehouseCode?: string, sellerWarehouseCode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentDetailsResponse>>;
|
|
105
105
|
/**
|
|
106
106
|
* Submits one or more shipment confirmations for vendor 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).
|
|
107
107
|
* @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
109
109
|
* @throws {RequiredError}
|
|
110
110
|
*/
|
|
111
|
-
submitShipmentConfirmations(body: SubmitShipmentConfirmationsRequest, options?:
|
|
111
|
+
submitShipmentConfirmations(body: SubmitShipmentConfirmationsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitShipmentConfirmationsResponse>>;
|
|
112
112
|
/**
|
|
113
113
|
* Submits one or more shipment request for vendor 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).
|
|
114
114
|
* @param {SubmitShipments} body A request to submit shipment request.
|
|
115
115
|
* @param {*} [options] Override http request option.
|
|
116
116
|
* @throws {RequiredError}
|
|
117
117
|
*/
|
|
118
|
-
submitShipments(body: SubmitShipments, options?:
|
|
118
|
+
submitShipments(body: SubmitShipments, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitShipmentConfirmationsResponse>>;
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
121
121
|
* VendorShippingApi - factory interface
|
|
@@ -128,21 +128,21 @@ export declare const VendorShippingApiFactory: (configuration?: Configuration, b
|
|
|
128
128
|
* @param {*} [options] Override http request option.
|
|
129
129
|
* @throws {RequiredError}
|
|
130
130
|
*/
|
|
131
|
-
getShipmentDetails(requestParameters?: VendorShippingApiGetShipmentDetailsRequest, options?:
|
|
131
|
+
getShipmentDetails(requestParameters?: VendorShippingApiGetShipmentDetailsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetShipmentDetailsResponse>;
|
|
132
132
|
/**
|
|
133
133
|
* Submits one or more shipment confirmations for vendor 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).
|
|
134
134
|
* @param {VendorShippingApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
135
135
|
* @param {*} [options] Override http request option.
|
|
136
136
|
* @throws {RequiredError}
|
|
137
137
|
*/
|
|
138
|
-
submitShipmentConfirmations(requestParameters: VendorShippingApiSubmitShipmentConfirmationsRequest, options?:
|
|
138
|
+
submitShipmentConfirmations(requestParameters: VendorShippingApiSubmitShipmentConfirmationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitShipmentConfirmationsResponse>;
|
|
139
139
|
/**
|
|
140
140
|
* Submits one or more shipment request for vendor 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).
|
|
141
141
|
* @param {VendorShippingApiSubmitShipmentsRequest} requestParameters Request parameters.
|
|
142
142
|
* @param {*} [options] Override http request option.
|
|
143
143
|
* @throws {RequiredError}
|
|
144
144
|
*/
|
|
145
|
-
submitShipments(requestParameters: VendorShippingApiSubmitShipmentsRequest, options?:
|
|
145
|
+
submitShipments(requestParameters: VendorShippingApiSubmitShipmentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitShipmentConfirmationsResponse>;
|
|
146
146
|
};
|
|
147
147
|
/**
|
|
148
148
|
* Request parameters for getShipmentDetails operation in VendorShippingApi.
|
|
@@ -161,7 +161,7 @@ export interface VendorShippingApiGetShipmentDetailsRequest {
|
|
|
161
161
|
* @type {'ASC' | 'DESC'}
|
|
162
162
|
* @memberof VendorShippingApiGetShipmentDetails
|
|
163
163
|
*/
|
|
164
|
-
readonly sortOrder?:
|
|
164
|
+
readonly sortOrder?: GetShipmentDetailsSortOrderEnum;
|
|
165
165
|
/**
|
|
166
166
|
* Used for pagination when there are more shipments than the specified result size limit.
|
|
167
167
|
* @type {string}
|
|
@@ -335,7 +335,7 @@ export declare class VendorShippingApi extends BaseAPI {
|
|
|
335
335
|
* @throws {RequiredError}
|
|
336
336
|
* @memberof VendorShippingApi
|
|
337
337
|
*/
|
|
338
|
-
getShipmentDetails(requestParameters?: VendorShippingApiGetShipmentDetailsRequest, options?:
|
|
338
|
+
getShipmentDetails(requestParameters?: VendorShippingApiGetShipmentDetailsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentDetailsResponse, any>>;
|
|
339
339
|
/**
|
|
340
340
|
* Submits one or more shipment confirmations for vendor 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).
|
|
341
341
|
* @param {VendorShippingApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
@@ -343,7 +343,7 @@ export declare class VendorShippingApi extends BaseAPI {
|
|
|
343
343
|
* @throws {RequiredError}
|
|
344
344
|
* @memberof VendorShippingApi
|
|
345
345
|
*/
|
|
346
|
-
submitShipmentConfirmations(requestParameters: VendorShippingApiSubmitShipmentConfirmationsRequest, options?:
|
|
346
|
+
submitShipmentConfirmations(requestParameters: VendorShippingApiSubmitShipmentConfirmationsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitShipmentConfirmationsResponse, any>>;
|
|
347
347
|
/**
|
|
348
348
|
* Submits one or more shipment request for vendor 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).
|
|
349
349
|
* @param {VendorShippingApiSubmitShipmentsRequest} requestParameters Request parameters.
|
|
@@ -351,5 +351,13 @@ export declare class VendorShippingApi extends BaseAPI {
|
|
|
351
351
|
* @throws {RequiredError}
|
|
352
352
|
* @memberof VendorShippingApi
|
|
353
353
|
*/
|
|
354
|
-
submitShipments(requestParameters: VendorShippingApiSubmitShipmentsRequest, options?:
|
|
354
|
+
submitShipments(requestParameters: VendorShippingApiSubmitShipmentsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitShipmentConfirmationsResponse, any>>;
|
|
355
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* @export
|
|
358
|
+
*/
|
|
359
|
+
export declare const GetShipmentDetailsSortOrderEnum: {
|
|
360
|
+
readonly Asc: "ASC";
|
|
361
|
+
readonly Desc: "DESC";
|
|
362
|
+
};
|
|
363
|
+
export type GetShipmentDetailsSortOrderEnum = typeof GetShipmentDetailsSortOrderEnum[keyof typeof GetShipmentDetailsSortOrderEnum];
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance,
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RequestArgs {
|
|
31
31
|
url: string;
|
|
32
|
-
options:
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
|
|
|
52
52
|
field: string;
|
|
53
53
|
constructor(field: string, msg?: string);
|
|
54
54
|
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
|
|
|
15
15
|
password?: string;
|
|
16
16
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
17
|
basePath?: string;
|
|
18
|
+
serverIndex?: number;
|
|
18
19
|
baseOptions?: any;
|
|
19
20
|
formDataCtor?: new () => any;
|
|
20
21
|
}
|
|
@@ -53,6 +54,13 @@ export declare class Configuration {
|
|
|
53
54
|
* @memberof Configuration
|
|
54
55
|
*/
|
|
55
56
|
basePath?: string;
|
|
57
|
+
/**
|
|
58
|
+
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
62
|
+
*/
|
|
63
|
+
serverIndex?: number;
|
|
56
64
|
/**
|
|
57
65
|
* base options for axios calls
|
|
58
66
|
*
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ContainerIdentification } from './container-identification';
|
|
13
|
-
import { ContainerItem } from './container-item';
|
|
14
|
-
import { Dimensions } from './dimensions';
|
|
15
|
-
import { Weight } from './weight';
|
|
12
|
+
import type { ContainerIdentification } from './container-identification';
|
|
13
|
+
import type { ContainerItem } from './container-item';
|
|
14
|
+
import type { Dimensions } from './dimensions';
|
|
15
|
+
import type { Weight } from './weight';
|
|
16
16
|
/**
|
|
17
17
|
* Details of the carton/package being shipped.
|
|
18
18
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ItemDetails } from './item-details';
|
|
13
|
-
import { ItemQuantity } from './item-quantity';
|
|
12
|
+
import type { ItemDetails } from './item-details';
|
|
13
|
+
import type { ItemQuantity } from './item-quantity';
|
|
14
14
|
/**
|
|
15
15
|
* Carton/Pallet level details for the item.
|
|
16
16
|
* @export
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ContainerIdentification } from './container-identification';
|
|
13
|
-
import { Dimensions } from './dimensions';
|
|
14
|
-
import { InnerContainersDetails } from './inner-containers-details';
|
|
15
|
-
import { PackedItems } from './packed-items';
|
|
16
|
-
import { Weight } from './weight';
|
|
12
|
+
import type { ContainerIdentification } from './container-identification';
|
|
13
|
+
import type { Dimensions } from './dimensions';
|
|
14
|
+
import type { InnerContainersDetails } from './inner-containers-details';
|
|
15
|
+
import type { PackedItems } from './packed-items';
|
|
16
|
+
import type { Weight } from './weight';
|
|
17
17
|
/**
|
|
18
18
|
* A list of the items in this transportation and their associated inner container details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level.
|
|
19
19
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Duration } from './duration';
|
|
12
|
+
import type { Duration } from './duration';
|
|
13
13
|
/**
|
|
14
14
|
* Expiry refers to the collection of dates required for certain items. These could be either expiryDate or mfgDate and expiryAfterDuration. These are mandatory for perishable items.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ShipmentDetails } from './shipment-details';
|
|
12
|
+
import type { ShipmentDetails } from './shipment-details';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the GetShipmentDetails operation.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Route } from './route';
|
|
13
|
-
import { Weight } from './weight';
|
|
12
|
+
import type { Route } from './route';
|
|
13
|
+
import type { Weight } from './weight';
|
|
14
14
|
/**
|
|
15
15
|
* Provide these fields only if this shipment is a direct import.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ContainerSequenceNumbers } from './container-sequence-numbers';
|
|
12
|
+
import type { ContainerSequenceNumbers } from './container-sequence-numbers';
|
|
13
13
|
/**
|
|
14
14
|
* Details of the innerContainersDetails.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Expiry } from './expiry';
|
|
13
|
-
import { Money } from './money';
|
|
12
|
+
import type { Expiry } from './expiry';
|
|
13
|
+
import type { Money } from './money';
|
|
14
14
|
/**
|
|
15
15
|
* Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate.
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ItemDetails } from './item-details';
|
|
13
|
-
import { ItemQuantity } from './item-quantity';
|
|
12
|
+
import type { ItemDetails } from './item-details';
|
|
13
|
+
import type { ItemQuantity } from './item-quantity';
|
|
14
14
|
/**
|
|
15
15
|
* Details of the item being shipped.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Expiry } from './expiry';
|
|
12
|
+
import type { Expiry } from './expiry';
|
|
13
13
|
/**
|
|
14
14
|
* Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ItemQuantity } from './item-quantity';
|
|
13
|
-
import { PackageItemDetails } from './package-item-details';
|
|
12
|
+
import type { ItemQuantity } from './item-quantity';
|
|
13
|
+
import type { PackageItemDetails } from './package-item-details';
|
|
14
14
|
/**
|
|
15
15
|
* Details of the item being shipped.
|
|
16
16
|
* @export
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CartonReferenceDetails } from './carton-reference-details';
|
|
13
|
-
import { ContainerIdentification } from './container-identification';
|
|
14
|
-
import { ContainerItem } from './container-item';
|
|
15
|
-
import { Dimensions } from './dimensions';
|
|
16
|
-
import { Weight } from './weight';
|
|
12
|
+
import type { CartonReferenceDetails } from './carton-reference-details';
|
|
13
|
+
import type { ContainerIdentification } from './container-identification';
|
|
14
|
+
import type { ContainerItem } from './container-item';
|
|
15
|
+
import type { Dimensions } from './dimensions';
|
|
16
|
+
import type { Weight } from './weight';
|
|
17
17
|
/**
|
|
18
18
|
* Details of the Pallet/Tare being shipped.
|
|
19
19
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Address } from './address';
|
|
13
|
-
import { TaxRegistrationDetails } from './tax-registration-details';
|
|
12
|
+
import type { Address } from './address';
|
|
13
|
+
import type { TaxRegistrationDetails } from './tax-registration-details';
|
|
14
14
|
/**
|
|
15
15
|
* Name/Address and tax details of the party.
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ItemQuantity } from './item-quantity';
|
|
13
|
-
import { Money } from './money';
|
|
12
|
+
import type { ItemQuantity } from './item-quantity';
|
|
13
|
+
import type { Money } from './money';
|
|
14
14
|
/**
|
|
15
15
|
* Details of the item being shipped.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { PurchaseOrderItems } from './purchase-order-items';
|
|
12
|
+
import type { PurchaseOrderItems } from './purchase-order-items';
|
|
13
13
|
/**
|
|
14
14
|
* Transport Request pickup date
|
|
15
15
|
* @export
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Carton } from './carton';
|
|
13
|
-
import { ImportDetails } from './import-details';
|
|
14
|
-
import { Item } from './item';
|
|
15
|
-
import { Pallet } from './pallet';
|
|
16
|
-
import { PartyIdentification } from './party-identification';
|
|
17
|
-
import { ShipmentMeasurements } from './shipment-measurements';
|
|
18
|
-
import { TransportationDetailsForShipmentConfirmation } from './transportation-details-for-shipment-confirmation';
|
|
12
|
+
import type { Carton } from './carton';
|
|
13
|
+
import type { ImportDetails } from './import-details';
|
|
14
|
+
import type { Item } from './item';
|
|
15
|
+
import type { Pallet } from './pallet';
|
|
16
|
+
import type { PartyIdentification } from './party-identification';
|
|
17
|
+
import type { ShipmentMeasurements } from './shipment-measurements';
|
|
18
|
+
import type { TransportationDetailsForShipmentConfirmation } from './transportation-details-for-shipment-confirmation';
|
|
19
19
|
/**
|
|
20
20
|
* A list of one or more shipment confirmations.
|
|
21
21
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Pagination } from './pagination';
|
|
13
|
-
import { Shipment } from './shipment';
|
|
12
|
+
import type { Pagination } from './pagination';
|
|
13
|
+
import type { Shipment } from './shipment';
|
|
14
14
|
/**
|
|
15
15
|
* The request schema for the GetShipmentDetails operation.
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Volume } from './volume';
|
|
13
|
-
import { Weight } from './weight';
|
|
12
|
+
import type { Volume } from './volume';
|
|
13
|
+
import type { Weight } from './weight';
|
|
14
14
|
/**
|
|
15
15
|
* Shipment measurement details.
|
|
16
16
|
* @export
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CollectFreightPickupDetails } from './collect-freight-pickup-details';
|
|
13
|
-
import { Containers } from './containers';
|
|
14
|
-
import { ImportDetails } from './import-details';
|
|
15
|
-
import { PartyIdentification } from './party-identification';
|
|
16
|
-
import { PurchaseOrders } from './purchase-orders';
|
|
17
|
-
import { ShipmentStatusDetails } from './shipment-status-details';
|
|
18
|
-
import { TransportShipmentMeasurements } from './transport-shipment-measurements';
|
|
19
|
-
import { TransportationDetails } from './transportation-details';
|
|
12
|
+
import type { CollectFreightPickupDetails } from './collect-freight-pickup-details';
|
|
13
|
+
import type { Containers } from './containers';
|
|
14
|
+
import type { ImportDetails } from './import-details';
|
|
15
|
+
import type { PartyIdentification } from './party-identification';
|
|
16
|
+
import type { PurchaseOrders } from './purchase-orders';
|
|
17
|
+
import type { ShipmentStatusDetails } from './shipment-status-details';
|
|
18
|
+
import type { TransportShipmentMeasurements } from './transport-shipment-measurements';
|
|
19
|
+
import type { TransportationDetails } from './transportation-details';
|
|
20
20
|
/**
|
|
21
21
|
* A list of one or more shipments with respective details.
|
|
22
22
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Location } from './location';
|
|
12
|
+
import type { Location } from './location';
|
|
13
13
|
/**
|
|
14
14
|
* Contractual or operational port or point relevant to the movement of the cargo.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ShipmentConfirmation } from './shipment-confirmation';
|
|
12
|
+
import type { ShipmentConfirmation } from './shipment-confirmation';
|
|
13
13
|
/**
|
|
14
14
|
* The request schema for the SubmitShipmentConfirmations operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { TransactionReference } from './transaction-reference';
|
|
12
|
+
import type { TransactionReference } from './transaction-reference';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the SubmitShipmentConfirmations operation.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Volume } from './volume';
|
|
13
|
-
import { Weight } from './weight';
|
|
12
|
+
import type { Volume } from './volume';
|
|
13
|
+
import type { Weight } from './weight';
|
|
14
14
|
/**
|
|
15
15
|
* Shipment measurement details.
|
|
16
16
|
* @export
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sp-api-sdk/vendor-shipments-api-v1",
|
|
3
|
-
"author": "
|
|
3
|
+
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.2.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.0.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.0.8",
|
|
22
|
+
"axios": "^1.7.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"vendor shipments api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
|
|
44
44
|
}
|