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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +1093 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +2182 -0
  5. package/dist/index.d.ts +2182 -0
  6. package/dist/index.js +1041 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/aplus-content-api.js +0 -772
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/aplus-paginated-response-all-of.js +0 -15
  16. package/dist/cjs/api-model/models/aplus-paginated-response.js +0 -15
  17. package/dist/cjs/api-model/models/aplus-response.js +0 -15
  18. package/dist/cjs/api-model/models/asin-badge.js +0 -25
  19. package/dist/cjs/api-model/models/asin-metadata.js +0 -15
  20. package/dist/cjs/api-model/models/color-type.js +0 -23
  21. package/dist/cjs/api-model/models/content-badge.js +0 -26
  22. package/dist/cjs/api-model/models/content-document.js +0 -15
  23. package/dist/cjs/api-model/models/content-metadata-record.js +0 -15
  24. package/dist/cjs/api-model/models/content-metadata.js +0 -15
  25. package/dist/cjs/api-model/models/content-module-type.js +0 -36
  26. package/dist/cjs/api-model/models/content-module.js +0 -15
  27. package/dist/cjs/api-model/models/content-record.js +0 -15
  28. package/dist/cjs/api-model/models/content-status.js +0 -25
  29. package/dist/cjs/api-model/models/content-type.js +0 -23
  30. package/dist/cjs/api-model/models/decorator-type.js +0 -29
  31. package/dist/cjs/api-model/models/decorator.js +0 -15
  32. package/dist/cjs/api-model/models/error-list.js +0 -15
  33. package/dist/cjs/api-model/models/get-content-document-response-all-of.js +0 -15
  34. package/dist/cjs/api-model/models/get-content-document-response.js +0 -15
  35. package/dist/cjs/api-model/models/image-component.js +0 -15
  36. package/dist/cjs/api-model/models/image-crop-specification.js +0 -15
  37. package/dist/cjs/api-model/models/image-dimensions.js +0 -15
  38. package/dist/cjs/api-model/models/image-offsets.js +0 -15
  39. package/dist/cjs/api-model/models/index.js +0 -85
  40. package/dist/cjs/api-model/models/integer-with-units.js +0 -15
  41. package/dist/cjs/api-model/models/list-content-document-asin-relations-response-all-of.js +0 -15
  42. package/dist/cjs/api-model/models/list-content-document-asin-relations-response.js +0 -15
  43. package/dist/cjs/api-model/models/model-error.js +0 -15
  44. package/dist/cjs/api-model/models/paragraph-component.js +0 -15
  45. package/dist/cjs/api-model/models/plain-text-item.js +0 -15
  46. package/dist/cjs/api-model/models/position-type.js +0 -23
  47. package/dist/cjs/api-model/models/post-content-document-approval-submission-response.js +0 -15
  48. package/dist/cjs/api-model/models/post-content-document-asin-relations-request.js +0 -15
  49. package/dist/cjs/api-model/models/post-content-document-asin-relations-response.js +0 -15
  50. package/dist/cjs/api-model/models/post-content-document-request.js +0 -15
  51. package/dist/cjs/api-model/models/post-content-document-response-all-of.js +0 -15
  52. package/dist/cjs/api-model/models/post-content-document-response.js +0 -15
  53. package/dist/cjs/api-model/models/post-content-document-suspend-submission-response.js +0 -15
  54. package/dist/cjs/api-model/models/publish-record.js +0 -15
  55. package/dist/cjs/api-model/models/search-content-documents-response-all-of.js +0 -15
  56. package/dist/cjs/api-model/models/search-content-documents-response.js +0 -15
  57. package/dist/cjs/api-model/models/search-content-publish-records-response-all-of.js +0 -15
  58. package/dist/cjs/api-model/models/search-content-publish-records-response.js +0 -15
  59. package/dist/cjs/api-model/models/standard-company-logo-module.js +0 -15
  60. package/dist/cjs/api-model/models/standard-comparison-product-block.js +0 -15
  61. package/dist/cjs/api-model/models/standard-comparison-table-module.js +0 -15
  62. package/dist/cjs/api-model/models/standard-four-image-text-module.js +0 -15
  63. package/dist/cjs/api-model/models/standard-four-image-text-quadrant-module.js +0 -15
  64. package/dist/cjs/api-model/models/standard-header-image-text-module.js +0 -15
  65. package/dist/cjs/api-model/models/standard-header-text-list-block.js +0 -15
  66. package/dist/cjs/api-model/models/standard-image-caption-block.js +0 -15
  67. package/dist/cjs/api-model/models/standard-image-sidebar-module.js +0 -15
  68. package/dist/cjs/api-model/models/standard-image-text-block.js +0 -15
  69. package/dist/cjs/api-model/models/standard-image-text-caption-block.js +0 -15
  70. package/dist/cjs/api-model/models/standard-image-text-overlay-module.js +0 -15
  71. package/dist/cjs/api-model/models/standard-multiple-image-text-module.js +0 -15
  72. package/dist/cjs/api-model/models/standard-product-description-module.js +0 -15
  73. package/dist/cjs/api-model/models/standard-single-image-highlights-module.js +0 -15
  74. package/dist/cjs/api-model/models/standard-single-image-specs-detail-module.js +0 -15
  75. package/dist/cjs/api-model/models/standard-single-side-image-module.js +0 -15
  76. package/dist/cjs/api-model/models/standard-tech-specs-module.js +0 -15
  77. package/dist/cjs/api-model/models/standard-text-block.js +0 -15
  78. package/dist/cjs/api-model/models/standard-text-list-block.js +0 -15
  79. package/dist/cjs/api-model/models/standard-text-module.js +0 -15
  80. package/dist/cjs/api-model/models/standard-text-pair-block.js +0 -15
  81. package/dist/cjs/api-model/models/standard-three-image-text-module.js +0 -15
  82. package/dist/cjs/api-model/models/text-component.js +0 -15
  83. package/dist/cjs/api-model/models/text-item.js +0 -15
  84. package/dist/cjs/api-model/models/validate-content-document-asin-relations-response.js +0 -15
  85. package/dist/cjs/client.js +0 -84
  86. package/dist/cjs/index.js +0 -19
  87. package/dist/es/api-model/api/aplus-content-api.js +0 -762
  88. package/dist/es/api-model/api.js +0 -14
  89. package/dist/es/api-model/base.js +0 -44
  90. package/dist/es/api-model/common.js +0 -110
  91. package/dist/es/api-model/configuration.js +0 -94
  92. package/dist/es/api-model/index.js +0 -16
  93. package/dist/es/api-model/models/aplus-paginated-response-all-of.js +0 -14
  94. package/dist/es/api-model/models/aplus-paginated-response.js +0 -14
  95. package/dist/es/api-model/models/aplus-response.js +0 -14
  96. package/dist/es/api-model/models/asin-badge.js +0 -22
  97. package/dist/es/api-model/models/asin-metadata.js +0 -14
  98. package/dist/es/api-model/models/color-type.js +0 -20
  99. package/dist/es/api-model/models/content-badge.js +0 -23
  100. package/dist/es/api-model/models/content-document.js +0 -14
  101. package/dist/es/api-model/models/content-metadata-record.js +0 -14
  102. package/dist/es/api-model/models/content-metadata.js +0 -14
  103. package/dist/es/api-model/models/content-module-type.js +0 -33
  104. package/dist/es/api-model/models/content-module.js +0 -14
  105. package/dist/es/api-model/models/content-record.js +0 -14
  106. package/dist/es/api-model/models/content-status.js +0 -22
  107. package/dist/es/api-model/models/content-type.js +0 -20
  108. package/dist/es/api-model/models/decorator-type.js +0 -26
  109. package/dist/es/api-model/models/decorator.js +0 -14
  110. package/dist/es/api-model/models/error-list.js +0 -14
  111. package/dist/es/api-model/models/get-content-document-response-all-of.js +0 -14
  112. package/dist/es/api-model/models/get-content-document-response.js +0 -14
  113. package/dist/es/api-model/models/image-component.js +0 -14
  114. package/dist/es/api-model/models/image-crop-specification.js +0 -14
  115. package/dist/es/api-model/models/image-dimensions.js +0 -14
  116. package/dist/es/api-model/models/image-offsets.js +0 -14
  117. package/dist/es/api-model/models/index.js +0 -69
  118. package/dist/es/api-model/models/integer-with-units.js +0 -14
  119. package/dist/es/api-model/models/list-content-document-asin-relations-response-all-of.js +0 -14
  120. package/dist/es/api-model/models/list-content-document-asin-relations-response.js +0 -14
  121. package/dist/es/api-model/models/model-error.js +0 -14
  122. package/dist/es/api-model/models/paragraph-component.js +0 -14
  123. package/dist/es/api-model/models/plain-text-item.js +0 -14
  124. package/dist/es/api-model/models/position-type.js +0 -20
  125. package/dist/es/api-model/models/post-content-document-approval-submission-response.js +0 -14
  126. package/dist/es/api-model/models/post-content-document-asin-relations-request.js +0 -14
  127. package/dist/es/api-model/models/post-content-document-asin-relations-response.js +0 -14
  128. package/dist/es/api-model/models/post-content-document-request.js +0 -14
  129. package/dist/es/api-model/models/post-content-document-response-all-of.js +0 -14
  130. package/dist/es/api-model/models/post-content-document-response.js +0 -14
  131. package/dist/es/api-model/models/post-content-document-suspend-submission-response.js +0 -14
  132. package/dist/es/api-model/models/publish-record.js +0 -14
  133. package/dist/es/api-model/models/search-content-documents-response-all-of.js +0 -14
  134. package/dist/es/api-model/models/search-content-documents-response.js +0 -14
  135. package/dist/es/api-model/models/search-content-publish-records-response-all-of.js +0 -14
  136. package/dist/es/api-model/models/search-content-publish-records-response.js +0 -14
  137. package/dist/es/api-model/models/standard-company-logo-module.js +0 -14
  138. package/dist/es/api-model/models/standard-comparison-product-block.js +0 -14
  139. package/dist/es/api-model/models/standard-comparison-table-module.js +0 -14
  140. package/dist/es/api-model/models/standard-four-image-text-module.js +0 -14
  141. package/dist/es/api-model/models/standard-four-image-text-quadrant-module.js +0 -14
  142. package/dist/es/api-model/models/standard-header-image-text-module.js +0 -14
  143. package/dist/es/api-model/models/standard-header-text-list-block.js +0 -14
  144. package/dist/es/api-model/models/standard-image-caption-block.js +0 -14
  145. package/dist/es/api-model/models/standard-image-sidebar-module.js +0 -14
  146. package/dist/es/api-model/models/standard-image-text-block.js +0 -14
  147. package/dist/es/api-model/models/standard-image-text-caption-block.js +0 -14
  148. package/dist/es/api-model/models/standard-image-text-overlay-module.js +0 -14
  149. package/dist/es/api-model/models/standard-multiple-image-text-module.js +0 -14
  150. package/dist/es/api-model/models/standard-product-description-module.js +0 -14
  151. package/dist/es/api-model/models/standard-single-image-highlights-module.js +0 -14
  152. package/dist/es/api-model/models/standard-single-image-specs-detail-module.js +0 -14
  153. package/dist/es/api-model/models/standard-single-side-image-module.js +0 -14
  154. package/dist/es/api-model/models/standard-tech-specs-module.js +0 -14
  155. package/dist/es/api-model/models/standard-text-block.js +0 -14
  156. package/dist/es/api-model/models/standard-text-list-block.js +0 -14
  157. package/dist/es/api-model/models/standard-text-module.js +0 -14
  158. package/dist/es/api-model/models/standard-text-pair-block.js +0 -14
  159. package/dist/es/api-model/models/standard-three-image-text-module.js +0 -14
  160. package/dist/es/api-model/models/text-component.js +0 -14
  161. package/dist/es/api-model/models/text-item.js +0 -14
  162. package/dist/es/api-model/models/validate-content-document-asin-relations-response.js +0 -14
  163. package/dist/es/client.js +0 -80
  164. package/dist/es/index.js +0 -3
  165. package/dist/types/api-model/api/aplus-content-api.d.ts +0 -533
  166. package/dist/types/api-model/api.d.ts +0 -12
  167. package/dist/types/api-model/base.d.ts +0 -42
  168. package/dist/types/api-model/common.d.ts +0 -34
  169. package/dist/types/api-model/configuration.d.ts +0 -98
  170. package/dist/types/api-model/index.d.ts +0 -14
  171. package/dist/types/api-model/models/aplus-paginated-response-all-of.d.ts +0 -17
  172. package/dist/types/api-model/models/aplus-paginated-response.d.ts +0 -18
  173. package/dist/types/api-model/models/aplus-response.d.ts +0 -20
  174. package/dist/types/api-model/models/asin-badge.d.ts +0 -21
  175. package/dist/types/api-model/models/asin-metadata.d.ts +0 -41
  176. package/dist/types/api-model/models/color-type.d.ts +0 -19
  177. package/dist/types/api-model/models/content-badge.d.ts +0 -22
  178. package/dist/types/api-model/models/content-document.d.ts +0 -35
  179. package/dist/types/api-model/models/content-metadata-record.d.ts +0 -22
  180. package/dist/types/api-model/models/content-metadata.d.ts +0 -35
  181. package/dist/types/api-model/models/content-module-type.d.ts +0 -32
  182. package/dist/types/api-model/models/content-module.d.ts +0 -48
  183. package/dist/types/api-model/models/content-record.d.ts +0 -24
  184. package/dist/types/api-model/models/content-status.d.ts +0 -21
  185. package/dist/types/api-model/models/content-type.d.ts +0 -19
  186. package/dist/types/api-model/models/decorator-type.d.ts +0 -25
  187. package/dist/types/api-model/models/decorator.d.ts +0 -30
  188. package/dist/types/api-model/models/error-list.d.ts +0 -20
  189. package/dist/types/api-model/models/get-content-document-response-all-of.d.ts +0 -15
  190. package/dist/types/api-model/models/get-content-document-response.d.ts +0 -17
  191. package/dist/types/api-model/models/image-component.d.ts +0 -26
  192. package/dist/types/api-model/models/image-crop-specification.d.ts +0 -20
  193. package/dist/types/api-model/models/image-dimensions.d.ts +0 -19
  194. package/dist/types/api-model/models/image-offsets.d.ts +0 -19
  195. package/dist/types/api-model/models/index.d.ts +0 -69
  196. package/dist/types/api-model/models/integer-with-units.d.ts +0 -24
  197. package/dist/types/api-model/models/list-content-document-asin-relations-response-all-of.d.ts +0 -18
  198. package/dist/types/api-model/models/list-content-document-asin-relations-response.d.ts +0 -17
  199. package/dist/types/api-model/models/model-error.d.ts +0 -28
  200. package/dist/types/api-model/models/paragraph-component.d.ts +0 -18
  201. package/dist/types/api-model/models/plain-text-item.d.ts +0 -24
  202. package/dist/types/api-model/models/position-type.d.ts +0 -19
  203. package/dist/types/api-model/models/post-content-document-approval-submission-response.d.ts +0 -16
  204. package/dist/types/api-model/models/post-content-document-asin-relations-request.d.ts +0 -17
  205. package/dist/types/api-model/models/post-content-document-asin-relations-response.d.ts +0 -16
  206. package/dist/types/api-model/models/post-content-document-request.d.ts +0 -15
  207. package/dist/types/api-model/models/post-content-document-response-all-of.d.ts +0 -17
  208. package/dist/types/api-model/models/post-content-document-response.d.ts +0 -17
  209. package/dist/types/api-model/models/post-content-document-suspend-submission-response.d.ts +0 -16
  210. package/dist/types/api-model/models/publish-record.d.ts +0 -38
  211. package/dist/types/api-model/models/search-content-documents-response-all-of.d.ts +0 -18
  212. package/dist/types/api-model/models/search-content-documents-response.d.ts +0 -17
  213. package/dist/types/api-model/models/search-content-publish-records-response-all-of.d.ts +0 -18
  214. package/dist/types/api-model/models/search-content-publish-records-response.d.ts +0 -17
  215. package/dist/types/api-model/models/standard-company-logo-module.d.ts +0 -18
  216. package/dist/types/api-model/models/standard-comparison-product-block.d.ts +0 -39
  217. package/dist/types/api-model/models/standard-comparison-table-module.d.ts +0 -20
  218. package/dist/types/api-model/models/standard-four-image-text-module.d.ts +0 -23
  219. package/dist/types/api-model/models/standard-four-image-text-quadrant-module.d.ts +0 -21
  220. package/dist/types/api-model/models/standard-header-image-text-module.d.ts +0 -20
  221. package/dist/types/api-model/models/standard-header-text-list-block.d.ts +0 -20
  222. package/dist/types/api-model/models/standard-image-caption-block.d.ts +0 -20
  223. package/dist/types/api-model/models/standard-image-sidebar-module.d.ts +0 -27
  224. package/dist/types/api-model/models/standard-image-text-block.d.ts +0 -22
  225. package/dist/types/api-model/models/standard-image-text-caption-block.d.ts +0 -20
  226. package/dist/types/api-model/models/standard-image-text-overlay-module.d.ts +0 -20
  227. package/dist/types/api-model/models/standard-multiple-image-text-module.d.ts +0 -18
  228. package/dist/types/api-model/models/standard-product-description-module.d.ts +0 -18
  229. package/dist/types/api-model/models/standard-single-image-highlights-module.d.ts +0 -26
  230. package/dist/types/api-model/models/standard-single-image-specs-detail-module.d.ts +0 -28
  231. package/dist/types/api-model/models/standard-single-side-image-module.d.ts +0 -20
  232. package/dist/types/api-model/models/standard-tech-specs-module.d.ts +0 -27
  233. package/dist/types/api-model/models/standard-text-block.d.ts +0 -20
  234. package/dist/types/api-model/models/standard-text-list-block.d.ts +0 -18
  235. package/dist/types/api-model/models/standard-text-module.d.ts +0 -20
  236. package/dist/types/api-model/models/standard-text-pair-block.d.ts +0 -19
  237. package/dist/types/api-model/models/standard-three-image-text-module.d.ts +0 -22
  238. package/dist/types/api-model/models/text-component.d.ts +0 -25
  239. package/dist/types/api-model/models/text-item.d.ts +0 -22
  240. package/dist/types/api-model/models/validate-content-document-asin-relations-response.d.ts +0 -17
  241. package/dist/types/client.d.ts +0 -6
  242. package/dist/types/index.d.ts +0 -3
@@ -1,30 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api/aplus-content-api"), exports);
@@ -1,52 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
- const axios_1 = __importDefault(require("axios"));
21
- exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
- exports.COLLECTION_FORMATS = {
23
- csv: ",",
24
- ssv: " ",
25
- tsv: "\t",
26
- pipes: "|",
27
- };
28
- class BaseAPI {
29
- basePath;
30
- axios;
31
- configuration;
32
- constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
33
- this.basePath = basePath;
34
- this.axios = axios;
35
- if (configuration) {
36
- this.configuration = configuration;
37
- this.basePath = configuration.basePath ?? basePath;
38
- }
39
- }
40
- }
41
- exports.BaseAPI = BaseAPI;
42
- ;
43
- class RequiredError extends Error {
44
- field;
45
- constructor(field, msg) {
46
- super(msg);
47
- this.field = field;
48
- this.name = "RequiredError";
49
- }
50
- }
51
- exports.RequiredError = RequiredError;
52
- exports.operationServerMap = {};
@@ -1,123 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
17
- const base_1 = require("./base");
18
- exports.DUMMY_BASE_URL = 'https://example.com';
19
- /**
20
- *
21
- * @throws {RequiredError}
22
- */
23
- const assertParamExists = function (functionName, paramName, paramValue) {
24
- if (paramValue === null || paramValue === undefined) {
25
- throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
26
- }
27
- };
28
- exports.assertParamExists = assertParamExists;
29
- const setApiKeyToObject = async function (object, keyParamName, configuration) {
30
- if (configuration && configuration.apiKey) {
31
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
32
- ? await configuration.apiKey(keyParamName)
33
- : await configuration.apiKey;
34
- object[keyParamName] = localVarApiKeyValue;
35
- }
36
- };
37
- exports.setApiKeyToObject = setApiKeyToObject;
38
- const setBasicAuthToObject = function (object, configuration) {
39
- if (configuration && (configuration.username || configuration.password)) {
40
- object["auth"] = { username: configuration.username, password: configuration.password };
41
- }
42
- };
43
- exports.setBasicAuthToObject = setBasicAuthToObject;
44
- const setBearerAuthToObject = async function (object, configuration) {
45
- if (configuration && configuration.accessToken) {
46
- const accessToken = typeof configuration.accessToken === 'function'
47
- ? await configuration.accessToken()
48
- : await configuration.accessToken;
49
- object["Authorization"] = "Bearer " + accessToken;
50
- }
51
- };
52
- exports.setBearerAuthToObject = setBearerAuthToObject;
53
- const setOAuthToObject = async function (object, name, scopes, configuration) {
54
- if (configuration && configuration.accessToken) {
55
- const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
56
- ? await configuration.accessToken(name, scopes)
57
- : await configuration.accessToken;
58
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
59
- }
60
- };
61
- exports.setOAuthToObject = setOAuthToObject;
62
- function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
63
- if (parameter == null)
64
- return;
65
- if (typeof parameter === "object") {
66
- if (Array.isArray(parameter) || parameter instanceof Set) {
67
- parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
68
- }
69
- else {
70
- Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
71
- }
72
- }
73
- else {
74
- if (urlSearchParams.has(key)) {
75
- urlSearchParams.append(key, parameter);
76
- }
77
- else {
78
- urlSearchParams.set(key, parameter);
79
- }
80
- }
81
- }
82
- const setSearchParams = function (url, ...objects) {
83
- const searchParams = new URLSearchParams(url.search);
84
- setFlattenedQueryParams(searchParams, objects);
85
- url.search = searchParams.toString();
86
- };
87
- exports.setSearchParams = setSearchParams;
88
- /**
89
- * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
90
- * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
91
- * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
92
- */
93
- // @ts-ignore
94
- const replaceWithSerializableTypeIfNeeded = function (key, value) {
95
- if (value instanceof Set) {
96
- return Array.from(value);
97
- }
98
- else {
99
- return value;
100
- }
101
- };
102
- exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
103
- const serializeDataIfNeeded = function (value, requestOptions, configuration) {
104
- const nonString = typeof value !== 'string';
105
- const needsSerialization = nonString && configuration && configuration.isJsonMime
106
- ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
107
- : nonString;
108
- return needsSerialization
109
- ? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
110
- : (value || "");
111
- };
112
- exports.serializeDataIfNeeded = serializeDataIfNeeded;
113
- const toPathString = function (url) {
114
- return url.pathname + url.search + url.hash;
115
- };
116
- exports.toPathString = toPathString;
117
- const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
118
- return (axios = globalAxios, basePath = BASE_PATH) => {
119
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
120
- return axios.request(axiosRequestArgs);
121
- };
122
- };
123
- exports.createRequestFunction = createRequestFunction;
@@ -1,98 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /**
4
- * Selling Partner API for A+ Content Management
5
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
6
- *
7
- * The version of the OpenAPI document: 2020-11-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.Configuration = void 0;
16
- class Configuration {
17
- /**
18
- * parameter for apiKey security
19
- * @param name security name
20
- */
21
- apiKey;
22
- /**
23
- * parameter for basic security
24
- */
25
- username;
26
- /**
27
- * parameter for basic security
28
- */
29
- password;
30
- /**
31
- * parameter for oauth2 security
32
- * @param name security name
33
- * @param scopes oauth2 scope
34
- */
35
- accessToken;
36
- /**
37
- * parameter for aws4 signature security
38
- * @param {Object} AWS4Signature - AWS4 Signature security
39
- * @param {string} options.region - aws region
40
- * @param {string} options.service - name of the service.
41
- * @param {string} credentials.accessKeyId - aws access key id
42
- * @param {string} credentials.secretAccessKey - aws access key
43
- * @param {string} credentials.sessionToken - aws session token
44
- * @memberof Configuration
45
- */
46
- awsv4;
47
- /**
48
- * override base path
49
- */
50
- basePath;
51
- /**
52
- * override server index
53
- */
54
- serverIndex;
55
- /**
56
- * base options for axios calls
57
- */
58
- baseOptions;
59
- /**
60
- * The FormData constructor that will be used to create multipart form data
61
- * requests. You can inject this here so that execution environments that
62
- * do not support the FormData class can still run the generated client.
63
- *
64
- * @type {new () => FormData}
65
- */
66
- formDataCtor;
67
- constructor(param = {}) {
68
- this.apiKey = param.apiKey;
69
- this.username = param.username;
70
- this.password = param.password;
71
- this.accessToken = param.accessToken;
72
- this.awsv4 = param.awsv4;
73
- this.basePath = param.basePath;
74
- this.serverIndex = param.serverIndex;
75
- this.baseOptions = {
76
- ...param.baseOptions,
77
- headers: {
78
- ...param.baseOptions?.headers,
79
- },
80
- };
81
- this.formDataCtor = param.formDataCtor;
82
- }
83
- /**
84
- * Check if the given MIME is a JSON MIME.
85
- * JSON MIME examples:
86
- * application/json
87
- * application/json; charset=UTF8
88
- * APPLICATION/JSON
89
- * application/vnd.company+json
90
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
91
- * @return True if the given MIME is JSON, false otherwise.
92
- */
93
- isJsonMime(mime) {
94
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
96
- }
97
- }
98
- exports.Configuration = Configuration;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api"), exports);
31
- __exportStar(require("./configuration"), exports);
32
- __exportStar(require("./models"), exports);
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AsinBadge = void 0;
17
- /**
18
- * A flag that provides additional information about an ASIN. This is contextual and can change depending on the request that generated it.
19
- */
20
- exports.AsinBadge = {
21
- BrandNotEligible: 'BRAND_NOT_ELIGIBLE',
22
- CatalogNotFound: 'CATALOG_NOT_FOUND',
23
- ContentNotPublished: 'CONTENT_NOT_PUBLISHED',
24
- ContentPublished: 'CONTENT_PUBLISHED'
25
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ColorType = void 0;
17
- /**
18
- * The relative color scheme of your content.
19
- */
20
- exports.ColorType = {
21
- Dark: 'DARK',
22
- Light: 'LIGHT'
23
- };
@@ -1,26 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ContentBadge = void 0;
17
- /**
18
- * A flag that provides additional information about an A+ Content document.
19
- */
20
- exports.ContentBadge = {
21
- Bulk: 'BULK',
22
- Generated: 'GENERATED',
23
- Launchpad: 'LAUNCHPAD',
24
- Premium: 'PREMIUM',
25
- Standard: 'STANDARD'
26
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ContentModuleType = void 0;
17
- /**
18
- * The type of A+ Content module.
19
- */
20
- exports.ContentModuleType = {
21
- StandardCompanyLogo: 'STANDARD_COMPANY_LOGO',
22
- StandardComparisonTable: 'STANDARD_COMPARISON_TABLE',
23
- StandardFourImageText: 'STANDARD_FOUR_IMAGE_TEXT',
24
- StandardFourImageTextQuadrant: 'STANDARD_FOUR_IMAGE_TEXT_QUADRANT',
25
- StandardHeaderImageText: 'STANDARD_HEADER_IMAGE_TEXT',
26
- StandardImageSidebar: 'STANDARD_IMAGE_SIDEBAR',
27
- StandardImageTextOverlay: 'STANDARD_IMAGE_TEXT_OVERLAY',
28
- StandardMultipleImageText: 'STANDARD_MULTIPLE_IMAGE_TEXT',
29
- StandardProductDescription: 'STANDARD_PRODUCT_DESCRIPTION',
30
- StandardSingleImageHighlights: 'STANDARD_SINGLE_IMAGE_HIGHLIGHTS',
31
- StandardSingleImageSpecsDetail: 'STANDARD_SINGLE_IMAGE_SPECS_DETAIL',
32
- StandardSingleSideImage: 'STANDARD_SINGLE_SIDE_IMAGE',
33
- StandardTechSpecs: 'STANDARD_TECH_SPECS',
34
- StandardText: 'STANDARD_TEXT',
35
- StandardThreeImageText: 'STANDARD_THREE_IMAGE_TEXT'
36
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ContentStatus = void 0;
17
- /**
18
- * The submission status of the content document.
19
- */
20
- exports.ContentStatus = {
21
- Approved: 'APPROVED',
22
- Draft: 'DRAFT',
23
- Rejected: 'REJECTED',
24
- Submitted: 'SUBMITTED'
25
- };
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for A+ Content Management
6
- * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
7
- *
8
- * The version of the OpenAPI document: 2020-11-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ContentType = void 0;
17
- /**
18
- * The A+ Content document type.
19
- */
20
- exports.ContentType = {
21
- Ebc: 'EBC',
22
- Emc: 'EMC'
23
- };