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,34 @@
1
+ export default ProductInfo;
2
+ /**
3
+ * The ProductInfo model module.
4
+ * @module model/ProductInfo
5
+ * @version 1.0.0
6
+ */
7
+ declare class ProductInfo {
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>ProductInfo</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/ProductInfo} obj Optional instance to populate.
19
+ * @return {module:model/ProductInfo} The populated <code>ProductInfo</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): ProductInfo;
22
+ /**
23
+ * Validates the JSON data with respect to <code>ProductInfo</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>ProductInfo</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ color: import('./SingleStringValuedAttribute').default;
29
+ isAdultProduct: import('./SingleBooleanValuedAttribute').default;
30
+ itemDimensions: import('./DimensionBasedAttribute').default;
31
+ releaseDate: import('./SingleStringValuedAttribute').default;
32
+ size: import('./SingleStringValuedAttribute').default;
33
+ unitCount: import('./SingleIntegerValuedAttribute').default;
34
+ }
@@ -0,0 +1,162 @@
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 _DimensionBasedAttribute = _interopRequireDefault(require("./DimensionBasedAttribute"));
9
+ var _SingleBooleanValuedAttribute = _interopRequireDefault(require("./SingleBooleanValuedAttribute"));
10
+ var _SingleIntegerValuedAttribute = _interopRequireDefault(require("./SingleIntegerValuedAttribute"));
11
+ var _SingleStringValuedAttribute = _interopRequireDefault(require("./SingleStringValuedAttribute"));
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
+ 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); }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); } /**
19
+ * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
20
+ *
21
+ * Licensed under the Apache License, Version 2.0 (the "License").
22
+ * You may not use this file except in compliance with the License.
23
+ * A copy of the License is located at
24
+ *
25
+ * http://www.apache.org/licenses/LICENSE-2.0
26
+ *
27
+ * or in the "license" file accompanying this file. This file is distributed
28
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
29
+ * express or implied. See the License for the specific language governing
30
+ * permissions and limitations under the License.
31
+ */
32
+ /**
33
+ * The ProductInfo model module.
34
+ * @module model/ProductInfo
35
+ * @version 1.0.0
36
+ */
37
+ var ProductInfo = /*#__PURE__*/function () {
38
+ /**
39
+ * Constructs a new <code>ProductInfo</code>.
40
+ * Container for set of attributes that describes non-technical aspects of the product.
41
+ * @alias module:model/ProductInfo
42
+ */
43
+ function ProductInfo() {
44
+ _classCallCheck(this, ProductInfo);
45
+ ProductInfo.initialize(this);
46
+ }
47
+
48
+ /**
49
+ * Initializes the fields of this object.
50
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
+ * Only for internal use.
52
+ */
53
+ return _createClass(ProductInfo, null, [{
54
+ key: "initialize",
55
+ value: function initialize(obj) {}
56
+
57
+ /**
58
+ * Constructs a <code>ProductInfo</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/ProductInfo} obj Optional instance to populate.
62
+ * @return {module:model/ProductInfo} The populated <code>ProductInfo</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new ProductInfo();
69
+ if (data.hasOwnProperty('color')) {
70
+ obj['color'] = _SingleStringValuedAttribute["default"].constructFromObject(data['color']);
71
+ }
72
+ if (data.hasOwnProperty('isAdultProduct')) {
73
+ obj['isAdultProduct'] = _SingleBooleanValuedAttribute["default"].constructFromObject(data['isAdultProduct']);
74
+ }
75
+ if (data.hasOwnProperty('itemDimensions')) {
76
+ obj['itemDimensions'] = _DimensionBasedAttribute["default"].constructFromObject(data['itemDimensions']);
77
+ }
78
+ if (data.hasOwnProperty('releaseDate')) {
79
+ obj['releaseDate'] = _SingleStringValuedAttribute["default"].constructFromObject(data['releaseDate']);
80
+ }
81
+ if (data.hasOwnProperty('size')) {
82
+ obj['size'] = _SingleStringValuedAttribute["default"].constructFromObject(data['size']);
83
+ }
84
+ if (data.hasOwnProperty('unitCount')) {
85
+ obj['unitCount'] = _SingleIntegerValuedAttribute["default"].constructFromObject(data['unitCount']);
86
+ }
87
+ }
88
+ return obj;
89
+ }
90
+
91
+ /**
92
+ * Validates the JSON data with respect to <code>ProductInfo</code>.
93
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
94
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ProductInfo</code>.
95
+ */
96
+ }, {
97
+ key: "validateJSON",
98
+ value: function validateJSON(data) {
99
+ // validate the optional field `color`
100
+ if (data['color']) {
101
+ // data not null
102
+ _SingleStringValuedAttribute["default"].validateJSON(data['color']);
103
+ }
104
+ // validate the optional field `isAdultProduct`
105
+ if (data['isAdultProduct']) {
106
+ // data not null
107
+ _SingleBooleanValuedAttribute["default"].validateJSON(data['isAdultProduct']);
108
+ }
109
+ // validate the optional field `itemDimensions`
110
+ if (data['itemDimensions']) {
111
+ // data not null
112
+ _DimensionBasedAttribute["default"].validateJSON(data['itemDimensions']);
113
+ }
114
+ // validate the optional field `releaseDate`
115
+ if (data['releaseDate']) {
116
+ // data not null
117
+ _SingleStringValuedAttribute["default"].validateJSON(data['releaseDate']);
118
+ }
119
+ // validate the optional field `size`
120
+ if (data['size']) {
121
+ // data not null
122
+ _SingleStringValuedAttribute["default"].validateJSON(data['size']);
123
+ }
124
+ // validate the optional field `unitCount`
125
+ if (data['unitCount']) {
126
+ // data not null
127
+ _SingleIntegerValuedAttribute["default"].validateJSON(data['unitCount']);
128
+ }
129
+ return true;
130
+ }
131
+ }]);
132
+ }();
133
+ /**
134
+ * @member {module:model/SingleStringValuedAttribute} color
135
+ */
136
+ ProductInfo.prototype['color'] = undefined;
137
+
138
+ /**
139
+ * @member {module:model/SingleBooleanValuedAttribute} isAdultProduct
140
+ */
141
+ ProductInfo.prototype['isAdultProduct'] = undefined;
142
+
143
+ /**
144
+ * @member {module:model/DimensionBasedAttribute} itemDimensions
145
+ */
146
+ ProductInfo.prototype['itemDimensions'] = undefined;
147
+
148
+ /**
149
+ * @member {module:model/SingleStringValuedAttribute} releaseDate
150
+ */
151
+ ProductInfo.prototype['releaseDate'] = undefined;
152
+
153
+ /**
154
+ * @member {module:model/SingleStringValuedAttribute} size
155
+ */
156
+ ProductInfo.prototype['size'] = undefined;
157
+
158
+ /**
159
+ * @member {module:model/SingleIntegerValuedAttribute} unitCount
160
+ */
161
+ ProductInfo.prototype['unitCount'] = undefined;
162
+ var _default = exports["default"] = ProductInfo;
@@ -0,0 +1,29 @@
1
+ export default Rating;
2
+ /**
3
+ * The Rating model module.
4
+ * @module model/Rating
5
+ * @version 1.0.0
6
+ */
7
+ declare class Rating {
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>Rating</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/Rating} obj Optional instance to populate.
19
+ * @return {module:model/Rating} The populated <code>Rating</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): Rating;
22
+ /**
23
+ * Validates the JSON data with respect to <code>Rating</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>Rating</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ value: number;
29
+ }
@@ -0,0 +1,88 @@
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 Rating model module.
30
+ * @module model/Rating
31
+ * @version 1.0.0
32
+ */
33
+ var Rating = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>Rating</code>.
36
+ * Container for weighted star rating information associated with a product.
37
+ * @alias module:model/Rating
38
+ */
39
+ function Rating() {
40
+ _classCallCheck(this, Rating);
41
+ Rating.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(Rating, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj) {}
52
+
53
+ /**
54
+ * Constructs a <code>Rating</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/Rating} obj Optional instance to populate.
58
+ * @return {module:model/Rating} The populated <code>Rating</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new Rating();
65
+ if (data.hasOwnProperty('value')) {
66
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
67
+ }
68
+ }
69
+ return obj;
70
+ }
71
+
72
+ /**
73
+ * Validates the JSON data with respect to <code>Rating</code>.
74
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
75
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Rating</code>.
76
+ */
77
+ }, {
78
+ key: "validateJSON",
79
+ value: function validateJSON(data) {
80
+ return true;
81
+ }
82
+ }]);
83
+ }();
84
+ /**
85
+ * @member {Number} value
86
+ */
87
+ Rating.prototype['value'] = undefined;
88
+ var _default = exports["default"] = Rating;
@@ -0,0 +1,31 @@
1
+ export default Refinement;
2
+ /**
3
+ * The Refinement model module.
4
+ * @module model/Refinement
5
+ * @version 1.0.0
6
+ */
7
+ declare class Refinement {
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>Refinement</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/Refinement} obj Optional instance to populate.
19
+ * @return {module:model/Refinement} The populated <code>Refinement</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): Refinement;
22
+ /**
23
+ * Validates the JSON data with respect to <code>Refinement</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>Refinement</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ bins: import('./RefinementBin').default[];
29
+ displayName: string;
30
+ id: string;
31
+ }
@@ -0,0 +1,138 @@
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 _RefinementBin = _interopRequireDefault(require("./RefinementBin"));
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 _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); } /**
19
+ * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
20
+ *
21
+ * Licensed under the Apache License, Version 2.0 (the "License").
22
+ * You may not use this file except in compliance with the License.
23
+ * A copy of the License is located at
24
+ *
25
+ * http://www.apache.org/licenses/LICENSE-2.0
26
+ *
27
+ * or in the "license" file accompanying this file. This file is distributed
28
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
29
+ * express or implied. See the License for the specific language governing
30
+ * permissions and limitations under the License.
31
+ */
32
+ /**
33
+ * The Refinement model module.
34
+ * @module model/Refinement
35
+ * @version 1.0.0
36
+ */
37
+ var Refinement = /*#__PURE__*/function () {
38
+ /**
39
+ * Constructs a new <code>Refinement</code>.
40
+ * Container for a search refinement which includes refinement attributes like Id, Display Name and refinement values.
41
+ * @alias module:model/Refinement
42
+ */
43
+ function Refinement() {
44
+ _classCallCheck(this, Refinement);
45
+ Refinement.initialize(this);
46
+ }
47
+
48
+ /**
49
+ * Initializes the fields of this object.
50
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
+ * Only for internal use.
52
+ */
53
+ return _createClass(Refinement, null, [{
54
+ key: "initialize",
55
+ value: function initialize(obj) {}
56
+
57
+ /**
58
+ * Constructs a <code>Refinement</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/Refinement} obj Optional instance to populate.
62
+ * @return {module:model/Refinement} The populated <code>Refinement</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new Refinement();
69
+ if (data.hasOwnProperty('bins')) {
70
+ obj['bins'] = _ApiClient["default"].convertToType(data['bins'], [_RefinementBin["default"]]);
71
+ }
72
+ if (data.hasOwnProperty('displayName')) {
73
+ obj['displayName'] = _ApiClient["default"].convertToType(data['displayName'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('id')) {
76
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
77
+ }
78
+ }
79
+ return obj;
80
+ }
81
+
82
+ /**
83
+ * Validates the JSON data with respect to <code>Refinement</code>.
84
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
85
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Refinement</code>.
86
+ */
87
+ }, {
88
+ key: "validateJSON",
89
+ value: function validateJSON(data) {
90
+ if (data['bins']) {
91
+ // data not null
92
+ // ensure the json data is an array
93
+ if (!Array.isArray(data['bins'])) {
94
+ throw new Error("Expected the field `bins` to be an array in the JSON data but got " + data['bins']);
95
+ }
96
+ // validate the optional field `bins` (array)
97
+ var _iterator = _createForOfIteratorHelper(data['bins']),
98
+ _step;
99
+ try {
100
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
101
+ var item = _step.value;
102
+ _RefinementBin["default"].validateJSON(item);
103
+ }
104
+ } catch (err) {
105
+ _iterator.e(err);
106
+ } finally {
107
+ _iterator.f();
108
+ }
109
+ ;
110
+ }
111
+ // ensure the json data is a string
112
+ if (data['displayName'] && !(typeof data['displayName'] === 'string' || data['displayName'] instanceof String)) {
113
+ throw new Error("Expected the field `displayName` to be a primitive type in the JSON string but got " + data['displayName']);
114
+ }
115
+ // ensure the json data is a string
116
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
117
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
118
+ }
119
+ return true;
120
+ }
121
+ }]);
122
+ }();
123
+ /**
124
+ * List of refinement bins which contains the values for a particular refinement.
125
+ * @member {Array.<module:model/RefinementBin>} bins
126
+ */
127
+ Refinement.prototype['bins'] = undefined;
128
+
129
+ /**
130
+ * @member {String} displayName
131
+ */
132
+ Refinement.prototype['displayName'] = undefined;
133
+
134
+ /**
135
+ * @member {String} id
136
+ */
137
+ Refinement.prototype['id'] = undefined;
138
+ var _default = exports["default"] = Refinement;
@@ -0,0 +1,30 @@
1
+ export default RefinementBin;
2
+ /**
3
+ * The RefinementBin model module.
4
+ * @module model/RefinementBin
5
+ * @version 1.0.0
6
+ */
7
+ declare class RefinementBin {
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>RefinementBin</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/RefinementBin} obj Optional instance to populate.
19
+ * @return {module:model/RefinementBin} The populated <code>RefinementBin</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): RefinementBin;
22
+ /**
23
+ * Validates the JSON data with respect to <code>RefinementBin</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>RefinementBin</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ displayName: string;
29
+ id: string;
30
+ }
@@ -0,0 +1,104 @@
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 RefinementBin model module.
30
+ * @module model/RefinementBin
31
+ * @version 1.0.0
32
+ */
33
+ var RefinementBin = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>RefinementBin</code>.
36
+ * Container for a refinement bin which contains values for a particular refinement.
37
+ * @alias module:model/RefinementBin
38
+ */
39
+ function RefinementBin() {
40
+ _classCallCheck(this, RefinementBin);
41
+ RefinementBin.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(RefinementBin, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj) {}
52
+
53
+ /**
54
+ * Constructs a <code>RefinementBin</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/RefinementBin} obj Optional instance to populate.
58
+ * @return {module:model/RefinementBin} The populated <code>RefinementBin</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new RefinementBin();
65
+ if (data.hasOwnProperty('displayName')) {
66
+ obj['displayName'] = _ApiClient["default"].convertToType(data['displayName'], 'String');
67
+ }
68
+ if (data.hasOwnProperty('id')) {
69
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
70
+ }
71
+ }
72
+ return obj;
73
+ }
74
+
75
+ /**
76
+ * Validates the JSON data with respect to <code>RefinementBin</code>.
77
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
78
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>RefinementBin</code>.
79
+ */
80
+ }, {
81
+ key: "validateJSON",
82
+ value: function validateJSON(data) {
83
+ // ensure the json data is a string
84
+ if (data['displayName'] && !(typeof data['displayName'] === 'string' || data['displayName'] instanceof String)) {
85
+ throw new Error("Expected the field `displayName` to be a primitive type in the JSON string but got " + data['displayName']);
86
+ }
87
+ // ensure the json data is a string
88
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
89
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
90
+ }
91
+ return true;
92
+ }
93
+ }]);
94
+ }();
95
+ /**
96
+ * @member {String} displayName
97
+ */
98
+ RefinementBin.prototype['displayName'] = undefined;
99
+
100
+ /**
101
+ * @member {String} id
102
+ */
103
+ RefinementBin.prototype['id'] = undefined;
104
+ var _default = exports["default"] = RefinementBin;