@sp-api-sdk/aplus-content-api-2020-11-01 3.1.19 → 3.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-model/api/aplus-content-api.js +8 -8
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/asin-badge.js +1 -1
- package/dist/cjs/api-model/models/color-type.js +1 -1
- package/dist/cjs/api-model/models/content-badge.js +1 -1
- package/dist/cjs/api-model/models/content-module-type.js +1 -1
- package/dist/cjs/api-model/models/content-status.js +1 -1
- package/dist/cjs/api-model/models/content-type.js +1 -1
- package/dist/cjs/api-model/models/decorator-type.js +1 -1
- package/dist/cjs/api-model/models/position-type.js +1 -1
- package/dist/es/api-model/api/aplus-content-api.js +8 -8
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/asin-badge.js +1 -1
- package/dist/es/api-model/models/color-type.js +1 -1
- package/dist/es/api-model/models/content-badge.js +1 -1
- package/dist/es/api-model/models/content-module-type.js +1 -1
- package/dist/es/api-model/models/content-status.js +1 -1
- package/dist/es/api-model/models/content-type.js +1 -1
- package/dist/es/api-model/models/decorator-type.js +1 -1
- package/dist/es/api-model/models/position-type.js +1 -1
- package/package.json +4 -4
|
@@ -80,7 +80,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
80
80
|
// verify required parameter 'includedDataSet' is not null or undefined
|
|
81
81
|
(0, common_1.assertParamExists)('getContentDocument', 'includedDataSet', includedDataSet);
|
|
82
82
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
|
|
83
|
-
.replace(
|
|
83
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
84
84
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
85
85
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
86
86
|
let baseOptions;
|
|
@@ -121,7 +121,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
122
122
|
(0, common_1.assertParamExists)('listContentDocumentAsinRelations', 'marketplaceId', marketplaceId);
|
|
123
123
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
|
|
124
|
-
.replace(
|
|
124
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
125
125
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
126
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
127
127
|
let baseOptions;
|
|
@@ -165,7 +165,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
165
165
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
166
166
|
(0, common_1.assertParamExists)('postContentDocumentApprovalSubmission', 'marketplaceId', marketplaceId);
|
|
167
167
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/approvalSubmissions`
|
|
168
|
-
.replace(
|
|
168
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
169
169
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
170
170
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
171
171
|
let baseOptions;
|
|
@@ -203,7 +203,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
203
203
|
// verify required parameter 'postContentDocumentAsinRelationsRequest' is not null or undefined
|
|
204
204
|
(0, common_1.assertParamExists)('postContentDocumentAsinRelations', 'postContentDocumentAsinRelationsRequest', postContentDocumentAsinRelationsRequest);
|
|
205
205
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
|
|
206
|
-
.replace(
|
|
206
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
207
207
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
208
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
209
209
|
let baseOptions;
|
|
@@ -240,7 +240,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
240
240
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
241
241
|
(0, common_1.assertParamExists)('postContentDocumentSuspendSubmission', 'marketplaceId', marketplaceId);
|
|
242
242
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/suspendSubmissions`
|
|
243
|
-
.replace(
|
|
243
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
244
244
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
245
245
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
246
246
|
let baseOptions;
|
|
@@ -354,7 +354,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
354
354
|
// verify required parameter 'postContentDocumentRequest' is not null or undefined
|
|
355
355
|
(0, common_1.assertParamExists)('updateContentDocument', 'postContentDocumentRequest', postContentDocumentRequest);
|
|
356
356
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
|
|
357
|
-
.replace(
|
|
357
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
358
358
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
359
359
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
360
360
|
let baseOptions;
|
|
@@ -765,8 +765,8 @@ class AplusContentApi extends base_1.BaseAPI {
|
|
|
765
765
|
exports.AplusContentApi = AplusContentApi;
|
|
766
766
|
exports.GetContentDocumentIncludedDataSetEnum = {
|
|
767
767
|
Contents: 'CONTENTS',
|
|
768
|
-
Metadata: 'METADATA'
|
|
768
|
+
Metadata: 'METADATA',
|
|
769
769
|
};
|
|
770
770
|
exports.ListContentDocumentAsinRelationsIncludedDataSetEnum = {
|
|
771
|
-
Metadata: 'METADATA'
|
|
771
|
+
Metadata: 'METADATA',
|
|
772
772
|
};
|
|
@@ -91,8 +91,8 @@ class Configuration {
|
|
|
91
91
|
* @return True if the given MIME is JSON, false otherwise.
|
|
92
92
|
*/
|
|
93
93
|
isJsonMime(mime) {
|
|
94
|
-
const jsonMime =
|
|
95
|
-
return mime !== null &&
|
|
94
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
95
|
+
return mime !== null && jsonMime.test(mime);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
exports.Configuration = Configuration;
|
|
@@ -32,5 +32,5 @@ exports.ContentModuleType = {
|
|
|
32
32
|
StandardSingleSideImage: 'STANDARD_SINGLE_SIDE_IMAGE',
|
|
33
33
|
StandardTechSpecs: 'STANDARD_TECH_SPECS',
|
|
34
34
|
StandardText: 'STANDARD_TEXT',
|
|
35
|
-
StandardThreeImageText: 'STANDARD_THREE_IMAGE_TEXT'
|
|
35
|
+
StandardThreeImageText: 'STANDARD_THREE_IMAGE_TEXT',
|
|
36
36
|
};
|
|
@@ -74,7 +74,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
74
74
|
// verify required parameter 'includedDataSet' is not null or undefined
|
|
75
75
|
assertParamExists('getContentDocument', 'includedDataSet', includedDataSet);
|
|
76
76
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
|
|
77
|
-
.replace(
|
|
77
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
78
78
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
79
79
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
80
80
|
let baseOptions;
|
|
@@ -115,7 +115,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
115
115
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
116
116
|
assertParamExists('listContentDocumentAsinRelations', 'marketplaceId', marketplaceId);
|
|
117
117
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
|
|
118
|
-
.replace(
|
|
118
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
119
119
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
120
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
121
|
let baseOptions;
|
|
@@ -159,7 +159,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
159
159
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
160
160
|
assertParamExists('postContentDocumentApprovalSubmission', 'marketplaceId', marketplaceId);
|
|
161
161
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/approvalSubmissions`
|
|
162
|
-
.replace(
|
|
162
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
163
163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
164
164
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
165
165
|
let baseOptions;
|
|
@@ -197,7 +197,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
197
197
|
// verify required parameter 'postContentDocumentAsinRelationsRequest' is not null or undefined
|
|
198
198
|
assertParamExists('postContentDocumentAsinRelations', 'postContentDocumentAsinRelationsRequest', postContentDocumentAsinRelationsRequest);
|
|
199
199
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
|
|
200
|
-
.replace(
|
|
200
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
201
201
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
202
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
203
203
|
let baseOptions;
|
|
@@ -234,7 +234,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
234
234
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
235
235
|
assertParamExists('postContentDocumentSuspendSubmission', 'marketplaceId', marketplaceId);
|
|
236
236
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/suspendSubmissions`
|
|
237
|
-
.replace(
|
|
237
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
238
238
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
239
239
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
240
240
|
let baseOptions;
|
|
@@ -348,7 +348,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
348
348
|
// verify required parameter 'postContentDocumentRequest' is not null or undefined
|
|
349
349
|
assertParamExists('updateContentDocument', 'postContentDocumentRequest', postContentDocumentRequest);
|
|
350
350
|
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
|
|
351
|
-
.replace(
|
|
351
|
+
.replace('{contentReferenceKey}', encodeURIComponent(String(contentReferenceKey)));
|
|
352
352
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
353
353
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
354
354
|
let baseOptions;
|
|
@@ -755,8 +755,8 @@ export class AplusContentApi extends BaseAPI {
|
|
|
755
755
|
}
|
|
756
756
|
export const GetContentDocumentIncludedDataSetEnum = {
|
|
757
757
|
Contents: 'CONTENTS',
|
|
758
|
-
Metadata: 'METADATA'
|
|
758
|
+
Metadata: 'METADATA',
|
|
759
759
|
};
|
|
760
760
|
export const ListContentDocumentAsinRelationsIncludedDataSetEnum = {
|
|
761
|
-
Metadata: 'METADATA'
|
|
761
|
+
Metadata: 'METADATA',
|
|
762
762
|
};
|
|
@@ -88,7 +88,7 @@ export class Configuration {
|
|
|
88
88
|
* @return True if the given MIME is JSON, false otherwise.
|
|
89
89
|
*/
|
|
90
90
|
isJsonMime(mime) {
|
|
91
|
-
const jsonMime =
|
|
92
|
-
return mime !== null &&
|
|
91
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
92
|
+
return mime !== null && jsonMime.test(mime);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -29,5 +29,5 @@ export const ContentModuleType = {
|
|
|
29
29
|
StandardSingleSideImage: 'STANDARD_SINGLE_SIDE_IMAGE',
|
|
30
30
|
StandardTechSpecs: 'STANDARD_TECH_SPECS',
|
|
31
31
|
StandardText: 'STANDARD_TEXT',
|
|
32
|
-
StandardThreeImageText: 'STANDARD_THREE_IMAGE_TEXT'
|
|
32
|
+
StandardThreeImageText: 'STANDARD_THREE_IMAGE_TEXT',
|
|
33
33
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/aplus-content-api-2020-11-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.",
|
|
5
|
-
"version": "3.1.
|
|
5
|
+
"version": "3.1.20",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.31",
|
|
22
|
+
"axios": "^1.15.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"aplus content api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|