@sp-api-sdk/aplus-content-api-2020-11-01 1.10.8 → 1.10.10
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/src/api-model/api/aplus-content-api.js +30 -48
- package/dist/cjs/src/api-model/base.js +1 -3
- package/dist/cjs/src/api-model/common.js +2 -0
- package/dist/es/src/api-model/api/aplus-content-api.js +30 -48
- package/dist/es/src/api-model/base.js +1 -3
- package/dist/es/src/api-model/common.js +2 -0
- package/dist/types/src/api-model/api/aplus-content-api.d.ts +22 -40
- package/dist/types/src/api-model/base.d.ts +2 -3
- package/dist/types/src/api-model/common.d.ts +3 -3
- package/package.json +3 -3
|
@@ -547,111 +547,93 @@ const AplusContentApiFactory = function (configuration, basePath, axios) {
|
|
|
547
547
|
return {
|
|
548
548
|
/**
|
|
549
549
|
* Creates a new A+ Content document. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
550
|
-
* @param {
|
|
551
|
-
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
550
|
+
* @param {AplusContentApiCreateContentDocumentRequest} requestParameters Request parameters.
|
|
552
551
|
* @param {*} [options] Override http request option.
|
|
553
552
|
* @throws {RequiredError}
|
|
554
553
|
*/
|
|
555
|
-
createContentDocument(
|
|
556
|
-
return localVarFp.createContentDocument(marketplaceId, postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
554
|
+
createContentDocument(requestParameters, options) {
|
|
555
|
+
return localVarFp.createContentDocument(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
557
556
|
},
|
|
558
557
|
/**
|
|
559
558
|
* Returns an A+ Content document, if available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
560
|
-
* @param {
|
|
561
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
562
|
-
* @param {Set<'CONTENTS' | 'METADATA'>} includedDataSet The set of A+ Content data types to include in the response.
|
|
559
|
+
* @param {AplusContentApiGetContentDocumentRequest} requestParameters Request parameters.
|
|
563
560
|
* @param {*} [options] Override http request option.
|
|
564
561
|
* @throws {RequiredError}
|
|
565
562
|
*/
|
|
566
|
-
getContentDocument(
|
|
567
|
-
return localVarFp.getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options).then((request) => request(axios, basePath));
|
|
563
|
+
getContentDocument(requestParameters, options) {
|
|
564
|
+
return localVarFp.getContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, options).then((request) => request(axios, basePath));
|
|
568
565
|
},
|
|
569
566
|
/**
|
|
570
567
|
* Returns a list of ASINs related to the specified A+ Content document, if available. If you do not include the asinSet parameter, the operation returns all ASINs related to the content document. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
571
|
-
* @param {
|
|
572
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
573
|
-
* @param {Set<'METADATA'>} [includedDataSet] The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata.
|
|
574
|
-
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
575
|
-
* @param {string} [pageToken] A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.
|
|
568
|
+
* @param {AplusContentApiListContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
576
569
|
* @param {*} [options] Override http request option.
|
|
577
570
|
* @throws {RequiredError}
|
|
578
571
|
*/
|
|
579
|
-
listContentDocumentAsinRelations(
|
|
580
|
-
return localVarFp.listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options).then((request) => request(axios, basePath));
|
|
572
|
+
listContentDocumentAsinRelations(requestParameters, options) {
|
|
573
|
+
return localVarFp.listContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, requestParameters.asinSet, requestParameters.pageToken, options).then((request) => request(axios, basePath));
|
|
581
574
|
},
|
|
582
575
|
/**
|
|
583
576
|
* Submits an A+ Content document for review, approval, and publishing. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
584
|
-
* @param {
|
|
585
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
577
|
+
* @param {AplusContentApiPostContentDocumentApprovalSubmissionRequest} requestParameters Request parameters.
|
|
586
578
|
* @param {*} [options] Override http request option.
|
|
587
579
|
* @throws {RequiredError}
|
|
588
580
|
*/
|
|
589
|
-
postContentDocumentApprovalSubmission(
|
|
590
|
-
return localVarFp.postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options).then((request) => request(axios, basePath));
|
|
581
|
+
postContentDocumentApprovalSubmission(requestParameters, options) {
|
|
582
|
+
return localVarFp.postContentDocumentApprovalSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
|
|
591
583
|
},
|
|
592
584
|
/**
|
|
593
585
|
* Replaces all ASINs related to the specified A+ Content document, if available. This may add or remove ASINs, depending on the current set of related ASINs. Removing an ASIN has the side effect of suspending the content document from that ASIN. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
594
|
-
* @param {
|
|
595
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
596
|
-
* @param {PostContentDocumentAsinRelationsRequest} postContentDocumentAsinRelationsRequest The content document ASIN relations request details.
|
|
586
|
+
* @param {AplusContentApiPostContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
597
587
|
* @param {*} [options] Override http request option.
|
|
598
588
|
* @throws {RequiredError}
|
|
599
589
|
*/
|
|
600
|
-
postContentDocumentAsinRelations(
|
|
601
|
-
return localVarFp.postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options).then((request) => request(axios, basePath));
|
|
590
|
+
postContentDocumentAsinRelations(requestParameters, options) {
|
|
591
|
+
return localVarFp.postContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentAsinRelationsRequest, options).then((request) => request(axios, basePath));
|
|
602
592
|
},
|
|
603
593
|
/**
|
|
604
594
|
* Submits a request to suspend visible A+ Content. This neither deletes the content document nor the ASIN relations. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
605
|
-
* @param {
|
|
606
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
595
|
+
* @param {AplusContentApiPostContentDocumentSuspendSubmissionRequest} requestParameters Request parameters.
|
|
607
596
|
* @param {*} [options] Override http request option.
|
|
608
597
|
* @throws {RequiredError}
|
|
609
598
|
*/
|
|
610
|
-
postContentDocumentSuspendSubmission(
|
|
611
|
-
return localVarFp.postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options).then((request) => request(axios, basePath));
|
|
599
|
+
postContentDocumentSuspendSubmission(requestParameters, options) {
|
|
600
|
+
return localVarFp.postContentDocumentSuspendSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
|
|
612
601
|
},
|
|
613
602
|
/**
|
|
614
603
|
* Returns a list of all A+ Content documents assigned to a selling partner. This operation returns only the metadata of the A+ Content documents. Call the getContentDocument operation to get the actual contents of the A+ Content documents. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
615
|
-
* @param {
|
|
616
|
-
* @param {string} [pageToken] A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.
|
|
604
|
+
* @param {AplusContentApiSearchContentDocumentsRequest} requestParameters Request parameters.
|
|
617
605
|
* @param {*} [options] Override http request option.
|
|
618
606
|
* @throws {RequiredError}
|
|
619
607
|
*/
|
|
620
|
-
searchContentDocuments(
|
|
621
|
-
return localVarFp.searchContentDocuments(marketplaceId, pageToken, options).then((request) => request(axios, basePath));
|
|
608
|
+
searchContentDocuments(requestParameters, options) {
|
|
609
|
+
return localVarFp.searchContentDocuments(requestParameters.marketplaceId, requestParameters.pageToken, options).then((request) => request(axios, basePath));
|
|
622
610
|
},
|
|
623
611
|
/**
|
|
624
612
|
* Searches for A+ Content publishing records, if available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
625
|
-
* @param {
|
|
626
|
-
* @param {string} asin The Amazon Standard Identification Number (ASIN).
|
|
627
|
-
* @param {string} [pageToken] A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.
|
|
613
|
+
* @param {AplusContentApiSearchContentPublishRecordsRequest} requestParameters Request parameters.
|
|
628
614
|
* @param {*} [options] Override http request option.
|
|
629
615
|
* @throws {RequiredError}
|
|
630
616
|
*/
|
|
631
|
-
searchContentPublishRecords(
|
|
632
|
-
return localVarFp.searchContentPublishRecords(marketplaceId, asin, pageToken, options).then((request) => request(axios, basePath));
|
|
617
|
+
searchContentPublishRecords(requestParameters, options) {
|
|
618
|
+
return localVarFp.searchContentPublishRecords(requestParameters.marketplaceId, requestParameters.asin, requestParameters.pageToken, options).then((request) => request(axios, basePath));
|
|
633
619
|
},
|
|
634
620
|
/**
|
|
635
621
|
* Updates an existing A+ Content document. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
636
|
-
* @param {
|
|
637
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
638
|
-
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
622
|
+
* @param {AplusContentApiUpdateContentDocumentRequest} requestParameters Request parameters.
|
|
639
623
|
* @param {*} [options] Override http request option.
|
|
640
624
|
* @throws {RequiredError}
|
|
641
625
|
*/
|
|
642
|
-
updateContentDocument(
|
|
643
|
-
return localVarFp.updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
626
|
+
updateContentDocument(requestParameters, options) {
|
|
627
|
+
return localVarFp.updateContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
644
628
|
},
|
|
645
629
|
/**
|
|
646
630
|
* Checks if the A+ Content document is valid for use on a set of ASINs. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
647
|
-
* @param {
|
|
648
|
-
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
649
|
-
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
631
|
+
* @param {AplusContentApiValidateContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
650
632
|
* @param {*} [options] Override http request option.
|
|
651
633
|
* @throws {RequiredError}
|
|
652
634
|
*/
|
|
653
|
-
validateContentDocumentAsinRelations(
|
|
654
|
-
return localVarFp.validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options).then((request) => request(axios, basePath));
|
|
635
|
+
validateContentDocumentAsinRelations(requestParameters, options) {
|
|
636
|
+
return localVarFp.validateContentDocumentAsinRelations(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, requestParameters.asinSet, options).then((request) => request(axios, basePath));
|
|
655
637
|
},
|
|
656
638
|
};
|
|
657
639
|
};
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const tslib_1 = require("tslib");
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
18
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
21
19
|
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
22
20
|
/**
|
|
@@ -57,10 +55,10 @@ exports.BaseAPI = BaseAPI;
|
|
|
57
55
|
*/
|
|
58
56
|
class RequiredError extends Error {
|
|
59
57
|
field;
|
|
60
|
-
name = "RequiredError";
|
|
61
58
|
constructor(field, msg) {
|
|
62
59
|
super(msg);
|
|
63
60
|
this.field = field;
|
|
61
|
+
this.name = "RequiredError";
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
exports.RequiredError = RequiredError;
|
|
@@ -81,6 +81,8 @@ const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
|
81
81
|
};
|
|
82
82
|
exports.setOAuthToObject = setOAuthToObject;
|
|
83
83
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
84
|
+
if (parameter == null)
|
|
85
|
+
return;
|
|
84
86
|
if (typeof parameter === "object") {
|
|
85
87
|
if (Array.isArray(parameter)) {
|
|
86
88
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
@@ -541,111 +541,93 @@ export const AplusContentApiFactory = function (configuration, basePath, axios)
|
|
|
541
541
|
return {
|
|
542
542
|
/**
|
|
543
543
|
* Creates a new A+ Content document. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
544
|
-
* @param {
|
|
545
|
-
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
544
|
+
* @param {AplusContentApiCreateContentDocumentRequest} requestParameters Request parameters.
|
|
546
545
|
* @param {*} [options] Override http request option.
|
|
547
546
|
* @throws {RequiredError}
|
|
548
547
|
*/
|
|
549
|
-
createContentDocument(
|
|
550
|
-
return localVarFp.createContentDocument(marketplaceId, postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
548
|
+
createContentDocument(requestParameters, options) {
|
|
549
|
+
return localVarFp.createContentDocument(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
551
550
|
},
|
|
552
551
|
/**
|
|
553
552
|
* Returns an A+ Content document, if available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
554
|
-
* @param {
|
|
555
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
556
|
-
* @param {Set<'CONTENTS' | 'METADATA'>} includedDataSet The set of A+ Content data types to include in the response.
|
|
553
|
+
* @param {AplusContentApiGetContentDocumentRequest} requestParameters Request parameters.
|
|
557
554
|
* @param {*} [options] Override http request option.
|
|
558
555
|
* @throws {RequiredError}
|
|
559
556
|
*/
|
|
560
|
-
getContentDocument(
|
|
561
|
-
return localVarFp.getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options).then((request) => request(axios, basePath));
|
|
557
|
+
getContentDocument(requestParameters, options) {
|
|
558
|
+
return localVarFp.getContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, options).then((request) => request(axios, basePath));
|
|
562
559
|
},
|
|
563
560
|
/**
|
|
564
561
|
* Returns a list of ASINs related to the specified A+ Content document, if available. If you do not include the asinSet parameter, the operation returns all ASINs related to the content document. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
565
|
-
* @param {
|
|
566
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
567
|
-
* @param {Set<'METADATA'>} [includedDataSet] The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata.
|
|
568
|
-
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
569
|
-
* @param {string} [pageToken] A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.
|
|
562
|
+
* @param {AplusContentApiListContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
570
563
|
* @param {*} [options] Override http request option.
|
|
571
564
|
* @throws {RequiredError}
|
|
572
565
|
*/
|
|
573
|
-
listContentDocumentAsinRelations(
|
|
574
|
-
return localVarFp.listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options).then((request) => request(axios, basePath));
|
|
566
|
+
listContentDocumentAsinRelations(requestParameters, options) {
|
|
567
|
+
return localVarFp.listContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, requestParameters.asinSet, requestParameters.pageToken, options).then((request) => request(axios, basePath));
|
|
575
568
|
},
|
|
576
569
|
/**
|
|
577
570
|
* Submits an A+ Content document for review, approval, and publishing. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
578
|
-
* @param {
|
|
579
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
571
|
+
* @param {AplusContentApiPostContentDocumentApprovalSubmissionRequest} requestParameters Request parameters.
|
|
580
572
|
* @param {*} [options] Override http request option.
|
|
581
573
|
* @throws {RequiredError}
|
|
582
574
|
*/
|
|
583
|
-
postContentDocumentApprovalSubmission(
|
|
584
|
-
return localVarFp.postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options).then((request) => request(axios, basePath));
|
|
575
|
+
postContentDocumentApprovalSubmission(requestParameters, options) {
|
|
576
|
+
return localVarFp.postContentDocumentApprovalSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
|
|
585
577
|
},
|
|
586
578
|
/**
|
|
587
579
|
* Replaces all ASINs related to the specified A+ Content document, if available. This may add or remove ASINs, depending on the current set of related ASINs. Removing an ASIN has the side effect of suspending the content document from that ASIN. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
588
|
-
* @param {
|
|
589
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
590
|
-
* @param {PostContentDocumentAsinRelationsRequest} postContentDocumentAsinRelationsRequest The content document ASIN relations request details.
|
|
580
|
+
* @param {AplusContentApiPostContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
591
581
|
* @param {*} [options] Override http request option.
|
|
592
582
|
* @throws {RequiredError}
|
|
593
583
|
*/
|
|
594
|
-
postContentDocumentAsinRelations(
|
|
595
|
-
return localVarFp.postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options).then((request) => request(axios, basePath));
|
|
584
|
+
postContentDocumentAsinRelations(requestParameters, options) {
|
|
585
|
+
return localVarFp.postContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentAsinRelationsRequest, options).then((request) => request(axios, basePath));
|
|
596
586
|
},
|
|
597
587
|
/**
|
|
598
588
|
* Submits a request to suspend visible A+ Content. This neither deletes the content document nor the ASIN relations. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
599
|
-
* @param {
|
|
600
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
589
|
+
* @param {AplusContentApiPostContentDocumentSuspendSubmissionRequest} requestParameters Request parameters.
|
|
601
590
|
* @param {*} [options] Override http request option.
|
|
602
591
|
* @throws {RequiredError}
|
|
603
592
|
*/
|
|
604
|
-
postContentDocumentSuspendSubmission(
|
|
605
|
-
return localVarFp.postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options).then((request) => request(axios, basePath));
|
|
593
|
+
postContentDocumentSuspendSubmission(requestParameters, options) {
|
|
594
|
+
return localVarFp.postContentDocumentSuspendSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
|
|
606
595
|
},
|
|
607
596
|
/**
|
|
608
597
|
* Returns a list of all A+ Content documents assigned to a selling partner. This operation returns only the metadata of the A+ Content documents. Call the getContentDocument operation to get the actual contents of the A+ Content documents. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
609
|
-
* @param {
|
|
610
|
-
* @param {string} [pageToken] A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.
|
|
598
|
+
* @param {AplusContentApiSearchContentDocumentsRequest} requestParameters Request parameters.
|
|
611
599
|
* @param {*} [options] Override http request option.
|
|
612
600
|
* @throws {RequiredError}
|
|
613
601
|
*/
|
|
614
|
-
searchContentDocuments(
|
|
615
|
-
return localVarFp.searchContentDocuments(marketplaceId, pageToken, options).then((request) => request(axios, basePath));
|
|
602
|
+
searchContentDocuments(requestParameters, options) {
|
|
603
|
+
return localVarFp.searchContentDocuments(requestParameters.marketplaceId, requestParameters.pageToken, options).then((request) => request(axios, basePath));
|
|
616
604
|
},
|
|
617
605
|
/**
|
|
618
606
|
* Searches for A+ Content publishing records, if available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
619
|
-
* @param {
|
|
620
|
-
* @param {string} asin The Amazon Standard Identification Number (ASIN).
|
|
621
|
-
* @param {string} [pageToken] A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.
|
|
607
|
+
* @param {AplusContentApiSearchContentPublishRecordsRequest} requestParameters Request parameters.
|
|
622
608
|
* @param {*} [options] Override http request option.
|
|
623
609
|
* @throws {RequiredError}
|
|
624
610
|
*/
|
|
625
|
-
searchContentPublishRecords(
|
|
626
|
-
return localVarFp.searchContentPublishRecords(marketplaceId, asin, pageToken, options).then((request) => request(axios, basePath));
|
|
611
|
+
searchContentPublishRecords(requestParameters, options) {
|
|
612
|
+
return localVarFp.searchContentPublishRecords(requestParameters.marketplaceId, requestParameters.asin, requestParameters.pageToken, options).then((request) => request(axios, basePath));
|
|
627
613
|
},
|
|
628
614
|
/**
|
|
629
615
|
* Updates an existing A+ Content document. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
630
|
-
* @param {
|
|
631
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
632
|
-
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
616
|
+
* @param {AplusContentApiUpdateContentDocumentRequest} requestParameters Request parameters.
|
|
633
617
|
* @param {*} [options] Override http request option.
|
|
634
618
|
* @throws {RequiredError}
|
|
635
619
|
*/
|
|
636
|
-
updateContentDocument(
|
|
637
|
-
return localVarFp.updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
620
|
+
updateContentDocument(requestParameters, options) {
|
|
621
|
+
return localVarFp.updateContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
638
622
|
},
|
|
639
623
|
/**
|
|
640
624
|
* Checks if the A+ Content document is valid for use on a set of ASINs. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
641
|
-
* @param {
|
|
642
|
-
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
643
|
-
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
625
|
+
* @param {AplusContentApiValidateContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
644
626
|
* @param {*} [options] Override http request option.
|
|
645
627
|
* @throws {RequiredError}
|
|
646
628
|
*/
|
|
647
|
-
validateContentDocumentAsinRelations(
|
|
648
|
-
return localVarFp.validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options).then((request) => request(axios, basePath));
|
|
629
|
+
validateContentDocumentAsinRelations(requestParameters, options) {
|
|
630
|
+
return localVarFp.validateContentDocumentAsinRelations(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, requestParameters.asinSet, options).then((request) => request(axios, basePath));
|
|
649
631
|
},
|
|
650
632
|
};
|
|
651
633
|
};
|
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
// Some imports not used depending on template conditions
|
|
15
|
-
// @ts-ignore
|
|
16
14
|
import globalAxios from 'axios';
|
|
17
15
|
export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
18
16
|
/**
|
|
@@ -52,9 +50,9 @@ export class BaseAPI {
|
|
|
52
50
|
*/
|
|
53
51
|
export class RequiredError extends Error {
|
|
54
52
|
field;
|
|
55
|
-
name = "RequiredError";
|
|
56
53
|
constructor(field, msg) {
|
|
57
54
|
super(msg);
|
|
58
55
|
this.field = field;
|
|
56
|
+
this.name = "RequiredError";
|
|
59
57
|
}
|
|
60
58
|
}
|
|
@@ -73,6 +73,8 @@ export const setOAuthToObject = async function (object, name, scopes, configurat
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
76
|
+
if (parameter == null)
|
|
77
|
+
return;
|
|
76
78
|
if (typeof parameter === "object") {
|
|
77
79
|
if (Array.isArray(parameter)) {
|
|
78
80
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { GetContentDocumentResponse } from '../models';
|
|
16
16
|
import { ListContentDocumentAsinRelationsResponse } from '../models';
|
|
@@ -218,92 +218,74 @@ export declare const AplusContentApiFp: (configuration?: Configuration) => {
|
|
|
218
218
|
export declare const AplusContentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
219
219
|
/**
|
|
220
220
|
* Creates a new A+ Content document. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
221
|
-
* @param {
|
|
222
|
-
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
221
|
+
* @param {AplusContentApiCreateContentDocumentRequest} requestParameters Request parameters.
|
|
223
222
|
* @param {*} [options] Override http request option.
|
|
224
223
|
* @throws {RequiredError}
|
|
225
224
|
*/
|
|
226
|
-
createContentDocument(
|
|
225
|
+
createContentDocument(requestParameters: AplusContentApiCreateContentDocumentRequest, options?: AxiosRequestConfig): AxiosPromise<PostContentDocumentResponse>;
|
|
227
226
|
/**
|
|
228
227
|
* Returns an A+ Content document, if available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
229
|
-
* @param {
|
|
230
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
231
|
-
* @param {Set<'CONTENTS' | 'METADATA'>} includedDataSet The set of A+ Content data types to include in the response.
|
|
228
|
+
* @param {AplusContentApiGetContentDocumentRequest} requestParameters Request parameters.
|
|
232
229
|
* @param {*} [options] Override http request option.
|
|
233
230
|
* @throws {RequiredError}
|
|
234
231
|
*/
|
|
235
|
-
getContentDocument(
|
|
232
|
+
getContentDocument(requestParameters: AplusContentApiGetContentDocumentRequest, options?: AxiosRequestConfig): AxiosPromise<GetContentDocumentResponse>;
|
|
236
233
|
/**
|
|
237
234
|
* Returns a list of ASINs related to the specified A+ Content document, if available. If you do not include the asinSet parameter, the operation returns all ASINs related to the content document. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
238
|
-
* @param {
|
|
239
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
240
|
-
* @param {Set<'METADATA'>} [includedDataSet] The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata.
|
|
241
|
-
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
242
|
-
* @param {string} [pageToken] A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.
|
|
235
|
+
* @param {AplusContentApiListContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
243
236
|
* @param {*} [options] Override http request option.
|
|
244
237
|
* @throws {RequiredError}
|
|
245
238
|
*/
|
|
246
|
-
listContentDocumentAsinRelations(
|
|
239
|
+
listContentDocumentAsinRelations(requestParameters: AplusContentApiListContentDocumentAsinRelationsRequest, options?: AxiosRequestConfig): AxiosPromise<ListContentDocumentAsinRelationsResponse>;
|
|
247
240
|
/**
|
|
248
241
|
* Submits an A+ Content document for review, approval, and publishing. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
249
|
-
* @param {
|
|
250
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
242
|
+
* @param {AplusContentApiPostContentDocumentApprovalSubmissionRequest} requestParameters Request parameters.
|
|
251
243
|
* @param {*} [options] Override http request option.
|
|
252
244
|
* @throws {RequiredError}
|
|
253
245
|
*/
|
|
254
|
-
postContentDocumentApprovalSubmission(
|
|
246
|
+
postContentDocumentApprovalSubmission(requestParameters: AplusContentApiPostContentDocumentApprovalSubmissionRequest, options?: AxiosRequestConfig): AxiosPromise<PostContentDocumentApprovalSubmissionResponse>;
|
|
255
247
|
/**
|
|
256
248
|
* Replaces all ASINs related to the specified A+ Content document, if available. This may add or remove ASINs, depending on the current set of related ASINs. Removing an ASIN has the side effect of suspending the content document from that ASIN. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
257
|
-
* @param {
|
|
258
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
259
|
-
* @param {PostContentDocumentAsinRelationsRequest} postContentDocumentAsinRelationsRequest The content document ASIN relations request details.
|
|
249
|
+
* @param {AplusContentApiPostContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
260
250
|
* @param {*} [options] Override http request option.
|
|
261
251
|
* @throws {RequiredError}
|
|
262
252
|
*/
|
|
263
|
-
postContentDocumentAsinRelations(
|
|
253
|
+
postContentDocumentAsinRelations(requestParameters: AplusContentApiPostContentDocumentAsinRelationsRequest, options?: AxiosRequestConfig): AxiosPromise<PostContentDocumentAsinRelationsResponse>;
|
|
264
254
|
/**
|
|
265
255
|
* Submits a request to suspend visible A+ Content. This neither deletes the content document nor the ASIN relations. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
266
|
-
* @param {
|
|
267
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
256
|
+
* @param {AplusContentApiPostContentDocumentSuspendSubmissionRequest} requestParameters Request parameters.
|
|
268
257
|
* @param {*} [options] Override http request option.
|
|
269
258
|
* @throws {RequiredError}
|
|
270
259
|
*/
|
|
271
|
-
postContentDocumentSuspendSubmission(
|
|
260
|
+
postContentDocumentSuspendSubmission(requestParameters: AplusContentApiPostContentDocumentSuspendSubmissionRequest, options?: AxiosRequestConfig): AxiosPromise<PostContentDocumentSuspendSubmissionResponse>;
|
|
272
261
|
/**
|
|
273
262
|
* Returns a list of all A+ Content documents assigned to a selling partner. This operation returns only the metadata of the A+ Content documents. Call the getContentDocument operation to get the actual contents of the A+ Content documents. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
274
|
-
* @param {
|
|
275
|
-
* @param {string} [pageToken] A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.
|
|
263
|
+
* @param {AplusContentApiSearchContentDocumentsRequest} requestParameters Request parameters.
|
|
276
264
|
* @param {*} [options] Override http request option.
|
|
277
265
|
* @throws {RequiredError}
|
|
278
266
|
*/
|
|
279
|
-
searchContentDocuments(
|
|
267
|
+
searchContentDocuments(requestParameters: AplusContentApiSearchContentDocumentsRequest, options?: AxiosRequestConfig): AxiosPromise<SearchContentDocumentsResponse>;
|
|
280
268
|
/**
|
|
281
269
|
* Searches for A+ Content publishing records, if available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
282
|
-
* @param {
|
|
283
|
-
* @param {string} asin The Amazon Standard Identification Number (ASIN).
|
|
284
|
-
* @param {string} [pageToken] A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.
|
|
270
|
+
* @param {AplusContentApiSearchContentPublishRecordsRequest} requestParameters Request parameters.
|
|
285
271
|
* @param {*} [options] Override http request option.
|
|
286
272
|
* @throws {RequiredError}
|
|
287
273
|
*/
|
|
288
|
-
searchContentPublishRecords(
|
|
274
|
+
searchContentPublishRecords(requestParameters: AplusContentApiSearchContentPublishRecordsRequest, options?: AxiosRequestConfig): AxiosPromise<SearchContentPublishRecordsResponse>;
|
|
289
275
|
/**
|
|
290
276
|
* Updates an existing A+ Content document. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
291
|
-
* @param {
|
|
292
|
-
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
293
|
-
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
277
|
+
* @param {AplusContentApiUpdateContentDocumentRequest} requestParameters Request parameters.
|
|
294
278
|
* @param {*} [options] Override http request option.
|
|
295
279
|
* @throws {RequiredError}
|
|
296
280
|
*/
|
|
297
|
-
updateContentDocument(
|
|
281
|
+
updateContentDocument(requestParameters: AplusContentApiUpdateContentDocumentRequest, options?: AxiosRequestConfig): AxiosPromise<PostContentDocumentResponse>;
|
|
298
282
|
/**
|
|
299
283
|
* Checks if the A+ Content document is valid for use on a set of ASINs. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
300
|
-
* @param {
|
|
301
|
-
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
302
|
-
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
284
|
+
* @param {AplusContentApiValidateContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
303
285
|
* @param {*} [options] Override http request option.
|
|
304
286
|
* @throws {RequiredError}
|
|
305
287
|
*/
|
|
306
|
-
validateContentDocumentAsinRelations(
|
|
288
|
+
validateContentDocumentAsinRelations(requestParameters: AplusContentApiValidateContentDocumentAsinRelationsRequest, options?: AxiosRequestConfig): AxiosPromise<ValidateContentDocumentAsinRelationsResponse>;
|
|
307
289
|
};
|
|
308
290
|
/**
|
|
309
291
|
* Request parameters for createContentDocument operation in AplusContentApi.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Configuration } from
|
|
13
|
-
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -50,6 +50,5 @@ export declare class BaseAPI {
|
|
|
50
50
|
*/
|
|
51
51
|
export declare class RequiredError extends Error {
|
|
52
52
|
field: string;
|
|
53
|
-
name: "RequiredError";
|
|
54
53
|
constructor(field: string, msg?: string);
|
|
55
54
|
}
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/// <reference types="node" />
|
|
13
|
-
import { Configuration } from "./configuration";
|
|
14
|
-
import { RequestArgs } from "./base";
|
|
15
|
-
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
13
|
+
import type { Configuration } from "./configuration";
|
|
14
|
+
import type { RequestArgs } from "./base";
|
|
15
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/aplus-content-api-2020-11-01",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "With the A+ Content API, you can build applications that help selling partners add rich marketing content to their Amazon product detail pages. A+ content helps selling partners share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners assemble content by choosing from content modules and adding images and text.",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.10",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test": "jest"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sp-api-sdk/common": "^1.9.
|
|
29
|
+
"@sp-api-sdk/common": "^1.9.22",
|
|
30
30
|
"axios": "^0.27.2"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"typedoc": {
|
|
52
52
|
"entryPoint": "./index.ts"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "19982f06cbbd770bfc7b9f1bc8a42f59b57baead"
|
|
55
55
|
}
|