@sp-api-sdk/feeds-api-2021-06-30 3.1.4 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-model/api/feeds-api.js +12 -27
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/es/api-model/api/feeds-api.js +12 -27
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/types/api-model/api/feeds-api.d.ts +12 -63
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/create-feed-document-response.d.ts +0 -6
- package/dist/types/api-model/models/create-feed-document-specification.d.ts +0 -4
- package/dist/types/api-model/models/create-feed-response.d.ts +0 -4
- package/dist/types/api-model/models/create-feed-specification.d.ts +0 -10
- package/dist/types/api-model/models/error-list.d.ts +0 -4
- package/dist/types/api-model/models/feed-document.d.ts +0 -8
- package/dist/types/api-model/models/feed.d.ts +0 -18
- package/dist/types/api-model/models/get-feeds-response.d.ts +0 -6
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/package.json +25 -4
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Information required to upload a feed document\'s contents.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateFeedDocumentResponse
|
|
16
14
|
*/
|
|
17
15
|
export interface CreateFeedDocumentResponse {
|
|
18
16
|
/**
|
|
19
17
|
* The identifier of the feed document.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateFeedDocumentResponse
|
|
22
18
|
*/
|
|
23
19
|
'feedDocumentId': string;
|
|
24
20
|
/**
|
|
25
21
|
* The presigned URL for uploading the feed contents. This URL expires after 5 minutes.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateFeedDocumentResponse
|
|
28
22
|
*/
|
|
29
23
|
'url': string;
|
|
30
24
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Specifies the content type for the createFeedDocument operation.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateFeedDocumentSpecification
|
|
16
14
|
*/
|
|
17
15
|
export interface CreateFeedDocumentSpecification {
|
|
18
16
|
/**
|
|
19
17
|
* The content type of the feed.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateFeedDocumentSpecification
|
|
22
18
|
*/
|
|
23
19
|
'contentType': string;
|
|
24
20
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Response schema.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateFeedResponse
|
|
16
14
|
*/
|
|
17
15
|
export interface CreateFeedResponse {
|
|
18
16
|
/**
|
|
19
17
|
* The identifier for the feed. This identifier is unique only in combination with a seller ID.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateFeedResponse
|
|
22
18
|
*/
|
|
23
19
|
'feedId': string;
|
|
24
20
|
}
|
|
@@ -11,32 +11,22 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Information required to create the feed.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateFeedSpecification
|
|
16
14
|
*/
|
|
17
15
|
export interface CreateFeedSpecification {
|
|
18
16
|
/**
|
|
19
17
|
* The feed type.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateFeedSpecification
|
|
22
18
|
*/
|
|
23
19
|
'feedType': string;
|
|
24
20
|
/**
|
|
25
21
|
* A list of identifiers for marketplaces that you want the feed to be applied to.
|
|
26
|
-
* @type {Array<string>}
|
|
27
|
-
* @memberof CreateFeedSpecification
|
|
28
22
|
*/
|
|
29
23
|
'marketplaceIds': Array<string>;
|
|
30
24
|
/**
|
|
31
25
|
* 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
26
|
*/
|
|
35
27
|
'inputFeedDocumentId': string;
|
|
36
28
|
/**
|
|
37
29
|
* Additional options to control the feed. These vary by feed type.
|
|
38
|
-
* @type {{ [key: string]: string; }}
|
|
39
|
-
* @memberof CreateFeedSpecification
|
|
40
30
|
*/
|
|
41
31
|
'feedOptions'?: {
|
|
42
32
|
[key: string]: string;
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* A list of error responses returned when a request is unsuccessful.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ErrorList
|
|
16
14
|
*/
|
|
17
15
|
export interface ErrorList {
|
|
18
16
|
/**
|
|
19
17
|
* An error response returned when the request is unsuccessful.
|
|
20
|
-
* @type {Array<Error>}
|
|
21
|
-
* @memberof ErrorList
|
|
22
18
|
*/
|
|
23
19
|
'errors': Array<Error>;
|
|
24
20
|
}
|
|
@@ -11,26 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Information required for the feed document.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface FeedDocument
|
|
16
14
|
*/
|
|
17
15
|
export interface FeedDocument {
|
|
18
16
|
/**
|
|
19
17
|
* The identifier for the feed document. This identifier is unique only in combination with a seller ID.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof FeedDocument
|
|
22
18
|
*/
|
|
23
19
|
'feedDocumentId': string;
|
|
24
20
|
/**
|
|
25
21
|
* A presigned URL for the feed document. If `compressionAlgorithm` is not returned, you can download the feed directly from this URL. This URL expires after 5 minutes.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof FeedDocument
|
|
28
22
|
*/
|
|
29
23
|
'url': string;
|
|
30
24
|
/**
|
|
31
25
|
* If the feed document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the feed when you download. Otherwise, you can download the feed directly. Refer to [Step 7. Download the feed processing report](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-use-case-guide#step-7-download-the-feed-processing-report) in the use case guide, where sample code is provided.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof FeedDocument
|
|
34
26
|
*/
|
|
35
27
|
'compressionAlgorithm'?: FeedDocumentCompressionAlgorithmEnum;
|
|
36
28
|
}
|
|
@@ -11,56 +11,38 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Detailed information about the feed.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Feed
|
|
16
14
|
*/
|
|
17
15
|
export interface Feed {
|
|
18
16
|
/**
|
|
19
17
|
* The identifier for the feed. This identifier is unique only in combination with a seller ID.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Feed
|
|
22
18
|
*/
|
|
23
19
|
'feedId': string;
|
|
24
20
|
/**
|
|
25
21
|
* The feed type.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Feed
|
|
28
22
|
*/
|
|
29
23
|
'feedType': string;
|
|
30
24
|
/**
|
|
31
25
|
* A list of identifiers for the marketplaces that the feed is applied to.
|
|
32
|
-
* @type {Array<string>}
|
|
33
|
-
* @memberof Feed
|
|
34
26
|
*/
|
|
35
27
|
'marketplaceIds'?: Array<string>;
|
|
36
28
|
/**
|
|
37
29
|
* The date and time when the feed was created, in ISO 8601 date time format.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof Feed
|
|
40
30
|
*/
|
|
41
31
|
'createdTime': string;
|
|
42
32
|
/**
|
|
43
33
|
* The processing status of the feed.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof Feed
|
|
46
34
|
*/
|
|
47
35
|
'processingStatus': FeedProcessingStatusEnum;
|
|
48
36
|
/**
|
|
49
37
|
* The date and time when feed processing started, in ISO 8601 date time format.
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof Feed
|
|
52
38
|
*/
|
|
53
39
|
'processingStartTime'?: string;
|
|
54
40
|
/**
|
|
55
41
|
* The date and time when feed processing completed, in ISO 8601 date time format.
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Feed
|
|
58
42
|
*/
|
|
59
43
|
'processingEndTime'?: string;
|
|
60
44
|
/**
|
|
61
45
|
* The identifier for the feed document. This identifier is unique only in combination with a seller ID.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof Feed
|
|
64
46
|
*/
|
|
65
47
|
'resultFeedDocumentId'?: string;
|
|
66
48
|
}
|
|
@@ -12,20 +12,14 @@
|
|
|
12
12
|
import type { Feed } from './feed';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetFeedsResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface GetFeedsResponse {
|
|
19
17
|
/**
|
|
20
18
|
* A list of feeds.
|
|
21
|
-
* @type {Array<Feed>}
|
|
22
|
-
* @memberof GetFeedsResponse
|
|
23
19
|
*/
|
|
24
20
|
'feeds': Array<Feed>;
|
|
25
21
|
/**
|
|
26
22
|
* 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
23
|
*/
|
|
30
24
|
'nextToken'?: string;
|
|
31
25
|
}
|
|
@@ -11,26 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* An error response returned when the request is unsuccessful.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ModelError
|
|
16
14
|
*/
|
|
17
15
|
export interface ModelError {
|
|
18
16
|
/**
|
|
19
17
|
* An error code that identifies the type of error that occurred.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ModelError
|
|
22
18
|
*/
|
|
23
19
|
'code': string;
|
|
24
20
|
/**
|
|
25
21
|
* A message that describes the error condition.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ModelError
|
|
28
22
|
*/
|
|
29
23
|
'message': string;
|
|
30
24
|
/**
|
|
31
25
|
* Additional details that can help the caller understand or fix the issue.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ModelError
|
|
34
26
|
*/
|
|
35
27
|
'details'?: string;
|
|
36
28
|
}
|
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.1
|
|
5
|
+
"version": "3.2.1",
|
|
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.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.17",
|
|
22
|
+
"axios": "^1.11.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,26 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"feeds api"
|
|
42
42
|
],
|
|
43
|
-
"
|
|
43
|
+
"xo": {
|
|
44
|
+
"extends": [
|
|
45
|
+
"xo-bizon"
|
|
46
|
+
],
|
|
47
|
+
"settings": {
|
|
48
|
+
"import/internal-regex": "^@sp-api-sdk/"
|
|
49
|
+
},
|
|
50
|
+
"semicolon": false,
|
|
51
|
+
"space": 2,
|
|
52
|
+
"prettier": true,
|
|
53
|
+
"ignores": [
|
|
54
|
+
"src/api-model/**"
|
|
55
|
+
],
|
|
56
|
+
"rules": {
|
|
57
|
+
"unicorn/prevent-abbreviations": "off"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"prettier": {
|
|
61
|
+
"printWidth": 100,
|
|
62
|
+
"jsxSingleQuote": true
|
|
63
|
+
},
|
|
64
|
+
"gitHead": "961457650a65779f38e5d35547ca8cb2fb749943"
|
|
44
65
|
}
|