@sp-api-sdk/feeds-api-2021-06-30 3.2.14 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +698 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/{types/api-model/api/feeds-api.d.ts → index.d.cts} +415 -31
  5. package/dist/index.d.ts +692 -0
  6. package/dist/index.js +653 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/feeds-api.js +0 -454
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/create-feed-document-response.js +0 -15
  16. package/dist/cjs/api-model/models/create-feed-document-specification.js +0 -15
  17. package/dist/cjs/api-model/models/create-feed-response.js +0 -15
  18. package/dist/cjs/api-model/models/create-feed-specification.js +0 -15
  19. package/dist/cjs/api-model/models/error-list.js +0 -15
  20. package/dist/cjs/api-model/models/feed-document.js +0 -19
  21. package/dist/cjs/api-model/models/feed.js +0 -23
  22. package/dist/cjs/api-model/models/get-feeds-response.js +0 -15
  23. package/dist/cjs/api-model/models/index.js +0 -25
  24. package/dist/cjs/api-model/models/model-error.js +0 -15
  25. package/dist/cjs/client.js +0 -56
  26. package/dist/cjs/index.js +0 -19
  27. package/dist/es/api-model/api/feeds-api.js +0 -444
  28. package/dist/es/api-model/api.js +0 -14
  29. package/dist/es/api-model/base.js +0 -44
  30. package/dist/es/api-model/common.js +0 -110
  31. package/dist/es/api-model/configuration.js +0 -94
  32. package/dist/es/api-model/index.js +0 -16
  33. package/dist/es/api-model/models/create-feed-document-response.js +0 -14
  34. package/dist/es/api-model/models/create-feed-document-specification.js +0 -14
  35. package/dist/es/api-model/models/create-feed-response.js +0 -14
  36. package/dist/es/api-model/models/create-feed-specification.js +0 -14
  37. package/dist/es/api-model/models/error-list.js +0 -14
  38. package/dist/es/api-model/models/feed-document.js +0 -16
  39. package/dist/es/api-model/models/feed.js +0 -20
  40. package/dist/es/api-model/models/get-feeds-response.js +0 -14
  41. package/dist/es/api-model/models/index.js +0 -9
  42. package/dist/es/api-model/models/model-error.js +0 -14
  43. package/dist/es/client.js +0 -52
  44. package/dist/es/index.js +0 -3
  45. package/dist/types/api-model/api.d.ts +0 -12
  46. package/dist/types/api-model/base.d.ts +0 -42
  47. package/dist/types/api-model/common.d.ts +0 -34
  48. package/dist/types/api-model/configuration.d.ts +0 -98
  49. package/dist/types/api-model/index.d.ts +0 -14
  50. package/dist/types/api-model/models/create-feed-document-response.d.ts +0 -24
  51. package/dist/types/api-model/models/create-feed-document-specification.d.ts +0 -20
  52. package/dist/types/api-model/models/create-feed-response.d.ts +0 -20
  53. package/dist/types/api-model/models/create-feed-specification.d.ts +0 -34
  54. package/dist/types/api-model/models/error-list.d.ts +0 -20
  55. package/dist/types/api-model/models/feed-document.d.ts +0 -32
  56. package/dist/types/api-model/models/feed.d.ts +0 -56
  57. package/dist/types/api-model/models/get-feeds-response.d.ts +0 -25
  58. package/dist/types/api-model/models/index.d.ts +0 -9
  59. package/dist/types/api-model/models/model-error.d.ts +0 -28
  60. package/dist/types/client.d.ts +0 -6
  61. package/dist/types/index.d.ts +0 -3
package/dist/index.js ADDED
@@ -0,0 +1,653 @@
1
+ // src/client.ts
2
+ import { createAxiosInstance } from "@sp-api-sdk/common";
3
+
4
+ // src/api-model/api/feeds-api.ts
5
+ import globalAxios2 from "axios";
6
+
7
+ // src/api-model/base.ts
8
+ import globalAxios from "axios";
9
+ var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
10
+ var COLLECTION_FORMATS = {
11
+ csv: ",",
12
+ ssv: " ",
13
+ tsv: " ",
14
+ pipes: "|"
15
+ };
16
+ var BaseAPI = class {
17
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
18
+ this.basePath = basePath;
19
+ this.axios = axios;
20
+ if (configuration) {
21
+ this.configuration = configuration;
22
+ this.basePath = configuration.basePath ?? basePath;
23
+ }
24
+ }
25
+ basePath;
26
+ axios;
27
+ configuration;
28
+ };
29
+ var RequiredError = class extends Error {
30
+ constructor(field, msg) {
31
+ super(msg);
32
+ this.field = field;
33
+ this.name = "RequiredError";
34
+ }
35
+ field;
36
+ };
37
+ var operationServerMap = {};
38
+
39
+ // src/api-model/common.ts
40
+ var DUMMY_BASE_URL = "https://example.com";
41
+ var assertParamExists = function(functionName, paramName, paramValue) {
42
+ if (paramValue === null || paramValue === void 0) {
43
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
44
+ }
45
+ };
46
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
47
+ if (parameter == null) return;
48
+ if (typeof parameter === "object") {
49
+ if (Array.isArray(parameter) || parameter instanceof Set) {
50
+ parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
51
+ } else {
52
+ Object.keys(parameter).forEach(
53
+ (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
54
+ );
55
+ }
56
+ } else {
57
+ if (urlSearchParams.has(key)) {
58
+ urlSearchParams.append(key, parameter);
59
+ } else {
60
+ urlSearchParams.set(key, parameter);
61
+ }
62
+ }
63
+ }
64
+ var setSearchParams = function(url, ...objects) {
65
+ const searchParams = new URLSearchParams(url.search);
66
+ setFlattenedQueryParams(searchParams, objects);
67
+ url.search = searchParams.toString();
68
+ };
69
+ var replaceWithSerializableTypeIfNeeded = function(key, value) {
70
+ if (value instanceof Set) {
71
+ return Array.from(value);
72
+ } else {
73
+ return value;
74
+ }
75
+ };
76
+ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
77
+ const nonString = typeof value !== "string";
78
+ const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
79
+ return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
80
+ };
81
+ var toPathString = function(url) {
82
+ return url.pathname + url.search + url.hash;
83
+ };
84
+ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
85
+ return (axios = globalAxios3, basePath = BASE_PATH2) => {
86
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
87
+ return axios.request(axiosRequestArgs);
88
+ };
89
+ };
90
+
91
+ // src/api-model/api/feeds-api.ts
92
+ var FeedsApiAxiosParamCreator = function(configuration) {
93
+ return {
94
+ /**
95
+ * Cancels the feed that you specify. Only feeds with `processingStatus=IN_QUEUE` can be cancelled. Cancelled feeds are returned in subsequent calls to the [`getFeed`](https://developer-docs.amazon.com/sp-api/reference/getfeed) and [`getFeeds`](https://developer-docs.amazon.com/sp-api/reference/getfeeds) operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
96
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ cancelFeed: async (feedId, options = {}) => {
101
+ assertParamExists("cancelFeed", "feedId", feedId);
102
+ const localVarPath = `/feeds/2021-06-30/feeds/{feedId}`.replace("{feedId}", encodeURIComponent(String(feedId)));
103
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ }
108
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
109
+ const localVarHeaderParameter = {};
110
+ const localVarQueryParameter = {};
111
+ localVarHeaderParameter["Accept"] = "application/json";
112
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
115
+ return {
116
+ url: toPathString(localVarUrlObj),
117
+ options: localVarRequestOptions
118
+ };
119
+ },
120
+ /**
121
+ * Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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). The rate limit for the [`JSON_LISTINGS_FEED`](https://developer-docs.amazon.com/sp-api/docs/listings-feed-type-values#listings-feed) feed type differs from the rate limit for the [`createFeed`](https://developer-docs.amazon.com/sp-api/reference/createfeed) operation. For more information, refer to the [Building Listings Management Workflows Guide](https://developer-docs.amazon.com/sp-api/docs/building-listings-management-workflows-guide#should-i-submit-in-bulk-using-the-json_listings_feed-or-individually-with-the-listings-items-api).
122
+ * @param {CreateFeedSpecification} body Information required to create the feed.
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ createFeed: async (body, options = {}) => {
127
+ assertParamExists("createFeed", "body", body);
128
+ const localVarPath = `/feeds/2021-06-30/feeds`;
129
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
130
+ let baseOptions;
131
+ if (configuration) {
132
+ baseOptions = configuration.baseOptions;
133
+ }
134
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
135
+ const localVarHeaderParameter = {};
136
+ const localVarQueryParameter = {};
137
+ localVarHeaderParameter["Content-Type"] = "application/json";
138
+ localVarHeaderParameter["Accept"] = "application/json";
139
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
140
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
142
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
143
+ return {
144
+ url: toPathString(localVarUrlObj),
145
+ options: localVarRequestOptions
146
+ };
147
+ },
148
+ /**
149
+ * Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a `feedDocumentId` value that you can pass in with a subsequent call to the [`createFeed`](https://developer-docs.amazon.com/sp-api/reference/createfeed) operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
150
+ * @param {CreateFeedDocumentSpecification} body Specifies the content type for the createFeedDocument operation.
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ createFeedDocument: async (body, options = {}) => {
155
+ assertParamExists("createFeedDocument", "body", body);
156
+ const localVarPath = `/feeds/2021-06-30/documents`;
157
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
158
+ let baseOptions;
159
+ if (configuration) {
160
+ baseOptions = configuration.baseOptions;
161
+ }
162
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
163
+ const localVarHeaderParameter = {};
164
+ const localVarQueryParameter = {};
165
+ localVarHeaderParameter["Content-Type"] = "application/json";
166
+ localVarHeaderParameter["Accept"] = "application/json";
167
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
168
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
170
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
171
+ return {
172
+ url: toPathString(localVarUrlObj),
173
+ options: localVarRequestOptions
174
+ };
175
+ },
176
+ /**
177
+ * Returns feed details (including the `resultDocumentId`, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
178
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ getFeed: async (feedId, options = {}) => {
183
+ assertParamExists("getFeed", "feedId", feedId);
184
+ const localVarPath = `/feeds/2021-06-30/feeds/{feedId}`.replace("{feedId}", encodeURIComponent(String(feedId)));
185
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
186
+ let baseOptions;
187
+ if (configuration) {
188
+ baseOptions = configuration.baseOptions;
189
+ }
190
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
191
+ const localVarHeaderParameter = {};
192
+ const localVarQueryParameter = {};
193
+ localVarHeaderParameter["Accept"] = "application/json";
194
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
197
+ return {
198
+ url: toPathString(localVarUrlObj),
199
+ options: localVarRequestOptions
200
+ };
201
+ },
202
+ /**
203
+ * Returns the information required for retrieving a feed document\'s contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
204
+ * @param {string} feedDocumentId The identifier of the feed document.
205
+ * @param {boolean} [enableContentEncodingUrlHeader] When `true`, the Content-Encoding header on the returned URL is set to `gzip` instead of the default `identity` when `compressionAlgorithm` is `GZIP`. This allows automatic decompression by HTTP clients.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ getFeedDocument: async (feedDocumentId, enableContentEncodingUrlHeader, options = {}) => {
210
+ assertParamExists("getFeedDocument", "feedDocumentId", feedDocumentId);
211
+ const localVarPath = `/feeds/2021-06-30/documents/{feedDocumentId}`.replace("{feedDocumentId}", encodeURIComponent(String(feedDocumentId)));
212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
213
+ let baseOptions;
214
+ if (configuration) {
215
+ baseOptions = configuration.baseOptions;
216
+ }
217
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
218
+ const localVarHeaderParameter = {};
219
+ const localVarQueryParameter = {};
220
+ if (enableContentEncodingUrlHeader !== void 0) {
221
+ localVarQueryParameter["enableContentEncodingUrlHeader"] = enableContentEncodingUrlHeader;
222
+ }
223
+ localVarHeaderParameter["Accept"] = "application/json";
224
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
225
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
227
+ return {
228
+ url: toPathString(localVarUrlObj),
229
+ options: localVarRequestOptions
230
+ };
231
+ },
232
+ /**
233
+ * Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
234
+ * @param {Array<string>} [feedTypes] A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required.
235
+ * @param {Array<string>} [marketplaceIds] A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify.
236
+ * @param {number} [pageSize] The maximum number of feeds to return in a single call.
237
+ * @param {Array<GetFeedsProcessingStatusesEnum>} [processingStatuses] A list of processing statuses used to filter feeds.
238
+ * @param {string} [createdSince] The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days.
239
+ * @param {string} [createdUntil] The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now.
240
+ * @param {string} [nextToken] A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail.
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ getFeeds: async (feedTypes, marketplaceIds, pageSize, processingStatuses, createdSince, createdUntil, nextToken, options = {}) => {
245
+ const localVarPath = `/feeds/2021-06-30/feeds`;
246
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
247
+ let baseOptions;
248
+ if (configuration) {
249
+ baseOptions = configuration.baseOptions;
250
+ }
251
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
252
+ const localVarHeaderParameter = {};
253
+ const localVarQueryParameter = {};
254
+ if (feedTypes) {
255
+ localVarQueryParameter["feedTypes"] = feedTypes.join(COLLECTION_FORMATS.csv);
256
+ }
257
+ if (marketplaceIds) {
258
+ localVarQueryParameter["marketplaceIds"] = marketplaceIds.join(COLLECTION_FORMATS.csv);
259
+ }
260
+ if (pageSize !== void 0) {
261
+ localVarQueryParameter["pageSize"] = pageSize;
262
+ }
263
+ if (processingStatuses) {
264
+ localVarQueryParameter["processingStatuses"] = processingStatuses.join(COLLECTION_FORMATS.csv);
265
+ }
266
+ if (createdSince !== void 0) {
267
+ localVarQueryParameter["createdSince"] = createdSince instanceof Date ? createdSince.toISOString() : createdSince;
268
+ }
269
+ if (createdUntil !== void 0) {
270
+ localVarQueryParameter["createdUntil"] = createdUntil instanceof Date ? createdUntil.toISOString() : createdUntil;
271
+ }
272
+ if (nextToken !== void 0) {
273
+ localVarQueryParameter["nextToken"] = nextToken;
274
+ }
275
+ localVarHeaderParameter["Accept"] = "application/json";
276
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
277
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
278
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
279
+ return {
280
+ url: toPathString(localVarUrlObj),
281
+ options: localVarRequestOptions
282
+ };
283
+ }
284
+ };
285
+ };
286
+ var FeedsApiFp = function(configuration) {
287
+ const localVarAxiosParamCreator = FeedsApiAxiosParamCreator(configuration);
288
+ return {
289
+ /**
290
+ * Cancels the feed that you specify. Only feeds with `processingStatus=IN_QUEUE` can be cancelled. Cancelled feeds are returned in subsequent calls to the [`getFeed`](https://developer-docs.amazon.com/sp-api/reference/getfeed) and [`getFeeds`](https://developer-docs.amazon.com/sp-api/reference/getfeeds) operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
291
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ */
295
+ async cancelFeed(feedId, options) {
296
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelFeed(feedId, options);
297
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
298
+ const localVarOperationServerBasePath = operationServerMap["FeedsApi.cancelFeed"]?.[localVarOperationServerIndex]?.url;
299
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
300
+ },
301
+ /**
302
+ * Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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). The rate limit for the [`JSON_LISTINGS_FEED`](https://developer-docs.amazon.com/sp-api/docs/listings-feed-type-values#listings-feed) feed type differs from the rate limit for the [`createFeed`](https://developer-docs.amazon.com/sp-api/reference/createfeed) operation. For more information, refer to the [Building Listings Management Workflows Guide](https://developer-docs.amazon.com/sp-api/docs/building-listings-management-workflows-guide#should-i-submit-in-bulk-using-the-json_listings_feed-or-individually-with-the-listings-items-api).
303
+ * @param {CreateFeedSpecification} body Information required to create the feed.
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ */
307
+ async createFeed(body, options) {
308
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createFeed(body, options);
309
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
310
+ const localVarOperationServerBasePath = operationServerMap["FeedsApi.createFeed"]?.[localVarOperationServerIndex]?.url;
311
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
312
+ },
313
+ /**
314
+ * Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a `feedDocumentId` value that you can pass in with a subsequent call to the [`createFeed`](https://developer-docs.amazon.com/sp-api/reference/createfeed) operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
315
+ * @param {CreateFeedDocumentSpecification} body Specifies the content type for the createFeedDocument operation.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ async createFeedDocument(body, options) {
320
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createFeedDocument(body, options);
321
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
322
+ const localVarOperationServerBasePath = operationServerMap["FeedsApi.createFeedDocument"]?.[localVarOperationServerIndex]?.url;
323
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
324
+ },
325
+ /**
326
+ * Returns feed details (including the `resultDocumentId`, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
327
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ async getFeed(feedId, options) {
332
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeed(feedId, options);
333
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
334
+ const localVarOperationServerBasePath = operationServerMap["FeedsApi.getFeed"]?.[localVarOperationServerIndex]?.url;
335
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
336
+ },
337
+ /**
338
+ * Returns the information required for retrieving a feed document\'s contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
339
+ * @param {string} feedDocumentId The identifier of the feed document.
340
+ * @param {boolean} [enableContentEncodingUrlHeader] When &#x60;true&#x60;, the Content-Encoding header on the returned URL is set to &#x60;gzip&#x60; instead of the default &#x60;identity&#x60; when &#x60;compressionAlgorithm&#x60; is &#x60;GZIP&#x60;. This allows automatic decompression by HTTP clients.
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ */
344
+ async getFeedDocument(feedDocumentId, enableContentEncodingUrlHeader, options) {
345
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeedDocument(feedDocumentId, enableContentEncodingUrlHeader, options);
346
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
347
+ const localVarOperationServerBasePath = operationServerMap["FeedsApi.getFeedDocument"]?.[localVarOperationServerIndex]?.url;
348
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
349
+ },
350
+ /**
351
+ * Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
352
+ * @param {Array<string>} [feedTypes] A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required.
353
+ * @param {Array<string>} [marketplaceIds] A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify.
354
+ * @param {number} [pageSize] The maximum number of feeds to return in a single call.
355
+ * @param {Array<GetFeedsProcessingStatusesEnum>} [processingStatuses] A list of processing statuses used to filter feeds.
356
+ * @param {string} [createdSince] The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days.
357
+ * @param {string} [createdUntil] The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now.
358
+ * @param {string} [nextToken] A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail.
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ */
362
+ async getFeeds(feedTypes, marketplaceIds, pageSize, processingStatuses, createdSince, createdUntil, nextToken, options) {
363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeeds(feedTypes, marketplaceIds, pageSize, processingStatuses, createdSince, createdUntil, nextToken, options);
364
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
365
+ const localVarOperationServerBasePath = operationServerMap["FeedsApi.getFeeds"]?.[localVarOperationServerIndex]?.url;
366
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
367
+ }
368
+ };
369
+ };
370
+ var FeedsApiFactory = function(configuration, basePath, axios) {
371
+ const localVarFp = FeedsApiFp(configuration);
372
+ return {
373
+ /**
374
+ * Cancels the feed that you specify. Only feeds with `processingStatus=IN_QUEUE` can be cancelled. Cancelled feeds are returned in subsequent calls to the [`getFeed`](https://developer-docs.amazon.com/sp-api/reference/getfeed) and [`getFeeds`](https://developer-docs.amazon.com/sp-api/reference/getfeeds) operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
375
+ * @param {FeedsApiCancelFeedRequest} requestParameters Request parameters.
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ cancelFeed(requestParameters, options) {
380
+ return localVarFp.cancelFeed(requestParameters.feedId, options).then((request) => request(axios, basePath));
381
+ },
382
+ /**
383
+ * Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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). The rate limit for the [`JSON_LISTINGS_FEED`](https://developer-docs.amazon.com/sp-api/docs/listings-feed-type-values#listings-feed) feed type differs from the rate limit for the [`createFeed`](https://developer-docs.amazon.com/sp-api/reference/createfeed) operation. For more information, refer to the [Building Listings Management Workflows Guide](https://developer-docs.amazon.com/sp-api/docs/building-listings-management-workflows-guide#should-i-submit-in-bulk-using-the-json_listings_feed-or-individually-with-the-listings-items-api).
384
+ * @param {FeedsApiCreateFeedRequest} requestParameters Request parameters.
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ createFeed(requestParameters, options) {
389
+ return localVarFp.createFeed(requestParameters.body, options).then((request) => request(axios, basePath));
390
+ },
391
+ /**
392
+ * Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a `feedDocumentId` value that you can pass in with a subsequent call to the [`createFeed`](https://developer-docs.amazon.com/sp-api/reference/createfeed) operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
393
+ * @param {FeedsApiCreateFeedDocumentRequest} requestParameters Request parameters.
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ createFeedDocument(requestParameters, options) {
398
+ return localVarFp.createFeedDocument(requestParameters.body, options).then((request) => request(axios, basePath));
399
+ },
400
+ /**
401
+ * Returns feed details (including the `resultDocumentId`, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
402
+ * @param {FeedsApiGetFeedRequest} requestParameters Request parameters.
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ getFeed(requestParameters, options) {
407
+ return localVarFp.getFeed(requestParameters.feedId, options).then((request) => request(axios, basePath));
408
+ },
409
+ /**
410
+ * Returns the information required for retrieving a feed document\'s contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
411
+ * @param {FeedsApiGetFeedDocumentRequest} requestParameters Request parameters.
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ getFeedDocument(requestParameters, options) {
416
+ return localVarFp.getFeedDocument(requestParameters.feedDocumentId, requestParameters.enableContentEncodingUrlHeader, options).then((request) => request(axios, basePath));
417
+ },
418
+ /**
419
+ * Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
420
+ * @param {FeedsApiGetFeedsRequest} requestParameters Request parameters.
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ getFeeds(requestParameters = {}, options) {
425
+ return localVarFp.getFeeds(requestParameters.feedTypes, requestParameters.marketplaceIds, requestParameters.pageSize, requestParameters.processingStatuses, requestParameters.createdSince, requestParameters.createdUntil, requestParameters.nextToken, options).then((request) => request(axios, basePath));
426
+ }
427
+ };
428
+ };
429
+ var FeedsApi = class extends BaseAPI {
430
+ /**
431
+ * Cancels the feed that you specify. Only feeds with `processingStatus=IN_QUEUE` can be cancelled. Cancelled feeds are returned in subsequent calls to the [`getFeed`](https://developer-docs.amazon.com/sp-api/reference/getfeed) and [`getFeeds`](https://developer-docs.amazon.com/sp-api/reference/getfeeds) operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
432
+ * @param {FeedsApiCancelFeedRequest} requestParameters Request parameters.
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ cancelFeed(requestParameters, options) {
437
+ return FeedsApiFp(this.configuration).cancelFeed(requestParameters.feedId, options).then((request) => request(this.axios, this.basePath));
438
+ }
439
+ /**
440
+ * Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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). The rate limit for the [`JSON_LISTINGS_FEED`](https://developer-docs.amazon.com/sp-api/docs/listings-feed-type-values#listings-feed) feed type differs from the rate limit for the [`createFeed`](https://developer-docs.amazon.com/sp-api/reference/createfeed) operation. For more information, refer to the [Building Listings Management Workflows Guide](https://developer-docs.amazon.com/sp-api/docs/building-listings-management-workflows-guide#should-i-submit-in-bulk-using-the-json_listings_feed-or-individually-with-the-listings-items-api).
441
+ * @param {FeedsApiCreateFeedRequest} requestParameters Request parameters.
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ createFeed(requestParameters, options) {
446
+ return FeedsApiFp(this.configuration).createFeed(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
447
+ }
448
+ /**
449
+ * Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a `feedDocumentId` value that you can pass in with a subsequent call to the [`createFeed`](https://developer-docs.amazon.com/sp-api/reference/createfeed) operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
450
+ * @param {FeedsApiCreateFeedDocumentRequest} requestParameters Request parameters.
451
+ * @param {*} [options] Override http request option.
452
+ * @throws {RequiredError}
453
+ */
454
+ createFeedDocument(requestParameters, options) {
455
+ return FeedsApiFp(this.configuration).createFeedDocument(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
456
+ }
457
+ /**
458
+ * Returns feed details (including the `resultDocumentId`, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
459
+ * @param {FeedsApiGetFeedRequest} requestParameters Request parameters.
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ getFeed(requestParameters, options) {
464
+ return FeedsApiFp(this.configuration).getFeed(requestParameters.feedId, options).then((request) => request(this.axios, this.basePath));
465
+ }
466
+ /**
467
+ * Returns the information required for retrieving a feed document\'s contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
468
+ * @param {FeedsApiGetFeedDocumentRequest} requestParameters Request parameters.
469
+ * @param {*} [options] Override http request option.
470
+ * @throws {RequiredError}
471
+ */
472
+ getFeedDocument(requestParameters, options) {
473
+ return FeedsApiFp(this.configuration).getFeedDocument(requestParameters.feedDocumentId, requestParameters.enableContentEncodingUrlHeader, options).then((request) => request(this.axios, this.basePath));
474
+ }
475
+ /**
476
+ * Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have 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).
477
+ * @param {FeedsApiGetFeedsRequest} requestParameters Request parameters.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ getFeeds(requestParameters = {}, options) {
482
+ return FeedsApiFp(this.configuration).getFeeds(requestParameters.feedTypes, requestParameters.marketplaceIds, requestParameters.pageSize, requestParameters.processingStatuses, requestParameters.createdSince, requestParameters.createdUntil, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
483
+ }
484
+ };
485
+ var GetFeedsProcessingStatusesEnum = {
486
+ Cancelled: "CANCELLED",
487
+ Done: "DONE",
488
+ Fatal: "FATAL",
489
+ InProgress: "IN_PROGRESS",
490
+ InQueue: "IN_QUEUE"
491
+ };
492
+
493
+ // src/api-model/configuration.ts
494
+ var Configuration = class {
495
+ /**
496
+ * parameter for apiKey security
497
+ * @param name security name
498
+ */
499
+ apiKey;
500
+ /**
501
+ * parameter for basic security
502
+ */
503
+ username;
504
+ /**
505
+ * parameter for basic security
506
+ */
507
+ password;
508
+ /**
509
+ * parameter for oauth2 security
510
+ * @param name security name
511
+ * @param scopes oauth2 scope
512
+ */
513
+ accessToken;
514
+ /**
515
+ * parameter for aws4 signature security
516
+ * @param {Object} AWS4Signature - AWS4 Signature security
517
+ * @param {string} options.region - aws region
518
+ * @param {string} options.service - name of the service.
519
+ * @param {string} credentials.accessKeyId - aws access key id
520
+ * @param {string} credentials.secretAccessKey - aws access key
521
+ * @param {string} credentials.sessionToken - aws session token
522
+ * @memberof Configuration
523
+ */
524
+ awsv4;
525
+ /**
526
+ * override base path
527
+ */
528
+ basePath;
529
+ /**
530
+ * override server index
531
+ */
532
+ serverIndex;
533
+ /**
534
+ * base options for axios calls
535
+ */
536
+ baseOptions;
537
+ /**
538
+ * The FormData constructor that will be used to create multipart form data
539
+ * requests. You can inject this here so that execution environments that
540
+ * do not support the FormData class can still run the generated client.
541
+ *
542
+ * @type {new () => FormData}
543
+ */
544
+ formDataCtor;
545
+ constructor(param = {}) {
546
+ this.apiKey = param.apiKey;
547
+ this.username = param.username;
548
+ this.password = param.password;
549
+ this.accessToken = param.accessToken;
550
+ this.awsv4 = param.awsv4;
551
+ this.basePath = param.basePath;
552
+ this.serverIndex = param.serverIndex;
553
+ this.baseOptions = {
554
+ ...param.baseOptions,
555
+ headers: {
556
+ ...param.baseOptions?.headers
557
+ }
558
+ };
559
+ this.formDataCtor = param.formDataCtor;
560
+ }
561
+ /**
562
+ * Check if the given MIME is a JSON MIME.
563
+ * JSON MIME examples:
564
+ * application/json
565
+ * application/json; charset=UTF8
566
+ * APPLICATION/JSON
567
+ * application/vnd.company+json
568
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
569
+ * @return True if the given MIME is JSON, false otherwise.
570
+ */
571
+ isJsonMime(mime) {
572
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
573
+ return mime !== null && jsonMime.test(mime);
574
+ }
575
+ };
576
+
577
+ // src/api-model/models/feed.ts
578
+ var FeedProcessingStatusEnum = {
579
+ Cancelled: "CANCELLED",
580
+ Done: "DONE",
581
+ Fatal: "FATAL",
582
+ InProgress: "IN_PROGRESS",
583
+ InQueue: "IN_QUEUE"
584
+ };
585
+
586
+ // src/api-model/models/feed-document.ts
587
+ var FeedDocumentCompressionAlgorithmEnum = {
588
+ Gzip: "GZIP"
589
+ };
590
+
591
+ // src/client.ts
592
+ var clientRateLimits = [
593
+ {
594
+ method: "get",
595
+ // eslint-disable-next-line prefer-regex-literals
596
+ urlRegex: new RegExp("^/feeds/2021-06-30/feeds$"),
597
+ rate: 0.0222,
598
+ burst: 10
599
+ },
600
+ {
601
+ method: "post",
602
+ // eslint-disable-next-line prefer-regex-literals
603
+ urlRegex: new RegExp("^/feeds/2021-06-30/feeds$"),
604
+ rate: 83e-4,
605
+ burst: 15
606
+ },
607
+ {
608
+ method: "delete",
609
+ // eslint-disable-next-line prefer-regex-literals
610
+ urlRegex: new RegExp("^/feeds/2021-06-30/feeds/[^/]*$"),
611
+ rate: 2,
612
+ burst: 15
613
+ },
614
+ {
615
+ method: "get",
616
+ // eslint-disable-next-line prefer-regex-literals
617
+ urlRegex: new RegExp("^/feeds/2021-06-30/feeds/[^/]*$"),
618
+ rate: 2,
619
+ burst: 15
620
+ },
621
+ {
622
+ method: "post",
623
+ // eslint-disable-next-line prefer-regex-literals
624
+ urlRegex: new RegExp("^/feeds/2021-06-30/documents$"),
625
+ rate: 0.5,
626
+ burst: 15
627
+ },
628
+ {
629
+ method: "get",
630
+ // eslint-disable-next-line prefer-regex-literals
631
+ urlRegex: new RegExp("^/feeds/2021-06-30/documents/[^/]*$"),
632
+ rate: 0.0222,
633
+ burst: 10
634
+ }
635
+ ];
636
+ var FeedsApiClient = class extends FeedsApi {
637
+ constructor(configuration) {
638
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
639
+ super(new Configuration(), endpoint, axios);
640
+ }
641
+ };
642
+ export {
643
+ FeedDocumentCompressionAlgorithmEnum,
644
+ FeedProcessingStatusEnum,
645
+ FeedsApi,
646
+ FeedsApiAxiosParamCreator,
647
+ FeedsApiClient,
648
+ FeedsApiFactory,
649
+ FeedsApiFp,
650
+ GetFeedsProcessingStatusesEnum,
651
+ clientRateLimits
652
+ };
653
+ //# sourceMappingURL=index.js.map