@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,458 @@
|
|
|
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 _GraphObjectType = _interopRequireDefault(require("./GraphObjectType"));
|
|
9
|
+
var _Template = _interopRequireDefault(require("./Template"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
16
|
+
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); } /**
|
|
17
|
+
* gobodo-api
|
|
18
|
+
* REST Interface for Gobodo API
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 0.1.34
|
|
21
|
+
* Contact: info@gobodo.io
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The DocumentType model module.
|
|
30
|
+
* @module model/DocumentType
|
|
31
|
+
* @version 0.1.34
|
|
32
|
+
*/
|
|
33
|
+
var DocumentType = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>DocumentType</code>.
|
|
36
|
+
* @alias module:model/DocumentType
|
|
37
|
+
*/
|
|
38
|
+
function DocumentType() {
|
|
39
|
+
_classCallCheck(this, DocumentType);
|
|
40
|
+
DocumentType.initialize(this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
_createClass(DocumentType, [{
|
|
49
|
+
key: "getName",
|
|
50
|
+
value:
|
|
51
|
+
/**
|
|
52
|
+
* @return {String}
|
|
53
|
+
*/
|
|
54
|
+
function getName() {
|
|
55
|
+
return this.name;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @param {String} name
|
|
60
|
+
*/
|
|
61
|
+
}, {
|
|
62
|
+
key: "setName",
|
|
63
|
+
value: function setName(name) {
|
|
64
|
+
this['name'] = name;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @return {module:model/DocumentType}
|
|
68
|
+
*/
|
|
69
|
+
}, {
|
|
70
|
+
key: "getParent",
|
|
71
|
+
value: function getParent() {
|
|
72
|
+
return this.parent;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @param {module:model/DocumentType} parent
|
|
77
|
+
*/
|
|
78
|
+
}, {
|
|
79
|
+
key: "setParent",
|
|
80
|
+
value: function setParent(parent) {
|
|
81
|
+
this['parent'] = parent;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @return {Object}
|
|
85
|
+
*/
|
|
86
|
+
}, {
|
|
87
|
+
key: "getEntryPartTypes",
|
|
88
|
+
value: function getEntryPartTypes() {
|
|
89
|
+
return this.entryPartTypes;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @param {Object} entryPartTypes
|
|
94
|
+
*/
|
|
95
|
+
}, {
|
|
96
|
+
key: "setEntryPartTypes",
|
|
97
|
+
value: function setEntryPartTypes(entryPartTypes) {
|
|
98
|
+
this['entryPartTypes'] = entryPartTypes;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @return {Boolean}
|
|
102
|
+
*/
|
|
103
|
+
}, {
|
|
104
|
+
key: "getMediaItem",
|
|
105
|
+
value: function getMediaItem() {
|
|
106
|
+
return this.mediaItem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @param {Boolean} mediaItem
|
|
111
|
+
*/
|
|
112
|
+
}, {
|
|
113
|
+
key: "setMediaItem",
|
|
114
|
+
value: function setMediaItem(mediaItem) {
|
|
115
|
+
this['mediaItem'] = mediaItem;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* @return {Boolean}
|
|
119
|
+
*/
|
|
120
|
+
}, {
|
|
121
|
+
key: "getSinglePart",
|
|
122
|
+
value: function getSinglePart() {
|
|
123
|
+
return this.singlePart;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @param {Boolean} singlePart
|
|
128
|
+
*/
|
|
129
|
+
}, {
|
|
130
|
+
key: "setSinglePart",
|
|
131
|
+
value: function setSinglePart(singlePart) {
|
|
132
|
+
this['singlePart'] = singlePart;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @return {Object}
|
|
136
|
+
*/
|
|
137
|
+
}, {
|
|
138
|
+
key: "getChildTypes",
|
|
139
|
+
value: function getChildTypes() {
|
|
140
|
+
return this.childTypes;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @param {Object} childTypes
|
|
145
|
+
*/
|
|
146
|
+
}, {
|
|
147
|
+
key: "setChildTypes",
|
|
148
|
+
value: function setChildTypes(childTypes) {
|
|
149
|
+
this['childTypes'] = childTypes;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @return {String}
|
|
153
|
+
*/
|
|
154
|
+
}, {
|
|
155
|
+
key: "getSingleDescription",
|
|
156
|
+
value: function getSingleDescription() {
|
|
157
|
+
return this.singleDescription;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @param {String} singleDescription
|
|
162
|
+
*/
|
|
163
|
+
}, {
|
|
164
|
+
key: "setSingleDescription",
|
|
165
|
+
value: function setSingleDescription(singleDescription) {
|
|
166
|
+
this['singleDescription'] = singleDescription;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @return {String}
|
|
170
|
+
*/
|
|
171
|
+
}, {
|
|
172
|
+
key: "getDescription",
|
|
173
|
+
value: function getDescription() {
|
|
174
|
+
return this.description;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @param {String} description
|
|
179
|
+
*/
|
|
180
|
+
}, {
|
|
181
|
+
key: "setDescription",
|
|
182
|
+
value: function setDescription(description) {
|
|
183
|
+
this['description'] = description;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @return {Object}
|
|
187
|
+
*/
|
|
188
|
+
}, {
|
|
189
|
+
key: "getSkinFields",
|
|
190
|
+
value: function getSkinFields() {
|
|
191
|
+
return this.skinFields;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @param {Object} skinFields
|
|
196
|
+
*/
|
|
197
|
+
}, {
|
|
198
|
+
key: "setSkinFields",
|
|
199
|
+
value: function setSkinFields(skinFields) {
|
|
200
|
+
this['skinFields'] = skinFields;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @return {module:model/Template}
|
|
204
|
+
*/
|
|
205
|
+
}, {
|
|
206
|
+
key: "getTemplate",
|
|
207
|
+
value: function getTemplate() {
|
|
208
|
+
return this.template;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @param {module:model/Template} template
|
|
213
|
+
*/
|
|
214
|
+
}, {
|
|
215
|
+
key: "setTemplate",
|
|
216
|
+
value: function setTemplate(template) {
|
|
217
|
+
this['template'] = template;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* @return {Boolean}
|
|
221
|
+
*/
|
|
222
|
+
}, {
|
|
223
|
+
key: "getSearchable",
|
|
224
|
+
value: function getSearchable() {
|
|
225
|
+
return this.searchable;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @param {Boolean} searchable
|
|
230
|
+
*/
|
|
231
|
+
}, {
|
|
232
|
+
key: "setSearchable",
|
|
233
|
+
value: function setSearchable(searchable) {
|
|
234
|
+
this['searchable'] = searchable;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* @return {module:model/GraphObjectType}
|
|
238
|
+
*/
|
|
239
|
+
}, {
|
|
240
|
+
key: "getGraphObjectType",
|
|
241
|
+
value: function getGraphObjectType() {
|
|
242
|
+
return this.graphObjectType;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @param {module:model/GraphObjectType} graphObjectType
|
|
247
|
+
*/
|
|
248
|
+
}, {
|
|
249
|
+
key: "setGraphObjectType",
|
|
250
|
+
value: function setGraphObjectType(graphObjectType) {
|
|
251
|
+
this['graphObjectType'] = graphObjectType;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* @return {Object}
|
|
255
|
+
*/
|
|
256
|
+
}, {
|
|
257
|
+
key: "getData",
|
|
258
|
+
value: function getData() {
|
|
259
|
+
return this.data;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @param {Object} data
|
|
264
|
+
*/
|
|
265
|
+
}, {
|
|
266
|
+
key: "setData",
|
|
267
|
+
value: function setData(data) {
|
|
268
|
+
this['data'] = data;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* @return {Number}
|
|
272
|
+
*/
|
|
273
|
+
}, {
|
|
274
|
+
key: "getId",
|
|
275
|
+
value: function getId() {
|
|
276
|
+
return this.id;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @param {Number} id
|
|
281
|
+
*/
|
|
282
|
+
}, {
|
|
283
|
+
key: "setId",
|
|
284
|
+
value: function setId(id) {
|
|
285
|
+
this['id'] = id;
|
|
286
|
+
}
|
|
287
|
+
}], [{
|
|
288
|
+
key: "initialize",
|
|
289
|
+
value: function initialize(obj) {}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Constructs a <code>DocumentType</code> from a plain JavaScript object, optionally creating a new instance.
|
|
293
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
294
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
295
|
+
* @param {module:model/DocumentType} obj Optional instance to populate.
|
|
296
|
+
* @return {module:model/DocumentType} The populated <code>DocumentType</code> instance.
|
|
297
|
+
*/
|
|
298
|
+
}, {
|
|
299
|
+
key: "constructFromObject",
|
|
300
|
+
value: function constructFromObject(data, obj) {
|
|
301
|
+
if (data) {
|
|
302
|
+
obj = obj || new DocumentType();
|
|
303
|
+
if (data.hasOwnProperty('name')) {
|
|
304
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
305
|
+
}
|
|
306
|
+
if (data.hasOwnProperty('parent')) {
|
|
307
|
+
obj['parent'] = DocumentType.constructFromObject(data['parent']);
|
|
308
|
+
}
|
|
309
|
+
if (data.hasOwnProperty('entryPartTypes')) {
|
|
310
|
+
obj['entryPartTypes'] = _ApiClient["default"].convertToType(data['entryPartTypes'], Object);
|
|
311
|
+
}
|
|
312
|
+
if (data.hasOwnProperty('mediaItem')) {
|
|
313
|
+
obj['mediaItem'] = _ApiClient["default"].convertToType(data['mediaItem'], 'Boolean');
|
|
314
|
+
}
|
|
315
|
+
if (data.hasOwnProperty('singlePart')) {
|
|
316
|
+
obj['singlePart'] = _ApiClient["default"].convertToType(data['singlePart'], 'Boolean');
|
|
317
|
+
}
|
|
318
|
+
if (data.hasOwnProperty('childTypes')) {
|
|
319
|
+
obj['childTypes'] = _ApiClient["default"].convertToType(data['childTypes'], Object);
|
|
320
|
+
}
|
|
321
|
+
if (data.hasOwnProperty('singleDescription')) {
|
|
322
|
+
obj['singleDescription'] = _ApiClient["default"].convertToType(data['singleDescription'], 'String');
|
|
323
|
+
}
|
|
324
|
+
if (data.hasOwnProperty('description')) {
|
|
325
|
+
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
326
|
+
}
|
|
327
|
+
if (data.hasOwnProperty('skinFields')) {
|
|
328
|
+
obj['skinFields'] = _ApiClient["default"].convertToType(data['skinFields'], Object);
|
|
329
|
+
}
|
|
330
|
+
if (data.hasOwnProperty('template')) {
|
|
331
|
+
obj['template'] = _Template["default"].constructFromObject(data['template']);
|
|
332
|
+
}
|
|
333
|
+
if (data.hasOwnProperty('searchable')) {
|
|
334
|
+
obj['searchable'] = _ApiClient["default"].convertToType(data['searchable'], 'Boolean');
|
|
335
|
+
}
|
|
336
|
+
if (data.hasOwnProperty('graphObjectType')) {
|
|
337
|
+
obj['graphObjectType'] = _GraphObjectType["default"].constructFromObject(data['graphObjectType']);
|
|
338
|
+
}
|
|
339
|
+
if (data.hasOwnProperty('data')) {
|
|
340
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
341
|
+
}
|
|
342
|
+
if (data.hasOwnProperty('id')) {
|
|
343
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
return obj;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Validates the JSON data with respect to <code>DocumentType</code>.
|
|
351
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
352
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DocumentType</code>.
|
|
353
|
+
*/
|
|
354
|
+
}, {
|
|
355
|
+
key: "validateJSON",
|
|
356
|
+
value: function validateJSON(data) {
|
|
357
|
+
// ensure the json data is a string
|
|
358
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
359
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
360
|
+
}
|
|
361
|
+
// validate the optional field `parent`
|
|
362
|
+
if (data['parent']) {
|
|
363
|
+
// data not null
|
|
364
|
+
DocumentType.validateJSON(data['parent']);
|
|
365
|
+
}
|
|
366
|
+
// ensure the json data is a string
|
|
367
|
+
if (data['singleDescription'] && !(typeof data['singleDescription'] === 'string' || data['singleDescription'] instanceof String)) {
|
|
368
|
+
throw new Error("Expected the field `singleDescription` to be a primitive type in the JSON string but got " + data['singleDescription']);
|
|
369
|
+
}
|
|
370
|
+
// ensure the json data is a string
|
|
371
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
372
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
373
|
+
}
|
|
374
|
+
// validate the optional field `template`
|
|
375
|
+
if (data['template']) {
|
|
376
|
+
// data not null
|
|
377
|
+
_Template["default"].validateJSON(data['template']);
|
|
378
|
+
}
|
|
379
|
+
// validate the optional field `graphObjectType`
|
|
380
|
+
if (data['graphObjectType']) {
|
|
381
|
+
// data not null
|
|
382
|
+
_GraphObjectType["default"].validateJSON(data['graphObjectType']);
|
|
383
|
+
}
|
|
384
|
+
return true;
|
|
385
|
+
}
|
|
386
|
+
}]);
|
|
387
|
+
return DocumentType;
|
|
388
|
+
}();
|
|
389
|
+
/**
|
|
390
|
+
* @member {String} name
|
|
391
|
+
*/
|
|
392
|
+
DocumentType.prototype['name'] = undefined;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* @member {module:model/DocumentType} parent
|
|
396
|
+
*/
|
|
397
|
+
DocumentType.prototype['parent'] = undefined;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* @member {Object} entryPartTypes
|
|
401
|
+
*/
|
|
402
|
+
DocumentType.prototype['entryPartTypes'] = undefined;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @member {Boolean} mediaItem
|
|
406
|
+
*/
|
|
407
|
+
DocumentType.prototype['mediaItem'] = undefined;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @member {Boolean} singlePart
|
|
411
|
+
*/
|
|
412
|
+
DocumentType.prototype['singlePart'] = undefined;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @member {Object} childTypes
|
|
416
|
+
*/
|
|
417
|
+
DocumentType.prototype['childTypes'] = undefined;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @member {String} singleDescription
|
|
421
|
+
*/
|
|
422
|
+
DocumentType.prototype['singleDescription'] = undefined;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @member {String} description
|
|
426
|
+
*/
|
|
427
|
+
DocumentType.prototype['description'] = undefined;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @member {Object} skinFields
|
|
431
|
+
*/
|
|
432
|
+
DocumentType.prototype['skinFields'] = undefined;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* @member {module:model/Template} template
|
|
436
|
+
*/
|
|
437
|
+
DocumentType.prototype['template'] = undefined;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @member {Boolean} searchable
|
|
441
|
+
*/
|
|
442
|
+
DocumentType.prototype['searchable'] = undefined;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @member {module:model/GraphObjectType} graphObjectType
|
|
446
|
+
*/
|
|
447
|
+
DocumentType.prototype['graphObjectType'] = undefined;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* @member {Object} data
|
|
451
|
+
*/
|
|
452
|
+
DocumentType.prototype['data'] = undefined;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @member {Number} id
|
|
456
|
+
*/
|
|
457
|
+
DocumentType.prototype['id'] = undefined;
|
|
458
|
+
var _default = exports["default"] = DocumentType;
|
|
@@ -0,0 +1,185 @@
|
|
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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
|
+
* gobodo-api
|
|
16
|
+
* REST Interface for Gobodo API
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 0.1.34
|
|
19
|
+
* Contact: info@gobodo.io
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The FieldMapping model module.
|
|
28
|
+
* @module model/FieldMapping
|
|
29
|
+
* @version 0.1.34
|
|
30
|
+
*/
|
|
31
|
+
var FieldMapping = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>FieldMapping</code>.
|
|
34
|
+
* @alias module:model/FieldMapping
|
|
35
|
+
*/
|
|
36
|
+
function FieldMapping() {
|
|
37
|
+
_classCallCheck(this, FieldMapping);
|
|
38
|
+
FieldMapping.initialize(this);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initializes the fields of this object.
|
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
|
+
* Only for internal use.
|
|
45
|
+
*/
|
|
46
|
+
_createClass(FieldMapping, [{
|
|
47
|
+
key: "getFormat",
|
|
48
|
+
value:
|
|
49
|
+
/**
|
|
50
|
+
* @return {module:model/FieldMapping.FormatEnum}
|
|
51
|
+
*/
|
|
52
|
+
function getFormat() {
|
|
53
|
+
return this.format;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @param {module:model/FieldMapping.FormatEnum} format
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "setFormat",
|
|
61
|
+
value: function setFormat(format) {
|
|
62
|
+
this['format'] = format;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @return {String}
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "getDataprop",
|
|
69
|
+
value: function getDataprop() {
|
|
70
|
+
return this.dataprop;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @param {String} dataprop
|
|
75
|
+
*/
|
|
76
|
+
}, {
|
|
77
|
+
key: "setDataprop",
|
|
78
|
+
value: function setDataprop(dataprop) {
|
|
79
|
+
this['dataprop'] = dataprop;
|
|
80
|
+
}
|
|
81
|
+
}], [{
|
|
82
|
+
key: "initialize",
|
|
83
|
+
value: function initialize(obj) {}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Constructs a <code>FieldMapping</code> from a plain JavaScript object, optionally creating a new instance.
|
|
87
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
88
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
89
|
+
* @param {module:model/FieldMapping} obj Optional instance to populate.
|
|
90
|
+
* @return {module:model/FieldMapping} The populated <code>FieldMapping</code> instance.
|
|
91
|
+
*/
|
|
92
|
+
}, {
|
|
93
|
+
key: "constructFromObject",
|
|
94
|
+
value: function constructFromObject(data, obj) {
|
|
95
|
+
if (data) {
|
|
96
|
+
obj = obj || new FieldMapping();
|
|
97
|
+
if (data.hasOwnProperty('format')) {
|
|
98
|
+
obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String');
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('dataprop')) {
|
|
101
|
+
obj['dataprop'] = _ApiClient["default"].convertToType(data['dataprop'], 'String');
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Validates the JSON data with respect to <code>FieldMapping</code>.
|
|
109
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
110
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>FieldMapping</code>.
|
|
111
|
+
*/
|
|
112
|
+
}, {
|
|
113
|
+
key: "validateJSON",
|
|
114
|
+
value: function validateJSON(data) {
|
|
115
|
+
// ensure the json data is a string
|
|
116
|
+
if (data['format'] && !(typeof data['format'] === 'string' || data['format'] instanceof String)) {
|
|
117
|
+
throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data['format']);
|
|
118
|
+
}
|
|
119
|
+
// ensure the json data is a string
|
|
120
|
+
if (data['dataprop'] && !(typeof data['dataprop'] === 'string' || data['dataprop'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `dataprop` to be a primitive type in the JSON string but got " + data['dataprop']);
|
|
122
|
+
}
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
}]);
|
|
126
|
+
return FieldMapping;
|
|
127
|
+
}();
|
|
128
|
+
/**
|
|
129
|
+
* @member {module:model/FieldMapping.FormatEnum} format
|
|
130
|
+
*/
|
|
131
|
+
FieldMapping.prototype['format'] = undefined;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @member {String} dataprop
|
|
135
|
+
*/
|
|
136
|
+
FieldMapping.prototype['dataprop'] = undefined;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Allowed values for the <code>format</code> property.
|
|
140
|
+
* @enum {String}
|
|
141
|
+
* @readonly
|
|
142
|
+
*/
|
|
143
|
+
FieldMapping['FormatEnum'] = {
|
|
144
|
+
/**
|
|
145
|
+
* value: "DEFAULT"
|
|
146
|
+
* @const
|
|
147
|
+
*/
|
|
148
|
+
"DEFAULT": "DEFAULT",
|
|
149
|
+
/**
|
|
150
|
+
* value: "STRING"
|
|
151
|
+
* @const
|
|
152
|
+
*/
|
|
153
|
+
"STRING": "STRING",
|
|
154
|
+
/**
|
|
155
|
+
* value: "INT"
|
|
156
|
+
* @const
|
|
157
|
+
*/
|
|
158
|
+
"INT": "INT",
|
|
159
|
+
/**
|
|
160
|
+
* value: "LONG"
|
|
161
|
+
* @const
|
|
162
|
+
*/
|
|
163
|
+
"LONG": "LONG",
|
|
164
|
+
/**
|
|
165
|
+
* value: "DOUBLE"
|
|
166
|
+
* @const
|
|
167
|
+
*/
|
|
168
|
+
"DOUBLE": "DOUBLE",
|
|
169
|
+
/**
|
|
170
|
+
* value: "JSON"
|
|
171
|
+
* @const
|
|
172
|
+
*/
|
|
173
|
+
"JSON": "JSON",
|
|
174
|
+
/**
|
|
175
|
+
* value: "DATE"
|
|
176
|
+
* @const
|
|
177
|
+
*/
|
|
178
|
+
"DATE": "DATE",
|
|
179
|
+
/**
|
|
180
|
+
* value: "COMMA_DELIMITED_STRING"
|
|
181
|
+
* @const
|
|
182
|
+
*/
|
|
183
|
+
"COMMA_DELIMITED_STRING": "COMMA_DELIMITED_STRING"
|
|
184
|
+
};
|
|
185
|
+
var _default = exports["default"] = FieldMapping;
|