@sp-api-sdk/product-pricing-api-2022-05-01 2.1.6 → 2.2.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/src/api-model/api/product-pricing-api.js +6 -2
- package/dist/cjs/src/api-model/base.js +7 -2
- package/dist/cjs/src/api-model/common.js +1 -1
- package/dist/cjs/src/api-model/configuration.js +8 -0
- package/dist/es/src/api-model/api/product-pricing-api.js +7 -3
- package/dist/es/src/api-model/base.js +6 -1
- package/dist/es/src/api-model/common.js +1 -1
- package/dist/es/src/api-model/configuration.js +8 -0
- package/dist/types/src/api-model/api/product-pricing-api.d.ts +14 -14
- package/dist/types/src/api-model/base.d.ts +14 -2
- package/dist/types/src/api-model/configuration.d.ts +8 -0
- package/dist/types/src/api-model/models/batch-request.d.ts +1 -1
- package/dist/types/src/api-model/models/batch-response.d.ts +1 -1
- package/dist/types/src/api-model/models/competitive-summary-batch-request.d.ts +1 -1
- package/dist/types/src/api-model/models/competitive-summary-batch-response.d.ts +1 -1
- package/dist/types/src/api-model/models/competitive-summary-request.d.ts +2 -2
- package/dist/types/src/api-model/models/competitive-summary-response-body.d.ts +2 -2
- package/dist/types/src/api-model/models/competitive-summary-response.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-buying-option.d.ts +1 -1
- package/dist/types/src/api-model/models/featured-offer-expected-price-request.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price-response-all-of.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price-response-body.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price-response.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price-result.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-segment.d.ts +1 -1
- package/dist/types/src/api-model/models/featured-offer.d.ts +3 -3
- package/dist/types/src/api-model/models/get-featured-offer-expected-price-batch-request.d.ts +1 -1
- package/dist/types/src/api-model/models/get-featured-offer-expected-price-batch-response.d.ts +1 -1
- package/dist/types/src/api-model/models/offer-identifier.d.ts +1 -1
- package/dist/types/src/api-model/models/offer.d.ts +5 -5
- package/dist/types/src/api-model/models/points.d.ts +1 -1
- package/dist/types/src/api-model/models/price.d.ts +2 -2
- package/dist/types/src/api-model/models/segmented-featured-offer-all-of.d.ts +1 -1
- package/dist/types/src/api-model/models/segmented-featured-offer.d.ts +2 -2
- package/dist/types/src/api-model/models/shipping-option.d.ts +1 -1
- package/package.json +4 -4
|
@@ -105,7 +105,9 @@ const ProductPricingApiFp = function (configuration) {
|
|
|
105
105
|
*/
|
|
106
106
|
async getCompetitiveSummary(requests, options) {
|
|
107
107
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
|
|
108
|
-
|
|
108
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
109
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProductPricingApi.getCompetitiveSummary']?.[localVarOperationServerIndex]?.url;
|
|
110
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
109
111
|
},
|
|
110
112
|
/**
|
|
111
113
|
* Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 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, refer to [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).
|
|
@@ -115,7 +117,9 @@ const ProductPricingApiFp = function (configuration) {
|
|
|
115
117
|
*/
|
|
116
118
|
async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
|
|
117
119
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
|
|
118
|
-
|
|
120
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
121
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProductPricingApi.getFeaturedOfferExpectedPriceBatch']?.[localVarOperationServerIndex]?.url;
|
|
122
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
119
123
|
},
|
|
120
124
|
};
|
|
121
125
|
};
|
|
@@ -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.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
19
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
22
22
|
/**
|
|
@@ -43,7 +43,7 @@ class BaseAPI {
|
|
|
43
43
|
this.axios = axios;
|
|
44
44
|
if (configuration) {
|
|
45
45
|
this.configuration = configuration;
|
|
46
|
-
this.basePath = configuration.basePath
|
|
46
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -64,3 +64,8 @@ class RequiredError extends Error {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.RequiredError = RequiredError;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
exports.operationServerMap = {};
|
|
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
|
|
|
138
138
|
*/
|
|
139
139
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
140
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
141
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
142
142
|
return axios.request(axiosRequestArgs);
|
|
143
143
|
};
|
|
144
144
|
};
|
|
@@ -49,6 +49,13 @@ class Configuration {
|
|
|
49
49
|
* @memberof Configuration
|
|
50
50
|
*/
|
|
51
51
|
basePath;
|
|
52
|
+
/**
|
|
53
|
+
* override server index
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof Configuration
|
|
57
|
+
*/
|
|
58
|
+
serverIndex;
|
|
52
59
|
/**
|
|
53
60
|
* base options for axios calls
|
|
54
61
|
*
|
|
@@ -70,6 +77,7 @@ class Configuration {
|
|
|
70
77
|
this.password = param.password;
|
|
71
78
|
this.accessToken = param.accessToken;
|
|
72
79
|
this.basePath = param.basePath;
|
|
80
|
+
this.serverIndex = param.serverIndex;
|
|
73
81
|
this.baseOptions = param.baseOptions;
|
|
74
82
|
this.formDataCtor = param.formDataCtor;
|
|
75
83
|
}
|
|
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
|
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, BaseAPI } from '../base';
|
|
19
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* ProductPricingApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -98,7 +98,9 @@ export const ProductPricingApiFp = function (configuration) {
|
|
|
98
98
|
*/
|
|
99
99
|
async getCompetitiveSummary(requests, options) {
|
|
100
100
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
|
|
101
|
-
|
|
101
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
102
|
+
const localVarOperationServerBasePath = operationServerMap['ProductPricingApi.getCompetitiveSummary']?.[localVarOperationServerIndex]?.url;
|
|
103
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
102
104
|
},
|
|
103
105
|
/**
|
|
104
106
|
* Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 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, refer to [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,7 +110,9 @@ export const ProductPricingApiFp = function (configuration) {
|
|
|
108
110
|
*/
|
|
109
111
|
async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
|
|
110
112
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
|
|
111
|
-
|
|
113
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
114
|
+
const localVarOperationServerBasePath = operationServerMap['ProductPricingApi.getFeaturedOfferExpectedPriceBatch']?.[localVarOperationServerIndex]?.url;
|
|
115
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
112
116
|
},
|
|
113
117
|
};
|
|
114
118
|
};
|
|
@@ -37,7 +37,7 @@ export class BaseAPI {
|
|
|
37
37
|
this.axios = axios;
|
|
38
38
|
if (configuration) {
|
|
39
39
|
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath
|
|
40
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
|
|
|
56
56
|
this.name = "RequiredError";
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export const operationServerMap = {};
|
|
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
|
|
|
127
127
|
*/
|
|
128
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
131
131
|
return axios.request(axiosRequestArgs);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -46,6 +46,13 @@ export class Configuration {
|
|
|
46
46
|
* @memberof Configuration
|
|
47
47
|
*/
|
|
48
48
|
basePath;
|
|
49
|
+
/**
|
|
50
|
+
* override server index
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
serverIndex;
|
|
49
56
|
/**
|
|
50
57
|
* base options for axios calls
|
|
51
58
|
*
|
|
@@ -67,6 +74,7 @@ export class Configuration {
|
|
|
67
74
|
this.password = param.password;
|
|
68
75
|
this.accessToken = param.accessToken;
|
|
69
76
|
this.basePath = param.basePath;
|
|
77
|
+
this.serverIndex = param.serverIndex;
|
|
70
78
|
this.baseOptions = param.baseOptions;
|
|
71
79
|
this.formDataCtor = param.formDataCtor;
|
|
72
80
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
|
-
import type { AxiosPromise, AxiosInstance,
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
16
|
-
import { CompetitiveSummaryBatchRequest } from '../models';
|
|
17
|
-
import { CompetitiveSummaryBatchResponse } from '../models';
|
|
18
|
-
import { GetFeaturedOfferExpectedPriceBatchRequest } from '../models';
|
|
19
|
-
import { GetFeaturedOfferExpectedPriceBatchResponse } from '../models';
|
|
15
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
|
+
import type { CompetitiveSummaryBatchRequest } from '../models';
|
|
17
|
+
import type { CompetitiveSummaryBatchResponse } from '../models';
|
|
18
|
+
import type { GetFeaturedOfferExpectedPriceBatchRequest } from '../models';
|
|
19
|
+
import type { GetFeaturedOfferExpectedPriceBatchResponse } from '../models';
|
|
20
20
|
/**
|
|
21
21
|
* ProductPricingApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -28,14 +28,14 @@ export declare const ProductPricingApiAxiosParamCreator: (configuration?: Config
|
|
|
28
28
|
* @param {*} [options] Override http request option.
|
|
29
29
|
* @throws {RequiredError}
|
|
30
30
|
*/
|
|
31
|
-
getCompetitiveSummary: (requests: CompetitiveSummaryBatchRequest, options?:
|
|
31
|
+
getCompetitiveSummary: (requests: CompetitiveSummaryBatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
32
|
/**
|
|
33
33
|
* Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 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, refer to [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).
|
|
34
34
|
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
38
|
-
getFeaturedOfferExpectedPriceBatch: (getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options?:
|
|
38
|
+
getFeaturedOfferExpectedPriceBatch: (getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* ProductPricingApi - functional programming interface
|
|
@@ -48,14 +48,14 @@ export declare const ProductPricingApiFp: (configuration?: Configuration) => {
|
|
|
48
48
|
* @param {*} [options] Override http request option.
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
*/
|
|
51
|
-
getCompetitiveSummary(requests: CompetitiveSummaryBatchRequest, options?:
|
|
51
|
+
getCompetitiveSummary(requests: CompetitiveSummaryBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompetitiveSummaryBatchResponse>>;
|
|
52
52
|
/**
|
|
53
53
|
* Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 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, refer to [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
54
|
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
58
|
-
getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options?:
|
|
58
|
+
getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFeaturedOfferExpectedPriceBatchResponse>>;
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* ProductPricingApi - factory interface
|
|
@@ -68,14 +68,14 @@ export declare const ProductPricingApiFactory: (configuration?: Configuration, b
|
|
|
68
68
|
* @param {*} [options] Override http request option.
|
|
69
69
|
* @throws {RequiredError}
|
|
70
70
|
*/
|
|
71
|
-
getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?:
|
|
71
|
+
getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompetitiveSummaryBatchResponse>;
|
|
72
72
|
/**
|
|
73
73
|
* Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 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, refer to [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).
|
|
74
74
|
* @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
|
|
75
75
|
* @param {*} [options] Override http request option.
|
|
76
76
|
* @throws {RequiredError}
|
|
77
77
|
*/
|
|
78
|
-
getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?:
|
|
78
|
+
getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFeaturedOfferExpectedPriceBatchResponse>;
|
|
79
79
|
};
|
|
80
80
|
/**
|
|
81
81
|
* Request parameters for getCompetitiveSummary operation in ProductPricingApi.
|
|
@@ -117,7 +117,7 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
117
117
|
* @throws {RequiredError}
|
|
118
118
|
* @memberof ProductPricingApi
|
|
119
119
|
*/
|
|
120
|
-
getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?:
|
|
120
|
+
getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CompetitiveSummaryBatchResponse, any>>;
|
|
121
121
|
/**
|
|
122
122
|
* Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 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, refer to [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).
|
|
123
123
|
* @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
|
|
@@ -125,5 +125,5 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
* @memberof ProductPricingApi
|
|
127
127
|
*/
|
|
128
|
-
getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?:
|
|
128
|
+
getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetFeaturedOfferExpectedPriceBatchResponse, any>>;
|
|
129
129
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance,
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RequestArgs {
|
|
31
31
|
url: string;
|
|
32
|
-
options:
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
|
|
|
52
52
|
field: string;
|
|
53
53
|
constructor(field: string, msg?: string);
|
|
54
54
|
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
|
|
|
15
15
|
password?: string;
|
|
16
16
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
17
|
basePath?: string;
|
|
18
|
+
serverIndex?: number;
|
|
18
19
|
baseOptions?: any;
|
|
19
20
|
formDataCtor?: new () => any;
|
|
20
21
|
}
|
|
@@ -53,6 +54,13 @@ export declare class Configuration {
|
|
|
53
54
|
* @memberof Configuration
|
|
54
55
|
*/
|
|
55
56
|
basePath?: string;
|
|
57
|
+
/**
|
|
58
|
+
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
62
|
+
*/
|
|
63
|
+
serverIndex?: number;
|
|
56
64
|
/**
|
|
57
65
|
* base options for axios calls
|
|
58
66
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { HttpMethod } from './http-method';
|
|
12
|
+
import type { HttpMethod } from './http-method';
|
|
13
13
|
/**
|
|
14
14
|
* The common properties for individual requests within a batch.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { HttpStatusLine } from './http-status-line';
|
|
12
|
+
import type { HttpStatusLine } from './http-status-line';
|
|
13
13
|
/**
|
|
14
14
|
* The common properties for responses to individual requests within a batch.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CompetitiveSummaryRequest } from './competitive-summary-request';
|
|
12
|
+
import type { CompetitiveSummaryRequest } from './competitive-summary-request';
|
|
13
13
|
/**
|
|
14
14
|
* The `competitiveSummary` batch request data.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CompetitiveSummaryResponse } from './competitive-summary-response';
|
|
12
|
+
import type { CompetitiveSummaryResponse } from './competitive-summary-response';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema of the `competitiveSummaryBatch` operation.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CompetitiveSummaryIncludedData } from './competitive-summary-included-data';
|
|
13
|
-
import { HttpMethod } from './http-method';
|
|
12
|
+
import type { CompetitiveSummaryIncludedData } from './competitive-summary-included-data';
|
|
13
|
+
import type { HttpMethod } from './http-method';
|
|
14
14
|
/**
|
|
15
15
|
* An individual `competitiveSummary` request for an ASIN and `marketplaceId`.
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Errors } from './errors';
|
|
13
|
-
import { FeaturedBuyingOption } from './featured-buying-option';
|
|
12
|
+
import type { Errors } from './errors';
|
|
13
|
+
import type { FeaturedBuyingOption } from './featured-buying-option';
|
|
14
14
|
/**
|
|
15
15
|
* The `competitiveSummaryResponse` body for a requested ASIN and `marketplaceId`.
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CompetitiveSummaryResponseBody } from './competitive-summary-response-body';
|
|
13
|
-
import { HttpStatusLine } from './http-status-line';
|
|
12
|
+
import type { CompetitiveSummaryResponseBody } from './competitive-summary-response-body';
|
|
13
|
+
import type { HttpStatusLine } from './http-status-line';
|
|
14
14
|
/**
|
|
15
15
|
* The response for the individual `competitiveSummary` request in the batch operation.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { SegmentedFeaturedOffer } from './segmented-featured-offer';
|
|
12
|
+
import type { SegmentedFeaturedOffer } from './segmented-featured-offer';
|
|
13
13
|
/**
|
|
14
14
|
* Describes a featured buying option which includes a list of segmented featured offers for a particular item condition.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { BatchRequest } from './batch-request';
|
|
13
|
-
import { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-expected-price-request-params';
|
|
12
|
+
import type { BatchRequest } from './batch-request';
|
|
13
|
+
import type { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-expected-price-request-params';
|
|
14
14
|
/**
|
|
15
15
|
* @type FeaturedOfferExpectedPriceRequest
|
|
16
16
|
* An individual featured offer expected price request for a particular SKU.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-expected-price-request-params';
|
|
13
|
-
import { FeaturedOfferExpectedPriceResponseBody } from './featured-offer-expected-price-response-body';
|
|
12
|
+
import type { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-expected-price-request-params';
|
|
13
|
+
import type { FeaturedOfferExpectedPriceResponseBody } from './featured-offer-expected-price-response-body';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferExpectedPriceResult } from './featured-offer-expected-price-result';
|
|
13
|
-
import { OfferIdentifier } from './offer-identifier';
|
|
12
|
+
import type { FeaturedOfferExpectedPriceResult } from './featured-offer-expected-price-result';
|
|
13
|
+
import type { OfferIdentifier } from './offer-identifier';
|
|
14
14
|
/**
|
|
15
15
|
* The featured offer expected price response data for a requested SKU.
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { BatchResponse } from './batch-response';
|
|
13
|
-
import { FeaturedOfferExpectedPriceResponseAllOf } from './featured-offer-expected-price-response-all-of';
|
|
12
|
+
import type { BatchResponse } from './batch-response';
|
|
13
|
+
import type { FeaturedOfferExpectedPriceResponseAllOf } from './featured-offer-expected-price-response-all-of';
|
|
14
14
|
/**
|
|
15
15
|
* @type FeaturedOfferExpectedPriceResponse
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOffer } from './featured-offer';
|
|
13
|
-
import { FeaturedOfferExpectedPrice } from './featured-offer-expected-price';
|
|
12
|
+
import type { FeaturedOffer } from './featured-offer';
|
|
13
|
+
import type { FeaturedOfferExpectedPrice } from './featured-offer-expected-price';
|
|
14
14
|
/**
|
|
15
15
|
* The featured offer expected price result data for the requested offer.
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { MoneyType } from './money-type';
|
|
13
|
-
import { Points } from './points';
|
|
12
|
+
import type { MoneyType } from './money-type';
|
|
13
|
+
import type { Points } from './points';
|
|
14
14
|
/**
|
|
15
15
|
* The item price at or below which the target offer may be featured.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { SegmentDetails } from './segment-details';
|
|
12
|
+
import type { SegmentDetails } from './segment-details';
|
|
13
13
|
/**
|
|
14
14
|
* Describes the segment in which the offer is featured.
|
|
15
15
|
* @export
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Condition } from './condition';
|
|
13
|
-
import { OfferIdentifier } from './offer-identifier';
|
|
14
|
-
import { Price } from './price';
|
|
12
|
+
import type { Condition } from './condition';
|
|
13
|
+
import type { OfferIdentifier } from './offer-identifier';
|
|
14
|
+
import type { Price } from './price';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
package/dist/types/src/api-model/models/get-featured-offer-expected-price-batch-request.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferExpectedPriceRequest } from './featured-offer-expected-price-request';
|
|
12
|
+
import type { FeaturedOfferExpectedPriceRequest } from './featured-offer-expected-price-request';
|
|
13
13
|
/**
|
|
14
14
|
* The request body for the `getFeaturedOfferExpectedPriceBatch` operation.
|
|
15
15
|
* @export
|
package/dist/types/src/api-model/models/get-featured-offer-expected-price-batch-response.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferExpectedPriceResponse } from './featured-offer-expected-price-response';
|
|
12
|
+
import type { FeaturedOfferExpectedPriceResponse } from './featured-offer-expected-price-response';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the `getFeaturedOfferExpectedPriceBatch` operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FulfillmentType } from './fulfillment-type';
|
|
12
|
+
import type { FulfillmentType } from './fulfillment-type';
|
|
13
13
|
/**
|
|
14
14
|
* Identifies an offer from a particular seller on an ASIN.
|
|
15
15
|
* @export
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Condition } from './condition';
|
|
13
|
-
import { FulfillmentType } from './fulfillment-type';
|
|
14
|
-
import { MoneyType } from './money-type';
|
|
15
|
-
import { Points } from './points';
|
|
16
|
-
import { ShippingOption } from './shipping-option';
|
|
12
|
+
import type { Condition } from './condition';
|
|
13
|
+
import type { FulfillmentType } from './fulfillment-type';
|
|
14
|
+
import type { MoneyType } from './money-type';
|
|
15
|
+
import type { Points } from './points';
|
|
16
|
+
import type { ShippingOption } from './shipping-option';
|
|
17
17
|
/**
|
|
18
18
|
* The offer data of a product.
|
|
19
19
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { MoneyType } from './money-type';
|
|
13
|
-
import { Points } from './points';
|
|
12
|
+
import type { MoneyType } from './money-type';
|
|
13
|
+
import type { Points } from './points';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferSegment } from './featured-offer-segment';
|
|
12
|
+
import type { FeaturedOfferSegment } from './featured-offer-segment';
|
|
13
13
|
/**
|
|
14
14
|
* The list of segment information in which the offer is featured.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Offer } from './offer';
|
|
13
|
-
import { SegmentedFeaturedOfferAllOf } from './segmented-featured-offer-all-of';
|
|
12
|
+
import type { Offer } from './offer';
|
|
13
|
+
import type { SegmentedFeaturedOfferAllOf } from './segmented-featured-offer-all-of';
|
|
14
14
|
/**
|
|
15
15
|
* @type SegmentedFeaturedOffer
|
|
16
16
|
* A product offer with segment information indicating where it\'s featured.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/product-pricing-api-2022-05-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the Product Pricing v2022-05-01 Use Case Guide.",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.2.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.0.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.0.8",
|
|
22
|
+
"axios": "^1.7.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"product pricing api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
|
|
44
44
|
}
|