@sp-api-sdk/aplus-content-api-2020-11-01 3.1.9 → 3.1.13
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.
|
@@ -54,6 +54,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
54
54
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
55
55
|
}
|
|
56
56
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
57
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
57
58
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
58
59
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
60
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -95,6 +96,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
95
96
|
if (includedDataSet) {
|
|
96
97
|
localVarQueryParameter['includedDataSet'] = Array.from(includedDataSet).join(base_1.COLLECTION_FORMATS.csv);
|
|
97
98
|
}
|
|
99
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
98
100
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
99
101
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
100
102
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -141,6 +143,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
141
143
|
if (pageToken !== undefined) {
|
|
142
144
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
143
145
|
}
|
|
146
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
144
147
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
148
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
149
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -175,6 +178,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
175
178
|
if (marketplaceId !== undefined) {
|
|
176
179
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
177
180
|
}
|
|
181
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
178
182
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
179
183
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
184
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -213,6 +217,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
213
217
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
214
218
|
}
|
|
215
219
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
220
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
216
221
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
217
222
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
223
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -248,6 +253,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
248
253
|
if (marketplaceId !== undefined) {
|
|
249
254
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
250
255
|
}
|
|
256
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
251
257
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
252
258
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
253
259
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -282,6 +288,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
282
288
|
if (pageToken !== undefined) {
|
|
283
289
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
284
290
|
}
|
|
291
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
285
292
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
286
293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
287
294
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -322,6 +329,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
322
329
|
if (pageToken !== undefined) {
|
|
323
330
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
324
331
|
}
|
|
332
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
325
333
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
326
334
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
327
335
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -360,6 +368,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
360
368
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
361
369
|
}
|
|
362
370
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
371
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
363
372
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
364
373
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
365
374
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -399,6 +408,7 @@ const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
399
408
|
localVarQueryParameter['asinSet'] = Array.from(asinSet).join(base_1.COLLECTION_FORMATS.csv);
|
|
400
409
|
}
|
|
401
410
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
411
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
402
412
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
403
413
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
404
414
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
3
|
/**
|
|
5
4
|
* Selling Partner API for A+ Content Management
|
|
6
5
|
* 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.
|
|
@@ -34,6 +33,17 @@ class Configuration {
|
|
|
34
33
|
* @param scopes oauth2 scope
|
|
35
34
|
*/
|
|
36
35
|
accessToken;
|
|
36
|
+
/**
|
|
37
|
+
* parameter for aws4 signature security
|
|
38
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
39
|
+
* @param {string} options.region - aws region
|
|
40
|
+
* @param {string} options.service - name of the service.
|
|
41
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
42
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
43
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
44
|
+
* @memberof Configuration
|
|
45
|
+
*/
|
|
46
|
+
awsv4;
|
|
37
47
|
/**
|
|
38
48
|
* override base path
|
|
39
49
|
*/
|
|
@@ -59,6 +69,7 @@ class Configuration {
|
|
|
59
69
|
this.username = param.username;
|
|
60
70
|
this.password = param.password;
|
|
61
71
|
this.accessToken = param.accessToken;
|
|
72
|
+
this.awsv4 = param.awsv4;
|
|
62
73
|
this.basePath = param.basePath;
|
|
63
74
|
this.serverIndex = param.serverIndex;
|
|
64
75
|
this.baseOptions = {
|
|
@@ -48,6 +48,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
48
48
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
49
49
|
}
|
|
50
50
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
51
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
51
52
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
52
53
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
54
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -89,6 +90,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
89
90
|
if (includedDataSet) {
|
|
90
91
|
localVarQueryParameter['includedDataSet'] = Array.from(includedDataSet).join(COLLECTION_FORMATS.csv);
|
|
91
92
|
}
|
|
93
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
92
94
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
93
95
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
96
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -135,6 +137,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
135
137
|
if (pageToken !== undefined) {
|
|
136
138
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
137
139
|
}
|
|
140
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
138
141
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
142
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
143
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -169,6 +172,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
169
172
|
if (marketplaceId !== undefined) {
|
|
170
173
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
171
174
|
}
|
|
175
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
172
176
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
173
177
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
178
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -207,6 +211,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
207
211
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
208
212
|
}
|
|
209
213
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
214
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
210
215
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
211
216
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
217
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -242,6 +247,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
242
247
|
if (marketplaceId !== undefined) {
|
|
243
248
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
244
249
|
}
|
|
250
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
245
251
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
246
252
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
253
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -276,6 +282,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
276
282
|
if (pageToken !== undefined) {
|
|
277
283
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
278
284
|
}
|
|
285
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
279
286
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
280
287
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
281
288
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -316,6 +323,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
316
323
|
if (pageToken !== undefined) {
|
|
317
324
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
318
325
|
}
|
|
326
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
319
327
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
320
328
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
321
329
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -354,6 +362,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
354
362
|
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
355
363
|
}
|
|
356
364
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
365
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
357
366
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
358
367
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
359
368
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -393,6 +402,7 @@ export const AplusContentApiAxiosParamCreator = function (configuration) {
|
|
|
393
402
|
localVarQueryParameter['asinSet'] = Array.from(asinSet).join(COLLECTION_FORMATS.csv);
|
|
394
403
|
}
|
|
395
404
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
405
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
396
406
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
397
407
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
398
408
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Selling Partner API for A+ Content Management
|
|
5
4
|
* 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.
|
|
@@ -31,6 +30,17 @@ export class Configuration {
|
|
|
31
30
|
* @param scopes oauth2 scope
|
|
32
31
|
*/
|
|
33
32
|
accessToken;
|
|
33
|
+
/**
|
|
34
|
+
* parameter for aws4 signature security
|
|
35
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
36
|
+
* @param {string} options.region - aws region
|
|
37
|
+
* @param {string} options.service - name of the service.
|
|
38
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
39
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
40
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
41
|
+
* @memberof Configuration
|
|
42
|
+
*/
|
|
43
|
+
awsv4;
|
|
34
44
|
/**
|
|
35
45
|
* override base path
|
|
36
46
|
*/
|
|
@@ -56,6 +66,7 @@ export class Configuration {
|
|
|
56
66
|
this.username = param.username;
|
|
57
67
|
this.password = param.password;
|
|
58
68
|
this.accessToken = param.accessToken;
|
|
69
|
+
this.awsv4 = param.awsv4;
|
|
59
70
|
this.basePath = param.basePath;
|
|
60
71
|
this.serverIndex = param.serverIndex;
|
|
61
72
|
this.baseOptions = {
|
|
@@ -9,11 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -39,6 +51,17 @@ export declare class Configuration {
|
|
|
39
51
|
* @param scopes oauth2 scope
|
|
40
52
|
*/
|
|
41
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
62
|
+
* @memberof Configuration
|
|
63
|
+
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
42
65
|
/**
|
|
43
66
|
* override base path
|
|
44
67
|
*/
|
|
@@ -72,3 +95,4 @@ export declare class Configuration {
|
|
|
72
95
|
*/
|
|
73
96
|
isJsonMime(mime: string): boolean;
|
|
74
97
|
}
|
|
98
|
+
export {};
|
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.13",
|
|
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.24",
|
|
22
|
+
"axios": "^1.13.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": "b3fe13460a11917282a12b5bdbcfaf565b9b773e"
|
|
44
44
|
}
|