@gobodo/gobodo-api-promise 0.1.34
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 +794 -0
- package/dist/ApiClient.js +720 -0
- package/dist/api/ActionTypesApi.js +113 -0
- package/dist/api/AdCampaignsApi.js +500 -0
- package/dist/api/AdManagementApi.js +722 -0
- package/dist/api/AdminDataManagementApi.js +111 -0
- package/dist/api/AdsApi.js +384 -0
- package/dist/api/AttachmentsApi.js +465 -0
- package/dist/api/AuthenticationApi.js +418 -0
- package/dist/api/CategoriesApi.js +451 -0
- package/dist/api/CommentsApi.js +520 -0
- package/dist/api/ContentManagementApi.js +1491 -0
- package/dist/api/ConversationsApi.js +559 -0
- package/dist/api/DataSheetImportsApi.js +1066 -0
- package/dist/api/DefaultApi.js +696 -0
- package/dist/api/DocumentsApi.js +807 -0
- package/dist/api/EntryPartsApi.js +847 -0
- package/dist/api/FacebookApi.js +88 -0
- package/dist/api/FieldsApi.js +243 -0
- package/dist/api/FilesApi.js +116 -0
- package/dist/api/FormsApi.js +1136 -0
- package/dist/api/FunctionsApi.js +111 -0
- package/dist/api/GeocodeApi.js +340 -0
- package/dist/api/GoogleApi.js +88 -0
- package/dist/api/GraphActionsApi.js +674 -0
- package/dist/api/GraphObjectTypesApi.js +527 -0
- package/dist/api/GraphObjectsApi.js +4026 -0
- package/dist/api/GraphRelationshipTypesApi.js +1055 -0
- package/dist/api/GraphRelationshipsApi.js +1921 -0
- package/dist/api/GraphSchemasApi.js +459 -0
- package/dist/api/GraphTraversalApi.js +415 -0
- package/dist/api/GraphsApi.js +716 -0
- package/dist/api/GroupsApi.js +731 -0
- package/dist/api/IAMApi.js +268 -0
- package/dist/api/ImagesApi.js +535 -0
- package/dist/api/InvitesApi.js +339 -0
- package/dist/api/LikesApi.js +785 -0
- package/dist/api/LinkedINApi.js +88 -0
- package/dist/api/LiveMeetingsApi.js +175 -0
- package/dist/api/MeetingEventsApi.js +358 -0
- package/dist/api/PagesApi.js +605 -0
- package/dist/api/PostsApi.js +330 -0
- package/dist/api/PrivateMessagesApi.js +965 -0
- package/dist/api/PublicationsApi.js +103 -0
- package/dist/api/ScreensApi.js +224 -0
- package/dist/api/SocialIntegrationApi.js +214 -0
- package/dist/api/StripeAccountsApi.js +2309 -0
- package/dist/api/TagsApi.js +111 -0
- package/dist/api/TemplatesApi.js +224 -0
- package/dist/api/ThemeMappingsApi.js +219 -0
- package/dist/api/TransactionsApi.js +161 -0
- package/dist/api/TwitterApi.js +88 -0
- package/dist/api/UserTagsApi.js +592 -0
- package/dist/api/UsersApi.js +591 -0
- package/dist/api/UtilsApi.js +80 -0
- package/dist/api/VideosApi.js +709 -0
- package/dist/index.js +1301 -0
- package/dist/model/APIClient.js +354 -0
- package/dist/model/AccountSessionInput.js +222 -0
- package/dist/model/AccountSessionResponse.js +171 -0
- package/dist/model/ApplicationPaymentAccountResponse.js +185 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +265 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCause.js +234 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseStackTraceInner.js +303 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseSuppressedInner.js +187 -0
- package/dist/model/Article.js +668 -0
- package/dist/model/Authorization.js +166 -0
- package/dist/model/Balance.js +267 -0
- package/dist/model/BalanceDetails.js +164 -0
- package/dist/model/BalanceResponse.js +139 -0
- package/dist/model/BankAccountInfo.js +232 -0
- package/dist/model/CardInfo.js +213 -0
- package/dist/model/Comment.js +495 -0
- package/dist/model/Coordinates.js +129 -0
- package/dist/model/CreateAccountResponse.js +233 -0
- package/dist/model/CreateStripeAccountInput.js +216 -0
- package/dist/model/CreateStripeCustomerInput.js +195 -0
- package/dist/model/CustomerResponse.js +168 -0
- package/dist/model/DataObject.js +129 -0
- package/dist/model/DataSheetImport.js +732 -0
- package/dist/model/DataSheetImportPrivacySettings.js +154 -0
- package/dist/model/DataSheetImportSummary.js +206 -0
- package/dist/model/Document.js +743 -0
- package/dist/model/DocumentPart.js +612 -0
- package/dist/model/DocumentPartType.js +358 -0
- package/dist/model/DocumentType.js +458 -0
- package/dist/model/FieldMapping.js +185 -0
- package/dist/model/Fields.js +737 -0
- package/dist/model/File.js +341 -0
- package/dist/model/FileAttachmentUploadObject.js +341 -0
- package/dist/model/Filter.js +137 -0
- package/dist/model/FilterManager.js +154 -0
- package/dist/model/Form.js +393 -0
- package/dist/model/FormSection.js +304 -0
- package/dist/model/FormSubmission.js +238 -0
- package/dist/model/Geocode.js +191 -0
- package/dist/model/GeocodePayload.js +141 -0
- package/dist/model/GeolocationInput.js +216 -0
- package/dist/model/Graph.js +499 -0
- package/dist/model/GraphAction.js +298 -0
- package/dist/model/GraphDatabaseService.js +254 -0
- package/dist/model/GraphGeocode.js +282 -0
- package/dist/model/GraphIteratorEntryPart.js +129 -0
- package/dist/model/GraphObject.js +454 -0
- package/dist/model/GraphObjectPayload.js +430 -0
- package/dist/model/GraphObjectSchema.js +545 -0
- package/dist/model/GraphObjectType.js +626 -0
- package/dist/model/GraphObjectTypeSchema.js +645 -0
- package/dist/model/GraphOwner.js +158 -0
- package/dist/model/GraphRelationObjectObject.js +273 -0
- package/dist/model/GraphRelationship.js +301 -0
- package/dist/model/GraphRelationshipPayload.js +214 -0
- package/dist/model/GraphRelationshipType.js +675 -0
- package/dist/model/GraphSchema.js +645 -0
- package/dist/model/GraphTraversalInput.js +1125 -0
- package/dist/model/Image.js +449 -0
- package/dist/model/ImageUploadObject.js +449 -0
- package/dist/model/InputPart.js +191 -0
- package/dist/model/InputPartMediaType.js +214 -0
- package/dist/model/Link.js +305 -0
- package/dist/model/LiveStreamInfo.js +167 -0
- package/dist/model/MeetingEvent.js +591 -0
- package/dist/model/MeetingEventTimezone.js +187 -0
- package/dist/model/MeetingInfo.js +220 -0
- package/dist/model/Member.js +525 -0
- package/dist/model/MemberGroupCategory.js +237 -0
- package/dist/model/MemberList.js +96 -0
- package/dist/model/MessageGroup.js +160 -0
- package/dist/model/MultipartBody.js +133 -0
- package/dist/model/Objecttype.js +615 -0
- package/dist/model/Page.js +370 -0
- package/dist/model/PageSchema.js +482 -0
- package/dist/model/Pageable.js +235 -0
- package/dist/model/Path.js +110 -0
- package/dist/model/PaymentAccountObject.js +209 -0
- package/dist/model/PaymentIntentInput.js +214 -0
- package/dist/model/PaymentIntentResponse.js +137 -0
- package/dist/model/PaymentMethod.js +319 -0
- package/dist/model/PaymentMethodInput.js +291 -0
- package/dist/model/PaymentMethodResponse.js +139 -0
- package/dist/model/PaymentMethodsResponse.js +158 -0
- package/dist/model/Payout.js +313 -0
- package/dist/model/PayoutInput.js +347 -0
- package/dist/model/PayoutResponse.js +142 -0
- package/dist/model/Post.js +368 -0
- package/dist/model/PrivateMessage.js +494 -0
- package/dist/model/PrivateMessageConversation.js +520 -0
- package/dist/model/PrivateMessageConversationSchema.js +268 -0
- package/dist/model/Profile.js +191 -0
- package/dist/model/Profiletype.js +210 -0
- package/dist/model/PropertyContainer.js +162 -0
- package/dist/model/PurgeDataDefaultResponseValue.js +151 -0
- package/dist/model/RelationshipMapping.js +264 -0
- package/dist/model/ScreenSchema.js +834 -0
- package/dist/model/SimulcastInfo.js +175 -0
- package/dist/model/SkinField.js +737 -0
- package/dist/model/SocialGroup.js +602 -0
- package/dist/model/SocialGroupType.js +327 -0
- package/dist/model/Sort.js +154 -0
- package/dist/model/SourceTypes.js +154 -0
- package/dist/model/StatusUpdate.js +312 -0
- package/dist/model/StreetAddress.js +224 -0
- package/dist/model/StripeAccount.js +272 -0
- package/dist/model/StripeCustomerAccount.js +212 -0
- package/dist/model/Template.js +272 -0
- package/dist/model/TemplateSchema.js +300 -0
- package/dist/model/ThemeMapping.js +245 -0
- package/dist/model/ThemeMappingPayload.js +239 -0
- package/dist/model/Transaction.js +137 -0
- package/dist/model/Transfer.js +286 -0
- package/dist/model/TransferInput.js +288 -0
- package/dist/model/TransferResponse.js +173 -0
- package/dist/model/TransferResponsePaymentMethodDetails.js +286 -0
- package/dist/model/TraversalRelationResponse.js +176 -0
- package/dist/model/User.js +525 -0
- package/dist/model/UserDataPayload.js +525 -0
- package/dist/model/UserDomain.js +191 -0
- package/dist/model/UserInvite.js +404 -0
- package/dist/model/UserInviteInput.js +245 -0
- package/dist/model/UserSchema.js +525 -0
- package/dist/model/UserTag.js +246 -0
- package/dist/model/Userid.js +133 -0
- package/dist/model/Video.js +632 -0
- package/dist/model/VideoLiveUrl.js +137 -0
- package/dist/model/VideoSchema.js +717 -0
- package/dist/model/VideoUploadObject.js +632 -0
- package/dist/model/ZeusPortalCategory.js +434 -0
- package/package.json +46 -0
|
@@ -0,0 +1,430 @@
|
|
|
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 _GeocodePayload = _interopRequireDefault(require("./GeocodePayload"));
|
|
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.34
|
|
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 GraphObjectPayload model module.
|
|
32
|
+
* @module model/GraphObjectPayload
|
|
33
|
+
* @version 0.1.34
|
|
34
|
+
*/
|
|
35
|
+
var GraphObjectPayload = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>GraphObjectPayload</code>.
|
|
38
|
+
* @alias module:model/GraphObjectPayload
|
|
39
|
+
*/
|
|
40
|
+
function GraphObjectPayload() {
|
|
41
|
+
_classCallCheck(this, GraphObjectPayload);
|
|
42
|
+
GraphObjectPayload.initialize(this);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
_createClass(GraphObjectPayload, [{
|
|
51
|
+
key: "getTypeid",
|
|
52
|
+
value:
|
|
53
|
+
/**
|
|
54
|
+
* @return {Number}
|
|
55
|
+
*/
|
|
56
|
+
function getTypeid() {
|
|
57
|
+
return this.typeid;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @param {Number} typeid
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "setTypeid",
|
|
65
|
+
value: function setTypeid(typeid) {
|
|
66
|
+
this['typeid'] = typeid;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @return {String}
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "getTypeKey",
|
|
73
|
+
value: function getTypeKey() {
|
|
74
|
+
return this.typeKey;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @param {String} typeKey
|
|
79
|
+
*/
|
|
80
|
+
}, {
|
|
81
|
+
key: "setTypeKey",
|
|
82
|
+
value: function setTypeKey(typeKey) {
|
|
83
|
+
this['typeKey'] = typeKey;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @return {Boolean}
|
|
87
|
+
*/
|
|
88
|
+
}, {
|
|
89
|
+
key: "getIsprivate",
|
|
90
|
+
value: function getIsprivate() {
|
|
91
|
+
return this.isprivate;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @param {Boolean} isprivate
|
|
96
|
+
*/
|
|
97
|
+
}, {
|
|
98
|
+
key: "setIsprivate",
|
|
99
|
+
value: function setIsprivate(isprivate) {
|
|
100
|
+
this['isprivate'] = isprivate;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @return {String}
|
|
104
|
+
*/
|
|
105
|
+
}, {
|
|
106
|
+
key: "getLabel",
|
|
107
|
+
value: function getLabel() {
|
|
108
|
+
return this.label;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @param {String} label
|
|
113
|
+
*/
|
|
114
|
+
}, {
|
|
115
|
+
key: "setLabel",
|
|
116
|
+
value: function setLabel(label) {
|
|
117
|
+
this['label'] = label;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @return {Number}
|
|
121
|
+
*/
|
|
122
|
+
}, {
|
|
123
|
+
key: "getParentobjectid",
|
|
124
|
+
value: function getParentobjectid() {
|
|
125
|
+
return this.parentobjectid;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @param {Number} parentobjectid
|
|
130
|
+
*/
|
|
131
|
+
}, {
|
|
132
|
+
key: "setParentobjectid",
|
|
133
|
+
value: function setParentobjectid(parentobjectid) {
|
|
134
|
+
this['parentobjectid'] = parentobjectid;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @return {Number}
|
|
138
|
+
*/
|
|
139
|
+
}, {
|
|
140
|
+
key: "getRelationshiptypeid",
|
|
141
|
+
value: function getRelationshiptypeid() {
|
|
142
|
+
return this.relationshiptypeid;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @param {Number} relationshiptypeid
|
|
147
|
+
*/
|
|
148
|
+
}, {
|
|
149
|
+
key: "setRelationshiptypeid",
|
|
150
|
+
value: function setRelationshiptypeid(relationshiptypeid) {
|
|
151
|
+
this['relationshiptypeid'] = relationshiptypeid;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @return {String}
|
|
155
|
+
*/
|
|
156
|
+
}, {
|
|
157
|
+
key: "getParentobjectkey",
|
|
158
|
+
value: function getParentobjectkey() {
|
|
159
|
+
return this.parentobjectkey;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @param {String} parentobjectkey
|
|
164
|
+
*/
|
|
165
|
+
}, {
|
|
166
|
+
key: "setParentobjectkey",
|
|
167
|
+
value: function setParentobjectkey(parentobjectkey) {
|
|
168
|
+
this['parentobjectkey'] = parentobjectkey;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @return {String}
|
|
172
|
+
*/
|
|
173
|
+
}, {
|
|
174
|
+
key: "getRelationshiptypekey",
|
|
175
|
+
value: function getRelationshiptypekey() {
|
|
176
|
+
return this.relationshiptypekey;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @param {String} relationshiptypekey
|
|
181
|
+
*/
|
|
182
|
+
}, {
|
|
183
|
+
key: "setRelationshiptypekey",
|
|
184
|
+
value: function setRelationshiptypekey(relationshiptypekey) {
|
|
185
|
+
this['relationshiptypekey'] = relationshiptypekey;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* @return {Array.<Number>}
|
|
189
|
+
*/
|
|
190
|
+
}, {
|
|
191
|
+
key: "getGraphs",
|
|
192
|
+
value: function getGraphs() {
|
|
193
|
+
return this.graphs;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @param {Array.<Number>} graphs
|
|
198
|
+
*/
|
|
199
|
+
}, {
|
|
200
|
+
key: "setGraphs",
|
|
201
|
+
value: function setGraphs(graphs) {
|
|
202
|
+
this['graphs'] = graphs;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @return {Array.<String>}
|
|
206
|
+
*/
|
|
207
|
+
}, {
|
|
208
|
+
key: "getTags",
|
|
209
|
+
value: function getTags() {
|
|
210
|
+
return this.tags;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @param {Array.<String>} tags
|
|
215
|
+
*/
|
|
216
|
+
}, {
|
|
217
|
+
key: "setTags",
|
|
218
|
+
value: function setTags(tags) {
|
|
219
|
+
this['tags'] = tags;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @return {Object.<String, Object>}
|
|
223
|
+
*/
|
|
224
|
+
}, {
|
|
225
|
+
key: "getProperties",
|
|
226
|
+
value: function getProperties() {
|
|
227
|
+
return this.properties;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @param {Object.<String, Object>} properties
|
|
232
|
+
*/
|
|
233
|
+
}, {
|
|
234
|
+
key: "setProperties",
|
|
235
|
+
value: function setProperties(properties) {
|
|
236
|
+
this['properties'] = properties;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* @return {Array.<module:model/GeocodePayload>}
|
|
240
|
+
*/
|
|
241
|
+
}, {
|
|
242
|
+
key: "getGeocodes",
|
|
243
|
+
value: function getGeocodes() {
|
|
244
|
+
return this.geocodes;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @param {Array.<module:model/GeocodePayload>} geocodes
|
|
249
|
+
*/
|
|
250
|
+
}, {
|
|
251
|
+
key: "setGeocodes",
|
|
252
|
+
value: function setGeocodes(geocodes) {
|
|
253
|
+
this['geocodes'] = geocodes;
|
|
254
|
+
}
|
|
255
|
+
}], [{
|
|
256
|
+
key: "initialize",
|
|
257
|
+
value: function initialize(obj) {}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Constructs a <code>GraphObjectPayload</code> from a plain JavaScript object, optionally creating a new instance.
|
|
261
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
262
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
263
|
+
* @param {module:model/GraphObjectPayload} obj Optional instance to populate.
|
|
264
|
+
* @return {module:model/GraphObjectPayload} The populated <code>GraphObjectPayload</code> instance.
|
|
265
|
+
*/
|
|
266
|
+
}, {
|
|
267
|
+
key: "constructFromObject",
|
|
268
|
+
value: function constructFromObject(data, obj) {
|
|
269
|
+
if (data) {
|
|
270
|
+
obj = obj || new GraphObjectPayload();
|
|
271
|
+
if (data.hasOwnProperty('typeid')) {
|
|
272
|
+
obj['typeid'] = _ApiClient["default"].convertToType(data['typeid'], 'Number');
|
|
273
|
+
}
|
|
274
|
+
if (data.hasOwnProperty('typeKey')) {
|
|
275
|
+
obj['typeKey'] = _ApiClient["default"].convertToType(data['typeKey'], 'String');
|
|
276
|
+
}
|
|
277
|
+
if (data.hasOwnProperty('isprivate')) {
|
|
278
|
+
obj['isprivate'] = _ApiClient["default"].convertToType(data['isprivate'], 'Boolean');
|
|
279
|
+
}
|
|
280
|
+
if (data.hasOwnProperty('label')) {
|
|
281
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
282
|
+
}
|
|
283
|
+
if (data.hasOwnProperty('parentobjectid')) {
|
|
284
|
+
obj['parentobjectid'] = _ApiClient["default"].convertToType(data['parentobjectid'], 'Number');
|
|
285
|
+
}
|
|
286
|
+
if (data.hasOwnProperty('relationshiptypeid')) {
|
|
287
|
+
obj['relationshiptypeid'] = _ApiClient["default"].convertToType(data['relationshiptypeid'], 'Number');
|
|
288
|
+
}
|
|
289
|
+
if (data.hasOwnProperty('parentobjectkey')) {
|
|
290
|
+
obj['parentobjectkey'] = _ApiClient["default"].convertToType(data['parentobjectkey'], 'String');
|
|
291
|
+
}
|
|
292
|
+
if (data.hasOwnProperty('relationshiptypekey')) {
|
|
293
|
+
obj['relationshiptypekey'] = _ApiClient["default"].convertToType(data['relationshiptypekey'], 'String');
|
|
294
|
+
}
|
|
295
|
+
if (data.hasOwnProperty('graphs')) {
|
|
296
|
+
obj['graphs'] = _ApiClient["default"].convertToType(data['graphs'], ['Number']);
|
|
297
|
+
}
|
|
298
|
+
if (data.hasOwnProperty('tags')) {
|
|
299
|
+
obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']);
|
|
300
|
+
}
|
|
301
|
+
if (data.hasOwnProperty('properties')) {
|
|
302
|
+
obj['properties'] = _ApiClient["default"].convertToType(data['properties'], {
|
|
303
|
+
'String': Object
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
if (data.hasOwnProperty('geocodes')) {
|
|
307
|
+
obj['geocodes'] = _ApiClient["default"].convertToType(data['geocodes'], [_GeocodePayload["default"]]);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return obj;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Validates the JSON data with respect to <code>GraphObjectPayload</code>.
|
|
315
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
316
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GraphObjectPayload</code>.
|
|
317
|
+
*/
|
|
318
|
+
}, {
|
|
319
|
+
key: "validateJSON",
|
|
320
|
+
value: function validateJSON(data) {
|
|
321
|
+
// ensure the json data is a string
|
|
322
|
+
if (data['typeKey'] && !(typeof data['typeKey'] === 'string' || data['typeKey'] instanceof String)) {
|
|
323
|
+
throw new Error("Expected the field `typeKey` to be a primitive type in the JSON string but got " + data['typeKey']);
|
|
324
|
+
}
|
|
325
|
+
// ensure the json data is a string
|
|
326
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
327
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
328
|
+
}
|
|
329
|
+
// ensure the json data is a string
|
|
330
|
+
if (data['parentobjectkey'] && !(typeof data['parentobjectkey'] === 'string' || data['parentobjectkey'] instanceof String)) {
|
|
331
|
+
throw new Error("Expected the field `parentobjectkey` to be a primitive type in the JSON string but got " + data['parentobjectkey']);
|
|
332
|
+
}
|
|
333
|
+
// ensure the json data is a string
|
|
334
|
+
if (data['relationshiptypekey'] && !(typeof data['relationshiptypekey'] === 'string' || data['relationshiptypekey'] instanceof String)) {
|
|
335
|
+
throw new Error("Expected the field `relationshiptypekey` to be a primitive type in the JSON string but got " + data['relationshiptypekey']);
|
|
336
|
+
}
|
|
337
|
+
// ensure the json data is an array
|
|
338
|
+
if (!Array.isArray(data['graphs'])) {
|
|
339
|
+
throw new Error("Expected the field `graphs` to be an array in the JSON data but got " + data['graphs']);
|
|
340
|
+
}
|
|
341
|
+
// ensure the json data is an array
|
|
342
|
+
if (!Array.isArray(data['tags'])) {
|
|
343
|
+
throw new Error("Expected the field `tags` to be an array in the JSON data but got " + data['tags']);
|
|
344
|
+
}
|
|
345
|
+
if (data['geocodes']) {
|
|
346
|
+
// data not null
|
|
347
|
+
// ensure the json data is an array
|
|
348
|
+
if (!Array.isArray(data['geocodes'])) {
|
|
349
|
+
throw new Error("Expected the field `geocodes` to be an array in the JSON data but got " + data['geocodes']);
|
|
350
|
+
}
|
|
351
|
+
// validate the optional field `geocodes` (array)
|
|
352
|
+
var _iterator = _createForOfIteratorHelper(data['geocodes']),
|
|
353
|
+
_step;
|
|
354
|
+
try {
|
|
355
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
356
|
+
var item = _step.value;
|
|
357
|
+
_GeocodePayload["default"].validateJSON(item);
|
|
358
|
+
}
|
|
359
|
+
} catch (err) {
|
|
360
|
+
_iterator.e(err);
|
|
361
|
+
} finally {
|
|
362
|
+
_iterator.f();
|
|
363
|
+
}
|
|
364
|
+
;
|
|
365
|
+
}
|
|
366
|
+
return true;
|
|
367
|
+
}
|
|
368
|
+
}]);
|
|
369
|
+
return GraphObjectPayload;
|
|
370
|
+
}();
|
|
371
|
+
/**
|
|
372
|
+
* @member {Number} typeid
|
|
373
|
+
*/
|
|
374
|
+
GraphObjectPayload.prototype['typeid'] = undefined;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @member {String} typeKey
|
|
378
|
+
*/
|
|
379
|
+
GraphObjectPayload.prototype['typeKey'] = undefined;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @member {Boolean} isprivate
|
|
383
|
+
*/
|
|
384
|
+
GraphObjectPayload.prototype['isprivate'] = undefined;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @member {String} label
|
|
388
|
+
*/
|
|
389
|
+
GraphObjectPayload.prototype['label'] = undefined;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @member {Number} parentobjectid
|
|
393
|
+
*/
|
|
394
|
+
GraphObjectPayload.prototype['parentobjectid'] = undefined;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* @member {Number} relationshiptypeid
|
|
398
|
+
*/
|
|
399
|
+
GraphObjectPayload.prototype['relationshiptypeid'] = undefined;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* @member {String} parentobjectkey
|
|
403
|
+
*/
|
|
404
|
+
GraphObjectPayload.prototype['parentobjectkey'] = undefined;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @member {String} relationshiptypekey
|
|
408
|
+
*/
|
|
409
|
+
GraphObjectPayload.prototype['relationshiptypekey'] = undefined;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* @member {Array.<Number>} graphs
|
|
413
|
+
*/
|
|
414
|
+
GraphObjectPayload.prototype['graphs'] = undefined;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* @member {Array.<String>} tags
|
|
418
|
+
*/
|
|
419
|
+
GraphObjectPayload.prototype['tags'] = undefined;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* @member {Object.<String, Object>} properties
|
|
423
|
+
*/
|
|
424
|
+
GraphObjectPayload.prototype['properties'] = undefined;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @member {Array.<module:model/GeocodePayload>} geocodes
|
|
428
|
+
*/
|
|
429
|
+
GraphObjectPayload.prototype['geocodes'] = undefined;
|
|
430
|
+
var _default = exports["default"] = GraphObjectPayload;
|