@sp-api-sdk/feeds-api-2021-06-30 1.6.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/cjs/index.js +6 -0
  4. package/dist/cjs/src/api-model/api/feeds-api.js +445 -0
  5. package/dist/cjs/src/api-model/api.js +17 -0
  6. package/dist/cjs/src/api-model/base.js +62 -0
  7. package/dist/cjs/src/api-model/common.js +137 -0
  8. package/dist/cjs/src/api-model/configuration.js +42 -0
  9. package/dist/cjs/src/api-model/index.js +19 -0
  10. package/dist/cjs/src/api-model/models/create-feed-document-response.js +15 -0
  11. package/dist/cjs/src/api-model/models/create-feed-document-specification.js +15 -0
  12. package/dist/cjs/src/api-model/models/create-feed-response.js +15 -0
  13. package/dist/cjs/src/api-model/models/create-feed-specification.js +15 -0
  14. package/dist/cjs/src/api-model/models/error-list.js +15 -0
  15. package/dist/cjs/src/api-model/models/feed-document.js +24 -0
  16. package/dist/cjs/src/api-model/models/feed.js +28 -0
  17. package/dist/cjs/src/api-model/models/get-feeds-response.js +15 -0
  18. package/dist/cjs/src/api-model/models/index.js +12 -0
  19. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  20. package/dist/cjs/src/client.js +65 -0
  21. package/dist/cjs/src/error.js +10 -0
  22. package/dist/es/index.js +3 -0
  23. package/dist/es/src/api-model/api/feeds-api.js +437 -0
  24. package/dist/es/src/api-model/api.js +14 -0
  25. package/dist/es/src/api-model/base.js +56 -0
  26. package/dist/es/src/api-model/common.js +125 -0
  27. package/dist/es/src/api-model/configuration.js +38 -0
  28. package/dist/es/src/api-model/index.js +16 -0
  29. package/dist/es/src/api-model/models/create-feed-document-response.js +14 -0
  30. package/dist/es/src/api-model/models/create-feed-document-specification.js +14 -0
  31. package/dist/es/src/api-model/models/create-feed-response.js +14 -0
  32. package/dist/es/src/api-model/models/create-feed-specification.js +14 -0
  33. package/dist/es/src/api-model/models/error-list.js +14 -0
  34. package/dist/es/src/api-model/models/feed-document.js +21 -0
  35. package/dist/es/src/api-model/models/feed.js +25 -0
  36. package/dist/es/src/api-model/models/get-feeds-response.js +14 -0
  37. package/dist/es/src/api-model/models/index.js +9 -0
  38. package/dist/es/src/api-model/models/model-error.js +14 -0
  39. package/dist/es/src/client.js +61 -0
  40. package/dist/es/src/error.js +6 -0
  41. package/dist/types/index.d.ts +3 -0
  42. package/dist/types/src/api-model/api/feeds-api.d.ts +353 -0
  43. package/dist/types/src/api-model/api.d.ts +12 -0
  44. package/dist/types/src/api-model/base.d.ts +55 -0
  45. package/dist/types/src/api-model/common.d.ts +65 -0
  46. package/dist/types/src/api-model/configuration.d.ts +83 -0
  47. package/dist/types/src/api-model/index.d.ts +14 -0
  48. package/dist/types/src/api-model/models/create-feed-document-response.d.ts +30 -0
  49. package/dist/types/src/api-model/models/create-feed-document-specification.d.ts +24 -0
  50. package/dist/types/src/api-model/models/create-feed-response.d.ts +24 -0
  51. package/dist/types/src/api-model/models/create-feed-specification.d.ts +44 -0
  52. package/dist/types/src/api-model/models/error-list.d.ts +24 -0
  53. package/dist/types/src/api-model/models/feed-document.d.ts +43 -0
  54. package/dist/types/src/api-model/models/feed.d.ts +77 -0
  55. package/dist/types/src/api-model/models/get-feeds-response.d.ts +31 -0
  56. package/dist/types/src/api-model/models/index.d.ts +9 -0
  57. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  58. package/dist/types/src/client.d.ts +13 -0
  59. package/dist/types/src/error.d.ts +3 -0
  60. package/package.json +53 -0
@@ -0,0 +1,6 @@
1
+ export class FeedsApiError extends Error {
2
+ constructor(message) {
3
+ super(message);
4
+ this.name = 'FeedsApiError';
5
+ }
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './src/client';
2
+ export * from './src/error';
3
+ export * from './src/api-model/models';
@@ -0,0 +1,353 @@
1
+ /**
2
+ * Selling Partner API for Feeds
3
+ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.
4
+ *
5
+ * The version of the OpenAPI document: 2021-06-30
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateFeedDocumentResponse } from '../models';
16
+ import { CreateFeedDocumentSpecification } from '../models';
17
+ import { CreateFeedResponse } from '../models';
18
+ import { CreateFeedSpecification } from '../models';
19
+ import { Feed } from '../models';
20
+ import { FeedDocument } from '../models';
21
+ import { GetFeedsResponse } from '../models';
22
+ /**
23
+ * FeedsApi - axios parameter creator
24
+ * @export
25
+ */
26
+ export declare const FeedsApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
27
+ /**
28
+ * 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 and getFeeds operations. **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.
29
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ cancelFeed: (feedId: string, options?: any) => Promise<RequestArgs>;
34
+ /**
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
+ * @param {CreateFeedSpecification} body
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ createFeed: (body: CreateFeedSpecification, options?: any) => Promise<RequestArgs>;
41
+ /**
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
+ * @param {CreateFeedDocumentSpecification} body
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ createFeedDocument: (body: CreateFeedDocumentSpecification, options?: any) => Promise<RequestArgs>;
48
+ /**
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
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ getFeed: (feedId: string, options?: any) => Promise<RequestArgs>;
55
+ /**
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
+ * @param {string} feedDocumentId The identifier of the feed document.
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ getFeedDocument: (feedDocumentId: string, options?: any) => Promise<RequestArgs>;
62
+ /**
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
+ * @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.
65
+ * @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.
66
+ * @param {number} [pageSize] The maximum number of feeds to return in a single call.
67
+ * @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter feeds.
68
+ * @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.
69
+ * @param {string} [createdUntil] The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now.
70
+ * @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.
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
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>;
75
+ };
76
+ /**
77
+ * FeedsApi - functional programming interface
78
+ * @export
79
+ */
80
+ export declare const FeedsApiFp: (configuration?: Configuration | undefined) => {
81
+ /**
82
+ * 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 and getFeeds operations. **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.
83
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ cancelFeed(feedId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<void>>;
88
+ /**
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
+ * @param {CreateFeedSpecification} body
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ createFeed(body: CreateFeedSpecification, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateFeedResponse>>;
95
+ /**
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
+ * @param {CreateFeedDocumentSpecification} body
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ createFeedDocument(body: CreateFeedDocumentSpecification, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateFeedDocumentResponse>>;
102
+ /**
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
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getFeed(feedId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Feed>>;
109
+ /**
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
+ * @param {string} feedDocumentId The identifier of the feed document.
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ getFeedDocument(feedDocumentId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<FeedDocument>>;
116
+ /**
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
+ * @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.
119
+ * @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.
120
+ * @param {number} [pageSize] The maximum number of feeds to return in a single call.
121
+ * @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter feeds.
122
+ * @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.
123
+ * @param {string} [createdUntil] The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now.
124
+ * @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.
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
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>>;
129
+ };
130
+ /**
131
+ * FeedsApi - factory interface
132
+ * @export
133
+ */
134
+ export declare const FeedsApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
135
+ /**
136
+ * 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 and getFeeds operations. **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.
137
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ cancelFeed(feedId: string, options?: any): AxiosPromise<void>;
142
+ /**
143
+ * 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.
144
+ * @param {CreateFeedSpecification} body
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ createFeed(body: CreateFeedSpecification, options?: any): AxiosPromise<CreateFeedResponse>;
149
+ /**
150
+ * 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.
151
+ * @param {CreateFeedDocumentSpecification} body
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ createFeedDocument(body: CreateFeedDocumentSpecification, options?: any): AxiosPromise<CreateFeedDocumentResponse>;
156
+ /**
157
+ * 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.
158
+ * @param {string} feedId The identifier for the feed. This identifier is unique only in combination with a seller ID.
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ getFeed(feedId: string, options?: any): AxiosPromise<Feed>;
163
+ /**
164
+ * 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.
165
+ * @param {string} feedDocumentId The identifier of the feed document.
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ getFeedDocument(feedDocumentId: string, options?: any): AxiosPromise<FeedDocument>;
170
+ /**
171
+ * 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.
172
+ * @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.
173
+ * @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.
174
+ * @param {number} [pageSize] The maximum number of feeds to return in a single call.
175
+ * @param {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>} [processingStatuses] A list of processing statuses used to filter feeds.
176
+ * @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.
177
+ * @param {string} [createdUntil] The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now.
178
+ * @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.
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ 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): AxiosPromise<GetFeedsResponse>;
183
+ };
184
+ /**
185
+ * Request parameters for cancelFeed operation in FeedsApi.
186
+ * @export
187
+ * @interface FeedsApiCancelFeedRequest
188
+ */
189
+ export interface FeedsApiCancelFeedRequest {
190
+ /**
191
+ * The identifier for the feed. This identifier is unique only in combination with a seller ID.
192
+ * @type {string}
193
+ * @memberof FeedsApiCancelFeed
194
+ */
195
+ readonly feedId: string;
196
+ }
197
+ /**
198
+ * Request parameters for createFeed operation in FeedsApi.
199
+ * @export
200
+ * @interface FeedsApiCreateFeedRequest
201
+ */
202
+ export interface FeedsApiCreateFeedRequest {
203
+ /**
204
+ *
205
+ * @type {CreateFeedSpecification}
206
+ * @memberof FeedsApiCreateFeed
207
+ */
208
+ readonly body: CreateFeedSpecification;
209
+ }
210
+ /**
211
+ * Request parameters for createFeedDocument operation in FeedsApi.
212
+ * @export
213
+ * @interface FeedsApiCreateFeedDocumentRequest
214
+ */
215
+ export interface FeedsApiCreateFeedDocumentRequest {
216
+ /**
217
+ *
218
+ * @type {CreateFeedDocumentSpecification}
219
+ * @memberof FeedsApiCreateFeedDocument
220
+ */
221
+ readonly body: CreateFeedDocumentSpecification;
222
+ }
223
+ /**
224
+ * Request parameters for getFeed operation in FeedsApi.
225
+ * @export
226
+ * @interface FeedsApiGetFeedRequest
227
+ */
228
+ export interface FeedsApiGetFeedRequest {
229
+ /**
230
+ * The identifier for the feed. This identifier is unique only in combination with a seller ID.
231
+ * @type {string}
232
+ * @memberof FeedsApiGetFeed
233
+ */
234
+ readonly feedId: string;
235
+ }
236
+ /**
237
+ * Request parameters for getFeedDocument operation in FeedsApi.
238
+ * @export
239
+ * @interface FeedsApiGetFeedDocumentRequest
240
+ */
241
+ export interface FeedsApiGetFeedDocumentRequest {
242
+ /**
243
+ * The identifier of the feed document.
244
+ * @type {string}
245
+ * @memberof FeedsApiGetFeedDocument
246
+ */
247
+ readonly feedDocumentId: string;
248
+ }
249
+ /**
250
+ * Request parameters for getFeeds operation in FeedsApi.
251
+ * @export
252
+ * @interface FeedsApiGetFeedsRequest
253
+ */
254
+ export interface FeedsApiGetFeedsRequest {
255
+ /**
256
+ * 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.
257
+ * @type {Array<string>}
258
+ * @memberof FeedsApiGetFeeds
259
+ */
260
+ readonly feedTypes?: Array<string>;
261
+ /**
262
+ * A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify.
263
+ * @type {Array<string>}
264
+ * @memberof FeedsApiGetFeeds
265
+ */
266
+ readonly marketplaceIds?: Array<string>;
267
+ /**
268
+ * The maximum number of feeds to return in a single call.
269
+ * @type {number}
270
+ * @memberof FeedsApiGetFeeds
271
+ */
272
+ readonly pageSize?: number;
273
+ /**
274
+ * A list of processing statuses used to filter feeds.
275
+ * @type {Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>}
276
+ * @memberof FeedsApiGetFeeds
277
+ */
278
+ readonly processingStatuses?: Array<'CANCELLED' | 'DONE' | 'FATAL' | 'IN_PROGRESS' | 'IN_QUEUE'>;
279
+ /**
280
+ * 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.
281
+ * @type {string}
282
+ * @memberof FeedsApiGetFeeds
283
+ */
284
+ readonly createdSince?: string;
285
+ /**
286
+ * The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now.
287
+ * @type {string}
288
+ * @memberof FeedsApiGetFeeds
289
+ */
290
+ readonly createdUntil?: string;
291
+ /**
292
+ * 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.
293
+ * @type {string}
294
+ * @memberof FeedsApiGetFeeds
295
+ */
296
+ readonly nextToken?: string;
297
+ }
298
+ /**
299
+ * FeedsApi - object-oriented interface
300
+ * @export
301
+ * @class FeedsApi
302
+ * @extends {BaseAPI}
303
+ */
304
+ export declare class FeedsApi extends BaseAPI {
305
+ /**
306
+ * 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 and getFeeds operations. **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.
307
+ * @param {FeedsApiCancelFeedRequest} requestParameters Request parameters.
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ * @memberof FeedsApi
311
+ */
312
+ cancelFeed(requestParameters: FeedsApiCancelFeedRequest, options?: any): Promise<import("axios").AxiosResponse<void>>;
313
+ /**
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
+ * @param {FeedsApiCreateFeedRequest} requestParameters Request parameters.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ * @memberof FeedsApi
319
+ */
320
+ createFeed(requestParameters: FeedsApiCreateFeedRequest, options?: any): Promise<import("axios").AxiosResponse<CreateFeedResponse>>;
321
+ /**
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
+ * @param {FeedsApiCreateFeedDocumentRequest} requestParameters Request parameters.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof FeedsApi
327
+ */
328
+ createFeedDocument(requestParameters: FeedsApiCreateFeedDocumentRequest, options?: any): Promise<import("axios").AxiosResponse<CreateFeedDocumentResponse>>;
329
+ /**
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
+ * @param {FeedsApiGetFeedRequest} requestParameters Request parameters.
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ * @memberof FeedsApi
335
+ */
336
+ getFeed(requestParameters: FeedsApiGetFeedRequest, options?: any): Promise<import("axios").AxiosResponse<Feed>>;
337
+ /**
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
+ * @param {FeedsApiGetFeedDocumentRequest} requestParameters Request parameters.
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ * @memberof FeedsApi
343
+ */
344
+ getFeedDocument(requestParameters: FeedsApiGetFeedDocumentRequest, options?: any): Promise<import("axios").AxiosResponse<FeedDocument>>;
345
+ /**
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
+ * @param {FeedsApiGetFeedsRequest} requestParameters Request parameters.
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ * @memberof FeedsApi
351
+ */
352
+ getFeeds(requestParameters?: FeedsApiGetFeedsRequest, options?: any): Promise<import("axios").AxiosResponse<GetFeedsResponse>>;
353
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Selling Partner API for Feeds
3
+ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.
4
+ *
5
+ * The version of the OpenAPI document: 2021-06-30
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from './api/feeds-api';
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Selling Partner API for Feeds
3
+ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.
4
+ *
5
+ * The version of the OpenAPI document: 2021-06-30
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Configuration } from "./configuration";
13
+ import { AxiosInstance } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: any;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ name: "RequiredError";
54
+ constructor(field: string, msg?: string);
55
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Selling Partner API for Feeds
3
+ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.
4
+ *
5
+ * The version of the OpenAPI document: 2021-06-30
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Configuration } from "./configuration";
13
+ import { RequestArgs } from "./base";
14
+ import { AxiosInstance } from 'axios';
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const DUMMY_BASE_URL = "https://example.com";
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
+ /**
27
+ *
28
+ * @export
29
+ */
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
36
+ /**
37
+ *
38
+ * @export
39
+ */
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
41
+ /**
42
+ *
43
+ * @export
44
+ */
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
46
+ /**
47
+ *
48
+ * @export
49
+ */
50
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export declare const toPathString: (url: URL) => string;
61
+ /**
62
+ *
63
+ * @export
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>>;