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,343 @@
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 _Availability = _interopRequireDefault(require("./Availability"));
9
+ var _Condition = _interopRequireDefault(require("./Condition"));
10
+ var _DeliveryFlag = _interopRequireDefault(require("./DeliveryFlag"));
11
+ var _SearchItemsResource = _interopRequireDefault(require("./SearchItemsResource"));
12
+ var _SortBy = _interopRequireDefault(require("./SortBy"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ 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); }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ 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); } /**
20
+ * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
21
+ *
22
+ * Licensed under the Apache License, Version 2.0 (the "License").
23
+ * You may not use this file except in compliance with the License.
24
+ * A copy of the License is located at
25
+ *
26
+ * http://www.apache.org/licenses/LICENSE-2.0
27
+ *
28
+ * or in the "license" file accompanying this file. This file is distributed
29
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
30
+ * express or implied. See the License for the specific language governing
31
+ * permissions and limitations under the License.
32
+ */
33
+ /**
34
+ * The SearchItemsRequestContent model module.
35
+ * @module model/SearchItemsRequestContent
36
+ * @version 1.0.0
37
+ */
38
+ var SearchItemsRequestContent = /*#__PURE__*/function () {
39
+ /**
40
+ * Constructs a new <code>SearchItemsRequestContent</code>.
41
+ * The request object for the search items operation. It contains the request parameters for the search items operation.
42
+ * @alias module:model/SearchItemsRequestContent
43
+ */
44
+ function SearchItemsRequestContent() {
45
+ _classCallCheck(this, SearchItemsRequestContent);
46
+ SearchItemsRequestContent.initialize(this);
47
+ }
48
+
49
+ /**
50
+ * Initializes the fields of this object.
51
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
52
+ * Only for internal use.
53
+ */
54
+ return _createClass(SearchItemsRequestContent, null, [{
55
+ key: "initialize",
56
+ value: function initialize(obj) {}
57
+
58
+ /**
59
+ * Constructs a <code>SearchItemsRequestContent</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/SearchItemsRequestContent} obj Optional instance to populate.
63
+ * @return {module:model/SearchItemsRequestContent} The populated <code>SearchItemsRequestContent</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new SearchItemsRequestContent();
70
+ if (data.hasOwnProperty('actor')) {
71
+ obj['actor'] = _ApiClient["default"].convertToType(data['actor'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('artist')) {
74
+ obj['artist'] = _ApiClient["default"].convertToType(data['artist'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('author')) {
77
+ obj['author'] = _ApiClient["default"].convertToType(data['author'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('availability')) {
80
+ obj['availability'] = _Availability["default"].constructFromObject(data['availability']);
81
+ }
82
+ if (data.hasOwnProperty('brand')) {
83
+ obj['brand'] = _ApiClient["default"].convertToType(data['brand'], 'String');
84
+ }
85
+ if (data.hasOwnProperty('browseNodeId')) {
86
+ obj['browseNodeId'] = _ApiClient["default"].convertToType(data['browseNodeId'], 'String');
87
+ }
88
+ if (data.hasOwnProperty('condition')) {
89
+ obj['condition'] = _Condition["default"].constructFromObject(data['condition']);
90
+ }
91
+ if (data.hasOwnProperty('currencyOfPreference')) {
92
+ obj['currencyOfPreference'] = _ApiClient["default"].convertToType(data['currencyOfPreference'], 'String');
93
+ }
94
+ if (data.hasOwnProperty('deliveryFlags')) {
95
+ obj['deliveryFlags'] = _ApiClient["default"].convertToType(data['deliveryFlags'], [_DeliveryFlag["default"]]);
96
+ }
97
+ if (data.hasOwnProperty('itemCount')) {
98
+ obj['itemCount'] = _ApiClient["default"].convertToType(data['itemCount'], 'Number');
99
+ }
100
+ if (data.hasOwnProperty('itemPage')) {
101
+ obj['itemPage'] = _ApiClient["default"].convertToType(data['itemPage'], 'Number');
102
+ }
103
+ if (data.hasOwnProperty('keywords')) {
104
+ obj['keywords'] = _ApiClient["default"].convertToType(data['keywords'], 'String');
105
+ }
106
+ if (data.hasOwnProperty('languagesOfPreference')) {
107
+ obj['languagesOfPreference'] = _ApiClient["default"].convertToType(data['languagesOfPreference'], ['String']);
108
+ }
109
+ if (data.hasOwnProperty('maxPrice')) {
110
+ obj['maxPrice'] = _ApiClient["default"].convertToType(data['maxPrice'], 'Number');
111
+ }
112
+ if (data.hasOwnProperty('minPrice')) {
113
+ obj['minPrice'] = _ApiClient["default"].convertToType(data['minPrice'], 'Number');
114
+ }
115
+ if (data.hasOwnProperty('minReviewsRating')) {
116
+ obj['minReviewsRating'] = _ApiClient["default"].convertToType(data['minReviewsRating'], 'Number');
117
+ }
118
+ if (data.hasOwnProperty('minSavingPercent')) {
119
+ obj['minSavingPercent'] = _ApiClient["default"].convertToType(data['minSavingPercent'], 'Number');
120
+ }
121
+ if (data.hasOwnProperty('partnerTag')) {
122
+ obj['partnerTag'] = _ApiClient["default"].convertToType(data['partnerTag'], 'String');
123
+ }
124
+ if (data.hasOwnProperty('properties')) {
125
+ obj['properties'] = _ApiClient["default"].convertToType(data['properties'], {
126
+ 'String': 'String'
127
+ });
128
+ }
129
+ if (data.hasOwnProperty('resources')) {
130
+ obj['resources'] = _ApiClient["default"].convertToType(data['resources'], [_SearchItemsResource["default"]]);
131
+ }
132
+ if (data.hasOwnProperty('searchIndex')) {
133
+ obj['searchIndex'] = _ApiClient["default"].convertToType(data['searchIndex'], 'String');
134
+ }
135
+ if (data.hasOwnProperty('sortBy')) {
136
+ obj['sortBy'] = _SortBy["default"].constructFromObject(data['sortBy']);
137
+ }
138
+ if (data.hasOwnProperty('title')) {
139
+ obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
140
+ }
141
+ }
142
+ return obj;
143
+ }
144
+
145
+ /**
146
+ * Validates the JSON data with respect to <code>SearchItemsRequestContent</code>.
147
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
148
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SearchItemsRequestContent</code>.
149
+ */
150
+ }, {
151
+ key: "validateJSON",
152
+ value: function validateJSON(data) {
153
+ // ensure the json data is a string
154
+ if (data['actor'] && !(typeof data['actor'] === 'string' || data['actor'] instanceof String)) {
155
+ throw new Error("Expected the field `actor` to be a primitive type in the JSON string but got " + data['actor']);
156
+ }
157
+ // ensure the json data is a string
158
+ if (data['artist'] && !(typeof data['artist'] === 'string' || data['artist'] instanceof String)) {
159
+ throw new Error("Expected the field `artist` to be a primitive type in the JSON string but got " + data['artist']);
160
+ }
161
+ // ensure the json data is a string
162
+ if (data['author'] && !(typeof data['author'] === 'string' || data['author'] instanceof String)) {
163
+ throw new Error("Expected the field `author` to be a primitive type in the JSON string but got " + data['author']);
164
+ }
165
+ // ensure the json data is a string
166
+ if (data['brand'] && !(typeof data['brand'] === 'string' || data['brand'] instanceof String)) {
167
+ throw new Error("Expected the field `brand` to be a primitive type in the JSON string but got " + data['brand']);
168
+ }
169
+ // ensure the json data is a string
170
+ if (data['browseNodeId'] && !(typeof data['browseNodeId'] === 'string' || data['browseNodeId'] instanceof String)) {
171
+ throw new Error("Expected the field `browseNodeId` to be a primitive type in the JSON string but got " + data['browseNodeId']);
172
+ }
173
+ // ensure the json data is a string
174
+ if (data['currencyOfPreference'] && !(typeof data['currencyOfPreference'] === 'string' || data['currencyOfPreference'] instanceof String)) {
175
+ throw new Error("Expected the field `currencyOfPreference` to be a primitive type in the JSON string but got " + data['currencyOfPreference']);
176
+ }
177
+ // ensure the json data is an array
178
+ if (!Array.isArray(data['deliveryFlags'])) {
179
+ throw new Error("Expected the field `deliveryFlags` to be an array in the JSON data but got " + data['deliveryFlags']);
180
+ }
181
+ // ensure the json data is a string
182
+ if (data['keywords'] && !(typeof data['keywords'] === 'string' || data['keywords'] instanceof String)) {
183
+ throw new Error("Expected the field `keywords` to be a primitive type in the JSON string but got " + data['keywords']);
184
+ }
185
+ // ensure the json data is an array
186
+ if (!Array.isArray(data['languagesOfPreference'])) {
187
+ throw new Error("Expected the field `languagesOfPreference` to be an array in the JSON data but got " + data['languagesOfPreference']);
188
+ }
189
+ // ensure the json data is a string
190
+ if (data['partnerTag'] && !(typeof data['partnerTag'] === 'string' || data['partnerTag'] instanceof String)) {
191
+ throw new Error("Expected the field `partnerTag` to be a primitive type in the JSON string but got " + data['partnerTag']);
192
+ }
193
+ // ensure the json data is an array
194
+ if (!Array.isArray(data['resources'])) {
195
+ throw new Error("Expected the field `resources` to be an array in the JSON data but got " + data['resources']);
196
+ }
197
+ // ensure the json data is a string
198
+ if (data['searchIndex'] && !(typeof data['searchIndex'] === 'string' || data['searchIndex'] instanceof String)) {
199
+ throw new Error("Expected the field `searchIndex` to be a primitive type in the JSON string but got " + data['searchIndex']);
200
+ }
201
+ // ensure the json data is a string
202
+ if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
203
+ throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
204
+ }
205
+ return true;
206
+ }
207
+ }]);
208
+ }();
209
+ /**
210
+ * Actor name associated with the item. You can enter all or part of the name.
211
+ * @member {String} actor
212
+ */
213
+ SearchItemsRequestContent.prototype['actor'] = undefined;
214
+
215
+ /**
216
+ * Artist name associated with the item. You can enter all or part of the name.
217
+ * @member {String} artist
218
+ */
219
+ SearchItemsRequestContent.prototype['artist'] = undefined;
220
+
221
+ /**
222
+ * Author name associated with the item. You can enter all or part of the name.
223
+ * @member {String} author
224
+ */
225
+ SearchItemsRequestContent.prototype['author'] = undefined;
226
+
227
+ /**
228
+ * @member {module:model/Availability} availability
229
+ */
230
+ SearchItemsRequestContent.prototype['availability'] = undefined;
231
+
232
+ /**
233
+ * Brand name associated with the item. You can enter all or part of the name.
234
+ * @member {String} brand
235
+ */
236
+ SearchItemsRequestContent.prototype['brand'] = undefined;
237
+
238
+ /**
239
+ * A unique ID assigned by Amazon that identifies a product category/sub-category. The BrowseNodeId is a positive Long having max value upto Long.MAX_VALUE i.e. 9223372036854775807 (inclusive).
240
+ * @member {String} browseNodeId
241
+ */
242
+ SearchItemsRequestContent.prototype['browseNodeId'] = undefined;
243
+
244
+ /**
245
+ * @member {module:model/Condition} condition
246
+ */
247
+ SearchItemsRequestContent.prototype['condition'] = undefined;
248
+
249
+ /**
250
+ * Currency of preference in which the prices information should be returned in response. By default the prices are returned in the default currency of the marketplace. Expected currency code format is the ISO 4217 currency code (i.e. USD, EUR etc.).
251
+ * @member {String} currencyOfPreference
252
+ */
253
+ SearchItemsRequestContent.prototype['currencyOfPreference'] = undefined;
254
+
255
+ /**
256
+ * List of DeliveryFlag which denotes a certain delivery program.
257
+ * @member {Array.<module:model/DeliveryFlag>} deliveryFlags
258
+ */
259
+ SearchItemsRequestContent.prototype['deliveryFlags'] = undefined;
260
+
261
+ /**
262
+ * The number of items desired in SearchItems response.
263
+ * @member {Number} itemCount
264
+ */
265
+ SearchItemsRequestContent.prototype['itemCount'] = undefined;
266
+
267
+ /**
268
+ * The specific page of items to be returned from the available Search Results.
269
+ * @member {Number} itemPage
270
+ */
271
+ SearchItemsRequestContent.prototype['itemPage'] = undefined;
272
+
273
+ /**
274
+ * A word or phrase that describes an item i.e. the search query.
275
+ * @member {String} keywords
276
+ */
277
+ SearchItemsRequestContent.prototype['keywords'] = undefined;
278
+
279
+ /**
280
+ * Languages in order of preference in which the item information should be returned in response. By default the item information is returned in the default language of the marketplace.
281
+ * @member {Array.<String>} languagesOfPreference
282
+ */
283
+ SearchItemsRequestContent.prototype['languagesOfPreference'] = undefined;
284
+
285
+ /**
286
+ * The MaxPrice parameter filters search results to items with at least one offer price below the specified value.
287
+ * @member {Number} maxPrice
288
+ */
289
+ SearchItemsRequestContent.prototype['maxPrice'] = undefined;
290
+
291
+ /**
292
+ * The MinPrice parameter filters search results to items with at least one offer price above the specified value.
293
+ * @member {Number} minPrice
294
+ */
295
+ SearchItemsRequestContent.prototype['minPrice'] = undefined;
296
+
297
+ /**
298
+ * The MinReviewsRating parameter filters search results to items with customer review ratings above specified value.
299
+ * @member {Number} minReviewsRating
300
+ */
301
+ SearchItemsRequestContent.prototype['minReviewsRating'] = undefined;
302
+
303
+ /**
304
+ * The MinSavingPercent parameter filters search results to items with at least one offer having saving percentage above the specified value.
305
+ * @member {Number} minSavingPercent
306
+ */
307
+ SearchItemsRequestContent.prototype['minSavingPercent'] = undefined;
308
+
309
+ /**
310
+ * An alphanumeric token that uniquely identifies a partner. If the value of PartnerType is Associates, enter your Store Id or tracking ID.
311
+ * @member {String} partnerTag
312
+ */
313
+ SearchItemsRequestContent.prototype['partnerTag'] = undefined;
314
+
315
+ /**
316
+ * Reserved parameter for specifying key-value pairs. This is a flexible mechanism for passing additional context or metadata to the API.
317
+ * @member {Object.<String, String>} properties
318
+ */
319
+ SearchItemsRequestContent.prototype['properties'] = undefined;
320
+
321
+ /**
322
+ * List of resources for SearchItems operation which specify the values to return.
323
+ * @member {Array.<module:model/SearchItemsResource>} resources
324
+ */
325
+ SearchItemsRequestContent.prototype['resources'] = undefined;
326
+
327
+ /**
328
+ * Indicates the product category to search. SearchIndex values differ by marketplace.
329
+ * @member {String} searchIndex
330
+ */
331
+ SearchItemsRequestContent.prototype['searchIndex'] = undefined;
332
+
333
+ /**
334
+ * @member {module:model/SortBy} sortBy
335
+ */
336
+ SearchItemsRequestContent.prototype['sortBy'] = undefined;
337
+
338
+ /**
339
+ * Title associated with the item.
340
+ * @member {String} title
341
+ */
342
+ SearchItemsRequestContent.prototype['title'] = undefined;
343
+ var _default = exports["default"] = SearchItemsRequestContent;
@@ -0,0 +1,192 @@
1
+ /**
2
+ * Enum class SearchItemsResource.
3
+ * @enum {}
4
+ * @readonly
5
+ */
6
+ export default class SearchItemsResource {
7
+ /**
8
+ * Returns a <code>SearchItemsResource</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/SearchItemsResource} The enum <code>SearchItemsResource</code> value.
11
+ */
12
+ static constructFromObject(object: any): SearchItemsResource;
13
+ /**
14
+ * value: "browseNodeInfo.browseNodes"
15
+ * @const
16
+ */
17
+ "browseNodeInfo.browseNodes": string;
18
+ /**
19
+ * value: "browseNodeInfo.browseNodes.ancestor"
20
+ * @const
21
+ */
22
+ "browseNodeInfo.browseNodes.ancestor": string;
23
+ /**
24
+ * value: "browseNodeInfo.browseNodes.salesRank"
25
+ * @const
26
+ */
27
+ "browseNodeInfo.browseNodes.salesRank": string;
28
+ /**
29
+ * value: "browseNodeInfo.websiteSalesRank"
30
+ * @const
31
+ */
32
+ "browseNodeInfo.websiteSalesRank": string;
33
+ /**
34
+ * value: "customerReviews.count"
35
+ * @const
36
+ */
37
+ "customerReviews.count": string;
38
+ /**
39
+ * value: "customerReviews.starRating"
40
+ * @const
41
+ */
42
+ "customerReviews.starRating": string;
43
+ /**
44
+ * value: "images.primary.small"
45
+ * @const
46
+ */
47
+ "images.primary.small": string;
48
+ /**
49
+ * value: "images.primary.medium"
50
+ * @const
51
+ */
52
+ "images.primary.medium": string;
53
+ /**
54
+ * value: "images.primary.large"
55
+ * @const
56
+ */
57
+ "images.primary.large": string;
58
+ /**
59
+ * value: "images.primary.highRes"
60
+ * @const
61
+ */
62
+ "images.primary.highRes": string;
63
+ /**
64
+ * value: "images.variants.small"
65
+ * @const
66
+ */
67
+ "images.variants.small": string;
68
+ /**
69
+ * value: "images.variants.medium"
70
+ * @const
71
+ */
72
+ "images.variants.medium": string;
73
+ /**
74
+ * value: "images.variants.large"
75
+ * @const
76
+ */
77
+ "images.variants.large": string;
78
+ /**
79
+ * value: "images.variants.highRes"
80
+ * @const
81
+ */
82
+ "images.variants.highRes": string;
83
+ /**
84
+ * value: "itemInfo.byLineInfo"
85
+ * @const
86
+ */
87
+ "itemInfo.byLineInfo": string;
88
+ /**
89
+ * value: "itemInfo.contentInfo"
90
+ * @const
91
+ */
92
+ "itemInfo.contentInfo": string;
93
+ /**
94
+ * value: "itemInfo.contentRating"
95
+ * @const
96
+ */
97
+ "itemInfo.contentRating": string;
98
+ /**
99
+ * value: "itemInfo.classifications"
100
+ * @const
101
+ */
102
+ "itemInfo.classifications": string;
103
+ /**
104
+ * value: "itemInfo.externalIds"
105
+ * @const
106
+ */
107
+ "itemInfo.externalIds": string;
108
+ /**
109
+ * value: "itemInfo.features"
110
+ * @const
111
+ */
112
+ "itemInfo.features": string;
113
+ /**
114
+ * value: "itemInfo.manufactureInfo"
115
+ * @const
116
+ */
117
+ "itemInfo.manufactureInfo": string;
118
+ /**
119
+ * value: "itemInfo.productInfo"
120
+ * @const
121
+ */
122
+ "itemInfo.productInfo": string;
123
+ /**
124
+ * value: "itemInfo.technicalInfo"
125
+ * @const
126
+ */
127
+ "itemInfo.technicalInfo": string;
128
+ /**
129
+ * value: "itemInfo.title"
130
+ * @const
131
+ */
132
+ "itemInfo.title": string;
133
+ /**
134
+ * value: "itemInfo.tradeInInfo"
135
+ * @const
136
+ */
137
+ "itemInfo.tradeInInfo": string;
138
+ /**
139
+ * value: "offersV2.listings.availability"
140
+ * @const
141
+ */
142
+ "offersV2.listings.availability": string;
143
+ /**
144
+ * value: "offersV2.listings.condition"
145
+ * @const
146
+ */
147
+ "offersV2.listings.condition": string;
148
+ /**
149
+ * value: "offersV2.listings.dealDetails"
150
+ * @const
151
+ */
152
+ "offersV2.listings.dealDetails": string;
153
+ /**
154
+ * value: "offersV2.listings.isBuyBoxWinner"
155
+ * @const
156
+ */
157
+ "offersV2.listings.isBuyBoxWinner": string;
158
+ /**
159
+ * value: "offersV2.listings.loyaltyPoints"
160
+ * @const
161
+ */
162
+ "offersV2.listings.loyaltyPoints": string;
163
+ /**
164
+ * value: "offersV2.listings.merchantInfo"
165
+ * @const
166
+ */
167
+ "offersV2.listings.merchantInfo": string;
168
+ /**
169
+ * value: "offersV2.listings.price"
170
+ * @const
171
+ */
172
+ "offersV2.listings.price": string;
173
+ /**
174
+ * value: "offersV2.listings.type"
175
+ * @const
176
+ */
177
+ "offersV2.listings.type": string;
178
+ /**
179
+ * value: "parentASIN"
180
+ * @const
181
+ */
182
+ parentASIN: 'parentASIN';
183
+ /**
184
+ * value: "searchRefinements"
185
+ * @const
186
+ */
187
+ searchRefinements: 'searchRefinements';
188
+ }
189
+ /**
190
+ * *
191
+ */
192
+ export type SearchItemsResource = 'browseNodeInfo.browseNodes' | 'browseNodeInfo.browseNodes.ancestor' | 'browseNodeInfo.browseNodes.salesRank' | 'browseNodeInfo.websiteSalesRank' | 'customerReviews.count' | 'customerReviews.starRating' | 'images.primary.small' | 'images.primary.medium' | 'images.primary.large' | 'images.primary.highRes' | 'images.variants.small' | 'images.variants.medium' | 'images.variants.large' | 'images.variants.highRes' | 'itemInfo.byLineInfo' | 'itemInfo.contentInfo' | 'itemInfo.contentRating' | 'itemInfo.classifications' | 'itemInfo.externalIds' | 'itemInfo.features' | 'itemInfo.manufactureInfo' | 'itemInfo.productInfo' | 'itemInfo.technicalInfo' | 'itemInfo.title' | 'itemInfo.tradeInInfo' | 'offersV2.listings.availability' | 'offersV2.listings.condition' | 'offersV2.listings.dealDetails' | 'offersV2.listings.isBuyBoxWinner' | 'offersV2.listings.loyaltyPoints' | 'offersV2.listings.merchantInfo' | 'offersV2.listings.price' | 'offersV2.listings.type' | 'parentASIN' | 'searchRefinements';