@sp-api-sdk/product-pricing-api-2022-05-01 3.3.0 → 4.1.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 +7 -8
- package/dist/index.cjs +500 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +964 -0
- package/dist/index.d.ts +964 -0
- package/dist/index.js +461 -0
- package/dist/index.js.map +1 -0
- package/package.json +26 -12
- package/dist/cjs/api-model/api/product-pricing-api.js +0 -177
- 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/batch-request.js +0 -15
- package/dist/cjs/api-model/models/batch-response.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-batch-request.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-batch-response.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-included-data.js +0 -25
- package/dist/cjs/api-model/models/competitive-summary-request.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-response-body.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-response.js +0 -15
- package/dist/cjs/api-model/models/condition.js +0 -26
- package/dist/cjs/api-model/models/errors.js +0 -15
- package/dist/cjs/api-model/models/featured-buying-option.js +0 -19
- package/dist/cjs/api-model/models/featured-offer-expected-price-request-params.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-request.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-response-all-of.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-response-body.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-response.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-result.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-segment.js +0 -21
- package/dist/cjs/api-model/models/featured-offer.js +0 -15
- package/dist/cjs/api-model/models/fulfillment-type.js +0 -23
- package/dist/cjs/api-model/models/get-featured-offer-expected-price-batch-request.js +0 -15
- package/dist/cjs/api-model/models/get-featured-offer-expected-price-batch-response.js +0 -15
- package/dist/cjs/api-model/models/http-method.js +0 -26
- package/dist/cjs/api-model/models/http-status-line.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -60
- package/dist/cjs/api-model/models/item.js +0 -15
- package/dist/cjs/api-model/models/lowest-priced-offer.js +0 -15
- package/dist/cjs/api-model/models/lowest-priced-offers-input.js +0 -19
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/money-type.js +0 -15
- package/dist/cjs/api-model/models/offer-identifier.js +0 -15
- package/dist/cjs/api-model/models/offer.js +0 -31
- package/dist/cjs/api-model/models/points.js +0 -15
- package/dist/cjs/api-model/models/postal-code.js +0 -15
- package/dist/cjs/api-model/models/price.js +0 -15
- package/dist/cjs/api-model/models/prime-details.js +0 -21
- package/dist/cjs/api-model/models/reference-price.js +0 -15
- package/dist/cjs/api-model/models/sample-location.js +0 -15
- package/dist/cjs/api-model/models/segment-details.js +0 -15
- package/dist/cjs/api-model/models/segment.js +0 -15
- package/dist/cjs/api-model/models/segmented-featured-offer-all-of.js +0 -15
- package/dist/cjs/api-model/models/segmented-featured-offer.js +0 -15
- package/dist/cjs/api-model/models/shipping-option.js +0 -19
- package/dist/cjs/api-model/models/similar-items.js +0 -15
- package/dist/cjs/client.js +0 -28
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/product-pricing-api.js +0 -167
- 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/batch-request.js +0 -14
- package/dist/es/api-model/models/batch-response.js +0 -14
- package/dist/es/api-model/models/competitive-summary-batch-request.js +0 -14
- package/dist/es/api-model/models/competitive-summary-batch-response.js +0 -14
- package/dist/es/api-model/models/competitive-summary-included-data.js +0 -22
- package/dist/es/api-model/models/competitive-summary-request.js +0 -14
- package/dist/es/api-model/models/competitive-summary-response-body.js +0 -14
- package/dist/es/api-model/models/competitive-summary-response.js +0 -14
- package/dist/es/api-model/models/condition.js +0 -23
- package/dist/es/api-model/models/errors.js +0 -14
- package/dist/es/api-model/models/featured-buying-option.js +0 -16
- package/dist/es/api-model/models/featured-offer-expected-price-request-params.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-request.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-response-all-of.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-response-body.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-response.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-result.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price.js +0 -14
- package/dist/es/api-model/models/featured-offer-segment.js +0 -18
- package/dist/es/api-model/models/featured-offer.js +0 -14
- package/dist/es/api-model/models/fulfillment-type.js +0 -20
- package/dist/es/api-model/models/get-featured-offer-expected-price-batch-request.js +0 -14
- package/dist/es/api-model/models/get-featured-offer-expected-price-batch-response.js +0 -14
- package/dist/es/api-model/models/http-method.js +0 -23
- package/dist/es/api-model/models/http-status-line.js +0 -14
- package/dist/es/api-model/models/index.js +0 -44
- package/dist/es/api-model/models/item.js +0 -14
- package/dist/es/api-model/models/lowest-priced-offer.js +0 -14
- package/dist/es/api-model/models/lowest-priced-offers-input.js +0 -16
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/money-type.js +0 -14
- package/dist/es/api-model/models/offer-identifier.js +0 -14
- package/dist/es/api-model/models/offer.js +0 -28
- package/dist/es/api-model/models/points.js +0 -14
- package/dist/es/api-model/models/postal-code.js +0 -14
- package/dist/es/api-model/models/price.js +0 -14
- package/dist/es/api-model/models/prime-details.js +0 -18
- package/dist/es/api-model/models/reference-price.js +0 -14
- package/dist/es/api-model/models/sample-location.js +0 -14
- package/dist/es/api-model/models/segment-details.js +0 -14
- package/dist/es/api-model/models/segment.js +0 -14
- package/dist/es/api-model/models/segmented-featured-offer-all-of.js +0 -14
- package/dist/es/api-model/models/segmented-featured-offer.js +0 -14
- package/dist/es/api-model/models/shipping-option.js +0 -16
- package/dist/es/api-model/models/similar-items.js +0 -14
- package/dist/es/client.js +0 -24
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/product-pricing-api.d.ts +0 -113
- 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/batch-request.d.ts +0 -34
- package/dist/types/api-model/models/batch-response.d.ts +0 -24
- package/dist/types/api-model/models/competitive-summary-batch-request.d.ts +0 -21
- package/dist/types/api-model/models/competitive-summary-batch-response.d.ts +0 -21
- package/dist/types/api-model/models/competitive-summary-included-data.d.ts +0 -21
- package/dist/types/api-model/models/competitive-summary-request.d.ts +0 -40
- package/dist/types/api-model/models/competitive-summary-response-body.d.ts +0 -48
- package/dist/types/api-model/models/competitive-summary-response.d.ts +0 -20
- package/dist/types/api-model/models/condition.d.ts +0 -22
- package/dist/types/api-model/models/errors.d.ts +0 -20
- package/dist/types/api-model/models/featured-buying-option.d.ts +0 -29
- package/dist/types/api-model/models/featured-offer-expected-price-request-params.d.ts +0 -26
- package/dist/types/api-model/models/featured-offer-expected-price-request.d.ts +0 -18
- package/dist/types/api-model/models/featured-offer-expected-price-response-all-of.d.ts +0 -17
- package/dist/types/api-model/models/featured-offer-expected-price-response-body.d.ts +0 -27
- package/dist/types/api-model/models/featured-offer-expected-price-response.d.ts +0 -18
- package/dist/types/api-model/models/featured-offer-expected-price-result.d.ts +0 -25
- package/dist/types/api-model/models/featured-offer-expected-price.d.ts +0 -20
- package/dist/types/api-model/models/featured-offer-segment.d.ts +0 -28
- package/dist/types/api-model/models/featured-offer.d.ts +0 -22
- package/dist/types/api-model/models/fulfillment-type.d.ts +0 -19
- package/dist/types/api-model/models/get-featured-offer-expected-price-batch-request.d.ts +0 -21
- package/dist/types/api-model/models/get-featured-offer-expected-price-batch-response.d.ts +0 -21
- package/dist/types/api-model/models/http-method.d.ts +0 -22
- package/dist/types/api-model/models/http-status-line.d.ts +0 -24
- package/dist/types/api-model/models/index.d.ts +0 -44
- package/dist/types/api-model/models/item.d.ts +0 -20
- package/dist/types/api-model/models/lowest-priced-offer.d.ts +0 -23
- package/dist/types/api-model/models/lowest-priced-offers-input.d.ts +0 -26
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/money-type.d.ts +0 -24
- package/dist/types/api-model/models/offer-identifier.d.ts +0 -34
- package/dist/types/api-model/models/offer.d.ts +0 -55
- package/dist/types/api-model/models/points.d.ts +0 -22
- package/dist/types/api-model/models/postal-code.d.ts +0 -24
- package/dist/types/api-model/models/price.d.ts +0 -21
- package/dist/types/api-model/models/prime-details.d.ts +0 -26
- package/dist/types/api-model/models/reference-price.d.ts +0 -22
- package/dist/types/api-model/models/sample-location.d.ts +0 -18
- package/dist/types/api-model/models/segment-details.d.ts +0 -22
- package/dist/types/api-model/models/segment.d.ts +0 -18
- package/dist/types/api-model/models/segmented-featured-offer-all-of.d.ts +0 -21
- package/dist/types/api-model/models/segmented-featured-offer.d.ts +0 -18
- package/dist/types/api-model/models/shipping-option.d.ts +0 -26
- package/dist/types/api-model/models/similar-items.d.ts +0 -21
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@sp-api-sdk/product-pricing-api-2022-05-01`
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@sp-api-sdk/product-pricing-api-2022-05-01)
|
|
4
4
|
[](https://github.com/xojs/xo)
|
|
@@ -27,10 +27,10 @@ npm install @sp-api-sdk/product-pricing-api-2022-05-01
|
|
|
27
27
|
import {SellingPartnerApiAuth} from '@sp-api-sdk/auth'
|
|
28
28
|
import {ProductPricingApiClient} from '@sp-api-sdk/product-pricing-api-2022-05-01'
|
|
29
29
|
|
|
30
|
+
// `clientId` and `clientSecret` default to the `LWA_CLIENT_ID` and
|
|
31
|
+
// `LWA_CLIENT_SECRET` environment variables.
|
|
30
32
|
const auth = new SellingPartnerApiAuth({
|
|
31
|
-
|
|
32
|
-
clientSecret: process.env.LWA_CLIENT_SECRET,
|
|
33
|
-
refreshToken: 'Atzr|…',
|
|
33
|
+
refreshToken: await getRefreshTokenForSeller(sellerId),
|
|
34
34
|
})
|
|
35
35
|
|
|
36
36
|
const client = new ProductPricingApiClient({
|
|
@@ -69,10 +69,10 @@ const client = new ProductPricingApiClient({
|
|
|
69
69
|
region: 'eu',
|
|
70
70
|
logging: {
|
|
71
71
|
request: {
|
|
72
|
-
logger: console.debug
|
|
72
|
+
logger: console.debug,
|
|
73
73
|
},
|
|
74
74
|
response: {
|
|
75
|
-
logger: console.debug
|
|
75
|
+
logger: console.debug,
|
|
76
76
|
},
|
|
77
77
|
error: true,
|
|
78
78
|
},
|
|
@@ -83,14 +83,13 @@ Specifying `true` will use the default options, specifying an object will allow
|
|
|
83
83
|
This uses [axios-logger](https://github.com/hg-pyun/axios-logger) under the hood.
|
|
84
84
|
By default, if enabled, the `request` and `response` loggers will use `console.info` and the `error` logger will use `console.error`.
|
|
85
85
|
|
|
86
|
-
|
|
87
86
|
## License
|
|
88
87
|
|
|
89
88
|
MIT
|
|
90
89
|
|
|
91
90
|
## Miscellaneous
|
|
92
91
|
|
|
93
|
-
```
|
|
92
|
+
```text
|
|
94
93
|
╚⊙ ⊙╝
|
|
95
94
|
╚═(███)═╝
|
|
96
95
|
╚═(███)═╝
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: true
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
//#endregion
|
|
24
|
+
let _sp_api_sdk_common = require("@sp-api-sdk/common");
|
|
25
|
+
let axios = require("axios");
|
|
26
|
+
axios = __toESM(axios, 1);
|
|
27
|
+
//#region src/api-model/base.ts
|
|
28
|
+
const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
29
|
+
var BaseAPI = class {
|
|
30
|
+
basePath;
|
|
31
|
+
axios;
|
|
32
|
+
configuration;
|
|
33
|
+
constructor(configuration, basePath = BASE_PATH, axios$4 = axios.default) {
|
|
34
|
+
this.basePath = basePath;
|
|
35
|
+
this.axios = axios$4;
|
|
36
|
+
if (configuration) {
|
|
37
|
+
this.configuration = configuration;
|
|
38
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
var RequiredError = class extends Error {
|
|
43
|
+
field;
|
|
44
|
+
constructor(field, msg) {
|
|
45
|
+
super(msg);
|
|
46
|
+
this.field = field;
|
|
47
|
+
this.name = "RequiredError";
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const operationServerMap = {};
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/api-model/common.ts
|
|
53
|
+
const DUMMY_BASE_URL = "https://example.com";
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
const assertParamExists = function(functionName, paramName, paramValue) {
|
|
59
|
+
if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
60
|
+
};
|
|
61
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
62
|
+
if (parameter == null) return;
|
|
63
|
+
if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
64
|
+
else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
|
|
65
|
+
else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
|
|
66
|
+
else urlSearchParams.set(key, parameter);
|
|
67
|
+
}
|
|
68
|
+
const setSearchParams = function(url, ...objects) {
|
|
69
|
+
const searchParams = new URLSearchParams(url.search);
|
|
70
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
71
|
+
url.search = searchParams.toString();
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
75
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
76
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
77
|
+
*/
|
|
78
|
+
const replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
79
|
+
if (value instanceof Set) return Array.from(value);
|
|
80
|
+
else return value;
|
|
81
|
+
};
|
|
82
|
+
const serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
83
|
+
const nonString = typeof value !== "string";
|
|
84
|
+
return (nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString) ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
85
|
+
};
|
|
86
|
+
const toPathString = function(url) {
|
|
87
|
+
return url.pathname + url.search + url.hash;
|
|
88
|
+
};
|
|
89
|
+
const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
90
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
91
|
+
const axiosRequestArgs = {
|
|
92
|
+
...axiosArgs.options,
|
|
93
|
+
url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
|
|
94
|
+
};
|
|
95
|
+
return axios.request(axiosRequestArgs);
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/api-model/api/product-pricing-api.ts
|
|
100
|
+
/**
|
|
101
|
+
* ProductPricingApi - axios parameter creator
|
|
102
|
+
*/
|
|
103
|
+
const ProductPricingApiAxiosParamCreator = function(configuration) {
|
|
104
|
+
return {
|
|
105
|
+
/**
|
|
106
|
+
* Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API.
|
|
107
|
+
* @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
getCompetitiveSummary: async (requests, options = {}) => {
|
|
112
|
+
assertParamExists("getCompetitiveSummary", "requests", requests);
|
|
113
|
+
const localVarUrlObj = new URL(`/batches/products/pricing/2022-05-01/items/competitiveSummary`, DUMMY_BASE_URL);
|
|
114
|
+
let baseOptions;
|
|
115
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
116
|
+
const localVarRequestOptions = {
|
|
117
|
+
method: "POST",
|
|
118
|
+
...baseOptions,
|
|
119
|
+
...options
|
|
120
|
+
};
|
|
121
|
+
const localVarHeaderParameter = {};
|
|
122
|
+
const localVarQueryParameter = {};
|
|
123
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
124
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
125
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
|
+
localVarRequestOptions.headers = {
|
|
128
|
+
...localVarHeaderParameter,
|
|
129
|
+
...headersFromBaseOptions,
|
|
130
|
+
...options.headers
|
|
131
|
+
};
|
|
132
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requests, localVarRequestOptions, configuration);
|
|
133
|
+
return {
|
|
134
|
+
url: toPathString(localVarUrlObj),
|
|
135
|
+
options: localVarRequestOptions
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* 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 might change. Other offers might be featured based on factors such as 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 are applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API.
|
|
140
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
getFeaturedOfferExpectedPriceBatch: async (getFeaturedOfferExpectedPriceBatchRequestBody, options = {}) => {
|
|
145
|
+
assertParamExists("getFeaturedOfferExpectedPriceBatch", "getFeaturedOfferExpectedPriceBatchRequestBody", getFeaturedOfferExpectedPriceBatchRequestBody);
|
|
146
|
+
const localVarUrlObj = new URL(`/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice`, DUMMY_BASE_URL);
|
|
147
|
+
let baseOptions;
|
|
148
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
149
|
+
const localVarRequestOptions = {
|
|
150
|
+
method: "POST",
|
|
151
|
+
...baseOptions,
|
|
152
|
+
...options
|
|
153
|
+
};
|
|
154
|
+
const localVarHeaderParameter = {};
|
|
155
|
+
const localVarQueryParameter = {};
|
|
156
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
157
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
158
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
159
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
160
|
+
localVarRequestOptions.headers = {
|
|
161
|
+
...localVarHeaderParameter,
|
|
162
|
+
...headersFromBaseOptions,
|
|
163
|
+
...options.headers
|
|
164
|
+
};
|
|
165
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getFeaturedOfferExpectedPriceBatchRequestBody, localVarRequestOptions, configuration);
|
|
166
|
+
return {
|
|
167
|
+
url: toPathString(localVarUrlObj),
|
|
168
|
+
options: localVarRequestOptions
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* ProductPricingApi - functional programming interface
|
|
175
|
+
*/
|
|
176
|
+
const ProductPricingApiFp = function(configuration) {
|
|
177
|
+
const localVarAxiosParamCreator = ProductPricingApiAxiosParamCreator(configuration);
|
|
178
|
+
return {
|
|
179
|
+
/**
|
|
180
|
+
* Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API.
|
|
181
|
+
* @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
async getCompetitiveSummary(requests, options) {
|
|
186
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
|
|
187
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
188
|
+
const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getCompetitiveSummary"]?.[localVarOperationServerIndex]?.url;
|
|
189
|
+
return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
* 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 might change. Other offers might be featured based on factors such as 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 are applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API.
|
|
193
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
|
|
198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
|
|
199
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
200
|
+
const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getFeaturedOfferExpectedPriceBatch"]?.[localVarOperationServerIndex]?.url;
|
|
201
|
+
return (axios$2, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$2, localVarOperationServerBasePath || basePath);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* ProductPricingApi - factory interface
|
|
207
|
+
*/
|
|
208
|
+
const ProductPricingApiFactory = function(configuration, basePath, axios$3) {
|
|
209
|
+
const localVarFp = ProductPricingApiFp(configuration);
|
|
210
|
+
return {
|
|
211
|
+
/**
|
|
212
|
+
* Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API.
|
|
213
|
+
* @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
getCompetitiveSummary(requestParameters, options) {
|
|
218
|
+
return localVarFp.getCompetitiveSummary(requestParameters.requests, options).then((request) => request(axios$3, basePath));
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
* 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 might change. Other offers might be featured based on factors such as 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 are applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API.
|
|
222
|
+
* @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
|
|
227
|
+
return localVarFp.getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(axios$3, basePath));
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* ProductPricingApi - object-oriented interface
|
|
233
|
+
*/
|
|
234
|
+
var ProductPricingApi = class extends BaseAPI {
|
|
235
|
+
/**
|
|
236
|
+
* Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API.
|
|
237
|
+
* @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
getCompetitiveSummary(requestParameters, options) {
|
|
242
|
+
return ProductPricingApiFp(this.configuration).getCompetitiveSummary(requestParameters.requests, options).then((request) => request(this.axios, this.basePath));
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* 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 might change. Other offers might be featured based on factors such as 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 are applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API.
|
|
246
|
+
* @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
|
|
251
|
+
return ProductPricingApiFp(this.configuration).getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/api-model/configuration.ts
|
|
256
|
+
var Configuration = class {
|
|
257
|
+
/**
|
|
258
|
+
* parameter for apiKey security
|
|
259
|
+
* @param name security name
|
|
260
|
+
*/
|
|
261
|
+
apiKey;
|
|
262
|
+
/**
|
|
263
|
+
* parameter for basic security
|
|
264
|
+
*/
|
|
265
|
+
username;
|
|
266
|
+
/**
|
|
267
|
+
* parameter for basic security
|
|
268
|
+
*/
|
|
269
|
+
password;
|
|
270
|
+
/**
|
|
271
|
+
* parameter for oauth2 security
|
|
272
|
+
* @param name security name
|
|
273
|
+
* @param scopes oauth2 scope
|
|
274
|
+
*/
|
|
275
|
+
accessToken;
|
|
276
|
+
/**
|
|
277
|
+
* parameter for aws4 signature security
|
|
278
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
279
|
+
* @param {string} options.region - aws region
|
|
280
|
+
* @param {string} options.service - name of the service.
|
|
281
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
282
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
283
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
284
|
+
* @memberof Configuration
|
|
285
|
+
*/
|
|
286
|
+
awsv4;
|
|
287
|
+
/**
|
|
288
|
+
* override base path
|
|
289
|
+
*/
|
|
290
|
+
basePath;
|
|
291
|
+
/**
|
|
292
|
+
* override server index
|
|
293
|
+
*/
|
|
294
|
+
serverIndex;
|
|
295
|
+
/**
|
|
296
|
+
* base options for axios calls
|
|
297
|
+
*/
|
|
298
|
+
baseOptions;
|
|
299
|
+
/**
|
|
300
|
+
* The FormData constructor that will be used to create multipart form data
|
|
301
|
+
* requests. You can inject this here so that execution environments that
|
|
302
|
+
* do not support the FormData class can still run the generated client.
|
|
303
|
+
*
|
|
304
|
+
* @type {new () => FormData}
|
|
305
|
+
*/
|
|
306
|
+
formDataCtor;
|
|
307
|
+
constructor(param = {}) {
|
|
308
|
+
this.apiKey = param.apiKey;
|
|
309
|
+
this.username = param.username;
|
|
310
|
+
this.password = param.password;
|
|
311
|
+
this.accessToken = param.accessToken;
|
|
312
|
+
this.awsv4 = param.awsv4;
|
|
313
|
+
this.basePath = param.basePath;
|
|
314
|
+
this.serverIndex = param.serverIndex;
|
|
315
|
+
this.baseOptions = {
|
|
316
|
+
...param.baseOptions,
|
|
317
|
+
headers: { ...param.baseOptions?.headers }
|
|
318
|
+
};
|
|
319
|
+
this.formDataCtor = param.formDataCtor;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Check if the given MIME is a JSON MIME.
|
|
323
|
+
* JSON MIME examples:
|
|
324
|
+
* application/json
|
|
325
|
+
* application/json; charset=UTF8
|
|
326
|
+
* APPLICATION/JSON
|
|
327
|
+
* application/vnd.company+json
|
|
328
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
329
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
330
|
+
*/
|
|
331
|
+
isJsonMime(mime) {
|
|
332
|
+
return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region src/api-model/models/competitive-summary-included-data.ts
|
|
337
|
+
/**
|
|
338
|
+
* Selling Partner API for Pricing
|
|
339
|
+
* 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](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
|
|
340
|
+
*
|
|
341
|
+
* The version of the OpenAPI document: 2022-05-01
|
|
342
|
+
*
|
|
343
|
+
*
|
|
344
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
345
|
+
* https://openapi-generator.tech
|
|
346
|
+
* Do not edit the class manually.
|
|
347
|
+
*/
|
|
348
|
+
/**
|
|
349
|
+
* The supported data types in the `getCompetitiveSummary` API.
|
|
350
|
+
*/
|
|
351
|
+
const CompetitiveSummaryIncludedData = {
|
|
352
|
+
FeaturedBuyingOptions: "featuredBuyingOptions",
|
|
353
|
+
ReferencePrices: "referencePrices",
|
|
354
|
+
LowestPricedOffers: "lowestPricedOffers",
|
|
355
|
+
SimilarItems: "similarItems"
|
|
356
|
+
};
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region src/api-model/models/condition.ts
|
|
359
|
+
/**
|
|
360
|
+
* Selling Partner API for Pricing
|
|
361
|
+
* 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](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
|
|
362
|
+
*
|
|
363
|
+
* The version of the OpenAPI document: 2022-05-01
|
|
364
|
+
*
|
|
365
|
+
*
|
|
366
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
367
|
+
* https://openapi-generator.tech
|
|
368
|
+
* Do not edit the class manually.
|
|
369
|
+
*/
|
|
370
|
+
/**
|
|
371
|
+
* The condition of the item.
|
|
372
|
+
*/
|
|
373
|
+
const Condition = {
|
|
374
|
+
New: "New",
|
|
375
|
+
Used: "Used",
|
|
376
|
+
Collectible: "Collectible",
|
|
377
|
+
Refurbished: "Refurbished",
|
|
378
|
+
Club: "Club"
|
|
379
|
+
};
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region src/api-model/models/featured-buying-option.ts
|
|
382
|
+
const FeaturedBuyingOptionBuyingOptionTypeEnum = { New: "New" };
|
|
383
|
+
//#endregion
|
|
384
|
+
//#region src/api-model/models/featured-offer-segment.ts
|
|
385
|
+
const FeaturedOfferSegmentCustomerMembershipEnum = {
|
|
386
|
+
Prime: "PRIME",
|
|
387
|
+
NonPrime: "NON_PRIME",
|
|
388
|
+
Default: "DEFAULT"
|
|
389
|
+
};
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/api-model/models/fulfillment-type.ts
|
|
392
|
+
/**
|
|
393
|
+
* Selling Partner API for Pricing
|
|
394
|
+
* 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](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
|
|
395
|
+
*
|
|
396
|
+
* The version of the OpenAPI document: 2022-05-01
|
|
397
|
+
*
|
|
398
|
+
*
|
|
399
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
400
|
+
* https://openapi-generator.tech
|
|
401
|
+
* Do not edit the class manually.
|
|
402
|
+
*/
|
|
403
|
+
/**
|
|
404
|
+
* Indicates whether the item is fulfilled by Amazon or by the seller (merchant).
|
|
405
|
+
*/
|
|
406
|
+
const FulfillmentType = {
|
|
407
|
+
Afn: "AFN",
|
|
408
|
+
Mfn: "MFN"
|
|
409
|
+
};
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region src/api-model/models/http-method.ts
|
|
412
|
+
/**
|
|
413
|
+
* Selling Partner API for Pricing
|
|
414
|
+
* 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](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
|
|
415
|
+
*
|
|
416
|
+
* The version of the OpenAPI document: 2022-05-01
|
|
417
|
+
*
|
|
418
|
+
*
|
|
419
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
420
|
+
* https://openapi-generator.tech
|
|
421
|
+
* Do not edit the class manually.
|
|
422
|
+
*/
|
|
423
|
+
/**
|
|
424
|
+
* The HTTP method associated with an individual request within a batch.
|
|
425
|
+
*/
|
|
426
|
+
const HttpMethod = {
|
|
427
|
+
Get: "GET",
|
|
428
|
+
Put: "PUT",
|
|
429
|
+
Patch: "PATCH",
|
|
430
|
+
Delete: "DELETE",
|
|
431
|
+
Post: "POST"
|
|
432
|
+
};
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region src/api-model/models/lowest-priced-offers-input.ts
|
|
435
|
+
const LowestPricedOffersInputOfferTypeEnum = { Consumer: "Consumer" };
|
|
436
|
+
//#endregion
|
|
437
|
+
//#region src/api-model/models/offer.ts
|
|
438
|
+
const OfferSubConditionEnum = {
|
|
439
|
+
New: "New",
|
|
440
|
+
Mint: "Mint",
|
|
441
|
+
VeryGood: "VeryGood",
|
|
442
|
+
Good: "Good",
|
|
443
|
+
Acceptable: "Acceptable",
|
|
444
|
+
Poor: "Poor",
|
|
445
|
+
Club: "Club",
|
|
446
|
+
Oem: "OEM",
|
|
447
|
+
Warranty: "Warranty",
|
|
448
|
+
RefurbishedWarranty: "RefurbishedWarranty",
|
|
449
|
+
Refurbished: "Refurbished",
|
|
450
|
+
OpenBox: "OpenBox",
|
|
451
|
+
Other: "Other"
|
|
452
|
+
};
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region src/api-model/models/prime-details.ts
|
|
455
|
+
const PrimeDetailsEligibilityEnum = {
|
|
456
|
+
National: "NATIONAL",
|
|
457
|
+
Regional: "REGIONAL",
|
|
458
|
+
None: "NONE"
|
|
459
|
+
};
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region src/api-model/models/shipping-option.ts
|
|
462
|
+
const ShippingOptionShippingOptionTypeEnum = { Default: "DEFAULT" };
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region src/client.ts
|
|
465
|
+
const clientRateLimits = [{
|
|
466
|
+
method: "post",
|
|
467
|
+
urlRegex: /^\/batches\/products\/pricing\/2022\u{2D}05\u{2D}01\/offer\/featuredOfferExpectedPrice$/v,
|
|
468
|
+
rate: .033,
|
|
469
|
+
burst: 1
|
|
470
|
+
}, {
|
|
471
|
+
method: "post",
|
|
472
|
+
urlRegex: /^\/batches\/products\/pricing\/2022\u{2D}05\u{2D}01\/items\/competitiveSummary$/v,
|
|
473
|
+
rate: .033,
|
|
474
|
+
burst: 1
|
|
475
|
+
}];
|
|
476
|
+
var ProductPricingApiClient = class extends ProductPricingApi {
|
|
477
|
+
constructor(configuration) {
|
|
478
|
+
const { axios, endpoint } = (0, _sp_api_sdk_common.createAxiosInstance)(configuration, clientRateLimits);
|
|
479
|
+
super(new Configuration(), endpoint, axios);
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
//#endregion
|
|
483
|
+
exports.CompetitiveSummaryIncludedData = CompetitiveSummaryIncludedData;
|
|
484
|
+
exports.Condition = Condition;
|
|
485
|
+
exports.FeaturedBuyingOptionBuyingOptionTypeEnum = FeaturedBuyingOptionBuyingOptionTypeEnum;
|
|
486
|
+
exports.FeaturedOfferSegmentCustomerMembershipEnum = FeaturedOfferSegmentCustomerMembershipEnum;
|
|
487
|
+
exports.FulfillmentType = FulfillmentType;
|
|
488
|
+
exports.HttpMethod = HttpMethod;
|
|
489
|
+
exports.LowestPricedOffersInputOfferTypeEnum = LowestPricedOffersInputOfferTypeEnum;
|
|
490
|
+
exports.OfferSubConditionEnum = OfferSubConditionEnum;
|
|
491
|
+
exports.PrimeDetailsEligibilityEnum = PrimeDetailsEligibilityEnum;
|
|
492
|
+
exports.ProductPricingApi = ProductPricingApi;
|
|
493
|
+
exports.ProductPricingApiAxiosParamCreator = ProductPricingApiAxiosParamCreator;
|
|
494
|
+
exports.ProductPricingApiClient = ProductPricingApiClient;
|
|
495
|
+
exports.ProductPricingApiFactory = ProductPricingApiFactory;
|
|
496
|
+
exports.ProductPricingApiFp = ProductPricingApiFp;
|
|
497
|
+
exports.ShippingOptionShippingOptionTypeEnum = ShippingOptionShippingOptionTypeEnum;
|
|
498
|
+
exports.clientRateLimits = clientRateLimits;
|
|
499
|
+
|
|
500
|
+
//# sourceMappingURL=index.cjs.map
|