@sp-api-sdk/easy-ship-api-2022-03-23 4.3.12 → 5.0.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/README.md +4 -4
- package/dist/index.cjs +642 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{types/api-model/api/easy-ship-api.d.ts → index.d.cts} +819 -26
- package/dist/index.d.ts +1027 -0
- package/dist/index.js +594 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/easy-ship-api.js +0 -361
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/code.js +0 -32
- package/dist/cjs/api-model/models/create-scheduled-package-request.js +0 -15
- package/dist/cjs/api-model/models/create-scheduled-packages-request.js +0 -15
- package/dist/cjs/api-model/models/create-scheduled-packages-response.js +0 -15
- package/dist/cjs/api-model/models/dimensions.js +0 -15
- package/dist/cjs/api-model/models/error-list.js +0 -15
- package/dist/cjs/api-model/models/handover-method.js +0 -23
- package/dist/cjs/api-model/models/index.js +0 -43
- package/dist/cjs/api-model/models/invoice-data.js +0 -15
- package/dist/cjs/api-model/models/item.js +0 -15
- package/dist/cjs/api-model/models/label-format.js +0 -23
- package/dist/cjs/api-model/models/list-handover-slots-request.js +0 -15
- package/dist/cjs/api-model/models/list-handover-slots-response.js +0 -15
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/order-schedule-details.js +0 -15
- package/dist/cjs/api-model/models/package-details.js +0 -15
- package/dist/cjs/api-model/models/package-status.js +0 -33
- package/dist/cjs/api-model/models/package.js +0 -15
- package/dist/cjs/api-model/models/packages.js +0 -15
- package/dist/cjs/api-model/models/rejected-order.js +0 -15
- package/dist/cjs/api-model/models/scheduled-package-id.js +0 -15
- package/dist/cjs/api-model/models/time-slot.js +0 -15
- package/dist/cjs/api-model/models/tracking-details.js +0 -15
- package/dist/cjs/api-model/models/unit-of-length.js +0 -22
- package/dist/cjs/api-model/models/unit-of-weight.js +0 -23
- package/dist/cjs/api-model/models/update-package-details.js +0 -15
- package/dist/cjs/api-model/models/update-scheduled-packages-request.js +0 -15
- package/dist/cjs/api-model/models/weight.js +0 -15
- package/dist/cjs/client.js +0 -49
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/easy-ship-api.js +0 -351
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/code.js +0 -29
- package/dist/es/api-model/models/create-scheduled-package-request.js +0 -14
- package/dist/es/api-model/models/create-scheduled-packages-request.js +0 -14
- package/dist/es/api-model/models/create-scheduled-packages-response.js +0 -14
- package/dist/es/api-model/models/dimensions.js +0 -14
- package/dist/es/api-model/models/error-list.js +0 -14
- package/dist/es/api-model/models/handover-method.js +0 -20
- package/dist/es/api-model/models/index.js +0 -27
- package/dist/es/api-model/models/invoice-data.js +0 -14
- package/dist/es/api-model/models/item.js +0 -14
- package/dist/es/api-model/models/label-format.js +0 -20
- package/dist/es/api-model/models/list-handover-slots-request.js +0 -14
- package/dist/es/api-model/models/list-handover-slots-response.js +0 -14
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/order-schedule-details.js +0 -14
- package/dist/es/api-model/models/package-details.js +0 -14
- package/dist/es/api-model/models/package-status.js +0 -30
- package/dist/es/api-model/models/package.js +0 -14
- package/dist/es/api-model/models/packages.js +0 -14
- package/dist/es/api-model/models/rejected-order.js +0 -14
- package/dist/es/api-model/models/scheduled-package-id.js +0 -14
- package/dist/es/api-model/models/time-slot.js +0 -14
- package/dist/es/api-model/models/tracking-details.js +0 -14
- package/dist/es/api-model/models/unit-of-length.js +0 -19
- package/dist/es/api-model/models/unit-of-weight.js +0 -20
- package/dist/es/api-model/models/update-package-details.js +0 -14
- package/dist/es/api-model/models/update-scheduled-packages-request.js +0 -14
- package/dist/es/api-model/models/weight.js +0 -14
- package/dist/es/client.js +0 -45
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/code.d.ts +0 -28
- package/dist/types/api-model/models/create-scheduled-package-request.d.ts +0 -26
- package/dist/types/api-model/models/create-scheduled-packages-request.d.ts +0 -27
- package/dist/types/api-model/models/create-scheduled-packages-response.d.ts +0 -30
- package/dist/types/api-model/models/dimensions.d.ts +0 -34
- package/dist/types/api-model/models/error-list.d.ts +0 -20
- package/dist/types/api-model/models/handover-method.d.ts +0 -19
- package/dist/types/api-model/models/index.d.ts +0 -27
- package/dist/types/api-model/models/invoice-data.d.ts +0 -24
- package/dist/types/api-model/models/item.d.ts +0 -24
- package/dist/types/api-model/models/label-format.d.ts +0 -19
- package/dist/types/api-model/models/list-handover-slots-request.d.ts +0 -28
- package/dist/types/api-model/models/list-handover-slots-response.d.ts +0 -25
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/order-schedule-details.d.ts +0 -22
- package/dist/types/api-model/models/package-details.d.ts +0 -27
- package/dist/types/api-model/models/package-status.d.ts +0 -29
- package/dist/types/api-model/models/package.d.ts +0 -39
- package/dist/types/api-model/models/packages.d.ts +0 -21
- package/dist/types/api-model/models/rejected-order.d.ts +0 -21
- package/dist/types/api-model/models/scheduled-package-id.d.ts +0 -24
- package/dist/types/api-model/models/time-slot.d.ts +0 -30
- package/dist/types/api-model/models/tracking-details.d.ts +0 -20
- package/dist/types/api-model/models/unit-of-length.d.ts +0 -18
- package/dist/types/api-model/models/unit-of-weight.d.ts +0 -19
- package/dist/types/api-model/models/update-package-details.d.ts +0 -20
- package/dist/types/api-model/models/update-scheduled-packages-request.d.ts +0 -25
- package/dist/types/api-model/models/weight.d.ts +0 -22
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Easy Ship
|
|
5
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
/**
|
|
15
|
-
* The unit of measurement used to measure the length.
|
|
16
|
-
*/
|
|
17
|
-
export const UnitOfLength = {
|
|
18
|
-
Cm: 'cm',
|
|
19
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Easy Ship
|
|
5
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
/**
|
|
15
|
-
* The unit of measurement used to measure the weight.
|
|
16
|
-
*/
|
|
17
|
-
export const UnitOfWeight = {
|
|
18
|
-
Grams: 'grams',
|
|
19
|
-
G: 'g',
|
|
20
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Easy Ship
|
|
5
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Easy Ship
|
|
5
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Easy Ship
|
|
5
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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 {};
|
package/dist/es/client.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { createAxiosInstance } from '@sp-api-sdk/common';
|
|
2
|
-
import { Configuration, EasyShipApi } from './api-model';
|
|
3
|
-
export const clientRateLimits = [
|
|
4
|
-
{
|
|
5
|
-
method: 'post',
|
|
6
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
7
|
-
urlRegex: new RegExp('^/easyShip/2022-03-23/timeSlot$'),
|
|
8
|
-
rate: 1,
|
|
9
|
-
burst: 5,
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
method: 'get',
|
|
13
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
14
|
-
urlRegex: new RegExp('^/easyShip/2022-03-23/package$'),
|
|
15
|
-
rate: 1,
|
|
16
|
-
burst: 5,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
method: 'post',
|
|
20
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
21
|
-
urlRegex: new RegExp('^/easyShip/2022-03-23/package$'),
|
|
22
|
-
rate: 1,
|
|
23
|
-
burst: 5,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
method: 'patch',
|
|
27
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
28
|
-
urlRegex: new RegExp('^/easyShip/2022-03-23/package$'),
|
|
29
|
-
rate: 1,
|
|
30
|
-
burst: 5,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
method: 'post',
|
|
34
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
35
|
-
urlRegex: new RegExp('^/easyShip/2022-03-23/packages/bulk$'),
|
|
36
|
-
rate: 1,
|
|
37
|
-
burst: 5,
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
export class EasyShipApiClient extends EasyShipApi {
|
|
41
|
-
constructor(configuration) {
|
|
42
|
-
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
43
|
-
super(new Configuration(), endpoint, axios);
|
|
44
|
-
}
|
|
45
|
-
}
|
package/dist/es/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
export * from './api/easy-ship-api';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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 { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
-
export declare const BASE_PATH: string;
|
|
15
|
-
export declare const COLLECTION_FORMATS: {
|
|
16
|
-
csv: string;
|
|
17
|
-
ssv: string;
|
|
18
|
-
tsv: string;
|
|
19
|
-
pipes: string;
|
|
20
|
-
};
|
|
21
|
-
export interface RequestArgs {
|
|
22
|
-
url: string;
|
|
23
|
-
options: RawAxiosRequestConfig;
|
|
24
|
-
}
|
|
25
|
-
export declare class BaseAPI {
|
|
26
|
-
protected basePath: string;
|
|
27
|
-
protected axios: AxiosInstance;
|
|
28
|
-
protected configuration: Configuration | undefined;
|
|
29
|
-
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
30
|
-
}
|
|
31
|
-
export declare class RequiredError extends Error {
|
|
32
|
-
field: string;
|
|
33
|
-
constructor(field: string, msg?: string);
|
|
34
|
-
}
|
|
35
|
-
interface ServerMap {
|
|
36
|
-
[key: string]: {
|
|
37
|
-
url: string;
|
|
38
|
-
description: string;
|
|
39
|
-
}[];
|
|
40
|
-
}
|
|
41
|
-
export declare const operationServerMap: ServerMap;
|
|
42
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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 { Configuration } from "./configuration";
|
|
13
|
-
import type { RequestArgs } from "./base";
|
|
14
|
-
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @throws {RequiredError}
|
|
19
|
-
*/
|
|
20
|
-
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
21
|
-
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
22
|
-
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
23
|
-
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
24
|
-
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
25
|
-
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
26
|
-
/**
|
|
27
|
-
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
28
|
-
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
|
-
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
30
|
-
*/
|
|
31
|
-
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
32
|
-
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
33
|
-
export declare const toPathString: (url: URL) => string;
|
|
34
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
interface AWSv4Configuration {
|
|
13
|
-
options?: {
|
|
14
|
-
region?: string;
|
|
15
|
-
service?: string;
|
|
16
|
-
};
|
|
17
|
-
credentials?: {
|
|
18
|
-
accessKeyId?: string;
|
|
19
|
-
secretAccessKey?: string;
|
|
20
|
-
sessionToken?: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export interface ConfigurationParameters {
|
|
24
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
25
|
-
username?: string;
|
|
26
|
-
password?: string;
|
|
27
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
-
awsv4?: AWSv4Configuration;
|
|
29
|
-
basePath?: string;
|
|
30
|
-
serverIndex?: number;
|
|
31
|
-
baseOptions?: any;
|
|
32
|
-
formDataCtor?: new () => any;
|
|
33
|
-
}
|
|
34
|
-
export declare class Configuration {
|
|
35
|
-
/**
|
|
36
|
-
* parameter for apiKey security
|
|
37
|
-
* @param name security name
|
|
38
|
-
*/
|
|
39
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
40
|
-
/**
|
|
41
|
-
* parameter for basic security
|
|
42
|
-
*/
|
|
43
|
-
username?: string;
|
|
44
|
-
/**
|
|
45
|
-
* parameter for basic security
|
|
46
|
-
*/
|
|
47
|
-
password?: string;
|
|
48
|
-
/**
|
|
49
|
-
* parameter for oauth2 security
|
|
50
|
-
* @param name security name
|
|
51
|
-
* @param scopes oauth2 scope
|
|
52
|
-
*/
|
|
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;
|
|
65
|
-
/**
|
|
66
|
-
* override base path
|
|
67
|
-
*/
|
|
68
|
-
basePath?: string;
|
|
69
|
-
/**
|
|
70
|
-
* override server index
|
|
71
|
-
*/
|
|
72
|
-
serverIndex?: number;
|
|
73
|
-
/**
|
|
74
|
-
* base options for axios calls
|
|
75
|
-
*/
|
|
76
|
-
baseOptions?: any;
|
|
77
|
-
/**
|
|
78
|
-
* The FormData constructor that will be used to create multipart form data
|
|
79
|
-
* requests. You can inject this here so that execution environments that
|
|
80
|
-
* do not support the FormData class can still run the generated client.
|
|
81
|
-
*
|
|
82
|
-
* @type {new () => FormData}
|
|
83
|
-
*/
|
|
84
|
-
formDataCtor?: new () => any;
|
|
85
|
-
constructor(param?: ConfigurationParameters);
|
|
86
|
-
/**
|
|
87
|
-
* Check if the given MIME is a JSON MIME.
|
|
88
|
-
* JSON MIME examples:
|
|
89
|
-
* application/json
|
|
90
|
-
* application/json; charset=UTF8
|
|
91
|
-
* APPLICATION/JSON
|
|
92
|
-
* application/vnd.company+json
|
|
93
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
94
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
95
|
-
*/
|
|
96
|
-
isJsonMime(mime: string): boolean;
|
|
97
|
-
}
|
|
98
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
export * from "./api";
|
|
13
|
-
export * from "./configuration";
|
|
14
|
-
export * from "./models";
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
* An error code that identifies the type of error that occurred. The error codes listed below are specific to the Easy Ship section.
|
|
14
|
-
*/
|
|
15
|
-
export declare const Code: {
|
|
16
|
-
readonly InvalidInput: "InvalidInput";
|
|
17
|
-
readonly InvalidTimeSlotId: "InvalidTimeSlotId";
|
|
18
|
-
readonly ScheduledPackageAlreadyExists: "ScheduledPackageAlreadyExists";
|
|
19
|
-
readonly ScheduleWindowExpired: "ScheduleWindowExpired";
|
|
20
|
-
readonly RetryableAfterGettingNewSlots: "RetryableAfterGettingNewSlots";
|
|
21
|
-
readonly TimeSlotNotAvailable: "TimeSlotNotAvailable";
|
|
22
|
-
readonly ResourceNotFound: "ResourceNotFound";
|
|
23
|
-
readonly InvalidOrderState: "InvalidOrderState";
|
|
24
|
-
readonly RegionNotSupported: "RegionNotSupported";
|
|
25
|
-
readonly OrderNotEligibleForRescheduling: "OrderNotEligibleForRescheduling";
|
|
26
|
-
readonly InternalServerError: "InternalServerError";
|
|
27
|
-
};
|
|
28
|
-
export type Code = typeof Code[keyof typeof Code];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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 { PackageDetails } from './package-details';
|
|
13
|
-
/**
|
|
14
|
-
* The request schema for the `createScheduledPackage` operation.
|
|
15
|
-
*/
|
|
16
|
-
export interface CreateScheduledPackageRequest {
|
|
17
|
-
/**
|
|
18
|
-
* An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
|
|
19
|
-
*/
|
|
20
|
-
'amazonOrderId': string;
|
|
21
|
-
/**
|
|
22
|
-
* A string of up to 255 characters.
|
|
23
|
-
*/
|
|
24
|
-
'marketplaceId': string;
|
|
25
|
-
'packageDetails': PackageDetails;
|
|
26
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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 { LabelFormat } from './label-format';
|
|
13
|
-
import type { OrderScheduleDetails } from './order-schedule-details';
|
|
14
|
-
/**
|
|
15
|
-
* The request body for the POST /easyShip/2022-03-23/packages/bulk API.
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateScheduledPackagesRequest {
|
|
18
|
-
/**
|
|
19
|
-
* A string of up to 255 characters.
|
|
20
|
-
*/
|
|
21
|
-
'marketplaceId': string;
|
|
22
|
-
/**
|
|
23
|
-
* An array allowing users to specify orders to be scheduled.
|
|
24
|
-
*/
|
|
25
|
-
'orderScheduleDetailsList': Array<OrderScheduleDetails>;
|
|
26
|
-
'labelFormat': LabelFormat;
|
|
27
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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 { Package } from './package';
|
|
13
|
-
import type { RejectedOrder } from './rejected-order';
|
|
14
|
-
/**
|
|
15
|
-
* The response schema for the bulk scheduling API. It returns by the bulk scheduling API containing an array of the scheduled packtages, an optional list of orders we couldn\'t schedule with the reason, and a pre-signed URL for a ZIP file containing the associated shipping labels plus the documents enabled for your marketplace.
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateScheduledPackagesResponse {
|
|
18
|
-
/**
|
|
19
|
-
* A list of packages. Refer to the `Package` object.
|
|
20
|
-
*/
|
|
21
|
-
'scheduledPackages'?: Array<Package>;
|
|
22
|
-
/**
|
|
23
|
-
* A list of orders we couldn\'t scheduled on your behalf. Each element contains the reason and details on the error.
|
|
24
|
-
*/
|
|
25
|
-
'rejectedOrders'?: Array<RejectedOrder>;
|
|
26
|
-
/**
|
|
27
|
-
* A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace.
|
|
28
|
-
*/
|
|
29
|
-
'printableDocumentsUrl'?: string;
|
|
30
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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 { UnitOfLength } from './unit-of-length';
|
|
13
|
-
/**
|
|
14
|
-
* The dimensions of the scheduled package.
|
|
15
|
-
*/
|
|
16
|
-
export interface Dimensions {
|
|
17
|
-
/**
|
|
18
|
-
* The numerical value of the specified dimension.
|
|
19
|
-
*/
|
|
20
|
-
'length'?: number;
|
|
21
|
-
/**
|
|
22
|
-
* The numerical value of the specified dimension.
|
|
23
|
-
*/
|
|
24
|
-
'width'?: number;
|
|
25
|
-
/**
|
|
26
|
-
* The numerical value of the specified dimension.
|
|
27
|
-
*/
|
|
28
|
-
'height'?: number;
|
|
29
|
-
'unit'?: UnitOfLength;
|
|
30
|
-
/**
|
|
31
|
-
* A string of up to 255 characters.
|
|
32
|
-
*/
|
|
33
|
-
'identifier'?: string;
|
|
34
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
* A list of error responses returned when a request is unsuccessful.
|
|
14
|
-
*/
|
|
15
|
-
export interface ErrorList {
|
|
16
|
-
/**
|
|
17
|
-
* A list of error responses returned when a request is unsuccessful.
|
|
18
|
-
*/
|
|
19
|
-
'errors': Array<Error>;
|
|
20
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
* Identifies the method by which a seller will hand a package over to Amazon Logistics.
|
|
14
|
-
*/
|
|
15
|
-
export declare const HandoverMethod: {
|
|
16
|
-
readonly Pickup: "PICKUP";
|
|
17
|
-
readonly Dropoff: "DROPOFF";
|
|
18
|
-
};
|
|
19
|
-
export type HandoverMethod = typeof HandoverMethod[keyof typeof HandoverMethod];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export * from './code';
|
|
2
|
-
export * from './create-scheduled-package-request';
|
|
3
|
-
export * from './create-scheduled-packages-request';
|
|
4
|
-
export * from './create-scheduled-packages-response';
|
|
5
|
-
export * from './dimensions';
|
|
6
|
-
export * from './error-list';
|
|
7
|
-
export * from './handover-method';
|
|
8
|
-
export * from './invoice-data';
|
|
9
|
-
export * from './item';
|
|
10
|
-
export * from './label-format';
|
|
11
|
-
export * from './list-handover-slots-request';
|
|
12
|
-
export * from './list-handover-slots-response';
|
|
13
|
-
export * from './model-error';
|
|
14
|
-
export * from './order-schedule-details';
|
|
15
|
-
export * from './package';
|
|
16
|
-
export * from './package-details';
|
|
17
|
-
export * from './package-status';
|
|
18
|
-
export * from './packages';
|
|
19
|
-
export * from './rejected-order';
|
|
20
|
-
export * from './scheduled-package-id';
|
|
21
|
-
export * from './time-slot';
|
|
22
|
-
export * from './tracking-details';
|
|
23
|
-
export * from './unit-of-length';
|
|
24
|
-
export * from './unit-of-weight';
|
|
25
|
-
export * from './update-package-details';
|
|
26
|
-
export * from './update-scheduled-packages-request';
|
|
27
|
-
export * from './weight';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
* Invoice number and date.
|
|
14
|
-
*/
|
|
15
|
-
export interface InvoiceData {
|
|
16
|
-
/**
|
|
17
|
-
* A string of up to 255 characters.
|
|
18
|
-
*/
|
|
19
|
-
'invoiceNumber': string;
|
|
20
|
-
/**
|
|
21
|
-
* A datetime value in ISO 8601 format.
|
|
22
|
-
*/
|
|
23
|
-
'invoiceDate'?: string;
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
* Item identifier and serial number information.
|
|
14
|
-
*/
|
|
15
|
-
export interface Item {
|
|
16
|
-
/**
|
|
17
|
-
* The Amazon-defined order item identifier.
|
|
18
|
-
*/
|
|
19
|
-
'orderItemId'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* A list of serial numbers for the items associated with the `OrderItemId` value.
|
|
22
|
-
*/
|
|
23
|
-
'orderItemSerialNumbers'?: Array<string>;
|
|
24
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Easy Ship
|
|
3
|
-
* Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2022-03-23
|
|
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
|
-
* The file format in which the shipping label will be created.
|
|
14
|
-
*/
|
|
15
|
-
export declare const LabelFormat: {
|
|
16
|
-
readonly Pdf: "PDF";
|
|
17
|
-
readonly Zpl: "ZPL";
|
|
18
|
-
};
|
|
19
|
-
export type LabelFormat = typeof LabelFormat[keyof typeof LabelFormat];
|