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,148 @@
|
|
|
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 _Item = _interopRequireDefault(require("./Item"));
|
|
9
|
+
var _SearchRefinements = _interopRequireDefault(require("./SearchRefinements"));
|
|
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 SearchResult model module.
|
|
35
|
+
* @module model/SearchResult
|
|
36
|
+
* @version 1.0.0
|
|
37
|
+
*/
|
|
38
|
+
var SearchResult = /*#__PURE__*/function () {
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a new <code>SearchResult</code>.
|
|
41
|
+
* The container for SearchItems response. It consists of search results items and some meta-data about the search result like TotalResultCount, SearchURL and SearchRefinements.
|
|
42
|
+
* @alias module:model/SearchResult
|
|
43
|
+
*/
|
|
44
|
+
function SearchResult() {
|
|
45
|
+
_classCallCheck(this, SearchResult);
|
|
46
|
+
SearchResult.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(SearchResult, null, [{
|
|
55
|
+
key: "initialize",
|
|
56
|
+
value: function initialize(obj) {}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>SearchResult</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/SearchResult} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/SearchResult} The populated <code>SearchResult</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new SearchResult();
|
|
70
|
+
if (data.hasOwnProperty('totalResultCount')) {
|
|
71
|
+
obj['totalResultCount'] = _ApiClient["default"].convertToType(data['totalResultCount'], 'Number');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('searchURL')) {
|
|
74
|
+
obj['searchURL'] = _ApiClient["default"].convertToType(data['searchURL'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('items')) {
|
|
77
|
+
obj['items'] = _ApiClient["default"].convertToType(data['items'], [_Item["default"]]);
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('searchRefinements')) {
|
|
80
|
+
obj['searchRefinements'] = _SearchRefinements["default"].constructFromObject(data['searchRefinements']);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Validates the JSON data with respect to <code>SearchResult</code>.
|
|
88
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
89
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SearchResult</code>.
|
|
90
|
+
*/
|
|
91
|
+
}, {
|
|
92
|
+
key: "validateJSON",
|
|
93
|
+
value: function validateJSON(data) {
|
|
94
|
+
// ensure the json data is a string
|
|
95
|
+
if (data['searchURL'] && !(typeof data['searchURL'] === 'string' || data['searchURL'] instanceof String)) {
|
|
96
|
+
throw new Error("Expected the field `searchURL` to be a primitive type in the JSON string but got " + data['searchURL']);
|
|
97
|
+
}
|
|
98
|
+
if (data['items']) {
|
|
99
|
+
// data not null
|
|
100
|
+
// ensure the json data is an array
|
|
101
|
+
if (!Array.isArray(data['items'])) {
|
|
102
|
+
throw new Error("Expected the field `items` to be an array in the JSON data but got " + data['items']);
|
|
103
|
+
}
|
|
104
|
+
// validate the optional field `items` (array)
|
|
105
|
+
var _iterator = _createForOfIteratorHelper(data['items']),
|
|
106
|
+
_step;
|
|
107
|
+
try {
|
|
108
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
109
|
+
var item = _step.value;
|
|
110
|
+
_Item["default"].validateJSON(item);
|
|
111
|
+
}
|
|
112
|
+
} catch (err) {
|
|
113
|
+
_iterator.e(err);
|
|
114
|
+
} finally {
|
|
115
|
+
_iterator.f();
|
|
116
|
+
}
|
|
117
|
+
;
|
|
118
|
+
}
|
|
119
|
+
// validate the optional field `searchRefinements`
|
|
120
|
+
if (data['searchRefinements']) {
|
|
121
|
+
// data not null
|
|
122
|
+
_SearchRefinements["default"].validateJSON(data['searchRefinements']);
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
}]);
|
|
127
|
+
}();
|
|
128
|
+
/**
|
|
129
|
+
* @member {Number} totalResultCount
|
|
130
|
+
*/
|
|
131
|
+
SearchResult.prototype['totalResultCount'] = undefined;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @member {String} searchURL
|
|
135
|
+
*/
|
|
136
|
+
SearchResult.prototype['searchURL'] = undefined;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* List of Item which is a container for item information.
|
|
140
|
+
* @member {Array.<module:model/Item>} items
|
|
141
|
+
*/
|
|
142
|
+
SearchResult.prototype['items'] = undefined;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @member {module:model/SearchRefinements} searchRefinements
|
|
146
|
+
*/
|
|
147
|
+
SearchResult.prototype['searchRefinements'] = undefined;
|
|
148
|
+
var _default = exports["default"] = SearchResult;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default SingleBooleanValuedAttribute;
|
|
2
|
+
/**
|
|
3
|
+
* The SingleBooleanValuedAttribute model module.
|
|
4
|
+
* @module model/SingleBooleanValuedAttribute
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare class SingleBooleanValuedAttribute {
|
|
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>SingleBooleanValuedAttribute</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/SingleBooleanValuedAttribute} obj Optional instance to populate.
|
|
19
|
+
* @return {module:model/SingleBooleanValuedAttribute} The populated <code>SingleBooleanValuedAttribute</code> instance.
|
|
20
|
+
*/
|
|
21
|
+
static constructFromObject(data: any, obj: any): SingleBooleanValuedAttribute;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the JSON data with respect to <code>SingleBooleanValuedAttribute</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>SingleBooleanValuedAttribute</code>.
|
|
26
|
+
*/
|
|
27
|
+
static validateJSON(data: any): boolean;
|
|
28
|
+
displayValue: boolean;
|
|
29
|
+
label: string;
|
|
30
|
+
locale: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
16
|
+
*
|
|
17
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
18
|
+
* You may not use this file except in compliance with the License.
|
|
19
|
+
* A copy of the License is located at
|
|
20
|
+
*
|
|
21
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
24
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
25
|
+
* express or implied. See the License for the specific language governing
|
|
26
|
+
* permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The SingleBooleanValuedAttribute model module.
|
|
30
|
+
* @module model/SingleBooleanValuedAttribute
|
|
31
|
+
* @version 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
var SingleBooleanValuedAttribute = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>SingleBooleanValuedAttribute</code>.
|
|
36
|
+
* Container for attributes of single boolean-valued type.
|
|
37
|
+
* @alias module:model/SingleBooleanValuedAttribute
|
|
38
|
+
*/
|
|
39
|
+
function SingleBooleanValuedAttribute() {
|
|
40
|
+
_classCallCheck(this, SingleBooleanValuedAttribute);
|
|
41
|
+
SingleBooleanValuedAttribute.initialize(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(SingleBooleanValuedAttribute, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj) {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>SingleBooleanValuedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/SingleBooleanValuedAttribute} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/SingleBooleanValuedAttribute} The populated <code>SingleBooleanValuedAttribute</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new SingleBooleanValuedAttribute();
|
|
65
|
+
if (data.hasOwnProperty('displayValue')) {
|
|
66
|
+
obj['displayValue'] = _ApiClient["default"].convertToType(data['displayValue'], 'Boolean');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('label')) {
|
|
69
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('locale')) {
|
|
72
|
+
obj['locale'] = _ApiClient["default"].convertToType(data['locale'], 'String');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>SingleBooleanValuedAttribute</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SingleBooleanValuedAttribute</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
// ensure the json data is a string
|
|
87
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
88
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
89
|
+
}
|
|
90
|
+
// ensure the json data is a string
|
|
91
|
+
if (data['locale'] && !(typeof data['locale'] === 'string' || data['locale'] instanceof String)) {
|
|
92
|
+
throw new Error("Expected the field `locale` to be a primitive type in the JSON string but got " + data['locale']);
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
}]);
|
|
97
|
+
}();
|
|
98
|
+
/**
|
|
99
|
+
* @member {Boolean} displayValue
|
|
100
|
+
*/
|
|
101
|
+
SingleBooleanValuedAttribute.prototype['displayValue'] = undefined;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @member {String} label
|
|
105
|
+
*/
|
|
106
|
+
SingleBooleanValuedAttribute.prototype['label'] = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @member {String} locale
|
|
110
|
+
*/
|
|
111
|
+
SingleBooleanValuedAttribute.prototype['locale'] = undefined;
|
|
112
|
+
var _default = exports["default"] = SingleBooleanValuedAttribute;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default SingleIntegerValuedAttribute;
|
|
2
|
+
/**
|
|
3
|
+
* The SingleIntegerValuedAttribute model module.
|
|
4
|
+
* @module model/SingleIntegerValuedAttribute
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare class SingleIntegerValuedAttribute {
|
|
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>SingleIntegerValuedAttribute</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/SingleIntegerValuedAttribute} obj Optional instance to populate.
|
|
19
|
+
* @return {module:model/SingleIntegerValuedAttribute} The populated <code>SingleIntegerValuedAttribute</code> instance.
|
|
20
|
+
*/
|
|
21
|
+
static constructFromObject(data: any, obj: any): SingleIntegerValuedAttribute;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the JSON data with respect to <code>SingleIntegerValuedAttribute</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>SingleIntegerValuedAttribute</code>.
|
|
26
|
+
*/
|
|
27
|
+
static validateJSON(data: any): boolean;
|
|
28
|
+
displayValue: number;
|
|
29
|
+
label: string;
|
|
30
|
+
locale: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
16
|
+
*
|
|
17
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
18
|
+
* You may not use this file except in compliance with the License.
|
|
19
|
+
* A copy of the License is located at
|
|
20
|
+
*
|
|
21
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
24
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
25
|
+
* express or implied. See the License for the specific language governing
|
|
26
|
+
* permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The SingleIntegerValuedAttribute model module.
|
|
30
|
+
* @module model/SingleIntegerValuedAttribute
|
|
31
|
+
* @version 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
var SingleIntegerValuedAttribute = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>SingleIntegerValuedAttribute</code>.
|
|
36
|
+
* Container for attributes of single integer-valued type.
|
|
37
|
+
* @alias module:model/SingleIntegerValuedAttribute
|
|
38
|
+
*/
|
|
39
|
+
function SingleIntegerValuedAttribute() {
|
|
40
|
+
_classCallCheck(this, SingleIntegerValuedAttribute);
|
|
41
|
+
SingleIntegerValuedAttribute.initialize(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(SingleIntegerValuedAttribute, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj) {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>SingleIntegerValuedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/SingleIntegerValuedAttribute} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/SingleIntegerValuedAttribute} The populated <code>SingleIntegerValuedAttribute</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new SingleIntegerValuedAttribute();
|
|
65
|
+
if (data.hasOwnProperty('displayValue')) {
|
|
66
|
+
obj['displayValue'] = _ApiClient["default"].convertToType(data['displayValue'], 'Number');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('label')) {
|
|
69
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('locale')) {
|
|
72
|
+
obj['locale'] = _ApiClient["default"].convertToType(data['locale'], 'String');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>SingleIntegerValuedAttribute</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SingleIntegerValuedAttribute</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
// ensure the json data is a string
|
|
87
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
88
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
89
|
+
}
|
|
90
|
+
// ensure the json data is a string
|
|
91
|
+
if (data['locale'] && !(typeof data['locale'] === 'string' || data['locale'] instanceof String)) {
|
|
92
|
+
throw new Error("Expected the field `locale` to be a primitive type in the JSON string but got " + data['locale']);
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
}]);
|
|
97
|
+
}();
|
|
98
|
+
/**
|
|
99
|
+
* @member {Number} displayValue
|
|
100
|
+
*/
|
|
101
|
+
SingleIntegerValuedAttribute.prototype['displayValue'] = undefined;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @member {String} label
|
|
105
|
+
*/
|
|
106
|
+
SingleIntegerValuedAttribute.prototype['label'] = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @member {String} locale
|
|
110
|
+
*/
|
|
111
|
+
SingleIntegerValuedAttribute.prototype['locale'] = undefined;
|
|
112
|
+
var _default = exports["default"] = SingleIntegerValuedAttribute;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default SingleStringValuedAttribute;
|
|
2
|
+
/**
|
|
3
|
+
* The SingleStringValuedAttribute model module.
|
|
4
|
+
* @module model/SingleStringValuedAttribute
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare class SingleStringValuedAttribute {
|
|
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>SingleStringValuedAttribute</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/SingleStringValuedAttribute} obj Optional instance to populate.
|
|
19
|
+
* @return {module:model/SingleStringValuedAttribute} The populated <code>SingleStringValuedAttribute</code> instance.
|
|
20
|
+
*/
|
|
21
|
+
static constructFromObject(data: any, obj: any): SingleStringValuedAttribute;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the JSON data with respect to <code>SingleStringValuedAttribute</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>SingleStringValuedAttribute</code>.
|
|
26
|
+
*/
|
|
27
|
+
static validateJSON(data: any): boolean;
|
|
28
|
+
displayValue: string;
|
|
29
|
+
label: string;
|
|
30
|
+
locale: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
16
|
+
*
|
|
17
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
18
|
+
* You may not use this file except in compliance with the License.
|
|
19
|
+
* A copy of the License is located at
|
|
20
|
+
*
|
|
21
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
24
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
25
|
+
* express or implied. See the License for the specific language governing
|
|
26
|
+
* permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The SingleStringValuedAttribute model module.
|
|
30
|
+
* @module model/SingleStringValuedAttribute
|
|
31
|
+
* @version 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
var SingleStringValuedAttribute = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>SingleStringValuedAttribute</code>.
|
|
36
|
+
* Container for attributes of single string-valued type.
|
|
37
|
+
* @alias module:model/SingleStringValuedAttribute
|
|
38
|
+
*/
|
|
39
|
+
function SingleStringValuedAttribute() {
|
|
40
|
+
_classCallCheck(this, SingleStringValuedAttribute);
|
|
41
|
+
SingleStringValuedAttribute.initialize(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(SingleStringValuedAttribute, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj) {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>SingleStringValuedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/SingleStringValuedAttribute} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/SingleStringValuedAttribute} The populated <code>SingleStringValuedAttribute</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new SingleStringValuedAttribute();
|
|
65
|
+
if (data.hasOwnProperty('displayValue')) {
|
|
66
|
+
obj['displayValue'] = _ApiClient["default"].convertToType(data['displayValue'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('label')) {
|
|
69
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('locale')) {
|
|
72
|
+
obj['locale'] = _ApiClient["default"].convertToType(data['locale'], 'String');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>SingleStringValuedAttribute</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SingleStringValuedAttribute</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
// ensure the json data is a string
|
|
87
|
+
if (data['displayValue'] && !(typeof data['displayValue'] === 'string' || data['displayValue'] instanceof String)) {
|
|
88
|
+
throw new Error("Expected the field `displayValue` to be a primitive type in the JSON string but got " + data['displayValue']);
|
|
89
|
+
}
|
|
90
|
+
// ensure the json data is a string
|
|
91
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
92
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
93
|
+
}
|
|
94
|
+
// ensure the json data is a string
|
|
95
|
+
if (data['locale'] && !(typeof data['locale'] === 'string' || data['locale'] instanceof String)) {
|
|
96
|
+
throw new Error("Expected the field `locale` to be a primitive type in the JSON string but got " + data['locale']);
|
|
97
|
+
}
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
}]);
|
|
101
|
+
}();
|
|
102
|
+
/**
|
|
103
|
+
* @member {String} displayValue
|
|
104
|
+
*/
|
|
105
|
+
SingleStringValuedAttribute.prototype['displayValue'] = undefined;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @member {String} label
|
|
109
|
+
*/
|
|
110
|
+
SingleStringValuedAttribute.prototype['label'] = undefined;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @member {String} locale
|
|
114
|
+
*/
|
|
115
|
+
SingleStringValuedAttribute.prototype['locale'] = undefined;
|
|
116
|
+
var _default = exports["default"] = SingleStringValuedAttribute;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum class SortBy.
|
|
3
|
+
* @enum {}
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
export default class SortBy {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>SortBy</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/SortBy} The enum <code>SortBy</code> value.
|
|
11
|
+
*/
|
|
12
|
+
static constructFromObject(object: any): SortBy;
|
|
13
|
+
/**
|
|
14
|
+
* value: "AvgCustomerReviews"
|
|
15
|
+
* @const
|
|
16
|
+
*/
|
|
17
|
+
AvgCustomerReviews: 'AvgCustomerReviews';
|
|
18
|
+
/**
|
|
19
|
+
* value: "Featured"
|
|
20
|
+
* @const
|
|
21
|
+
*/
|
|
22
|
+
Featured: 'Featured';
|
|
23
|
+
/**
|
|
24
|
+
* value: "NewestArrivals"
|
|
25
|
+
* @const
|
|
26
|
+
*/
|
|
27
|
+
NewestArrivals: 'NewestArrivals';
|
|
28
|
+
/**
|
|
29
|
+
* value: "Price:HighToLow"
|
|
30
|
+
* @const
|
|
31
|
+
*/
|
|
32
|
+
"Price:HighToLow": string;
|
|
33
|
+
/**
|
|
34
|
+
* value: "Price:LowToHigh"
|
|
35
|
+
* @const
|
|
36
|
+
*/
|
|
37
|
+
"Price:LowToHigh": string;
|
|
38
|
+
/**
|
|
39
|
+
* value: "Relevance"
|
|
40
|
+
* @const
|
|
41
|
+
*/
|
|
42
|
+
Relevance: 'Relevance';
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* *
|
|
46
|
+
*/
|
|
47
|
+
export type SortBy = 'AvgCustomerReviews' | 'Featured' | 'NewestArrivals' | 'Relevance';
|