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