@sp-api-sdk/feeds-api-2021-06-30 3.2.13 → 3.3.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.
@@ -38,7 +38,7 @@ const FeedsApiAxiosParamCreator = function (configuration) {
38
38
  // verify required parameter 'feedId' is not null or undefined
39
39
  (0, common_1.assertParamExists)('cancelFeed', 'feedId', feedId);
40
40
  const localVarPath = `/feeds/2021-06-30/feeds/{feedId}`
41
- .replace(`{${"feedId"}}`, encodeURIComponent(String(feedId)));
41
+ .replace('{feedId}', encodeURIComponent(String(feedId)));
42
42
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
43
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
44
44
  let baseOptions;
@@ -127,7 +127,7 @@ const FeedsApiAxiosParamCreator = function (configuration) {
127
127
  // verify required parameter 'feedId' is not null or undefined
128
128
  (0, common_1.assertParamExists)('getFeed', 'feedId', feedId);
129
129
  const localVarPath = `/feeds/2021-06-30/feeds/{feedId}`
130
- .replace(`{${"feedId"}}`, encodeURIComponent(String(feedId)));
130
+ .replace('{feedId}', encodeURIComponent(String(feedId)));
131
131
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
132
132
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
133
133
  let baseOptions;
@@ -149,14 +149,15 @@ const FeedsApiAxiosParamCreator = function (configuration) {
149
149
  /**
150
150
  * 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).
151
151
  * @param {string} feedDocumentId The identifier of the feed document.
152
+ * @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.
152
153
  * @param {*} [options] Override http request option.
153
154
  * @throws {RequiredError}
154
155
  */
155
- getFeedDocument: async (feedDocumentId, options = {}) => {
156
+ getFeedDocument: async (feedDocumentId, enableContentEncodingUrlHeader, options = {}) => {
156
157
  // verify required parameter 'feedDocumentId' is not null or undefined
157
158
  (0, common_1.assertParamExists)('getFeedDocument', 'feedDocumentId', feedDocumentId);
158
159
  const localVarPath = `/feeds/2021-06-30/documents/{feedDocumentId}`
159
- .replace(`{${"feedDocumentId"}}`, encodeURIComponent(String(feedDocumentId)));
160
+ .replace('{feedDocumentId}', encodeURIComponent(String(feedDocumentId)));
160
161
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
161
162
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
162
163
  let baseOptions;
@@ -166,6 +167,9 @@ const FeedsApiAxiosParamCreator = function (configuration) {
166
167
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
167
168
  const localVarHeaderParameter = {};
168
169
  const localVarQueryParameter = {};
170
+ if (enableContentEncodingUrlHeader !== undefined) {
171
+ localVarQueryParameter['enableContentEncodingUrlHeader'] = enableContentEncodingUrlHeader;
172
+ }
169
173
  localVarHeaderParameter['Accept'] = 'application/json';
170
174
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
171
175
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -292,11 +296,12 @@ const FeedsApiFp = function (configuration) {
292
296
  /**
293
297
  * 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).
294
298
  * @param {string} feedDocumentId The identifier of the feed document.
299
+ * @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.
295
300
  * @param {*} [options] Override http request option.
296
301
  * @throws {RequiredError}
297
302
  */
298
- async getFeedDocument(feedDocumentId, options) {
299
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFeedDocument(feedDocumentId, options);
303
+ async getFeedDocument(feedDocumentId, enableContentEncodingUrlHeader, options) {
304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeedDocument(feedDocumentId, enableContentEncodingUrlHeader, options);
300
305
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
301
306
  const localVarOperationServerBasePath = base_1.operationServerMap['FeedsApi.getFeedDocument']?.[localVarOperationServerIndex]?.url;
302
307
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -371,7 +376,7 @@ const FeedsApiFactory = function (configuration, basePath, axios) {
371
376
  * @throws {RequiredError}
372
377
  */
373
378
  getFeedDocument(requestParameters, options) {
374
- return localVarFp.getFeedDocument(requestParameters.feedDocumentId, options).then((request) => request(axios, basePath));
379
+ return localVarFp.getFeedDocument(requestParameters.feedDocumentId, requestParameters.enableContentEncodingUrlHeader, options).then((request) => request(axios, basePath));
375
380
  },
376
381
  /**
377
382
  * 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).
@@ -432,7 +437,7 @@ class FeedsApi extends base_1.BaseAPI {
432
437
  * @throws {RequiredError}
433
438
  */
434
439
  getFeedDocument(requestParameters, options) {
435
- return (0, exports.FeedsApiFp)(this.configuration).getFeedDocument(requestParameters.feedDocumentId, options).then((request) => request(this.axios, this.basePath));
440
+ return (0, exports.FeedsApiFp)(this.configuration).getFeedDocument(requestParameters.feedDocumentId, requestParameters.enableContentEncodingUrlHeader, options).then((request) => request(this.axios, this.basePath));
436
441
  }
437
442
  /**
438
443
  * 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).
@@ -450,5 +455,5 @@ exports.GetFeedsProcessingStatusesEnum = {
450
455
  Done: 'DONE',
451
456
  Fatal: 'FATAL',
452
457
  InProgress: 'IN_PROGRESS',
453
- InQueue: 'IN_QUEUE'
458
+ InQueue: 'IN_QUEUE',
454
459
  };
@@ -90,6 +90,7 @@ exports.setSearchParams = setSearchParams;
90
90
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
91
91
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
92
92
  */
93
+ // @ts-ignore
93
94
  const replaceWithSerializableTypeIfNeeded = function (key, value) {
94
95
  if (value instanceof Set) {
95
96
  return Array.from(value);
@@ -91,8 +91,8 @@ class Configuration {
91
91
  * @return True if the given MIME is JSON, false otherwise.
92
92
  */
93
93
  isJsonMime(mime) {
94
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
94
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
95
+ return mime !== null && jsonMime.test(mime);
96
96
  }
97
97
  }
98
98
  exports.Configuration = Configuration;
@@ -15,5 +15,5 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FeedDocumentCompressionAlgorithmEnum = void 0;
17
17
  exports.FeedDocumentCompressionAlgorithmEnum = {
18
- Gzip: 'GZIP'
18
+ Gzip: 'GZIP',
19
19
  };
@@ -19,5 +19,5 @@ exports.FeedProcessingStatusEnum = {
19
19
  Done: 'DONE',
20
20
  Fatal: 'FATAL',
21
21
  InProgress: 'IN_PROGRESS',
22
- InQueue: 'IN_QUEUE'
22
+ InQueue: 'IN_QUEUE',
23
23
  };
@@ -32,7 +32,7 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
32
32
  // verify required parameter 'feedId' is not null or undefined
33
33
  assertParamExists('cancelFeed', 'feedId', feedId);
34
34
  const localVarPath = `/feeds/2021-06-30/feeds/{feedId}`
35
- .replace(`{${"feedId"}}`, encodeURIComponent(String(feedId)));
35
+ .replace('{feedId}', encodeURIComponent(String(feedId)));
36
36
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
37
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38
38
  let baseOptions;
@@ -121,7 +121,7 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
121
121
  // verify required parameter 'feedId' is not null or undefined
122
122
  assertParamExists('getFeed', 'feedId', feedId);
123
123
  const localVarPath = `/feeds/2021-06-30/feeds/{feedId}`
124
- .replace(`{${"feedId"}}`, encodeURIComponent(String(feedId)));
124
+ .replace('{feedId}', encodeURIComponent(String(feedId)));
125
125
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
126
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
127
127
  let baseOptions;
@@ -143,14 +143,15 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
143
143
  /**
144
144
  * 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).
145
145
  * @param {string} feedDocumentId The identifier of the feed document.
146
+ * @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.
146
147
  * @param {*} [options] Override http request option.
147
148
  * @throws {RequiredError}
148
149
  */
149
- getFeedDocument: async (feedDocumentId, options = {}) => {
150
+ getFeedDocument: async (feedDocumentId, enableContentEncodingUrlHeader, options = {}) => {
150
151
  // verify required parameter 'feedDocumentId' is not null or undefined
151
152
  assertParamExists('getFeedDocument', 'feedDocumentId', feedDocumentId);
152
153
  const localVarPath = `/feeds/2021-06-30/documents/{feedDocumentId}`
153
- .replace(`{${"feedDocumentId"}}`, encodeURIComponent(String(feedDocumentId)));
154
+ .replace('{feedDocumentId}', encodeURIComponent(String(feedDocumentId)));
154
155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
155
156
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
156
157
  let baseOptions;
@@ -160,6 +161,9 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
160
161
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
161
162
  const localVarHeaderParameter = {};
162
163
  const localVarQueryParameter = {};
164
+ if (enableContentEncodingUrlHeader !== undefined) {
165
+ localVarQueryParameter['enableContentEncodingUrlHeader'] = enableContentEncodingUrlHeader;
166
+ }
163
167
  localVarHeaderParameter['Accept'] = 'application/json';
164
168
  setSearchParams(localVarUrlObj, localVarQueryParameter);
165
169
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -285,11 +289,12 @@ export const FeedsApiFp = function (configuration) {
285
289
  /**
286
290
  * 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).
287
291
  * @param {string} feedDocumentId The identifier of the feed document.
292
+ * @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.
288
293
  * @param {*} [options] Override http request option.
289
294
  * @throws {RequiredError}
290
295
  */
291
- async getFeedDocument(feedDocumentId, options) {
292
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFeedDocument(feedDocumentId, options);
296
+ async getFeedDocument(feedDocumentId, enableContentEncodingUrlHeader, options) {
297
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeedDocument(feedDocumentId, enableContentEncodingUrlHeader, options);
293
298
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
294
299
  const localVarOperationServerBasePath = operationServerMap['FeedsApi.getFeedDocument']?.[localVarOperationServerIndex]?.url;
295
300
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -363,7 +368,7 @@ export const FeedsApiFactory = function (configuration, basePath, axios) {
363
368
  * @throws {RequiredError}
364
369
  */
365
370
  getFeedDocument(requestParameters, options) {
366
- return localVarFp.getFeedDocument(requestParameters.feedDocumentId, options).then((request) => request(axios, basePath));
371
+ return localVarFp.getFeedDocument(requestParameters.feedDocumentId, requestParameters.enableContentEncodingUrlHeader, options).then((request) => request(axios, basePath));
367
372
  },
368
373
  /**
369
374
  * 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).
@@ -423,7 +428,7 @@ export class FeedsApi extends BaseAPI {
423
428
  * @throws {RequiredError}
424
429
  */
425
430
  getFeedDocument(requestParameters, options) {
426
- return FeedsApiFp(this.configuration).getFeedDocument(requestParameters.feedDocumentId, options).then((request) => request(this.axios, this.basePath));
431
+ return FeedsApiFp(this.configuration).getFeedDocument(requestParameters.feedDocumentId, requestParameters.enableContentEncodingUrlHeader, options).then((request) => request(this.axios, this.basePath));
427
432
  }
428
433
  /**
429
434
  * 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).
@@ -440,5 +445,5 @@ export const GetFeedsProcessingStatusesEnum = {
440
445
  Done: 'DONE',
441
446
  Fatal: 'FATAL',
442
447
  InProgress: 'IN_PROGRESS',
443
- InQueue: 'IN_QUEUE'
448
+ InQueue: 'IN_QUEUE',
444
449
  };
@@ -81,6 +81,7 @@ export const setSearchParams = function (url, ...objects) {
81
81
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
82
82
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
83
83
  */
84
+ // @ts-ignore
84
85
  export const replaceWithSerializableTypeIfNeeded = function (key, value) {
85
86
  if (value instanceof Set) {
86
87
  return Array.from(value);
@@ -88,7 +88,7 @@ export class Configuration {
88
88
  * @return True if the given MIME is JSON, false otherwise.
89
89
  */
90
90
  isJsonMime(mime) {
91
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
@@ -12,5 +12,5 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export const FeedDocumentCompressionAlgorithmEnum = {
15
- Gzip: 'GZIP'
15
+ Gzip: 'GZIP',
16
16
  };
@@ -16,5 +16,5 @@ export const FeedProcessingStatusEnum = {
16
16
  Done: 'DONE',
17
17
  Fatal: 'FATAL',
18
18
  InProgress: 'IN_PROGRESS',
19
- InQueue: 'IN_QUEUE'
19
+ InQueue: 'IN_QUEUE',
20
20
  };
@@ -55,10 +55,11 @@ export declare const FeedsApiAxiosParamCreator: (configuration?: Configuration)
55
55
  /**
56
56
  * 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).
57
57
  * @param {string} feedDocumentId The identifier of the feed document.
58
+ * @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.
58
59
  * @param {*} [options] Override http request option.
59
60
  * @throws {RequiredError}
60
61
  */
61
- getFeedDocument: (feedDocumentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
62
+ getFeedDocument: (feedDocumentId: string, enableContentEncodingUrlHeader?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
62
63
  /**
63
64
  * 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).
64
65
  * @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.
@@ -108,10 +109,11 @@ export declare const FeedsApiFp: (configuration?: Configuration) => {
108
109
  /**
109
110
  * 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).
110
111
  * @param {string} feedDocumentId The identifier of the feed document.
112
+ * @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.
111
113
  * @param {*} [options] Override http request option.
112
114
  * @throws {RequiredError}
113
115
  */
114
- getFeedDocument(feedDocumentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FeedDocument>>;
116
+ getFeedDocument(feedDocumentId: string, enableContentEncodingUrlHeader?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FeedDocument>>;
115
117
  /**
116
118
  * 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).
117
119
  * @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.
@@ -217,6 +219,10 @@ export interface FeedsApiGetFeedDocumentRequest {
217
219
  * The identifier of the feed document.
218
220
  */
219
221
  readonly feedDocumentId: string;
222
+ /**
223
+ * 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.
224
+ */
225
+ readonly enableContentEncodingUrlHeader?: boolean;
220
226
  }
221
227
  /**
222
228
  * Request parameters for getFeeds operation in FeedsApi.
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
28
28
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
29
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
30
  */
31
- export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
33
  export declare const toPathString: (url: URL) => string;
34
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/feeds-api-2021-06-30",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.",
5
- "version": "3.2.13",
5
+ "version": "3.3.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.29",
22
- "axios": "^1.13.5"
21
+ "@sp-api-sdk/common": "2.1.31",
22
+ "axios": "^1.15.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "feeds api"
42
42
  ],
43
- "gitHead": "2c1fe783fb7c2204e7e19d4f85fa2bdf822e4593"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }