@sp-api-sdk/fba-inbound-eligibility-api-v1 3.0.3 → 4.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/dist/cjs/api-model/api/{fba-inbound-api.js → fba-inbound-eligibility-api.js} +21 -21
- package/dist/cjs/api-model/api.js +1 -1
- package/dist/cjs/client.js +1 -1
- package/dist/es/api-model/api/{fba-inbound-api.js → fba-inbound-eligibility-api.js} +16 -16
- package/dist/es/api-model/api.js +1 -1
- package/dist/es/client.js +2 -2
- package/dist/types/api-model/api/{fba-inbound-api.d.ts → fba-inbound-eligibility-api.d.ts} +20 -20
- package/dist/types/api-model/api.d.ts +1 -1
- package/dist/types/client.d.ts +2 -2
- package/package.json +4 -4
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetItemEligibilityPreviewProgramEnum = exports.
|
|
19
|
+
exports.GetItemEligibilityPreviewProgramEnum = exports.FbaInboundEligibilityApi = exports.FbaInboundEligibilityApiFactory = exports.FbaInboundEligibilityApiFp = exports.FbaInboundEligibilityApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -24,10 +24,10 @@ const common_1 = require("../common");
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* FbaInboundEligibilityApi - axios parameter creator
|
|
28
28
|
* @export
|
|
29
29
|
*/
|
|
30
|
-
const
|
|
30
|
+
const FbaInboundEligibilityApiAxiosParamCreator = function (configuration) {
|
|
31
31
|
return {
|
|
32
32
|
/**
|
|
33
33
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
@@ -71,13 +71,13 @@ const FbaInboundApiAxiosParamCreator = function (configuration) {
|
|
|
71
71
|
},
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
-
exports.
|
|
74
|
+
exports.FbaInboundEligibilityApiAxiosParamCreator = FbaInboundEligibilityApiAxiosParamCreator;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* FbaInboundEligibilityApi - functional programming interface
|
|
77
77
|
* @export
|
|
78
78
|
*/
|
|
79
|
-
const
|
|
80
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
79
|
+
const FbaInboundEligibilityApiFp = function (configuration) {
|
|
80
|
+
const localVarAxiosParamCreator = (0, exports.FbaInboundEligibilityApiAxiosParamCreator)(configuration);
|
|
81
81
|
return {
|
|
82
82
|
/**
|
|
83
83
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
@@ -90,22 +90,22 @@ const FbaInboundApiFp = function (configuration) {
|
|
|
90
90
|
async getItemEligibilityPreview(asin, program, marketplaceIds, options) {
|
|
91
91
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemEligibilityPreview(asin, program, marketplaceIds, options);
|
|
92
92
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
93
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
93
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundEligibilityApi.getItemEligibilityPreview']?.[localVarOperationServerIndex]?.url;
|
|
94
94
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
95
95
|
},
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
98
|
+
exports.FbaInboundEligibilityApiFp = FbaInboundEligibilityApiFp;
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* FbaInboundEligibilityApi - factory interface
|
|
101
101
|
* @export
|
|
102
102
|
*/
|
|
103
|
-
const
|
|
104
|
-
const localVarFp = (0, exports.
|
|
103
|
+
const FbaInboundEligibilityApiFactory = function (configuration, basePath, axios) {
|
|
104
|
+
const localVarFp = (0, exports.FbaInboundEligibilityApiFp)(configuration);
|
|
105
105
|
return {
|
|
106
106
|
/**
|
|
107
107
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
108
|
-
* @param {
|
|
108
|
+
* @param {FbaInboundEligibilityApiGetItemEligibilityPreviewRequest} requestParameters Request parameters.
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
@@ -114,26 +114,26 @@ const FbaInboundApiFactory = function (configuration, basePath, axios) {
|
|
|
114
114
|
},
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
117
|
+
exports.FbaInboundEligibilityApiFactory = FbaInboundEligibilityApiFactory;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* FbaInboundEligibilityApi - object-oriented interface
|
|
120
120
|
* @export
|
|
121
|
-
* @class
|
|
121
|
+
* @class FbaInboundEligibilityApi
|
|
122
122
|
* @extends {BaseAPI}
|
|
123
123
|
*/
|
|
124
|
-
class
|
|
124
|
+
class FbaInboundEligibilityApi extends base_1.BaseAPI {
|
|
125
125
|
/**
|
|
126
126
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
127
|
-
* @param {
|
|
127
|
+
* @param {FbaInboundEligibilityApiGetItemEligibilityPreviewRequest} requestParameters Request parameters.
|
|
128
128
|
* @param {*} [options] Override http request option.
|
|
129
129
|
* @throws {RequiredError}
|
|
130
|
-
* @memberof
|
|
130
|
+
* @memberof FbaInboundEligibilityApi
|
|
131
131
|
*/
|
|
132
132
|
getItemEligibilityPreview(requestParameters, options) {
|
|
133
|
-
return (0, exports.
|
|
133
|
+
return (0, exports.FbaInboundEligibilityApiFp)(this.configuration).getItemEligibilityPreview(requestParameters.asin, requestParameters.program, requestParameters.marketplaceIds, options).then((request) => request(this.axios, this.basePath));
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
exports.
|
|
136
|
+
exports.FbaInboundEligibilityApi = FbaInboundEligibilityApi;
|
|
137
137
|
/**
|
|
138
138
|
* @export
|
|
139
139
|
*/
|
|
@@ -27,4 +27,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./api/fba-inbound-api"), exports);
|
|
30
|
+
__exportStar(require("./api/fba-inbound-eligibility-api"), exports);
|
package/dist/cjs/client.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.clientRateLimits = [
|
|
|
12
12
|
burst: 1,
|
|
13
13
|
},
|
|
14
14
|
];
|
|
15
|
-
class FbaInboundEligibilityApiClient extends api_model_1.
|
|
15
|
+
class FbaInboundEligibilityApiClient extends api_model_1.FbaInboundEligibilityApi {
|
|
16
16
|
constructor(configuration) {
|
|
17
17
|
const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
|
|
18
18
|
super(new api_model_1.Configuration(), endpoint, axios);
|
|
@@ -18,10 +18,10 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, creat
|
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* FbaInboundEligibilityApi - axios parameter creator
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
24
|
-
export const
|
|
24
|
+
export const FbaInboundEligibilityApiAxiosParamCreator = function (configuration) {
|
|
25
25
|
return {
|
|
26
26
|
/**
|
|
27
27
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
@@ -66,11 +66,11 @@ export const FbaInboundApiAxiosParamCreator = function (configuration) {
|
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* FbaInboundEligibilityApi - functional programming interface
|
|
70
70
|
* @export
|
|
71
71
|
*/
|
|
72
|
-
export const
|
|
73
|
-
const localVarAxiosParamCreator =
|
|
72
|
+
export const FbaInboundEligibilityApiFp = function (configuration) {
|
|
73
|
+
const localVarAxiosParamCreator = FbaInboundEligibilityApiAxiosParamCreator(configuration);
|
|
74
74
|
return {
|
|
75
75
|
/**
|
|
76
76
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
@@ -83,21 +83,21 @@ export const FbaInboundApiFp = function (configuration) {
|
|
|
83
83
|
async getItemEligibilityPreview(asin, program, marketplaceIds, options) {
|
|
84
84
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemEligibilityPreview(asin, program, marketplaceIds, options);
|
|
85
85
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
86
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
86
|
+
const localVarOperationServerBasePath = operationServerMap['FbaInboundEligibilityApi.getItemEligibilityPreview']?.[localVarOperationServerIndex]?.url;
|
|
87
87
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
88
88
|
},
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* FbaInboundEligibilityApi - factory interface
|
|
93
93
|
* @export
|
|
94
94
|
*/
|
|
95
|
-
export const
|
|
96
|
-
const localVarFp =
|
|
95
|
+
export const FbaInboundEligibilityApiFactory = function (configuration, basePath, axios) {
|
|
96
|
+
const localVarFp = FbaInboundEligibilityApiFp(configuration);
|
|
97
97
|
return {
|
|
98
98
|
/**
|
|
99
99
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
100
|
-
* @param {
|
|
100
|
+
* @param {FbaInboundEligibilityApiGetItemEligibilityPreviewRequest} requestParameters Request parameters.
|
|
101
101
|
* @param {*} [options] Override http request option.
|
|
102
102
|
* @throws {RequiredError}
|
|
103
103
|
*/
|
|
@@ -107,21 +107,21 @@ export const FbaInboundApiFactory = function (configuration, basePath, axios) {
|
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* FbaInboundEligibilityApi - object-oriented interface
|
|
111
111
|
* @export
|
|
112
|
-
* @class
|
|
112
|
+
* @class FbaInboundEligibilityApi
|
|
113
113
|
* @extends {BaseAPI}
|
|
114
114
|
*/
|
|
115
|
-
export class
|
|
115
|
+
export class FbaInboundEligibilityApi extends BaseAPI {
|
|
116
116
|
/**
|
|
117
117
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
118
|
-
* @param {
|
|
118
|
+
* @param {FbaInboundEligibilityApiGetItemEligibilityPreviewRequest} requestParameters Request parameters.
|
|
119
119
|
* @param {*} [options] Override http request option.
|
|
120
120
|
* @throws {RequiredError}
|
|
121
|
-
* @memberof
|
|
121
|
+
* @memberof FbaInboundEligibilityApi
|
|
122
122
|
*/
|
|
123
123
|
getItemEligibilityPreview(requestParameters, options) {
|
|
124
|
-
return
|
|
124
|
+
return FbaInboundEligibilityApiFp(this.configuration).getItemEligibilityPreview(requestParameters.asin, requestParameters.program, requestParameters.marketplaceIds, options).then((request) => request(this.axios, this.basePath));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
/**
|
package/dist/es/api-model/api.js
CHANGED
package/dist/es/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAxiosInstance } from '@sp-api-sdk/common';
|
|
2
|
-
import { Configuration,
|
|
2
|
+
import { Configuration, FbaInboundEligibilityApi } from './api-model';
|
|
3
3
|
export const clientRateLimits = [
|
|
4
4
|
{
|
|
5
5
|
method: 'get',
|
|
@@ -9,7 +9,7 @@ export const clientRateLimits = [
|
|
|
9
9
|
burst: 1,
|
|
10
10
|
},
|
|
11
11
|
];
|
|
12
|
-
export class FbaInboundEligibilityApiClient extends
|
|
12
|
+
export class FbaInboundEligibilityApiClient extends FbaInboundEligibilityApi {
|
|
13
13
|
constructor(configuration) {
|
|
14
14
|
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
15
15
|
super(new Configuration(), endpoint, axios);
|
|
@@ -15,10 +15,10 @@ import globalAxios from 'axios';
|
|
|
15
15
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
16
|
import type { GetItemEligibilityPreviewResponse } from '../models';
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* FbaInboundEligibilityApi - axios parameter creator
|
|
19
19
|
* @export
|
|
20
20
|
*/
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const FbaInboundEligibilityApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
22
|
/**
|
|
23
23
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
24
24
|
* @param {string} asin The ASIN of the item for which you want an eligibility preview.
|
|
@@ -30,10 +30,10 @@ export declare const FbaInboundApiAxiosParamCreator: (configuration?: Configurat
|
|
|
30
30
|
getItemEligibilityPreview: (asin: string, program: GetItemEligibilityPreviewProgramEnum, marketplaceIds?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* FbaInboundEligibilityApi - functional programming interface
|
|
34
34
|
* @export
|
|
35
35
|
*/
|
|
36
|
-
export declare const
|
|
36
|
+
export declare const FbaInboundEligibilityApiFp: (configuration?: Configuration) => {
|
|
37
37
|
/**
|
|
38
38
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
39
39
|
* @param {string} asin The ASIN of the item for which you want an eligibility preview.
|
|
@@ -45,58 +45,58 @@ export declare const FbaInboundApiFp: (configuration?: Configuration) => {
|
|
|
45
45
|
getItemEligibilityPreview(asin: string, program: GetItemEligibilityPreviewProgramEnum, marketplaceIds?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetItemEligibilityPreviewResponse>>;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* FbaInboundEligibilityApi - factory interface
|
|
49
49
|
* @export
|
|
50
50
|
*/
|
|
51
|
-
export declare const
|
|
51
|
+
export declare const FbaInboundEligibilityApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
52
52
|
/**
|
|
53
53
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
54
|
-
* @param {
|
|
54
|
+
* @param {FbaInboundEligibilityApiGetItemEligibilityPreviewRequest} requestParameters Request parameters.
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
58
|
-
getItemEligibilityPreview(requestParameters:
|
|
58
|
+
getItemEligibilityPreview(requestParameters: FbaInboundEligibilityApiGetItemEligibilityPreviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetItemEligibilityPreviewResponse>;
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
|
-
* Request parameters for getItemEligibilityPreview operation in
|
|
61
|
+
* Request parameters for getItemEligibilityPreview operation in FbaInboundEligibilityApi.
|
|
62
62
|
* @export
|
|
63
|
-
* @interface
|
|
63
|
+
* @interface FbaInboundEligibilityApiGetItemEligibilityPreviewRequest
|
|
64
64
|
*/
|
|
65
|
-
export interface
|
|
65
|
+
export interface FbaInboundEligibilityApiGetItemEligibilityPreviewRequest {
|
|
66
66
|
/**
|
|
67
67
|
* The ASIN of the item for which you want an eligibility preview.
|
|
68
68
|
* @type {string}
|
|
69
|
-
* @memberof
|
|
69
|
+
* @memberof FbaInboundEligibilityApiGetItemEligibilityPreview
|
|
70
70
|
*/
|
|
71
71
|
readonly asin: string;
|
|
72
72
|
/**
|
|
73
73
|
* The program that you want to check eligibility against.
|
|
74
74
|
* @type {'INBOUND' | 'COMMINGLING'}
|
|
75
|
-
* @memberof
|
|
75
|
+
* @memberof FbaInboundEligibilityApiGetItemEligibilityPreview
|
|
76
76
|
*/
|
|
77
77
|
readonly program: GetItemEligibilityPreviewProgramEnum;
|
|
78
78
|
/**
|
|
79
79
|
* The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND.
|
|
80
80
|
* @type {Array<string>}
|
|
81
|
-
* @memberof
|
|
81
|
+
* @memberof FbaInboundEligibilityApiGetItemEligibilityPreview
|
|
82
82
|
*/
|
|
83
83
|
readonly marketplaceIds?: Array<string>;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* FbaInboundEligibilityApi - object-oriented interface
|
|
87
87
|
* @export
|
|
88
|
-
* @class
|
|
88
|
+
* @class FbaInboundEligibilityApi
|
|
89
89
|
* @extends {BaseAPI}
|
|
90
90
|
*/
|
|
91
|
-
export declare class
|
|
91
|
+
export declare class FbaInboundEligibilityApi extends BaseAPI {
|
|
92
92
|
/**
|
|
93
93
|
* This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item\'s eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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).
|
|
94
|
-
* @param {
|
|
94
|
+
* @param {FbaInboundEligibilityApiGetItemEligibilityPreviewRequest} requestParameters Request parameters.
|
|
95
95
|
* @param {*} [options] Override http request option.
|
|
96
96
|
* @throws {RequiredError}
|
|
97
|
-
* @memberof
|
|
97
|
+
* @memberof FbaInboundEligibilityApi
|
|
98
98
|
*/
|
|
99
|
-
getItemEligibilityPreview(requestParameters:
|
|
99
|
+
getItemEligibilityPreview(requestParameters: FbaInboundEligibilityApiGetItemEligibilityPreviewRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetItemEligibilityPreviewResponse, any>>;
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* @export
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
|
|
2
|
-
import {
|
|
2
|
+
import { FbaInboundEligibilityApi } from './api-model';
|
|
3
3
|
export declare const clientRateLimits: RateLimit[];
|
|
4
|
-
export declare class FbaInboundEligibilityApiClient extends
|
|
4
|
+
export declare class FbaInboundEligibilityApiClient extends FbaInboundEligibilityApi {
|
|
5
5
|
constructor(configuration: ClientConfiguration);
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/fba-inbound-eligibility-api-v1",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for items before shipping them to Amazon's fulfillment centers. With this API you can find out if an item is eligible for inbound shipment to Amazon's fulfillment centers in a specific marketplace. You can also find out if an item is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to inform their decisions about which items to ship Amazon's fulfillment centers.",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "4.0.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.14",
|
|
22
|
+
"axios": "^1.9.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"fba inbound eligibility api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "773f45c3f4aab28e0bd9f6033045988800d7f258"
|
|
44
44
|
}
|