amazon-creators-api 1.2.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 (195) hide show
  1. package/LICENSE.txt +202 -0
  2. package/README.md +102 -0
  3. package/dist/ApiClient.d.ts +273 -0
  4. package/dist/ApiClient.js +895 -0
  5. package/dist/api/DefaultApi.d.ts +124 -0
  6. package/dist/api/DefaultApi.js +409 -0
  7. package/dist/api/TypedDefaultApi.d.ts +132 -0
  8. package/dist/api/TypedDefaultApi.js +223 -0
  9. package/dist/auth/OAuth2Config.d.ts +78 -0
  10. package/dist/auth/OAuth2Config.js +152 -0
  11. package/dist/auth/OAuth2TokenManager.d.ts +38 -0
  12. package/dist/auth/OAuth2TokenManager.js +177 -0
  13. package/dist/index.d.ts +94 -0
  14. package/dist/index.js +657 -0
  15. package/dist/model/AccessDeniedExceptionResponseContent.d.ts +42 -0
  16. package/dist/model/AccessDeniedExceptionResponseContent.js +139 -0
  17. package/dist/model/AccessDeniedReason.d.ts +32 -0
  18. package/dist/model/AccessDeniedReason.js +65 -0
  19. package/dist/model/Availability.d.ts +27 -0
  20. package/dist/model/Availability.js +60 -0
  21. package/dist/model/BrowseNode.d.ts +35 -0
  22. package/dist/model/BrowseNode.js +184 -0
  23. package/dist/model/BrowseNodeAncestor.d.ts +32 -0
  24. package/dist/model/BrowseNodeAncestor.js +129 -0
  25. package/dist/model/BrowseNodeChild.d.ts +31 -0
  26. package/dist/model/BrowseNodeChild.js +116 -0
  27. package/dist/model/BrowseNodeInfo.d.ts +30 -0
  28. package/dist/model/BrowseNodeInfo.js +128 -0
  29. package/dist/model/BrowseNodesResult.d.ts +29 -0
  30. package/dist/model/BrowseNodesResult.js +114 -0
  31. package/dist/model/ByLineInfo.d.ts +31 -0
  32. package/dist/model/ByLineInfo.js +141 -0
  33. package/dist/model/Classifications.d.ts +30 -0
  34. package/dist/model/Classifications.js +107 -0
  35. package/dist/model/Condition.d.ts +27 -0
  36. package/dist/model/Condition.js +60 -0
  37. package/dist/model/ContentInfo.d.ts +32 -0
  38. package/dist/model/ContentInfo.js +135 -0
  39. package/dist/model/ContentRating.d.ts +29 -0
  40. package/dist/model/ContentRating.js +94 -0
  41. package/dist/model/Contributor.d.ts +32 -0
  42. package/dist/model/Contributor.js +128 -0
  43. package/dist/model/CustomerReviews.d.ts +30 -0
  44. package/dist/model/CustomerReviews.js +102 -0
  45. package/dist/model/DealDetails.d.ts +34 -0
  46. package/dist/model/DealDetails.js +144 -0
  47. package/dist/model/DeliveryFlag.d.ts +37 -0
  48. package/dist/model/DeliveryFlag.js +70 -0
  49. package/dist/model/DimensionBasedAttribute.d.ts +32 -0
  50. package/dist/model/DimensionBasedAttribute.js +133 -0
  51. package/dist/model/ErrorData.d.ts +41 -0
  52. package/dist/model/ErrorData.js +131 -0
  53. package/dist/model/ExternalIds.d.ts +31 -0
  54. package/dist/model/ExternalIds.js +120 -0
  55. package/dist/model/Feed.d.ts +44 -0
  56. package/dist/model/Feed.js +152 -0
  57. package/dist/model/GetBrowseNodesRequestContent.d.ts +43 -0
  58. package/dist/model/GetBrowseNodesRequestContent.js +158 -0
  59. package/dist/model/GetBrowseNodesResource.d.ts +27 -0
  60. package/dist/model/GetBrowseNodesResource.js +60 -0
  61. package/dist/model/GetBrowseNodesResponseContent.d.ts +30 -0
  62. package/dist/model/GetBrowseNodesResponseContent.js +128 -0
  63. package/dist/model/GetFeedRequestContent.d.ts +38 -0
  64. package/dist/model/GetFeedRequestContent.js +114 -0
  65. package/dist/model/GetFeedResponseContent.d.ts +38 -0
  66. package/dist/model/GetFeedResponseContent.js +114 -0
  67. package/dist/model/GetItemsRequestContent.d.ts +45 -0
  68. package/dist/model/GetItemsRequestContent.js +188 -0
  69. package/dist/model/GetItemsResource.d.ts +187 -0
  70. package/dist/model/GetItemsResource.js +220 -0
  71. package/dist/model/GetItemsResponseContent.d.ts +30 -0
  72. package/dist/model/GetItemsResponseContent.js +128 -0
  73. package/dist/model/GetReportRequestContent.d.ts +38 -0
  74. package/dist/model/GetReportRequestContent.js +114 -0
  75. package/dist/model/GetReportResponseContent.d.ts +38 -0
  76. package/dist/model/GetReportResponseContent.js +114 -0
  77. package/dist/model/GetVariationsRequestContent.d.ts +48 -0
  78. package/dist/model/GetVariationsRequestContent.js +209 -0
  79. package/dist/model/GetVariationsResource.d.ts +202 -0
  80. package/dist/model/GetVariationsResource.js +235 -0
  81. package/dist/model/GetVariationsResponseContent.d.ts +30 -0
  82. package/dist/model/GetVariationsResponseContent.js +128 -0
  83. package/dist/model/ImageSize.d.ts +31 -0
  84. package/dist/model/ImageSize.js +108 -0
  85. package/dist/model/ImageType.d.ts +32 -0
  86. package/dist/model/ImageType.js +133 -0
  87. package/dist/model/Images.d.ts +30 -0
  88. package/dist/model/Images.js +127 -0
  89. package/dist/model/InternalServerExceptionResponseContent.d.ts +40 -0
  90. package/dist/model/InternalServerExceptionResponseContent.js +128 -0
  91. package/dist/model/Item.d.ts +38 -0
  92. package/dist/model/Item.js +228 -0
  93. package/dist/model/ItemInfo.d.ts +39 -0
  94. package/dist/model/ItemInfo.js +234 -0
  95. package/dist/model/ItemsResult.d.ts +29 -0
  96. package/dist/model/ItemsResult.js +114 -0
  97. package/dist/model/LanguageType.d.ts +30 -0
  98. package/dist/model/LanguageType.js +104 -0
  99. package/dist/model/Languages.d.ts +31 -0
  100. package/dist/model/Languages.js +138 -0
  101. package/dist/model/ListFeedsResponseContent.d.ts +29 -0
  102. package/dist/model/ListFeedsResponseContent.js +112 -0
  103. package/dist/model/ListReportsResponseContent.d.ts +38 -0
  104. package/dist/model/ListReportsResponseContent.js +132 -0
  105. package/dist/model/ManufactureInfo.d.ts +31 -0
  106. package/dist/model/ManufactureInfo.js +120 -0
  107. package/dist/model/Money.d.ts +31 -0
  108. package/dist/model/Money.js +112 -0
  109. package/dist/model/MultiValuedAttribute.d.ts +31 -0
  110. package/dist/model/MultiValuedAttribute.js +117 -0
  111. package/dist/model/OfferAvailabilityV2.d.ts +32 -0
  112. package/dist/model/OfferAvailabilityV2.js +120 -0
  113. package/dist/model/OfferConditionV2.d.ts +31 -0
  114. package/dist/model/OfferConditionV2.js +116 -0
  115. package/dist/model/OfferListingV2.d.ts +37 -0
  116. package/dist/model/OfferListingV2.js +189 -0
  117. package/dist/model/OfferLoyaltyPointsV2.d.ts +29 -0
  118. package/dist/model/OfferLoyaltyPointsV2.js +88 -0
  119. package/dist/model/OfferMerchantInfoV2.d.ts +30 -0
  120. package/dist/model/OfferMerchantInfoV2.js +104 -0
  121. package/dist/model/OfferPriceV2.d.ts +32 -0
  122. package/dist/model/OfferPriceV2.js +135 -0
  123. package/dist/model/OfferSavingBasis.d.ts +31 -0
  124. package/dist/model/OfferSavingBasis.js +115 -0
  125. package/dist/model/OfferSavings.d.ts +30 -0
  126. package/dist/model/OfferSavings.js +102 -0
  127. package/dist/model/OfferType.d.ts +32 -0
  128. package/dist/model/OfferType.js +65 -0
  129. package/dist/model/OffersV2.d.ts +29 -0
  130. package/dist/model/OffersV2.js +114 -0
  131. package/dist/model/ProductInfo.d.ts +34 -0
  132. package/dist/model/ProductInfo.js +162 -0
  133. package/dist/model/Rating.d.ts +29 -0
  134. package/dist/model/Rating.js +88 -0
  135. package/dist/model/Refinement.d.ts +31 -0
  136. package/dist/model/Refinement.js +138 -0
  137. package/dist/model/RefinementBin.d.ts +30 -0
  138. package/dist/model/RefinementBin.js +104 -0
  139. package/dist/model/ReportMetadata.d.ts +44 -0
  140. package/dist/model/ReportMetadata.js +152 -0
  141. package/dist/model/ResourceNotFoundExceptionResponseContent.d.ts +44 -0
  142. package/dist/model/ResourceNotFoundExceptionResponseContent.js +156 -0
  143. package/dist/model/SavingBasisType.d.ts +37 -0
  144. package/dist/model/SavingBasisType.js +70 -0
  145. package/dist/model/SearchItemsRequestContent.d.ts +51 -0
  146. package/dist/model/SearchItemsRequestContent.js +343 -0
  147. package/dist/model/SearchItemsResource.d.ts +192 -0
  148. package/dist/model/SearchItemsResource.js +225 -0
  149. package/dist/model/SearchItemsResponseContent.d.ts +30 -0
  150. package/dist/model/SearchItemsResponseContent.js +128 -0
  151. package/dist/model/SearchRefinements.d.ts +31 -0
  152. package/dist/model/SearchRefinements.js +140 -0
  153. package/dist/model/SearchResult.d.ts +32 -0
  154. package/dist/model/SearchResult.js +148 -0
  155. package/dist/model/SingleBooleanValuedAttribute.d.ts +31 -0
  156. package/dist/model/SingleBooleanValuedAttribute.js +112 -0
  157. package/dist/model/SingleIntegerValuedAttribute.d.ts +31 -0
  158. package/dist/model/SingleIntegerValuedAttribute.js +112 -0
  159. package/dist/model/SingleStringValuedAttribute.d.ts +31 -0
  160. package/dist/model/SingleStringValuedAttribute.js +116 -0
  161. package/dist/model/SortBy.d.ts +47 -0
  162. package/dist/model/SortBy.js +80 -0
  163. package/dist/model/TechnicalInfo.d.ts +30 -0
  164. package/dist/model/TechnicalInfo.js +108 -0
  165. package/dist/model/ThrottleExceptionResponseContent.d.ts +42 -0
  166. package/dist/model/ThrottleExceptionResponseContent.js +152 -0
  167. package/dist/model/TradeInInfo.d.ts +30 -0
  168. package/dist/model/TradeInInfo.js +102 -0
  169. package/dist/model/TradeInPrice.d.ts +31 -0
  170. package/dist/model/TradeInPrice.js +112 -0
  171. package/dist/model/UnauthorizedExceptionReason.d.ts +62 -0
  172. package/dist/model/UnauthorizedExceptionReason.js +95 -0
  173. package/dist/model/UnauthorizedExceptionResponseContent.d.ts +41 -0
  174. package/dist/model/UnauthorizedExceptionResponseContent.js +137 -0
  175. package/dist/model/UnitBasedAttribute.d.ts +32 -0
  176. package/dist/model/UnitBasedAttribute.js +124 -0
  177. package/dist/model/ValidationExceptionField.d.ts +41 -0
  178. package/dist/model/ValidationExceptionField.js +129 -0
  179. package/dist/model/ValidationExceptionReason.d.ts +47 -0
  180. package/dist/model/ValidationExceptionReason.js +80 -0
  181. package/dist/model/ValidationExceptionResponseContent.d.ts +43 -0
  182. package/dist/model/ValidationExceptionResponseContent.js +170 -0
  183. package/dist/model/VariationAttribute.d.ts +30 -0
  184. package/dist/model/VariationAttribute.js +104 -0
  185. package/dist/model/VariationDimension.d.ts +32 -0
  186. package/dist/model/VariationDimension.js +132 -0
  187. package/dist/model/VariationSummary.d.ts +32 -0
  188. package/dist/model/VariationSummary.js +146 -0
  189. package/dist/model/VariationSummaryPrice.d.ts +30 -0
  190. package/dist/model/VariationSummaryPrice.js +107 -0
  191. package/dist/model/VariationsResult.d.ts +30 -0
  192. package/dist/model/VariationsResult.js +128 -0
  193. package/dist/model/WebsiteSalesRank.d.ts +32 -0
  194. package/dist/model/WebsiteSalesRank.js +124 -0
  195. package/package.json +67 -0
@@ -0,0 +1,32 @@
1
+ export default Contributor;
2
+ /**
3
+ * The Contributor model module.
4
+ * @module model/Contributor
5
+ * @version 1.0.0
6
+ */
7
+ declare class Contributor {
8
+ /**
9
+ * Initializes the fields of this object.
10
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
11
+ * Only for internal use.
12
+ */
13
+ static initialize(obj: any): void;
14
+ /**
15
+ * Constructs a <code>Contributor</code> from a plain JavaScript object, optionally creating a new instance.
16
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
17
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
18
+ * @param {module:model/Contributor} obj Optional instance to populate.
19
+ * @return {module:model/Contributor} The populated <code>Contributor</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): Contributor;
22
+ /**
23
+ * Validates the JSON data with respect to <code>Contributor</code>.
24
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
25
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Contributor</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ locale: string;
29
+ name: string;
30
+ role: string;
31
+ roleType: string;
32
+ }
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
+ * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
16
+ *
17
+ * Licensed under the Apache License, Version 2.0 (the "License").
18
+ * You may not use this file except in compliance with the License.
19
+ * A copy of the License is located at
20
+ *
21
+ * http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * or in the "license" file accompanying this file. This file is distributed
24
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
25
+ * express or implied. See the License for the specific language governing
26
+ * permissions and limitations under the License.
27
+ */
28
+ /**
29
+ * The Contributor model module.
30
+ * @module model/Contributor
31
+ * @version 1.0.0
32
+ */
33
+ var Contributor = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>Contributor</code>.
36
+ * Container for contributor associated with the product.
37
+ * @alias module:model/Contributor
38
+ */
39
+ function Contributor() {
40
+ _classCallCheck(this, Contributor);
41
+ Contributor.initialize(this);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ return _createClass(Contributor, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj) {}
52
+
53
+ /**
54
+ * Constructs a <code>Contributor</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/Contributor} obj Optional instance to populate.
58
+ * @return {module:model/Contributor} The populated <code>Contributor</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new Contributor();
65
+ if (data.hasOwnProperty('locale')) {
66
+ obj['locale'] = _ApiClient["default"].convertToType(data['locale'], 'String');
67
+ }
68
+ if (data.hasOwnProperty('name')) {
69
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('role')) {
72
+ obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('roleType')) {
75
+ obj['roleType'] = _ApiClient["default"].convertToType(data['roleType'], 'String');
76
+ }
77
+ }
78
+ return obj;
79
+ }
80
+
81
+ /**
82
+ * Validates the JSON data with respect to <code>Contributor</code>.
83
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
84
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Contributor</code>.
85
+ */
86
+ }, {
87
+ key: "validateJSON",
88
+ value: function validateJSON(data) {
89
+ // ensure the json data is a string
90
+ if (data['locale'] && !(typeof data['locale'] === 'string' || data['locale'] instanceof String)) {
91
+ throw new Error("Expected the field `locale` to be a primitive type in the JSON string but got " + data['locale']);
92
+ }
93
+ // ensure the json data is a string
94
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
95
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
96
+ }
97
+ // ensure the json data is a string
98
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
99
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
100
+ }
101
+ // ensure the json data is a string
102
+ if (data['roleType'] && !(typeof data['roleType'] === 'string' || data['roleType'] instanceof String)) {
103
+ throw new Error("Expected the field `roleType` to be a primitive type in the JSON string but got " + data['roleType']);
104
+ }
105
+ return true;
106
+ }
107
+ }]);
108
+ }();
109
+ /**
110
+ * @member {String} locale
111
+ */
112
+ Contributor.prototype['locale'] = undefined;
113
+
114
+ /**
115
+ * @member {String} name
116
+ */
117
+ Contributor.prototype['name'] = undefined;
118
+
119
+ /**
120
+ * @member {String} role
121
+ */
122
+ Contributor.prototype['role'] = undefined;
123
+
124
+ /**
125
+ * @member {String} roleType
126
+ */
127
+ Contributor.prototype['roleType'] = undefined;
128
+ var _default = exports["default"] = Contributor;
@@ -0,0 +1,30 @@
1
+ export default CustomerReviews;
2
+ /**
3
+ * The CustomerReviews model module.
4
+ * @module model/CustomerReviews
5
+ * @version 1.0.0
6
+ */
7
+ declare class CustomerReviews {
8
+ /**
9
+ * Initializes the fields of this object.
10
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
11
+ * Only for internal use.
12
+ */
13
+ static initialize(obj: any): void;
14
+ /**
15
+ * Constructs a <code>CustomerReviews</code> from a plain JavaScript object, optionally creating a new instance.
16
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
17
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
18
+ * @param {module:model/CustomerReviews} obj Optional instance to populate.
19
+ * @return {module:model/CustomerReviews} The populated <code>CustomerReviews</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): CustomerReviews;
22
+ /**
23
+ * Validates the JSON data with respect to <code>CustomerReviews</code>.
24
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
25
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CustomerReviews</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ count: number;
29
+ starRating: import('./Rating').default;
30
+ }
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _Rating = _interopRequireDefault(require("./Rating"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
13
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
17
+ *
18
+ * Licensed under the Apache License, Version 2.0 (the "License").
19
+ * You may not use this file except in compliance with the License.
20
+ * A copy of the License is located at
21
+ *
22
+ * http://www.apache.org/licenses/LICENSE-2.0
23
+ *
24
+ * or in the "license" file accompanying this file. This file is distributed
25
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
26
+ * express or implied. See the License for the specific language governing
27
+ * permissions and limitations under the License.
28
+ */
29
+ /**
30
+ * The CustomerReviews model module.
31
+ * @module model/CustomerReviews
32
+ * @version 1.0.0
33
+ */
34
+ var CustomerReviews = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>CustomerReviews</code>.
37
+ * Container for customer reviews information associated with a product. Includes weighted star rating and total reviews count.
38
+ * @alias module:model/CustomerReviews
39
+ */
40
+ function CustomerReviews() {
41
+ _classCallCheck(this, CustomerReviews);
42
+ CustomerReviews.initialize(this);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(CustomerReviews, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+
54
+ /**
55
+ * Constructs a <code>CustomerReviews</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
58
+ * @param {module:model/CustomerReviews} obj Optional instance to populate.
59
+ * @return {module:model/CustomerReviews} The populated <code>CustomerReviews</code> instance.
60
+ */
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new CustomerReviews();
66
+ if (data.hasOwnProperty('count')) {
67
+ obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
68
+ }
69
+ if (data.hasOwnProperty('starRating')) {
70
+ obj['starRating'] = _Rating["default"].constructFromObject(data['starRating']);
71
+ }
72
+ }
73
+ return obj;
74
+ }
75
+
76
+ /**
77
+ * Validates the JSON data with respect to <code>CustomerReviews</code>.
78
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
79
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CustomerReviews</code>.
80
+ */
81
+ }, {
82
+ key: "validateJSON",
83
+ value: function validateJSON(data) {
84
+ // validate the optional field `starRating`
85
+ if (data['starRating']) {
86
+ // data not null
87
+ _Rating["default"].validateJSON(data['starRating']);
88
+ }
89
+ return true;
90
+ }
91
+ }]);
92
+ }();
93
+ /**
94
+ * @member {Number} count
95
+ */
96
+ CustomerReviews.prototype['count'] = undefined;
97
+
98
+ /**
99
+ * @member {module:model/Rating} starRating
100
+ */
101
+ CustomerReviews.prototype['starRating'] = undefined;
102
+ var _default = exports["default"] = CustomerReviews;
@@ -0,0 +1,34 @@
1
+ export default DealDetails;
2
+ /**
3
+ * The DealDetails model module.
4
+ * @module model/DealDetails
5
+ * @version 1.0.0
6
+ */
7
+ declare class DealDetails {
8
+ /**
9
+ * Initializes the fields of this object.
10
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
11
+ * Only for internal use.
12
+ */
13
+ static initialize(obj: any): void;
14
+ /**
15
+ * Constructs a <code>DealDetails</code> from a plain JavaScript object, optionally creating a new instance.
16
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
17
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
18
+ * @param {module:model/DealDetails} obj Optional instance to populate.
19
+ * @return {module:model/DealDetails} The populated <code>DealDetails</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): DealDetails;
22
+ /**
23
+ * Validates the JSON data with respect to <code>DealDetails</code>.
24
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
25
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DealDetails</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ accessType: string;
29
+ badge: string;
30
+ earlyAccessDurationInMilliseconds: number;
31
+ endTime: string;
32
+ percentClaimed: number;
33
+ startTime: string;
34
+ }
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
+ * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
16
+ *
17
+ * Licensed under the Apache License, Version 2.0 (the "License").
18
+ * You may not use this file except in compliance with the License.
19
+ * A copy of the License is located at
20
+ *
21
+ * http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * or in the "license" file accompanying this file. This file is distributed
24
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
25
+ * express or implied. See the License for the specific language governing
26
+ * permissions and limitations under the License.
27
+ */
28
+ /**
29
+ * The DealDetails model module.
30
+ * @module model/DealDetails
31
+ * @version 1.0.0
32
+ */
33
+ var DealDetails = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>DealDetails</code>.
36
+ * Specifies deal information about an offer.
37
+ * @alias module:model/DealDetails
38
+ */
39
+ function DealDetails() {
40
+ _classCallCheck(this, DealDetails);
41
+ DealDetails.initialize(this);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ return _createClass(DealDetails, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj) {}
52
+
53
+ /**
54
+ * Constructs a <code>DealDetails</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/DealDetails} obj Optional instance to populate.
58
+ * @return {module:model/DealDetails} The populated <code>DealDetails</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new DealDetails();
65
+ if (data.hasOwnProperty('accessType')) {
66
+ obj['accessType'] = _ApiClient["default"].convertToType(data['accessType'], 'String');
67
+ }
68
+ if (data.hasOwnProperty('badge')) {
69
+ obj['badge'] = _ApiClient["default"].convertToType(data['badge'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('earlyAccessDurationInMilliseconds')) {
72
+ obj['earlyAccessDurationInMilliseconds'] = _ApiClient["default"].convertToType(data['earlyAccessDurationInMilliseconds'], 'Number');
73
+ }
74
+ if (data.hasOwnProperty('endTime')) {
75
+ obj['endTime'] = _ApiClient["default"].convertToType(data['endTime'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('percentClaimed')) {
78
+ obj['percentClaimed'] = _ApiClient["default"].convertToType(data['percentClaimed'], 'Number');
79
+ }
80
+ if (data.hasOwnProperty('startTime')) {
81
+ obj['startTime'] = _ApiClient["default"].convertToType(data['startTime'], 'String');
82
+ }
83
+ }
84
+ return obj;
85
+ }
86
+
87
+ /**
88
+ * Validates the JSON data with respect to <code>DealDetails</code>.
89
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
90
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DealDetails</code>.
91
+ */
92
+ }, {
93
+ key: "validateJSON",
94
+ value: function validateJSON(data) {
95
+ // ensure the json data is a string
96
+ if (data['accessType'] && !(typeof data['accessType'] === 'string' || data['accessType'] instanceof String)) {
97
+ throw new Error("Expected the field `accessType` to be a primitive type in the JSON string but got " + data['accessType']);
98
+ }
99
+ // ensure the json data is a string
100
+ if (data['badge'] && !(typeof data['badge'] === 'string' || data['badge'] instanceof String)) {
101
+ throw new Error("Expected the field `badge` to be a primitive type in the JSON string but got " + data['badge']);
102
+ }
103
+ // ensure the json data is a string
104
+ if (data['endTime'] && !(typeof data['endTime'] === 'string' || data['endTime'] instanceof String)) {
105
+ throw new Error("Expected the field `endTime` to be a primitive type in the JSON string but got " + data['endTime']);
106
+ }
107
+ // ensure the json data is a string
108
+ if (data['startTime'] && !(typeof data['startTime'] === 'string' || data['startTime'] instanceof String)) {
109
+ throw new Error("Expected the field `startTime` to be a primitive type in the JSON string but got " + data['startTime']);
110
+ }
111
+ return true;
112
+ }
113
+ }]);
114
+ }();
115
+ /**
116
+ * @member {String} accessType
117
+ */
118
+ DealDetails.prototype['accessType'] = undefined;
119
+
120
+ /**
121
+ * @member {String} badge
122
+ */
123
+ DealDetails.prototype['badge'] = undefined;
124
+
125
+ /**
126
+ * @member {Number} earlyAccessDurationInMilliseconds
127
+ */
128
+ DealDetails.prototype['earlyAccessDurationInMilliseconds'] = undefined;
129
+
130
+ /**
131
+ * @member {String} endTime
132
+ */
133
+ DealDetails.prototype['endTime'] = undefined;
134
+
135
+ /**
136
+ * @member {Number} percentClaimed
137
+ */
138
+ DealDetails.prototype['percentClaimed'] = undefined;
139
+
140
+ /**
141
+ * @member {String} startTime
142
+ */
143
+ DealDetails.prototype['startTime'] = undefined;
144
+ var _default = exports["default"] = DealDetails;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Enum class DeliveryFlag.
3
+ * @enum {}
4
+ * @readonly
5
+ */
6
+ export default class DeliveryFlag {
7
+ /**
8
+ * Returns a <code>DeliveryFlag</code> enum value from a Javascript object name.
9
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
10
+ * @return {module:model/DeliveryFlag} The enum <code>DeliveryFlag</code> value.
11
+ */
12
+ static constructFromObject(object: any): DeliveryFlag;
13
+ /**
14
+ * value: "AmazonGlobal"
15
+ * @const
16
+ */
17
+ AmazonGlobal: 'AmazonGlobal';
18
+ /**
19
+ * value: "FreeShipping"
20
+ * @const
21
+ */
22
+ FreeShipping: 'FreeShipping';
23
+ /**
24
+ * value: "FulfilledByAmazon"
25
+ * @const
26
+ */
27
+ FulfilledByAmazon: 'FulfilledByAmazon';
28
+ /**
29
+ * value: "Prime"
30
+ * @const
31
+ */
32
+ Prime: 'Prime';
33
+ }
34
+ /**
35
+ * *
36
+ */
37
+ export type DeliveryFlag = 'AmazonGlobal' | 'FreeShipping' | 'FulfilledByAmazon' | 'Prime';
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
17
+ *
18
+ * Licensed under the Apache License, Version 2.0 (the "License").
19
+ * You may not use this file except in compliance with the License.
20
+ * A copy of the License is located at
21
+ *
22
+ * http://www.apache.org/licenses/LICENSE-2.0
23
+ *
24
+ * or in the "license" file accompanying this file. This file is distributed
25
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
26
+ * express or implied. See the License for the specific language governing
27
+ * permissions and limitations under the License.
28
+ */
29
+ /**
30
+ * Enum class DeliveryFlag.
31
+ * @enum {}
32
+ * @readonly
33
+ */
34
+ var DeliveryFlag = exports["default"] = /*#__PURE__*/function () {
35
+ function DeliveryFlag() {
36
+ _classCallCheck(this, DeliveryFlag);
37
+ /**
38
+ * value: "AmazonGlobal"
39
+ * @const
40
+ */
41
+ _defineProperty(this, "AmazonGlobal", "AmazonGlobal");
42
+ /**
43
+ * value: "FreeShipping"
44
+ * @const
45
+ */
46
+ _defineProperty(this, "FreeShipping", "FreeShipping");
47
+ /**
48
+ * value: "FulfilledByAmazon"
49
+ * @const
50
+ */
51
+ _defineProperty(this, "FulfilledByAmazon", "FulfilledByAmazon");
52
+ /**
53
+ * value: "Prime"
54
+ * @const
55
+ */
56
+ _defineProperty(this, "Prime", "Prime");
57
+ }
58
+ return _createClass(DeliveryFlag, null, [{
59
+ key: "constructFromObject",
60
+ value:
61
+ /**
62
+ * Returns a <code>DeliveryFlag</code> enum value from a Javascript object name.
63
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
64
+ * @return {module:model/DeliveryFlag} The enum <code>DeliveryFlag</code> value.
65
+ */
66
+ function constructFromObject(object) {
67
+ return object;
68
+ }
69
+ }]);
70
+ }();
@@ -0,0 +1,32 @@
1
+ export default DimensionBasedAttribute;
2
+ /**
3
+ * The DimensionBasedAttribute model module.
4
+ * @module model/DimensionBasedAttribute
5
+ * @version 1.0.0
6
+ */
7
+ declare class DimensionBasedAttribute {
8
+ /**
9
+ * Initializes the fields of this object.
10
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
11
+ * Only for internal use.
12
+ */
13
+ static initialize(obj: any): void;
14
+ /**
15
+ * Constructs a <code>DimensionBasedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
16
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
17
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
18
+ * @param {module:model/DimensionBasedAttribute} obj Optional instance to populate.
19
+ * @return {module:model/DimensionBasedAttribute} The populated <code>DimensionBasedAttribute</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): DimensionBasedAttribute;
22
+ /**
23
+ * Validates the JSON data with respect to <code>DimensionBasedAttribute</code>.
24
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
25
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DimensionBasedAttribute</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ height: import('./UnitBasedAttribute').default;
29
+ length: import('./UnitBasedAttribute').default;
30
+ weight: import('./UnitBasedAttribute').default;
31
+ width: import('./UnitBasedAttribute').default;
32
+ }