@sp-api-sdk/vendor-shipments-api-v1 5.1.0 → 5.2.1
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/api-model/api/vendor-shipments-api.js +9 -4
- package/dist/cjs/api-model/configuration.js +12 -1
- package/dist/cjs/api-model/models/index.js +0 -2
- package/dist/cjs/client.js +0 -7
- package/dist/es/api-model/api/vendor-shipments-api.js +9 -4
- package/dist/es/api-model/configuration.js +12 -1
- package/dist/es/api-model/models/index.js +0 -2
- package/dist/es/client.js +0 -7
- package/dist/types/api-model/api/vendor-shipments-api.d.ts +4 -4
- package/dist/types/api-model/configuration.d.ts +24 -0
- package/dist/types/api-model/models/index.d.ts +0 -2
- package/package.json +3 -3
- package/dist/cjs/api-model/models/packed-quantity.js +0 -20
- package/dist/cjs/api-model/models/purchase-order-item-details.js +0 -15
- package/dist/es/api-model/models/packed-quantity.js +0 -17
- package/dist/es/api-model/models/purchase-order-item-details.js +0 -14
- package/dist/types/api-model/models/packed-quantity.d.ts +0 -33
- package/dist/types/api-model/models/purchase-order-item-details.d.ts +0 -18
|
@@ -173,6 +173,7 @@ const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
173
173
|
if (sellerWarehouseCode !== undefined) {
|
|
174
174
|
localVarQueryParameter['sellerWarehouseCode'] = sellerWarehouseCode;
|
|
175
175
|
}
|
|
176
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
176
177
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
177
178
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
179
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -233,6 +234,7 @@ const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
233
234
|
if (sellerWarehouseCode !== undefined) {
|
|
234
235
|
localVarQueryParameter['sellerWarehouseCode'] = sellerWarehouseCode;
|
|
235
236
|
}
|
|
237
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
236
238
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
237
239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
238
240
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -262,6 +264,7 @@ const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
262
264
|
const localVarHeaderParameter = {};
|
|
263
265
|
const localVarQueryParameter = {};
|
|
264
266
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
267
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
265
268
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
266
269
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
267
270
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -272,7 +275,7 @@ const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
272
275
|
};
|
|
273
276
|
},
|
|
274
277
|
/**
|
|
275
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
278
|
+
* 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).
|
|
276
279
|
* @summary SubmitShipmentConfirmations
|
|
277
280
|
* @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
|
|
278
281
|
* @param {*} [options] Override http request option.
|
|
@@ -292,6 +295,7 @@ const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
292
295
|
const localVarHeaderParameter = {};
|
|
293
296
|
const localVarQueryParameter = {};
|
|
294
297
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
298
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
295
299
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
296
300
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
297
301
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -322,6 +326,7 @@ const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
322
326
|
const localVarHeaderParameter = {};
|
|
323
327
|
const localVarQueryParameter = {};
|
|
324
328
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
329
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
325
330
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
326
331
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
327
332
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -409,7 +414,7 @@ const VendorShipmentsApiFp = function (configuration) {
|
|
|
409
414
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
410
415
|
},
|
|
411
416
|
/**
|
|
412
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
417
|
+
* 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).
|
|
413
418
|
* @summary SubmitShipmentConfirmations
|
|
414
419
|
* @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
|
|
415
420
|
* @param {*} [options] Override http request option.
|
|
@@ -473,7 +478,7 @@ const VendorShipmentsApiFactory = function (configuration, basePath, axios) {
|
|
|
473
478
|
return localVarFp.submitShipmentConfirmation(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
474
479
|
},
|
|
475
480
|
/**
|
|
476
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
481
|
+
* 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).
|
|
477
482
|
* @summary SubmitShipmentConfirmations
|
|
478
483
|
* @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
479
484
|
* @param {*} [options] Override http request option.
|
|
@@ -529,7 +534,7 @@ class VendorShipmentsApi extends base_1.BaseAPI {
|
|
|
529
534
|
return (0, exports.VendorShipmentsApiFp)(this.configuration).submitShipmentConfirmation(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
530
535
|
}
|
|
531
536
|
/**
|
|
532
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
537
|
+
* 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).
|
|
533
538
|
* @summary SubmitShipmentConfirmations
|
|
534
539
|
* @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
535
540
|
* @param {*} [options] Override http request option.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
3
|
/**
|
|
5
4
|
* Selling Partner API for Retail Procurement Shipments
|
|
6
5
|
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
@@ -34,6 +33,17 @@ class Configuration {
|
|
|
34
33
|
* @param scopes oauth2 scope
|
|
35
34
|
*/
|
|
36
35
|
accessToken;
|
|
36
|
+
/**
|
|
37
|
+
* parameter for aws4 signature security
|
|
38
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
39
|
+
* @param {string} options.region - aws region
|
|
40
|
+
* @param {string} options.service - name of the service.
|
|
41
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
42
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
43
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
44
|
+
* @memberof Configuration
|
|
45
|
+
*/
|
|
46
|
+
awsv4;
|
|
37
47
|
/**
|
|
38
48
|
* override base path
|
|
39
49
|
*/
|
|
@@ -59,6 +69,7 @@ class Configuration {
|
|
|
59
69
|
this.username = param.username;
|
|
60
70
|
this.password = param.password;
|
|
61
71
|
this.accessToken = param.accessToken;
|
|
72
|
+
this.awsv4 = param.awsv4;
|
|
62
73
|
this.basePath = param.basePath;
|
|
63
74
|
this.serverIndex = param.serverIndex;
|
|
64
75
|
this.baseOptions = {
|
|
@@ -39,11 +39,9 @@ __exportStar(require("./model-error"), exports);
|
|
|
39
39
|
__exportStar(require("./money"), exports);
|
|
40
40
|
__exportStar(require("./package-item-details"), exports);
|
|
41
41
|
__exportStar(require("./packed-items"), exports);
|
|
42
|
-
__exportStar(require("./packed-quantity"), exports);
|
|
43
42
|
__exportStar(require("./pagination"), exports);
|
|
44
43
|
__exportStar(require("./pallet"), exports);
|
|
45
44
|
__exportStar(require("./party-identification"), exports);
|
|
46
|
-
__exportStar(require("./purchase-order-item-details"), exports);
|
|
47
45
|
__exportStar(require("./purchase-order-items"), exports);
|
|
48
46
|
__exportStar(require("./purchase-orders"), exports);
|
|
49
47
|
__exportStar(require("./regulation-references"), exports);
|
package/dist/cjs/client.js
CHANGED
|
@@ -4,13 +4,6 @@ exports.VendorShipmentsApiClient = exports.clientRateLimits = void 0;
|
|
|
4
4
|
const common_1 = require("@sp-api-sdk/common");
|
|
5
5
|
const api_model_1 = require("./api-model");
|
|
6
6
|
exports.clientRateLimits = [
|
|
7
|
-
{
|
|
8
|
-
method: 'post',
|
|
9
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
10
|
-
urlRegex: new RegExp('^/vendor/shipping/v1/shipmentConfirmations$'),
|
|
11
|
-
rate: 10,
|
|
12
|
-
burst: 10,
|
|
13
|
-
},
|
|
14
7
|
{
|
|
15
8
|
method: 'post',
|
|
16
9
|
// eslint-disable-next-line prefer-regex-literals
|
|
@@ -167,6 +167,7 @@ export const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
167
167
|
if (sellerWarehouseCode !== undefined) {
|
|
168
168
|
localVarQueryParameter['sellerWarehouseCode'] = sellerWarehouseCode;
|
|
169
169
|
}
|
|
170
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
170
171
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
171
172
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
173
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -227,6 +228,7 @@ export const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
227
228
|
if (sellerWarehouseCode !== undefined) {
|
|
228
229
|
localVarQueryParameter['sellerWarehouseCode'] = sellerWarehouseCode;
|
|
229
230
|
}
|
|
231
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
230
232
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
231
233
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
234
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -256,6 +258,7 @@ export const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
256
258
|
const localVarHeaderParameter = {};
|
|
257
259
|
const localVarQueryParameter = {};
|
|
258
260
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
261
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
259
262
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
260
263
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
261
264
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -266,7 +269,7 @@ export const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
266
269
|
};
|
|
267
270
|
},
|
|
268
271
|
/**
|
|
269
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
272
|
+
* 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).
|
|
270
273
|
* @summary SubmitShipmentConfirmations
|
|
271
274
|
* @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
|
|
272
275
|
* @param {*} [options] Override http request option.
|
|
@@ -286,6 +289,7 @@ export const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
286
289
|
const localVarHeaderParameter = {};
|
|
287
290
|
const localVarQueryParameter = {};
|
|
288
291
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
292
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
289
293
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
290
294
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
291
295
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -316,6 +320,7 @@ export const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
316
320
|
const localVarHeaderParameter = {};
|
|
317
321
|
const localVarQueryParameter = {};
|
|
318
322
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
323
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
319
324
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
320
325
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
321
326
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -402,7 +407,7 @@ export const VendorShipmentsApiFp = function (configuration) {
|
|
|
402
407
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
403
408
|
},
|
|
404
409
|
/**
|
|
405
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
410
|
+
* 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).
|
|
406
411
|
* @summary SubmitShipmentConfirmations
|
|
407
412
|
* @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
|
|
408
413
|
* @param {*} [options] Override http request option.
|
|
@@ -465,7 +470,7 @@ export const VendorShipmentsApiFactory = function (configuration, basePath, axio
|
|
|
465
470
|
return localVarFp.submitShipmentConfirmation(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
466
471
|
},
|
|
467
472
|
/**
|
|
468
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
473
|
+
* 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).
|
|
469
474
|
* @summary SubmitShipmentConfirmations
|
|
470
475
|
* @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
471
476
|
* @param {*} [options] Override http request option.
|
|
@@ -520,7 +525,7 @@ export class VendorShipmentsApi extends BaseAPI {
|
|
|
520
525
|
return VendorShipmentsApiFp(this.configuration).submitShipmentConfirmation(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
521
526
|
}
|
|
522
527
|
/**
|
|
523
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
528
|
+
* 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).
|
|
524
529
|
* @summary SubmitShipmentConfirmations
|
|
525
530
|
* @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
526
531
|
* @param {*} [options] Override http request option.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Selling Partner API for Retail Procurement Shipments
|
|
5
4
|
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
@@ -31,6 +30,17 @@ export class Configuration {
|
|
|
31
30
|
* @param scopes oauth2 scope
|
|
32
31
|
*/
|
|
33
32
|
accessToken;
|
|
33
|
+
/**
|
|
34
|
+
* parameter for aws4 signature security
|
|
35
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
36
|
+
* @param {string} options.region - aws region
|
|
37
|
+
* @param {string} options.service - name of the service.
|
|
38
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
39
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
40
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
41
|
+
* @memberof Configuration
|
|
42
|
+
*/
|
|
43
|
+
awsv4;
|
|
34
44
|
/**
|
|
35
45
|
* override base path
|
|
36
46
|
*/
|
|
@@ -56,6 +66,7 @@ export class Configuration {
|
|
|
56
66
|
this.username = param.username;
|
|
57
67
|
this.password = param.password;
|
|
58
68
|
this.accessToken = param.accessToken;
|
|
69
|
+
this.awsv4 = param.awsv4;
|
|
59
70
|
this.basePath = param.basePath;
|
|
60
71
|
this.serverIndex = param.serverIndex;
|
|
61
72
|
this.baseOptions = {
|
|
@@ -23,11 +23,9 @@ export * from './model-error';
|
|
|
23
23
|
export * from './money';
|
|
24
24
|
export * from './package-item-details';
|
|
25
25
|
export * from './packed-items';
|
|
26
|
-
export * from './packed-quantity';
|
|
27
26
|
export * from './pagination';
|
|
28
27
|
export * from './pallet';
|
|
29
28
|
export * from './party-identification';
|
|
30
|
-
export * from './purchase-order-item-details';
|
|
31
29
|
export * from './purchase-order-items';
|
|
32
30
|
export * from './purchase-orders';
|
|
33
31
|
export * from './regulation-references';
|
package/dist/es/client.js
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { createAxiosInstance } from '@sp-api-sdk/common';
|
|
2
2
|
import { Configuration, VendorShipmentsApi } from './api-model';
|
|
3
3
|
export const clientRateLimits = [
|
|
4
|
-
{
|
|
5
|
-
method: 'post',
|
|
6
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
7
|
-
urlRegex: new RegExp('^/vendor/shipping/v1/shipmentConfirmations$'),
|
|
8
|
-
rate: 10,
|
|
9
|
-
burst: 10,
|
|
10
|
-
},
|
|
11
4
|
{
|
|
12
5
|
method: 'post',
|
|
13
6
|
// eslint-disable-next-line prefer-regex-literals
|
|
@@ -78,7 +78,7 @@ export declare const VendorShipmentsApiAxiosParamCreator: (configuration?: Confi
|
|
|
78
78
|
*/
|
|
79
79
|
submitShipmentConfirmation: (body: SubmitShipmentConfirmationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
80
|
/**
|
|
81
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
81
|
+
* 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).
|
|
82
82
|
* @summary SubmitShipmentConfirmations
|
|
83
83
|
* @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
|
|
84
84
|
* @param {*} [options] Override http request option.
|
|
@@ -152,7 +152,7 @@ export declare const VendorShipmentsApiFp: (configuration?: Configuration) => {
|
|
|
152
152
|
*/
|
|
153
153
|
submitShipmentConfirmation(body: SubmitShipmentConfirmationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitShipmentConfirmationResponse>>;
|
|
154
154
|
/**
|
|
155
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
155
|
+
* 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).
|
|
156
156
|
* @summary SubmitShipmentConfirmations
|
|
157
157
|
* @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
|
|
158
158
|
* @param {*} [options] Override http request option.
|
|
@@ -196,7 +196,7 @@ export declare const VendorShipmentsApiFactory: (configuration?: Configuration,
|
|
|
196
196
|
*/
|
|
197
197
|
submitShipmentConfirmation(requestParameters: VendorShipmentsApiSubmitShipmentConfirmationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitShipmentConfirmationResponse>;
|
|
198
198
|
/**
|
|
199
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
199
|
+
* 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).
|
|
200
200
|
* @summary SubmitShipmentConfirmations
|
|
201
201
|
* @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
@@ -405,7 +405,7 @@ export declare class VendorShipmentsApi extends BaseAPI {
|
|
|
405
405
|
*/
|
|
406
406
|
submitShipmentConfirmation(requestParameters: VendorShipmentsApiSubmitShipmentConfirmationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitShipmentConfirmationResponse, any, {}>>;
|
|
407
407
|
/**
|
|
408
|
-
* Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | |
|
|
408
|
+
* 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).
|
|
409
409
|
* @summary SubmitShipmentConfirmations
|
|
410
410
|
* @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
411
411
|
* @param {*} [options] Override http request option.
|
|
@@ -9,11 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -39,6 +51,17 @@ export declare class Configuration {
|
|
|
39
51
|
* @param scopes oauth2 scope
|
|
40
52
|
*/
|
|
41
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
62
|
+
* @memberof Configuration
|
|
63
|
+
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
42
65
|
/**
|
|
43
66
|
* override base path
|
|
44
67
|
*/
|
|
@@ -72,3 +95,4 @@ export declare class Configuration {
|
|
|
72
95
|
*/
|
|
73
96
|
isJsonMime(mime: string): boolean;
|
|
74
97
|
}
|
|
98
|
+
export {};
|
|
@@ -23,11 +23,9 @@ export * from './model-error';
|
|
|
23
23
|
export * from './money';
|
|
24
24
|
export * from './package-item-details';
|
|
25
25
|
export * from './packed-items';
|
|
26
|
-
export * from './packed-quantity';
|
|
27
26
|
export * from './pagination';
|
|
28
27
|
export * from './pallet';
|
|
29
28
|
export * from './party-identification';
|
|
30
|
-
export * from './purchase-order-item-details';
|
|
31
29
|
export * from './purchase-order-items';
|
|
32
30
|
export * from './purchase-orders';
|
|
33
31
|
export * from './regulation-references';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/vendor-shipments-api-v1",
|
|
3
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": "5.1
|
|
5
|
+
"version": "5.2.1",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.24",
|
|
22
22
|
"axios": "^1.13.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"vendor shipments api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b3fe13460a11917282a12b5bdbcfaf565b9b773e"
|
|
44
44
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Selling Partner API for Retail Procurement Shipments
|
|
6
|
-
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PackedQuantityUnitOfMeasureEnum = void 0;
|
|
17
|
-
exports.PackedQuantityUnitOfMeasureEnum = {
|
|
18
|
-
Cases: 'Cases',
|
|
19
|
-
Eaches: 'Eaches'
|
|
20
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Selling Partner API for Retail Procurement Shipments
|
|
6
|
-
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Retail Procurement Shipments
|
|
5
|
-
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export const PackedQuantityUnitOfMeasureEnum = {
|
|
15
|
-
Cases: 'Cases',
|
|
16
|
-
Eaches: 'Eaches'
|
|
17
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Retail Procurement Shipments
|
|
5
|
-
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Retail Procurement Shipments
|
|
3
|
-
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Details of item quantity.
|
|
14
|
-
*/
|
|
15
|
-
export interface PackedQuantity {
|
|
16
|
-
/**
|
|
17
|
-
* Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level.
|
|
18
|
-
*/
|
|
19
|
-
'amount': number;
|
|
20
|
-
/**
|
|
21
|
-
* Unit of measure for the shipped quantity.
|
|
22
|
-
*/
|
|
23
|
-
'unitOfMeasure': PackedQuantityUnitOfMeasureEnum;
|
|
24
|
-
/**
|
|
25
|
-
* The case size, in the event that we ordered using cases. Otherwise, 1.
|
|
26
|
-
*/
|
|
27
|
-
'unitSize'?: number;
|
|
28
|
-
}
|
|
29
|
-
export declare const PackedQuantityUnitOfMeasureEnum: {
|
|
30
|
-
readonly Cases: "Cases";
|
|
31
|
-
readonly Eaches: "Eaches";
|
|
32
|
-
};
|
|
33
|
-
export type PackedQuantityUnitOfMeasureEnum = typeof PackedQuantityUnitOfMeasureEnum[keyof typeof PackedQuantityUnitOfMeasureEnum];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Retail Procurement Shipments
|
|
3
|
-
* The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Money } from './money';
|
|
13
|
-
/**
|
|
14
|
-
* Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate.
|
|
15
|
-
*/
|
|
16
|
-
export interface PurchaseOrderItemDetails {
|
|
17
|
-
'maximumRetailPrice'?: Money;
|
|
18
|
-
}
|