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.
- package/LICENSE.txt +202 -0
- package/README.md +102 -0
- package/dist/ApiClient.d.ts +273 -0
- package/dist/ApiClient.js +895 -0
- package/dist/api/DefaultApi.d.ts +124 -0
- package/dist/api/DefaultApi.js +409 -0
- package/dist/api/TypedDefaultApi.d.ts +132 -0
- package/dist/api/TypedDefaultApi.js +223 -0
- package/dist/auth/OAuth2Config.d.ts +78 -0
- package/dist/auth/OAuth2Config.js +152 -0
- package/dist/auth/OAuth2TokenManager.d.ts +38 -0
- package/dist/auth/OAuth2TokenManager.js +177 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.js +657 -0
- package/dist/model/AccessDeniedExceptionResponseContent.d.ts +42 -0
- package/dist/model/AccessDeniedExceptionResponseContent.js +139 -0
- package/dist/model/AccessDeniedReason.d.ts +32 -0
- package/dist/model/AccessDeniedReason.js +65 -0
- package/dist/model/Availability.d.ts +27 -0
- package/dist/model/Availability.js +60 -0
- package/dist/model/BrowseNode.d.ts +35 -0
- package/dist/model/BrowseNode.js +184 -0
- package/dist/model/BrowseNodeAncestor.d.ts +32 -0
- package/dist/model/BrowseNodeAncestor.js +129 -0
- package/dist/model/BrowseNodeChild.d.ts +31 -0
- package/dist/model/BrowseNodeChild.js +116 -0
- package/dist/model/BrowseNodeInfo.d.ts +30 -0
- package/dist/model/BrowseNodeInfo.js +128 -0
- package/dist/model/BrowseNodesResult.d.ts +29 -0
- package/dist/model/BrowseNodesResult.js +114 -0
- package/dist/model/ByLineInfo.d.ts +31 -0
- package/dist/model/ByLineInfo.js +141 -0
- package/dist/model/Classifications.d.ts +30 -0
- package/dist/model/Classifications.js +107 -0
- package/dist/model/Condition.d.ts +27 -0
- package/dist/model/Condition.js +60 -0
- package/dist/model/ContentInfo.d.ts +32 -0
- package/dist/model/ContentInfo.js +135 -0
- package/dist/model/ContentRating.d.ts +29 -0
- package/dist/model/ContentRating.js +94 -0
- package/dist/model/Contributor.d.ts +32 -0
- package/dist/model/Contributor.js +128 -0
- package/dist/model/CustomerReviews.d.ts +30 -0
- package/dist/model/CustomerReviews.js +102 -0
- package/dist/model/DealDetails.d.ts +34 -0
- package/dist/model/DealDetails.js +144 -0
- package/dist/model/DeliveryFlag.d.ts +37 -0
- package/dist/model/DeliveryFlag.js +70 -0
- package/dist/model/DimensionBasedAttribute.d.ts +32 -0
- package/dist/model/DimensionBasedAttribute.js +133 -0
- package/dist/model/ErrorData.d.ts +41 -0
- package/dist/model/ErrorData.js +131 -0
- package/dist/model/ExternalIds.d.ts +31 -0
- package/dist/model/ExternalIds.js +120 -0
- package/dist/model/Feed.d.ts +44 -0
- package/dist/model/Feed.js +152 -0
- package/dist/model/GetBrowseNodesRequestContent.d.ts +43 -0
- package/dist/model/GetBrowseNodesRequestContent.js +158 -0
- package/dist/model/GetBrowseNodesResource.d.ts +27 -0
- package/dist/model/GetBrowseNodesResource.js +60 -0
- package/dist/model/GetBrowseNodesResponseContent.d.ts +30 -0
- package/dist/model/GetBrowseNodesResponseContent.js +128 -0
- package/dist/model/GetFeedRequestContent.d.ts +38 -0
- package/dist/model/GetFeedRequestContent.js +114 -0
- package/dist/model/GetFeedResponseContent.d.ts +38 -0
- package/dist/model/GetFeedResponseContent.js +114 -0
- package/dist/model/GetItemsRequestContent.d.ts +45 -0
- package/dist/model/GetItemsRequestContent.js +188 -0
- package/dist/model/GetItemsResource.d.ts +187 -0
- package/dist/model/GetItemsResource.js +220 -0
- package/dist/model/GetItemsResponseContent.d.ts +30 -0
- package/dist/model/GetItemsResponseContent.js +128 -0
- package/dist/model/GetReportRequestContent.d.ts +38 -0
- package/dist/model/GetReportRequestContent.js +114 -0
- package/dist/model/GetReportResponseContent.d.ts +38 -0
- package/dist/model/GetReportResponseContent.js +114 -0
- package/dist/model/GetVariationsRequestContent.d.ts +48 -0
- package/dist/model/GetVariationsRequestContent.js +209 -0
- package/dist/model/GetVariationsResource.d.ts +202 -0
- package/dist/model/GetVariationsResource.js +235 -0
- package/dist/model/GetVariationsResponseContent.d.ts +30 -0
- package/dist/model/GetVariationsResponseContent.js +128 -0
- package/dist/model/ImageSize.d.ts +31 -0
- package/dist/model/ImageSize.js +108 -0
- package/dist/model/ImageType.d.ts +32 -0
- package/dist/model/ImageType.js +133 -0
- package/dist/model/Images.d.ts +30 -0
- package/dist/model/Images.js +127 -0
- package/dist/model/InternalServerExceptionResponseContent.d.ts +40 -0
- package/dist/model/InternalServerExceptionResponseContent.js +128 -0
- package/dist/model/Item.d.ts +38 -0
- package/dist/model/Item.js +228 -0
- package/dist/model/ItemInfo.d.ts +39 -0
- package/dist/model/ItemInfo.js +234 -0
- package/dist/model/ItemsResult.d.ts +29 -0
- package/dist/model/ItemsResult.js +114 -0
- package/dist/model/LanguageType.d.ts +30 -0
- package/dist/model/LanguageType.js +104 -0
- package/dist/model/Languages.d.ts +31 -0
- package/dist/model/Languages.js +138 -0
- package/dist/model/ListFeedsResponseContent.d.ts +29 -0
- package/dist/model/ListFeedsResponseContent.js +112 -0
- package/dist/model/ListReportsResponseContent.d.ts +38 -0
- package/dist/model/ListReportsResponseContent.js +132 -0
- package/dist/model/ManufactureInfo.d.ts +31 -0
- package/dist/model/ManufactureInfo.js +120 -0
- package/dist/model/Money.d.ts +31 -0
- package/dist/model/Money.js +112 -0
- package/dist/model/MultiValuedAttribute.d.ts +31 -0
- package/dist/model/MultiValuedAttribute.js +117 -0
- package/dist/model/OfferAvailabilityV2.d.ts +32 -0
- package/dist/model/OfferAvailabilityV2.js +120 -0
- package/dist/model/OfferConditionV2.d.ts +31 -0
- package/dist/model/OfferConditionV2.js +116 -0
- package/dist/model/OfferListingV2.d.ts +37 -0
- package/dist/model/OfferListingV2.js +189 -0
- package/dist/model/OfferLoyaltyPointsV2.d.ts +29 -0
- package/dist/model/OfferLoyaltyPointsV2.js +88 -0
- package/dist/model/OfferMerchantInfoV2.d.ts +30 -0
- package/dist/model/OfferMerchantInfoV2.js +104 -0
- package/dist/model/OfferPriceV2.d.ts +32 -0
- package/dist/model/OfferPriceV2.js +135 -0
- package/dist/model/OfferSavingBasis.d.ts +31 -0
- package/dist/model/OfferSavingBasis.js +115 -0
- package/dist/model/OfferSavings.d.ts +30 -0
- package/dist/model/OfferSavings.js +102 -0
- package/dist/model/OfferType.d.ts +32 -0
- package/dist/model/OfferType.js +65 -0
- package/dist/model/OffersV2.d.ts +29 -0
- package/dist/model/OffersV2.js +114 -0
- package/dist/model/ProductInfo.d.ts +34 -0
- package/dist/model/ProductInfo.js +162 -0
- package/dist/model/Rating.d.ts +29 -0
- package/dist/model/Rating.js +88 -0
- package/dist/model/Refinement.d.ts +31 -0
- package/dist/model/Refinement.js +138 -0
- package/dist/model/RefinementBin.d.ts +30 -0
- package/dist/model/RefinementBin.js +104 -0
- package/dist/model/ReportMetadata.d.ts +44 -0
- package/dist/model/ReportMetadata.js +152 -0
- package/dist/model/ResourceNotFoundExceptionResponseContent.d.ts +44 -0
- package/dist/model/ResourceNotFoundExceptionResponseContent.js +156 -0
- package/dist/model/SavingBasisType.d.ts +37 -0
- package/dist/model/SavingBasisType.js +70 -0
- package/dist/model/SearchItemsRequestContent.d.ts +51 -0
- package/dist/model/SearchItemsRequestContent.js +343 -0
- package/dist/model/SearchItemsResource.d.ts +192 -0
- package/dist/model/SearchItemsResource.js +225 -0
- package/dist/model/SearchItemsResponseContent.d.ts +30 -0
- package/dist/model/SearchItemsResponseContent.js +128 -0
- package/dist/model/SearchRefinements.d.ts +31 -0
- package/dist/model/SearchRefinements.js +140 -0
- package/dist/model/SearchResult.d.ts +32 -0
- package/dist/model/SearchResult.js +148 -0
- package/dist/model/SingleBooleanValuedAttribute.d.ts +31 -0
- package/dist/model/SingleBooleanValuedAttribute.js +112 -0
- package/dist/model/SingleIntegerValuedAttribute.d.ts +31 -0
- package/dist/model/SingleIntegerValuedAttribute.js +112 -0
- package/dist/model/SingleStringValuedAttribute.d.ts +31 -0
- package/dist/model/SingleStringValuedAttribute.js +116 -0
- package/dist/model/SortBy.d.ts +47 -0
- package/dist/model/SortBy.js +80 -0
- package/dist/model/TechnicalInfo.d.ts +30 -0
- package/dist/model/TechnicalInfo.js +108 -0
- package/dist/model/ThrottleExceptionResponseContent.d.ts +42 -0
- package/dist/model/ThrottleExceptionResponseContent.js +152 -0
- package/dist/model/TradeInInfo.d.ts +30 -0
- package/dist/model/TradeInInfo.js +102 -0
- package/dist/model/TradeInPrice.d.ts +31 -0
- package/dist/model/TradeInPrice.js +112 -0
- package/dist/model/UnauthorizedExceptionReason.d.ts +62 -0
- package/dist/model/UnauthorizedExceptionReason.js +95 -0
- package/dist/model/UnauthorizedExceptionResponseContent.d.ts +41 -0
- package/dist/model/UnauthorizedExceptionResponseContent.js +137 -0
- package/dist/model/UnitBasedAttribute.d.ts +32 -0
- package/dist/model/UnitBasedAttribute.js +124 -0
- package/dist/model/ValidationExceptionField.d.ts +41 -0
- package/dist/model/ValidationExceptionField.js +129 -0
- package/dist/model/ValidationExceptionReason.d.ts +47 -0
- package/dist/model/ValidationExceptionReason.js +80 -0
- package/dist/model/ValidationExceptionResponseContent.d.ts +43 -0
- package/dist/model/ValidationExceptionResponseContent.js +170 -0
- package/dist/model/VariationAttribute.d.ts +30 -0
- package/dist/model/VariationAttribute.js +104 -0
- package/dist/model/VariationDimension.d.ts +32 -0
- package/dist/model/VariationDimension.js +132 -0
- package/dist/model/VariationSummary.d.ts +32 -0
- package/dist/model/VariationSummary.js +146 -0
- package/dist/model/VariationSummaryPrice.d.ts +30 -0
- package/dist/model/VariationSummaryPrice.js +107 -0
- package/dist/model/VariationsResult.d.ts +30 -0
- package/dist/model/VariationsResult.js +128 -0
- package/dist/model/WebsiteSalesRank.d.ts +32 -0
- package/dist/model/WebsiteSalesRank.js +124 -0
- package/package.json +67 -0
|
@@ -0,0 +1,139 @@
|
|
|
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 _AccessDeniedReason = _interopRequireDefault(require("./AccessDeniedReason"));
|
|
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 AccessDeniedExceptionResponseContent model module.
|
|
34
|
+
* @module model/AccessDeniedExceptionResponseContent
|
|
35
|
+
* @version 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
var AccessDeniedExceptionResponseContent = /*#__PURE__*/function () {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a new <code>AccessDeniedExceptionResponseContent</code>.
|
|
40
|
+
* User does not have sufficient access to perform this action.
|
|
41
|
+
* @alias module:model/AccessDeniedExceptionResponseContent
|
|
42
|
+
* @param message {String}
|
|
43
|
+
* @param reason {module:model/AccessDeniedReason}
|
|
44
|
+
*/
|
|
45
|
+
function AccessDeniedExceptionResponseContent(message, reason) {
|
|
46
|
+
_classCallCheck(this, AccessDeniedExceptionResponseContent);
|
|
47
|
+
AccessDeniedExceptionResponseContent.initialize(this, message, reason);
|
|
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(AccessDeniedExceptionResponseContent, null, [{
|
|
56
|
+
key: "initialize",
|
|
57
|
+
value: function initialize(obj, message, reason) {
|
|
58
|
+
obj['message'] = message;
|
|
59
|
+
obj['reason'] = reason;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a <code>AccessDeniedExceptionResponseContent</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/AccessDeniedExceptionResponseContent} obj Optional instance to populate.
|
|
67
|
+
* @return {module:model/AccessDeniedExceptionResponseContent} The populated <code>AccessDeniedExceptionResponseContent</code> instance.
|
|
68
|
+
*/
|
|
69
|
+
}, {
|
|
70
|
+
key: "constructFromObject",
|
|
71
|
+
value: function constructFromObject(data, obj) {
|
|
72
|
+
if (data) {
|
|
73
|
+
obj = obj || new AccessDeniedExceptionResponseContent();
|
|
74
|
+
if (data.hasOwnProperty('type')) {
|
|
75
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('message')) {
|
|
78
|
+
obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('reason')) {
|
|
81
|
+
obj['reason'] = _AccessDeniedReason["default"].constructFromObject(data['reason']);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return obj;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Validates the JSON data with respect to <code>AccessDeniedExceptionResponseContent</code>.
|
|
89
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
90
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>AccessDeniedExceptionResponseContent</code>.
|
|
91
|
+
*/
|
|
92
|
+
}, {
|
|
93
|
+
key: "validateJSON",
|
|
94
|
+
value: function validateJSON(data) {
|
|
95
|
+
// check to make sure all required properties are present in the JSON string
|
|
96
|
+
var _iterator = _createForOfIteratorHelper(AccessDeniedExceptionResponseContent.RequiredProperties),
|
|
97
|
+
_step;
|
|
98
|
+
try {
|
|
99
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
100
|
+
var property = _step.value;
|
|
101
|
+
if (!data.hasOwnProperty(property)) {
|
|
102
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
// ensure the json data is a string
|
|
106
|
+
} catch (err) {
|
|
107
|
+
_iterator.e(err);
|
|
108
|
+
} finally {
|
|
109
|
+
_iterator.f();
|
|
110
|
+
}
|
|
111
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
112
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
113
|
+
}
|
|
114
|
+
// ensure the json data is a string
|
|
115
|
+
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
117
|
+
}
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
}]);
|
|
121
|
+
}();
|
|
122
|
+
AccessDeniedExceptionResponseContent.RequiredProperties = ["message", "reason"];
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The exception type identifier for clients to programmatically identify the exception
|
|
126
|
+
* @member {String} type
|
|
127
|
+
*/
|
|
128
|
+
AccessDeniedExceptionResponseContent.prototype['type'] = undefined;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @member {String} message
|
|
132
|
+
*/
|
|
133
|
+
AccessDeniedExceptionResponseContent.prototype['message'] = undefined;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @member {module:model/AccessDeniedReason} reason
|
|
137
|
+
*/
|
|
138
|
+
AccessDeniedExceptionResponseContent.prototype['reason'] = undefined;
|
|
139
|
+
var _default = exports["default"] = AccessDeniedExceptionResponseContent;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum class AccessDeniedReason.
|
|
3
|
+
* @enum {}
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
export default class AccessDeniedReason {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>AccessDeniedReason</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/AccessDeniedReason} The enum <code>AccessDeniedReason</code> value.
|
|
11
|
+
*/
|
|
12
|
+
static constructFromObject(object: any): AccessDeniedReason;
|
|
13
|
+
/**
|
|
14
|
+
* value: "AssociateNotEligible"
|
|
15
|
+
* @const
|
|
16
|
+
*/
|
|
17
|
+
AssociateNotEligible: 'AssociateNotEligible';
|
|
18
|
+
/**
|
|
19
|
+
* value: "AuthorizationFailed"
|
|
20
|
+
* @const
|
|
21
|
+
*/
|
|
22
|
+
AuthorizationFailed: 'AuthorizationFailed';
|
|
23
|
+
/**
|
|
24
|
+
* value: "Other"
|
|
25
|
+
* @const
|
|
26
|
+
*/
|
|
27
|
+
Other: 'Other';
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* *
|
|
31
|
+
*/
|
|
32
|
+
export type AccessDeniedReason = 'AssociateNotEligible' | 'AuthorizationFailed' | 'Other';
|
|
@@ -0,0 +1,65 @@
|
|
|
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 AccessDeniedReason.
|
|
31
|
+
* @enum {}
|
|
32
|
+
* @readonly
|
|
33
|
+
*/
|
|
34
|
+
var AccessDeniedReason = exports["default"] = /*#__PURE__*/function () {
|
|
35
|
+
function AccessDeniedReason() {
|
|
36
|
+
_classCallCheck(this, AccessDeniedReason);
|
|
37
|
+
/**
|
|
38
|
+
* value: "AssociateNotEligible"
|
|
39
|
+
* @const
|
|
40
|
+
*/
|
|
41
|
+
_defineProperty(this, "AssociateNotEligible", "AssociateNotEligible");
|
|
42
|
+
/**
|
|
43
|
+
* value: "AuthorizationFailed"
|
|
44
|
+
* @const
|
|
45
|
+
*/
|
|
46
|
+
_defineProperty(this, "AuthorizationFailed", "AuthorizationFailed");
|
|
47
|
+
/**
|
|
48
|
+
* value: "Other"
|
|
49
|
+
* @const
|
|
50
|
+
*/
|
|
51
|
+
_defineProperty(this, "Other", "Other");
|
|
52
|
+
}
|
|
53
|
+
return _createClass(AccessDeniedReason, null, [{
|
|
54
|
+
key: "constructFromObject",
|
|
55
|
+
value:
|
|
56
|
+
/**
|
|
57
|
+
* Returns a <code>AccessDeniedReason</code> enum value from a Javascript object name.
|
|
58
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
59
|
+
* @return {module:model/AccessDeniedReason} The enum <code>AccessDeniedReason</code> value.
|
|
60
|
+
*/
|
|
61
|
+
function constructFromObject(object) {
|
|
62
|
+
return object;
|
|
63
|
+
}
|
|
64
|
+
}]);
|
|
65
|
+
}();
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum class Availability.
|
|
3
|
+
* @enum {}
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
export default class Availability {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>Availability</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/Availability} The enum <code>Availability</code> value.
|
|
11
|
+
*/
|
|
12
|
+
static constructFromObject(object: any): Availability;
|
|
13
|
+
/**
|
|
14
|
+
* value: "Available"
|
|
15
|
+
* @const
|
|
16
|
+
*/
|
|
17
|
+
Available: 'Available';
|
|
18
|
+
/**
|
|
19
|
+
* value: "IncludeOutOfStock"
|
|
20
|
+
* @const
|
|
21
|
+
*/
|
|
22
|
+
IncludeOutOfStock: 'IncludeOutOfStock';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* *
|
|
26
|
+
*/
|
|
27
|
+
export type Availability = 'Available' | 'IncludeOutOfStock';
|
|
@@ -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 Availability.
|
|
31
|
+
* @enum {}
|
|
32
|
+
* @readonly
|
|
33
|
+
*/
|
|
34
|
+
var Availability = exports["default"] = /*#__PURE__*/function () {
|
|
35
|
+
function Availability() {
|
|
36
|
+
_classCallCheck(this, Availability);
|
|
37
|
+
/**
|
|
38
|
+
* value: "Available"
|
|
39
|
+
* @const
|
|
40
|
+
*/
|
|
41
|
+
_defineProperty(this, "Available", "Available");
|
|
42
|
+
/**
|
|
43
|
+
* value: "IncludeOutOfStock"
|
|
44
|
+
* @const
|
|
45
|
+
*/
|
|
46
|
+
_defineProperty(this, "IncludeOutOfStock", "IncludeOutOfStock");
|
|
47
|
+
}
|
|
48
|
+
return _createClass(Availability, null, [{
|
|
49
|
+
key: "constructFromObject",
|
|
50
|
+
value:
|
|
51
|
+
/**
|
|
52
|
+
* Returns a <code>Availability</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/Availability} The enum <code>Availability</code> value.
|
|
55
|
+
*/
|
|
56
|
+
function constructFromObject(object) {
|
|
57
|
+
return object;
|
|
58
|
+
}
|
|
59
|
+
}]);
|
|
60
|
+
}();
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default BrowseNode;
|
|
2
|
+
/**
|
|
3
|
+
* The BrowseNode model module.
|
|
4
|
+
* @module model/BrowseNode
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare class BrowseNode {
|
|
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>BrowseNode</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/BrowseNode} obj Optional instance to populate.
|
|
19
|
+
* @return {module:model/BrowseNode} The populated <code>BrowseNode</code> instance.
|
|
20
|
+
*/
|
|
21
|
+
static constructFromObject(data: any, obj: any): BrowseNode;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the JSON data with respect to <code>BrowseNode</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>BrowseNode</code>.
|
|
26
|
+
*/
|
|
27
|
+
static validateJSON(data: any): boolean;
|
|
28
|
+
ancestor: import('./BrowseNodeAncestor').default;
|
|
29
|
+
children: import('./BrowseNodeChild').default[];
|
|
30
|
+
contextFreeName: string;
|
|
31
|
+
displayName: string;
|
|
32
|
+
id: string;
|
|
33
|
+
isRoot: boolean;
|
|
34
|
+
salesRank: number;
|
|
35
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
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 _BrowseNodeAncestor = _interopRequireDefault(require("./BrowseNodeAncestor"));
|
|
9
|
+
var _BrowseNodeChild = _interopRequireDefault(require("./BrowseNodeChild"));
|
|
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 BrowseNode model module.
|
|
35
|
+
* @module model/BrowseNode
|
|
36
|
+
* @version 1.0.0
|
|
37
|
+
*/
|
|
38
|
+
var BrowseNode = /*#__PURE__*/function () {
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a new <code>BrowseNode</code>.
|
|
41
|
+
* Container for BrowseNode information which includes BrowseNodeId, DisplayName, ContextFreeName, IsRoot, Ancestor, Children, SalesRank associated, etc.
|
|
42
|
+
* @alias module:model/BrowseNode
|
|
43
|
+
*/
|
|
44
|
+
function BrowseNode() {
|
|
45
|
+
_classCallCheck(this, BrowseNode);
|
|
46
|
+
BrowseNode.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(BrowseNode, null, [{
|
|
55
|
+
key: "initialize",
|
|
56
|
+
value: function initialize(obj) {}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>BrowseNode</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/BrowseNode} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/BrowseNode} The populated <code>BrowseNode</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new BrowseNode();
|
|
70
|
+
if (data.hasOwnProperty('ancestor')) {
|
|
71
|
+
obj['ancestor'] = _BrowseNodeAncestor["default"].constructFromObject(data['ancestor']);
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('children')) {
|
|
74
|
+
obj['children'] = _ApiClient["default"].convertToType(data['children'], [_BrowseNodeChild["default"]]);
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('contextFreeName')) {
|
|
77
|
+
obj['contextFreeName'] = _ApiClient["default"].convertToType(data['contextFreeName'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('displayName')) {
|
|
80
|
+
obj['displayName'] = _ApiClient["default"].convertToType(data['displayName'], 'String');
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('id')) {
|
|
83
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('isRoot')) {
|
|
86
|
+
obj['isRoot'] = _ApiClient["default"].convertToType(data['isRoot'], 'Boolean');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('salesRank')) {
|
|
89
|
+
obj['salesRank'] = _ApiClient["default"].convertToType(data['salesRank'], 'Number');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return obj;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Validates the JSON data with respect to <code>BrowseNode</code>.
|
|
97
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
98
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>BrowseNode</code>.
|
|
99
|
+
*/
|
|
100
|
+
}, {
|
|
101
|
+
key: "validateJSON",
|
|
102
|
+
value: function validateJSON(data) {
|
|
103
|
+
// validate the optional field `ancestor`
|
|
104
|
+
if (data['ancestor']) {
|
|
105
|
+
// data not null
|
|
106
|
+
_BrowseNodeAncestor["default"].validateJSON(data['ancestor']);
|
|
107
|
+
}
|
|
108
|
+
if (data['children']) {
|
|
109
|
+
// data not null
|
|
110
|
+
// ensure the json data is an array
|
|
111
|
+
if (!Array.isArray(data['children'])) {
|
|
112
|
+
throw new Error("Expected the field `children` to be an array in the JSON data but got " + data['children']);
|
|
113
|
+
}
|
|
114
|
+
// validate the optional field `children` (array)
|
|
115
|
+
var _iterator = _createForOfIteratorHelper(data['children']),
|
|
116
|
+
_step;
|
|
117
|
+
try {
|
|
118
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
119
|
+
var item = _step.value;
|
|
120
|
+
_BrowseNodeChild["default"].validateJSON(item);
|
|
121
|
+
}
|
|
122
|
+
} catch (err) {
|
|
123
|
+
_iterator.e(err);
|
|
124
|
+
} finally {
|
|
125
|
+
_iterator.f();
|
|
126
|
+
}
|
|
127
|
+
;
|
|
128
|
+
}
|
|
129
|
+
// ensure the json data is a string
|
|
130
|
+
if (data['contextFreeName'] && !(typeof data['contextFreeName'] === 'string' || data['contextFreeName'] instanceof String)) {
|
|
131
|
+
throw new Error("Expected the field `contextFreeName` to be a primitive type in the JSON string but got " + data['contextFreeName']);
|
|
132
|
+
}
|
|
133
|
+
// ensure the json data is a string
|
|
134
|
+
if (data['displayName'] && !(typeof data['displayName'] === 'string' || data['displayName'] instanceof String)) {
|
|
135
|
+
throw new Error("Expected the field `displayName` to be a primitive type in the JSON string but got " + data['displayName']);
|
|
136
|
+
}
|
|
137
|
+
// ensure the json data is a string
|
|
138
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
139
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
140
|
+
}
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
}]);
|
|
144
|
+
}();
|
|
145
|
+
/**
|
|
146
|
+
* @member {module:model/BrowseNodeAncestor} ancestor
|
|
147
|
+
*/
|
|
148
|
+
BrowseNode.prototype['ancestor'] = undefined;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* List of BrowseNode Children for a particular BrowseNode.
|
|
152
|
+
* @member {Array.<module:model/BrowseNodeChild>} children
|
|
153
|
+
*/
|
|
154
|
+
BrowseNode.prototype['children'] = undefined;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Indicates a displayable name for a BrowseNode that is fully context free. For e.g. DisplayName of BrowseNodeId: 3060 in US marketplace is 'Orphans & Foster Homes'. One can not infer which root category this browse node belongs to unless we have the ancestry ladder for this browse node i.e. it requires a 'context' for being intuitive. However, the ContextFreeName of this browse node is 'Children's Orphans & Foster Homes Books'. Note that, for a BrowseNode whose DisplayName is already context free will have the same ContextFreeName as DisplayName.
|
|
158
|
+
* @member {String} contextFreeName
|
|
159
|
+
*/
|
|
160
|
+
BrowseNode.prototype['contextFreeName'] = undefined;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The display name of the BrowseNode as visible on the Amazon retail website.
|
|
164
|
+
* @member {String} displayName
|
|
165
|
+
*/
|
|
166
|
+
BrowseNode.prototype['displayName'] = undefined;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Indicates the unique identifier of the BrowseNode
|
|
170
|
+
* @member {String} id
|
|
171
|
+
*/
|
|
172
|
+
BrowseNode.prototype['id'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Indicates if the current BrowseNode is a root category.
|
|
176
|
+
* @member {Boolean} isRoot
|
|
177
|
+
*/
|
|
178
|
+
BrowseNode.prototype['isRoot'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @member {Number} salesRank
|
|
182
|
+
*/
|
|
183
|
+
BrowseNode.prototype['salesRank'] = undefined;
|
|
184
|
+
var _default = exports["default"] = BrowseNode;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default BrowseNodeAncestor;
|
|
2
|
+
/**
|
|
3
|
+
* The BrowseNodeAncestor model module.
|
|
4
|
+
* @module model/BrowseNodeAncestor
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare class BrowseNodeAncestor {
|
|
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>BrowseNodeAncestor</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/BrowseNodeAncestor} obj Optional instance to populate.
|
|
19
|
+
* @return {module:model/BrowseNodeAncestor} The populated <code>BrowseNodeAncestor</code> instance.
|
|
20
|
+
*/
|
|
21
|
+
static constructFromObject(data: any, obj: any): BrowseNodeAncestor;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the JSON data with respect to <code>BrowseNodeAncestor</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>BrowseNodeAncestor</code>.
|
|
26
|
+
*/
|
|
27
|
+
static validateJSON(data: any): boolean;
|
|
28
|
+
ancestor: import('./BrowseNodeAncestor').default;
|
|
29
|
+
contextFreeName: string;
|
|
30
|
+
displayName: string;
|
|
31
|
+
id: string;
|
|
32
|
+
}
|