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