@sp-api-sdk/feeds-api-2021-06-30 1.9.4 → 1.9.5

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.
@@ -47,7 +47,7 @@ const FeedsApiAxiosParamCreator = function (configuration) {
47
47
  const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
48
48
  const localVarHeaderParameter = {};
49
49
  const localVarQueryParameter = {};
50
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
50
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
51
51
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
52
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
53
53
  return {
@@ -75,7 +75,7 @@ const FeedsApiAxiosParamCreator = function (configuration) {
75
75
  const localVarHeaderParameter = {};
76
76
  const localVarQueryParameter = {};
77
77
  localVarHeaderParameter['Content-Type'] = 'application/json';
78
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
78
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
79
79
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
80
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
81
81
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
@@ -104,7 +104,7 @@ const FeedsApiAxiosParamCreator = function (configuration) {
104
104
  const localVarHeaderParameter = {};
105
105
  const localVarQueryParameter = {};
106
106
  localVarHeaderParameter['Content-Type'] = 'application/json';
107
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
107
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
108
108
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
109
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
110
110
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
@@ -133,7 +133,7 @@ const FeedsApiAxiosParamCreator = function (configuration) {
133
133
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
134
134
  const localVarHeaderParameter = {};
135
135
  const localVarQueryParameter = {};
136
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
137
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
138
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
139
139
  return {
@@ -161,7 +161,7 @@ const FeedsApiAxiosParamCreator = function (configuration) {
161
161
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
162
162
  const localVarHeaderParameter = {};
163
163
  const localVarQueryParameter = {};
164
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
164
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
165
165
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
166
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
167
167
  return {
@@ -217,7 +217,7 @@ const FeedsApiAxiosParamCreator = function (configuration) {
217
217
  if (nextToken !== undefined) {
218
218
  localVarQueryParameter['nextToken'] = nextToken;
219
219
  }
220
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
220
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
221
221
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
222
222
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
223
223
  return {
@@ -14,11 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FeedDocumentCompressionAlgorithmEnum = void 0;
17
- /**
18
- * @export
19
- * @enum {string}
20
- */
21
- var FeedDocumentCompressionAlgorithmEnum;
22
- (function (FeedDocumentCompressionAlgorithmEnum) {
23
- FeedDocumentCompressionAlgorithmEnum["Gzip"] = "GZIP";
24
- })(FeedDocumentCompressionAlgorithmEnum = exports.FeedDocumentCompressionAlgorithmEnum || (exports.FeedDocumentCompressionAlgorithmEnum = {}));
17
+ exports.FeedDocumentCompressionAlgorithmEnum = {
18
+ Gzip: 'GZIP'
19
+ };
@@ -14,15 +14,10 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FeedProcessingStatusEnum = void 0;
17
- /**
18
- * @export
19
- * @enum {string}
20
- */
21
- var FeedProcessingStatusEnum;
22
- (function (FeedProcessingStatusEnum) {
23
- FeedProcessingStatusEnum["Cancelled"] = "CANCELLED";
24
- FeedProcessingStatusEnum["Done"] = "DONE";
25
- FeedProcessingStatusEnum["Fatal"] = "FATAL";
26
- FeedProcessingStatusEnum["InProgress"] = "IN_PROGRESS";
27
- FeedProcessingStatusEnum["InQueue"] = "IN_QUEUE";
28
- })(FeedProcessingStatusEnum = exports.FeedProcessingStatusEnum || (exports.FeedProcessingStatusEnum = {}));
17
+ exports.FeedProcessingStatusEnum = {
18
+ Cancelled: 'CANCELLED',
19
+ Done: 'DONE',
20
+ Fatal: 'FATAL',
21
+ InProgress: 'IN_PROGRESS',
22
+ InQueue: 'IN_QUEUE'
23
+ };
@@ -43,7 +43,7 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
43
43
  const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
44
44
  const localVarHeaderParameter = {};
45
45
  const localVarQueryParameter = {};
46
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
46
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47
47
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48
48
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
49
49
  return {
@@ -71,7 +71,7 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
71
71
  const localVarHeaderParameter = {};
72
72
  const localVarQueryParameter = {};
73
73
  localVarHeaderParameter['Content-Type'] = 'application/json';
74
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
74
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75
75
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
76
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
77
77
  localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
@@ -100,7 +100,7 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
100
100
  const localVarHeaderParameter = {};
101
101
  const localVarQueryParameter = {};
102
102
  localVarHeaderParameter['Content-Type'] = 'application/json';
103
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
103
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
104
104
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
105
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
106
106
  localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
@@ -129,7 +129,7 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
129
129
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
130
130
  const localVarHeaderParameter = {};
131
131
  const localVarQueryParameter = {};
132
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
132
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
133
133
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
134
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
135
135
  return {
@@ -157,7 +157,7 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
157
157
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
158
158
  const localVarHeaderParameter = {};
159
159
  const localVarQueryParameter = {};
160
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
160
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
161
161
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
162
162
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
163
163
  return {
@@ -213,7 +213,7 @@ export const FeedsApiAxiosParamCreator = function (configuration) {
213
213
  if (nextToken !== undefined) {
214
214
  localVarQueryParameter['nextToken'] = nextToken;
215
215
  }
216
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
216
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
217
217
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
218
218
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
219
219
  return {
@@ -11,11 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * @export
16
- * @enum {string}
17
- */
18
- export var FeedDocumentCompressionAlgorithmEnum;
19
- (function (FeedDocumentCompressionAlgorithmEnum) {
20
- FeedDocumentCompressionAlgorithmEnum["Gzip"] = "GZIP";
21
- })(FeedDocumentCompressionAlgorithmEnum || (FeedDocumentCompressionAlgorithmEnum = {}));
14
+ export const FeedDocumentCompressionAlgorithmEnum = {
15
+ Gzip: 'GZIP'
16
+ };
@@ -11,15 +11,10 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * @export
16
- * @enum {string}
17
- */
18
- export var FeedProcessingStatusEnum;
19
- (function (FeedProcessingStatusEnum) {
20
- FeedProcessingStatusEnum["Cancelled"] = "CANCELLED";
21
- FeedProcessingStatusEnum["Done"] = "DONE";
22
- FeedProcessingStatusEnum["Fatal"] = "FATAL";
23
- FeedProcessingStatusEnum["InProgress"] = "IN_PROGRESS";
24
- FeedProcessingStatusEnum["InQueue"] = "IN_QUEUE";
25
- })(FeedProcessingStatusEnum || (FeedProcessingStatusEnum = {}));
14
+ export const FeedProcessingStatusEnum = {
15
+ Cancelled: 'CANCELLED',
16
+ Done: 'DONE',
17
+ Fatal: 'FATAL',
18
+ InProgress: 'IN_PROGRESS',
19
+ InQueue: 'IN_QUEUE'
20
+ };
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AxiosPromise, AxiosInstance } from 'axios';
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateFeedDocumentResponse } from '../models';
@@ -30,35 +30,35 @@ export declare const FeedsApiAxiosParamCreator: (configuration?: Configuration |
30
30
  * @param {*} [options] Override http request option.
31
31
  * @throws {RequiredError}
32
32
  */
33
- cancelFeed: (feedId: string, options?: any) => Promise<RequestArgs>;
33
+ cancelFeed: (feedId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
34
  /**
35
35
  * Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
36
36
  * @param {CreateFeedSpecification} body
37
37
  * @param {*} [options] Override http request option.
38
38
  * @throws {RequiredError}
39
39
  */
40
- createFeed: (body: CreateFeedSpecification, options?: any) => Promise<RequestArgs>;
40
+ createFeed: (body: CreateFeedSpecification, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
41
  /**
42
42
  * 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 operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
43
43
  * @param {CreateFeedDocumentSpecification} body
44
44
  * @param {*} [options] Override http request option.
45
45
  * @throws {RequiredError}
46
46
  */
47
- createFeedDocument: (body: CreateFeedDocumentSpecification, options?: any) => Promise<RequestArgs>;
47
+ createFeedDocument: (body: CreateFeedDocumentSpecification, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
48
  /**
49
49
  * Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
50
50
  * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
51
51
  * @param {*} [options] Override http request option.
52
52
  * @throws {RequiredError}
53
53
  */
54
- getFeed: (feedId: string, options?: any) => Promise<RequestArgs>;
54
+ getFeed: (feedId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
57
57
  * @param {string} feedDocumentId The identifier of the feed document.
58
58
  * @param {*} [options] Override http request option.
59
59
  * @throws {RequiredError}
60
60
  */
61
- getFeedDocument: (feedDocumentId: string, options?: any) => Promise<RequestArgs>;
61
+ getFeedDocument: (feedDocumentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
62
62
  /**
63
63
  * Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
64
64
  * @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.
@@ -71,7 +71,7 @@ export declare const FeedsApiAxiosParamCreator: (configuration?: Configuration |
71
71
  * @param {*} [options] Override http request option.
72
72
  * @throws {RequiredError}
73
73
  */
74
- getFeeds: (feedTypes?: string[] | undefined, marketplaceIds?: string[] | undefined, pageSize?: number | undefined, processingStatuses?: ("CANCELLED" | "DONE" | "FATAL" | "IN_PROGRESS" | "IN_QUEUE")[] | undefined, createdSince?: string | undefined, createdUntil?: string | undefined, nextToken?: string | undefined, options?: any) => Promise<RequestArgs>;
74
+ getFeeds: (feedTypes?: string[] | undefined, marketplaceIds?: string[] | undefined, pageSize?: number | undefined, processingStatuses?: ("CANCELLED" | "DONE" | "FATAL" | "IN_PROGRESS" | "IN_QUEUE")[] | undefined, createdSince?: string | undefined, createdUntil?: string | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
75
75
  };
76
76
  /**
77
77
  * FeedsApi - functional programming interface
@@ -84,35 +84,35 @@ export declare const FeedsApiFp: (configuration?: Configuration | undefined) =>
84
84
  * @param {*} [options] Override http request option.
85
85
  * @throws {RequiredError}
86
86
  */
87
- cancelFeed(feedId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<void>>;
87
+ cancelFeed(feedId: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<void>>;
88
88
  /**
89
89
  * Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
90
90
  * @param {CreateFeedSpecification} body
91
91
  * @param {*} [options] Override http request option.
92
92
  * @throws {RequiredError}
93
93
  */
94
- createFeed(body: CreateFeedSpecification, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateFeedResponse>>;
94
+ createFeed(body: CreateFeedSpecification, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateFeedResponse>>;
95
95
  /**
96
96
  * 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 operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
97
97
  * @param {CreateFeedDocumentSpecification} body
98
98
  * @param {*} [options] Override http request option.
99
99
  * @throws {RequiredError}
100
100
  */
101
- createFeedDocument(body: CreateFeedDocumentSpecification, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateFeedDocumentResponse>>;
101
+ createFeedDocument(body: CreateFeedDocumentSpecification, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateFeedDocumentResponse>>;
102
102
  /**
103
103
  * Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
104
104
  * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
105
105
  * @param {*} [options] Override http request option.
106
106
  * @throws {RequiredError}
107
107
  */
108
- getFeed(feedId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Feed>>;
108
+ getFeed(feedId: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Feed>>;
109
109
  /**
110
110
  * Returns the information required for retrieving a feed document\'s contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
111
111
  * @param {string} feedDocumentId The identifier of the feed document.
112
112
  * @param {*} [options] Override http request option.
113
113
  * @throws {RequiredError}
114
114
  */
115
- getFeedDocument(feedDocumentId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<FeedDocument>>;
115
+ getFeedDocument(feedDocumentId: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<FeedDocument>>;
116
116
  /**
117
117
  * Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
118
118
  * @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.
@@ -125,7 +125,7 @@ export declare const FeedsApiFp: (configuration?: Configuration | undefined) =>
125
125
  * @param {*} [options] Override http request option.
126
126
  * @throws {RequiredError}
127
127
  */
128
- getFeeds(feedTypes?: string[] | undefined, marketplaceIds?: string[] | undefined, pageSize?: number | undefined, processingStatuses?: ("CANCELLED" | "DONE" | "FATAL" | "IN_PROGRESS" | "IN_QUEUE")[] | undefined, createdSince?: string | undefined, createdUntil?: string | undefined, nextToken?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetFeedsResponse>>;
128
+ getFeeds(feedTypes?: string[] | undefined, marketplaceIds?: string[] | undefined, pageSize?: number | undefined, processingStatuses?: ("CANCELLED" | "DONE" | "FATAL" | "IN_PROGRESS" | "IN_QUEUE")[] | undefined, createdSince?: string | undefined, createdUntil?: string | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetFeedsResponse>>;
129
129
  };
130
130
  /**
131
131
  * FeedsApi - factory interface
@@ -309,7 +309,7 @@ export declare class FeedsApi extends BaseAPI {
309
309
  * @throws {RequiredError}
310
310
  * @memberof FeedsApi
311
311
  */
312
- cancelFeed(requestParameters: FeedsApiCancelFeedRequest, options?: any): Promise<import("axios").AxiosResponse<void, any>>;
312
+ cancelFeed(requestParameters: FeedsApiCancelFeedRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
313
313
  /**
314
314
  * Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
315
315
  * @param {FeedsApiCreateFeedRequest} requestParameters Request parameters.
@@ -317,7 +317,7 @@ export declare class FeedsApi extends BaseAPI {
317
317
  * @throws {RequiredError}
318
318
  * @memberof FeedsApi
319
319
  */
320
- createFeed(requestParameters: FeedsApiCreateFeedRequest, options?: any): Promise<import("axios").AxiosResponse<CreateFeedResponse, any>>;
320
+ createFeed(requestParameters: FeedsApiCreateFeedRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFeedResponse, any>>;
321
321
  /**
322
322
  * 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 operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
323
323
  * @param {FeedsApiCreateFeedDocumentRequest} requestParameters Request parameters.
@@ -325,7 +325,7 @@ export declare class FeedsApi extends BaseAPI {
325
325
  * @throws {RequiredError}
326
326
  * @memberof FeedsApi
327
327
  */
328
- createFeedDocument(requestParameters: FeedsApiCreateFeedDocumentRequest, options?: any): Promise<import("axios").AxiosResponse<CreateFeedDocumentResponse, any>>;
328
+ createFeedDocument(requestParameters: FeedsApiCreateFeedDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFeedDocumentResponse, any>>;
329
329
  /**
330
330
  * Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
331
331
  * @param {FeedsApiGetFeedRequest} requestParameters Request parameters.
@@ -333,7 +333,7 @@ export declare class FeedsApi extends BaseAPI {
333
333
  * @throws {RequiredError}
334
334
  * @memberof FeedsApi
335
335
  */
336
- getFeed(requestParameters: FeedsApiGetFeedRequest, options?: any): Promise<import("axios").AxiosResponse<Feed, any>>;
336
+ getFeed(requestParameters: FeedsApiGetFeedRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Feed, any>>;
337
337
  /**
338
338
  * Returns the information required for retrieving a feed document\'s contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
339
339
  * @param {FeedsApiGetFeedDocumentRequest} requestParameters Request parameters.
@@ -341,7 +341,7 @@ export declare class FeedsApi extends BaseAPI {
341
341
  * @throws {RequiredError}
342
342
  * @memberof FeedsApi
343
343
  */
344
- getFeedDocument(requestParameters: FeedsApiGetFeedDocumentRequest, options?: any): Promise<import("axios").AxiosResponse<FeedDocument, any>>;
344
+ getFeedDocument(requestParameters: FeedsApiGetFeedDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FeedDocument, any>>;
345
345
  /**
346
346
  * Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
347
347
  * @param {FeedsApiGetFeedsRequest} requestParameters Request parameters.
@@ -349,5 +349,5 @@ export declare class FeedsApi extends BaseAPI {
349
349
  * @throws {RequiredError}
350
350
  * @memberof FeedsApi
351
351
  */
352
- getFeeds(requestParameters?: FeedsApiGetFeedsRequest, options?: any): Promise<import("axios").AxiosResponse<GetFeedsResponse, any>>;
352
+ getFeeds(requestParameters?: FeedsApiGetFeedsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFeedsResponse, any>>;
353
353
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Configuration } from "./configuration";
13
- import { AxiosInstance } from 'axios';
13
+ import { AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
15
  /**
16
16
  *
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
29
29
  */
30
30
  export interface RequestArgs {
31
31
  url: string;
32
- options: any;
32
+ options: AxiosRequestConfig;
33
33
  }
34
34
  /**
35
35
  *
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { Configuration } from "./configuration";
13
13
  import { RequestArgs } from "./base";
14
- import { AxiosInstance } from 'axios';
14
+ import { AxiosInstance, AxiosResponse } from 'axios';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any, any>>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -20,11 +20,11 @@ export interface CreateFeedDocumentResponse {
20
20
  * @type {string}
21
21
  * @memberof CreateFeedDocumentResponse
22
22
  */
23
- feedDocumentId: string;
23
+ 'feedDocumentId': string;
24
24
  /**
25
25
  * The presigned URL for uploading the feed contents. This URL expires after 5 minutes.
26
26
  * @type {string}
27
27
  * @memberof CreateFeedDocumentResponse
28
28
  */
29
- url: string;
29
+ 'url': string;
30
30
  }
@@ -20,5 +20,5 @@ export interface CreateFeedDocumentSpecification {
20
20
  * @type {string}
21
21
  * @memberof CreateFeedDocumentSpecification
22
22
  */
23
- contentType: string;
23
+ 'contentType': string;
24
24
  }
@@ -20,5 +20,5 @@ export interface CreateFeedResponse {
20
20
  * @type {string}
21
21
  * @memberof CreateFeedResponse
22
22
  */
23
- feedId: string;
23
+ 'feedId': string;
24
24
  }
@@ -20,25 +20,25 @@ export interface CreateFeedSpecification {
20
20
  * @type {string}
21
21
  * @memberof CreateFeedSpecification
22
22
  */
23
- feedType: string;
23
+ 'feedType': string;
24
24
  /**
25
25
  * A list of identifiers for marketplaces that you want the feed to be applied to.
26
26
  * @type {Array<string>}
27
27
  * @memberof CreateFeedSpecification
28
28
  */
29
- marketplaceIds: Array<string>;
29
+ 'marketplaceIds': Array<string>;
30
30
  /**
31
31
  * The document identifier returned by the createFeedDocument operation. Upload the feed document contents before calling the createFeed operation.
32
32
  * @type {string}
33
33
  * @memberof CreateFeedSpecification
34
34
  */
35
- inputFeedDocumentId: string;
35
+ 'inputFeedDocumentId': string;
36
36
  /**
37
37
  * Additional options to control the feed. These vary by feed type.
38
38
  * @type {{ [key: string]: string; }}
39
39
  * @memberof CreateFeedSpecification
40
40
  */
41
- feedOptions?: {
41
+ 'feedOptions'?: {
42
42
  [key: string]: string;
43
43
  };
44
44
  }
@@ -20,5 +20,5 @@ export interface ErrorList {
20
20
  * @type {Array<Error>}
21
21
  * @memberof ErrorList
22
22
  */
23
- errors: Array<Error>;
23
+ 'errors': Array<Error>;
24
24
  }
@@ -20,24 +20,21 @@ export interface FeedDocument {
20
20
  * @type {string}
21
21
  * @memberof FeedDocument
22
22
  */
23
- feedDocumentId: string;
23
+ 'feedDocumentId': string;
24
24
  /**
25
25
  * A presigned URL for the feed document. This URL expires after 5 minutes.
26
26
  * @type {string}
27
27
  * @memberof FeedDocument
28
28
  */
29
- url: string;
29
+ 'url': string;
30
30
  /**
31
31
  * If present, the feed document contents are compressed using the indicated algorithm.
32
32
  * @type {string}
33
33
  * @memberof FeedDocument
34
34
  */
35
- compressionAlgorithm?: FeedDocumentCompressionAlgorithmEnum;
36
- }
37
- /**
38
- * @export
39
- * @enum {string}
40
- */
41
- export declare enum FeedDocumentCompressionAlgorithmEnum {
42
- Gzip = "GZIP"
35
+ 'compressionAlgorithm'?: FeedDocumentCompressionAlgorithmEnum;
43
36
  }
37
+ export declare const FeedDocumentCompressionAlgorithmEnum: {
38
+ readonly Gzip: "GZIP";
39
+ };
40
+ export declare type FeedDocumentCompressionAlgorithmEnum = typeof FeedDocumentCompressionAlgorithmEnum[keyof typeof FeedDocumentCompressionAlgorithmEnum];
@@ -20,58 +20,55 @@ export interface Feed {
20
20
  * @type {string}
21
21
  * @memberof Feed
22
22
  */
23
- feedId: string;
23
+ 'feedId': string;
24
24
  /**
25
25
  * The feed type.
26
26
  * @type {string}
27
27
  * @memberof Feed
28
28
  */
29
- feedType: string;
29
+ 'feedType': string;
30
30
  /**
31
31
  * A list of identifiers for the marketplaces that the feed is applied to.
32
32
  * @type {Array<string>}
33
33
  * @memberof Feed
34
34
  */
35
- marketplaceIds?: Array<string>;
35
+ 'marketplaceIds'?: Array<string>;
36
36
  /**
37
37
  * The date and time when the feed was created, in ISO 8601 date time format.
38
38
  * @type {string}
39
39
  * @memberof Feed
40
40
  */
41
- createdTime: string;
41
+ 'createdTime': string;
42
42
  /**
43
43
  * The processing status of the feed.
44
44
  * @type {string}
45
45
  * @memberof Feed
46
46
  */
47
- processingStatus: FeedProcessingStatusEnum;
47
+ 'processingStatus': FeedProcessingStatusEnum;
48
48
  /**
49
49
  * The date and time when feed processing started, in ISO 8601 date time format.
50
50
  * @type {string}
51
51
  * @memberof Feed
52
52
  */
53
- processingStartTime?: string;
53
+ 'processingStartTime'?: string;
54
54
  /**
55
55
  * The date and time when feed processing completed, in ISO 8601 date time format.
56
56
  * @type {string}
57
57
  * @memberof Feed
58
58
  */
59
- processingEndTime?: string;
59
+ 'processingEndTime'?: string;
60
60
  /**
61
61
  * The identifier for the feed document. This identifier is unique only in combination with a seller ID.
62
62
  * @type {string}
63
63
  * @memberof Feed
64
64
  */
65
- resultFeedDocumentId?: string;
66
- }
67
- /**
68
- * @export
69
- * @enum {string}
70
- */
71
- export declare enum FeedProcessingStatusEnum {
72
- Cancelled = "CANCELLED",
73
- Done = "DONE",
74
- Fatal = "FATAL",
75
- InProgress = "IN_PROGRESS",
76
- InQueue = "IN_QUEUE"
65
+ 'resultFeedDocumentId'?: string;
77
66
  }
67
+ export declare const FeedProcessingStatusEnum: {
68
+ readonly Cancelled: "CANCELLED";
69
+ readonly Done: "DONE";
70
+ readonly Fatal: "FATAL";
71
+ readonly InProgress: "IN_PROGRESS";
72
+ readonly InQueue: "IN_QUEUE";
73
+ };
74
+ export declare type FeedProcessingStatusEnum = typeof FeedProcessingStatusEnum[keyof typeof FeedProcessingStatusEnum];
@@ -21,11 +21,11 @@ export interface GetFeedsResponse {
21
21
  * @type {Array<Feed>}
22
22
  * @memberof GetFeedsResponse
23
23
  */
24
- feeds: Array<Feed>;
24
+ 'feeds': Array<Feed>;
25
25
  /**
26
26
  * Returned when the number of results exceeds pageSize. To get the next page of results, call the getFeeds operation with this token as the only parameter.
27
27
  * @type {string}
28
28
  * @memberof GetFeedsResponse
29
29
  */
30
- nextToken?: string;
30
+ 'nextToken'?: string;
31
31
  }
@@ -20,17 +20,17 @@ export interface ModelError {
20
20
  * @type {string}
21
21
  * @memberof ModelError
22
22
  */
23
- code: string;
23
+ 'code': string;
24
24
  /**
25
25
  * A message that describes the error condition in a human-readable form.
26
26
  * @type {string}
27
27
  * @memberof ModelError
28
28
  */
29
- message: string;
29
+ 'message': string;
30
30
  /**
31
31
  * Additional details that can help the caller understand or fix the issue.
32
32
  * @type {string}
33
33
  * @memberof ModelError
34
34
  */
35
- details?: string;
35
+ 'details'?: string;
36
36
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/feeds-api-2021-06-30",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@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": "1.9.4",
5
+ "version": "1.9.5",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -50,5 +50,5 @@
50
50
  "sp sdk",
51
51
  "feeds api"
52
52
  ],
53
- "gitHead": "a91680c9bce217db7412c5ad7c17aa6e918ada8e"
53
+ "gitHead": "d4f265d3c6a4e05e45025a46effa023a56a54e9c"
54
54
  }