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