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