@sp-api-sdk/fba-inbound-eligibility-api-v1 4.1.10 → 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 +376 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +344 -0
- package/dist/index.d.ts +344 -0
- package/dist/index.js +331 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/fba-inbound-eligibility-api.js +0 -134
- 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/get-item-eligibility-preview-response.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -19
- package/dist/cjs/api-model/models/item-eligibility-preview.js +0 -62
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/client.js +0 -21
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/fba-inbound-eligibility-api.js +0 -124
- 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/get-item-eligibility-preview-response.js +0 -14
- package/dist/es/api-model/models/index.js +0 -3
- package/dist/es/api-model/models/item-eligibility-preview.js +0 -59
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/client.js +0 -17
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/fba-inbound-eligibility-api.d.ts +0 -90
- 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/get-item-eligibility-preview-response.d.ts +0 -22
- package/dist/types/api-model/models/index.d.ts +0 -3
- package/dist/types/api-model/models/item-eligibility-preview.d.ts +0 -84
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./get-item-eligibility-preview-response"), exports);
|
|
18
|
-
__exportStar(require("./item-eligibility-preview"), exports);
|
|
19
|
-
__exportStar(require("./model-error"), exports);
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
6
|
-
* 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.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ItemEligibilityPreviewIneligibilityReasonListEnum = exports.ItemEligibilityPreviewProgramEnum = void 0;
|
|
17
|
-
exports.ItemEligibilityPreviewProgramEnum = {
|
|
18
|
-
Inbound: 'INBOUND',
|
|
19
|
-
Commingling: 'COMMINGLING'
|
|
20
|
-
};
|
|
21
|
-
exports.ItemEligibilityPreviewIneligibilityReasonListEnum = {
|
|
22
|
-
FbaInb0004: 'FBA_INB_0004',
|
|
23
|
-
FbaInb0006: 'FBA_INB_0006',
|
|
24
|
-
FbaInb0007: 'FBA_INB_0007',
|
|
25
|
-
FbaInb0008: 'FBA_INB_0008',
|
|
26
|
-
FbaInb0009: 'FBA_INB_0009',
|
|
27
|
-
FbaInb0010: 'FBA_INB_0010',
|
|
28
|
-
FbaInb0011: 'FBA_INB_0011',
|
|
29
|
-
FbaInb0012: 'FBA_INB_0012',
|
|
30
|
-
FbaInb0013: 'FBA_INB_0013',
|
|
31
|
-
FbaInb0014: 'FBA_INB_0014',
|
|
32
|
-
FbaInb0015: 'FBA_INB_0015',
|
|
33
|
-
FbaInb0016: 'FBA_INB_0016',
|
|
34
|
-
FbaInb0017: 'FBA_INB_0017',
|
|
35
|
-
FbaInb0018: 'FBA_INB_0018',
|
|
36
|
-
FbaInb0019: 'FBA_INB_0019',
|
|
37
|
-
FbaInb0034: 'FBA_INB_0034',
|
|
38
|
-
FbaInb0035: 'FBA_INB_0035',
|
|
39
|
-
FbaInb0036: 'FBA_INB_0036',
|
|
40
|
-
FbaInb0037: 'FBA_INB_0037',
|
|
41
|
-
FbaInb0038: 'FBA_INB_0038',
|
|
42
|
-
FbaInb0050: 'FBA_INB_0050',
|
|
43
|
-
FbaInb0051: 'FBA_INB_0051',
|
|
44
|
-
FbaInb0053: 'FBA_INB_0053',
|
|
45
|
-
FbaInb0055: 'FBA_INB_0055',
|
|
46
|
-
FbaInb0056: 'FBA_INB_0056',
|
|
47
|
-
FbaInb0059: 'FBA_INB_0059',
|
|
48
|
-
FbaInb0065: 'FBA_INB_0065',
|
|
49
|
-
FbaInb0066: 'FBA_INB_0066',
|
|
50
|
-
FbaInb0067: 'FBA_INB_0067',
|
|
51
|
-
FbaInb0068: 'FBA_INB_0068',
|
|
52
|
-
FbaInb0095: 'FBA_INB_0095',
|
|
53
|
-
FbaInb0097: 'FBA_INB_0097',
|
|
54
|
-
FbaInb0098: 'FBA_INB_0098',
|
|
55
|
-
FbaInb0099: 'FBA_INB_0099',
|
|
56
|
-
FbaInb0100: 'FBA_INB_0100',
|
|
57
|
-
FbaInb0103: 'FBA_INB_0103',
|
|
58
|
-
FbaInb0104: 'FBA_INB_0104',
|
|
59
|
-
FbaInb0197: 'FBA_INB_0197',
|
|
60
|
-
FbaInb0342: 'FBA_INB_0342',
|
|
61
|
-
UnknownInbErrorCode: 'UNKNOWN_INB_ERROR_CODE'
|
|
62
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
6
|
-
* 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.
|
|
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 });
|
package/dist/cjs/client.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FbaInboundEligibilityApiClient = exports.clientRateLimits = void 0;
|
|
4
|
-
const common_1 = require("@sp-api-sdk/common");
|
|
5
|
-
const api_model_1 = require("./api-model");
|
|
6
|
-
exports.clientRateLimits = [
|
|
7
|
-
{
|
|
8
|
-
method: 'get',
|
|
9
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
10
|
-
urlRegex: new RegExp('^/fba/inbound/v1/eligibility/itemPreview$'),
|
|
11
|
-
rate: 1,
|
|
12
|
-
burst: 1,
|
|
13
|
-
},
|
|
14
|
-
];
|
|
15
|
-
class FbaInboundEligibilityApiClient extends api_model_1.FbaInboundEligibilityApi {
|
|
16
|
-
constructor(configuration) {
|
|
17
|
-
const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
|
|
18
|
-
super(new api_model_1.Configuration(), endpoint, axios);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.FbaInboundEligibilityApiClient = FbaInboundEligibilityApiClient;
|
package/dist/cjs/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./client"), exports);
|
|
18
|
-
__exportStar(require("./api-model/api"), exports);
|
|
19
|
-
__exportStar(require("./api-model/models"), exports);
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
5
|
-
* 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.
|
|
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
|
-
import globalAxios from 'axios';
|
|
15
|
-
// Some imports not used depending on template conditions
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
|
|
20
|
-
/**
|
|
21
|
-
* FbaInboundEligibilityApi - axios parameter creator
|
|
22
|
-
*/
|
|
23
|
-
export const FbaInboundEligibilityApiAxiosParamCreator = function (configuration) {
|
|
24
|
-
return {
|
|
25
|
-
/**
|
|
26
|
-
* 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).
|
|
27
|
-
* @param {string} asin The ASIN of the item for which you want an eligibility preview.
|
|
28
|
-
* @param {GetItemEligibilityPreviewProgramEnum} program The program that you want to check eligibility against.
|
|
29
|
-
* @param {Array<string>} [marketplaceIds] The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND.
|
|
30
|
-
* @param {*} [options] Override http request option.
|
|
31
|
-
* @throws {RequiredError}
|
|
32
|
-
*/
|
|
33
|
-
getItemEligibilityPreview: async (asin, program, marketplaceIds, options = {}) => {
|
|
34
|
-
// verify required parameter 'asin' is not null or undefined
|
|
35
|
-
assertParamExists('getItemEligibilityPreview', 'asin', asin);
|
|
36
|
-
// verify required parameter 'program' is not null or undefined
|
|
37
|
-
assertParamExists('getItemEligibilityPreview', 'program', program);
|
|
38
|
-
const localVarPath = `/fba/inbound/v1/eligibility/itemPreview`;
|
|
39
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41
|
-
let baseOptions;
|
|
42
|
-
if (configuration) {
|
|
43
|
-
baseOptions = configuration.baseOptions;
|
|
44
|
-
}
|
|
45
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
46
|
-
const localVarHeaderParameter = {};
|
|
47
|
-
const localVarQueryParameter = {};
|
|
48
|
-
if (marketplaceIds) {
|
|
49
|
-
localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);
|
|
50
|
-
}
|
|
51
|
-
if (asin !== undefined) {
|
|
52
|
-
localVarQueryParameter['asin'] = asin;
|
|
53
|
-
}
|
|
54
|
-
if (program !== undefined) {
|
|
55
|
-
localVarQueryParameter['program'] = program;
|
|
56
|
-
}
|
|
57
|
-
localVarHeaderParameter['Accept'] = 'application/json,ItemEligibilityPreview';
|
|
58
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
59
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
60
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
61
|
-
return {
|
|
62
|
-
url: toPathString(localVarUrlObj),
|
|
63
|
-
options: localVarRequestOptions,
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* FbaInboundEligibilityApi - functional programming interface
|
|
70
|
-
*/
|
|
71
|
-
export const FbaInboundEligibilityApiFp = function (configuration) {
|
|
72
|
-
const localVarAxiosParamCreator = FbaInboundEligibilityApiAxiosParamCreator(configuration);
|
|
73
|
-
return {
|
|
74
|
-
/**
|
|
75
|
-
* 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).
|
|
76
|
-
* @param {string} asin The ASIN of the item for which you want an eligibility preview.
|
|
77
|
-
* @param {GetItemEligibilityPreviewProgramEnum} program The program that you want to check eligibility against.
|
|
78
|
-
* @param {Array<string>} [marketplaceIds] The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND.
|
|
79
|
-
* @param {*} [options] Override http request option.
|
|
80
|
-
* @throws {RequiredError}
|
|
81
|
-
*/
|
|
82
|
-
async getItemEligibilityPreview(asin, program, marketplaceIds, options) {
|
|
83
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemEligibilityPreview(asin, program, marketplaceIds, options);
|
|
84
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
85
|
-
const localVarOperationServerBasePath = operationServerMap['FbaInboundEligibilityApi.getItemEligibilityPreview']?.[localVarOperationServerIndex]?.url;
|
|
86
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* FbaInboundEligibilityApi - factory interface
|
|
92
|
-
*/
|
|
93
|
-
export const FbaInboundEligibilityApiFactory = function (configuration, basePath, axios) {
|
|
94
|
-
const localVarFp = FbaInboundEligibilityApiFp(configuration);
|
|
95
|
-
return {
|
|
96
|
-
/**
|
|
97
|
-
* 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).
|
|
98
|
-
* @param {FbaInboundEligibilityApiGetItemEligibilityPreviewRequest} requestParameters Request parameters.
|
|
99
|
-
* @param {*} [options] Override http request option.
|
|
100
|
-
* @throws {RequiredError}
|
|
101
|
-
*/
|
|
102
|
-
getItemEligibilityPreview(requestParameters, options) {
|
|
103
|
-
return localVarFp.getItemEligibilityPreview(requestParameters.asin, requestParameters.program, requestParameters.marketplaceIds, options).then((request) => request(axios, basePath));
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* FbaInboundEligibilityApi - object-oriented interface
|
|
109
|
-
*/
|
|
110
|
-
export class FbaInboundEligibilityApi extends BaseAPI {
|
|
111
|
-
/**
|
|
112
|
-
* 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).
|
|
113
|
-
* @param {FbaInboundEligibilityApiGetItemEligibilityPreviewRequest} requestParameters Request parameters.
|
|
114
|
-
* @param {*} [options] Override http request option.
|
|
115
|
-
* @throws {RequiredError}
|
|
116
|
-
*/
|
|
117
|
-
getItemEligibilityPreview(requestParameters, options) {
|
|
118
|
-
return FbaInboundEligibilityApiFp(this.configuration).getItemEligibilityPreview(requestParameters.asin, requestParameters.program, requestParameters.marketplaceIds, options).then((request) => request(this.axios, this.basePath));
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
export const GetItemEligibilityPreviewProgramEnum = {
|
|
122
|
-
Inbound: 'INBOUND',
|
|
123
|
-
Commingling: 'COMMINGLING'
|
|
124
|
-
};
|
package/dist/es/api-model/api.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
5
|
-
* 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.
|
|
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 * from './api/fba-inbound-eligibility-api';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
5
|
-
* 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.
|
|
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
|
-
import globalAxios from 'axios';
|
|
15
|
-
export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
16
|
-
export const COLLECTION_FORMATS = {
|
|
17
|
-
csv: ",",
|
|
18
|
-
ssv: " ",
|
|
19
|
-
tsv: "\t",
|
|
20
|
-
pipes: "|",
|
|
21
|
-
};
|
|
22
|
-
export class BaseAPI {
|
|
23
|
-
basePath;
|
|
24
|
-
axios;
|
|
25
|
-
configuration;
|
|
26
|
-
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
27
|
-
this.basePath = basePath;
|
|
28
|
-
this.axios = axios;
|
|
29
|
-
if (configuration) {
|
|
30
|
-
this.configuration = configuration;
|
|
31
|
-
this.basePath = configuration.basePath ?? basePath;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
;
|
|
36
|
-
export class RequiredError extends Error {
|
|
37
|
-
field;
|
|
38
|
-
constructor(field, msg) {
|
|
39
|
-
super(msg);
|
|
40
|
-
this.field = field;
|
|
41
|
-
this.name = "RequiredError";
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export const operationServerMap = {};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
5
|
-
* 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.
|
|
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
|
-
import { RequiredError } from "./base";
|
|
15
|
-
export const DUMMY_BASE_URL = 'https://example.com';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @throws {RequiredError}
|
|
19
|
-
*/
|
|
20
|
-
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
21
|
-
if (paramValue === null || paramValue === undefined) {
|
|
22
|
-
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
26
|
-
if (configuration && configuration.apiKey) {
|
|
27
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
28
|
-
? await configuration.apiKey(keyParamName)
|
|
29
|
-
: await configuration.apiKey;
|
|
30
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export const setBasicAuthToObject = function (object, configuration) {
|
|
34
|
-
if (configuration && (configuration.username || configuration.password)) {
|
|
35
|
-
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export const setBearerAuthToObject = async function (object, configuration) {
|
|
39
|
-
if (configuration && configuration.accessToken) {
|
|
40
|
-
const accessToken = typeof configuration.accessToken === 'function'
|
|
41
|
-
? await configuration.accessToken()
|
|
42
|
-
: await configuration.accessToken;
|
|
43
|
-
object["Authorization"] = "Bearer " + accessToken;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
47
|
-
if (configuration && configuration.accessToken) {
|
|
48
|
-
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
49
|
-
? await configuration.accessToken(name, scopes)
|
|
50
|
-
: await configuration.accessToken;
|
|
51
|
-
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
55
|
-
if (parameter == null)
|
|
56
|
-
return;
|
|
57
|
-
if (typeof parameter === "object") {
|
|
58
|
-
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
59
|
-
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
if (urlSearchParams.has(key)) {
|
|
67
|
-
urlSearchParams.append(key, parameter);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
urlSearchParams.set(key, parameter);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
export const setSearchParams = function (url, ...objects) {
|
|
75
|
-
const searchParams = new URLSearchParams(url.search);
|
|
76
|
-
setFlattenedQueryParams(searchParams, objects);
|
|
77
|
-
url.search = searchParams.toString();
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
81
|
-
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
82
|
-
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
83
|
-
*/
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
export const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
86
|
-
if (value instanceof Set) {
|
|
87
|
-
return Array.from(value);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return value;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
94
|
-
const nonString = typeof value !== 'string';
|
|
95
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
96
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
97
|
-
: nonString;
|
|
98
|
-
return needsSerialization
|
|
99
|
-
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
100
|
-
: (value || "");
|
|
101
|
-
};
|
|
102
|
-
export const toPathString = function (url) {
|
|
103
|
-
return url.pathname + url.search + url.hash;
|
|
104
|
-
};
|
|
105
|
-
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
106
|
-
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
107
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
108
|
-
return axios.request(axiosRequestArgs);
|
|
109
|
-
};
|
|
110
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
4
|
-
* 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
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: v1
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
export class Configuration {
|
|
14
|
-
/**
|
|
15
|
-
* parameter for apiKey security
|
|
16
|
-
* @param name security name
|
|
17
|
-
*/
|
|
18
|
-
apiKey;
|
|
19
|
-
/**
|
|
20
|
-
* parameter for basic security
|
|
21
|
-
*/
|
|
22
|
-
username;
|
|
23
|
-
/**
|
|
24
|
-
* parameter for basic security
|
|
25
|
-
*/
|
|
26
|
-
password;
|
|
27
|
-
/**
|
|
28
|
-
* parameter for oauth2 security
|
|
29
|
-
* @param name security name
|
|
30
|
-
* @param scopes oauth2 scope
|
|
31
|
-
*/
|
|
32
|
-
accessToken;
|
|
33
|
-
/**
|
|
34
|
-
* parameter for aws4 signature security
|
|
35
|
-
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
36
|
-
* @param {string} options.region - aws region
|
|
37
|
-
* @param {string} options.service - name of the service.
|
|
38
|
-
* @param {string} credentials.accessKeyId - aws access key id
|
|
39
|
-
* @param {string} credentials.secretAccessKey - aws access key
|
|
40
|
-
* @param {string} credentials.sessionToken - aws session token
|
|
41
|
-
* @memberof Configuration
|
|
42
|
-
*/
|
|
43
|
-
awsv4;
|
|
44
|
-
/**
|
|
45
|
-
* override base path
|
|
46
|
-
*/
|
|
47
|
-
basePath;
|
|
48
|
-
/**
|
|
49
|
-
* override server index
|
|
50
|
-
*/
|
|
51
|
-
serverIndex;
|
|
52
|
-
/**
|
|
53
|
-
* base options for axios calls
|
|
54
|
-
*/
|
|
55
|
-
baseOptions;
|
|
56
|
-
/**
|
|
57
|
-
* The FormData constructor that will be used to create multipart form data
|
|
58
|
-
* requests. You can inject this here so that execution environments that
|
|
59
|
-
* do not support the FormData class can still run the generated client.
|
|
60
|
-
*
|
|
61
|
-
* @type {new () => FormData}
|
|
62
|
-
*/
|
|
63
|
-
formDataCtor;
|
|
64
|
-
constructor(param = {}) {
|
|
65
|
-
this.apiKey = param.apiKey;
|
|
66
|
-
this.username = param.username;
|
|
67
|
-
this.password = param.password;
|
|
68
|
-
this.accessToken = param.accessToken;
|
|
69
|
-
this.awsv4 = param.awsv4;
|
|
70
|
-
this.basePath = param.basePath;
|
|
71
|
-
this.serverIndex = param.serverIndex;
|
|
72
|
-
this.baseOptions = {
|
|
73
|
-
...param.baseOptions,
|
|
74
|
-
headers: {
|
|
75
|
-
...param.baseOptions?.headers,
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
this.formDataCtor = param.formDataCtor;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Check if the given MIME is a JSON MIME.
|
|
82
|
-
* JSON MIME examples:
|
|
83
|
-
* application/json
|
|
84
|
-
* application/json; charset=UTF8
|
|
85
|
-
* APPLICATION/JSON
|
|
86
|
-
* application/vnd.company+json
|
|
87
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
88
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
89
|
-
*/
|
|
90
|
-
isJsonMime(mime) {
|
|
91
|
-
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
92
|
-
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
5
|
-
* 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.
|
|
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 * from "./api";
|
|
15
|
-
export * from "./configuration";
|
|
16
|
-
export * from "./models";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
5
|
-
* 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.
|
|
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,59 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export const ItemEligibilityPreviewProgramEnum = {
|
|
15
|
-
Inbound: 'INBOUND',
|
|
16
|
-
Commingling: 'COMMINGLING'
|
|
17
|
-
};
|
|
18
|
-
export const ItemEligibilityPreviewIneligibilityReasonListEnum = {
|
|
19
|
-
FbaInb0004: 'FBA_INB_0004',
|
|
20
|
-
FbaInb0006: 'FBA_INB_0006',
|
|
21
|
-
FbaInb0007: 'FBA_INB_0007',
|
|
22
|
-
FbaInb0008: 'FBA_INB_0008',
|
|
23
|
-
FbaInb0009: 'FBA_INB_0009',
|
|
24
|
-
FbaInb0010: 'FBA_INB_0010',
|
|
25
|
-
FbaInb0011: 'FBA_INB_0011',
|
|
26
|
-
FbaInb0012: 'FBA_INB_0012',
|
|
27
|
-
FbaInb0013: 'FBA_INB_0013',
|
|
28
|
-
FbaInb0014: 'FBA_INB_0014',
|
|
29
|
-
FbaInb0015: 'FBA_INB_0015',
|
|
30
|
-
FbaInb0016: 'FBA_INB_0016',
|
|
31
|
-
FbaInb0017: 'FBA_INB_0017',
|
|
32
|
-
FbaInb0018: 'FBA_INB_0018',
|
|
33
|
-
FbaInb0019: 'FBA_INB_0019',
|
|
34
|
-
FbaInb0034: 'FBA_INB_0034',
|
|
35
|
-
FbaInb0035: 'FBA_INB_0035',
|
|
36
|
-
FbaInb0036: 'FBA_INB_0036',
|
|
37
|
-
FbaInb0037: 'FBA_INB_0037',
|
|
38
|
-
FbaInb0038: 'FBA_INB_0038',
|
|
39
|
-
FbaInb0050: 'FBA_INB_0050',
|
|
40
|
-
FbaInb0051: 'FBA_INB_0051',
|
|
41
|
-
FbaInb0053: 'FBA_INB_0053',
|
|
42
|
-
FbaInb0055: 'FBA_INB_0055',
|
|
43
|
-
FbaInb0056: 'FBA_INB_0056',
|
|
44
|
-
FbaInb0059: 'FBA_INB_0059',
|
|
45
|
-
FbaInb0065: 'FBA_INB_0065',
|
|
46
|
-
FbaInb0066: 'FBA_INB_0066',
|
|
47
|
-
FbaInb0067: 'FBA_INB_0067',
|
|
48
|
-
FbaInb0068: 'FBA_INB_0068',
|
|
49
|
-
FbaInb0095: 'FBA_INB_0095',
|
|
50
|
-
FbaInb0097: 'FBA_INB_0097',
|
|
51
|
-
FbaInb0098: 'FBA_INB_0098',
|
|
52
|
-
FbaInb0099: 'FBA_INB_0099',
|
|
53
|
-
FbaInb0100: 'FBA_INB_0100',
|
|
54
|
-
FbaInb0103: 'FBA_INB_0103',
|
|
55
|
-
FbaInb0104: 'FBA_INB_0104',
|
|
56
|
-
FbaInb0197: 'FBA_INB_0197',
|
|
57
|
-
FbaInb0342: 'FBA_INB_0342',
|
|
58
|
-
UnknownInbErrorCode: 'UNKNOWN_INB_ERROR_CODE'
|
|
59
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for FBA Inbound Eligibilty
|
|
5
|
-
* 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.
|
|
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 {};
|