@sp-api-sdk/aplus-content-api-2020-11-01 3.1.19 → 4.0.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.
Files changed (242) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +1093 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +2182 -0
  5. package/dist/index.d.ts +2182 -0
  6. package/dist/index.js +1041 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/aplus-content-api.js +0 -772
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/aplus-paginated-response-all-of.js +0 -15
  16. package/dist/cjs/api-model/models/aplus-paginated-response.js +0 -15
  17. package/dist/cjs/api-model/models/aplus-response.js +0 -15
  18. package/dist/cjs/api-model/models/asin-badge.js +0 -25
  19. package/dist/cjs/api-model/models/asin-metadata.js +0 -15
  20. package/dist/cjs/api-model/models/color-type.js +0 -23
  21. package/dist/cjs/api-model/models/content-badge.js +0 -26
  22. package/dist/cjs/api-model/models/content-document.js +0 -15
  23. package/dist/cjs/api-model/models/content-metadata-record.js +0 -15
  24. package/dist/cjs/api-model/models/content-metadata.js +0 -15
  25. package/dist/cjs/api-model/models/content-module-type.js +0 -36
  26. package/dist/cjs/api-model/models/content-module.js +0 -15
  27. package/dist/cjs/api-model/models/content-record.js +0 -15
  28. package/dist/cjs/api-model/models/content-status.js +0 -25
  29. package/dist/cjs/api-model/models/content-type.js +0 -23
  30. package/dist/cjs/api-model/models/decorator-type.js +0 -29
  31. package/dist/cjs/api-model/models/decorator.js +0 -15
  32. package/dist/cjs/api-model/models/error-list.js +0 -15
  33. package/dist/cjs/api-model/models/get-content-document-response-all-of.js +0 -15
  34. package/dist/cjs/api-model/models/get-content-document-response.js +0 -15
  35. package/dist/cjs/api-model/models/image-component.js +0 -15
  36. package/dist/cjs/api-model/models/image-crop-specification.js +0 -15
  37. package/dist/cjs/api-model/models/image-dimensions.js +0 -15
  38. package/dist/cjs/api-model/models/image-offsets.js +0 -15
  39. package/dist/cjs/api-model/models/index.js +0 -85
  40. package/dist/cjs/api-model/models/integer-with-units.js +0 -15
  41. package/dist/cjs/api-model/models/list-content-document-asin-relations-response-all-of.js +0 -15
  42. package/dist/cjs/api-model/models/list-content-document-asin-relations-response.js +0 -15
  43. package/dist/cjs/api-model/models/model-error.js +0 -15
  44. package/dist/cjs/api-model/models/paragraph-component.js +0 -15
  45. package/dist/cjs/api-model/models/plain-text-item.js +0 -15
  46. package/dist/cjs/api-model/models/position-type.js +0 -23
  47. package/dist/cjs/api-model/models/post-content-document-approval-submission-response.js +0 -15
  48. package/dist/cjs/api-model/models/post-content-document-asin-relations-request.js +0 -15
  49. package/dist/cjs/api-model/models/post-content-document-asin-relations-response.js +0 -15
  50. package/dist/cjs/api-model/models/post-content-document-request.js +0 -15
  51. package/dist/cjs/api-model/models/post-content-document-response-all-of.js +0 -15
  52. package/dist/cjs/api-model/models/post-content-document-response.js +0 -15
  53. package/dist/cjs/api-model/models/post-content-document-suspend-submission-response.js +0 -15
  54. package/dist/cjs/api-model/models/publish-record.js +0 -15
  55. package/dist/cjs/api-model/models/search-content-documents-response-all-of.js +0 -15
  56. package/dist/cjs/api-model/models/search-content-documents-response.js +0 -15
  57. package/dist/cjs/api-model/models/search-content-publish-records-response-all-of.js +0 -15
  58. package/dist/cjs/api-model/models/search-content-publish-records-response.js +0 -15
  59. package/dist/cjs/api-model/models/standard-company-logo-module.js +0 -15
  60. package/dist/cjs/api-model/models/standard-comparison-product-block.js +0 -15
  61. package/dist/cjs/api-model/models/standard-comparison-table-module.js +0 -15
  62. package/dist/cjs/api-model/models/standard-four-image-text-module.js +0 -15
  63. package/dist/cjs/api-model/models/standard-four-image-text-quadrant-module.js +0 -15
  64. package/dist/cjs/api-model/models/standard-header-image-text-module.js +0 -15
  65. package/dist/cjs/api-model/models/standard-header-text-list-block.js +0 -15
  66. package/dist/cjs/api-model/models/standard-image-caption-block.js +0 -15
  67. package/dist/cjs/api-model/models/standard-image-sidebar-module.js +0 -15
  68. package/dist/cjs/api-model/models/standard-image-text-block.js +0 -15
  69. package/dist/cjs/api-model/models/standard-image-text-caption-block.js +0 -15
  70. package/dist/cjs/api-model/models/standard-image-text-overlay-module.js +0 -15
  71. package/dist/cjs/api-model/models/standard-multiple-image-text-module.js +0 -15
  72. package/dist/cjs/api-model/models/standard-product-description-module.js +0 -15
  73. package/dist/cjs/api-model/models/standard-single-image-highlights-module.js +0 -15
  74. package/dist/cjs/api-model/models/standard-single-image-specs-detail-module.js +0 -15
  75. package/dist/cjs/api-model/models/standard-single-side-image-module.js +0 -15
  76. package/dist/cjs/api-model/models/standard-tech-specs-module.js +0 -15
  77. package/dist/cjs/api-model/models/standard-text-block.js +0 -15
  78. package/dist/cjs/api-model/models/standard-text-list-block.js +0 -15
  79. package/dist/cjs/api-model/models/standard-text-module.js +0 -15
  80. package/dist/cjs/api-model/models/standard-text-pair-block.js +0 -15
  81. package/dist/cjs/api-model/models/standard-three-image-text-module.js +0 -15
  82. package/dist/cjs/api-model/models/text-component.js +0 -15
  83. package/dist/cjs/api-model/models/text-item.js +0 -15
  84. package/dist/cjs/api-model/models/validate-content-document-asin-relations-response.js +0 -15
  85. package/dist/cjs/client.js +0 -84
  86. package/dist/cjs/index.js +0 -19
  87. package/dist/es/api-model/api/aplus-content-api.js +0 -762
  88. package/dist/es/api-model/api.js +0 -14
  89. package/dist/es/api-model/base.js +0 -44
  90. package/dist/es/api-model/common.js +0 -110
  91. package/dist/es/api-model/configuration.js +0 -94
  92. package/dist/es/api-model/index.js +0 -16
  93. package/dist/es/api-model/models/aplus-paginated-response-all-of.js +0 -14
  94. package/dist/es/api-model/models/aplus-paginated-response.js +0 -14
  95. package/dist/es/api-model/models/aplus-response.js +0 -14
  96. package/dist/es/api-model/models/asin-badge.js +0 -22
  97. package/dist/es/api-model/models/asin-metadata.js +0 -14
  98. package/dist/es/api-model/models/color-type.js +0 -20
  99. package/dist/es/api-model/models/content-badge.js +0 -23
  100. package/dist/es/api-model/models/content-document.js +0 -14
  101. package/dist/es/api-model/models/content-metadata-record.js +0 -14
  102. package/dist/es/api-model/models/content-metadata.js +0 -14
  103. package/dist/es/api-model/models/content-module-type.js +0 -33
  104. package/dist/es/api-model/models/content-module.js +0 -14
  105. package/dist/es/api-model/models/content-record.js +0 -14
  106. package/dist/es/api-model/models/content-status.js +0 -22
  107. package/dist/es/api-model/models/content-type.js +0 -20
  108. package/dist/es/api-model/models/decorator-type.js +0 -26
  109. package/dist/es/api-model/models/decorator.js +0 -14
  110. package/dist/es/api-model/models/error-list.js +0 -14
  111. package/dist/es/api-model/models/get-content-document-response-all-of.js +0 -14
  112. package/dist/es/api-model/models/get-content-document-response.js +0 -14
  113. package/dist/es/api-model/models/image-component.js +0 -14
  114. package/dist/es/api-model/models/image-crop-specification.js +0 -14
  115. package/dist/es/api-model/models/image-dimensions.js +0 -14
  116. package/dist/es/api-model/models/image-offsets.js +0 -14
  117. package/dist/es/api-model/models/index.js +0 -69
  118. package/dist/es/api-model/models/integer-with-units.js +0 -14
  119. package/dist/es/api-model/models/list-content-document-asin-relations-response-all-of.js +0 -14
  120. package/dist/es/api-model/models/list-content-document-asin-relations-response.js +0 -14
  121. package/dist/es/api-model/models/model-error.js +0 -14
  122. package/dist/es/api-model/models/paragraph-component.js +0 -14
  123. package/dist/es/api-model/models/plain-text-item.js +0 -14
  124. package/dist/es/api-model/models/position-type.js +0 -20
  125. package/dist/es/api-model/models/post-content-document-approval-submission-response.js +0 -14
  126. package/dist/es/api-model/models/post-content-document-asin-relations-request.js +0 -14
  127. package/dist/es/api-model/models/post-content-document-asin-relations-response.js +0 -14
  128. package/dist/es/api-model/models/post-content-document-request.js +0 -14
  129. package/dist/es/api-model/models/post-content-document-response-all-of.js +0 -14
  130. package/dist/es/api-model/models/post-content-document-response.js +0 -14
  131. package/dist/es/api-model/models/post-content-document-suspend-submission-response.js +0 -14
  132. package/dist/es/api-model/models/publish-record.js +0 -14
  133. package/dist/es/api-model/models/search-content-documents-response-all-of.js +0 -14
  134. package/dist/es/api-model/models/search-content-documents-response.js +0 -14
  135. package/dist/es/api-model/models/search-content-publish-records-response-all-of.js +0 -14
  136. package/dist/es/api-model/models/search-content-publish-records-response.js +0 -14
  137. package/dist/es/api-model/models/standard-company-logo-module.js +0 -14
  138. package/dist/es/api-model/models/standard-comparison-product-block.js +0 -14
  139. package/dist/es/api-model/models/standard-comparison-table-module.js +0 -14
  140. package/dist/es/api-model/models/standard-four-image-text-module.js +0 -14
  141. package/dist/es/api-model/models/standard-four-image-text-quadrant-module.js +0 -14
  142. package/dist/es/api-model/models/standard-header-image-text-module.js +0 -14
  143. package/dist/es/api-model/models/standard-header-text-list-block.js +0 -14
  144. package/dist/es/api-model/models/standard-image-caption-block.js +0 -14
  145. package/dist/es/api-model/models/standard-image-sidebar-module.js +0 -14
  146. package/dist/es/api-model/models/standard-image-text-block.js +0 -14
  147. package/dist/es/api-model/models/standard-image-text-caption-block.js +0 -14
  148. package/dist/es/api-model/models/standard-image-text-overlay-module.js +0 -14
  149. package/dist/es/api-model/models/standard-multiple-image-text-module.js +0 -14
  150. package/dist/es/api-model/models/standard-product-description-module.js +0 -14
  151. package/dist/es/api-model/models/standard-single-image-highlights-module.js +0 -14
  152. package/dist/es/api-model/models/standard-single-image-specs-detail-module.js +0 -14
  153. package/dist/es/api-model/models/standard-single-side-image-module.js +0 -14
  154. package/dist/es/api-model/models/standard-tech-specs-module.js +0 -14
  155. package/dist/es/api-model/models/standard-text-block.js +0 -14
  156. package/dist/es/api-model/models/standard-text-list-block.js +0 -14
  157. package/dist/es/api-model/models/standard-text-module.js +0 -14
  158. package/dist/es/api-model/models/standard-text-pair-block.js +0 -14
  159. package/dist/es/api-model/models/standard-three-image-text-module.js +0 -14
  160. package/dist/es/api-model/models/text-component.js +0 -14
  161. package/dist/es/api-model/models/text-item.js +0 -14
  162. package/dist/es/api-model/models/validate-content-document-asin-relations-response.js +0 -14
  163. package/dist/es/client.js +0 -80
  164. package/dist/es/index.js +0 -3
  165. package/dist/types/api-model/api/aplus-content-api.d.ts +0 -533
  166. package/dist/types/api-model/api.d.ts +0 -12
  167. package/dist/types/api-model/base.d.ts +0 -42
  168. package/dist/types/api-model/common.d.ts +0 -34
  169. package/dist/types/api-model/configuration.d.ts +0 -98
  170. package/dist/types/api-model/index.d.ts +0 -14
  171. package/dist/types/api-model/models/aplus-paginated-response-all-of.d.ts +0 -17
  172. package/dist/types/api-model/models/aplus-paginated-response.d.ts +0 -18
  173. package/dist/types/api-model/models/aplus-response.d.ts +0 -20
  174. package/dist/types/api-model/models/asin-badge.d.ts +0 -21
  175. package/dist/types/api-model/models/asin-metadata.d.ts +0 -41
  176. package/dist/types/api-model/models/color-type.d.ts +0 -19
  177. package/dist/types/api-model/models/content-badge.d.ts +0 -22
  178. package/dist/types/api-model/models/content-document.d.ts +0 -35
  179. package/dist/types/api-model/models/content-metadata-record.d.ts +0 -22
  180. package/dist/types/api-model/models/content-metadata.d.ts +0 -35
  181. package/dist/types/api-model/models/content-module-type.d.ts +0 -32
  182. package/dist/types/api-model/models/content-module.d.ts +0 -48
  183. package/dist/types/api-model/models/content-record.d.ts +0 -24
  184. package/dist/types/api-model/models/content-status.d.ts +0 -21
  185. package/dist/types/api-model/models/content-type.d.ts +0 -19
  186. package/dist/types/api-model/models/decorator-type.d.ts +0 -25
  187. package/dist/types/api-model/models/decorator.d.ts +0 -30
  188. package/dist/types/api-model/models/error-list.d.ts +0 -20
  189. package/dist/types/api-model/models/get-content-document-response-all-of.d.ts +0 -15
  190. package/dist/types/api-model/models/get-content-document-response.d.ts +0 -17
  191. package/dist/types/api-model/models/image-component.d.ts +0 -26
  192. package/dist/types/api-model/models/image-crop-specification.d.ts +0 -20
  193. package/dist/types/api-model/models/image-dimensions.d.ts +0 -19
  194. package/dist/types/api-model/models/image-offsets.d.ts +0 -19
  195. package/dist/types/api-model/models/index.d.ts +0 -69
  196. package/dist/types/api-model/models/integer-with-units.d.ts +0 -24
  197. package/dist/types/api-model/models/list-content-document-asin-relations-response-all-of.d.ts +0 -18
  198. package/dist/types/api-model/models/list-content-document-asin-relations-response.d.ts +0 -17
  199. package/dist/types/api-model/models/model-error.d.ts +0 -28
  200. package/dist/types/api-model/models/paragraph-component.d.ts +0 -18
  201. package/dist/types/api-model/models/plain-text-item.d.ts +0 -24
  202. package/dist/types/api-model/models/position-type.d.ts +0 -19
  203. package/dist/types/api-model/models/post-content-document-approval-submission-response.d.ts +0 -16
  204. package/dist/types/api-model/models/post-content-document-asin-relations-request.d.ts +0 -17
  205. package/dist/types/api-model/models/post-content-document-asin-relations-response.d.ts +0 -16
  206. package/dist/types/api-model/models/post-content-document-request.d.ts +0 -15
  207. package/dist/types/api-model/models/post-content-document-response-all-of.d.ts +0 -17
  208. package/dist/types/api-model/models/post-content-document-response.d.ts +0 -17
  209. package/dist/types/api-model/models/post-content-document-suspend-submission-response.d.ts +0 -16
  210. package/dist/types/api-model/models/publish-record.d.ts +0 -38
  211. package/dist/types/api-model/models/search-content-documents-response-all-of.d.ts +0 -18
  212. package/dist/types/api-model/models/search-content-documents-response.d.ts +0 -17
  213. package/dist/types/api-model/models/search-content-publish-records-response-all-of.d.ts +0 -18
  214. package/dist/types/api-model/models/search-content-publish-records-response.d.ts +0 -17
  215. package/dist/types/api-model/models/standard-company-logo-module.d.ts +0 -18
  216. package/dist/types/api-model/models/standard-comparison-product-block.d.ts +0 -39
  217. package/dist/types/api-model/models/standard-comparison-table-module.d.ts +0 -20
  218. package/dist/types/api-model/models/standard-four-image-text-module.d.ts +0 -23
  219. package/dist/types/api-model/models/standard-four-image-text-quadrant-module.d.ts +0 -21
  220. package/dist/types/api-model/models/standard-header-image-text-module.d.ts +0 -20
  221. package/dist/types/api-model/models/standard-header-text-list-block.d.ts +0 -20
  222. package/dist/types/api-model/models/standard-image-caption-block.d.ts +0 -20
  223. package/dist/types/api-model/models/standard-image-sidebar-module.d.ts +0 -27
  224. package/dist/types/api-model/models/standard-image-text-block.d.ts +0 -22
  225. package/dist/types/api-model/models/standard-image-text-caption-block.d.ts +0 -20
  226. package/dist/types/api-model/models/standard-image-text-overlay-module.d.ts +0 -20
  227. package/dist/types/api-model/models/standard-multiple-image-text-module.d.ts +0 -18
  228. package/dist/types/api-model/models/standard-product-description-module.d.ts +0 -18
  229. package/dist/types/api-model/models/standard-single-image-highlights-module.d.ts +0 -26
  230. package/dist/types/api-model/models/standard-single-image-specs-detail-module.d.ts +0 -28
  231. package/dist/types/api-model/models/standard-single-side-image-module.d.ts +0 -20
  232. package/dist/types/api-model/models/standard-tech-specs-module.d.ts +0 -27
  233. package/dist/types/api-model/models/standard-text-block.d.ts +0 -20
  234. package/dist/types/api-model/models/standard-text-list-block.d.ts +0 -18
  235. package/dist/types/api-model/models/standard-text-module.d.ts +0 -20
  236. package/dist/types/api-model/models/standard-text-pair-block.d.ts +0 -19
  237. package/dist/types/api-model/models/standard-three-image-text-module.d.ts +0 -22
  238. package/dist/types/api-model/models/text-component.d.ts +0 -25
  239. package/dist/types/api-model/models/text-item.d.ts +0 -22
  240. package/dist/types/api-model/models/validate-content-document-asin-relations-response.d.ts +0 -17
  241. package/dist/types/client.d.ts +0 -6
  242. package/dist/types/index.d.ts +0 -3
@@ -1,762 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for A+ Content Management
5
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
6
- *
7
- * The version of the OpenAPI document: 2020-11-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import globalAxios from 'axios';
15
- // Some imports not used depending on template conditions
16
- // @ts-ignore
17
- import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
- // @ts-ignore
19
- import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
20
- /**
21
- * AplusContentApi - axios parameter creator
22
- */
23
- export const AplusContentApiAxiosParamCreator = function (configuration) {
24
- return {
25
- /**
26
- * 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).
27
- * @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).
28
- * @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
29
- * @param {*} [options] Override http request option.
30
- * @throws {RequiredError}
31
- */
32
- createContentDocument: async (marketplaceId, postContentDocumentRequest, options = {}) => {
33
- // verify required parameter 'marketplaceId' is not null or undefined
34
- assertParamExists('createContentDocument', 'marketplaceId', marketplaceId);
35
- // verify required parameter 'postContentDocumentRequest' is not null or undefined
36
- assertParamExists('createContentDocument', 'postContentDocumentRequest', postContentDocumentRequest);
37
- const localVarPath = `/aplus/2020-11-01/contentDocuments`;
38
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
39
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40
- let baseOptions;
41
- if (configuration) {
42
- baseOptions = configuration.baseOptions;
43
- }
44
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
45
- const localVarHeaderParameter = {};
46
- const localVarQueryParameter = {};
47
- if (marketplaceId !== undefined) {
48
- localVarQueryParameter['marketplaceId'] = marketplaceId;
49
- }
50
- localVarHeaderParameter['Content-Type'] = 'application/json';
51
- localVarHeaderParameter['Accept'] = 'application/json';
52
- setSearchParams(localVarUrlObj, localVarQueryParameter);
53
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
55
- localVarRequestOptions.data = serializeDataIfNeeded(postContentDocumentRequest, localVarRequestOptions, configuration);
56
- return {
57
- url: toPathString(localVarUrlObj),
58
- options: localVarRequestOptions,
59
- };
60
- },
61
- /**
62
- * 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).
63
- * @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.
64
- * @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).
65
- * @param {Set<GetContentDocumentIncludedDataSetEnum>} includedDataSet The set of A+ Content data types to include in the response.
66
- * @param {*} [options] Override http request option.
67
- * @throws {RequiredError}
68
- */
69
- getContentDocument: async (contentReferenceKey, marketplaceId, includedDataSet, options = {}) => {
70
- // verify required parameter 'contentReferenceKey' is not null or undefined
71
- assertParamExists('getContentDocument', 'contentReferenceKey', contentReferenceKey);
72
- // verify required parameter 'marketplaceId' is not null or undefined
73
- assertParamExists('getContentDocument', 'marketplaceId', marketplaceId);
74
- // verify required parameter 'includedDataSet' is not null or undefined
75
- assertParamExists('getContentDocument', 'includedDataSet', includedDataSet);
76
- const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
77
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
78
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
- let baseOptions;
81
- if (configuration) {
82
- baseOptions = configuration.baseOptions;
83
- }
84
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
85
- const localVarHeaderParameter = {};
86
- const localVarQueryParameter = {};
87
- if (marketplaceId !== undefined) {
88
- localVarQueryParameter['marketplaceId'] = marketplaceId;
89
- }
90
- if (includedDataSet) {
91
- localVarQueryParameter['includedDataSet'] = Array.from(includedDataSet).join(COLLECTION_FORMATS.csv);
92
- }
93
- localVarHeaderParameter['Accept'] = 'application/json';
94
- setSearchParams(localVarUrlObj, localVarQueryParameter);
95
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
97
- return {
98
- url: toPathString(localVarUrlObj),
99
- options: localVarRequestOptions,
100
- };
101
- },
102
- /**
103
- * 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).
104
- * @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.
105
- * @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).
106
- * @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.
107
- * @param {Set<string>} [asinSet] The set of ASINs.
108
- * @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
109
- * @param {*} [options] Override http request option.
110
- * @throws {RequiredError}
111
- */
112
- listContentDocumentAsinRelations: async (contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options = {}) => {
113
- // verify required parameter 'contentReferenceKey' is not null or undefined
114
- assertParamExists('listContentDocumentAsinRelations', 'contentReferenceKey', contentReferenceKey);
115
- // verify required parameter 'marketplaceId' is not null or undefined
116
- assertParamExists('listContentDocumentAsinRelations', 'marketplaceId', marketplaceId);
117
- const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
118
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
119
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
120
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
121
- let baseOptions;
122
- if (configuration) {
123
- baseOptions = configuration.baseOptions;
124
- }
125
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
126
- const localVarHeaderParameter = {};
127
- const localVarQueryParameter = {};
128
- if (marketplaceId !== undefined) {
129
- localVarQueryParameter['marketplaceId'] = marketplaceId;
130
- }
131
- if (includedDataSet) {
132
- localVarQueryParameter['includedDataSet'] = Array.from(includedDataSet).join(COLLECTION_FORMATS.csv);
133
- }
134
- if (asinSet) {
135
- localVarQueryParameter['asinSet'] = Array.from(asinSet).join(COLLECTION_FORMATS.csv);
136
- }
137
- if (pageToken !== undefined) {
138
- localVarQueryParameter['pageToken'] = pageToken;
139
- }
140
- localVarHeaderParameter['Accept'] = 'application/json';
141
- setSearchParams(localVarUrlObj, localVarQueryParameter);
142
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
144
- return {
145
- url: toPathString(localVarUrlObj),
146
- options: localVarRequestOptions,
147
- };
148
- },
149
- /**
150
- * 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).
151
- * @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.
152
- * @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).
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- postContentDocumentApprovalSubmission: async (contentReferenceKey, marketplaceId, options = {}) => {
157
- // verify required parameter 'contentReferenceKey' is not null or undefined
158
- assertParamExists('postContentDocumentApprovalSubmission', 'contentReferenceKey', contentReferenceKey);
159
- // verify required parameter 'marketplaceId' is not null or undefined
160
- assertParamExists('postContentDocumentApprovalSubmission', 'marketplaceId', marketplaceId);
161
- const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/approvalSubmissions`
162
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
163
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
165
- let baseOptions;
166
- if (configuration) {
167
- baseOptions = configuration.baseOptions;
168
- }
169
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
170
- const localVarHeaderParameter = {};
171
- const localVarQueryParameter = {};
172
- if (marketplaceId !== undefined) {
173
- localVarQueryParameter['marketplaceId'] = marketplaceId;
174
- }
175
- localVarHeaderParameter['Accept'] = 'application/json';
176
- setSearchParams(localVarUrlObj, localVarQueryParameter);
177
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
178
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
179
- return {
180
- url: toPathString(localVarUrlObj),
181
- options: localVarRequestOptions,
182
- };
183
- },
184
- /**
185
- * 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).
186
- * @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.
187
- * @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).
188
- * @param {PostContentDocumentAsinRelationsRequest} postContentDocumentAsinRelationsRequest The request details for the content document ASIN relations.
189
- * @param {*} [options] Override http request option.
190
- * @throws {RequiredError}
191
- */
192
- postContentDocumentAsinRelations: async (contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options = {}) => {
193
- // verify required parameter 'contentReferenceKey' is not null or undefined
194
- assertParamExists('postContentDocumentAsinRelations', 'contentReferenceKey', contentReferenceKey);
195
- // verify required parameter 'marketplaceId' is not null or undefined
196
- assertParamExists('postContentDocumentAsinRelations', 'marketplaceId', marketplaceId);
197
- // verify required parameter 'postContentDocumentAsinRelationsRequest' is not null or undefined
198
- assertParamExists('postContentDocumentAsinRelations', 'postContentDocumentAsinRelationsRequest', postContentDocumentAsinRelationsRequest);
199
- const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins`
200
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
201
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
203
- let baseOptions;
204
- if (configuration) {
205
- baseOptions = configuration.baseOptions;
206
- }
207
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
208
- const localVarHeaderParameter = {};
209
- const localVarQueryParameter = {};
210
- if (marketplaceId !== undefined) {
211
- localVarQueryParameter['marketplaceId'] = marketplaceId;
212
- }
213
- localVarHeaderParameter['Content-Type'] = 'application/json';
214
- localVarHeaderParameter['Accept'] = 'application/json';
215
- setSearchParams(localVarUrlObj, localVarQueryParameter);
216
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
217
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
218
- localVarRequestOptions.data = serializeDataIfNeeded(postContentDocumentAsinRelationsRequest, localVarRequestOptions, configuration);
219
- return {
220
- url: toPathString(localVarUrlObj),
221
- options: localVarRequestOptions,
222
- };
223
- },
224
- /**
225
- * 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).
226
- * @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.
227
- * @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).
228
- * @param {*} [options] Override http request option.
229
- * @throws {RequiredError}
230
- */
231
- postContentDocumentSuspendSubmission: async (contentReferenceKey, marketplaceId, options = {}) => {
232
- // verify required parameter 'contentReferenceKey' is not null or undefined
233
- assertParamExists('postContentDocumentSuspendSubmission', 'contentReferenceKey', contentReferenceKey);
234
- // verify required parameter 'marketplaceId' is not null or undefined
235
- assertParamExists('postContentDocumentSuspendSubmission', 'marketplaceId', marketplaceId);
236
- const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/suspendSubmissions`
237
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
238
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
239
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
240
- let baseOptions;
241
- if (configuration) {
242
- baseOptions = configuration.baseOptions;
243
- }
244
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
245
- const localVarHeaderParameter = {};
246
- const localVarQueryParameter = {};
247
- if (marketplaceId !== undefined) {
248
- localVarQueryParameter['marketplaceId'] = marketplaceId;
249
- }
250
- localVarHeaderParameter['Accept'] = 'application/json';
251
- setSearchParams(localVarUrlObj, localVarQueryParameter);
252
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
254
- return {
255
- url: toPathString(localVarUrlObj),
256
- options: localVarRequestOptions,
257
- };
258
- },
259
- /**
260
- * 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).
261
- * @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).
262
- * @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
263
- * @param {*} [options] Override http request option.
264
- * @throws {RequiredError}
265
- */
266
- searchContentDocuments: async (marketplaceId, pageToken, options = {}) => {
267
- // verify required parameter 'marketplaceId' is not null or undefined
268
- assertParamExists('searchContentDocuments', 'marketplaceId', marketplaceId);
269
- const localVarPath = `/aplus/2020-11-01/contentDocuments`;
270
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
271
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
272
- let baseOptions;
273
- if (configuration) {
274
- baseOptions = configuration.baseOptions;
275
- }
276
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
277
- const localVarHeaderParameter = {};
278
- const localVarQueryParameter = {};
279
- if (marketplaceId !== undefined) {
280
- localVarQueryParameter['marketplaceId'] = marketplaceId;
281
- }
282
- if (pageToken !== undefined) {
283
- localVarQueryParameter['pageToken'] = pageToken;
284
- }
285
- localVarHeaderParameter['Accept'] = 'application/json';
286
- setSearchParams(localVarUrlObj, localVarQueryParameter);
287
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
288
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
289
- return {
290
- url: toPathString(localVarUrlObj),
291
- options: localVarRequestOptions,
292
- };
293
- },
294
- /**
295
- * 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).
296
- * @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).
297
- * @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
298
- * @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
299
- * @param {*} [options] Override http request option.
300
- * @throws {RequiredError}
301
- */
302
- searchContentPublishRecords: async (marketplaceId, asin, pageToken, options = {}) => {
303
- // verify required parameter 'marketplaceId' is not null or undefined
304
- assertParamExists('searchContentPublishRecords', 'marketplaceId', marketplaceId);
305
- // verify required parameter 'asin' is not null or undefined
306
- assertParamExists('searchContentPublishRecords', 'asin', asin);
307
- const localVarPath = `/aplus/2020-11-01/contentPublishRecords`;
308
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
309
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
310
- let baseOptions;
311
- if (configuration) {
312
- baseOptions = configuration.baseOptions;
313
- }
314
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
315
- const localVarHeaderParameter = {};
316
- const localVarQueryParameter = {};
317
- if (marketplaceId !== undefined) {
318
- localVarQueryParameter['marketplaceId'] = marketplaceId;
319
- }
320
- if (asin !== undefined) {
321
- localVarQueryParameter['asin'] = asin;
322
- }
323
- if (pageToken !== undefined) {
324
- localVarQueryParameter['pageToken'] = pageToken;
325
- }
326
- localVarHeaderParameter['Accept'] = 'application/json';
327
- setSearchParams(localVarUrlObj, localVarQueryParameter);
328
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
329
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
330
- return {
331
- url: toPathString(localVarUrlObj),
332
- options: localVarRequestOptions,
333
- };
334
- },
335
- /**
336
- * 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).
337
- * @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.
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 {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
340
- * @param {*} [options] Override http request option.
341
- * @throws {RequiredError}
342
- */
343
- updateContentDocument: async (contentReferenceKey, marketplaceId, postContentDocumentRequest, options = {}) => {
344
- // verify required parameter 'contentReferenceKey' is not null or undefined
345
- assertParamExists('updateContentDocument', 'contentReferenceKey', contentReferenceKey);
346
- // verify required parameter 'marketplaceId' is not null or undefined
347
- assertParamExists('updateContentDocument', 'marketplaceId', marketplaceId);
348
- // verify required parameter 'postContentDocumentRequest' is not null or undefined
349
- assertParamExists('updateContentDocument', 'postContentDocumentRequest', postContentDocumentRequest);
350
- const localVarPath = `/aplus/2020-11-01/contentDocuments/{contentReferenceKey}`
351
- .replace(`{${"contentReferenceKey"}}`, encodeURIComponent(String(contentReferenceKey)));
352
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
353
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
354
- let baseOptions;
355
- if (configuration) {
356
- baseOptions = configuration.baseOptions;
357
- }
358
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
359
- const localVarHeaderParameter = {};
360
- const localVarQueryParameter = {};
361
- if (marketplaceId !== undefined) {
362
- localVarQueryParameter['marketplaceId'] = marketplaceId;
363
- }
364
- localVarHeaderParameter['Content-Type'] = 'application/json';
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
- localVarRequestOptions.data = serializeDataIfNeeded(postContentDocumentRequest, localVarRequestOptions, configuration);
370
- return {
371
- url: toPathString(localVarUrlObj),
372
- options: localVarRequestOptions,
373
- };
374
- },
375
- /**
376
- * 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).
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 {Set<string>} [asinSet] The set of ASINs.
380
- * @param {*} [options] Override http request option.
381
- * @throws {RequiredError}
382
- */
383
- validateContentDocumentAsinRelations: async (marketplaceId, postContentDocumentRequest, asinSet, options = {}) => {
384
- // verify required parameter 'marketplaceId' is not null or undefined
385
- assertParamExists('validateContentDocumentAsinRelations', 'marketplaceId', marketplaceId);
386
- // verify required parameter 'postContentDocumentRequest' is not null or undefined
387
- assertParamExists('validateContentDocumentAsinRelations', 'postContentDocumentRequest', postContentDocumentRequest);
388
- const localVarPath = `/aplus/2020-11-01/contentAsinValidations`;
389
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
390
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
391
- let baseOptions;
392
- if (configuration) {
393
- baseOptions = configuration.baseOptions;
394
- }
395
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
396
- const localVarHeaderParameter = {};
397
- const localVarQueryParameter = {};
398
- if (marketplaceId !== undefined) {
399
- localVarQueryParameter['marketplaceId'] = marketplaceId;
400
- }
401
- if (asinSet) {
402
- localVarQueryParameter['asinSet'] = Array.from(asinSet).join(COLLECTION_FORMATS.csv);
403
- }
404
- localVarHeaderParameter['Content-Type'] = 'application/json';
405
- localVarHeaderParameter['Accept'] = 'application/json';
406
- setSearchParams(localVarUrlObj, localVarQueryParameter);
407
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
408
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
409
- localVarRequestOptions.data = serializeDataIfNeeded(postContentDocumentRequest, localVarRequestOptions, configuration);
410
- return {
411
- url: toPathString(localVarUrlObj),
412
- options: localVarRequestOptions,
413
- };
414
- },
415
- };
416
- };
417
- /**
418
- * AplusContentApi - functional programming interface
419
- */
420
- export const AplusContentApiFp = function (configuration) {
421
- const localVarAxiosParamCreator = AplusContentApiAxiosParamCreator(configuration);
422
- return {
423
- /**
424
- * 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).
425
- * @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).
426
- * @param {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
427
- * @param {*} [options] Override http request option.
428
- * @throws {RequiredError}
429
- */
430
- async createContentDocument(marketplaceId, postContentDocumentRequest, options) {
431
- const localVarAxiosArgs = await localVarAxiosParamCreator.createContentDocument(marketplaceId, postContentDocumentRequest, options);
432
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
433
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.createContentDocument']?.[localVarOperationServerIndex]?.url;
434
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
435
- },
436
- /**
437
- * 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).
438
- * @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.
439
- * @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).
440
- * @param {Set<GetContentDocumentIncludedDataSetEnum>} includedDataSet The set of A+ Content data types to include in the response.
441
- * @param {*} [options] Override http request option.
442
- * @throws {RequiredError}
443
- */
444
- async getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options) {
445
- const localVarAxiosArgs = await localVarAxiosParamCreator.getContentDocument(contentReferenceKey, marketplaceId, includedDataSet, options);
446
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
447
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.getContentDocument']?.[localVarOperationServerIndex]?.url;
448
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
449
- },
450
- /**
451
- * 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).
452
- * @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.
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 {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.
455
- * @param {Set<string>} [asinSet] The set of ASINs.
456
- * @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
457
- * @param {*} [options] Override http request option.
458
- * @throws {RequiredError}
459
- */
460
- async listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options) {
461
- const localVarAxiosArgs = await localVarAxiosParamCreator.listContentDocumentAsinRelations(contentReferenceKey, marketplaceId, includedDataSet, asinSet, pageToken, options);
462
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
463
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.listContentDocumentAsinRelations']?.[localVarOperationServerIndex]?.url;
464
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
465
- },
466
- /**
467
- * 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).
468
- * @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.
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 {*} [options] Override http request option.
471
- * @throws {RequiredError}
472
- */
473
- async postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options) {
474
- const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentApprovalSubmission(contentReferenceKey, marketplaceId, options);
475
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
476
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.postContentDocumentApprovalSubmission']?.[localVarOperationServerIndex]?.url;
477
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
478
- },
479
- /**
480
- * 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).
481
- * @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.
482
- * @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).
483
- * @param {PostContentDocumentAsinRelationsRequest} postContentDocumentAsinRelationsRequest The request details for the content document ASIN relations.
484
- * @param {*} [options] Override http request option.
485
- * @throws {RequiredError}
486
- */
487
- async postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options) {
488
- const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentAsinRelations(contentReferenceKey, marketplaceId, postContentDocumentAsinRelationsRequest, options);
489
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
490
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.postContentDocumentAsinRelations']?.[localVarOperationServerIndex]?.url;
491
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
492
- },
493
- /**
494
- * 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).
495
- * @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.
496
- * @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).
497
- * @param {*} [options] Override http request option.
498
- * @throws {RequiredError}
499
- */
500
- async postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options) {
501
- const localVarAxiosArgs = await localVarAxiosParamCreator.postContentDocumentSuspendSubmission(contentReferenceKey, marketplaceId, options);
502
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
503
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.postContentDocumentSuspendSubmission']?.[localVarOperationServerIndex]?.url;
504
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
505
- },
506
- /**
507
- * 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).
508
- * @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).
509
- * @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
510
- * @param {*} [options] Override http request option.
511
- * @throws {RequiredError}
512
- */
513
- async searchContentDocuments(marketplaceId, pageToken, options) {
514
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchContentDocuments(marketplaceId, pageToken, options);
515
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
516
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.searchContentDocuments']?.[localVarOperationServerIndex]?.url;
517
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
518
- },
519
- /**
520
- * 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).
521
- * @param {string} marketplaceId The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
522
- * @param {string} asin The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
523
- * @param {string} [pageToken] A token that you use to fetch a specific page when there are multiple pages of results.
524
- * @param {*} [options] Override http request option.
525
- * @throws {RequiredError}
526
- */
527
- async searchContentPublishRecords(marketplaceId, asin, pageToken, options) {
528
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchContentPublishRecords(marketplaceId, asin, pageToken, options);
529
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
530
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.searchContentPublishRecords']?.[localVarOperationServerIndex]?.url;
531
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
532
- },
533
- /**
534
- * 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).
535
- * @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.
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 {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
538
- * @param {*} [options] Override http request option.
539
- * @throws {RequiredError}
540
- */
541
- async updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options) {
542
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateContentDocument(contentReferenceKey, marketplaceId, postContentDocumentRequest, options);
543
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
544
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.updateContentDocument']?.[localVarOperationServerIndex]?.url;
545
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
546
- },
547
- /**
548
- * 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).
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 {PostContentDocumentRequest} postContentDocumentRequest The content document request details.
551
- * @param {Set<string>} [asinSet] The set of ASINs.
552
- * @param {*} [options] Override http request option.
553
- * @throws {RequiredError}
554
- */
555
- async validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options) {
556
- const localVarAxiosArgs = await localVarAxiosParamCreator.validateContentDocumentAsinRelations(marketplaceId, postContentDocumentRequest, asinSet, options);
557
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
558
- const localVarOperationServerBasePath = operationServerMap['AplusContentApi.validateContentDocumentAsinRelations']?.[localVarOperationServerIndex]?.url;
559
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
560
- },
561
- };
562
- };
563
- /**
564
- * AplusContentApi - factory interface
565
- */
566
- export const AplusContentApiFactory = function (configuration, basePath, axios) {
567
- const localVarFp = AplusContentApiFp(configuration);
568
- return {
569
- /**
570
- * 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).
571
- * @param {AplusContentApiCreateContentDocumentRequest} requestParameters Request parameters.
572
- * @param {*} [options] Override http request option.
573
- * @throws {RequiredError}
574
- */
575
- createContentDocument(requestParameters, options) {
576
- return localVarFp.createContentDocument(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(axios, basePath));
577
- },
578
- /**
579
- * 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).
580
- * @param {AplusContentApiGetContentDocumentRequest} requestParameters Request parameters.
581
- * @param {*} [options] Override http request option.
582
- * @throws {RequiredError}
583
- */
584
- getContentDocument(requestParameters, options) {
585
- return localVarFp.getContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, options).then((request) => request(axios, basePath));
586
- },
587
- /**
588
- * 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).
589
- * @param {AplusContentApiListContentDocumentAsinRelationsRequest} requestParameters Request parameters.
590
- * @param {*} [options] Override http request option.
591
- * @throws {RequiredError}
592
- */
593
- listContentDocumentAsinRelations(requestParameters, options) {
594
- return localVarFp.listContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, requestParameters.asinSet, requestParameters.pageToken, options).then((request) => request(axios, basePath));
595
- },
596
- /**
597
- * 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).
598
- * @param {AplusContentApiPostContentDocumentApprovalSubmissionRequest} requestParameters Request parameters.
599
- * @param {*} [options] Override http request option.
600
- * @throws {RequiredError}
601
- */
602
- postContentDocumentApprovalSubmission(requestParameters, options) {
603
- return localVarFp.postContentDocumentApprovalSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
604
- },
605
- /**
606
- * 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).
607
- * @param {AplusContentApiPostContentDocumentAsinRelationsRequest} requestParameters Request parameters.
608
- * @param {*} [options] Override http request option.
609
- * @throws {RequiredError}
610
- */
611
- postContentDocumentAsinRelations(requestParameters, options) {
612
- return localVarFp.postContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentAsinRelationsRequest, options).then((request) => request(axios, basePath));
613
- },
614
- /**
615
- * 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).
616
- * @param {AplusContentApiPostContentDocumentSuspendSubmissionRequest} requestParameters Request parameters.
617
- * @param {*} [options] Override http request option.
618
- * @throws {RequiredError}
619
- */
620
- postContentDocumentSuspendSubmission(requestParameters, options) {
621
- return localVarFp.postContentDocumentSuspendSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
622
- },
623
- /**
624
- * 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).
625
- * @param {AplusContentApiSearchContentDocumentsRequest} requestParameters Request parameters.
626
- * @param {*} [options] Override http request option.
627
- * @throws {RequiredError}
628
- */
629
- searchContentDocuments(requestParameters, options) {
630
- return localVarFp.searchContentDocuments(requestParameters.marketplaceId, requestParameters.pageToken, options).then((request) => request(axios, basePath));
631
- },
632
- /**
633
- * 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).
634
- * @param {AplusContentApiSearchContentPublishRecordsRequest} requestParameters Request parameters.
635
- * @param {*} [options] Override http request option.
636
- * @throws {RequiredError}
637
- */
638
- searchContentPublishRecords(requestParameters, options) {
639
- return localVarFp.searchContentPublishRecords(requestParameters.marketplaceId, requestParameters.asin, requestParameters.pageToken, options).then((request) => request(axios, basePath));
640
- },
641
- /**
642
- * 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).
643
- * @param {AplusContentApiUpdateContentDocumentRequest} requestParameters Request parameters.
644
- * @param {*} [options] Override http request option.
645
- * @throws {RequiredError}
646
- */
647
- updateContentDocument(requestParameters, options) {
648
- return localVarFp.updateContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(axios, basePath));
649
- },
650
- /**
651
- * 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).
652
- * @param {AplusContentApiValidateContentDocumentAsinRelationsRequest} requestParameters Request parameters.
653
- * @param {*} [options] Override http request option.
654
- * @throws {RequiredError}
655
- */
656
- validateContentDocumentAsinRelations(requestParameters, options) {
657
- return localVarFp.validateContentDocumentAsinRelations(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, requestParameters.asinSet, options).then((request) => request(axios, basePath));
658
- },
659
- };
660
- };
661
- /**
662
- * AplusContentApi - object-oriented interface
663
- */
664
- export class AplusContentApi extends BaseAPI {
665
- /**
666
- * 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).
667
- * @param {AplusContentApiCreateContentDocumentRequest} requestParameters Request parameters.
668
- * @param {*} [options] Override http request option.
669
- * @throws {RequiredError}
670
- */
671
- createContentDocument(requestParameters, options) {
672
- return AplusContentApiFp(this.configuration).createContentDocument(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(this.axios, this.basePath));
673
- }
674
- /**
675
- * 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).
676
- * @param {AplusContentApiGetContentDocumentRequest} requestParameters Request parameters.
677
- * @param {*} [options] Override http request option.
678
- * @throws {RequiredError}
679
- */
680
- getContentDocument(requestParameters, options) {
681
- return AplusContentApiFp(this.configuration).getContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, options).then((request) => request(this.axios, this.basePath));
682
- }
683
- /**
684
- * 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).
685
- * @param {AplusContentApiListContentDocumentAsinRelationsRequest} requestParameters Request parameters.
686
- * @param {*} [options] Override http request option.
687
- * @throws {RequiredError}
688
- */
689
- listContentDocumentAsinRelations(requestParameters, options) {
690
- return AplusContentApiFp(this.configuration).listContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.includedDataSet, requestParameters.asinSet, requestParameters.pageToken, options).then((request) => request(this.axios, this.basePath));
691
- }
692
- /**
693
- * 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).
694
- * @param {AplusContentApiPostContentDocumentApprovalSubmissionRequest} requestParameters Request parameters.
695
- * @param {*} [options] Override http request option.
696
- * @throws {RequiredError}
697
- */
698
- postContentDocumentApprovalSubmission(requestParameters, options) {
699
- return AplusContentApiFp(this.configuration).postContentDocumentApprovalSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
700
- }
701
- /**
702
- * 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).
703
- * @param {AplusContentApiPostContentDocumentAsinRelationsRequest} requestParameters Request parameters.
704
- * @param {*} [options] Override http request option.
705
- * @throws {RequiredError}
706
- */
707
- postContentDocumentAsinRelations(requestParameters, options) {
708
- return AplusContentApiFp(this.configuration).postContentDocumentAsinRelations(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentAsinRelationsRequest, options).then((request) => request(this.axios, this.basePath));
709
- }
710
- /**
711
- * 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).
712
- * @param {AplusContentApiPostContentDocumentSuspendSubmissionRequest} requestParameters Request parameters.
713
- * @param {*} [options] Override http request option.
714
- * @throws {RequiredError}
715
- */
716
- postContentDocumentSuspendSubmission(requestParameters, options) {
717
- return AplusContentApiFp(this.configuration).postContentDocumentSuspendSubmission(requestParameters.contentReferenceKey, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
718
- }
719
- /**
720
- * 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).
721
- * @param {AplusContentApiSearchContentDocumentsRequest} requestParameters Request parameters.
722
- * @param {*} [options] Override http request option.
723
- * @throws {RequiredError}
724
- */
725
- searchContentDocuments(requestParameters, options) {
726
- return AplusContentApiFp(this.configuration).searchContentDocuments(requestParameters.marketplaceId, requestParameters.pageToken, options).then((request) => request(this.axios, this.basePath));
727
- }
728
- /**
729
- * 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).
730
- * @param {AplusContentApiSearchContentPublishRecordsRequest} requestParameters Request parameters.
731
- * @param {*} [options] Override http request option.
732
- * @throws {RequiredError}
733
- */
734
- searchContentPublishRecords(requestParameters, options) {
735
- return AplusContentApiFp(this.configuration).searchContentPublishRecords(requestParameters.marketplaceId, requestParameters.asin, requestParameters.pageToken, options).then((request) => request(this.axios, this.basePath));
736
- }
737
- /**
738
- * 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).
739
- * @param {AplusContentApiUpdateContentDocumentRequest} requestParameters Request parameters.
740
- * @param {*} [options] Override http request option.
741
- * @throws {RequiredError}
742
- */
743
- updateContentDocument(requestParameters, options) {
744
- return AplusContentApiFp(this.configuration).updateContentDocument(requestParameters.contentReferenceKey, requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, options).then((request) => request(this.axios, this.basePath));
745
- }
746
- /**
747
- * 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).
748
- * @param {AplusContentApiValidateContentDocumentAsinRelationsRequest} requestParameters Request parameters.
749
- * @param {*} [options] Override http request option.
750
- * @throws {RequiredError}
751
- */
752
- validateContentDocumentAsinRelations(requestParameters, options) {
753
- return AplusContentApiFp(this.configuration).validateContentDocumentAsinRelations(requestParameters.marketplaceId, requestParameters.postContentDocumentRequest, requestParameters.asinSet, options).then((request) => request(this.axios, this.basePath));
754
- }
755
- }
756
- export const GetContentDocumentIncludedDataSetEnum = {
757
- Contents: 'CONTENTS',
758
- Metadata: 'METADATA'
759
- };
760
- export const ListContentDocumentAsinRelationsIncludedDataSetEnum = {
761
- Metadata: 'METADATA'
762
- };