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,43 @@
1
+ export default GetBrowseNodesRequestContent;
2
+ /**
3
+ * The GetBrowseNodesRequestContent model module.
4
+ * @module model/GetBrowseNodesRequestContent
5
+ * @version 1.0.0
6
+ */
7
+ declare class GetBrowseNodesRequestContent {
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, partnerTag: any, browseNodeIds: any): void;
14
+ /**
15
+ * Constructs a <code>GetBrowseNodesRequestContent</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/GetBrowseNodesRequestContent} obj Optional instance to populate.
19
+ * @return {module:model/GetBrowseNodesRequestContent} The populated <code>GetBrowseNodesRequestContent</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): GetBrowseNodesRequestContent;
22
+ /**
23
+ * Validates the JSON data with respect to <code>GetBrowseNodesRequestContent</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>GetBrowseNodesRequestContent</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ /**
29
+ * Constructs a new <code>GetBrowseNodesRequestContent</code>.
30
+ * Input for the GetBrowseNodes operation to retrieve browse node information.
31
+ * @alias module:model/GetBrowseNodesRequestContent
32
+ * @param partnerTag {String} Unique ID for a partner. Type: String (Non-Empty) Default Value: None Example: 'xyz-20'
33
+ * @param browseNodeIds {Array.<String>} List of BrowseNodeIds. A BrowseNodeId is 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). Type: List of Strings (Positive Long only) (up to 10) Default Value: None Example: ['283155', '3040']
34
+ */
35
+ constructor(partnerTag: string, browseNodeIds: Array<string>);
36
+ partnerTag: string;
37
+ browseNodeIds: string[];
38
+ languagesOfPreference: string[];
39
+ resources: import('./GetBrowseNodesResource').default[];
40
+ }
41
+ declare namespace GetBrowseNodesRequestContent {
42
+ let RequiredProperties: string[];
43
+ }
@@ -0,0 +1,158 @@
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 _GetBrowseNodesResource = _interopRequireDefault(require("./GetBrowseNodesResource"));
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 GetBrowseNodesRequestContent model module.
34
+ * @module model/GetBrowseNodesRequestContent
35
+ * @version 1.0.0
36
+ */
37
+ var GetBrowseNodesRequestContent = /*#__PURE__*/function () {
38
+ /**
39
+ * Constructs a new <code>GetBrowseNodesRequestContent</code>.
40
+ * Input for the GetBrowseNodes operation to retrieve browse node information.
41
+ * @alias module:model/GetBrowseNodesRequestContent
42
+ * @param partnerTag {String} Unique ID for a partner. Type: String (Non-Empty) Default Value: None Example: 'xyz-20'
43
+ * @param browseNodeIds {Array.<String>} List of BrowseNodeIds. A BrowseNodeId is 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). Type: List of Strings (Positive Long only) (up to 10) Default Value: None Example: ['283155', '3040']
44
+ */
45
+ function GetBrowseNodesRequestContent(partnerTag, browseNodeIds) {
46
+ _classCallCheck(this, GetBrowseNodesRequestContent);
47
+ GetBrowseNodesRequestContent.initialize(this, partnerTag, browseNodeIds);
48
+ }
49
+
50
+ /**
51
+ * Initializes the fields of this object.
52
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
53
+ * Only for internal use.
54
+ */
55
+ return _createClass(GetBrowseNodesRequestContent, null, [{
56
+ key: "initialize",
57
+ value: function initialize(obj, partnerTag, browseNodeIds) {
58
+ obj['partnerTag'] = partnerTag;
59
+ obj['browseNodeIds'] = browseNodeIds;
60
+ }
61
+
62
+ /**
63
+ * Constructs a <code>GetBrowseNodesRequestContent</code> from a plain JavaScript object, optionally creating a new instance.
64
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
65
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
66
+ * @param {module:model/GetBrowseNodesRequestContent} obj Optional instance to populate.
67
+ * @return {module:model/GetBrowseNodesRequestContent} The populated <code>GetBrowseNodesRequestContent</code> instance.
68
+ */
69
+ }, {
70
+ key: "constructFromObject",
71
+ value: function constructFromObject(data, obj) {
72
+ if (data) {
73
+ obj = obj || new GetBrowseNodesRequestContent();
74
+ if (data.hasOwnProperty('partnerTag')) {
75
+ obj['partnerTag'] = _ApiClient["default"].convertToType(data['partnerTag'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('browseNodeIds')) {
78
+ obj['browseNodeIds'] = _ApiClient["default"].convertToType(data['browseNodeIds'], ['String']);
79
+ }
80
+ if (data.hasOwnProperty('languagesOfPreference')) {
81
+ obj['languagesOfPreference'] = _ApiClient["default"].convertToType(data['languagesOfPreference'], ['String']);
82
+ }
83
+ if (data.hasOwnProperty('resources')) {
84
+ obj['resources'] = _ApiClient["default"].convertToType(data['resources'], [_GetBrowseNodesResource["default"]]);
85
+ }
86
+ }
87
+ return obj;
88
+ }
89
+
90
+ /**
91
+ * Validates the JSON data with respect to <code>GetBrowseNodesRequestContent</code>.
92
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
93
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetBrowseNodesRequestContent</code>.
94
+ */
95
+ }, {
96
+ key: "validateJSON",
97
+ value: function validateJSON(data) {
98
+ // check to make sure all required properties are present in the JSON string
99
+ var _iterator = _createForOfIteratorHelper(GetBrowseNodesRequestContent.RequiredProperties),
100
+ _step;
101
+ try {
102
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
103
+ var property = _step.value;
104
+ if (!data.hasOwnProperty(property)) {
105
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
106
+ }
107
+ }
108
+ // ensure the json data is a string
109
+ } catch (err) {
110
+ _iterator.e(err);
111
+ } finally {
112
+ _iterator.f();
113
+ }
114
+ if (data['partnerTag'] && !(typeof data['partnerTag'] === 'string' || data['partnerTag'] instanceof String)) {
115
+ throw new Error("Expected the field `partnerTag` to be a primitive type in the JSON string but got " + data['partnerTag']);
116
+ }
117
+ // ensure the json data is an array
118
+ if (!Array.isArray(data['browseNodeIds'])) {
119
+ throw new Error("Expected the field `browseNodeIds` to be an array in the JSON data but got " + data['browseNodeIds']);
120
+ }
121
+ // ensure the json data is an array
122
+ if (!Array.isArray(data['languagesOfPreference'])) {
123
+ throw new Error("Expected the field `languagesOfPreference` to be an array in the JSON data but got " + data['languagesOfPreference']);
124
+ }
125
+ // ensure the json data is an array
126
+ if (!Array.isArray(data['resources'])) {
127
+ throw new Error("Expected the field `resources` to be an array in the JSON data but got " + data['resources']);
128
+ }
129
+ return true;
130
+ }
131
+ }]);
132
+ }();
133
+ GetBrowseNodesRequestContent.RequiredProperties = ["partnerTag", "browseNodeIds"];
134
+
135
+ /**
136
+ * Unique ID for a partner. Type: String (Non-Empty) Default Value: None Example: 'xyz-20'
137
+ * @member {String} partnerTag
138
+ */
139
+ GetBrowseNodesRequestContent.prototype['partnerTag'] = undefined;
140
+
141
+ /**
142
+ * List of BrowseNodeIds. A BrowseNodeId is 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). Type: List of Strings (Positive Long only) (up to 10) Default Value: None Example: ['283155', '3040']
143
+ * @member {Array.<String>} browseNodeIds
144
+ */
145
+ GetBrowseNodesRequestContent.prototype['browseNodeIds'] = undefined;
146
+
147
+ /**
148
+ * Languages of preference in which the information should be returned in response. By default the information is returned in the default language of the marketplace. Expected locale format is the ISO 639 language code followed by underscore followed by the ISO 3166 country code (i.e. en_US, fr_CA etc.). Currently only single language of preference is supported. Type: List of Strings (Non-Empty) Default Value: None Example: ['en_US']
149
+ * @member {Array.<String>} languagesOfPreference
150
+ */
151
+ GetBrowseNodesRequestContent.prototype['languagesOfPreference'] = undefined;
152
+
153
+ /**
154
+ * Specifies the types of values to return. You can specify multiple resources in one request. For list of valid Resources for SearchItems operation, refer Resources Parameter. Type: List of String Default Value: ItemInfo.Title
155
+ * @member {Array.<module:model/GetBrowseNodesResource>} resources
156
+ */
157
+ GetBrowseNodesRequestContent.prototype['resources'] = undefined;
158
+ var _default = exports["default"] = GetBrowseNodesRequestContent;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Enum class GetBrowseNodesResource.
3
+ * @enum {}
4
+ * @readonly
5
+ */
6
+ export default class GetBrowseNodesResource {
7
+ /**
8
+ * Returns a <code>GetBrowseNodesResource</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/GetBrowseNodesResource} The enum <code>GetBrowseNodesResource</code> value.
11
+ */
12
+ static constructFromObject(object: any): GetBrowseNodesResource;
13
+ /**
14
+ * value: "browseNodes.ancestor"
15
+ * @const
16
+ */
17
+ ancestor: string;
18
+ /**
19
+ * value: "browseNodes.children"
20
+ * @const
21
+ */
22
+ children: string;
23
+ }
24
+ /**
25
+ * *
26
+ */
27
+ export type GetBrowseNodesResource = any;
@@ -0,0 +1,60 @@
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 GetBrowseNodesResource.
31
+ * @enum {}
32
+ * @readonly
33
+ */
34
+ var GetBrowseNodesResource = exports["default"] = /*#__PURE__*/function () {
35
+ function GetBrowseNodesResource() {
36
+ _classCallCheck(this, GetBrowseNodesResource);
37
+ /**
38
+ * value: "browseNodes.ancestor"
39
+ * @const
40
+ */
41
+ _defineProperty(this, "ancestor", "browseNodes.ancestor");
42
+ /**
43
+ * value: "browseNodes.children"
44
+ * @const
45
+ */
46
+ _defineProperty(this, "children", "browseNodes.children");
47
+ }
48
+ return _createClass(GetBrowseNodesResource, null, [{
49
+ key: "constructFromObject",
50
+ value:
51
+ /**
52
+ * Returns a <code>GetBrowseNodesResource</code> enum value from a Javascript object name.
53
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
54
+ * @return {module:model/GetBrowseNodesResource} The enum <code>GetBrowseNodesResource</code> value.
55
+ */
56
+ function constructFromObject(object) {
57
+ return object;
58
+ }
59
+ }]);
60
+ }();
@@ -0,0 +1,30 @@
1
+ export default GetBrowseNodesResponseContent;
2
+ /**
3
+ * The GetBrowseNodesResponseContent model module.
4
+ * @module model/GetBrowseNodesResponseContent
5
+ * @version 1.0.0
6
+ */
7
+ declare class GetBrowseNodesResponseContent {
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>GetBrowseNodesResponseContent</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/GetBrowseNodesResponseContent} obj Optional instance to populate.
19
+ * @return {module:model/GetBrowseNodesResponseContent} The populated <code>GetBrowseNodesResponseContent</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): GetBrowseNodesResponseContent;
22
+ /**
23
+ * Validates the JSON data with respect to <code>GetBrowseNodesResponseContent</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>GetBrowseNodesResponseContent</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ browseNodesResult: import('./BrowseNodesResult').default;
29
+ errors: import('./ErrorData').default[];
30
+ }
@@ -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
+ var _BrowseNodesResult = _interopRequireDefault(require("./BrowseNodesResult"));
9
+ var _ErrorData = _interopRequireDefault(require("./ErrorData"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ 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); }
12
+ 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; } } }; }
13
+ 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; } }
14
+ 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; }
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 GetBrowseNodesResponseContent model module.
35
+ * @module model/GetBrowseNodesResponseContent
36
+ * @version 1.0.0
37
+ */
38
+ var GetBrowseNodesResponseContent = /*#__PURE__*/function () {
39
+ /**
40
+ * Constructs a new <code>GetBrowseNodesResponseContent</code>.
41
+ * The response object for the GetBrowseNodes operation.
42
+ * @alias module:model/GetBrowseNodesResponseContent
43
+ */
44
+ function GetBrowseNodesResponseContent() {
45
+ _classCallCheck(this, GetBrowseNodesResponseContent);
46
+ GetBrowseNodesResponseContent.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(GetBrowseNodesResponseContent, null, [{
55
+ key: "initialize",
56
+ value: function initialize(obj) {}
57
+
58
+ /**
59
+ * Constructs a <code>GetBrowseNodesResponseContent</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/GetBrowseNodesResponseContent} obj Optional instance to populate.
63
+ * @return {module:model/GetBrowseNodesResponseContent} The populated <code>GetBrowseNodesResponseContent</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new GetBrowseNodesResponseContent();
70
+ if (data.hasOwnProperty('browseNodesResult')) {
71
+ obj['browseNodesResult'] = _BrowseNodesResult["default"].constructFromObject(data['browseNodesResult']);
72
+ }
73
+ if (data.hasOwnProperty('errors')) {
74
+ obj['errors'] = _ApiClient["default"].convertToType(data['errors'], [_ErrorData["default"]]);
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+
80
+ /**
81
+ * Validates the JSON data with respect to <code>GetBrowseNodesResponseContent</code>.
82
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
83
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetBrowseNodesResponseContent</code>.
84
+ */
85
+ }, {
86
+ key: "validateJSON",
87
+ value: function validateJSON(data) {
88
+ // validate the optional field `browseNodesResult`
89
+ if (data['browseNodesResult']) {
90
+ // data not null
91
+ _BrowseNodesResult["default"].validateJSON(data['browseNodesResult']);
92
+ }
93
+ if (data['errors']) {
94
+ // data not null
95
+ // ensure the json data is an array
96
+ if (!Array.isArray(data['errors'])) {
97
+ throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
98
+ }
99
+ // validate the optional field `errors` (array)
100
+ var _iterator = _createForOfIteratorHelper(data['errors']),
101
+ _step;
102
+ try {
103
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
104
+ var item = _step.value;
105
+ _ErrorData["default"].validateJSON(item);
106
+ }
107
+ } catch (err) {
108
+ _iterator.e(err);
109
+ } finally {
110
+ _iterator.f();
111
+ }
112
+ ;
113
+ }
114
+ return true;
115
+ }
116
+ }]);
117
+ }();
118
+ /**
119
+ * @member {module:model/BrowseNodesResult} browseNodesResult
120
+ */
121
+ GetBrowseNodesResponseContent.prototype['browseNodesResult'] = undefined;
122
+
123
+ /**
124
+ * List of partial errors encountered during request processing in an otherwise successful response
125
+ * @member {Array.<module:model/ErrorData>} errors
126
+ */
127
+ GetBrowseNodesResponseContent.prototype['errors'] = undefined;
128
+ var _default = exports["default"] = GetBrowseNodesResponseContent;
@@ -0,0 +1,38 @@
1
+ export default GetFeedRequestContent;
2
+ /**
3
+ * The GetFeedRequestContent model module.
4
+ * @module model/GetFeedRequestContent
5
+ * @version 1.0.0
6
+ */
7
+ declare class GetFeedRequestContent {
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, feedName: any): void;
14
+ /**
15
+ * Constructs a <code>GetFeedRequestContent</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/GetFeedRequestContent} obj Optional instance to populate.
19
+ * @return {module:model/GetFeedRequestContent} The populated <code>GetFeedRequestContent</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): GetFeedRequestContent;
22
+ /**
23
+ * Validates the JSON data with respect to <code>GetFeedRequestContent</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>GetFeedRequestContent</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ /**
29
+ * Constructs a new <code>GetFeedRequestContent</code>.
30
+ * @alias module:model/GetFeedRequestContent
31
+ * @param feedName {String}
32
+ */
33
+ constructor(feedName: string);
34
+ feedName: string;
35
+ }
36
+ declare namespace GetFeedRequestContent {
37
+ let RequiredProperties: string[];
38
+ }
@@ -0,0 +1,114 @@
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 _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; } } }; }
11
+ 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; } }
12
+ 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; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ 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); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); } /**
18
+ * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
19
+ *
20
+ * Licensed under the Apache License, Version 2.0 (the "License").
21
+ * You may not use this file except in compliance with the License.
22
+ * A copy of the License is located at
23
+ *
24
+ * http://www.apache.org/licenses/LICENSE-2.0
25
+ *
26
+ * or in the "license" file accompanying this file. This file is distributed
27
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
28
+ * express or implied. See the License for the specific language governing
29
+ * permissions and limitations under the License.
30
+ */
31
+ /**
32
+ * The GetFeedRequestContent model module.
33
+ * @module model/GetFeedRequestContent
34
+ * @version 1.0.0
35
+ */
36
+ var GetFeedRequestContent = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>GetFeedRequestContent</code>.
39
+ * @alias module:model/GetFeedRequestContent
40
+ * @param feedName {String}
41
+ */
42
+ function GetFeedRequestContent(feedName) {
43
+ _classCallCheck(this, GetFeedRequestContent);
44
+ GetFeedRequestContent.initialize(this, feedName);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(GetFeedRequestContent, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, feedName) {
55
+ obj['feedName'] = feedName;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>GetFeedRequestContent</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/GetFeedRequestContent} obj Optional instance to populate.
63
+ * @return {module:model/GetFeedRequestContent} The populated <code>GetFeedRequestContent</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new GetFeedRequestContent();
70
+ if (data.hasOwnProperty('feedName')) {
71
+ obj['feedName'] = _ApiClient["default"].convertToType(data['feedName'], 'String');
72
+ }
73
+ }
74
+ return obj;
75
+ }
76
+
77
+ /**
78
+ * Validates the JSON data with respect to <code>GetFeedRequestContent</code>.
79
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
80
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetFeedRequestContent</code>.
81
+ */
82
+ }, {
83
+ key: "validateJSON",
84
+ value: function validateJSON(data) {
85
+ // check to make sure all required properties are present in the JSON string
86
+ var _iterator = _createForOfIteratorHelper(GetFeedRequestContent.RequiredProperties),
87
+ _step;
88
+ try {
89
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
90
+ var property = _step.value;
91
+ if (!data.hasOwnProperty(property)) {
92
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
93
+ }
94
+ }
95
+ // ensure the json data is a string
96
+ } catch (err) {
97
+ _iterator.e(err);
98
+ } finally {
99
+ _iterator.f();
100
+ }
101
+ if (data['feedName'] && !(typeof data['feedName'] === 'string' || data['feedName'] instanceof String)) {
102
+ throw new Error("Expected the field `feedName` to be a primitive type in the JSON string but got " + data['feedName']);
103
+ }
104
+ return true;
105
+ }
106
+ }]);
107
+ }();
108
+ GetFeedRequestContent.RequiredProperties = ["feedName"];
109
+
110
+ /**
111
+ * @member {String} feedName
112
+ */
113
+ GetFeedRequestContent.prototype['feedName'] = undefined;
114
+ var _default = exports["default"] = GetFeedRequestContent;
@@ -0,0 +1,38 @@
1
+ export default GetFeedResponseContent;
2
+ /**
3
+ * The GetFeedResponseContent model module.
4
+ * @module model/GetFeedResponseContent
5
+ * @version 1.0.0
6
+ */
7
+ declare class GetFeedResponseContent {
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, url: any): void;
14
+ /**
15
+ * Constructs a <code>GetFeedResponseContent</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/GetFeedResponseContent} obj Optional instance to populate.
19
+ * @return {module:model/GetFeedResponseContent} The populated <code>GetFeedResponseContent</code> instance.
20
+ */
21
+ static constructFromObject(data: any, obj: any): GetFeedResponseContent;
22
+ /**
23
+ * Validates the JSON data with respect to <code>GetFeedResponseContent</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>GetFeedResponseContent</code>.
26
+ */
27
+ static validateJSON(data: any): boolean;
28
+ /**
29
+ * Constructs a new <code>GetFeedResponseContent</code>.
30
+ * @alias module:model/GetFeedResponseContent
31
+ * @param url {String}
32
+ */
33
+ constructor(url: string);
34
+ url: string;
35
+ }
36
+ declare namespace GetFeedResponseContent {
37
+ let RequiredProperties: string[];
38
+ }