@sp-api-sdk/aplus-content-api-2020-11-01 4.0.0 → 4.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/README.md +3 -4
- package/dist/index.cjs +1143 -1052
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1025 -1601
- package/dist/index.d.ts +1025 -1601
- package/dist/index.js +1110 -1006
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.js
CHANGED
|
@@ -1,1041 +1,1145 @@
|
|
|
1
|
-
// src/client.ts
|
|
2
1
|
import { createAxiosInstance } from "@sp-api-sdk/common";
|
|
3
|
-
|
|
4
|
-
// src/api-model/api/aplus-content-api.ts
|
|
5
|
-
import globalAxios2 from "axios";
|
|
6
|
-
|
|
7
|
-
// src/api-model/base.ts
|
|
8
2
|
import globalAxios from "axios";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
//#region src/api-model/base.ts
|
|
4
|
+
const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
5
|
+
const COLLECTION_FORMATS = {
|
|
6
|
+
csv: ",",
|
|
7
|
+
ssv: " ",
|
|
8
|
+
tsv: " ",
|
|
9
|
+
pipes: "|"
|
|
15
10
|
};
|
|
16
11
|
var BaseAPI = class {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
basePath;
|
|
13
|
+
axios;
|
|
14
|
+
configuration;
|
|
15
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
16
|
+
this.basePath = basePath;
|
|
17
|
+
this.axios = axios;
|
|
18
|
+
if (configuration) {
|
|
19
|
+
this.configuration = configuration;
|
|
20
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
28
23
|
};
|
|
29
24
|
var RequiredError = class extends Error {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
field;
|
|
26
|
+
constructor(field, msg) {
|
|
27
|
+
super(msg);
|
|
28
|
+
this.field = field;
|
|
29
|
+
this.name = "RequiredError";
|
|
30
|
+
}
|
|
36
31
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
const operationServerMap = {};
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/api-model/common.ts
|
|
35
|
+
const DUMMY_BASE_URL = "https://example.com";
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
const assertParamExists = function(functionName, paramName, paramValue) {
|
|
41
|
+
if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
45
42
|
};
|
|
46
43
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Object.keys(parameter).forEach(
|
|
53
|
-
(currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
} else {
|
|
57
|
-
if (urlSearchParams.has(key)) {
|
|
58
|
-
urlSearchParams.append(key, parameter);
|
|
59
|
-
} else {
|
|
60
|
-
urlSearchParams.set(key, parameter);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
44
|
+
if (parameter == null) return;
|
|
45
|
+
if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
46
|
+
else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
|
|
47
|
+
else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
|
|
48
|
+
else urlSearchParams.set(key, parameter);
|
|
63
49
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
50
|
+
const setSearchParams = function(url, ...objects) {
|
|
51
|
+
const searchParams = new URLSearchParams(url.search);
|
|
52
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
53
|
+
url.search = searchParams.toString();
|
|
68
54
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
55
|
+
/**
|
|
56
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
57
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
58
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
59
|
+
*/
|
|
60
|
+
const replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
61
|
+
if (value instanceof Set) return Array.from(value);
|
|
62
|
+
else return value;
|
|
75
63
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
64
|
+
const serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
65
|
+
const nonString = typeof value !== "string";
|
|
66
|
+
return (nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString) ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
80
67
|
};
|
|
81
|
-
|
|
82
|
-
|
|
68
|
+
const toPathString = function(url) {
|
|
69
|
+
return url.pathname + url.search + url.hash;
|
|
83
70
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
71
|
+
const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
72
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
73
|
+
const axiosRequestArgs = {
|
|
74
|
+
...axiosArgs.options,
|
|
75
|
+
url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
|
|
76
|
+
};
|
|
77
|
+
return axios.request(axiosRequestArgs);
|
|
78
|
+
};
|
|
89
79
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/api-model/api/aplus-content-api.ts
|
|
82
|
+
/**
|
|
83
|
+
* AplusContentApi - axios parameter creator
|
|
84
|
+
*/
|
|
85
|
+
const AplusContentApiAxiosParamCreator = function(configuration) {
|
|
86
|
+
return {
|
|
87
|
+
/**
|
|
88
|
+
* Creates a new A+ Content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
89
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
90
|
+
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
createContentDocument: async (marketplaceId, postContentDocumentRequest, options = {}) => {
|
|
95
|
+
assertParamExists("createContentDocument", "marketplaceId", marketplaceId);
|
|
96
|
+
assertParamExists("createContentDocument", "postContentDocumentRequest", postContentDocumentRequest);
|
|
97
|
+
const localVarUrlObj = new URL(`/aplus/2020-11-01/contentDocuments`, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
100
|
+
const localVarRequestOptions = {
|
|
101
|
+
method: "POST",
|
|
102
|
+
...baseOptions,
|
|
103
|
+
...options
|
|
104
|
+
};
|
|
105
|
+
const localVarHeaderParameter = {};
|
|
106
|
+
const localVarQueryParameter = {};
|
|
107
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
108
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
109
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
110
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
|
+
localVarRequestOptions.headers = {
|
|
113
|
+
...localVarHeaderParameter,
|
|
114
|
+
...headersFromBaseOptions,
|
|
115
|
+
...options.headers
|
|
116
|
+
};
|
|
117
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postContentDocumentRequest, localVarRequestOptions, configuration);
|
|
118
|
+
return {
|
|
119
|
+
url: toPathString(localVarUrlObj),
|
|
120
|
+
options: localVarRequestOptions
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
* Returns an A+ Content document, if available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
125
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
126
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
127
|
+
* @param {Set<GetContentDocumentIncludedDataSetEnum>} includedDataSet The set of A+ Content data types to include in the response.
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
*/
|
|
131
|
+
getContentDocument: async (contentReferenceKey, marketplaceId, includedDataSet, options = {}) => {
|
|
132
|
+
assertParamExists("getContentDocument", "contentReferenceKey", contentReferenceKey);
|
|
133
|
+
assertParamExists("getContentDocument", "marketplaceId", marketplaceId);
|
|
134
|
+
assertParamExists("getContentDocument", "includedDataSet", includedDataSet);
|
|
135
|
+
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`.replace("{contentReferenceKey}", encodeURIComponent(String(contentReferenceKey)));
|
|
136
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
137
|
+
let baseOptions;
|
|
138
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
139
|
+
const localVarRequestOptions = {
|
|
140
|
+
method: "GET",
|
|
141
|
+
...baseOptions,
|
|
142
|
+
...options
|
|
143
|
+
};
|
|
144
|
+
const localVarHeaderParameter = {};
|
|
145
|
+
const localVarQueryParameter = {};
|
|
146
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
147
|
+
if (includedDataSet) localVarQueryParameter["includedDataSet"] = Array.from(includedDataSet).join(COLLECTION_FORMATS.csv);
|
|
148
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
149
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
150
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
151
|
+
localVarRequestOptions.headers = {
|
|
152
|
+
...localVarHeaderParameter,
|
|
153
|
+
...headersFromBaseOptions,
|
|
154
|
+
...options.headers
|
|
155
|
+
};
|
|
156
|
+
return {
|
|
157
|
+
url: toPathString(localVarUrlObj),
|
|
158
|
+
options: localVarRequestOptions
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
* Returns a list of ASINs that are related to the specified A+ Content document, if available. If you don\'t include the `asinSet` parameter, this operation returns all ASINs related to the content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
163
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
164
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
165
|
+
* @param {Set<ListContentDocumentAsinRelationsIncludedDataSetEnum>} [includedDataSet] The set of A+ Content data types to include in the response. If you don\'t include this parameter, the operation returns the related ASINs without metadata.
|
|
166
|
+
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
167
|
+
* @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
listContentDocumentAsinRelations: async (contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options = {}) => {
|
|
172
|
+
assertParamExists("listContentDocumentAsinRelations", "contentReferenceKey", contentReferenceKey);
|
|
173
|
+
assertParamExists("listContentDocumentAsinRelations", "marketplaceId", marketplaceId);
|
|
174
|
+
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`.replace("{contentReferenceKey}", encodeURIComponent(String(contentReferenceKey)));
|
|
175
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
176
|
+
let baseOptions;
|
|
177
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
178
|
+
const localVarRequestOptions = {
|
|
179
|
+
method: "GET",
|
|
180
|
+
...baseOptions,
|
|
181
|
+
...options
|
|
182
|
+
};
|
|
183
|
+
const localVarHeaderParameter = {};
|
|
184
|
+
const localVarQueryParameter = {};
|
|
185
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
186
|
+
if (includedDataSet) localVarQueryParameter["includedDataSet"] = Array.from(includedDataSet).join(COLLECTION_FORMATS.csv);
|
|
187
|
+
if (asinSet) localVarQueryParameter["asinSet"] = Array.from(asinSet).join(COLLECTION_FORMATS.csv);
|
|
188
|
+
if (pageToken !== void 0) localVarQueryParameter["pageToken"] = pageToken;
|
|
189
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
+
localVarRequestOptions.headers = {
|
|
193
|
+
...localVarHeaderParameter,
|
|
194
|
+
...headersFromBaseOptions,
|
|
195
|
+
...options.headers
|
|
196
|
+
};
|
|
197
|
+
return {
|
|
198
|
+
url: toPathString(localVarUrlObj),
|
|
199
|
+
options: localVarRequestOptions
|
|
200
|
+
};
|
|
201
|
+
},
|
|
202
|
+
/**
|
|
203
|
+
* Submits an A+ Content document for review, approval, and publishing. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
204
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ content identifier.
|
|
205
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
postContentDocumentApprovalSubmission: async (contentReferenceKey, marketplaceId, options = {}) => {
|
|
210
|
+
assertParamExists("postContentDocumentApprovalSubmission", "contentReferenceKey", contentReferenceKey);
|
|
211
|
+
assertParamExists("postContentDocumentApprovalSubmission", "marketplaceId", marketplaceId);
|
|
212
|
+
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/approvalSubmissions`.replace("{contentReferenceKey}", encodeURIComponent(String(contentReferenceKey)));
|
|
213
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
214
|
+
let baseOptions;
|
|
215
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
216
|
+
const localVarRequestOptions = {
|
|
217
|
+
method: "POST",
|
|
218
|
+
...baseOptions,
|
|
219
|
+
...options
|
|
220
|
+
};
|
|
221
|
+
const localVarHeaderParameter = {};
|
|
222
|
+
const localVarQueryParameter = {};
|
|
223
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
224
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
225
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
|
+
localVarRequestOptions.headers = {
|
|
228
|
+
...localVarHeaderParameter,
|
|
229
|
+
...headersFromBaseOptions,
|
|
230
|
+
...options.headers
|
|
231
|
+
};
|
|
232
|
+
return {
|
|
233
|
+
url: toPathString(localVarUrlObj),
|
|
234
|
+
options: localVarRequestOptions
|
|
235
|
+
};
|
|
236
|
+
},
|
|
237
|
+
/**
|
|
238
|
+
* Replaces all ASINs related to the specified A+ Content document, if available. This operation can add or remove ASINs, depending on the current set of related ASINs. Removing an ASIN will suspend the content document from that ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
239
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ content identifier.
|
|
240
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
241
|
+
* @param {PostContentDocumentAsinRelationsRequest} postContentDocumentAsinRelationsRequest The request details for the content document ASIN relations.
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
postContentDocumentAsinRelations: async (contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options = {}) => {
|
|
246
|
+
assertParamExists("postContentDocumentAsinRelations", "contentReferenceKey", contentReferenceKey);
|
|
247
|
+
assertParamExists("postContentDocumentAsinRelations", "marketplaceId", marketplaceId);
|
|
248
|
+
assertParamExists("postContentDocumentAsinRelations", "postContentDocumentAsinRelationsRequest", postContentDocumentAsinRelationsRequest);
|
|
249
|
+
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`.replace("{contentReferenceKey}", encodeURIComponent(String(contentReferenceKey)));
|
|
250
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
251
|
+
let baseOptions;
|
|
252
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
253
|
+
const localVarRequestOptions = {
|
|
254
|
+
method: "POST",
|
|
255
|
+
...baseOptions,
|
|
256
|
+
...options
|
|
257
|
+
};
|
|
258
|
+
const localVarHeaderParameter = {};
|
|
259
|
+
const localVarQueryParameter = {};
|
|
260
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
261
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
262
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
263
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
264
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
265
|
+
localVarRequestOptions.headers = {
|
|
266
|
+
...localVarHeaderParameter,
|
|
267
|
+
...headersFromBaseOptions,
|
|
268
|
+
...options.headers
|
|
269
|
+
};
|
|
270
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postContentDocumentAsinRelationsRequest, localVarRequestOptions, configuration);
|
|
271
|
+
return {
|
|
272
|
+
url: toPathString(localVarUrlObj),
|
|
273
|
+
options: localVarRequestOptions
|
|
274
|
+
};
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
* Submits a request to suspend visible A+ Content. This doesn\'t delete the content document or the ASIN relations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
278
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ content identifier.
|
|
279
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
*/
|
|
283
|
+
postContentDocumentSuspendSubmission: async (contentReferenceKey, marketplaceId, options = {}) => {
|
|
284
|
+
assertParamExists("postContentDocumentSuspendSubmission", "contentReferenceKey", contentReferenceKey);
|
|
285
|
+
assertParamExists("postContentDocumentSuspendSubmission", "marketplaceId", marketplaceId);
|
|
286
|
+
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/suspendSubmissions`.replace("{contentReferenceKey}", encodeURIComponent(String(contentReferenceKey)));
|
|
287
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
288
|
+
let baseOptions;
|
|
289
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
290
|
+
const localVarRequestOptions = {
|
|
291
|
+
method: "POST",
|
|
292
|
+
...baseOptions,
|
|
293
|
+
...options
|
|
294
|
+
};
|
|
295
|
+
const localVarHeaderParameter = {};
|
|
296
|
+
const localVarQueryParameter = {};
|
|
297
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
298
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
299
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
+
localVarRequestOptions.headers = {
|
|
302
|
+
...localVarHeaderParameter,
|
|
303
|
+
...headersFromBaseOptions,
|
|
304
|
+
...options.headers
|
|
305
|
+
};
|
|
306
|
+
return {
|
|
307
|
+
url: toPathString(localVarUrlObj),
|
|
308
|
+
options: localVarRequestOptions
|
|
309
|
+
};
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
* Returns a list of all A+ Content documents, including metadata, that are assigned to a selling partner. To get the actual contents of the A+ Content documents, call the `getContentDocument` operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
313
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
314
|
+
* @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
searchContentDocuments: async (marketplaceId, pageToken, options = {}) => {
|
|
319
|
+
assertParamExists("searchContentDocuments", "marketplaceId", marketplaceId);
|
|
320
|
+
const localVarUrlObj = new URL(`/aplus/2020-11-01/contentDocuments`, DUMMY_BASE_URL);
|
|
321
|
+
let baseOptions;
|
|
322
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
323
|
+
const localVarRequestOptions = {
|
|
324
|
+
method: "GET",
|
|
325
|
+
...baseOptions,
|
|
326
|
+
...options
|
|
327
|
+
};
|
|
328
|
+
const localVarHeaderParameter = {};
|
|
329
|
+
const localVarQueryParameter = {};
|
|
330
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
331
|
+
if (pageToken !== void 0) localVarQueryParameter["pageToken"] = pageToken;
|
|
332
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
333
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
334
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
335
|
+
localVarRequestOptions.headers = {
|
|
336
|
+
...localVarHeaderParameter,
|
|
337
|
+
...headersFromBaseOptions,
|
|
338
|
+
...options.headers
|
|
339
|
+
};
|
|
340
|
+
return {
|
|
341
|
+
url: toPathString(localVarUrlObj),
|
|
342
|
+
options: localVarRequestOptions
|
|
343
|
+
};
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
* Searches for A+ Content publishing records, if available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
347
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
348
|
+
* @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
|
|
349
|
+
* @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
searchContentPublishRecords: async (marketplaceId, asin, pageToken, options = {}) => {
|
|
354
|
+
assertParamExists("searchContentPublishRecords", "marketplaceId", marketplaceId);
|
|
355
|
+
assertParamExists("searchContentPublishRecords", "asin", asin);
|
|
356
|
+
const localVarUrlObj = new URL(`/aplus/2020-11-01/contentPublishRecords`, DUMMY_BASE_URL);
|
|
357
|
+
let baseOptions;
|
|
358
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
359
|
+
const localVarRequestOptions = {
|
|
360
|
+
method: "GET",
|
|
361
|
+
...baseOptions,
|
|
362
|
+
...options
|
|
363
|
+
};
|
|
364
|
+
const localVarHeaderParameter = {};
|
|
365
|
+
const localVarQueryParameter = {};
|
|
366
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
367
|
+
if (asin !== void 0) localVarQueryParameter["asin"] = asin;
|
|
368
|
+
if (pageToken !== void 0) localVarQueryParameter["pageToken"] = pageToken;
|
|
369
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
+
localVarRequestOptions.headers = {
|
|
373
|
+
...localVarHeaderParameter,
|
|
374
|
+
...headersFromBaseOptions,
|
|
375
|
+
...options.headers
|
|
376
|
+
};
|
|
377
|
+
return {
|
|
378
|
+
url: toPathString(localVarUrlObj),
|
|
379
|
+
options: localVarRequestOptions
|
|
380
|
+
};
|
|
381
|
+
},
|
|
382
|
+
/**
|
|
383
|
+
* Updates an existing A+ Content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
384
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
385
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
386
|
+
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
updateContentDocument: async (contentReferenceKey, marketplaceId, postContentDocumentRequest, options = {}) => {
|
|
391
|
+
assertParamExists("updateContentDocument", "contentReferenceKey", contentReferenceKey);
|
|
392
|
+
assertParamExists("updateContentDocument", "marketplaceId", marketplaceId);
|
|
393
|
+
assertParamExists("updateContentDocument", "postContentDocumentRequest", postContentDocumentRequest);
|
|
394
|
+
const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`.replace("{contentReferenceKey}", encodeURIComponent(String(contentReferenceKey)));
|
|
395
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
396
|
+
let baseOptions;
|
|
397
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
398
|
+
const localVarRequestOptions = {
|
|
399
|
+
method: "POST",
|
|
400
|
+
...baseOptions,
|
|
401
|
+
...options
|
|
402
|
+
};
|
|
403
|
+
const localVarHeaderParameter = {};
|
|
404
|
+
const localVarQueryParameter = {};
|
|
405
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
406
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
407
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
408
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
409
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
410
|
+
localVarRequestOptions.headers = {
|
|
411
|
+
...localVarHeaderParameter,
|
|
412
|
+
...headersFromBaseOptions,
|
|
413
|
+
...options.headers
|
|
414
|
+
};
|
|
415
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postContentDocumentRequest, localVarRequestOptions, configuration);
|
|
416
|
+
return {
|
|
417
|
+
url: toPathString(localVarUrlObj),
|
|
418
|
+
options: localVarRequestOptions
|
|
419
|
+
};
|
|
420
|
+
},
|
|
421
|
+
/**
|
|
422
|
+
* Checks if the A+ Content document is valid for use on a set of ASINs. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
423
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
424
|
+
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
425
|
+
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
426
|
+
* @param {*} [options] Override http request option.
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
*/
|
|
429
|
+
validateContentDocumentAsinRelations: async (marketplaceId, postContentDocumentRequest, asinSet, options = {}) => {
|
|
430
|
+
assertParamExists("validateContentDocumentAsinRelations", "marketplaceId", marketplaceId);
|
|
431
|
+
assertParamExists("validateContentDocumentAsinRelations", "postContentDocumentRequest", postContentDocumentRequest);
|
|
432
|
+
const localVarUrlObj = new URL(`/aplus/2020-11-01/contentAsinValidations`, DUMMY_BASE_URL);
|
|
433
|
+
let baseOptions;
|
|
434
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
435
|
+
const localVarRequestOptions = {
|
|
436
|
+
method: "POST",
|
|
437
|
+
...baseOptions,
|
|
438
|
+
...options
|
|
439
|
+
};
|
|
440
|
+
const localVarHeaderParameter = {};
|
|
441
|
+
const localVarQueryParameter = {};
|
|
442
|
+
if (marketplaceId !== void 0) localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
443
|
+
if (asinSet) localVarQueryParameter["asinSet"] = Array.from(asinSet).join(COLLECTION_FORMATS.csv);
|
|
444
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
445
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
446
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
447
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
448
|
+
localVarRequestOptions.headers = {
|
|
449
|
+
...localVarHeaderParameter,
|
|
450
|
+
...headersFromBaseOptions,
|
|
451
|
+
...options.headers
|
|
452
|
+
};
|
|
453
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postContentDocumentRequest, localVarRequestOptions, configuration);
|
|
454
|
+
return {
|
|
455
|
+
url: toPathString(localVarUrlObj),
|
|
456
|
+
options: localVarRequestOptions
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
};
|
|
447
460
|
};
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
461
|
+
/**
|
|
462
|
+
* AplusContentApi - functional programming interface
|
|
463
|
+
*/
|
|
464
|
+
const AplusContentApiFp = function(configuration) {
|
|
465
|
+
const localVarAxiosParamCreator = AplusContentApiAxiosParamCreator(configuration);
|
|
466
|
+
return {
|
|
467
|
+
/**
|
|
468
|
+
* Creates a new A+ Content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
469
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
470
|
+
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
async createContentDocument(marketplaceId, postContentDocumentRequest, options) {
|
|
475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createContentDocument(marketplaceId, postContentDocumentRequest, options);
|
|
476
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
477
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.createContentDocument"]?.[localVarOperationServerIndex]?.url;
|
|
478
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
479
|
+
},
|
|
480
|
+
/**
|
|
481
|
+
* Returns an A+ Content document, if available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
482
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
483
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
484
|
+
* @param {Set<GetContentDocumentIncludedDataSetEnum>} includedDataSet The set of A+ Content data types to include in the response.
|
|
485
|
+
* @param {*} [options] Override http request option.
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
*/
|
|
488
|
+
async getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options) {
|
|
489
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options);
|
|
490
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
491
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.getContentDocument"]?.[localVarOperationServerIndex]?.url;
|
|
492
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
493
|
+
},
|
|
494
|
+
/**
|
|
495
|
+
* Returns a list of ASINs that are related to the specified A+ Content document, if available. If you don\'t include the `asinSet` parameter, this operation returns all ASINs related to the content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
496
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
497
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
498
|
+
* @param {Set<ListContentDocumentAsinRelationsIncludedDataSetEnum>} [includedDataSet] The set of A+ Content data types to include in the response. If you don\'t include this parameter, the operation returns the related ASINs without metadata.
|
|
499
|
+
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
500
|
+
* @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
*/
|
|
504
|
+
async listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options) {
|
|
505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options);
|
|
506
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
507
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.listContentDocumentAsinRelations"]?.[localVarOperationServerIndex]?.url;
|
|
508
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
509
|
+
},
|
|
510
|
+
/**
|
|
511
|
+
* Submits an A+ Content document for review, approval, and publishing. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
512
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ content identifier.
|
|
513
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
*/
|
|
517
|
+
async postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options) {
|
|
518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options);
|
|
519
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
520
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.postContentDocumentApprovalSubmission"]?.[localVarOperationServerIndex]?.url;
|
|
521
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
522
|
+
},
|
|
523
|
+
/**
|
|
524
|
+
* Replaces all ASINs related to the specified A+ Content document, if available. This operation can add or remove ASINs, depending on the current set of related ASINs. Removing an ASIN will suspend the content document from that ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
525
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ content identifier.
|
|
526
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
527
|
+
* @param {PostContentDocumentAsinRelationsRequest} postContentDocumentAsinRelationsRequest The request details for the content document ASIN relations.
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
async postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options) {
|
|
532
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options);
|
|
533
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
534
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.postContentDocumentAsinRelations"]?.[localVarOperationServerIndex]?.url;
|
|
535
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
536
|
+
},
|
|
537
|
+
/**
|
|
538
|
+
* Submits a request to suspend visible A+ Content. This doesn\'t delete the content document or the ASIN relations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
539
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ content identifier.
|
|
540
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
async postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options) {
|
|
545
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options);
|
|
546
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
547
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.postContentDocumentSuspendSubmission"]?.[localVarOperationServerIndex]?.url;
|
|
548
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
549
|
+
},
|
|
550
|
+
/**
|
|
551
|
+
* Returns a list of all A+ Content documents, including metadata, that are assigned to a selling partner. To get the actual contents of the A+ Content documents, call the `getContentDocument` operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
552
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
553
|
+
* @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
|
|
554
|
+
* @param {*} [options] Override http request option.
|
|
555
|
+
* @throws {RequiredError}
|
|
556
|
+
*/
|
|
557
|
+
async searchContentDocuments(marketplaceId, pageToken, options) {
|
|
558
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchContentDocuments(marketplaceId, pageToken, options);
|
|
559
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
560
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.searchContentDocuments"]?.[localVarOperationServerIndex]?.url;
|
|
561
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
562
|
+
},
|
|
563
|
+
/**
|
|
564
|
+
* Searches for A+ Content publishing records, if available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
565
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
566
|
+
* @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
|
|
567
|
+
* @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
async searchContentPublishRecords(marketplaceId, asin, pageToken, options) {
|
|
572
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchContentPublishRecords(marketplaceId, asin, pageToken, options);
|
|
573
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
574
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.searchContentPublishRecords"]?.[localVarOperationServerIndex]?.url;
|
|
575
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
576
|
+
},
|
|
577
|
+
/**
|
|
578
|
+
* Updates an existing A+ Content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
579
|
+
* @param {string} contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and might change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
580
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
581
|
+
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
async updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options) {
|
|
586
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options);
|
|
587
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
588
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.updateContentDocument"]?.[localVarOperationServerIndex]?.url;
|
|
589
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
590
|
+
},
|
|
591
|
+
/**
|
|
592
|
+
* Checks if the A+ Content document is valid for use on a set of ASINs. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
593
|
+
* @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
594
|
+
* @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
|
|
595
|
+
* @param {Set<string>} [asinSet] The set of ASINs.
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
async validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options) {
|
|
600
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options);
|
|
601
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
602
|
+
const localVarOperationServerBasePath = operationServerMap["AplusContentApi.validateContentDocumentAsinRelations"]?.[localVarOperationServerIndex]?.url;
|
|
603
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
604
|
+
}
|
|
605
|
+
};
|
|
590
606
|
};
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
607
|
+
/**
|
|
608
|
+
* AplusContentApi - factory interface
|
|
609
|
+
*/
|
|
610
|
+
const AplusContentApiFactory = function(configuration, basePath, axios) {
|
|
611
|
+
const localVarFp = AplusContentApiFp(configuration);
|
|
612
|
+
return {
|
|
613
|
+
/**
|
|
614
|
+
* Creates a new A+ Content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
615
|
+
* @param {AplusContentApiCreateContentDocumentRequest} requestParameters Request parameters.
|
|
616
|
+
* @param {*} [options] Override http request option.
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
createContentDocument(requestParameters, options) {
|
|
620
|
+
return localVarFp.createContentDocument(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
621
|
+
},
|
|
622
|
+
/**
|
|
623
|
+
* Returns an A+ Content document, if available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
624
|
+
* @param {AplusContentApiGetContentDocumentRequest} requestParameters Request parameters.
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
getContentDocument(requestParameters, options) {
|
|
629
|
+
return localVarFp.getContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, options).then((request) => request(axios, basePath));
|
|
630
|
+
},
|
|
631
|
+
/**
|
|
632
|
+
* Returns a list of ASINs that are related to the specified A+ Content document, if available. If you don\'t include the `asinSet` parameter, this operation returns all ASINs related to the content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
633
|
+
* @param {AplusContentApiListContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
634
|
+
* @param {*} [options] Override http request option.
|
|
635
|
+
* @throws {RequiredError}
|
|
636
|
+
*/
|
|
637
|
+
listContentDocumentAsinRelations(requestParameters, options) {
|
|
638
|
+
return localVarFp.listContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, requestParameters.asinSet, requestParameters.pageToken, options).then((request) => request(axios, basePath));
|
|
639
|
+
},
|
|
640
|
+
/**
|
|
641
|
+
* Submits an A+ Content document for review, approval, and publishing. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
642
|
+
* @param {AplusContentApiPostContentDocumentApprovalSubmissionRequest} requestParameters Request parameters.
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
postContentDocumentApprovalSubmission(requestParameters, options) {
|
|
647
|
+
return localVarFp.postContentDocumentApprovalSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
|
|
648
|
+
},
|
|
649
|
+
/**
|
|
650
|
+
* Replaces all ASINs related to the specified A+ Content document, if available. This operation can add or remove ASINs, depending on the current set of related ASINs. Removing an ASIN will suspend the content document from that ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
651
|
+
* @param {AplusContentApiPostContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
postContentDocumentAsinRelations(requestParameters, options) {
|
|
656
|
+
return localVarFp.postContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentAsinRelationsRequest, options).then((request) => request(axios, basePath));
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
* Submits a request to suspend visible A+ Content. This doesn\'t delete the content document or the ASIN relations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
660
|
+
* @param {AplusContentApiPostContentDocumentSuspendSubmissionRequest} requestParameters Request parameters.
|
|
661
|
+
* @param {*} [options] Override http request option.
|
|
662
|
+
* @throws {RequiredError}
|
|
663
|
+
*/
|
|
664
|
+
postContentDocumentSuspendSubmission(requestParameters, options) {
|
|
665
|
+
return localVarFp.postContentDocumentSuspendSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
|
|
666
|
+
},
|
|
667
|
+
/**
|
|
668
|
+
* Returns a list of all A+ Content documents, including metadata, that are assigned to a selling partner. To get the actual contents of the A+ Content documents, call the `getContentDocument` operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
669
|
+
* @param {AplusContentApiSearchContentDocumentsRequest} requestParameters Request parameters.
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
*/
|
|
673
|
+
searchContentDocuments(requestParameters, options) {
|
|
674
|
+
return localVarFp.searchContentDocuments(requestParameters.marketplaceId, requestParameters.pageToken, options).then((request) => request(axios, basePath));
|
|
675
|
+
},
|
|
676
|
+
/**
|
|
677
|
+
* Searches for A+ Content publishing records, if available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
678
|
+
* @param {AplusContentApiSearchContentPublishRecordsRequest} requestParameters Request parameters.
|
|
679
|
+
* @param {*} [options] Override http request option.
|
|
680
|
+
* @throws {RequiredError}
|
|
681
|
+
*/
|
|
682
|
+
searchContentPublishRecords(requestParameters, options) {
|
|
683
|
+
return localVarFp.searchContentPublishRecords(requestParameters.marketplaceId, requestParameters.asin, requestParameters.pageToken, options).then((request) => request(axios, basePath));
|
|
684
|
+
},
|
|
685
|
+
/**
|
|
686
|
+
* Updates an existing A+ Content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
687
|
+
* @param {AplusContentApiUpdateContentDocumentRequest} requestParameters Request parameters.
|
|
688
|
+
* @param {*} [options] Override http request option.
|
|
689
|
+
* @throws {RequiredError}
|
|
690
|
+
*/
|
|
691
|
+
updateContentDocument(requestParameters, options) {
|
|
692
|
+
return localVarFp.updateContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(axios, basePath));
|
|
693
|
+
},
|
|
694
|
+
/**
|
|
695
|
+
* Checks if the A+ Content document is valid for use on a set of ASINs. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
696
|
+
* @param {AplusContentApiValidateContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
validateContentDocumentAsinRelations(requestParameters, options) {
|
|
701
|
+
return localVarFp.validateContentDocumentAsinRelations(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, requestParameters.asinSet, options).then((request) => request(axios, basePath));
|
|
702
|
+
}
|
|
703
|
+
};
|
|
685
704
|
};
|
|
705
|
+
/**
|
|
706
|
+
* AplusContentApi - object-oriented interface
|
|
707
|
+
*/
|
|
686
708
|
var AplusContentApi = class extends BaseAPI {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
};
|
|
778
|
-
var GetContentDocumentIncludedDataSetEnum = {
|
|
779
|
-
Contents: "CONTENTS",
|
|
780
|
-
Metadata: "METADATA"
|
|
709
|
+
/**
|
|
710
|
+
* Creates a new A+ Content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
711
|
+
* @param {AplusContentApiCreateContentDocumentRequest} requestParameters Request parameters.
|
|
712
|
+
* @param {*} [options] Override http request option.
|
|
713
|
+
* @throws {RequiredError}
|
|
714
|
+
*/
|
|
715
|
+
createContentDocument(requestParameters, options) {
|
|
716
|
+
return AplusContentApiFp(this.configuration).createContentDocument(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Returns an A+ Content document, if available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
720
|
+
* @param {AplusContentApiGetContentDocumentRequest} requestParameters Request parameters.
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @throws {RequiredError}
|
|
723
|
+
*/
|
|
724
|
+
getContentDocument(requestParameters, options) {
|
|
725
|
+
return AplusContentApiFp(this.configuration).getContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, options).then((request) => request(this.axios, this.basePath));
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Returns a list of ASINs that are related to the specified A+ Content document, if available. If you don\'t include the `asinSet` parameter, this operation returns all ASINs related to the content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
729
|
+
* @param {AplusContentApiListContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
730
|
+
* @param {*} [options] Override http request option.
|
|
731
|
+
* @throws {RequiredError}
|
|
732
|
+
*/
|
|
733
|
+
listContentDocumentAsinRelations(requestParameters, options) {
|
|
734
|
+
return AplusContentApiFp(this.configuration).listContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, requestParameters.asinSet, requestParameters.pageToken, options).then((request) => request(this.axios, this.basePath));
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Submits an A+ Content document for review, approval, and publishing. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
738
|
+
* @param {AplusContentApiPostContentDocumentApprovalSubmissionRequest} requestParameters Request parameters.
|
|
739
|
+
* @param {*} [options] Override http request option.
|
|
740
|
+
* @throws {RequiredError}
|
|
741
|
+
*/
|
|
742
|
+
postContentDocumentApprovalSubmission(requestParameters, options) {
|
|
743
|
+
return AplusContentApiFp(this.configuration).postContentDocumentApprovalSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Replaces all ASINs related to the specified A+ Content document, if available. This operation can add or remove ASINs, depending on the current set of related ASINs. Removing an ASIN will suspend the content document from that ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
747
|
+
* @param {AplusContentApiPostContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
748
|
+
* @param {*} [options] Override http request option.
|
|
749
|
+
* @throws {RequiredError}
|
|
750
|
+
*/
|
|
751
|
+
postContentDocumentAsinRelations(requestParameters, options) {
|
|
752
|
+
return AplusContentApiFp(this.configuration).postContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentAsinRelationsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Submits a request to suspend visible A+ Content. This doesn\'t delete the content document or the ASIN relations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
756
|
+
* @param {AplusContentApiPostContentDocumentSuspendSubmissionRequest} requestParameters Request parameters.
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
*/
|
|
760
|
+
postContentDocumentSuspendSubmission(requestParameters, options) {
|
|
761
|
+
return AplusContentApiFp(this.configuration).postContentDocumentSuspendSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Returns a list of all A+ Content documents, including metadata, that are assigned to a selling partner. To get the actual contents of the A+ Content documents, call the `getContentDocument` operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
765
|
+
* @param {AplusContentApiSearchContentDocumentsRequest} requestParameters Request parameters.
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
searchContentDocuments(requestParameters, options) {
|
|
770
|
+
return AplusContentApiFp(this.configuration).searchContentDocuments(requestParameters.marketplaceId, requestParameters.pageToken, options).then((request) => request(this.axios, this.basePath));
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Searches for A+ Content publishing records, if available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
774
|
+
* @param {AplusContentApiSearchContentPublishRecordsRequest} requestParameters Request parameters.
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
searchContentPublishRecords(requestParameters, options) {
|
|
779
|
+
return AplusContentApiFp(this.configuration).searchContentPublishRecords(requestParameters.marketplaceId, requestParameters.asin, requestParameters.pageToken, options).then((request) => request(this.axios, this.basePath));
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Updates an existing A+ Content document. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
783
|
+
* @param {AplusContentApiUpdateContentDocumentRequest} requestParameters Request parameters.
|
|
784
|
+
* @param {*} [options] Override http request option.
|
|
785
|
+
* @throws {RequiredError}
|
|
786
|
+
*/
|
|
787
|
+
updateContentDocument(requestParameters, options) {
|
|
788
|
+
return AplusContentApiFp(this.configuration).updateContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* Checks if the A+ Content document is valid for use on a set of ASINs. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
792
|
+
* @param {AplusContentApiValidateContentDocumentAsinRelationsRequest} requestParameters Request parameters.
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
validateContentDocumentAsinRelations(requestParameters, options) {
|
|
797
|
+
return AplusContentApiFp(this.configuration).validateContentDocumentAsinRelations(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, requestParameters.asinSet, options).then((request) => request(this.axios, this.basePath));
|
|
798
|
+
}
|
|
781
799
|
};
|
|
782
|
-
|
|
783
|
-
|
|
800
|
+
const GetContentDocumentIncludedDataSetEnum = {
|
|
801
|
+
Contents: "CONTENTS",
|
|
802
|
+
Metadata: "METADATA"
|
|
784
803
|
};
|
|
785
|
-
|
|
786
|
-
|
|
804
|
+
const ListContentDocumentAsinRelationsIncludedDataSetEnum = { Metadata: "METADATA" };
|
|
805
|
+
//#endregion
|
|
806
|
+
//#region src/api-model/configuration.ts
|
|
787
807
|
var Configuration = class {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
866
|
-
return mime !== null && jsonMime.test(mime);
|
|
867
|
-
}
|
|
808
|
+
/**
|
|
809
|
+
* parameter for apiKey security
|
|
810
|
+
* @param name security name
|
|
811
|
+
*/
|
|
812
|
+
apiKey;
|
|
813
|
+
/**
|
|
814
|
+
* parameter for basic security
|
|
815
|
+
*/
|
|
816
|
+
username;
|
|
817
|
+
/**
|
|
818
|
+
* parameter for basic security
|
|
819
|
+
*/
|
|
820
|
+
password;
|
|
821
|
+
/**
|
|
822
|
+
* parameter for oauth2 security
|
|
823
|
+
* @param name security name
|
|
824
|
+
* @param scopes oauth2 scope
|
|
825
|
+
*/
|
|
826
|
+
accessToken;
|
|
827
|
+
/**
|
|
828
|
+
* parameter for aws4 signature security
|
|
829
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
830
|
+
* @param {string} options.region - aws region
|
|
831
|
+
* @param {string} options.service - name of the service.
|
|
832
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
833
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
834
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
835
|
+
* @memberof Configuration
|
|
836
|
+
*/
|
|
837
|
+
awsv4;
|
|
838
|
+
/**
|
|
839
|
+
* override base path
|
|
840
|
+
*/
|
|
841
|
+
basePath;
|
|
842
|
+
/**
|
|
843
|
+
* override server index
|
|
844
|
+
*/
|
|
845
|
+
serverIndex;
|
|
846
|
+
/**
|
|
847
|
+
* base options for axios calls
|
|
848
|
+
*/
|
|
849
|
+
baseOptions;
|
|
850
|
+
/**
|
|
851
|
+
* The FormData constructor that will be used to create multipart form data
|
|
852
|
+
* requests. You can inject this here so that execution environments that
|
|
853
|
+
* do not support the FormData class can still run the generated client.
|
|
854
|
+
*
|
|
855
|
+
* @type {new () => FormData}
|
|
856
|
+
*/
|
|
857
|
+
formDataCtor;
|
|
858
|
+
constructor(param = {}) {
|
|
859
|
+
this.apiKey = param.apiKey;
|
|
860
|
+
this.username = param.username;
|
|
861
|
+
this.password = param.password;
|
|
862
|
+
this.accessToken = param.accessToken;
|
|
863
|
+
this.awsv4 = param.awsv4;
|
|
864
|
+
this.basePath = param.basePath;
|
|
865
|
+
this.serverIndex = param.serverIndex;
|
|
866
|
+
this.baseOptions = {
|
|
867
|
+
...param.baseOptions,
|
|
868
|
+
headers: { ...param.baseOptions?.headers }
|
|
869
|
+
};
|
|
870
|
+
this.formDataCtor = param.formDataCtor;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Check if the given MIME is a JSON MIME.
|
|
874
|
+
* JSON MIME examples:
|
|
875
|
+
* application/json
|
|
876
|
+
* application/json; charset=UTF8
|
|
877
|
+
* APPLICATION/JSON
|
|
878
|
+
* application/vnd.company+json
|
|
879
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
880
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
881
|
+
*/
|
|
882
|
+
isJsonMime(mime) {
|
|
883
|
+
return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
|
|
884
|
+
}
|
|
868
885
|
};
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
886
|
+
//#endregion
|
|
887
|
+
//#region src/api-model/models/asin-badge.ts
|
|
888
|
+
/**
|
|
889
|
+
* Selling Partner API for A+ Content Management
|
|
890
|
+
* 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.
|
|
891
|
+
*
|
|
892
|
+
* The version of the OpenAPI document: 2020-11-01
|
|
893
|
+
*
|
|
894
|
+
*
|
|
895
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
896
|
+
* https://openapi-generator.tech
|
|
897
|
+
* Do not edit the class manually.
|
|
898
|
+
*/
|
|
899
|
+
/**
|
|
900
|
+
* A flag that provides additional information about an ASIN. This is contextual and can change depending on the request that generated it.
|
|
901
|
+
*/
|
|
902
|
+
const AsinBadge = {
|
|
903
|
+
BrandNotEligible: "BRAND_NOT_ELIGIBLE",
|
|
904
|
+
CatalogNotFound: "CATALOG_NOT_FOUND",
|
|
905
|
+
ContentNotPublished: "CONTENT_NOT_PUBLISHED",
|
|
906
|
+
ContentPublished: "CONTENT_PUBLISHED"
|
|
876
907
|
};
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
908
|
+
//#endregion
|
|
909
|
+
//#region src/api-model/models/color-type.ts
|
|
910
|
+
/**
|
|
911
|
+
* Selling Partner API for A+ Content Management
|
|
912
|
+
* 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.
|
|
913
|
+
*
|
|
914
|
+
* The version of the OpenAPI document: 2020-11-01
|
|
915
|
+
*
|
|
916
|
+
*
|
|
917
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
918
|
+
* https://openapi-generator.tech
|
|
919
|
+
* Do not edit the class manually.
|
|
920
|
+
*/
|
|
921
|
+
/**
|
|
922
|
+
* The relative color scheme of your content.
|
|
923
|
+
*/
|
|
924
|
+
const ColorType = {
|
|
925
|
+
Dark: "DARK",
|
|
926
|
+
Light: "LIGHT"
|
|
882
927
|
};
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
928
|
+
//#endregion
|
|
929
|
+
//#region src/api-model/models/content-badge.ts
|
|
930
|
+
/**
|
|
931
|
+
* Selling Partner API for A+ Content Management
|
|
932
|
+
* 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.
|
|
933
|
+
*
|
|
934
|
+
* The version of the OpenAPI document: 2020-11-01
|
|
935
|
+
*
|
|
936
|
+
*
|
|
937
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
938
|
+
* https://openapi-generator.tech
|
|
939
|
+
* Do not edit the class manually.
|
|
940
|
+
*/
|
|
941
|
+
/**
|
|
942
|
+
* A flag that provides additional information about an A+ Content document.
|
|
943
|
+
*/
|
|
944
|
+
const ContentBadge = {
|
|
945
|
+
Bulk: "BULK",
|
|
946
|
+
Generated: "GENERATED",
|
|
947
|
+
Launchpad: "LAUNCHPAD",
|
|
948
|
+
Premium: "PREMIUM",
|
|
949
|
+
Standard: "STANDARD"
|
|
891
950
|
};
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region src/api-model/models/content-module-type.ts
|
|
953
|
+
/**
|
|
954
|
+
* Selling Partner API for A+ Content Management
|
|
955
|
+
* 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.
|
|
956
|
+
*
|
|
957
|
+
* The version of the OpenAPI document: 2020-11-01
|
|
958
|
+
*
|
|
959
|
+
*
|
|
960
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
961
|
+
* https://openapi-generator.tech
|
|
962
|
+
* Do not edit the class manually.
|
|
963
|
+
*/
|
|
964
|
+
/**
|
|
965
|
+
* The type of A+ Content module.
|
|
966
|
+
*/
|
|
967
|
+
const ContentModuleType = {
|
|
968
|
+
StandardCompanyLogo: "STANDARD_COMPANY_LOGO",
|
|
969
|
+
StandardComparisonTable: "STANDARD_COMPARISON_TABLE",
|
|
970
|
+
StandardFourImageText: "STANDARD_FOUR_IMAGE_TEXT",
|
|
971
|
+
StandardFourImageTextQuadrant: "STANDARD_FOUR_IMAGE_TEXT_QUADRANT",
|
|
972
|
+
StandardHeaderImageText: "STANDARD_HEADER_IMAGE_TEXT",
|
|
973
|
+
StandardImageSidebar: "STANDARD_IMAGE_SIDEBAR",
|
|
974
|
+
StandardImageTextOverlay: "STANDARD_IMAGE_TEXT_OVERLAY",
|
|
975
|
+
StandardMultipleImageText: "STANDARD_MULTIPLE_IMAGE_TEXT",
|
|
976
|
+
StandardProductDescription: "STANDARD_PRODUCT_DESCRIPTION",
|
|
977
|
+
StandardSingleImageHighlights: "STANDARD_SINGLE_IMAGE_HIGHLIGHTS",
|
|
978
|
+
StandardSingleImageSpecsDetail: "STANDARD_SINGLE_IMAGE_SPECS_DETAIL",
|
|
979
|
+
StandardSingleSideImage: "STANDARD_SINGLE_SIDE_IMAGE",
|
|
980
|
+
StandardTechSpecs: "STANDARD_TECH_SPECS",
|
|
981
|
+
StandardText: "STANDARD_TEXT",
|
|
982
|
+
StandardThreeImageText: "STANDARD_THREE_IMAGE_TEXT"
|
|
910
983
|
};
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
984
|
+
//#endregion
|
|
985
|
+
//#region src/api-model/models/content-status.ts
|
|
986
|
+
/**
|
|
987
|
+
* Selling Partner API for A+ Content Management
|
|
988
|
+
* 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.
|
|
989
|
+
*
|
|
990
|
+
* The version of the OpenAPI document: 2020-11-01
|
|
991
|
+
*
|
|
992
|
+
*
|
|
993
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
994
|
+
* https://openapi-generator.tech
|
|
995
|
+
* Do not edit the class manually.
|
|
996
|
+
*/
|
|
997
|
+
/**
|
|
998
|
+
* The submission status of the content document.
|
|
999
|
+
*/
|
|
1000
|
+
const ContentStatus = {
|
|
1001
|
+
Approved: "APPROVED",
|
|
1002
|
+
Draft: "DRAFT",
|
|
1003
|
+
Rejected: "REJECTED",
|
|
1004
|
+
Submitted: "SUBMITTED"
|
|
918
1005
|
};
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
1006
|
+
//#endregion
|
|
1007
|
+
//#region src/api-model/models/content-type.ts
|
|
1008
|
+
/**
|
|
1009
|
+
* Selling Partner API for A+ Content Management
|
|
1010
|
+
* 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.
|
|
1011
|
+
*
|
|
1012
|
+
* The version of the OpenAPI document: 2020-11-01
|
|
1013
|
+
*
|
|
1014
|
+
*
|
|
1015
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1016
|
+
* https://openapi-generator.tech
|
|
1017
|
+
* Do not edit the class manually.
|
|
1018
|
+
*/
|
|
1019
|
+
/**
|
|
1020
|
+
* The A+ Content document type.
|
|
1021
|
+
*/
|
|
1022
|
+
const ContentType = {
|
|
1023
|
+
Ebc: "EBC",
|
|
1024
|
+
Emc: "EMC"
|
|
924
1025
|
};
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
1026
|
+
//#endregion
|
|
1027
|
+
//#region src/api-model/models/decorator-type.ts
|
|
1028
|
+
/**
|
|
1029
|
+
* Selling Partner API for A+ Content Management
|
|
1030
|
+
* 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.
|
|
1031
|
+
*
|
|
1032
|
+
* The version of the OpenAPI document: 2020-11-01
|
|
1033
|
+
*
|
|
1034
|
+
*
|
|
1035
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1036
|
+
* https://openapi-generator.tech
|
|
1037
|
+
* Do not edit the class manually.
|
|
1038
|
+
*/
|
|
1039
|
+
/**
|
|
1040
|
+
* The type of rich text decorator.
|
|
1041
|
+
*/
|
|
1042
|
+
const DecoratorType = {
|
|
1043
|
+
ListItem: "LIST_ITEM",
|
|
1044
|
+
ListOrdered: "LIST_ORDERED",
|
|
1045
|
+
ListUnordered: "LIST_UNORDERED",
|
|
1046
|
+
StyleBold: "STYLE_BOLD",
|
|
1047
|
+
StyleItalic: "STYLE_ITALIC",
|
|
1048
|
+
StyleLinebreak: "STYLE_LINEBREAK",
|
|
1049
|
+
StyleParagraph: "STYLE_PARAGRAPH",
|
|
1050
|
+
StyleUnderline: "STYLE_UNDERLINE"
|
|
936
1051
|
};
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1052
|
+
//#endregion
|
|
1053
|
+
//#region src/api-model/models/position-type.ts
|
|
1054
|
+
/**
|
|
1055
|
+
* Selling Partner API for A+ Content Management
|
|
1056
|
+
* 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.
|
|
1057
|
+
*
|
|
1058
|
+
* The version of the OpenAPI document: 2020-11-01
|
|
1059
|
+
*
|
|
1060
|
+
*
|
|
1061
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1062
|
+
* https://openapi-generator.tech
|
|
1063
|
+
* Do not edit the class manually.
|
|
1064
|
+
*/
|
|
1065
|
+
/**
|
|
1066
|
+
* The content\'s relative positioning.
|
|
1067
|
+
*/
|
|
1068
|
+
const PositionType = {
|
|
1069
|
+
Left: "LEFT",
|
|
1070
|
+
Right: "RIGHT"
|
|
942
1071
|
};
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
rate: 10,
|
|
1007
|
-
burst: 10
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
method: "post",
|
|
1011
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
1012
|
-
urlRegex: new RegExp("^/aplus/2020-11-01/contentDocuments/[^/]*/suspendSubmissions$"),
|
|
1013
|
-
rate: 10,
|
|
1014
|
-
burst: 10
|
|
1015
|
-
}
|
|
1072
|
+
//#endregion
|
|
1073
|
+
//#region src/client.ts
|
|
1074
|
+
const clientRateLimits = [
|
|
1075
|
+
{
|
|
1076
|
+
method: "get",
|
|
1077
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentDocuments$/v,
|
|
1078
|
+
rate: 10,
|
|
1079
|
+
burst: 10
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
method: "post",
|
|
1083
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentDocuments$/v,
|
|
1084
|
+
rate: 10,
|
|
1085
|
+
burst: 10
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
method: "get",
|
|
1089
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentDocuments\/[^\/]*$/v,
|
|
1090
|
+
rate: 10,
|
|
1091
|
+
burst: 10
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
method: "post",
|
|
1095
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentDocuments\/[^\/]*$/v,
|
|
1096
|
+
rate: 10,
|
|
1097
|
+
burst: 10
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
method: "get",
|
|
1101
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentDocuments\/[^\/]*\/asins$/v,
|
|
1102
|
+
rate: 10,
|
|
1103
|
+
burst: 10
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
method: "post",
|
|
1107
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentDocuments\/[^\/]*\/asins$/v,
|
|
1108
|
+
rate: 10,
|
|
1109
|
+
burst: 10
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
method: "post",
|
|
1113
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentAsinValidations$/v,
|
|
1114
|
+
rate: 10,
|
|
1115
|
+
burst: 10
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
method: "get",
|
|
1119
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentPublishRecords$/v,
|
|
1120
|
+
rate: 10,
|
|
1121
|
+
burst: 10
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
method: "post",
|
|
1125
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentDocuments\/[^\/]*\/approvalSubmissions$/v,
|
|
1126
|
+
rate: 10,
|
|
1127
|
+
burst: 10
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
method: "post",
|
|
1131
|
+
urlRegex: /^\/aplus\/2020\u{2D}11\u{2D}01\/contentDocuments\/[^\/]*\/suspendSubmissions$/v,
|
|
1132
|
+
rate: 10,
|
|
1133
|
+
burst: 10
|
|
1134
|
+
}
|
|
1016
1135
|
];
|
|
1017
1136
|
var AplusContentApiClient = class extends AplusContentApi {
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
};
|
|
1023
|
-
export {
|
|
1024
|
-
AplusContentApi,
|
|
1025
|
-
AplusContentApiAxiosParamCreator,
|
|
1026
|
-
AplusContentApiClient,
|
|
1027
|
-
AplusContentApiFactory,
|
|
1028
|
-
AplusContentApiFp,
|
|
1029
|
-
AsinBadge,
|
|
1030
|
-
ColorType,
|
|
1031
|
-
ContentBadge,
|
|
1032
|
-
ContentModuleType,
|
|
1033
|
-
ContentStatus,
|
|
1034
|
-
ContentType,
|
|
1035
|
-
DecoratorType,
|
|
1036
|
-
GetContentDocumentIncludedDataSetEnum,
|
|
1037
|
-
ListContentDocumentAsinRelationsIncludedDataSetEnum,
|
|
1038
|
-
PositionType,
|
|
1039
|
-
clientRateLimits
|
|
1137
|
+
constructor(configuration) {
|
|
1138
|
+
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
1139
|
+
super(new Configuration(), endpoint, axios);
|
|
1140
|
+
}
|
|
1040
1141
|
};
|
|
1142
|
+
//#endregion
|
|
1143
|
+
export { AplusContentApi, AplusContentApiAxiosParamCreator, AplusContentApiClient, AplusContentApiFactory, AplusContentApiFp, AsinBadge, ColorType, ContentBadge, ContentModuleType, ContentStatus, ContentType, DecoratorType, GetContentDocumentIncludedDataSetEnum, ListContentDocumentAsinRelationsIncludedDataSetEnum, PositionType, clientRateLimits };
|
|
1144
|
+
|
|
1041
1145
|
//# sourceMappingURL=index.js.map
|