@sp-api-sdk/aplus-content-api-2020-11-01 2.0.7 → 2.1.0
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 +48 -15
- package/dist/cjs/src/api-model/base.js +7 -2
- package/dist/cjs/src/api-model/common.js +1 -1
- package/dist/cjs/src/api-model/configuration.js +8 -0
- package/dist/es/src/api-model/api/aplus-content-api.js +48 -15
- package/dist/es/src/api-model/base.js +6 -1
- package/dist/es/src/api-model/common.js +1 -1
- package/dist/es/src/api-model/configuration.js +8 -0
- package/dist/types/src/api-model/api/aplus-content-api.d.ts +74 -59
- package/dist/types/src/api-model/base.d.ts +14 -2
- package/dist/types/src/api-model/configuration.d.ts +8 -0
- package/dist/types/src/api-model/models/aplus-paginated-response.d.ts +2 -2
- package/dist/types/src/api-model/models/asin-metadata.d.ts +1 -1
- package/dist/types/src/api-model/models/content-document.d.ts +2 -2
- package/dist/types/src/api-model/models/content-metadata-record.d.ts +1 -1
- package/dist/types/src/api-model/models/content-metadata.d.ts +2 -2
- package/dist/types/src/api-model/models/content-module.d.ts +16 -16
- package/dist/types/src/api-model/models/content-record.d.ts +2 -2
- package/dist/types/src/api-model/models/decorator.d.ts +1 -1
- package/dist/types/src/api-model/models/get-content-document-response-all-of.d.ts +1 -1
- package/dist/types/src/api-model/models/get-content-document-response.d.ts +2 -2
- package/dist/types/src/api-model/models/image-component.d.ts +1 -1
- package/dist/types/src/api-model/models/image-crop-specification.d.ts +2 -2
- package/dist/types/src/api-model/models/image-dimensions.d.ts +1 -1
- package/dist/types/src/api-model/models/image-offsets.d.ts +1 -1
- package/dist/types/src/api-model/models/list-content-document-asin-relations-response-all-of.d.ts +1 -1
- package/dist/types/src/api-model/models/list-content-document-asin-relations-response.d.ts +2 -2
- package/dist/types/src/api-model/models/paragraph-component.d.ts +1 -1
- package/dist/types/src/api-model/models/post-content-document-approval-submission-response.d.ts +1 -1
- package/dist/types/src/api-model/models/post-content-document-asin-relations-response.d.ts +1 -1
- package/dist/types/src/api-model/models/post-content-document-request.d.ts +1 -1
- package/dist/types/src/api-model/models/post-content-document-response.d.ts +2 -2
- package/dist/types/src/api-model/models/post-content-document-suspend-submission-response.d.ts +1 -1
- package/dist/types/src/api-model/models/publish-record.d.ts +1 -1
- package/dist/types/src/api-model/models/search-content-documents-response-all-of.d.ts +1 -1
- package/dist/types/src/api-model/models/search-content-documents-response.d.ts +2 -2
- package/dist/types/src/api-model/models/search-content-publish-records-response-all-of.d.ts +1 -1
- package/dist/types/src/api-model/models/search-content-publish-records-response.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-company-logo-module.d.ts +1 -1
- package/dist/types/src/api-model/models/standard-comparison-product-block.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-comparison-table-module.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-four-image-text-module.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-four-image-text-quadrant-module.d.ts +1 -1
- package/dist/types/src/api-model/models/standard-header-image-text-module.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-header-text-list-block.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-image-caption-block.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-image-sidebar-module.d.ts +5 -5
- package/dist/types/src/api-model/models/standard-image-text-block.d.ts +3 -3
- package/dist/types/src/api-model/models/standard-image-text-caption-block.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-image-text-overlay-module.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-multiple-image-text-module.d.ts +1 -1
- package/dist/types/src/api-model/models/standard-product-description-module.d.ts +1 -1
- package/dist/types/src/api-model/models/standard-single-image-highlights-module.d.ts +4 -4
- package/dist/types/src/api-model/models/standard-single-image-specs-detail-module.d.ts +4 -4
- package/dist/types/src/api-model/models/standard-single-side-image-module.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-tech-specs-module.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-text-block.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-text-list-block.d.ts +1 -1
- package/dist/types/src/api-model/models/standard-text-module.d.ts +2 -2
- package/dist/types/src/api-model/models/standard-text-pair-block.d.ts +1 -1
- package/dist/types/src/api-model/models/standard-three-image-text-module.d.ts +2 -2
- package/dist/types/src/api-model/models/text-component.d.ts +1 -1
- package/dist/types/src/api-model/models/text-item.d.ts +1 -1
- package/dist/types/src/api-model/models/validate-content-document-asin-relations-response.d.ts +2 -2
- package/package.json +4 -4
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.AplusContentApi = exports.AplusContentApiFactory = exports.AplusContentApiFp = exports.AplusContentApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.ListContentDocumentAsinRelationsIncludedDataSetEnum = exports.GetContentDocumentIncludedDataSetEnum = exports.AplusContentApi = exports.AplusContentApiFactory = exports.AplusContentApiFp = exports.AplusContentApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -68,7 +68,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
68
68
|
* 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.
|
|
69
69
|
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
70
70
|
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
71
|
-
* @param {Set<
|
|
71
|
+
* @param {Set<GetContentDocumentIncludedDataSetEnum>} includedDataSet The set of A+ Content data types to include in the response.
|
|
72
72
|
* @param {*} [options] Override http request option.
|
|
73
73
|
* @throws {RequiredError}
|
|
74
74
|
*/
|
|
@@ -108,7 +108,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
* 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.
|
|
109
109
|
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
110
110
|
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
111
|
-
* @param {Set<
|
|
111
|
+
* @param {Set<ListContentDocumentAsinRelationsIncludedDataSetEnum>} [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.
|
|
112
112
|
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
113
113
|
* @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.
|
|
114
114
|
* @param {*} [options] Override http request option.
|
|
@@ -428,25 +428,29 @@ const AplusContentApiFp = function (configuration) {
|
|
|
428
428
|
*/
|
|
429
429
|
async createContentDocument(marketplaceId, postContentDocumentRequest, options) {
|
|
430
430
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createContentDocument(marketplaceId, postContentDocumentRequest, options);
|
|
431
|
-
|
|
431
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
432
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.createContentDocument']?.[localVarOperationServerIndex]?.url;
|
|
433
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
432
434
|
},
|
|
433
435
|
/**
|
|
434
436
|
* 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.
|
|
435
437
|
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
436
438
|
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
437
|
-
* @param {Set<
|
|
439
|
+
* @param {Set<GetContentDocumentIncludedDataSetEnum>} includedDataSet The set of A+ Content data types to include in the response.
|
|
438
440
|
* @param {*} [options] Override http request option.
|
|
439
441
|
* @throws {RequiredError}
|
|
440
442
|
*/
|
|
441
443
|
async getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options) {
|
|
442
444
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options);
|
|
443
|
-
|
|
445
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
446
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.getContentDocument']?.[localVarOperationServerIndex]?.url;
|
|
447
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
444
448
|
},
|
|
445
449
|
/**
|
|
446
450
|
* 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.
|
|
447
451
|
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
448
452
|
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
449
|
-
* @param {Set<
|
|
453
|
+
* @param {Set<ListContentDocumentAsinRelationsIncludedDataSetEnum>} [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.
|
|
450
454
|
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
451
455
|
* @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.
|
|
452
456
|
* @param {*} [options] Override http request option.
|
|
@@ -454,7 +458,9 @@ const AplusContentApiFp = function (configuration) {
|
|
|
454
458
|
*/
|
|
455
459
|
async listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options) {
|
|
456
460
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options);
|
|
457
|
-
|
|
461
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
462
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.listContentDocumentAsinRelations']?.[localVarOperationServerIndex]?.url;
|
|
463
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
458
464
|
},
|
|
459
465
|
/**
|
|
460
466
|
* 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.
|
|
@@ -465,7 +471,9 @@ const AplusContentApiFp = function (configuration) {
|
|
|
465
471
|
*/
|
|
466
472
|
async postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options) {
|
|
467
473
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options);
|
|
468
|
-
|
|
474
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
475
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.postContentDocumentApprovalSubmission']?.[localVarOperationServerIndex]?.url;
|
|
476
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
469
477
|
},
|
|
470
478
|
/**
|
|
471
479
|
* 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.
|
|
@@ -477,7 +485,9 @@ const AplusContentApiFp = function (configuration) {
|
|
|
477
485
|
*/
|
|
478
486
|
async postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options) {
|
|
479
487
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options);
|
|
480
|
-
|
|
488
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
489
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.postContentDocumentAsinRelations']?.[localVarOperationServerIndex]?.url;
|
|
490
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
481
491
|
},
|
|
482
492
|
/**
|
|
483
493
|
* 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.
|
|
@@ -488,7 +498,9 @@ const AplusContentApiFp = function (configuration) {
|
|
|
488
498
|
*/
|
|
489
499
|
async postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options) {
|
|
490
500
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options);
|
|
491
|
-
|
|
501
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
502
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.postContentDocumentSuspendSubmission']?.[localVarOperationServerIndex]?.url;
|
|
503
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
492
504
|
},
|
|
493
505
|
/**
|
|
494
506
|
* 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.
|
|
@@ -499,7 +511,9 @@ const AplusContentApiFp = function (configuration) {
|
|
|
499
511
|
*/
|
|
500
512
|
async searchContentDocuments(marketplaceId, pageToken, options) {
|
|
501
513
|
const localVarAxiosArgs = await localVarAxiosParamCreator.searchContentDocuments(marketplaceId, pageToken, options);
|
|
502
|
-
|
|
514
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
515
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.searchContentDocuments']?.[localVarOperationServerIndex]?.url;
|
|
516
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
503
517
|
},
|
|
504
518
|
/**
|
|
505
519
|
* 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.
|
|
@@ -511,7 +525,9 @@ const AplusContentApiFp = function (configuration) {
|
|
|
511
525
|
*/
|
|
512
526
|
async searchContentPublishRecords(marketplaceId, asin, pageToken, options) {
|
|
513
527
|
const localVarAxiosArgs = await localVarAxiosParamCreator.searchContentPublishRecords(marketplaceId, asin, pageToken, options);
|
|
514
|
-
|
|
528
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
529
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.searchContentPublishRecords']?.[localVarOperationServerIndex]?.url;
|
|
530
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
515
531
|
},
|
|
516
532
|
/**
|
|
517
533
|
* 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.
|
|
@@ -523,7 +539,9 @@ const AplusContentApiFp = function (configuration) {
|
|
|
523
539
|
*/
|
|
524
540
|
async updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options) {
|
|
525
541
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options);
|
|
526
|
-
|
|
542
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
543
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.updateContentDocument']?.[localVarOperationServerIndex]?.url;
|
|
544
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
527
545
|
},
|
|
528
546
|
/**
|
|
529
547
|
* 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.
|
|
@@ -535,7 +553,9 @@ const AplusContentApiFp = function (configuration) {
|
|
|
535
553
|
*/
|
|
536
554
|
async validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options) {
|
|
537
555
|
const localVarAxiosArgs = await localVarAxiosParamCreator.validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options);
|
|
538
|
-
|
|
556
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
557
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AplusContentApi.validateContentDocumentAsinRelations']?.[localVarOperationServerIndex]?.url;
|
|
558
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
539
559
|
},
|
|
540
560
|
};
|
|
541
561
|
};
|
|
@@ -749,3 +769,16 @@ class AplusContentApi extends base_1.BaseAPI {
|
|
|
749
769
|
}
|
|
750
770
|
}
|
|
751
771
|
exports.AplusContentApi = AplusContentApi;
|
|
772
|
+
/**
|
|
773
|
+
* @export
|
|
774
|
+
*/
|
|
775
|
+
exports.GetContentDocumentIncludedDataSetEnum = {
|
|
776
|
+
Contents: 'CONTENTS',
|
|
777
|
+
Metadata: 'METADATA'
|
|
778
|
+
};
|
|
779
|
+
/**
|
|
780
|
+
* @export
|
|
781
|
+
*/
|
|
782
|
+
exports.ListContentDocumentAsinRelationsIncludedDataSetEnum = {
|
|
783
|
+
Metadata: 'METADATA'
|
|
784
|
+
};
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
19
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
22
22
|
/**
|
|
@@ -43,7 +43,7 @@ class BaseAPI {
|
|
|
43
43
|
this.axios = axios;
|
|
44
44
|
if (configuration) {
|
|
45
45
|
this.configuration = configuration;
|
|
46
|
-
this.basePath = configuration.basePath
|
|
46
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -64,3 +64,8 @@ class RequiredError extends Error {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.RequiredError = RequiredError;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
exports.operationServerMap = {};
|
|
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
|
|
|
138
138
|
*/
|
|
139
139
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
140
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
141
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
142
142
|
return axios.request(axiosRequestArgs);
|
|
143
143
|
};
|
|
144
144
|
};
|
|
@@ -49,6 +49,13 @@ class Configuration {
|
|
|
49
49
|
* @memberof Configuration
|
|
50
50
|
*/
|
|
51
51
|
basePath;
|
|
52
|
+
/**
|
|
53
|
+
* override server index
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof Configuration
|
|
57
|
+
*/
|
|
58
|
+
serverIndex;
|
|
52
59
|
/**
|
|
53
60
|
* base options for axios calls
|
|
54
61
|
*
|
|
@@ -70,6 +77,7 @@ class Configuration {
|
|
|
70
77
|
this.password = param.password;
|
|
71
78
|
this.accessToken = param.accessToken;
|
|
72
79
|
this.basePath = param.basePath;
|
|
80
|
+
this.serverIndex = param.serverIndex;
|
|
73
81
|
this.baseOptions = param.baseOptions;
|
|
74
82
|
this.formDataCtor = param.formDataCtor;
|
|
75
83
|
}
|
|
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
|
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base';
|
|
19
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* AplusContentApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -62,7 +62,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
62
62
|
* 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.
|
|
63
63
|
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
64
64
|
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
65
|
-
* @param {Set<
|
|
65
|
+
* @param {Set<GetContentDocumentIncludedDataSetEnum>} includedDataSet The set of A+ Content data types to include in the response.
|
|
66
66
|
* @param {*} [options] Override http request option.
|
|
67
67
|
* @throws {RequiredError}
|
|
68
68
|
*/
|
|
@@ -102,7 +102,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
102
102
|
* 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.
|
|
103
103
|
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
104
104
|
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
105
|
-
* @param {Set<
|
|
105
|
+
* @param {Set<ListContentDocumentAsinRelationsIncludedDataSetEnum>} [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.
|
|
106
106
|
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
107
107
|
* @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.
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
@@ -421,25 +421,29 @@ export const AplusContentApiFp = function (configuration) {
|
|
|
421
421
|
*/
|
|
422
422
|
async createContentDocument(marketplaceId, postContentDocumentRequest, options) {
|
|
423
423
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createContentDocument(marketplaceId, postContentDocumentRequest, options);
|
|
424
|
-
|
|
424
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
425
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.createContentDocument']?.[localVarOperationServerIndex]?.url;
|
|
426
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
425
427
|
},
|
|
426
428
|
/**
|
|
427
429
|
* 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.
|
|
428
430
|
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
429
431
|
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
430
|
-
* @param {Set<
|
|
432
|
+
* @param {Set<GetContentDocumentIncludedDataSetEnum>} includedDataSet The set of A+ Content data types to include in the response.
|
|
431
433
|
* @param {*} [options] Override http request option.
|
|
432
434
|
* @throws {RequiredError}
|
|
433
435
|
*/
|
|
434
436
|
async getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options) {
|
|
435
437
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options);
|
|
436
|
-
|
|
438
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
439
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.getContentDocument']?.[localVarOperationServerIndex]?.url;
|
|
440
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
437
441
|
},
|
|
438
442
|
/**
|
|
439
443
|
* 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.
|
|
440
444
|
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
441
445
|
* @param {string} marketplaceId The identifier for the marketplace where the A+ Content is published.
|
|
442
|
-
* @param {Set<
|
|
446
|
+
* @param {Set<ListContentDocumentAsinRelationsIncludedDataSetEnum>} [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.
|
|
443
447
|
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
444
448
|
* @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.
|
|
445
449
|
* @param {*} [options] Override http request option.
|
|
@@ -447,7 +451,9 @@ export const AplusContentApiFp = function (configuration) {
|
|
|
447
451
|
*/
|
|
448
452
|
async listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options) {
|
|
449
453
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options);
|
|
450
|
-
|
|
454
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
455
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.listContentDocumentAsinRelations']?.[localVarOperationServerIndex]?.url;
|
|
456
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
451
457
|
},
|
|
452
458
|
/**
|
|
453
459
|
* 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.
|
|
@@ -458,7 +464,9 @@ export const AplusContentApiFp = function (configuration) {
|
|
|
458
464
|
*/
|
|
459
465
|
async postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options) {
|
|
460
466
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options);
|
|
461
|
-
|
|
467
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
468
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.postContentDocumentApprovalSubmission']?.[localVarOperationServerIndex]?.url;
|
|
469
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
462
470
|
},
|
|
463
471
|
/**
|
|
464
472
|
* 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.
|
|
@@ -470,7 +478,9 @@ export const AplusContentApiFp = function (configuration) {
|
|
|
470
478
|
*/
|
|
471
479
|
async postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options) {
|
|
472
480
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options);
|
|
473
|
-
|
|
481
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
482
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.postContentDocumentAsinRelations']?.[localVarOperationServerIndex]?.url;
|
|
483
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
474
484
|
},
|
|
475
485
|
/**
|
|
476
486
|
* 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.
|
|
@@ -481,7 +491,9 @@ export const AplusContentApiFp = function (configuration) {
|
|
|
481
491
|
*/
|
|
482
492
|
async postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options) {
|
|
483
493
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options);
|
|
484
|
-
|
|
494
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
495
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.postContentDocumentSuspendSubmission']?.[localVarOperationServerIndex]?.url;
|
|
496
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
485
497
|
},
|
|
486
498
|
/**
|
|
487
499
|
* 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.
|
|
@@ -492,7 +504,9 @@ export const AplusContentApiFp = function (configuration) {
|
|
|
492
504
|
*/
|
|
493
505
|
async searchContentDocuments(marketplaceId, pageToken, options) {
|
|
494
506
|
const localVarAxiosArgs = await localVarAxiosParamCreator.searchContentDocuments(marketplaceId, pageToken, options);
|
|
495
|
-
|
|
507
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
508
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.searchContentDocuments']?.[localVarOperationServerIndex]?.url;
|
|
509
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
496
510
|
},
|
|
497
511
|
/**
|
|
498
512
|
* 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.
|
|
@@ -504,7 +518,9 @@ export const AplusContentApiFp = function (configuration) {
|
|
|
504
518
|
*/
|
|
505
519
|
async searchContentPublishRecords(marketplaceId, asin, pageToken, options) {
|
|
506
520
|
const localVarAxiosArgs = await localVarAxiosParamCreator.searchContentPublishRecords(marketplaceId, asin, pageToken, options);
|
|
507
|
-
|
|
521
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
522
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.searchContentPublishRecords']?.[localVarOperationServerIndex]?.url;
|
|
523
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
508
524
|
},
|
|
509
525
|
/**
|
|
510
526
|
* 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.
|
|
@@ -516,7 +532,9 @@ export const AplusContentApiFp = function (configuration) {
|
|
|
516
532
|
*/
|
|
517
533
|
async updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options) {
|
|
518
534
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options);
|
|
519
|
-
|
|
535
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
536
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.updateContentDocument']?.[localVarOperationServerIndex]?.url;
|
|
537
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
520
538
|
},
|
|
521
539
|
/**
|
|
522
540
|
* 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.
|
|
@@ -528,7 +546,9 @@ export const AplusContentApiFp = function (configuration) {
|
|
|
528
546
|
*/
|
|
529
547
|
async validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options) {
|
|
530
548
|
const localVarAxiosArgs = await localVarAxiosParamCreator.validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options);
|
|
531
|
-
|
|
549
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
550
|
+
const localVarOperationServerBasePath = operationServerMap['AplusContentApi.validateContentDocumentAsinRelations']?.[localVarOperationServerIndex]?.url;
|
|
551
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
532
552
|
},
|
|
533
553
|
};
|
|
534
554
|
};
|
|
@@ -739,3 +759,16 @@ export class AplusContentApi extends BaseAPI {
|
|
|
739
759
|
return AplusContentApiFp(this.configuration).validateContentDocumentAsinRelations(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, requestParameters.asinSet, options).then((request) => request(this.axios, this.basePath));
|
|
740
760
|
}
|
|
741
761
|
}
|
|
762
|
+
/**
|
|
763
|
+
* @export
|
|
764
|
+
*/
|
|
765
|
+
export const GetContentDocumentIncludedDataSetEnum = {
|
|
766
|
+
Contents: 'CONTENTS',
|
|
767
|
+
Metadata: 'METADATA'
|
|
768
|
+
};
|
|
769
|
+
/**
|
|
770
|
+
* @export
|
|
771
|
+
*/
|
|
772
|
+
export const ListContentDocumentAsinRelationsIncludedDataSetEnum = {
|
|
773
|
+
Metadata: 'METADATA'
|
|
774
|
+
};
|
|
@@ -37,7 +37,7 @@ export class BaseAPI {
|
|
|
37
37
|
this.axios = axios;
|
|
38
38
|
if (configuration) {
|
|
39
39
|
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath
|
|
40
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
|
|
|
56
56
|
this.name = "RequiredError";
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export const operationServerMap = {};
|
|
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
|
|
|
127
127
|
*/
|
|
128
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
131
131
|
return axios.request(axiosRequestArgs);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -46,6 +46,13 @@ export class Configuration {
|
|
|
46
46
|
* @memberof Configuration
|
|
47
47
|
*/
|
|
48
48
|
basePath;
|
|
49
|
+
/**
|
|
50
|
+
* override server index
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
serverIndex;
|
|
49
56
|
/**
|
|
50
57
|
* base options for axios calls
|
|
51
58
|
*
|
|
@@ -67,6 +74,7 @@ export class Configuration {
|
|
|
67
74
|
this.password = param.password;
|
|
68
75
|
this.accessToken = param.accessToken;
|
|
69
76
|
this.basePath = param.basePath;
|
|
77
|
+
this.serverIndex = param.serverIndex;
|
|
70
78
|
this.baseOptions = param.baseOptions;
|
|
71
79
|
this.formDataCtor = param.formDataCtor;
|
|
72
80
|
}
|