@gobodo/gobodo-api-promise 0.1.65 → 0.1.67
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/README.md +23 -2
- package/dist/ApiClient.js +3 -3
- package/dist/api/ActionTypesApi.js +2 -2
- package/dist/api/AdCampaignsApi.js +2 -2
- package/dist/api/AdManagementApi.js +2 -2
- package/dist/api/AdminDataManagementApi.js +2 -2
- package/dist/api/AdsApi.js +2 -2
- package/dist/api/AttachmentsApi.js +2 -2
- package/dist/api/AuthenticationApi.js +2 -2
- package/dist/api/CategoriesApi.js +2 -2
- package/dist/api/CommentsApi.js +2 -2
- package/dist/api/ContentManagementApi.js +2 -2
- package/dist/api/ConversationsApi.js +2 -2
- package/dist/api/DataSheetImportsApi.js +2 -2
- package/dist/api/DefaultApi.js +2 -2
- package/dist/api/DocumentsApi.js +2 -2
- package/dist/api/EmailsApi.js +2 -2
- package/dist/api/EntryPartsApi.js +2 -2
- package/dist/api/FacebookApi.js +2 -2
- package/dist/api/FieldsApi.js +2 -2
- package/dist/api/FilesApi.js +2 -2
- package/dist/api/FormsApi.js +2 -2
- package/dist/api/FunctionsApi.js +2 -2
- package/dist/api/GeocodeApi.js +2 -2
- package/dist/api/GoogleApi.js +2 -2
- package/dist/api/GraphActionTypesApi.js +2 -2
- package/dist/api/GraphActionsApi.js +2 -2
- package/dist/api/GraphObjectTypesApi.js +2 -2
- package/dist/api/GraphObjectsApi.js +2 -2
- package/dist/api/GraphRelationshipTypesApi.js +2 -2
- package/dist/api/GraphRelationshipsApi.js +2 -2
- package/dist/api/GraphSchemasApi.js +2 -2
- package/dist/api/GraphTraversalApi.js +2 -2
- package/dist/api/GraphsApi.js +2 -2
- package/dist/api/GroupsApi.js +2 -2
- package/dist/api/IAMApi.js +2 -2
- package/dist/api/ImagesApi.js +2 -2
- package/dist/api/InvitesApi.js +2 -2
- package/dist/api/LikesApi.js +2 -2
- package/dist/api/LinkedINApi.js +2 -2
- package/dist/api/LiveMeetingsApi.js +2 -2
- package/dist/api/MeetingEventsApi.js +2 -2
- package/dist/api/NotificationsApi.js +2 -2
- package/dist/api/PagesApi.js +2 -2
- package/dist/api/PhoneNumbersApi.js +2 -2
- package/dist/api/PostsApi.js +2 -2
- package/dist/api/PrivateMessagesApi.js +2 -2
- package/dist/api/PublicationsApi.js +2 -2
- package/dist/api/RestApplicationsApi.js +407 -0
- package/dist/api/ScreensApi.js +2 -2
- package/dist/api/SitesApi.js +767 -0
- package/dist/api/SocialIntegrationApi.js +2 -2
- package/dist/api/StripeAccountsApi.js +2 -2
- package/dist/api/TagsApi.js +2 -2
- package/dist/api/TemplatesApi.js +2 -2
- package/dist/api/ThemeMappingsApi.js +2 -2
- package/dist/api/TopicsApi.js +2 -2
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/TwitterApi.js +2 -2
- package/dist/api/UserTagsApi.js +2 -2
- package/dist/api/UsersApi.js +2 -2
- package/dist/api/UtilsApi.js +2 -2
- package/dist/api/VideosApi.js +2 -2
- package/dist/index.js +56 -0
- package/dist/model/APIClient.js +2 -2
- package/dist/model/AccountSessionInput.js +2 -2
- package/dist/model/AccountSessionResponse.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponse.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +2 -2
- package/dist/model/Article.js +75 -75
- package/dist/model/AuthResponse.js +2 -2
- package/dist/model/AwsSettings.js +2 -2
- package/dist/model/Balance.js +33 -33
- package/dist/model/BalanceDetails.js +2 -2
- package/dist/model/BalanceResponse.js +2 -2
- package/dist/model/BankAccountInfo.js +2 -2
- package/dist/model/CardInfo.js +2 -2
- package/dist/model/Comment.js +2 -2
- package/dist/model/Coordinates.js +2 -2
- package/dist/model/CreateAccountResponse.js +2 -2
- package/dist/model/CreateFunctionInput.js +2 -2
- package/dist/model/CreateStripeAccountInput.js +2 -2
- package/dist/model/CreateStripeCustomerInput.js +2 -2
- package/dist/model/CreateTopicInput.js +2 -2
- package/dist/model/CreateTopicListenerInput.js +2 -2
- package/dist/model/CurrencySettings.js +2 -2
- package/dist/model/CustomerResponse.js +2 -2
- package/dist/model/DataObject.js +2 -2
- package/dist/model/DataSheetImport.js +2 -2
- package/dist/model/DataSheetImportPrivacySettings.js +2 -2
- package/dist/model/DataSheetImportSummary.js +2 -2
- package/dist/model/DeviceRegistrationRequest.js +2 -2
- package/dist/model/Document.js +75 -75
- package/dist/model/DocumentPart.js +2 -2
- package/dist/model/DocumentPartType.js +27 -27
- package/dist/model/DocumentType.js +39 -39
- package/dist/model/EmailAddress.js +2 -2
- package/dist/model/FieldMapping.js +2 -2
- package/dist/model/Fields.js +25 -25
- package/dist/model/File.js +31 -31
- package/dist/model/FileAttachmentUploadObject.js +31 -31
- package/dist/model/Filter.js +2 -2
- package/dist/model/FilterManager.js +2 -2
- package/dist/model/Form.js +29 -29
- package/dist/model/FormSection.js +2 -2
- package/dist/model/FormSubmission.js +30 -30
- package/dist/model/FunctionConfigInput.js +2 -2
- package/dist/model/FunctionEnvironmentConfig.js +2 -2
- package/dist/model/FunctionInput.js +2 -2
- package/dist/model/FunctionOutput.js +2 -2
- package/dist/model/Geocode.js +2 -2
- package/dist/model/GeocodePayload.js +2 -2
- package/dist/model/GeolocationInput.js +2 -2
- package/dist/model/GetFunctionConfig.js +2 -2
- package/dist/model/GetFunctionEnvironmentConfig.js +2 -2
- package/dist/model/GetFunctionResponse.js +2 -2
- package/dist/model/GoogleCloudSettings.js +2 -2
- package/dist/model/Graph.js +25 -25
- package/dist/model/GraphAction.js +2 -2
- package/dist/model/GraphDatabaseService.js +2 -2
- package/dist/model/GraphGeocode.js +2 -2
- package/dist/model/GraphIteratorEntryPart.js +2 -2
- package/dist/model/GraphObject.js +2 -2
- package/dist/model/GraphObjectPayload.js +2 -2
- package/dist/model/GraphObjectSchema.js +2 -2
- package/dist/model/GraphObjectType.js +2 -2
- package/dist/model/GraphObjectTypeResponse.js +8 -6
- package/dist/model/GraphObjectTypeSchema.js +2 -2
- package/dist/model/GraphOwner.js +2 -2
- package/dist/model/GraphRelationship.js +2 -2
- package/dist/model/GraphRelationshipPayload.js +2 -2
- package/dist/model/GraphRelationshipType.js +2 -2
- package/dist/model/GraphRelationshipTypeResponse.js +2 -2
- package/dist/model/GraphSchema.js +2 -2
- package/dist/model/GraphTraversalInput.js +2 -2
- package/dist/model/Image.js +31 -31
- package/dist/model/ImageUploadObject.js +31 -31
- package/dist/model/InputPart.js +29 -29
- package/dist/model/InputPartMediaType.js +2 -2
- package/dist/model/KafkaSettings.js +2 -2
- package/dist/model/Link.js +2 -2
- package/dist/model/LiveStreamInfo.js +2 -2
- package/dist/model/MeetingEvent.js +79 -79
- package/dist/model/MeetingEventTimezone.js +2 -2
- package/dist/model/MeetingInfo.js +2 -2
- package/dist/model/Member.js +25 -25
- package/dist/model/MemberGroupCategory.js +2 -2
- package/dist/model/MemberList.js +2 -2
- package/dist/model/MessageGroup.js +2 -2
- package/dist/model/MultipartBody.js +2 -2
- package/dist/model/NotificationInput.js +2 -2
- package/dist/model/NotificationResponse.js +2 -2
- package/dist/model/NumberSettings.js +2 -2
- package/dist/model/ObjectSettings.js +2 -2
- package/dist/model/Objecttype.js +2 -2
- package/dist/model/OutParameter.js +2 -2
- package/dist/model/Page.js +2 -2
- package/dist/model/PageSchema.js +29 -29
- package/dist/model/Pageable.js +2 -2
- package/dist/model/Parameter.js +2 -2
- package/dist/model/Path.js +2 -2
- package/dist/model/PaymentAccountObject.js +2 -2
- package/dist/model/PaymentIntentInput.js +2 -2
- package/dist/model/PaymentIntentResponse.js +2 -2
- package/dist/model/PaymentMethod.js +2 -2
- package/dist/model/PaymentMethodInput.js +2 -2
- package/dist/model/PaymentMethodResponse.js +2 -2
- package/dist/model/PaymentMethodsResponse.js +2 -2
- package/dist/model/Payout.js +32 -32
- package/dist/model/PayoutInput.js +2 -2
- package/dist/model/PayoutResponse.js +2 -2
- package/dist/model/PhoneNumber.js +27 -27
- package/dist/model/Post.js +2 -2
- package/dist/model/PrivateMessage.js +2 -2
- package/dist/model/PrivateMessageConversation.js +2 -2
- package/dist/model/PrivateMessageConversationSchema.js +2 -2
- package/dist/model/Profile.js +2 -2
- package/dist/model/Profiletype.js +2 -2
- package/dist/model/PropertyContainer.js +2 -2
- package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
- package/dist/model/RelationshipMapping.js +2 -2
- package/dist/model/RestApplicationInput.js +247 -0
- package/dist/model/RestApplicationResponse.js +278 -0
- package/dist/model/ScreenSchema.js +2 -2
- package/dist/model/SimulcastInfo.js +2 -2
- package/dist/model/SiteInput.js +243 -0
- package/dist/model/SiteResponse.js +311 -0
- package/dist/model/SiteTypeInput.js +216 -0
- package/dist/model/SiteTypeResponse.js +216 -0
- package/dist/model/SkinField.js +25 -25
- package/dist/model/SkinFieldResponse.js +2 -2
- package/dist/model/SocialGroup.js +2 -2
- package/dist/model/SocialGroupType.js +2 -2
- package/dist/model/Sort.js +2 -2
- package/dist/model/SourceTypes.js +2 -2
- package/dist/model/StatusUpdate.js +2 -2
- package/dist/model/StreetAddress.js +2 -2
- package/dist/model/StripeAccount.js +2 -2
- package/dist/model/StripeCustomerAccount.js +2 -2
- package/dist/model/Template.js +2 -2
- package/dist/model/TemplateResponse.js +2 -2
- package/dist/model/TemplateSchema.js +2 -2
- package/dist/model/ThemeMapping.js +2 -2
- package/dist/model/ThemeMappingPayload.js +2 -2
- package/dist/model/TopicInfoResponse.js +2 -2
- package/dist/model/TopicMessageInput.js +2 -2
- package/dist/model/TopicSubscriptionResponse.js +2 -2
- package/dist/model/Transaction.js +2 -2
- package/dist/model/Transfer.js +29 -29
- package/dist/model/TransferInput.js +2 -2
- package/dist/model/TransferResponse.js +2 -2
- package/dist/model/TransferResponsePaymentMethodDetails.js +29 -29
- package/dist/model/TraversalRelationResponse.js +2 -2
- package/dist/model/User.js +25 -25
- package/dist/model/UserDataPayload.js +25 -25
- package/dist/model/UserDomain.js +2 -2
- package/dist/model/UserInvite.js +31 -31
- package/dist/model/UserInviteInput.js +2 -2
- package/dist/model/UserSchema.js +25 -25
- package/dist/model/UserTag.js +2 -2
- package/dist/model/Userid.js +2 -2
- package/dist/model/Video.js +88 -88
- package/dist/model/VideoLiveUrl.js +27 -27
- package/dist/model/VideoSchema.js +115 -115
- package/dist/model/VideoUploadObject.js +88 -88
- package/dist/model/ZeusPortalCategory.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,243 @@
|
|
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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
|
+
* gobodo-api
|
|
19
|
+
* REST Interface for Gobodo API
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 0.1.67
|
|
22
|
+
* Contact: info@gobodo.io
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The SiteInput model module.
|
|
31
|
+
* @module model/SiteInput
|
|
32
|
+
* @version 0.1.67
|
|
33
|
+
*/
|
|
34
|
+
var SiteInput = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>SiteInput</code>.
|
|
37
|
+
* @alias module:model/SiteInput
|
|
38
|
+
* @param name {String}
|
|
39
|
+
* @param primaryUrl {String}
|
|
40
|
+
* @param properties {Object}
|
|
41
|
+
*/
|
|
42
|
+
function SiteInput(name, primaryUrl, properties) {
|
|
43
|
+
_classCallCheck(this, SiteInput);
|
|
44
|
+
SiteInput.initialize(this, name, primaryUrl, properties);
|
|
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
|
+
_createClass(SiteInput, [{
|
|
53
|
+
key: "getName",
|
|
54
|
+
value:
|
|
55
|
+
/**
|
|
56
|
+
* @return {String}
|
|
57
|
+
*/
|
|
58
|
+
function getName() {
|
|
59
|
+
return this.name;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @param {String} name
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "setName",
|
|
67
|
+
value: function setName(name) {
|
|
68
|
+
this['name'] = name;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @return {Number}
|
|
72
|
+
*/
|
|
73
|
+
}, {
|
|
74
|
+
key: "getSiteTypeId",
|
|
75
|
+
value: function getSiteTypeId() {
|
|
76
|
+
return this.siteTypeId;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @param {Number} siteTypeId
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "setSiteTypeId",
|
|
84
|
+
value: function setSiteTypeId(siteTypeId) {
|
|
85
|
+
this['siteTypeId'] = siteTypeId;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @return {String}
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "getDescription",
|
|
92
|
+
value: function getDescription() {
|
|
93
|
+
return this.description;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @param {String} description
|
|
98
|
+
*/
|
|
99
|
+
}, {
|
|
100
|
+
key: "setDescription",
|
|
101
|
+
value: function setDescription(description) {
|
|
102
|
+
this['description'] = description;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @return {String}
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
108
|
+
key: "getPrimaryUrl",
|
|
109
|
+
value: function getPrimaryUrl() {
|
|
110
|
+
return this.primaryUrl;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param {String} primaryUrl
|
|
115
|
+
*/
|
|
116
|
+
}, {
|
|
117
|
+
key: "setPrimaryUrl",
|
|
118
|
+
value: function setPrimaryUrl(primaryUrl) {
|
|
119
|
+
this['primaryUrl'] = primaryUrl;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @return {Object}
|
|
123
|
+
*/
|
|
124
|
+
}, {
|
|
125
|
+
key: "getProperties",
|
|
126
|
+
value: function getProperties() {
|
|
127
|
+
return this.properties;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {Object} properties
|
|
132
|
+
*/
|
|
133
|
+
}, {
|
|
134
|
+
key: "setProperties",
|
|
135
|
+
value: function setProperties(properties) {
|
|
136
|
+
this['properties'] = properties;
|
|
137
|
+
}
|
|
138
|
+
}], [{
|
|
139
|
+
key: "initialize",
|
|
140
|
+
value: function initialize(obj, name, primaryUrl, properties) {
|
|
141
|
+
obj['name'] = name;
|
|
142
|
+
obj['primaryUrl'] = primaryUrl;
|
|
143
|
+
obj['properties'] = properties;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Constructs a <code>SiteInput</code> from a plain JavaScript object, optionally creating a new instance.
|
|
148
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
149
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
150
|
+
* @param {module:model/SiteInput} obj Optional instance to populate.
|
|
151
|
+
* @return {module:model/SiteInput} The populated <code>SiteInput</code> instance.
|
|
152
|
+
*/
|
|
153
|
+
}, {
|
|
154
|
+
key: "constructFromObject",
|
|
155
|
+
value: function constructFromObject(data, obj) {
|
|
156
|
+
if (data) {
|
|
157
|
+
obj = obj || new SiteInput();
|
|
158
|
+
if (data.hasOwnProperty('name')) {
|
|
159
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
160
|
+
}
|
|
161
|
+
if (data.hasOwnProperty('siteTypeId')) {
|
|
162
|
+
obj['siteTypeId'] = _ApiClient["default"].convertToType(data['siteTypeId'], 'Number');
|
|
163
|
+
}
|
|
164
|
+
if (data.hasOwnProperty('description')) {
|
|
165
|
+
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
166
|
+
}
|
|
167
|
+
if (data.hasOwnProperty('primaryUrl')) {
|
|
168
|
+
obj['primaryUrl'] = _ApiClient["default"].convertToType(data['primaryUrl'], 'String');
|
|
169
|
+
}
|
|
170
|
+
if (data.hasOwnProperty('properties')) {
|
|
171
|
+
obj['properties'] = _ApiClient["default"].convertToType(data['properties'], Object);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return obj;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Validates the JSON data with respect to <code>SiteInput</code>.
|
|
179
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
180
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SiteInput</code>.
|
|
181
|
+
*/
|
|
182
|
+
}, {
|
|
183
|
+
key: "validateJSON",
|
|
184
|
+
value: function validateJSON(data) {
|
|
185
|
+
// check to make sure all required properties are present in the JSON string
|
|
186
|
+
var _iterator = _createForOfIteratorHelper(SiteInput.RequiredProperties),
|
|
187
|
+
_step;
|
|
188
|
+
try {
|
|
189
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
190
|
+
var property = _step.value;
|
|
191
|
+
if (!data[property]) {
|
|
192
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
// ensure the json data is a string
|
|
196
|
+
} catch (err) {
|
|
197
|
+
_iterator.e(err);
|
|
198
|
+
} finally {
|
|
199
|
+
_iterator.f();
|
|
200
|
+
}
|
|
201
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
202
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
203
|
+
}
|
|
204
|
+
// ensure the json data is a string
|
|
205
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
206
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
207
|
+
}
|
|
208
|
+
// ensure the json data is a string
|
|
209
|
+
if (data['primaryUrl'] && !(typeof data['primaryUrl'] === 'string' || data['primaryUrl'] instanceof String)) {
|
|
210
|
+
throw new Error("Expected the field `primaryUrl` to be a primitive type in the JSON string but got " + data['primaryUrl']);
|
|
211
|
+
}
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
}]);
|
|
215
|
+
return SiteInput;
|
|
216
|
+
}();
|
|
217
|
+
SiteInput.RequiredProperties = ["name", "primaryUrl", "properties"];
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @member {String} name
|
|
221
|
+
*/
|
|
222
|
+
SiteInput.prototype['name'] = undefined;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @member {Number} siteTypeId
|
|
226
|
+
*/
|
|
227
|
+
SiteInput.prototype['siteTypeId'] = undefined;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @member {String} description
|
|
231
|
+
*/
|
|
232
|
+
SiteInput.prototype['description'] = undefined;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @member {String} primaryUrl
|
|
236
|
+
*/
|
|
237
|
+
SiteInput.prototype['primaryUrl'] = undefined;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @member {Object} properties
|
|
241
|
+
*/
|
|
242
|
+
SiteInput.prototype['properties'] = undefined;
|
|
243
|
+
var _default = exports["default"] = SiteInput;
|
|
@@ -0,0 +1,311 @@
|
|
|
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 _SiteTypeResponse = _interopRequireDefault(require("./SiteTypeResponse"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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
|
+
* gobodo-api
|
|
20
|
+
* REST Interface for Gobodo API
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 0.1.67
|
|
23
|
+
* Contact: info@gobodo.io
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The SiteResponse model module.
|
|
32
|
+
* @module model/SiteResponse
|
|
33
|
+
* @version 0.1.67
|
|
34
|
+
*/
|
|
35
|
+
var SiteResponse = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>SiteResponse</code>.
|
|
38
|
+
* @alias module:model/SiteResponse
|
|
39
|
+
* @param id {Number}
|
|
40
|
+
* @param name {String}
|
|
41
|
+
* @param siteType {module:model/SiteTypeResponse}
|
|
42
|
+
* @param description {String}
|
|
43
|
+
* @param primaryUrl {String}
|
|
44
|
+
* @param urls {Array.<String>}
|
|
45
|
+
* @param properties {Object}
|
|
46
|
+
*/
|
|
47
|
+
function SiteResponse(id, name, siteType, description, primaryUrl, urls, properties) {
|
|
48
|
+
_classCallCheck(this, SiteResponse);
|
|
49
|
+
SiteResponse.initialize(this, id, name, siteType, description, primaryUrl, urls, properties);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Initializes the fields of this object.
|
|
54
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
55
|
+
* Only for internal use.
|
|
56
|
+
*/
|
|
57
|
+
_createClass(SiteResponse, [{
|
|
58
|
+
key: "getId",
|
|
59
|
+
value:
|
|
60
|
+
/**
|
|
61
|
+
* @return {Number}
|
|
62
|
+
*/
|
|
63
|
+
function getId() {
|
|
64
|
+
return this.id;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @param {Number} id
|
|
69
|
+
*/
|
|
70
|
+
}, {
|
|
71
|
+
key: "setId",
|
|
72
|
+
value: function setId(id) {
|
|
73
|
+
this['id'] = id;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @return {String}
|
|
77
|
+
*/
|
|
78
|
+
}, {
|
|
79
|
+
key: "getName",
|
|
80
|
+
value: function getName() {
|
|
81
|
+
return this.name;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @param {String} name
|
|
86
|
+
*/
|
|
87
|
+
}, {
|
|
88
|
+
key: "setName",
|
|
89
|
+
value: function setName(name) {
|
|
90
|
+
this['name'] = name;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @return {module:model/SiteTypeResponse}
|
|
94
|
+
*/
|
|
95
|
+
}, {
|
|
96
|
+
key: "getSiteType",
|
|
97
|
+
value: function getSiteType() {
|
|
98
|
+
return this.siteType;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @param {module:model/SiteTypeResponse} siteType
|
|
103
|
+
*/
|
|
104
|
+
}, {
|
|
105
|
+
key: "setSiteType",
|
|
106
|
+
value: function setSiteType(siteType) {
|
|
107
|
+
this['siteType'] = siteType;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @return {String}
|
|
111
|
+
*/
|
|
112
|
+
}, {
|
|
113
|
+
key: "getDescription",
|
|
114
|
+
value: function getDescription() {
|
|
115
|
+
return this.description;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @param {String} description
|
|
120
|
+
*/
|
|
121
|
+
}, {
|
|
122
|
+
key: "setDescription",
|
|
123
|
+
value: function setDescription(description) {
|
|
124
|
+
this['description'] = description;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @return {String}
|
|
128
|
+
*/
|
|
129
|
+
}, {
|
|
130
|
+
key: "getPrimaryUrl",
|
|
131
|
+
value: function getPrimaryUrl() {
|
|
132
|
+
return this.primaryUrl;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @param {String} primaryUrl
|
|
137
|
+
*/
|
|
138
|
+
}, {
|
|
139
|
+
key: "setPrimaryUrl",
|
|
140
|
+
value: function setPrimaryUrl(primaryUrl) {
|
|
141
|
+
this['primaryUrl'] = primaryUrl;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @return {Array.<String>}
|
|
145
|
+
*/
|
|
146
|
+
}, {
|
|
147
|
+
key: "getUrls",
|
|
148
|
+
value: function getUrls() {
|
|
149
|
+
return this.urls;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @param {Array.<String>} urls
|
|
154
|
+
*/
|
|
155
|
+
}, {
|
|
156
|
+
key: "setUrls",
|
|
157
|
+
value: function setUrls(urls) {
|
|
158
|
+
this['urls'] = urls;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @return {Object}
|
|
162
|
+
*/
|
|
163
|
+
}, {
|
|
164
|
+
key: "getProperties",
|
|
165
|
+
value: function getProperties() {
|
|
166
|
+
return this.properties;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @param {Object} properties
|
|
171
|
+
*/
|
|
172
|
+
}, {
|
|
173
|
+
key: "setProperties",
|
|
174
|
+
value: function setProperties(properties) {
|
|
175
|
+
this['properties'] = properties;
|
|
176
|
+
}
|
|
177
|
+
}], [{
|
|
178
|
+
key: "initialize",
|
|
179
|
+
value: function initialize(obj, id, name, siteType, description, primaryUrl, urls, properties) {
|
|
180
|
+
obj['id'] = id;
|
|
181
|
+
obj['name'] = name;
|
|
182
|
+
obj['siteType'] = siteType;
|
|
183
|
+
obj['description'] = description;
|
|
184
|
+
obj['primaryUrl'] = primaryUrl;
|
|
185
|
+
obj['urls'] = urls;
|
|
186
|
+
obj['properties'] = properties;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Constructs a <code>SiteResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
191
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
192
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
193
|
+
* @param {module:model/SiteResponse} obj Optional instance to populate.
|
|
194
|
+
* @return {module:model/SiteResponse} The populated <code>SiteResponse</code> instance.
|
|
195
|
+
*/
|
|
196
|
+
}, {
|
|
197
|
+
key: "constructFromObject",
|
|
198
|
+
value: function constructFromObject(data, obj) {
|
|
199
|
+
if (data) {
|
|
200
|
+
obj = obj || new SiteResponse();
|
|
201
|
+
if (data.hasOwnProperty('id')) {
|
|
202
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
203
|
+
}
|
|
204
|
+
if (data.hasOwnProperty('name')) {
|
|
205
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
206
|
+
}
|
|
207
|
+
if (data.hasOwnProperty('siteType')) {
|
|
208
|
+
obj['siteType'] = _SiteTypeResponse["default"].constructFromObject(data['siteType']);
|
|
209
|
+
}
|
|
210
|
+
if (data.hasOwnProperty('description')) {
|
|
211
|
+
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
212
|
+
}
|
|
213
|
+
if (data.hasOwnProperty('primaryUrl')) {
|
|
214
|
+
obj['primaryUrl'] = _ApiClient["default"].convertToType(data['primaryUrl'], 'String');
|
|
215
|
+
}
|
|
216
|
+
if (data.hasOwnProperty('urls')) {
|
|
217
|
+
obj['urls'] = _ApiClient["default"].convertToType(data['urls'], ['String']);
|
|
218
|
+
}
|
|
219
|
+
if (data.hasOwnProperty('properties')) {
|
|
220
|
+
obj['properties'] = _ApiClient["default"].convertToType(data['properties'], Object);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return obj;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Validates the JSON data with respect to <code>SiteResponse</code>.
|
|
228
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
229
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SiteResponse</code>.
|
|
230
|
+
*/
|
|
231
|
+
}, {
|
|
232
|
+
key: "validateJSON",
|
|
233
|
+
value: function validateJSON(data) {
|
|
234
|
+
// check to make sure all required properties are present in the JSON string
|
|
235
|
+
var _iterator = _createForOfIteratorHelper(SiteResponse.RequiredProperties),
|
|
236
|
+
_step;
|
|
237
|
+
try {
|
|
238
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
239
|
+
var property = _step.value;
|
|
240
|
+
if (!data[property]) {
|
|
241
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
// ensure the json data is a string
|
|
245
|
+
} catch (err) {
|
|
246
|
+
_iterator.e(err);
|
|
247
|
+
} finally {
|
|
248
|
+
_iterator.f();
|
|
249
|
+
}
|
|
250
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
251
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
252
|
+
}
|
|
253
|
+
// validate the optional field `siteType`
|
|
254
|
+
if (data['siteType']) {
|
|
255
|
+
// data not null
|
|
256
|
+
_SiteTypeResponse["default"].validateJSON(data['siteType']);
|
|
257
|
+
}
|
|
258
|
+
// ensure the json data is a string
|
|
259
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
260
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
261
|
+
}
|
|
262
|
+
// ensure the json data is a string
|
|
263
|
+
if (data['primaryUrl'] && !(typeof data['primaryUrl'] === 'string' || data['primaryUrl'] instanceof String)) {
|
|
264
|
+
throw new Error("Expected the field `primaryUrl` to be a primitive type in the JSON string but got " + data['primaryUrl']);
|
|
265
|
+
}
|
|
266
|
+
// ensure the json data is an array
|
|
267
|
+
if (!Array.isArray(data['urls'])) {
|
|
268
|
+
throw new Error("Expected the field `urls` to be an array in the JSON data but got " + data['urls']);
|
|
269
|
+
}
|
|
270
|
+
return true;
|
|
271
|
+
}
|
|
272
|
+
}]);
|
|
273
|
+
return SiteResponse;
|
|
274
|
+
}();
|
|
275
|
+
SiteResponse.RequiredProperties = ["id", "name", "siteType", "description", "primaryUrl", "urls", "properties"];
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @member {Number} id
|
|
279
|
+
*/
|
|
280
|
+
SiteResponse.prototype['id'] = undefined;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @member {String} name
|
|
284
|
+
*/
|
|
285
|
+
SiteResponse.prototype['name'] = undefined;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @member {module:model/SiteTypeResponse} siteType
|
|
289
|
+
*/
|
|
290
|
+
SiteResponse.prototype['siteType'] = undefined;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @member {String} description
|
|
294
|
+
*/
|
|
295
|
+
SiteResponse.prototype['description'] = undefined;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @member {String} primaryUrl
|
|
299
|
+
*/
|
|
300
|
+
SiteResponse.prototype['primaryUrl'] = undefined;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @member {Array.<String>} urls
|
|
304
|
+
*/
|
|
305
|
+
SiteResponse.prototype['urls'] = undefined;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @member {Object} properties
|
|
309
|
+
*/
|
|
310
|
+
SiteResponse.prototype['properties'] = undefined;
|
|
311
|
+
var _default = exports["default"] = SiteResponse;
|