@sp-api-sdk/aplus-content-api-2020-11-01 4.0.0 → 4.1.0

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