@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,83 @@
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 interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ baseOptions?: any;
19
+ formDataCtor?: new () => any;
20
+ }
21
+ export declare class Configuration {
22
+ /**
23
+ * parameter for apiKey security
24
+ * @param name security name
25
+ * @memberof Configuration
26
+ */
27
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
+ /**
29
+ * parameter for basic security
30
+ *
31
+ * @type {string}
32
+ * @memberof Configuration
33
+ */
34
+ username?: string;
35
+ /**
36
+ * parameter for basic security
37
+ *
38
+ * @type {string}
39
+ * @memberof Configuration
40
+ */
41
+ password?: string;
42
+ /**
43
+ * parameter for oauth2 security
44
+ * @param name security name
45
+ * @param scopes oauth2 scope
46
+ * @memberof Configuration
47
+ */
48
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
49
+ /**
50
+ * override base path
51
+ *
52
+ * @type {string}
53
+ * @memberof Configuration
54
+ */
55
+ basePath?: string;
56
+ /**
57
+ * base options for axios calls
58
+ *
59
+ * @type {any}
60
+ * @memberof Configuration
61
+ */
62
+ baseOptions?: any;
63
+ /**
64
+ * The FormData constructor that will be used to create multipart form data
65
+ * requests. You can inject this here so that execution environments that
66
+ * do not support the FormData class can still run the generated client.
67
+ *
68
+ * @type {new () => FormData}
69
+ */
70
+ formDataCtor?: new () => any;
71
+ constructor(param?: ConfigurationParameters);
72
+ /**
73
+ * Check if the given MIME is a JSON MIME.
74
+ * JSON MIME examples:
75
+ * application/json
76
+ * application/json; charset=UTF8
77
+ * APPLICATION/JSON
78
+ * application/vnd.company+json
79
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
80
+ * @return True if the given MIME is JSON, false otherwise.
81
+ */
82
+ isJsonMime(mime: string): boolean;
83
+ }
@@ -0,0 +1,14 @@
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";
13
+ export * from "./configuration";
14
+ export * from "./models";
@@ -0,0 +1,30 @@
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
+ /**
13
+ * Information required to upload a feed document\'s contents.
14
+ * @export
15
+ * @interface CreateFeedDocumentResponse
16
+ */
17
+ export interface CreateFeedDocumentResponse {
18
+ /**
19
+ * The identifier of the feed document.
20
+ * @type {string}
21
+ * @memberof CreateFeedDocumentResponse
22
+ */
23
+ feedDocumentId: string;
24
+ /**
25
+ * The presigned URL for uploading the feed contents. This URL expires after 5 minutes.
26
+ * @type {string}
27
+ * @memberof CreateFeedDocumentResponse
28
+ */
29
+ url: string;
30
+ }
@@ -0,0 +1,24 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateFeedDocumentSpecification
16
+ */
17
+ export interface CreateFeedDocumentSpecification {
18
+ /**
19
+ * The content type of the feed.
20
+ * @type {string}
21
+ * @memberof CreateFeedDocumentSpecification
22
+ */
23
+ contentType: string;
24
+ }
@@ -0,0 +1,24 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateFeedResponse
16
+ */
17
+ export interface CreateFeedResponse {
18
+ /**
19
+ * The identifier for the feed. This identifier is unique only in combination with a seller ID.
20
+ * @type {string}
21
+ * @memberof CreateFeedResponse
22
+ */
23
+ feedId: string;
24
+ }
@@ -0,0 +1,44 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateFeedSpecification
16
+ */
17
+ export interface CreateFeedSpecification {
18
+ /**
19
+ * The feed type.
20
+ * @type {string}
21
+ * @memberof CreateFeedSpecification
22
+ */
23
+ feedType: string;
24
+ /**
25
+ * A list of identifiers for marketplaces that you want the feed to be applied to.
26
+ * @type {Array<string>}
27
+ * @memberof CreateFeedSpecification
28
+ */
29
+ marketplaceIds: Array<string>;
30
+ /**
31
+ * The document identifier returned by the createFeedDocument operation. Upload the feed document contents before calling the createFeed operation.
32
+ * @type {string}
33
+ * @memberof CreateFeedSpecification
34
+ */
35
+ inputFeedDocumentId: string;
36
+ /**
37
+ * Additional options to control the feed. These vary by feed type.
38
+ * @type {{ [key: string]: string; }}
39
+ * @memberof CreateFeedSpecification
40
+ */
41
+ feedOptions?: {
42
+ [key: string]: string;
43
+ };
44
+ }
@@ -0,0 +1,24 @@
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
+ /**
13
+ * A list of error responses returned when a request is unsuccessful.
14
+ * @export
15
+ * @interface ErrorList
16
+ */
17
+ export interface ErrorList {
18
+ /**
19
+ *
20
+ * @type {Array<Error>}
21
+ * @memberof ErrorList
22
+ */
23
+ errors: Array<Error>;
24
+ }
@@ -0,0 +1,43 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface FeedDocument
16
+ */
17
+ export interface FeedDocument {
18
+ /**
19
+ * The identifier for the feed document. This identifier is unique only in combination with a seller ID.
20
+ * @type {string}
21
+ * @memberof FeedDocument
22
+ */
23
+ feedDocumentId: string;
24
+ /**
25
+ * A presigned URL for the feed document. This URL expires after 5 minutes.
26
+ * @type {string}
27
+ * @memberof FeedDocument
28
+ */
29
+ url: string;
30
+ /**
31
+ * If present, the feed document contents are compressed using the indicated algorithm.
32
+ * @type {string}
33
+ * @memberof FeedDocument
34
+ */
35
+ compressionAlgorithm?: FeedDocumentCompressionAlgorithmEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ * @enum {string}
40
+ */
41
+ export declare enum FeedDocumentCompressionAlgorithmEnum {
42
+ Gzip = "GZIP"
43
+ }
@@ -0,0 +1,77 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface Feed
16
+ */
17
+ export interface Feed {
18
+ /**
19
+ * The identifier for the feed. This identifier is unique only in combination with a seller ID.
20
+ * @type {string}
21
+ * @memberof Feed
22
+ */
23
+ feedId: string;
24
+ /**
25
+ * The feed type.
26
+ * @type {string}
27
+ * @memberof Feed
28
+ */
29
+ feedType: string;
30
+ /**
31
+ * A list of identifiers for the marketplaces that the feed is applied to.
32
+ * @type {Array<string>}
33
+ * @memberof Feed
34
+ */
35
+ marketplaceIds?: Array<string>;
36
+ /**
37
+ * The date and time when the feed was created, in ISO 8601 date time format.
38
+ * @type {string}
39
+ * @memberof Feed
40
+ */
41
+ createdTime: string;
42
+ /**
43
+ * The processing status of the feed.
44
+ * @type {string}
45
+ * @memberof Feed
46
+ */
47
+ processingStatus: FeedProcessingStatusEnum;
48
+ /**
49
+ * The date and time when feed processing started, in ISO 8601 date time format.
50
+ * @type {string}
51
+ * @memberof Feed
52
+ */
53
+ processingStartTime?: string;
54
+ /**
55
+ * The date and time when feed processing completed, in ISO 8601 date time format.
56
+ * @type {string}
57
+ * @memberof Feed
58
+ */
59
+ processingEndTime?: string;
60
+ /**
61
+ * The identifier for the feed document. This identifier is unique only in combination with a seller ID.
62
+ * @type {string}
63
+ * @memberof Feed
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"
77
+ }
@@ -0,0 +1,31 @@
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 { Feed } from './feed';
13
+ /**
14
+ * Response schema.
15
+ * @export
16
+ * @interface GetFeedsResponse
17
+ */
18
+ export interface GetFeedsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<Feed>}
22
+ * @memberof GetFeedsResponse
23
+ */
24
+ feeds: Array<Feed>;
25
+ /**
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
+ * @type {string}
28
+ * @memberof GetFeedsResponse
29
+ */
30
+ nextToken?: string;
31
+ }
@@ -0,0 +1,9 @@
1
+ export * from './create-feed-document-response';
2
+ export * from './create-feed-document-specification';
3
+ export * from './create-feed-response';
4
+ export * from './create-feed-specification';
5
+ export * from './error-list';
6
+ export * from './feed';
7
+ export * from './feed-document';
8
+ export * from './get-feeds-response';
9
+ export * from './model-error';
@@ -0,0 +1,36 @@
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
+ /**
13
+ * An error response returned when the request is unsuccessful.
14
+ * @export
15
+ * @interface ModelError
16
+ */
17
+ export interface ModelError {
18
+ /**
19
+ * An error code that identifies the type of error that occurred.
20
+ * @type {string}
21
+ * @memberof ModelError
22
+ */
23
+ code: string;
24
+ /**
25
+ * A message that describes the error condition in a human-readable form.
26
+ * @type {string}
27
+ * @memberof ModelError
28
+ */
29
+ message: string;
30
+ /**
31
+ * Additional details that can help the caller understand or fix the issue.
32
+ * @type {string}
33
+ * @memberof ModelError
34
+ */
35
+ details?: string;
36
+ }