@sp-api-sdk/vendor-direct-fulfillment-shipping-api-v1 1.7.5 → 1.7.9
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/README.md +38 -15
- package/dist/cjs/src/client.js +12 -9
- package/dist/es/src/client.js +12 -9
- package/dist/types/src/api-model/api/customer-invoices-api.d.ts +2 -2
- package/dist/types/src/api-model/api/vendor-shipping-api.d.ts +4 -4
- package/dist/types/src/api-model/api/vendor-shipping-labels-api.d.ts +3 -3
- package/dist/types/src/api-model/common.d.ts +1 -1
- package/dist/types/src/client.d.ts +4 -4
- package/package.json +5 -5
- package/dist/cjs/src/api-model/models/package.js +0 -15
- package/dist/es/src/api-model/models/package.js +0 -14
- package/dist/types/src/api-model/models/package.d.ts +0 -62
package/README.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/@sp-api-sdk/vendor-direct-fulfillment-shipping-api-v1)
|
|
6
|
+
[](https://github.com/xojs/xo)
|
|
7
|
+
|
|
8
|
+
## Documentation
|
|
9
|
+
|
|
10
|
+
Learn more about this Selling Partner API by visiting the [official documentation](https://github.com/amzn/selling-partner-api-docs/tree/main/references/vendor-direct-fulfillment-shipping-api/vendorDirectFulfillmentShippingV1.md).
|
|
11
|
+
|
|
12
|
+
Also, see the [generated documentation](https://bizon.github.io/selling-partner-api-sdk/modules/_sp_api_sdk_vendor_direct_fulfillment_shipping_api_v1.html) for this API client.
|
|
13
|
+
|
|
5
14
|
## Installing
|
|
6
15
|
|
|
7
16
|
```sh
|
|
@@ -19,26 +28,25 @@ import {SellingPartnerApiAuth} from '@sp-api-sdk/auth'
|
|
|
19
28
|
import {VendorDirectFulfillmentShippingApiClient} from '@sp-api-sdk/vendor-direct-fulfillment-shipping-api-v1'
|
|
20
29
|
|
|
21
30
|
const auth = new SellingPartnerApiAuth({
|
|
22
|
-
clientId:
|
|
23
|
-
clientSecret:
|
|
24
|
-
refreshToken: '',
|
|
25
|
-
secretAccessKey: '',
|
|
31
|
+
clientId: process.env.LWA_CLIENT_ID,
|
|
32
|
+
clientSecret: process.env.LWA_CLIENT_SECRET,
|
|
33
|
+
refreshToken: 'Atzr|…',
|
|
26
34
|
accessKeyId: '',
|
|
27
|
-
|
|
35
|
+
secretAccessKey: '',
|
|
28
36
|
role: {
|
|
29
|
-
arn: '',
|
|
30
|
-
}
|
|
37
|
+
arn: 'arn:aws:iam::…',
|
|
38
|
+
},
|
|
31
39
|
})
|
|
32
40
|
|
|
33
41
|
const client = new VendorDirectFulfillmentShippingApiClient({
|
|
34
42
|
auth,
|
|
35
|
-
region: 'eu'
|
|
43
|
+
region: 'eu',
|
|
36
44
|
})
|
|
37
45
|
```
|
|
38
46
|
|
|
39
|
-
##
|
|
47
|
+
## Rate Limiting
|
|
40
48
|
|
|
41
|
-
|
|
49
|
+
In order to retry rate limited requests (HTTP 429), you can configure the API client as such:
|
|
42
50
|
|
|
43
51
|
```javascript
|
|
44
52
|
const client = new VendorDirectFulfillmentShippingApiClient({
|
|
@@ -46,13 +54,28 @@ const client = new VendorDirectFulfillmentShippingApiClient({
|
|
|
46
54
|
region: 'eu',
|
|
47
55
|
rateLimiting: {
|
|
48
56
|
retry: true,
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
// Optionally specify a callback that will be called on every retry.
|
|
58
|
+
onRetry: (retryInfo) => {
|
|
59
|
+
console.log(retryInfo)
|
|
60
|
+
},
|
|
61
|
+
},
|
|
51
62
|
})
|
|
52
63
|
```
|
|
53
64
|
|
|
54
|
-
The
|
|
65
|
+
The rate limits used for each route are specified in the [API documentation]((https://github.com/amzn/selling-partner-api-docs/tree/main/references/vendor-direct-fulfillment-shipping-api/vendorDirectFulfillmentShippingV1.md)).
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
MIT
|
|
55
70
|
|
|
56
|
-
##
|
|
71
|
+
## Miscellaneous
|
|
57
72
|
|
|
58
|
-
|
|
73
|
+
```
|
|
74
|
+
╚⊙ ⊙╝
|
|
75
|
+
╚═(███)═╝
|
|
76
|
+
╚═(███)═╝
|
|
77
|
+
╚═(███)═╝
|
|
78
|
+
╚═(███)═╝
|
|
79
|
+
╚═(███)═╝
|
|
80
|
+
╚═(███)═╝
|
|
81
|
+
```
|
package/dist/cjs/src/client.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VendorDirectFulfillmentShippingApiClient = exports.
|
|
3
|
+
exports.VendorDirectFulfillmentShippingApiClient = exports.clientRateLimits = void 0;
|
|
4
4
|
/* eslint-disable prefer-regex-literals */
|
|
5
5
|
const common_1 = require("@sp-api-sdk/common");
|
|
6
6
|
const api_model_1 = require("./api-model");
|
|
7
7
|
const error_1 = require("./error");
|
|
8
|
-
exports.
|
|
8
|
+
exports.clientRateLimits = [
|
|
9
9
|
{
|
|
10
10
|
method: 'get',
|
|
11
11
|
urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/shippingLabels$'),
|
|
@@ -63,20 +63,23 @@ exports.RATE_LIMITS = [
|
|
|
63
63
|
];
|
|
64
64
|
class VendorDirectFulfillmentShippingApiClient extends api_model_1.VendorShippingLabelsApi {
|
|
65
65
|
constructor(parameters) {
|
|
66
|
-
const
|
|
66
|
+
const config = common_1.sellingPartnerRegions[parameters.region];
|
|
67
|
+
if (!config) {
|
|
68
|
+
throw new error_1.VendorDirectFulfillmentShippingApiError(`Unknown region: ${parameters.region}`);
|
|
69
|
+
}
|
|
67
70
|
const { rateLimiting, ...clientParameters } = parameters;
|
|
68
|
-
const axiosParameters = {
|
|
71
|
+
const axiosParameters = {
|
|
72
|
+
...clientParameters,
|
|
73
|
+
region: config.awsRegion,
|
|
74
|
+
};
|
|
69
75
|
if (rateLimiting?.retry) {
|
|
70
|
-
axiosParameters.rateLimits = exports.
|
|
76
|
+
axiosParameters.rateLimits = exports.clientRateLimits;
|
|
71
77
|
axiosParameters.onRetry = rateLimiting.onRetry;
|
|
72
78
|
}
|
|
73
79
|
const axiosInstance = (0, common_1.createAxiosInstance)(axiosParameters);
|
|
74
80
|
const configuration = new api_model_1.Configuration();
|
|
75
81
|
const environment = parameters.sandbox ? 'sandbox' : 'production';
|
|
76
|
-
const endpoint =
|
|
77
|
-
if (!endpoint) {
|
|
78
|
-
throw new error_1.VendorDirectFulfillmentShippingApiError(`Unknown region : ${region}`);
|
|
79
|
-
}
|
|
82
|
+
const endpoint = config.endpoints[environment];
|
|
80
83
|
super(configuration, endpoint, axiosInstance);
|
|
81
84
|
}
|
|
82
85
|
}
|
package/dist/es/src/client.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable prefer-regex-literals */
|
|
2
|
-
import {
|
|
2
|
+
import { sellingPartnerRegions, createAxiosInstance } from '@sp-api-sdk/common';
|
|
3
3
|
import { Configuration, VendorShippingLabelsApi } from './api-model';
|
|
4
4
|
import { VendorDirectFulfillmentShippingApiError } from './error';
|
|
5
|
-
export const
|
|
5
|
+
export const clientRateLimits = [
|
|
6
6
|
{
|
|
7
7
|
method: 'get',
|
|
8
8
|
urlRegex: new RegExp('^/vendor/directFulfillment/shipping/v1/shippingLabels$'),
|
|
@@ -60,20 +60,23 @@ export const RATE_LIMITS = [
|
|
|
60
60
|
];
|
|
61
61
|
export class VendorDirectFulfillmentShippingApiClient extends VendorShippingLabelsApi {
|
|
62
62
|
constructor(parameters) {
|
|
63
|
-
const
|
|
63
|
+
const config = sellingPartnerRegions[parameters.region];
|
|
64
|
+
if (!config) {
|
|
65
|
+
throw new VendorDirectFulfillmentShippingApiError(`Unknown region: ${parameters.region}`);
|
|
66
|
+
}
|
|
64
67
|
const { rateLimiting, ...clientParameters } = parameters;
|
|
65
|
-
const axiosParameters = {
|
|
68
|
+
const axiosParameters = {
|
|
69
|
+
...clientParameters,
|
|
70
|
+
region: config.awsRegion,
|
|
71
|
+
};
|
|
66
72
|
if (rateLimiting?.retry) {
|
|
67
|
-
axiosParameters.rateLimits =
|
|
73
|
+
axiosParameters.rateLimits = clientRateLimits;
|
|
68
74
|
axiosParameters.onRetry = rateLimiting.onRetry;
|
|
69
75
|
}
|
|
70
76
|
const axiosInstance = createAxiosInstance(axiosParameters);
|
|
71
77
|
const configuration = new Configuration();
|
|
72
78
|
const environment = parameters.sandbox ? 'sandbox' : 'production';
|
|
73
|
-
const endpoint = endpoints[environment]
|
|
74
|
-
if (!endpoint) {
|
|
75
|
-
throw new VendorDirectFulfillmentShippingApiError(`Unknown region : ${region}`);
|
|
76
|
-
}
|
|
79
|
+
const endpoint = config.endpoints[environment];
|
|
77
80
|
super(configuration, endpoint, axiosInstance);
|
|
78
81
|
}
|
|
79
82
|
}
|
|
@@ -159,7 +159,7 @@ export declare class CustomerInvoicesApi extends BaseAPI {
|
|
|
159
159
|
* @throws {RequiredError}
|
|
160
160
|
* @memberof CustomerInvoicesApi
|
|
161
161
|
*/
|
|
162
|
-
getCustomerInvoice(requestParameters: CustomerInvoicesApiGetCustomerInvoiceRequest, options?: any): Promise<import("axios").AxiosResponse<GetCustomerInvoiceResponse>>;
|
|
162
|
+
getCustomerInvoice(requestParameters: CustomerInvoicesApiGetCustomerInvoiceRequest, options?: any): Promise<import("axios").AxiosResponse<GetCustomerInvoiceResponse, any>>;
|
|
163
163
|
/**
|
|
164
164
|
* Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
165
165
|
* @param {CustomerInvoicesApiGetCustomerInvoicesRequest} requestParameters Request parameters.
|
|
@@ -167,5 +167,5 @@ export declare class CustomerInvoicesApi extends BaseAPI {
|
|
|
167
167
|
* @throws {RequiredError}
|
|
168
168
|
* @memberof CustomerInvoicesApi
|
|
169
169
|
*/
|
|
170
|
-
getCustomerInvoices(requestParameters: CustomerInvoicesApiGetCustomerInvoicesRequest, options?: any): Promise<import("axios").AxiosResponse<GetCustomerInvoicesResponse>>;
|
|
170
|
+
getCustomerInvoices(requestParameters: CustomerInvoicesApiGetCustomerInvoicesRequest, options?: any): Promise<import("axios").AxiosResponse<GetCustomerInvoicesResponse, any>>;
|
|
171
171
|
}
|
|
@@ -231,7 +231,7 @@ export declare class VendorShippingApi extends BaseAPI {
|
|
|
231
231
|
* @throws {RequiredError}
|
|
232
232
|
* @memberof VendorShippingApi
|
|
233
233
|
*/
|
|
234
|
-
getPackingSlip(requestParameters: VendorShippingApiGetPackingSlipRequest, options?: any): Promise<import("axios").AxiosResponse<GetPackingSlipResponse>>;
|
|
234
|
+
getPackingSlip(requestParameters: VendorShippingApiGetPackingSlipRequest, options?: any): Promise<import("axios").AxiosResponse<GetPackingSlipResponse, any>>;
|
|
235
235
|
/**
|
|
236
236
|
* Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
237
237
|
* @param {VendorShippingApiGetPackingSlipsRequest} requestParameters Request parameters.
|
|
@@ -239,7 +239,7 @@ export declare class VendorShippingApi extends BaseAPI {
|
|
|
239
239
|
* @throws {RequiredError}
|
|
240
240
|
* @memberof VendorShippingApi
|
|
241
241
|
*/
|
|
242
|
-
getPackingSlips(requestParameters: VendorShippingApiGetPackingSlipsRequest, options?: any): Promise<import("axios").AxiosResponse<GetPackingSlipListResponse>>;
|
|
242
|
+
getPackingSlips(requestParameters: VendorShippingApiGetPackingSlipsRequest, options?: any): Promise<import("axios").AxiosResponse<GetPackingSlipListResponse, any>>;
|
|
243
243
|
/**
|
|
244
244
|
* Submits one or more shipment confirmations for vendor orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
245
245
|
* @param {VendorShippingApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
|
|
@@ -247,7 +247,7 @@ export declare class VendorShippingApi extends BaseAPI {
|
|
|
247
247
|
* @throws {RequiredError}
|
|
248
248
|
* @memberof VendorShippingApi
|
|
249
249
|
*/
|
|
250
|
-
submitShipmentConfirmations(requestParameters: VendorShippingApiSubmitShipmentConfirmationsRequest, options?: any): Promise<import("axios").AxiosResponse<SubmitShipmentConfirmationsResponse>>;
|
|
250
|
+
submitShipmentConfirmations(requestParameters: VendorShippingApiSubmitShipmentConfirmationsRequest, options?: any): Promise<import("axios").AxiosResponse<SubmitShipmentConfirmationsResponse, any>>;
|
|
251
251
|
/**
|
|
252
252
|
* This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
253
253
|
* @param {VendorShippingApiSubmitShipmentStatusUpdatesRequest} requestParameters Request parameters.
|
|
@@ -255,5 +255,5 @@ export declare class VendorShippingApi extends BaseAPI {
|
|
|
255
255
|
* @throws {RequiredError}
|
|
256
256
|
* @memberof VendorShippingApi
|
|
257
257
|
*/
|
|
258
|
-
submitShipmentStatusUpdates(requestParameters: VendorShippingApiSubmitShipmentStatusUpdatesRequest, options?: any): Promise<import("axios").AxiosResponse<SubmitShipmentStatusUpdatesResponse>>;
|
|
258
|
+
submitShipmentStatusUpdates(requestParameters: VendorShippingApiSubmitShipmentStatusUpdatesRequest, options?: any): Promise<import("axios").AxiosResponse<SubmitShipmentStatusUpdatesResponse, any>>;
|
|
259
259
|
}
|
|
@@ -195,7 +195,7 @@ export declare class VendorShippingLabelsApi extends BaseAPI {
|
|
|
195
195
|
* @throws {RequiredError}
|
|
196
196
|
* @memberof VendorShippingLabelsApi
|
|
197
197
|
*/
|
|
198
|
-
getShippingLabel(requestParameters: VendorShippingLabelsApiGetShippingLabelRequest, options?: any): Promise<import("axios").AxiosResponse<GetShippingLabelResponse>>;
|
|
198
|
+
getShippingLabel(requestParameters: VendorShippingLabelsApiGetShippingLabelRequest, options?: any): Promise<import("axios").AxiosResponse<GetShippingLabelResponse, any>>;
|
|
199
199
|
/**
|
|
200
200
|
* Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
201
201
|
* @param {VendorShippingLabelsApiGetShippingLabelsRequest} requestParameters Request parameters.
|
|
@@ -203,7 +203,7 @@ export declare class VendorShippingLabelsApi extends BaseAPI {
|
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
* @memberof VendorShippingLabelsApi
|
|
205
205
|
*/
|
|
206
|
-
getShippingLabels(requestParameters: VendorShippingLabelsApiGetShippingLabelsRequest, options?: any): Promise<import("axios").AxiosResponse<GetShippingLabelListResponse>>;
|
|
206
|
+
getShippingLabels(requestParameters: VendorShippingLabelsApiGetShippingLabelsRequest, options?: any): Promise<import("axios").AxiosResponse<GetShippingLabelListResponse, any>>;
|
|
207
207
|
/**
|
|
208
208
|
* Creates a shipping label for a purchase order and returns a transactionId for reference. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
209
209
|
* @param {VendorShippingLabelsApiSubmitShippingLabelRequestRequest} requestParameters Request parameters.
|
|
@@ -211,5 +211,5 @@ export declare class VendorShippingLabelsApi extends BaseAPI {
|
|
|
211
211
|
* @throws {RequiredError}
|
|
212
212
|
* @memberof VendorShippingLabelsApi
|
|
213
213
|
*/
|
|
214
|
-
submitShippingLabelRequest(requestParameters: VendorShippingLabelsApiSubmitShippingLabelRequestRequest, options?: any): Promise<import("axios").AxiosResponse<SubmitShippingLabelsResponse>>;
|
|
214
|
+
submitShippingLabelRequest(requestParameters: VendorShippingLabelsApiSubmitShippingLabelRequestRequest, options?: any): Promise<import("axios").AxiosResponse<SubmitShippingLabelsResponse, any>>;
|
|
215
215
|
}
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
|
|
1
|
+
import type { ClientConfiguration, SellingPartnerRegion, RateLimit, OnRetryHandler } from '@sp-api-sdk/common';
|
|
3
2
|
import { VendorShippingLabelsApi } from './api-model';
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const clientRateLimits: RateLimit[];
|
|
5
4
|
export interface ClientParameters extends Omit<ClientConfiguration, 'rateLimits' | 'onRetry'> {
|
|
5
|
+
region: SellingPartnerRegion;
|
|
6
6
|
rateLimiting?: {
|
|
7
7
|
retry: boolean;
|
|
8
|
-
onRetry?:
|
|
8
|
+
onRetry?: OnRetryHandler;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export declare class VendorDirectFulfillmentShippingApiClient extends VendorShippingLabelsApi {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/vendor-direct-fulfillment-shipping-api-v1",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.",
|
|
5
|
-
"version": "1.7.
|
|
5
|
+
"version": "1.7.9",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"test": "NODE_ENV='test' yarn jest"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@sp-api-sdk/auth": "^1.9.
|
|
29
|
-
"@sp-api-sdk/common": "^1.7.
|
|
30
|
-
"axios": "^0.
|
|
28
|
+
"@sp-api-sdk/auth": "^1.9.7",
|
|
29
|
+
"@sp-api-sdk/common": "^1.7.9",
|
|
30
|
+
"axios": "^0.24.0"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sp sdk",
|
|
49
49
|
"vendor direct fulfillment shipping api"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "dd52e8a895f590c62d06f19f4d8715eb7740df66"
|
|
52
52
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Selling Partner API for Direct Fulfillment Shipping
|
|
6
|
-
* The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
|
|
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,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Shipping
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
|
|
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,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Direct Fulfillment Shipping
|
|
3
|
-
* The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor\'s shipping data.
|
|
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 { Dimensions } from './dimensions';
|
|
13
|
-
import { Weight } from './weight';
|
|
14
|
-
/**
|
|
15
|
-
* Details of the package being shipped.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface Package
|
|
18
|
-
*/
|
|
19
|
-
export interface Package {
|
|
20
|
-
/**
|
|
21
|
-
* Package identifier for the package. The first package will be 001, the second 002, and so on. This number is used as a reference to refer to this package from the pallet level.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof Package
|
|
24
|
-
*/
|
|
25
|
-
packageIdentifier: string;
|
|
26
|
-
/**
|
|
27
|
-
* This is required to be provided for every package in the small parcel shipments.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof Package
|
|
30
|
-
*/
|
|
31
|
-
trackingNumber?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Carrier manifest Id (Applicable for LTL shipments).
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Package
|
|
36
|
-
*/
|
|
37
|
-
manifestId?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Carrier manifest Date (Applicable for LTL shipments).
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof Package
|
|
42
|
-
*/
|
|
43
|
-
manifestDate?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Shipment method.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof Package
|
|
48
|
-
*/
|
|
49
|
-
shipMethod?: string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {Weight}
|
|
53
|
-
* @memberof Package
|
|
54
|
-
*/
|
|
55
|
-
weight: Weight;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Dimensions}
|
|
59
|
-
* @memberof Package
|
|
60
|
-
*/
|
|
61
|
-
dimensions?: Dimensions;
|
|
62
|
-
}
|